`)}))})),a}},re=l.iv`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;var le=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,ie=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?ae(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&le(t,o,a),a};let ne=class extends l.oi{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){const e="light"===s.ThemeCtrl.state.themeMode?this.size:this.size-36;return l.YP``}render(){const e={"wcm-dark":"dark"===s.ThemeCtrl.state.themeMode};return l.dy`${this.walletId||this.imageUrl?l.dy``:L.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}
`}};ne.styles=[f.globalCss,re],ie([(0,i.C)()],ne.prototype,"uri",2),ie([(0,i.C)({type:Number})],ne.prototype,"size",2),ie([(0,i.C)()],ne.prototype,"imageId",2),ie([(0,i.C)()],ne.prototype,"walletId",2),ie([(0,i.C)()],ne.prototype,"imageUrl",2),ne=ie([(0,a.M)("wcm-qrcode")],ne);const ce=l.iv`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;var se=Object.defineProperty,de=Object.getOwnPropertyDescriptor,me=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?de(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&se(t,o,a),a};let we=class extends l.oi{constructor(){super(...arguments),this.onChange=()=>null}render(){return l.dy` ${L.SEARCH_ICON}`}};we.styles=[f.globalCss,ce],me([(0,i.C)()],we.prototype,"onChange",2),we=me([(0,a.M)("wcm-search-input")],we);const he=l.iv`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let pe=class extends l.oi{render(){return l.dy``}};pe.styles=[f.globalCss,he],pe=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-spinner")],pe);const ge=l.iv`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;var ue=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,be=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?ve(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&ue(t,o,a),a};let fe=class extends l.oi{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){const e={"wcm-big-bold":"big-bold"===this.variant,"wcm-medium-regular":"medium-regular"===this.variant,"wcm-small-regular":"small-regular"===this.variant,"wcm-small-thin":"small-thin"===this.variant,"wcm-xsmall-regular":"xsmall-regular"===this.variant,"wcm-xsmall-bold":"xsmall-bold"===this.variant,"wcm-color-primary":"primary"===this.color,"wcm-color-secondary":"secondary"===this.color,"wcm-color-tertiary":"tertiary"===this.color,"wcm-color-inverse":"inverse"===this.color,"wcm-color-accnt":"accent"===this.color,"wcm-color-error":"error"===this.color};return l.dy``}};fe.styles=[f.globalCss,ge],be([(0,i.C)()],fe.prototype,"variant",2),be([(0,i.C)()],fe.prototype,"color",2),fe=be([(0,a.M)("wcm-text")],fe);const xe=l.iv`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;var ye=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,ke=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?Ce(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&ye(t,o,a),a};let Oe=class extends l.oi{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?l.dy`RECENT`:this.installed?l.dy`INSTALLED`:null}handleClick(){s.uA.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick()}render(){var e;return l.dy``}};Oe.styles=[f.globalCss,xe],ke([(0,i.C)()],Oe.prototype,"onClick",2),ke([(0,i.C)()],Oe.prototype,"name",2),ke([(0,i.C)()],Oe.prototype,"walletId",2),ke([(0,i.C)()],Oe.prototype,"label",2),ke([(0,i.C)()],Oe.prototype,"imageId",2),ke([(0,i.C)({type:Boolean})],Oe.prototype,"installed",2),ke([(0,i.C)({type:Boolean})],Oe.prototype,"recent",2),Oe=ke([(0,a.M)("wcm-wallet-button")],Oe);const $e=l.iv`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var Ee=Object.defineProperty,Ie=Object.getOwnPropertyDescriptor,Me=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?Ie(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&Ee(t,o,a),a};let Ae=class extends l.oi{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0}render(){var e;const t=null!=(e=this.imageUrl)&&e.length?this.imageUrl:U.getWalletIcon({id:this.walletId,image_id:this.imageId});return l.dy`${t.length?l.dy``:L.WALLET_PLACEHOLDER}`}};Ae.styles=[f.globalCss,$e],Me([(0,i.C)()],Ae.prototype,"walletId",2),Me([(0,i.C)()],Ae.prototype,"imageId",2),Me([(0,i.C)()],Ae.prototype,"imageUrl",2),Ae=Me([(0,a.M)("wcm-wallet-image")],Ae);var Pe=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Le=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?We(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&Pe(t,o,a),a};let Re=class extends l.oi{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(e){try{null!=e&&e.length&&await Promise.all(e.map((async e=>U.preloadImage(e))))}catch{console.info("Unsuccessful attempt at preloading some images",e)}}async preloadListings(){if(s.ConfigCtrl.state.enableExplorer){await s.ExplorerCtrl.getRecomendedWallets(),s.OptionsCtrl.setIsDataLoaded(!0);const{recomendedWallets:e}=s.ExplorerCtrl.state,t=e.map((e=>U.getWalletIcon(e)));await this.loadImages(t)}else s.OptionsCtrl.setIsDataLoaded(!0)}async preloadCustomImages(){const e=U.getCustomImageUrls();await this.loadImages(e)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(e){console.error(e),s.ToastCtrl.openToast("Failed preloading","error")}}};Le([(0,n.S)()],Re.prototype,"preload",2),Re=Le([(0,a.M)("wcm-explorer-context")],Re);Object.defineProperty,Object.getOwnPropertyDescriptor;let Te=class extends l.oi{constructor(){super(),this.unsubscribeTheme=void 0,f.setTheme(),this.unsubscribeTheme=s.ThemeCtrl.subscribe(f.setTheme)}disconnectedCallback(){var e;null==(e=this.unsubscribeTheme)||e.call(this)}};Te=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-theme-context")],Te);const je=l.iv`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let _e=class extends l.oi{onGoToQrcode(){s.AV.push("Qrcode")}render(){const{recomendedWallets:e}=s.ExplorerCtrl.state,t=[...e,...e],o=2*s.zv.RECOMMENDED_WALLET_AMOUNT;return l.dy`${L.MOBILE_ICON}WalletConnect
${[...Array(o)].map(((e,o)=>{const r=t[o%t.length];return r?l.dy``:L.WALLET_PLACEHOLDER}))}
Select Wallet Choose WalletConnect to see supported apps on your device`}};_e.styles=[f.globalCss,je],_e=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-android-wallet-selection")],_e);const De=l.iv`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;var ze=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,Se=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?Ne(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&ze(t,o,a),a};let Ze=class extends l.oi{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=""}svgLoaderTemplate(){var e,t;const o=null!=(t=null==(e=s.ThemeCtrl.state.themeVariables)?void 0:e["--wcm-wallet-icon-large-border-radius"])?t:f.getPreset("--wcm-wallet-icon-large-border-radius");let r=0;r=o.includes("%")?.88*parseInt(o,10):parseInt(o,10),r*=1.17;const a=317-1.57*r,i=425-1.8*r;return l.dy``}render(){const e={"wcm-error":this.isError,"wcm-stale":this.isStale};return l.dy`${this.svgLoaderTemplate()}
${this.isError?"Connection declined":this.label}`}};Ze.styles=[f.globalCss,De],Se([(0,i.C)()],Ze.prototype,"walletId",2),Se([(0,i.C)()],Ze.prototype,"imageId",2),Se([(0,i.C)({type:Boolean})],Ze.prototype,"isError",2),Se([(0,i.C)({type:Boolean})],Ze.prototype,"isStale",2),Se([(0,i.C)()],Ze.prototype,"label",2),Ze=Se([(0,a.M)("wcm-connector-waiting")],Ze);const Be={manualWallets(){var e,t;const{mobileWallets:o,desktopWallets:r}=s.ConfigCtrl.state,l=null==(e=Be.recentWallet())?void 0:e.id,a=s.zv.isMobile()?o:r,i=a?.filter((e=>l!==e.id));return null!=(t=s.zv.isMobile()?i?.map((({id:e,name:t,links:o})=>({id:e,name:t,mobile:o,links:o}))):i?.map((({id:e,name:t,links:o})=>({id:e,name:t,desktop:o,links:o}))))?t:[]},recentWallet:()=>U.getRecentWallet(),recomendedWallets(e=!1){var t;const o=e||null==(t=Be.recentWallet())?void 0:t.id,{recomendedWallets:r}=s.ExplorerCtrl.state;return r.filter((e=>o!==e.id))}},He={onConnecting(e){U.goToConnectingView(e)},manualWalletsTemplate(){return Be.manualWallets().map((e=>l.dy``))},recomendedWalletsTemplate(e=!1){return Be.recomendedWallets(e).map((e=>l.dy``))},recentWalletTemplate(){const e=Be.recentWallet();if(e)return l.dy``}},Ue=l.iv`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Ve=class extends l.oi{render(){const{explorerExcludedWalletIds:e,enableExplorer:t}=s.ConfigCtrl.state,o="ALL"!==e&&t,r=He.manualWalletsTemplate(),a=He.recomendedWalletsTemplate();let i=[He.recentWalletTemplate(),...r,...a];i=i.filter(Boolean);const n=i.length>4||o;let c=[];c=n?i.slice(0,3):i;const d=Boolean(c.length);return l.dy`${L.MOBILE_ICON}Mobile
${L.SCAN_ICON}Scan with your wallet
${d?l.dy`${L.DESKTOP_ICON}Desktop
${c} ${n?l.dy``:null}
`:null}`}};Ve.styles=[f.globalCss,Ue],Ve=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-desktop-wallet-selection")],Ve);const Fe=l.iv`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Ye=class extends l.oi{render(){const{termsOfServiceUrl:e,privacyPolicyUrl:t}=s.ConfigCtrl.state;return e??t?l.dy``:null}};Ye.styles=[f.globalCss,Fe],Ye=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-legal-notice")],Ye);const qe=l.iv`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Qe=class extends l.oi{onQrcode(){s.AV.push("Qrcode")}render(){const{explorerExcludedWalletIds:e,enableExplorer:t}=s.ConfigCtrl.state,o="ALL"!==e&&t,r=He.manualWalletsTemplate(),a=He.recomendedWalletsTemplate();let i=[He.recentWalletTemplate(),...r,...a];i=i.filter(Boolean);const n=i.length>8||o;let c=[];c=n?i.slice(0,7):i;const d=Boolean(c.length);return l.dy`${d?l.dy`${c} ${n?l.dy``:null}
`:null}`}};Qe.styles=[f.globalCss,qe],Qe=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-mobile-wallet-selection")],Qe);const Ke=l.iv`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;var Ge=Object.defineProperty,Xe=Object.getOwnPropertyDescriptor,Je=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?Xe(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&Ge(t,o,a),a};let et=class extends l.oi{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=s.jb.subscribe((e=>{e.open?this.onOpenModalEvent():this.onCloseModalEvent()}))}disconnectedCallback(){var e;null==(e=this.unsubscribeModal)||e.call(this)}get overlayEl(){return U.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return U.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(e){if(document.querySelector("body"))if(e){const e=document.getElementById("wcm-styles");e?.remove()}else document.head.insertAdjacentHTML("beforeend",'')}onCloseModal(e){e.target===e.currentTarget&&s.jb.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout((async()=>{const e=U.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]};await Promise.all([(0,d.j)(this.overlayEl,{opacity:[0,1]},{delay:.1,duration:.2}).finished,(0,d.j)(this.containerEl,e,{delay:.1,duration:.2}).finished]),this.active=!0}),0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();const e=U.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]};await Promise.all([(0,d.j)(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished,(0,d.j)(this.containerEl,e,{duration:.2}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",(e=>{var t;"Escape"===e.key?s.jb.close():"Tab"===e.key&&(null!=(t=e.target)&&t.tagName.includes("wcm-")||this.containerEl.focus())}),this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var e;null==(e=this.abortController)||e.abort(),this.abortController=void 0}render(){const e={"wcm-overlay":!0,"wcm-active":this.active};return l.dy``}};et.styles=[f.globalCss,Ke],Je([(0,n.S)()],et.prototype,"open",2),Je([(0,n.S)()],et.prototype,"active",2),et=Je([(0,a.M)("wcm-modal")],et);const tt=l.iv`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;var ot=Object.defineProperty,rt=Object.getOwnPropertyDescriptor,lt=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?rt(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&ot(t,o,a),a};let at=class extends l.oi{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){s.zv.isMobile()?s.AV.replace("MobileConnecting"):s.AV.replace("MobileQrcodeConnecting")}onDesktop(){s.AV.replace("DesktopConnecting")}onWeb(){s.AV.replace("WebConnecting")}render(){return l.dy`${this.isRetry?l.dy``:null} ${this.isMobile?l.dy`Mobile`:null} ${this.isDesktop?l.dy`Desktop`:null} ${this.isWeb?l.dy`Web`:null}
`}};at.styles=[f.globalCss,tt],lt([(0,i.C)({type:Boolean})],at.prototype,"isMobile",2),lt([(0,i.C)({type:Boolean})],at.prototype,"isDesktop",2),lt([(0,i.C)({type:Boolean})],at.prototype,"isWeb",2),lt([(0,i.C)({type:Boolean})],at.prototype,"isRetry",2),at=lt([(0,a.M)("wcm-platform-selection")],at);const it=l.iv`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let nt=class extends l.oi{onClick(){s.AV.push("WalletExplorer")}render(){const{recomendedWallets:e}=s.ExplorerCtrl.state,t=[...e,...Be.manualWallets()].reverse().slice(0,4);return l.dy``}};nt.styles=[f.globalCss,it],nt=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-view-all-wallets-button")],nt);const ct=l.iv`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var st=Object.defineProperty,dt=Object.getOwnPropertyDescriptor,mt=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?dt(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&st(t,o,a),a};let wt=class extends l.oi{constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout((()=>{const{walletConnectUri:e}=s.OptionsCtrl.state;this.uri=e}),0)}get overlayEl(){return U.getShadowRootElement(this,".wcm-qr-container")}render(){return l.dy`${this.uri?l.dy``:l.dy``}
`}};wt.styles=[f.globalCss,ct],mt([(0,i.C)()],wt.prototype,"walletId",2),mt([(0,i.C)()],wt.prototype,"imageId",2),mt([(0,n.S)()],wt.prototype,"uri",2),wt=mt([(0,a.M)("wcm-walletconnect-qr")],wt);Object.defineProperty,Object.getOwnPropertyDescriptor;let ht=class extends l.oi{viewTemplate(){return s.zv.isAndroid()?l.dy``:s.zv.isMobile()?l.dy``:l.dy``}render(){return l.dy`${this.viewTemplate()}`}};ht.styles=[f.globalCss],ht=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-connect-wallet-view")],ht);const pt=l.iv`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var gt=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,vt=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?ut(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&>(t,o,a),a};let bt=class extends l.oi{constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(e){const{desktop:t,name:o}=s.zv.getWalletRouterData(),r=t?.native;if(r){const t=s.zv.formatNativeUrl(r,e,o);s.zv.openHref(t,"_self")}}openDesktopApp(){const{walletConnectUri:e}=s.OptionsCtrl.state,t=s.zv.getWalletRouterData();U.setRecentWallet(t),e&&this.onFormatAndRedirect(e)}render(){const{name:e,id:t,image_id:o}=s.zv.getWalletRouterData(),{isMobile:r,isWeb:a}=U.getCachedRouterWalletPlatforms();return l.dy`${`Connection can continue loading if ${e} is not installed on your device`}Retry`}};bt.styles=[f.globalCss,pt],vt([(0,n.S)()],bt.prototype,"isError",2),bt=vt([(0,a.M)("wcm-desktop-connecting-view")],bt);const ft=l.iv`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let xt=class extends l.oi{onInstall(e){e&&s.zv.openHref(e,"_blank")}render(){const{name:e,id:t,image_id:o,homepage:r}=s.zv.getWalletRouterData();return l.dy`${`Download ${e} to continue. If multiple browser extensions are installed, disable non ${e} ones and try again`}Download`}};xt.styles=[f.globalCss,ft],xt=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-install-wallet-view")],xt);const yt=l.iv`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;var Ct=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,Ot=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?kt(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&Ct(t,o,a),a};let $t=class extends l.oi{constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(e,t=!1){const{mobile:o,name:r}=s.zv.getWalletRouterData(),l=o?.native,a=o?.universal;if(l&&!t){const t=s.zv.formatNativeUrl(l,e,r);s.zv.openHref(t,"_self")}else if(a){const t=s.zv.formatUniversalUrl(a,e,r);s.zv.openHref(t,"_self")}}openMobileApp(e=!1){const{walletConnectUri:t}=s.OptionsCtrl.state,o=s.zv.getWalletRouterData();U.setRecentWallet(o),t&&this.onFormatAndRedirect(t,e)}onGoToAppStore(e){e&&s.zv.openHref(e,"_blank")}render(){const{name:e,id:t,image_id:o,app:r,mobile:a}=s.zv.getWalletRouterData(),{isWeb:i}=U.getCachedRouterWalletPlatforms(),n=r?.ios,c=a?.universal;return l.dy`Retry${c?l.dy`Still doesn't work? this.openMobileApp(!0)}">Try this alternate link`:null}${`Get ${e}`}
App Store`}};$t.styles=[f.globalCss,yt],Ot([(0,n.S)()],$t.prototype,"isError",2),$t=Ot([(0,a.M)("wcm-mobile-connecting-view")],$t);const Et=l.iv`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let It=class extends l.oi{render(){const{name:e,id:t,image_id:o}=s.zv.getWalletRouterData(),{isDesktop:r,isWeb:a}=U.getCachedRouterWalletPlatforms();return l.dy`${`Scan this QR Code with your phone's camera or inside ${e} app`}`}};It.styles=[f.globalCss,Et],It=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-mobile-qr-connecting-view")],It);Object.defineProperty,Object.getOwnPropertyDescriptor;let Mt=class extends l.oi{render(){return l.dy``}};Mt.styles=[f.globalCss],Mt=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-qrcode-view")],Mt);const At=l.iv`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var Pt=Object.defineProperty,Wt=Object.getOwnPropertyDescriptor,Lt=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?Wt(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&Pt(t,o,a),a};let Rt=class extends l.oi{constructor(){super(...arguments),this.loading=!s.ExplorerCtrl.state.wallets.listings.length,this.firstFetch=!s.ExplorerCtrl.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=U.debounce((e=>{e.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=e,s.ExplorerCtrl.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),s.ExplorerCtrl.resetSearch())}))}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var e;null==(e=this.intersectionObserver)||e.disconnect()}get placeholderEl(){return U.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver((([e])=>{e.isIntersecting&&(!this.search||!this.firstFetch)&&this.fetchWallets()})),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){const{wallets:e,search:t}=s.ExplorerCtrl.state,{listings:o,total:r}=this.search?t:e;return r<=40||o.length>=r}async fetchWallets(){var e;const{wallets:t,search:o}=s.ExplorerCtrl.state,{listings:r,total:l,page:a}=this.search?o:t;if(!this.endReached&&(this.firstFetch||l>40&&r.lengthU.getWalletIcon(e)));await Promise.all([...r.map((async e=>U.preloadImage(e))),s.zv.wait(300)]),this.endReached=this.isLastPage()}catch(e){console.error(e),s.ToastCtrl.openToast(U.getErrorMessage(e),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(e){s.zv.isAndroid()?U.handleMobileLinking(e):U.goToConnectingView(e)}onSearchChange(e){const{value:t}=e.target;this.searchDebounce(t)}render(){const{wallets:e,search:t}=s.ExplorerCtrl.state,{listings:o}=this.search?t:e,r=this.loading&&!o.length,a=this.search.length>=3;let i=He.manualWalletsTemplate(),n=He.recomendedWalletsTemplate(!0);a&&(i=i.filter((({values:e})=>U.caseSafeIncludes(e[0],this.search))),n=n.filter((({values:e})=>U.caseSafeIncludes(e[0],this.search))));const d=!this.loading&&!o.length&&!n.length,m={"wcm-loading":r,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":d};return l.dy`${r?null:i} ${r?null:n} ${r?null:o.map((e=>l.dy`${e?l.dy``:null}`))}
${d?l.dy`No results found`:null} ${!d&&this.loading?l.dy``:null}
`}};Rt.styles=[f.globalCss,At],Lt([(0,n.S)()],Rt.prototype,"loading",2),Lt([(0,n.S)()],Rt.prototype,"firstFetch",2),Lt([(0,n.S)()],Rt.prototype,"search",2),Lt([(0,n.S)()],Rt.prototype,"endReached",2),Rt=Lt([(0,a.M)("wcm-wallet-explorer-view")],Rt);const Tt=l.iv`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var jt=Object.defineProperty,_t=Object.getOwnPropertyDescriptor,Dt=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?_t(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&jt(t,o,a),a};let zt=class extends l.oi{constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(e){const{desktop:t,name:o}=s.zv.getWalletRouterData(),r=t?.universal;if(r){const t=s.zv.formatUniversalUrl(r,e,o);s.zv.openHref(t,"_blank")}}openWebWallet(){const{walletConnectUri:e}=s.OptionsCtrl.state,t=s.zv.getWalletRouterData();U.setRecentWallet(t),e&&this.onFormatAndRedirect(e)}render(){const{name:e,id:t,image_id:o}=s.zv.getWalletRouterData(),{isMobile:r,isDesktop:a}=U.getCachedRouterWalletPlatforms(),i=s.zv.isMobile();return l.dy`${`${e} web app has opened in a new tab. Go there, accept the connection, and come back`}Retry`}};zt.styles=[f.globalCss,Tt],Dt([(0,n.S)()],zt.prototype,"isError",2),zt=Dt([(0,a.M)("wcm-web-connecting-view")],zt)}}]);
\ No newline at end of file
diff --git a/gateway/dist/5080.4954a33b6ff45fda6199.bundle.js b/gateway/dist/5080.4954a33b6ff45fda6199.bundle.js
new file mode 100644
index 00000000..59bccb66
--- /dev/null
+++ b/gateway/dist/5080.4954a33b6ff45fda6199.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[5080],{55080:(a,e,t)=>{t.r(e),t.d(e,{default:()=>n});const n='\n\n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/5098.660830554863e1c2478b.bundle.js b/gateway/dist/5098.660830554863e1c2478b.bundle.js
new file mode 100644
index 00000000..5a900caa
--- /dev/null
+++ b/gateway/dist/5098.660830554863e1c2478b.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[5098],{25098:(e,t,a)=>{a.r(t),a.d(t,{default:()=>s});const s=''}}]);
\ No newline at end of file
diff --git a/gateway/dist/5163.579144e978bb18e37ff8.bundle.js b/gateway/dist/5163.579144e978bb18e37ff8.bundle.js
new file mode 100644
index 00000000..3e1c6813
--- /dev/null
+++ b/gateway/dist/5163.579144e978bb18e37ff8.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[5163],{5163:(n,A,e)=>{e.r(A),e.d(A,{default:()=>I});const I=''}}]);
\ No newline at end of file
diff --git a/gateway/dist/5221.b97cad8db82198377b1c.bundle.js b/gateway/dist/5221.b97cad8db82198377b1c.bundle.js
new file mode 100644
index 00000000..12369fb5
--- /dev/null
+++ b/gateway/dist/5221.b97cad8db82198377b1c.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[5221],{25221:(t,n,i)=>{i.r(n),i.d(n,{default:()=>e});const e='\n\n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/5259.401924b7186331d6c665.bundle.js b/gateway/dist/5259.401924b7186331d6c665.bundle.js
new file mode 100644
index 00000000..4f11add2
--- /dev/null
+++ b/gateway/dist/5259.401924b7186331d6c665.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[5259],{15259:(e,t,o)=>{o.r(t),o.d(t,{WcmModal:()=>et,WcmQrCode:()=>ne}),o(77898);var r=o(33692),l=o(8922),a=o(15713),i=o(99662),n=o(39158),c=(o(57935),o(30043),o(83057)),s=o(22928),d=o(4213),m=o(30577),w=o(92592),h=Object.defineProperty,p=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,v=(e,t,o)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,b=(e,t)=>{for(var o in t||(t={}))g.call(t,o)&&v(e,o,t[o]);if(p)for(var o of p(t))u.call(t,o)&&v(e,o,t[o]);return e};const f={getPreset:e=>({"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}[e]),setTheme(){const e=document.querySelector(":root"),{themeVariables:t}=s.ThemeCtrl.state;if(e){const o=b(b(b({},function(){var e;const t={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[null!=(e=s.ThemeCtrl.state.themeMode)?e:"dark"];return{"--wcm-color-fg-1":t.foreground[1],"--wcm-color-fg-2":t.foreground[2],"--wcm-color-fg-3":t.foreground[3],"--wcm-color-bg-1":t.background[1],"--wcm-color-bg-2":t.background[2],"--wcm-color-bg-3":t.background[3],"--wcm-color-overlay":t.overlay}}()),{"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}),t);Object.entries(o).forEach((([t,o])=>e.style.setProperty(t,o)))}},globalCss:l.iv`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},x=l.iv`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;var y=Object.defineProperty,C=Object.getOwnPropertyDescriptor,k=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?C(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&y(t,o,a),a};let O=class extends l.oi{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default"}render(){const e={"wcm-icon-left":void 0!==this.iconLeft,"wcm-icon-right":void 0!==this.iconRight,"wcm-ghost":"ghost"===this.variant,"wcm-outline":"outline"===this.variant};let t="inverse";return"ghost"===this.variant&&(t="secondary"),"outline"===this.variant&&(t="accent"),l.dy``}};O.styles=[f.globalCss,x],k([(0,i.C)({type:Boolean})],O.prototype,"disabled",2),k([(0,i.C)()],O.prototype,"iconLeft",2),k([(0,i.C)()],O.prototype,"iconRight",2),k([(0,i.C)()],O.prototype,"onClick",2),k([(0,i.C)()],O.prototype,"variant",2),O=k([(0,a.M)("wcm-button")],O);const $=l.iv`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;var E=Object.defineProperty,I=Object.getOwnPropertyDescriptor,M=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?I(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&E(t,o,a),a};let A=class extends l.oi{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){const e={"wcm-secondary":"secondary"===this.variant};return l.dy``}};A.styles=[f.globalCss,$],M([(0,i.C)({type:Boolean})],A.prototype,"disabled",2),M([(0,i.C)()],A.prototype,"variant",2),A=M([(0,a.M)("wcm-button-big")],A);const P=l.iv`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let W=class extends l.oi{render(){return l.dy`
`}};W.styles=[f.globalCss,P],W=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-info-footer")],W);const L={CROSS_ICON:r.YP``,WALLET_CONNECT_LOGO:r.YP``,WALLET_CONNECT_ICON:r.YP``,WALLET_CONNECT_ICON_COLORED:r.YP``,BACK_ICON:r.YP``,COPY_ICON:r.YP``,RETRY_ICON:r.YP``,DESKTOP_ICON:r.YP``,MOBILE_ICON:r.YP``,ARROW_DOWN_ICON:r.YP``,ARROW_UP_RIGHT_ICON:r.YP``,ARROW_RIGHT_ICON:r.YP``,QRCODE_ICON:r.YP``,SCAN_ICON:r.YP``,CHECKMARK_ICON:r.YP``,SEARCH_ICON:r.YP``,WALLET_PLACEHOLDER:r.YP``,GLOBE_ICON:r.YP``},R=l.iv`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let T=class extends l.oi{render(){return l.dy`${L.WALLET_CONNECT_LOGO}
`}};T.styles=[f.globalCss,R],T=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-modal-backcard")],T);const j=l.iv`main{padding:20px;padding-top:0;width:100%}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let _=class extends l.oi{render(){return l.dy``}};_.styles=[f.globalCss,j],_=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-modal-content")],_);const D=l.iv`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let z=class extends l.oi{render(){return l.dy``}};z.styles=[f.globalCss,D],z=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-modal-footer")],z);const N=l.iv`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`;var S=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,B=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?Z(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&S(t,o,a),a};let H=class extends l.oi{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return l.dy``}actionBtnTemplate(){return l.dy``}render(){const e={"wcm-border":this.border},t=s.AV.state.history.length>1,o=this.title?l.dy`${this.title}`:l.dy``;return l.dy`${t?this.backBtnTemplate():null} ${o} ${this.onAction?this.actionBtnTemplate():null}`}};H.styles=[f.globalCss,N],B([(0,i.C)()],H.prototype,"title",2),B([(0,i.C)()],H.prototype,"onAction",2),B([(0,i.C)()],H.prototype,"actionIcon",2),B([(0,i.C)({type:Boolean})],H.prototype,"border",2),H=B([(0,a.M)("wcm-modal-header")],H);const U={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:"WCM_RECENT_WALLET_DATA",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",getShadowRootElement(e,t){const o=e.renderRoot.querySelector(t);if(!o)throw new Error(`${t} not found`);return o},getWalletIcon({id:e,image_id:t}){const{walletImages:o}=s.ConfigCtrl.state;return null!=o&&o[e]?o[e]:t?s.ExplorerCtrl.getWalletImageUrl(t):""},getWalletName:(e,t=!1)=>t&&e.length>8?`${e.substring(0,8)}..`:e,isMobileAnimation:()=>window.innerWidth<=U.MOBILE_BREAKPOINT,async preloadImage(e){const t=new Promise(((t,o)=>{const r=new Image;r.onload=t,r.onerror=o,r.crossOrigin="anonymous",r.src=e}));return Promise.race([t,s.zv.wait(3e3)])},getErrorMessage:e=>e instanceof Error?e.message:"Unknown Error",debounce(e,t=500){let o;return(...r)=>{o&&clearTimeout(o),o=setTimeout((function(){e(...r)}),t)}},handleMobileLinking(e){const{walletConnectUri:t}=s.OptionsCtrl.state,{mobile:o,name:r}=e,l=o?.native,a=o?.universal;U.setRecentWallet(e),t&&function(e){let t="";l?t=s.zv.formatUniversalUrl(l,e,r):a&&(t=s.zv.formatNativeUrl(a,e,r)),s.zv.openHref(t,"_self")}(t)},handleAndroidLinking(){const{walletConnectUri:e}=s.OptionsCtrl.state;e&&(s.zv.setWalletConnectAndroidDeepLink(e),s.zv.openHref(e,"_self"))},async handleUriCopy(){const{walletConnectUri:e}=s.OptionsCtrl.state;if(e)try{await navigator.clipboard.writeText(e),s.ToastCtrl.openToast("Link copied","success")}catch{s.ToastCtrl.openToast("Failed to copy","error")}},getCustomImageUrls(){const{walletImages:e}=s.ConfigCtrl.state,t=Object.values(e??{});return Object.values(t)},truncate:(e,t=8)=>e.length<=t?e:`${e.substring(0,4)}...${e.substring(e.length-4)}`,setRecentWallet(e){try{localStorage.setItem(U.WCM_RECENT_WALLET_DATA,JSON.stringify(e))}catch{console.info("Unable to set recent wallet")}},getRecentWallet(){try{const e=localStorage.getItem(U.WCM_RECENT_WALLET_DATA);return e?JSON.parse(e):void 0}catch{console.info("Unable to get recent wallet")}},caseSafeIncludes:(e,t)=>e.toUpperCase().includes(t.toUpperCase()),openWalletExplorerUrl(){s.zv.openHref(U.EXPLORER_WALLET_URL,"_blank")},getCachedRouterWalletPlatforms(){const{desktop:e,mobile:t}=s.zv.getWalletRouterData(),o=Boolean(e?.native),r=Boolean(e?.universal);return{isDesktop:o,isMobile:Boolean(t?.native)||Boolean(t?.universal),isWeb:r}},goToConnectingView(e){s.AV.setData({Wallet:e});const t=s.zv.isMobile(),{isDesktop:o,isWeb:r,isMobile:l}=U.getCachedRouterWalletPlatforms();t?l?s.AV.push("MobileConnecting"):r?s.AV.push("WebConnecting"):s.AV.push("InstallWallet"):o?s.AV.push("DesktopConnecting"):r?s.AV.push("WebConnecting"):l?s.AV.push("MobileQrcodeConnecting"):s.AV.push("InstallWallet")}},V=l.iv`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;var F=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,q=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?Y(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&F(t,o,a),a};let Q=class extends l.oi{constructor(){super(),this.view=s.AV.state.view,this.prevView=s.AV.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=s.AV.subscribe((e=>{this.view!==e.view&&this.onChangeRoute()}))}firstUpdated(){this.resizeObserver=new ResizeObserver((([e])=>{const t=`${e.contentRect.height}px`;"0px"!==this.oldHeight&&(0,d.j)(this.routerEl,{height:[this.oldHeight,t]},{duration:.2}),this.oldHeight=t})),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var e,t;null==(e=this.unsubscribe)||e.call(this),null==(t=this.resizeObserver)||t.disconnect()}get routerEl(){return U.getShadowRootElement(this,".wcm-router")}get contentEl(){return U.getShadowRootElement(this,".wcm-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return l.dy``;case"DesktopConnecting":return l.dy``;case"MobileConnecting":return l.dy``;case"WebConnecting":return l.dy``;case"MobileQrcodeConnecting":return l.dy``;case"WalletExplorer":return l.dy``;case"Qrcode":return l.dy``;case"InstallWallet":return l.dy``;default:return l.dy`Not Found
`}}async onChangeRoute(){await(0,d.j)(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=s.AV.state.view,(0,d.j)(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return l.dy``}};Q.styles=[f.globalCss,V],q([(0,n.S)()],Q.prototype,"view",2),q([(0,n.S)()],Q.prototype,"prevView",2),Q=q([(0,a.M)("wcm-modal-router")],Q);const K=l.iv`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`;var G=Object.defineProperty,X=Object.getOwnPropertyDescriptor,J=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?X(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&G(t,o,a),a};let ee=class extends l.oi{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=s.ToastCtrl.subscribe((e=>{e.open?(this.open=!0,this.timeout=setTimeout((()=>s.ToastCtrl.closeToast()),2200)):(this.open=!1,clearTimeout(this.timeout))}))}disconnectedCallback(){var e;null==(e=this.unsubscribe)||e.call(this),clearTimeout(this.timeout),s.ToastCtrl.closeToast()}render(){const{message:e,variant:t}=s.ToastCtrl.state,o={"wcm-success":"success"===t,"wcm-error":"error"===t};return this.open?l.dy`${"success"===t?L.CHECKMARK_ICON:null} ${"error"===t?L.CROSS_ICON:null}${e}
`:null}};function te(e,t,o){return e!==t&&(e-t<0?t-e:e-t)<=o+.1}ee.styles=[f.globalCss,K],J([(0,n.S)()],ee.prototype,"open",2),ee=J([(0,a.M)("wcm-modal-toast")],ee);const oe={generate(e,t,o){const r="#141414",a=[],i=function(e,t){const o=Array.prototype.slice.call(w.create(e,{errorCorrectionLevel:"Q"}).modules.data,0),r=Math.sqrt(o.length);return o.reduce(((e,t,o)=>(o%r==0?e.push([t]):e[e.length-1].push(t))&&e),[])}(e),n=t/i.length,c=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];c.forEach((({x:e,y:t})=>{const o=(i.length-7)*n*e,s=(i.length-7)*n*t;for(let e=0;e`)}}));const s=Math.floor((o+25)/n),d=i.length/2-s/2,m=i.length/2+s/2-1,h=[];i.forEach(((e,t)=>{e.forEach(((e,o)=>{if(i[t][o]&&!(t<7&&o<7||t>i.length-8&&o<7||t<7&&o>i.length-8)&&!(t>d&&td&&o{p[e]?p[e].push(t):p[e]=[t]})),Object.entries(p).map((([e,t])=>{const o=t.filter((e=>t.every((t=>!te(e,t,n)))));return[Number(e),o]})).forEach((([e,t])=>{t.forEach((t=>{a.push(l.YP``)}))})),Object.entries(p).filter((([e,t])=>t.length>1)).map((([e,t])=>{const o=t.filter((e=>t.some((t=>te(e,t,n)))));return[Number(e),o]})).map((([e,t])=>{t.sort(((e,t)=>et.some((t=>te(e,t,n)))));t?t.push(e):o.push([e])}return[e,o.map((e=>[e[0],e[e.length-1]]))]})).forEach((([e,t])=>{t.forEach((([t,o])=>{a.push(l.YP``)}))})),a}},re=l.iv`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;var le=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,ie=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?ae(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&le(t,o,a),a};let ne=class extends l.oi{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){const e="light"===s.ThemeCtrl.state.themeMode?this.size:this.size-36;return l.YP``}render(){const e={"wcm-dark":"dark"===s.ThemeCtrl.state.themeMode};return l.dy`${this.walletId||this.imageUrl?l.dy``:L.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}
`}};ne.styles=[f.globalCss,re],ie([(0,i.C)()],ne.prototype,"uri",2),ie([(0,i.C)({type:Number})],ne.prototype,"size",2),ie([(0,i.C)()],ne.prototype,"imageId",2),ie([(0,i.C)()],ne.prototype,"walletId",2),ie([(0,i.C)()],ne.prototype,"imageUrl",2),ne=ie([(0,a.M)("wcm-qrcode")],ne);const ce=l.iv`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;var se=Object.defineProperty,de=Object.getOwnPropertyDescriptor,me=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?de(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&se(t,o,a),a};let we=class extends l.oi{constructor(){super(...arguments),this.onChange=()=>null}render(){return l.dy` ${L.SEARCH_ICON}`}};we.styles=[f.globalCss,ce],me([(0,i.C)()],we.prototype,"onChange",2),we=me([(0,a.M)("wcm-search-input")],we);const he=l.iv`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let pe=class extends l.oi{render(){return l.dy``}};pe.styles=[f.globalCss,he],pe=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-spinner")],pe);const ge=l.iv`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;var ue=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,be=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?ve(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&ue(t,o,a),a};let fe=class extends l.oi{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){const e={"wcm-big-bold":"big-bold"===this.variant,"wcm-medium-regular":"medium-regular"===this.variant,"wcm-small-regular":"small-regular"===this.variant,"wcm-small-thin":"small-thin"===this.variant,"wcm-xsmall-regular":"xsmall-regular"===this.variant,"wcm-xsmall-bold":"xsmall-bold"===this.variant,"wcm-color-primary":"primary"===this.color,"wcm-color-secondary":"secondary"===this.color,"wcm-color-tertiary":"tertiary"===this.color,"wcm-color-inverse":"inverse"===this.color,"wcm-color-accnt":"accent"===this.color,"wcm-color-error":"error"===this.color};return l.dy``}};fe.styles=[f.globalCss,ge],be([(0,i.C)()],fe.prototype,"variant",2),be([(0,i.C)()],fe.prototype,"color",2),fe=be([(0,a.M)("wcm-text")],fe);const xe=l.iv`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;var ye=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,ke=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?Ce(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&ye(t,o,a),a};let Oe=class extends l.oi{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?l.dy`RECENT`:this.installed?l.dy`INSTALLED`:null}handleClick(){s.uA.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick()}render(){var e;return l.dy``}};Oe.styles=[f.globalCss,xe],ke([(0,i.C)()],Oe.prototype,"onClick",2),ke([(0,i.C)()],Oe.prototype,"name",2),ke([(0,i.C)()],Oe.prototype,"walletId",2),ke([(0,i.C)()],Oe.prototype,"label",2),ke([(0,i.C)()],Oe.prototype,"imageId",2),ke([(0,i.C)({type:Boolean})],Oe.prototype,"installed",2),ke([(0,i.C)({type:Boolean})],Oe.prototype,"recent",2),Oe=ke([(0,a.M)("wcm-wallet-button")],Oe);const $e=l.iv`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var Ee=Object.defineProperty,Ie=Object.getOwnPropertyDescriptor,Me=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?Ie(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&Ee(t,o,a),a};let Ae=class extends l.oi{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0}render(){var e;const t=null!=(e=this.imageUrl)&&e.length?this.imageUrl:U.getWalletIcon({id:this.walletId,image_id:this.imageId});return l.dy`${t.length?l.dy``:L.WALLET_PLACEHOLDER}`}};Ae.styles=[f.globalCss,$e],Me([(0,i.C)()],Ae.prototype,"walletId",2),Me([(0,i.C)()],Ae.prototype,"imageId",2),Me([(0,i.C)()],Ae.prototype,"imageUrl",2),Ae=Me([(0,a.M)("wcm-wallet-image")],Ae);var Pe=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Le=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?We(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&Pe(t,o,a),a};let Re=class extends l.oi{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(e){try{null!=e&&e.length&&await Promise.all(e.map((async e=>U.preloadImage(e))))}catch{console.info("Unsuccessful attempt at preloading some images",e)}}async preloadListings(){if(s.ConfigCtrl.state.enableExplorer){await s.ExplorerCtrl.getRecomendedWallets(),s.OptionsCtrl.setIsDataLoaded(!0);const{recomendedWallets:e}=s.ExplorerCtrl.state,t=e.map((e=>U.getWalletIcon(e)));await this.loadImages(t)}else s.OptionsCtrl.setIsDataLoaded(!0)}async preloadCustomImages(){const e=U.getCustomImageUrls();await this.loadImages(e)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(e){console.error(e),s.ToastCtrl.openToast("Failed preloading","error")}}};Le([(0,n.S)()],Re.prototype,"preload",2),Re=Le([(0,a.M)("wcm-explorer-context")],Re);Object.defineProperty,Object.getOwnPropertyDescriptor;let Te=class extends l.oi{constructor(){super(),this.unsubscribeTheme=void 0,f.setTheme(),this.unsubscribeTheme=s.ThemeCtrl.subscribe(f.setTheme)}disconnectedCallback(){var e;null==(e=this.unsubscribeTheme)||e.call(this)}};Te=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-theme-context")],Te);const je=l.iv`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let _e=class extends l.oi{onGoToQrcode(){s.AV.push("Qrcode")}render(){const{recomendedWallets:e}=s.ExplorerCtrl.state,t=[...e,...e],o=2*s.zv.RECOMMENDED_WALLET_AMOUNT;return l.dy`${L.MOBILE_ICON}WalletConnect
${[...Array(o)].map(((e,o)=>{const r=t[o%t.length];return r?l.dy``:L.WALLET_PLACEHOLDER}))}
Select Wallet Choose WalletConnect to see supported apps on your device`}};_e.styles=[f.globalCss,je],_e=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-android-wallet-selection")],_e);const De=l.iv`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;var ze=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,Se=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?Ne(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&ze(t,o,a),a};let Ze=class extends l.oi{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=""}svgLoaderTemplate(){var e,t;const o=null!=(t=null==(e=s.ThemeCtrl.state.themeVariables)?void 0:e["--wcm-wallet-icon-large-border-radius"])?t:f.getPreset("--wcm-wallet-icon-large-border-radius");let r=0;r=o.includes("%")?.88*parseInt(o,10):parseInt(o,10),r*=1.17;const a=317-1.57*r,i=425-1.8*r;return l.dy``}render(){const e={"wcm-error":this.isError,"wcm-stale":this.isStale};return l.dy`${this.svgLoaderTemplate()}
${this.isError?"Connection declined":this.label}`}};Ze.styles=[f.globalCss,De],Se([(0,i.C)()],Ze.prototype,"walletId",2),Se([(0,i.C)()],Ze.prototype,"imageId",2),Se([(0,i.C)({type:Boolean})],Ze.prototype,"isError",2),Se([(0,i.C)({type:Boolean})],Ze.prototype,"isStale",2),Se([(0,i.C)()],Ze.prototype,"label",2),Ze=Se([(0,a.M)("wcm-connector-waiting")],Ze);const Be={manualWallets(){var e,t;const{mobileWallets:o,desktopWallets:r}=s.ConfigCtrl.state,l=null==(e=Be.recentWallet())?void 0:e.id,a=s.zv.isMobile()?o:r,i=a?.filter((e=>l!==e.id));return null!=(t=s.zv.isMobile()?i?.map((({id:e,name:t,links:o})=>({id:e,name:t,mobile:o,links:o}))):i?.map((({id:e,name:t,links:o})=>({id:e,name:t,desktop:o,links:o}))))?t:[]},recentWallet:()=>U.getRecentWallet(),recomendedWallets(e=!1){var t;const o=e||null==(t=Be.recentWallet())?void 0:t.id,{recomendedWallets:r}=s.ExplorerCtrl.state;return r.filter((e=>o!==e.id))}},He={onConnecting(e){U.goToConnectingView(e)},manualWalletsTemplate(){return Be.manualWallets().map((e=>l.dy``))},recomendedWalletsTemplate(e=!1){return Be.recomendedWallets(e).map((e=>l.dy``))},recentWalletTemplate(){const e=Be.recentWallet();if(e)return l.dy``}},Ue=l.iv`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Ve=class extends l.oi{render(){const{explorerExcludedWalletIds:e,enableExplorer:t}=s.ConfigCtrl.state,o="ALL"!==e&&t,r=He.manualWalletsTemplate(),a=He.recomendedWalletsTemplate();let i=[He.recentWalletTemplate(),...r,...a];i=i.filter(Boolean);const n=i.length>4||o;let c=[];c=n?i.slice(0,3):i;const d=Boolean(c.length);return l.dy`${L.MOBILE_ICON}Mobile
${L.SCAN_ICON}Scan with your wallet
${d?l.dy`${L.DESKTOP_ICON}Desktop
${c} ${n?l.dy``:null}
`:null}`}};Ve.styles=[f.globalCss,Ue],Ve=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-desktop-wallet-selection")],Ve);const Fe=l.iv`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Ye=class extends l.oi{render(){const{termsOfServiceUrl:e,privacyPolicyUrl:t}=s.ConfigCtrl.state;return e??t?l.dy``:null}};Ye.styles=[f.globalCss,Fe],Ye=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-legal-notice")],Ye);const qe=l.iv`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Qe=class extends l.oi{onQrcode(){s.AV.push("Qrcode")}render(){const{explorerExcludedWalletIds:e,enableExplorer:t}=s.ConfigCtrl.state,o="ALL"!==e&&t,r=He.manualWalletsTemplate(),a=He.recomendedWalletsTemplate();let i=[He.recentWalletTemplate(),...r,...a];i=i.filter(Boolean);const n=i.length>8||o;let c=[];c=n?i.slice(0,7):i;const d=Boolean(c.length);return l.dy`${d?l.dy`${c} ${n?l.dy``:null}
`:null}`}};Qe.styles=[f.globalCss,qe],Qe=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-mobile-wallet-selection")],Qe);const Ke=l.iv`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;var Ge=Object.defineProperty,Xe=Object.getOwnPropertyDescriptor,Je=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?Xe(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&Ge(t,o,a),a};let et=class extends l.oi{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=s.jb.subscribe((e=>{e.open?this.onOpenModalEvent():this.onCloseModalEvent()}))}disconnectedCallback(){var e;null==(e=this.unsubscribeModal)||e.call(this)}get overlayEl(){return U.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return U.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(e){if(document.querySelector("body"))if(e){const e=document.getElementById("wcm-styles");e?.remove()}else document.head.insertAdjacentHTML("beforeend",'')}onCloseModal(e){e.target===e.currentTarget&&s.jb.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout((async()=>{const e=U.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]};await Promise.all([(0,d.j)(this.overlayEl,{opacity:[0,1]},{delay:.1,duration:.2}).finished,(0,d.j)(this.containerEl,e,{delay:.1,duration:.2}).finished]),this.active=!0}),0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();const e=U.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]};await Promise.all([(0,d.j)(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished,(0,d.j)(this.containerEl,e,{duration:.2}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",(e=>{var t;"Escape"===e.key?s.jb.close():"Tab"===e.key&&(null!=(t=e.target)&&t.tagName.includes("wcm-")||this.containerEl.focus())}),this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var e;null==(e=this.abortController)||e.abort(),this.abortController=void 0}render(){const e={"wcm-overlay":!0,"wcm-active":this.active};return l.dy``}};et.styles=[f.globalCss,Ke],Je([(0,n.S)()],et.prototype,"open",2),Je([(0,n.S)()],et.prototype,"active",2),et=Je([(0,a.M)("wcm-modal")],et);const tt=l.iv`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;var ot=Object.defineProperty,rt=Object.getOwnPropertyDescriptor,lt=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?rt(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&ot(t,o,a),a};let at=class extends l.oi{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){s.zv.isMobile()?s.AV.replace("MobileConnecting"):s.AV.replace("MobileQrcodeConnecting")}onDesktop(){s.AV.replace("DesktopConnecting")}onWeb(){s.AV.replace("WebConnecting")}render(){return l.dy`${this.isRetry?l.dy``:null} ${this.isMobile?l.dy`Mobile`:null} ${this.isDesktop?l.dy`Desktop`:null} ${this.isWeb?l.dy`Web`:null}
`}};at.styles=[f.globalCss,tt],lt([(0,i.C)({type:Boolean})],at.prototype,"isMobile",2),lt([(0,i.C)({type:Boolean})],at.prototype,"isDesktop",2),lt([(0,i.C)({type:Boolean})],at.prototype,"isWeb",2),lt([(0,i.C)({type:Boolean})],at.prototype,"isRetry",2),at=lt([(0,a.M)("wcm-platform-selection")],at);const it=l.iv`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let nt=class extends l.oi{onClick(){s.AV.push("WalletExplorer")}render(){const{recomendedWallets:e}=s.ExplorerCtrl.state,t=[...e,...Be.manualWallets()].reverse().slice(0,4);return l.dy``}};nt.styles=[f.globalCss,it],nt=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-view-all-wallets-button")],nt);const ct=l.iv`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var st=Object.defineProperty,dt=Object.getOwnPropertyDescriptor,mt=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?dt(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&st(t,o,a),a};let wt=class extends l.oi{constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout((()=>{const{walletConnectUri:e}=s.OptionsCtrl.state;this.uri=e}),0)}get overlayEl(){return U.getShadowRootElement(this,".wcm-qr-container")}render(){return l.dy`${this.uri?l.dy``:l.dy``}
`}};wt.styles=[f.globalCss,ct],mt([(0,i.C)()],wt.prototype,"walletId",2),mt([(0,i.C)()],wt.prototype,"imageId",2),mt([(0,n.S)()],wt.prototype,"uri",2),wt=mt([(0,a.M)("wcm-walletconnect-qr")],wt);Object.defineProperty,Object.getOwnPropertyDescriptor;let ht=class extends l.oi{viewTemplate(){return s.zv.isAndroid()?l.dy``:s.zv.isMobile()?l.dy``:l.dy``}render(){return l.dy`${this.viewTemplate()}`}};ht.styles=[f.globalCss],ht=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-connect-wallet-view")],ht);const pt=l.iv`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var gt=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,vt=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?ut(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&>(t,o,a),a};let bt=class extends l.oi{constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(e){const{desktop:t,name:o}=s.zv.getWalletRouterData(),r=t?.native;if(r){const t=s.zv.formatNativeUrl(r,e,o);s.zv.openHref(t,"_self")}}openDesktopApp(){const{walletConnectUri:e}=s.OptionsCtrl.state,t=s.zv.getWalletRouterData();U.setRecentWallet(t),e&&this.onFormatAndRedirect(e)}render(){const{name:e,id:t,image_id:o}=s.zv.getWalletRouterData(),{isMobile:r,isWeb:a}=U.getCachedRouterWalletPlatforms();return l.dy`${`Connection can continue loading if ${e} is not installed on your device`}Retry`}};bt.styles=[f.globalCss,pt],vt([(0,n.S)()],bt.prototype,"isError",2),bt=vt([(0,a.M)("wcm-desktop-connecting-view")],bt);const ft=l.iv`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let xt=class extends l.oi{onInstall(e){e&&s.zv.openHref(e,"_blank")}render(){const{name:e,id:t,image_id:o,homepage:r}=s.zv.getWalletRouterData();return l.dy`${`Download ${e} to continue. If multiple browser extensions are installed, disable non ${e} ones and try again`}Download`}};xt.styles=[f.globalCss,ft],xt=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-install-wallet-view")],xt);const yt=l.iv`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;var Ct=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,Ot=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?kt(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&Ct(t,o,a),a};let $t=class extends l.oi{constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(e,t=!1){const{mobile:o,name:r}=s.zv.getWalletRouterData(),l=o?.native,a=o?.universal;if(l&&!t){const t=s.zv.formatNativeUrl(l,e,r);s.zv.openHref(t,"_self")}else if(a){const t=s.zv.formatUniversalUrl(a,e,r);s.zv.openHref(t,"_self")}}openMobileApp(e=!1){const{walletConnectUri:t}=s.OptionsCtrl.state,o=s.zv.getWalletRouterData();U.setRecentWallet(o),t&&this.onFormatAndRedirect(t,e)}onGoToAppStore(e){e&&s.zv.openHref(e,"_blank")}render(){const{name:e,id:t,image_id:o,app:r,mobile:a}=s.zv.getWalletRouterData(),{isWeb:i}=U.getCachedRouterWalletPlatforms(),n=r?.ios,c=a?.universal;return l.dy`Retry${c?l.dy`Still doesn't work? this.openMobileApp(!0)}">Try this alternate link`:null}${`Get ${e}`}
App Store`}};$t.styles=[f.globalCss,yt],Ot([(0,n.S)()],$t.prototype,"isError",2),$t=Ot([(0,a.M)("wcm-mobile-connecting-view")],$t);const Et=l.iv`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let It=class extends l.oi{render(){const{name:e,id:t,image_id:o}=s.zv.getWalletRouterData(),{isDesktop:r,isWeb:a}=U.getCachedRouterWalletPlatforms();return l.dy`${`Scan this QR Code with your phone's camera or inside ${e} app`}`}};It.styles=[f.globalCss,Et],It=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-mobile-qr-connecting-view")],It);Object.defineProperty,Object.getOwnPropertyDescriptor;let Mt=class extends l.oi{render(){return l.dy``}};Mt.styles=[f.globalCss],Mt=((e,t,o,r)=>{for(var l,a=t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=l(a)||a);return a})([(0,a.M)("wcm-qrcode-view")],Mt);const At=l.iv`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var Pt=Object.defineProperty,Wt=Object.getOwnPropertyDescriptor,Lt=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?Wt(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&Pt(t,o,a),a};let Rt=class extends l.oi{constructor(){super(...arguments),this.loading=!s.ExplorerCtrl.state.wallets.listings.length,this.firstFetch=!s.ExplorerCtrl.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=U.debounce((e=>{e.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=e,s.ExplorerCtrl.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),s.ExplorerCtrl.resetSearch())}))}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var e;null==(e=this.intersectionObserver)||e.disconnect()}get placeholderEl(){return U.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver((([e])=>{e.isIntersecting&&(!this.search||!this.firstFetch)&&this.fetchWallets()})),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){const{wallets:e,search:t}=s.ExplorerCtrl.state,{listings:o,total:r}=this.search?t:e;return r<=40||o.length>=r}async fetchWallets(){var e;const{wallets:t,search:o}=s.ExplorerCtrl.state,{listings:r,total:l,page:a}=this.search?o:t;if(!this.endReached&&(this.firstFetch||l>40&&r.lengthU.getWalletIcon(e)));await Promise.all([...r.map((async e=>U.preloadImage(e))),s.zv.wait(300)]),this.endReached=this.isLastPage()}catch(e){console.error(e),s.ToastCtrl.openToast(U.getErrorMessage(e),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(e){s.zv.isAndroid()?U.handleMobileLinking(e):U.goToConnectingView(e)}onSearchChange(e){const{value:t}=e.target;this.searchDebounce(t)}render(){const{wallets:e,search:t}=s.ExplorerCtrl.state,{listings:o}=this.search?t:e,r=this.loading&&!o.length,a=this.search.length>=3;let i=He.manualWalletsTemplate(),n=He.recomendedWalletsTemplate(!0);a&&(i=i.filter((({values:e})=>U.caseSafeIncludes(e[0],this.search))),n=n.filter((({values:e})=>U.caseSafeIncludes(e[0],this.search))));const d=!this.loading&&!o.length&&!n.length,m={"wcm-loading":r,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":d};return l.dy`${r?null:i} ${r?null:n} ${r?null:o.map((e=>l.dy`${e?l.dy``:null}`))}
${d?l.dy`No results found`:null} ${!d&&this.loading?l.dy``:null}
`}};Rt.styles=[f.globalCss,At],Lt([(0,n.S)()],Rt.prototype,"loading",2),Lt([(0,n.S)()],Rt.prototype,"firstFetch",2),Lt([(0,n.S)()],Rt.prototype,"search",2),Lt([(0,n.S)()],Rt.prototype,"endReached",2),Rt=Lt([(0,a.M)("wcm-wallet-explorer-view")],Rt);const Tt=l.iv`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var jt=Object.defineProperty,_t=Object.getOwnPropertyDescriptor,Dt=(e,t,o,r)=>{for(var l,a=r>1?void 0:r?_t(t,o):t,i=e.length-1;i>=0;i--)(l=e[i])&&(a=(r?l(t,o,a):l(a))||a);return r&&a&&jt(t,o,a),a};let zt=class extends l.oi{constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(e){const{desktop:t,name:o}=s.zv.getWalletRouterData(),r=t?.universal;if(r){const t=s.zv.formatUniversalUrl(r,e,o);s.zv.openHref(t,"_blank")}}openWebWallet(){const{walletConnectUri:e}=s.OptionsCtrl.state,t=s.zv.getWalletRouterData();U.setRecentWallet(t),e&&this.onFormatAndRedirect(e)}render(){const{name:e,id:t,image_id:o}=s.zv.getWalletRouterData(),{isMobile:r,isDesktop:a}=U.getCachedRouterWalletPlatforms(),i=s.zv.isMobile();return l.dy`${`${e} web app has opened in a new tab. Go there, accept the connection, and come back`}Retry`}};zt.styles=[f.globalCss,Tt],Dt([(0,n.S)()],zt.prototype,"isError",2),zt=Dt([(0,a.M)("wcm-web-connecting-view")],zt)}}]);
\ No newline at end of file
diff --git a/gateway/dist/5340.df408476e03d2fd18f3d.bundle.js b/gateway/dist/5340.df408476e03d2fd18f3d.bundle.js
new file mode 100644
index 00000000..05c5feb5
--- /dev/null
+++ b/gateway/dist/5340.df408476e03d2fd18f3d.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[5340],{5340:(n,s,t)=>{t.r(s),t.d(s,{default:()=>o});const o='\n\n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/5379.6276dd7de455c8424eb9.bundle.js b/gateway/dist/5379.6276dd7de455c8424eb9.bundle.js
new file mode 100644
index 00000000..9a92d5c7
--- /dev/null
+++ b/gateway/dist/5379.6276dd7de455c8424eb9.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[5379],{45379:(e,n,t)=>{var r,o,c;function i(){return function(e,n,t,r){return new(t||(t=Promise))((function(n,o){function c(e){try{u(r.next(e))}catch(e){o(e)}}function i(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var r;e.done?n(e.value):(r=e.value,r instanceof t?r:new t((function(e){e(r)}))).then(c,i)}u((r=r.apply(e,[])).next())}))}(this,0,void 0,(function(){var e;return function(e,n){var t,r,o,c,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return c={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function u(u){return function(a){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;c&&(c=0,u[0]&&(i=0)),i;)try{if(t=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]r,SupportedProviders:()=>o,loadConnectKit:()=>i}),"function"==typeof SuppressedError&&SuppressedError,(c=r||(r={})).LedgerConnect="LedgerConnect",c.WalletConnect="WalletConnect",function(e){e.Ethereum="Ethereum"}(o||(o={}))}}]);
\ No newline at end of file
diff --git a/gateway/dist/542.2bf8743d6aad88b92128.bundle.js b/gateway/dist/542.2bf8743d6aad88b92128.bundle.js
new file mode 100644
index 00000000..ef644c40
--- /dev/null
+++ b/gateway/dist/542.2bf8743d6aad88b92128.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[542],{75261:(n,i,t)=>{t.r(i),t.d(i,{default:()=>e});const e='\n\n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/5464.1b4e492f7c7688d816d3.bundle.js b/gateway/dist/5464.1b4e492f7c7688d816d3.bundle.js
new file mode 100644
index 00000000..5073f008
--- /dev/null
+++ b/gateway/dist/5464.1b4e492f7c7688d816d3.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[5464],{65464:(e,t,l)=>{l.r(t),l.d(t,{default:()=>s});const s='\n\t\n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/5636.c32aefeb510130058325.bundle.js b/gateway/dist/5636.c32aefeb510130058325.bundle.js
new file mode 100644
index 00000000..72f91bf4
--- /dev/null
+++ b/gateway/dist/5636.c32aefeb510130058325.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[5636],{35636:(A,I,E)=>{E.r(I),E.d(I,{default:()=>g});const g='\n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/5759.1c4de5f662e19df04bc0.bundle.js b/gateway/dist/5759.1c4de5f662e19df04bc0.bundle.js
new file mode 100644
index 00000000..a7ae3626
--- /dev/null
+++ b/gateway/dist/5759.1c4de5f662e19df04bc0.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[5759],{35759:(t,n,o)=>{o.r(n),o.d(n,{default:()=>e});const e='\n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/5784.b055a79a856bc9e4cf64.bundle.js b/gateway/dist/5784.b055a79a856bc9e4cf64.bundle.js
new file mode 100644
index 00000000..a53bb000
--- /dev/null
+++ b/gateway/dist/5784.b055a79a856bc9e4cf64.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[5784],{5784:(c,n,s)=>{s.r(n),s.d(n,{default:()=>l});const l='\n\n\x3c!-- Generator: Adobe Illustrator 24.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n\n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/5815.c27abaecf4fcc44f931e.bundle.js b/gateway/dist/5815.c27abaecf4fcc44f931e.bundle.js
new file mode 100644
index 00000000..103f33fd
--- /dev/null
+++ b/gateway/dist/5815.c27abaecf4fcc44f931e.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[5815],{75815:(e,C,l)=>{l.r(C),l.d(C,{default:()=>t});const t='\n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/5891.e57289fd45c2c4cc838e.bundle.js b/gateway/dist/5891.e57289fd45c2c4cc838e.bundle.js
new file mode 100644
index 00000000..88d1b645
--- /dev/null
+++ b/gateway/dist/5891.e57289fd45c2c4cc838e.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[5891],{25891:(e,l,n)=>{n.r(l),n.d(l,{default:()=>i});const i='\n \n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/6307.66b6c835a559de4d4b0b.bundle.js b/gateway/dist/6307.66b6c835a559de4d4b0b.bundle.js
new file mode 100644
index 00000000..d5fa6b6e
--- /dev/null
+++ b/gateway/dist/6307.66b6c835a559de4d4b0b.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[6307],{36307:(A,D,e)=>{e.r(D),e.d(D,{default:()=>t});const t='\n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/6316.c572059b53edacecfece.bundle.js b/gateway/dist/6316.c572059b53edacecfece.bundle.js
new file mode 100644
index 00000000..90681860
--- /dev/null
+++ b/gateway/dist/6316.c572059b53edacecfece.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[6316],{66316:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});const i='\n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/6563.05ef78190733e887c740.bundle.js b/gateway/dist/6563.05ef78190733e887c740.bundle.js
new file mode 100644
index 00000000..32b63c72
--- /dev/null
+++ b/gateway/dist/6563.05ef78190733e887c740.bundle.js
@@ -0,0 +1 @@
+(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[6563],{36563:()=>{}}]);
\ No newline at end of file
diff --git a/gateway/dist/6584.4f4481684820aad338a0.bundle.js b/gateway/dist/6584.4f4481684820aad338a0.bundle.js
new file mode 100644
index 00000000..2bb59e74
--- /dev/null
+++ b/gateway/dist/6584.4f4481684820aad338a0.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[6584],{16584:(e,t,l)=>{l.r(t),l.d(t,{default:()=>s});const s='\n\t\n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/6662.91065206b8d4efe79db0.bundle.js b/gateway/dist/6662.91065206b8d4efe79db0.bundle.js
new file mode 100644
index 00000000..97b252c5
--- /dev/null
+++ b/gateway/dist/6662.91065206b8d4efe79db0.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[6662],{56662:(n,s,e)=>{e.r(s),e.d(s,{default:()=>a});const a='\n\n\n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/6777.c702c33079140bc2ec54.bundle.js b/gateway/dist/6777.c702c33079140bc2ec54.bundle.js
new file mode 100644
index 00000000..51f856cd
--- /dev/null
+++ b/gateway/dist/6777.c702c33079140bc2ec54.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[6777],{26777:(n,e,t)=>{t.r(e),t.d(e,{default:()=>i});const i=''}}]);
\ No newline at end of file
diff --git a/gateway/dist/6831.2d95707f4cfc658ac457.bundle.js b/gateway/dist/6831.2d95707f4cfc658ac457.bundle.js
new file mode 100644
index 00000000..779190bc
--- /dev/null
+++ b/gateway/dist/6831.2d95707f4cfc658ac457.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[6831],{72478:(e,t,s)=>{s.d(t,{jc:()=>i,o5:()=>r}),Symbol();const o=Symbol(),n=Object.getPrototypeOf,a=new WeakMap,r=e=>(e=>e&&(a.has(e)?a.get(e):n(e)===Object.prototype||n(e)===Array.prototype))(e)&&e[o]||null,i=(e,t=!0)=>{a.set(e,t)}},22928:(e,t,s)=>{s.d(t,{ConfigCtrl:()=>g,zv:()=>u,uA:()=>f,ExplorerCtrl:()=>$,jb:()=>B,OptionsCtrl:()=>b,AV:()=>p,ThemeCtrl:()=>G,ToastCtrl:()=>X});var o=s(72478);const n=e=>"object"==typeof e&&null!==e,a=new WeakMap,r=new WeakSet,[i]=((e=Object.is,t=((e,t)=>new Proxy(e,t)),s=(e=>n(e)&&!r.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)),i=(e=>{switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e}}),l=new WeakMap,c=((e,t,s=i)=>{const n=l.get(e);if((null==n?void 0:n[0])===t)return n[1];const d=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return(0,o.jc)(d,!0),l.set(e,[t,d]),Reflect.ownKeys(e).forEach((t=>{if(Object.getOwnPropertyDescriptor(d,t))return;const n=Reflect.get(e,t),i={value:n,enumerable:!0,configurable:!0};if(r.has(n))(0,o.jc)(n,!1);else if(n instanceof Promise)delete i.value,i.get=()=>s(n);else if(a.has(n)){const[e,t]=a.get(n);i.value=c(e,t(),s)}Object.defineProperty(d,t,i)})),Object.preventExtensions(d)}),d=new WeakMap,p=[1,1],u=(i=>{if(!n(i))throw new Error("object required");const l=d.get(i);if(l)return l;let h=p[0];const f=new Set,m=(e,t=++p[0])=>{h!==t&&(h=t,f.forEach((s=>s(e,t))))};let b=p[1];const y=e=>(t,s)=>{const o=[...t];o[1]=[e,...o[1]],m(o,s)},g=new Map,v=e=>{var t;const s=g.get(e);s&&(g.delete(e),null==(t=s[1])||t.call(s))},w=Array.isArray(i)?[]:Object.create(Object.getPrototypeOf(i)),C=t(w,{deleteProperty(e,t){const s=Reflect.get(e,t);v(t);const o=Reflect.deleteProperty(e,t);return o&&m(["delete",[t],s]),o},set(t,i,l,c){const p=Reflect.has(t,i),h=Reflect.get(t,i,c);if(p&&(e(h,l)||d.has(l)&&e(h,d.get(l))))return!0;v(i),n(l)&&(l=(0,o.o5)(l)||l);let b=l;if(l instanceof Promise)l.then((e=>{l.status="fulfilled",l.value=e,m(["resolve",[i],e])})).catch((e=>{l.status="rejected",l.reason=e,m(["reject",[i],e])}));else{!a.has(l)&&s(l)&&(b=u(l));const e=!r.has(b)&&a.get(b);e&&((e,t)=>{if(g.has(e))throw new Error("prop listener already exists");if(f.size){const s=t[3](y(e));g.set(e,[t,s])}else g.set(e,[t])})(i,e)}return Reflect.set(t,i,b,c),m(["set",[i],l,h]),!0}});d.set(i,C);const I=[w,(e=++p[1])=>(b===e||f.size||(b=e,g.forEach((([t])=>{const s=t[1](e);s>h&&(h=s)}))),h),c,e=>(f.add(e),1===f.size&&g.forEach((([e,t],s)=>{if(t)throw new Error("remove already exists");const o=e[3](y(s));g.set(s,[e,o])})),()=>{f.delete(e),0===f.size&&g.forEach((([e,t],s)=>{t&&(t(),g.set(s,[e]))}))})];return a.set(C,I),Reflect.ownKeys(i).forEach((e=>{const t=Object.getOwnPropertyDescriptor(i,e);"value"in t&&(C[e]=i[e],delete t.value,delete t.writable),Object.defineProperty(w,e,t)})),C}))=>[u,a,r,e,t,s,i,l,c,d,p])();function l(e={}){return i(e)}function c(e,t,s){const o=a.get(e);let n;o||console.warn("Please use proxy object");const r=[],i=o[3];let l=!1;const c=i((e=>{r.push(e),s?t(r.splice(0)):n||(n=Promise.resolve().then((()=>{n=void 0,l&&t(r.splice(0))})))}));return l=!0,()=>{l=!1,c()}}const d=l({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),p={state:d,subscribe:e=>c(d,(()=>e(d))),push(e,t){e!==d.view&&(d.view=e,t&&(d.data=t),d.history.push(e))},reset(e){d.view=e,d.history=[e]},replace(e){d.history.length>1&&(d.history[d.history.length-1]=e,d.view=e)},goBack(){if(d.history.length>1){d.history.pop();const[e]=d.history.slice(-1);d.view=e}},setData(e){d.data=e}},u={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile:()=>typeof window<"u"&&Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),isAndroid:()=>u.isMobile()&&navigator.userAgent.toLowerCase().includes("android"),isIos(){const e=navigator.userAgent.toLowerCase();return u.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl:e=>e.startsWith("http://")||e.startsWith("https://"),isArray:e=>Array.isArray(e)&&e.length>0,formatNativeUrl(e,t,s){if(u.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let o=e;return o.includes("://")||(o=e.replaceAll("/","").replaceAll(":",""),o=`${o}://`),o.endsWith("/")||(o=`${o}/`),this.setWalletConnectDeepLink(o,s),`${o}wc?uri=${encodeURIComponent(t)}`},formatUniversalUrl(e,t,s){if(!u.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let o=e;return o.endsWith("/")||(o=`${o}/`),this.setWalletConnectDeepLink(o,s),`${o}wc?uri=${encodeURIComponent(t)}`},wait:async e=>new Promise((t=>{setTimeout(t,e)})),openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(u.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(u.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=null==(e=p.state.data)?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},h=l({enabled:typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),userSessionId:"",events:[],connectedWalletId:void 0}),f={state:h,subscribe:e=>c(h.events,(()=>e(function(e,t){const s=a.get(e);s||console.warn("Please use proxy object");const[o,n,r]=s;return r(o,n(),void 0)}(h.events[h.events.length-1])))),initialize(){h.enabled&&typeof(null==crypto?void 0:crypto.randomUUID)<"u"&&(h.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){h.connectedWalletId=e},click(e){if(h.enabled){const t={type:"CLICK",name:e.name,userSessionId:h.userSessionId,timestamp:Date.now(),data:e};h.events.push(t)}},track(e){if(h.enabled){const t={type:"TRACK",name:e.name,userSessionId:h.userSessionId,timestamp:Date.now(),data:e};h.events.push(t)}},view(e){if(h.enabled){const t={type:"VIEW",name:e.name,userSessionId:h.userSessionId,timestamp:Date.now(),data:e};h.events.push(t)}}},m=l({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),b={state:m,subscribe:e=>c(m,(()=>e(m))),setChains(e){m.chains=e},setWalletConnectUri(e){m.walletConnectUri=e},setIsCustomDesktop(e){m.isCustomDesktop=e},setIsCustomMobile(e){m.isCustomMobile=e},setIsDataLoaded(e){m.isDataLoaded=e},setIsUiLoaded(e){m.isUiLoaded=e},setIsAuth(e){m.isAuth=e}},y=l({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),g={state:y,subscribe:e=>c(y,(()=>e(y))),setConfig(e){var t,s;f.initialize(),b.setChains(e.chains),b.setIsAuth(Boolean(e.enableAuthMode)),b.setIsCustomMobile(Boolean(null==(t=e.mobileWallets)?void 0:t.length)),b.setIsCustomDesktop(Boolean(null==(s=e.desktopWallets)?void 0:s.length)),u.setModalVersionInStorage(),Object.assign(y,e)}};var v=Object.defineProperty,w=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,O=(e,t,s)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;const W="https://explorer-api.walletconnect.com",E="wcm",j="js-2.6.2";async function A(e,t){const s=((e,t)=>{for(var s in t||(t={}))C.call(t,s)&&O(e,s,t[s]);if(w)for(var s of w(t))I.call(t,s)&&O(e,s,t[s]);return e})({sdkType:E,sdkVersion:j},t),o=new URL(e,W);return o.searchParams.append("projectId",g.state.projectId),Object.entries(s).forEach((([e,t])=>{t&&o.searchParams.append(e,String(t))})),(await fetch(o)).json()}const L=async e=>A("/w3m/v1/getDesktopListings",e),k=async e=>A("/w3m/v1/getMobileListings",e),M=async e=>A("/w3m/v1/getAllListings",e),P=e=>`${W}/w3m/v1/getWalletImage/${e}?projectId=${g.state.projectId}&sdkType=${E}&sdkVersion=${j}`,U=e=>`${W}/w3m/v1/getAssetImage/${e}?projectId=${g.state.projectId}&sdkType=${E}&sdkVersion=${j}`;var D=Object.defineProperty,S=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,x=(e,t,s)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;const R=u.isMobile(),_=l({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),$={state:_,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=g.state;if("NONE"===e||"ALL"===t&&!e)return _.recomendedWallets;if(u.isArray(e)){const t={recommendedIds:e.join(",")},{listings:s}=await M(t),o=Object.values(s);o.sort(((t,s)=>e.indexOf(t.id)-e.indexOf(s.id))),_.recomendedWallets=o}else{const{chains:e,isAuth:s}=b.state,o=e?.join(","),n=u.isArray(t),a={page:1,sdks:s?"auth_v1":void 0,entries:u.RECOMMENDED_WALLET_AMOUNT,chains:o,version:2,excludedIds:n?t.join(","):void 0},{listings:r}=R?await k(a):await L(a);_.recomendedWallets=Object.values(r)}return _.recomendedWallets},async getWallets(e){const t=((e,t)=>{for(var s in t||(t={}))N.call(t,s)&&x(e,s,t[s]);if(S)for(var s of S(t))T.call(t,s)&&x(e,s,t[s]);return e})({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:o}=g.state,{recomendedWallets:n}=_;if("ALL"===o)return _.wallets;n.length?t.excludedIds=n.map((e=>e.id)).join(","):u.isArray(s)&&(t.excludedIds=s.join(",")),u.isArray(o)&&(t.excludedIds=[t.excludedIds,o].filter(Boolean).join(",")),b.state.isAuth&&(t.sdks="auth_v1");const{page:a,search:r}=e,{listings:i,total:l}=R?await k(t):await L(t),c=Object.values(i),d=r?"search":"wallets";return _[d]={listings:[..._[d].listings,...c],total:l,page:a??1},{listings:c,total:l}},getWalletImageUrl:e=>P(e),getAssetImageUrl:e=>U(e),resetSearch(){_.search={listings:[],total:0,page:1}}},V=l({open:!1}),B={state:V,subscribe:e=>c(V,(()=>e(V))),open:async e=>new Promise((t=>{const{isUiLoaded:s,isDataLoaded:o}=b.state;if(u.removeWalletConnectDeepLink(),b.setWalletConnectUri(e?.uri),b.setChains(e?.chains),p.reset("ConnectWallet"),s&&o)V.open=!0,t();else{const e=setInterval((()=>{const s=b.state;s.isUiLoaded&&s.isDataLoaded&&(clearInterval(e),V.open=!0,t())}),200)}})),close(){V.open=!1}};var H=Object.defineProperty,K=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,q=(e,t,s)=>t in e?H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;const F=l({themeMode:typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}),G={state:F,subscribe:e=>c(F,(()=>e(F))),setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(F.themeMode=t),s&&(F.themeVariables=((e,t)=>{for(var s in t||(t={}))z.call(t,s)&&q(e,s,t[s]);if(K)for(var s of K(t))J.call(t,s)&&q(e,s,t[s]);return e})({},s))}},Q=l({open:!1,message:"",variant:"success"}),X={state:Q,subscribe:e=>c(Q,(()=>e(Q))),openToast(e,t){Q.open=!0,Q.message=e,Q.variant=t},closeToast(){Q.open=!1}}},96831:(e,t,s)=>{s.d(t,{WalletConnectModal:()=>n});var o=s(22928);class n{constructor(e){this.openModal=o.jb.open,this.closeModal=o.jb.close,this.subscribeModal=o.jb.subscribe,this.setTheme=o.ThemeCtrl.setThemeConfig,o.ThemeCtrl.setThemeConfig(e),o.ConfigCtrl.setConfig(e),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.all([s.e(3626),s.e(5259)]).then(s.bind(s,15259));const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),o.OptionsCtrl.setIsUiLoaded(!0)}}}}}]);
\ No newline at end of file
diff --git a/gateway/dist/6883.7bcffa849dba91c44f70.bundle.js b/gateway/dist/6883.7bcffa849dba91c44f70.bundle.js
new file mode 100644
index 00000000..2c04e090
--- /dev/null
+++ b/gateway/dist/6883.7bcffa849dba91c44f70.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[6883],{46883:(e,i,r)=>{r.r(i),r.d(i,{default:()=>n});const n=''}}]);
\ No newline at end of file
diff --git a/gateway/dist/6884.0288a8499631145c041e.bundle.js b/gateway/dist/6884.0288a8499631145c041e.bundle.js
new file mode 100644
index 00000000..b7b79cc4
--- /dev/null
+++ b/gateway/dist/6884.0288a8499631145c041e.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[6884],{96884:(e,n,t)=>{t.r(n),t.d(n,{default:()=>i});const i='\n\n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/7312.21dd953e282706c35ab1.bundle.js b/gateway/dist/7312.21dd953e282706c35ab1.bundle.js
new file mode 100644
index 00000000..0e6a1e4c
--- /dev/null
+++ b/gateway/dist/7312.21dd953e282706c35ab1.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[7312],{27312:(t,n,e)=>{e.r(n),e.d(n,{default:()=>Q});var o=e(4511),i=e(86469),r=e(98536),a=e(4490),s=e(36840);function l(t,{from:n,to:e},i={}){const r=getComputedStyle(t),a="none"===r.transform?"":r.transform,[s,l]=r.transformOrigin.split(" ").map(parseFloat),c=n.left+n.width*s/e.width-(e.left+s),d=n.top+n.height*l/e.height-(e.top+l),{delay:f=0,duration:p=(t=>120*Math.sqrt(t)),easing:v=o.an}=i;return{delay:f,duration:(0,o.Z)(p)?p(Math.sqrt(c*c+d*d)):p,easing:v,css:(t,o)=>{const i=o*c,r=o*d,s=t+o*n.width/e.width,l=t+o*n.height/e.height;return`transform: ${a} translate(${i}px, ${r}px) scale(${s}, ${l});`}}}function c(t){(0,o.a)(t,"svelte-13cuwwo","div.svelte-13cuwwo{box-sizing:content-box}.border.svelte-13cuwwo{border:2px solid;border-radius:120px;overflow:hidden}")}function d(t){let n,e;return{c(){n=(0,o.j)("div"),(0,o.k)(n,"class","border svelte-13cuwwo"),(0,o.k)(n,"style",e=`\n width: ${t[2]-2*t[3]}px; \n height: ${t[2]-2*t[3]}px; \n border-color: var(${t[1]}); \n padding: ${t[3]}px; \n background-color: ${t[4]};\n border-radius: 50%;\n display: flex;\n justify-content: center;\n `)},m(e,i){(0,o.b)(e,n,i),n.innerHTML=t[0]},p(t,[i]){1&i&&(n.innerHTML=t[0]),30&i&&e!==(e=`\n width: ${t[2]-2*t[3]}px; \n height: ${t[2]-2*t[3]}px; \n border-color: var(${t[1]}); \n padding: ${t[3]}px; \n background-color: ${t[4]};\n border-radius: 50%;\n display: flex;\n justify-content: center;\n `)&&(0,o.k)(n,"style",e)},i:o.n,o:o.n,d(t){t&&(0,o.d)(n)}}}function f(t,n,e){let{icon:o}=n,{borderColorVar:i}=n,{size:r}=n,{padding:a=0}=n,{background:s="transparent"}=n;return t.$$set=t=>{"icon"in t&&e(0,o=t.icon),"borderColorVar"in t&&e(1,i=t.borderColorVar),"size"in t&&e(2,r=t.size),"padding"in t&&e(3,a=t.padding),"background"in t&&e(4,s=t.background)},[o,i,r,a,s]}e(51206),e(42705),e(40448),e(70794),e(28451),e(46748),e(72378),e(26729);class p extends o.S{constructor(t){super(),(0,o.i)(this,t,f,d,o.s,{icon:0,borderColorVar:1,size:2,padding:3,background:4},c)}}function v(t){(0,o.a)(t,"svelte-jvic9v","div.notification-icons-wrapper.svelte-jvic9v{height:32px;width:32px}.border.svelte-jvic9v{border-radius:8px}div.notification-icon.svelte-jvic9v{padding:6px}div.pending-icon.svelte-jvic9v{animation:svelte-jvic9v-blink 2s ease-in infinite;height:100%;width:100%;padding:7px}@keyframes svelte-jvic9v-blink{from,to{opacity:1}50%{opacity:0.2}}div.border-action.svelte-jvic9v{height:32px;min-width:32px;border-radius:8px;overflow:hidden;will-change:transform}div.border-action.svelte-jvic9v:before{content:'';background-image:conic-gradient(#b1b7f2 20deg, #6370e5 120deg);height:140%;width:140%;position:absolute;left:-25%;top:-25%;animation:svelte-jvic9v-rotate 2s infinite linear}div.chain-icon-container.svelte-jvic9v{left:18px;top:18px}@keyframes svelte-jvic9v-rotate{100%{transform:rotate(-360deg)}}")}function u(t){let n,e,i,r,a,s,l,c,d=o.ao[t[1].type].eventIcon+"",f=!t[1].id.includes("customNotification")&&!t[1].id.includes("preflight"),p="pending"===t[1].type&&y(),v=f&&m(t);return{c(){n=(0,o.j)("div"),p&&p.c(),e=(0,o.G)(),i=(0,o.j)("div"),r=(0,o.j)("div"),l=(0,o.G)(),v&&v.c(),(0,o.k)(r,"class",a=(0,o.l)("notification-icon flex items-center justify-center "+("pending"===t[1].type?"pending-icon":""))+" svelte-jvic9v"),(0,o.k)(i,"class","flex items-center justify-center border relative notification-icons-wrapper svelte-jvic9v"),(0,o.k)(i,"style",s=`background:${o.ao[t[1].type].backgroundColor}; color: ${o.ao[t[1].type].iconColor||""}; ${"pending"===t[1].type?"height: 28px; width: 28px; margin: 2px;":`border: 2px solid ${o.ao[t[1].type].borderColor}`}; `),(0,o.k)(n,"class","relative")},m(t,a){(0,o.b)(t,n,a),p&&p.m(n,null),(0,o.m)(n,e),(0,o.m)(n,i),(0,o.m)(i,r),r.innerHTML=d,(0,o.m)(n,l),v&&v.m(n,null),c=!0},p(t,l){"pending"===t[1].type?p||(p=y(),p.c(),p.m(n,e)):p&&(p.d(1),p=null),(!c||2&l)&&d!==(d=o.ao[t[1].type].eventIcon+"")&&(r.innerHTML=d),(!c||2&l&&a!==(a=(0,o.l)("notification-icon flex items-center justify-center "+("pending"===t[1].type?"pending-icon":""))+" svelte-jvic9v"))&&(0,o.k)(r,"class",a),(!c||2&l&&s!==(s=`background:${o.ao[t[1].type].backgroundColor}; color: ${o.ao[t[1].type].iconColor||""}; ${"pending"===t[1].type?"height: 28px; width: 28px; margin: 2px;":`border: 2px solid ${o.ao[t[1].type].borderColor}`}; `))&&(0,o.k)(i,"style",s),2&l&&(f=!t[1].id.includes("customNotification")&&!t[1].id.includes("preflight")),f?v?(v.p(t,l),2&l&&(0,o.x)(v,1)):(v=m(t),v.c(),(0,o.x)(v,1),v.m(n,null)):v&&((0,o.y)(),(0,o.A)(v,1,1,(()=>{v=null})),(0,o.z)())},i(t){c||((0,o.x)(v),c=!0)},o(t){(0,o.A)(v),c=!1},d(t){t&&(0,o.d)(n),p&&p.d(),v&&v.d()}}}function y(t){let n;return{c(){n=(0,o.j)("div"),(0,o.k)(n,"class","border-action absolute svelte-jvic9v")},m(t,e){(0,o.b)(t,n,e)},d(t){t&&(0,o.d)(n)}}}function m(t){let n,e,i;return e=new p({props:{icon:t[0].icon,size:16,background:t[0].color,borderColorVar:"--notify-onboard-background, var(--onboard-gray-600, var(--gray-600))",padding:3}}),{c(){n=(0,o.j)("div"),(0,o.F)(e.$$.fragment),(0,o.k)(n,"class","absolute chain-icon-container svelte-jvic9v")},m(t,r){(0,o.b)(t,n,r),(0,o.I)(e,n,null),i=!0},p(t,n){const o={};1&n&&(o.icon=t[0].icon),1&n&&(o.background=t[0].color),e.$set(o)},i(t){i||((0,o.x)(e.$$.fragment,t),i=!0)},o(t){(0,o.A)(e.$$.fragment,t),i=!1},d(t){t&&(0,o.d)(n),(0,o.K)(e)}}}function b(t){let n,e,i=t[1].type&&u(t);return{c(){i&&i.c(),n=(0,o.e)()},m(t,r){i&&i.m(t,r),(0,o.b)(t,n,r),e=!0},p(t,[e]){t[1].type?i?(i.p(t,e),2&e&&(0,o.x)(i,1)):(i=u(t),i.c(),(0,o.x)(i,1),i.m(n.parentNode,n)):i&&((0,o.y)(),(0,o.A)(i,1,1,(()=>{i=null})),(0,o.z)())},i(t){e||((0,o.x)(i),e=!0)},o(t){(0,o.A)(i),e=!1},d(t){i&&i.d(t),t&&(0,o.d)(n)}}}function h(t,n,e){let{chainStyles:i=o.a6}=n,{notification:r}=n;return t.$$set=t=>{"chainStyles"in t&&e(0,i=t.chainStyles),"notification"in t&&e(1,r=t.notification)},[i,r]}class g extends o.S{constructor(t){super(),(0,o.i)(this,t,h,b,o.s,{chainStyles:0,notification:1},v)}}function k(t){(0,o.a)(t,"svelte-pm7idu","div.svelte-pm7idu{display:flex;justify-content:center;font-size:inherit;font-family:inherit;margin:0 1.5rem 0 0.75rem}span.svelte-pm7idu{font-family:inherit;display:flex;align-items:center;margin:0 2px}.time.svelte-pm7idu{color:var(\n --notify-onboard-timer-color,\n var(--onboard-gray-300, var(--gray-300))\n );margin-left:4px}")}function x(t){let n,e,i,r,a=t[2](t[1]-t[0])+"";return{c(){n=(0,o.t)("-\n "),e=(0,o.j)("span"),i=(0,o.t)(a),r=(0,o.t)("\n ago"),(0,o.k)(e,"class","svelte-pm7idu")},m(t,a){(0,o.b)(t,n,a),(0,o.b)(t,e,a),(0,o.m)(e,i),(0,o.b)(t,r,a)},p(t,n){3&n&&a!==(a=t[2](t[1]-t[0])+"")&&(0,o.v)(i,a)},d(t){t&&(0,o.d)(n),t&&(0,o.d)(e),t&&(0,o.d)(r)}}}function w(t){let n,e=t[0]&&x(t);return{c(){n=(0,o.j)("div"),e&&e.c(),(0,o.k)(n,"class","time svelte-pm7idu")},m(t,i){(0,o.b)(t,n,i),e&&e.m(n,null)},p(t,[o]){t[0]?e?e.p(t,o):(e=x(t),e.c(),e.m(n,null)):e&&(e.d(1),e=null)},i:o.n,o:o.n,d(t){t&&(0,o.d)(n),e&&e.d()}}}function $(t,n,e){let r,a;(0,o.c)(t,i._,(t=>e(3,r=t))),(0,o.c)(t,i.SP,(t=>e(4,a=t)));let{startTime:s}=n,l=Date.now();const c=setInterval((()=>{e(1,l=Date.now())}),1e3);return(0,o.al)((()=>{clearInterval(c)})),t.$$set=t=>{"startTime"in t&&e(0,s=t.startTime)},[s,l,function(t){const n=Math.floor(t/1e3),e=n<0?0:n;return e>=60?`${Math.floor(e/60).toLocaleString(a)} ${r("notify.time.minutes")}`:`${e.toLocaleString(a)} ${r("notify.time.seconds")}`}]}class j extends o.S{constructor(t){super(),(0,o.i)(this,t,$,w,o.s,{startTime:0},k)}}function z(t){(0,o.a)(t,"svelte-1otz6tt","div.notify-transaction-data.svelte-1otz6tt{font-size:var(\n --notify-onboard-transaction-font-size,\n var(--onboard-font-size-6, var(--font-size-6))\n );font-family:inherit;margin:0px 20px 0px 8px;justify-content:center}.hash-time.svelte-1otz6tt{display:inline-flex;margin-top:4px;font-size:var(\n --notify-onboard-hash-time-font-size,\n var(--onboard-font-size-7, var(--font-size-7))\n );line-height:var(\n --notify-onboard-hash-time-font-line-height,\n var(--onboard-font-line-height-4, var(--font-line-height-4))\n )}.address-hash.svelte-1otz6tt{color:var(\n --notify-onboard-address-hash-color,\n var(--onboard-primary-200, var(--primary-200))\n )}a.address-hash.svelte-1otz6tt{color:var(\n --notify-onboard-anchor-color,\n var(--onboard-primary-400, var(--primary-400))\n )}a.svelte-1otz6tt{display:flex;text-decoration:none;color:inherit}.transaction-status.svelte-1otz6tt{color:var(--notify-onboard-transaction-status, inherit);line-height:var(\n --notify-onboard-font-size-5,\n var(--onboard-font-size-5, var(--font-size-5))\n );font-weight:400;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}")}function C(t){let n,e,i,r;function a(t,n){return t[0].link?P:L}let s=a(t),l=s(t);return i=new j({props:{startTime:t[0].startTime}}),{c(){n=(0,o.j)("span"),l.c(),e=(0,o.G)(),(0,o.F)(i.$$.fragment),(0,o.k)(n,"class","hash-time svelte-1otz6tt")},m(t,a){(0,o.b)(t,n,a),l.m(n,null),(0,o.m)(n,e),(0,o.I)(i,n,null),r=!0},p(t,o){s===(s=a(t))&&l?l.p(t,o):(l.d(1),l=s(t),l&&(l.c(),l.m(n,e)));const r={};1&o&&(r.startTime=t[0].startTime),i.$set(r)},i(t){r||((0,o.x)(i.$$.fragment,t),r=!0)},o(t){(0,o.A)(i.$$.fragment,t),r=!1},d(t){t&&(0,o.d)(n),l.d(),(0,o.K)(i)}}}function L(t){let n,e,i=(0,o.E)(t[0].id)+"";return{c(){n=(0,o.j)("div"),e=(0,o.t)(i),(0,o.k)(n,"class","address-hash svelte-1otz6tt")},m(t,i){(0,o.b)(t,n,i),(0,o.m)(n,e)},p(t,n){1&n&&i!==(i=(0,o.E)(t[0].id)+"")&&(0,o.v)(e,i)},d(t){t&&(0,o.d)(n)}}}function P(t){let n,e,i,r=(0,o.E)(t[0].id)+"";return{c(){n=(0,o.j)("a"),e=(0,o.t)(r),(0,o.k)(n,"class","address-hash svelte-1otz6tt"),(0,o.k)(n,"href",i=t[0].link),(0,o.k)(n,"target","_blank"),(0,o.k)(n,"rel","noreferrer noopener")},m(t,i){(0,o.b)(t,n,i),(0,o.m)(n,e)},p(t,a){1&a&&r!==(r=(0,o.E)(t[0].id)+"")&&(0,o.v)(e,r),1&a&&i!==(i=t[0].link)&&(0,o.k)(n,"href",i)},d(t){t&&(0,o.d)(n)}}}function T(t){let n,e,i,r,a,s=t[0].message+"",l=t[0].id&&!t[0].id.includes("customNotification")&&!t[0].id.includes("preflight"),c=l&&C(t);return{c(){n=(0,o.j)("div"),e=(0,o.j)("span"),i=(0,o.t)(s),r=(0,o.G)(),c&&c.c(),(0,o.k)(e,"class","transaction-status svelte-1otz6tt"),(0,o.k)(n,"class","flex flex-column notify-transaction-data svelte-1otz6tt")},m(t,s){(0,o.b)(t,n,s),(0,o.m)(n,e),(0,o.m)(e,i),(0,o.m)(n,r),c&&c.m(n,null),a=!0},p(t,[e]){(!a||1&e)&&s!==(s=t[0].message+"")&&(0,o.v)(i,s),1&e&&(l=t[0].id&&!t[0].id.includes("customNotification")&&!t[0].id.includes("preflight")),l?c?(c.p(t,e),1&e&&(0,o.x)(c,1)):(c=C(t),c.c(),(0,o.x)(c,1),c.m(n,null)):c&&((0,o.y)(),(0,o.A)(c,1,1,(()=>{c=null})),(0,o.z)())},i(t){a||((0,o.x)(c),a=!0)},o(t){(0,o.A)(c),a=!1},d(t){t&&(0,o.d)(n),c&&c.d()}}}function S(t,n,e){let{notification:o}=n;return t.$$set=t=>{"notification"in t&&e(0,o=t.notification)},[o]}class A extends o.S{constructor(t){super(),(0,o.i)(this,t,S,T,o.s,{notification:0},z)}}const M=["txPool"],F=["main","matic-main"],G=["Ledger","Trezor","Keystone","KeepKey","D'CENT"],I=t=>M.includes(t),E=t=>F.includes(t),R=t=>t&&G.includes(t.label);async function H({type:t,wallet:n,transaction:e}){const{from:i,input:r,value:a,to:l,nonce:c,gas:d,network:f}=e,p=o.ap[f],{gasPriceProbability:v}=o.a3.get().notify.replacement,{gas:u,apiKey:y}=o.af,[m]=await u.get({chains:[o.ap[f]],endpoint:"blockPrices",apiKey:y}),{maxFeePerGas:b,maxPriorityFeePerGas:h}=m.blockPrices[0].estimatedPrices.find((({confidence:n})=>n===("speedup"===t?v.speedup:v.cancel))),g=(0,o.aq)(b),k=(0,o.aq)(h),x="0x"===r?{}:{data:r};return n.provider.request({method:"eth_sendTransaction",params:[{type:"0x2",from:i,to:"cancel"===t?i:l,chainId:parseInt(p),value:`${s.O$.from(a).toHexString()}`,nonce:(0,o.ar)(c),gasLimit:(0,o.ar)(d),maxFeePerGas:g,maxPriorityFeePerGas:k,...x}]})}function K(t){(0,o.a)(t,"svelte-ftkynd",".bn-notify-notification.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{--backround-color:var(--notify-onboard-background, var(--w3o-backround-color, var(--gray-700)));--foreground-color:var(--w3o-foreground-color, var(--gray-600));--text-color:var(--w3o-text-color, #FFF);--border-color:var(--w3o-border-color);font-family:inherit;transition:background 300ms ease-in-out, color 300ms ease-in-out;pointer-events:all;backdrop-filter:blur(5px);width:100%;min-height:56px;display:flex;flex-direction:column;position:relative;overflow:hidden;border:1px solid transparent;border-radius:var(\n --notify-onboard-border-radius,\n var(--onboard-border-radius-4, var(--border-radius-4))\n );background:var(--foreground-color);color:var(--text-color)}.bn-notify-notification-inner.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{padding:0.75rem}.bn-notify-notification.svelte-ftkynd:hover>div.bn-notify-notification-inner.svelte-ftkynd>div.notify-close-btn-desktop.svelte-ftkynd{visibility:visible;opacity:1}div.notify-close-btn.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{margin-left:auto;margin-bottom:auto;height:24px;width:24px;position:absolute;top:8px;right:8px;justify-content:center;align-items:center}div.notify-close-btn-desktop.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{visibility:hidden;transition:visibility 0.15s linear, opacity 0.15s linear;opacity:0}.notify-close-btn.svelte-ftkynd .close-icon.svelte-ftkynd.svelte-ftkynd{width:20px;margin:auto;color:var(--text-color)}.notify-close-btn.svelte-ftkynd>.close-icon.svelte-ftkynd.svelte-ftkynd{color:var(--notify-onboard-close-icon-color)}.notify-close-btn.svelte-ftkynd:hover>.close-icon.svelte-ftkynd.svelte-ftkynd{color:var(--notify-onboard-close-icon-hover)}.transaction-status.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{color:var(\n --notify-onboard-transaction-status-color,\n var(--onboard-primary-100, var(--primary-100))\n );line-height:14px}.dropdown.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{height:0px;overflow:hidden;transition:height 150ms ease-in-out}.dropdown-visible.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{height:48px}.dropdown-buttons.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{background-color:var(\n --notify-onboard-dropdown-background,\n var(--onboard-gray-700, var(--gray-700))\n );width:100%;padding:8px}.dropdown-button.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{padding:4px 12px;border-radius:var(\n --notify-onboard-dropdown-border-radius,\n var(--onboard-border-radius-5, var(--border-radius-5))\n );background-color:transparent;font-size:var(\n --notify-onboard-dropdown-font-size,\n var(--onboard-font-size-6, var(--font-size-6))\n );color:var(\n --notify-onboard-dropdown-text-color,\n var(--onboard-primary-400, var(--primary-400))\n );transition:all 150ms ease-in-out;cursor:pointer}.dropdown-button.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd:hover{background:var(\n --notify-onboard-dropdown-btn-hover-background,\n rgba(146, 155, 237, 0.2)\n )}")}function O(t){let n,e,i,r,a,s;return{c(){n=(0,o.j)("div"),e=(0,o.j)("button"),e.textContent="Cancel",i=(0,o.G)(),r=(0,o.j)("button"),r.textContent="Speed-up",(0,o.k)(e,"class","dropdown-button svelte-ftkynd"),(0,o.k)(r,"class","dropdown-button svelte-ftkynd"),(0,o.k)(n,"class","dropdown-buttons flex items-center justify-end svelte-ftkynd")},m(l,c){(0,o.b)(l,n,c),(0,o.m)(n,e),(0,o.m)(n,i),(0,o.m)(n,r),a||(s=[(0,o.p)(e,"click",t[9]),(0,o.p)(r,"click",t[10])],a=!0)},p:o.n,d(t){t&&(0,o.d)(n),a=!1,(0,o.L)(s)}}}function _(t){let n,e,i,r,a,s,l,c,d,f,p,v,u,y;i=new g({props:{notification:t[0],chainStyles:o.as[o.ap[t[0].network]]}}),a=new A({props:{notification:t[0]}});let m="txPool"===t[0].eventCode&&O(t);return{c(){n=(0,o.j)("div"),e=(0,o.j)("div"),(0,o.F)(i.$$.fragment),r=(0,o.G)(),(0,o.F)(a.$$.fragment),s=(0,o.G)(),l=(0,o.j)("div"),c=(0,o.j)("div"),d=(0,o.G)(),f=(0,o.j)("div"),m&&m.c(),(0,o.k)(c,"class","flex items-center close-icon svelte-ftkynd"),(0,o.k)(l,"class","notify-close-btn notify-close-btn-"+t[4].type+" pointer flex svelte-ftkynd"),(0,o.k)(e,"class","flex bn-notify-notification-inner svelte-ftkynd"),(0,o.k)(f,"class","dropdown svelte-ftkynd"),(0,o.H)(f,"dropdown-visible",t[2]&&t[5]&&I(t[0].eventCode)&&E(t[0].network)&&R(t[7])),(0,o.k)(n,"class",p="bn-notify-notification bn-notify-notification-"+t[0].type+"} svelte-ftkynd"),(0,o.H)(n,"bn-notify-clickable",t[0].onClick)},m(p,b){(0,o.b)(p,n,b),(0,o.m)(n,e),(0,o.I)(i,e,null),(0,o.m)(e,r),(0,o.I)(a,e,null),(0,o.m)(e,s),(0,o.m)(e,l),(0,o.m)(l,c),c.innerHTML='\n\n',(0,o.m)(n,d),(0,o.m)(n,f),m&&m.m(f,null),v=!0,u||(y=[(0,o.p)(l,"click",(0,o.J)(t[8])),(0,o.p)(n,"mouseenter",t[11]),(0,o.p)(n,"mouseleave",t[12]),(0,o.p)(n,"click",t[13])],u=!0)},p(t,[e]){const r={};1&e&&(r.notification=t[0]),1&e&&(r.chainStyles=o.as[o.ap[t[0].network]]),i.$set(r);const s={};1&e&&(s.notification=t[0]),a.$set(s),"txPool"===t[0].eventCode?m?m.p(t,e):(m=O(t),m.c(),m.m(f,null)):m&&(m.d(1),m=null),(!v||165&e)&&(0,o.H)(f,"dropdown-visible",t[2]&&t[5]&&I(t[0].eventCode)&&E(t[0].network)&&R(t[7])),(!v||1&e&&p!==(p="bn-notify-notification bn-notify-notification-"+t[0].type+"} svelte-ftkynd"))&&(0,o.k)(n,"class",p),(!v||1&e)&&(0,o.H)(n,"bn-notify-clickable",t[0].onClick)},i(t){v||((0,o.x)(i.$$.fragment,t),(0,o.x)(a.$$.fragment,t),v=!0)},o(t){(0,o.A)(i.$$.fragment,t),(0,o.A)(a.$$.fragment,t),v=!1},d(t){t&&(0,o.d)(n),(0,o.K)(i),(0,o.K)(a),m&&m.d(),u=!1,(0,o.L)(y)}}}function D(t,n,e){let r,a;(0,o.c)(t,o.w,(t=>e(15,r=t))),(0,o.c)(t,i._,(t=>e(3,a=t)));const{device:s,gas:l}=o.af;let c,{notification:d}=n,{updateParentOnRemove:f}=n,p=!1;const v=o.at.getValue().find((({hash:t})=>t===d.id)),u=v&&r.find((({accounts:t})=>!!t.find((({address:t})=>t.toLowerCase()===v.from.toLowerCase()))));return(0,o.al)((()=>{clearTimeout(c)})),t.$$set=t=>{"notification"in t&&e(0,d=t.notification),"updateParentOnRemove"in t&&e(1,f=t.updateParentOnRemove)},t.$$.update=()=>{1&t.$$.dirty&&d.autoDismiss&&(c=setTimeout((()=>{(0,o.au)(d.id),(0,o.av)(d.id)}),d.autoDismiss))},[d,f,p,a,s,l,v,u,()=>{(0,o.au)(d.id),(0,o.av)(d.id),f()},async()=>{try{await H({type:"cancel",wallet:u,transaction:v})}catch(t){const n=`${v.hash.slice(0,9)}:txReplaceError${v.hash.slice(-5)}`;(0,o.aw)({id:n,type:"hint",eventCode:"txError",message:a("notify.transaction.txReplaceError"),key:n,autoDismiss:4e3})}},async()=>{try{await H({type:"speedup",wallet:u,transaction:v})}catch(t){const n=`${v.hash.slice(0,9)}:txReplaceError${v.hash.slice(-5)}`;(0,o.aw)({id:n,type:"hint",eventCode:"txError",message:a("notify.transaction.txReplaceError"),key:n,autoDismiss:4e3})}},()=>e(2,p=!0),()=>e(2,p=!1),t=>d.onClick&&d.onClick(t)]}class N extends o.S{constructor(t){super(),(0,o.i)(this,t,D,_,o.s,{notification:0,updateParentOnRemove:1},K)}}function V(t){(0,o.a)(t,"svelte-1h8mmo3","ul.svelte-1h8mmo3{padding-left:0;display:flex;flex-flow:column nowrap;font-size:var(\n --notify-onboard-font-size,\n var(--onboard-font-size-5, var(--font-size-5))\n );list-style-type:none;overflow:visible;scrollbar-width:none;box-sizing:border-box;z-index:var(--notify-onboard-z-index, 300);font-family:var(\n --notify-onboard-font-family,\n var(--onboard-font-family-normal, inherit)\n );margin:8px 0;pointer-events:all}.y-scroll.svelte-1h8mmo3{overflow-y:scroll}.y-visible.svelte-1h8mmo3{overflow-y:visible}li.notification-list-top.svelte-1h8mmo3:not(:first-child){margin-top:8px}li.notification-list-bottom.svelte-1h8mmo3:not(:first-child){margin-bottom:8px}ul.bn-notify-bottomLeft.svelte-1h8mmo3,ul.bn-notify-bottomRight.svelte-1h8mmo3{flex-direction:column-reverse}@media only screen and (max-width: 450px){ul.svelte-1h8mmo3{width:100%}}.bn-notify-clickable:hover{cursor:pointer}.svelte-1h8mmo3::-webkit-scrollbar{display:none}")}function q(t,n,e){const o=t.slice();return o[12]=n[e],o}function Z(t){let n,e,i,r,a=[],s=new Map,l=t[2];const c=t=>t[12].key;for(let n=0;n{f&&(c&&c.end(1),s=(0,o.V)(e,o.ab,{duration:1200,delay:300,x:n[3],y:n[4],easing:U}),s.start())})),f=!0)},o(t){(0,o.A)(i.$$.fragment,t),s&&s.invalidate(),c=(0,o.ak)(e,o.X,{duration:300,easing:o.an}),f=!1},d(t){t&&(0,o.d)(e),(0,o.K)(i),t&&c&&c.end(),p=!1,v()}}}function J(t){let n,e,i=t[2].length&&Z(t);return{c(){i&&i.c(),n=(0,o.e)()},m(t,r){i&&i.m(t,r),(0,o.b)(t,n,r),e=!0},p(t,[e]){t[2].length?i?(i.p(t,e),4&e&&(0,o.x)(i,1)):(i=Z(t),i.c(),(0,o.x)(i,1),i.m(n.parentNode,n)):i&&((0,o.y)(),(0,o.A)(i,1,1,(()=>{i=null})),(0,o.z)())},i(t){e||((0,o.x)(i),e=!0)},o(t){(0,o.A)(i),e=!1},d(t){i&&i.d(t),t&&(0,o.d)(n)}}}function U(t){return Math.sin(-13*(t+1)*Math.PI/2)*Math.pow(2,-35*t)+1}function X(t,n,e){let i;const{device:s}=o.af,l=o.a3.select("accountCenter").pipe((0,r.O)(o.a3.get().accountCenter),(0,a.d)(1));(0,o.c)(t,l,(t=>e(6,i=t)));let c,d,{position:f}=n,{sharedContainer:p}=n,{notifications:v}=n;c=0,d=0;let u="y-scroll";const y=function(){let t=null;return(n,e)=>{clearTimeout(t),t=setTimeout(n,e)}}();return t.$$set=t=>{"position"in t&&e(0,f=t.position),"sharedContainer"in t&&e(1,p=t.sharedContainer),"notifications"in t&&e(2,v=t.notifications)},t.$$.update=()=>{1&t.$$.dirty&&(f.includes("top")?e(4,d=-50):e(4,d=50))},[f,p,v,0,d,u,i,s,l,()=>{"y-visible"!==u&&e(5,u="y-visible"),y((function(){e(5,u="y-scroll")}),1e3)},function(n){o.ai.call(this,t,n)}]}class Q extends o.S{constructor(t){super(),(0,o.i)(this,t,X,J,o.s,{position:0,sharedContainer:1,notifications:2},V)}}}}]);
\ No newline at end of file
diff --git a/gateway/dist/7608.41c189d2107d499f4f2b.bundle.js b/gateway/dist/7608.41c189d2107d499f4f2b.bundle.js
new file mode 100644
index 00000000..e4acbd7e
--- /dev/null
+++ b/gateway/dist/7608.41c189d2107d499f4f2b.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[7608],{87608:(t,o,s)=>{s.r(o),s.d(o,{default:()=>n});const n='\n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/7707.1661a88c65928c01bb81.bundle.js b/gateway/dist/7707.1661a88c65928c01bb81.bundle.js
new file mode 100644
index 00000000..d055f4d9
--- /dev/null
+++ b/gateway/dist/7707.1661a88c65928c01bb81.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[7707],{77707:(a,e,s)=>{s.d(e,{take:()=>k.q,takeUntil:()=>t.R});var k=s(74727),t=s(83505)}}]);
\ No newline at end of file
diff --git a/gateway/dist/7913.d0170396893d5b82c50f.bundle.js b/gateway/dist/7913.d0170396893d5b82c50f.bundle.js
new file mode 100644
index 00000000..120219fb
--- /dev/null
+++ b/gateway/dist/7913.d0170396893d5b82c50f.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[7913],{67913:(t,i,n)=>{n.r(i),n.d(i,{default:()=>e});const e='\n\n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/8036.5b020003e4102e1cdb93.bundle.js b/gateway/dist/8036.5b020003e4102e1cdb93.bundle.js
new file mode 100644
index 00000000..31059dcd
--- /dev/null
+++ b/gateway/dist/8036.5b020003e4102e1cdb93.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[8036],{46028:(C,e,l)=>{l.r(e),l.d(e,{default:()=>s});const s='\n\n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/8046.1edab8bc1b19c7d374ae.bundle.js b/gateway/dist/8046.1edab8bc1b19c7d374ae.bundle.js
new file mode 100644
index 00000000..8b1865a0
--- /dev/null
+++ b/gateway/dist/8046.1edab8bc1b19c7d374ae.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[8046],{18046:(s,e,w)=>{w.r(e),w.d(e,{default:()=>C});const C=''}}]);
\ No newline at end of file
diff --git a/gateway/dist/825.d1b05c39b7924a677e31.bundle.js b/gateway/dist/825.d1b05c39b7924a677e31.bundle.js
new file mode 100644
index 00000000..0841a8e5
--- /dev/null
+++ b/gateway/dist/825.d1b05c39b7924a677e31.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[825],{70825:(n,t,e)=>{e.r(t),e.d(t,{default:()=>i});const i=''}}]);
\ No newline at end of file
diff --git a/gateway/dist/8300.add2b583f1fedafbfc87.bundle.js b/gateway/dist/8300.add2b583f1fedafbfc87.bundle.js
new file mode 100644
index 00000000..00c5f783
--- /dev/null
+++ b/gateway/dist/8300.add2b583f1fedafbfc87.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[8300],{8300:(C,t,n)=>{n.r(t),n.d(t,{default:()=>e});const e='\n\n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/8494.3d43baa4ab521e97481e.bundle.js b/gateway/dist/8494.3d43baa4ab521e97481e.bundle.js
new file mode 100644
index 00000000..0cada004
--- /dev/null
+++ b/gateway/dist/8494.3d43baa4ab521e97481e.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[8494],{48494:(s,c,e)=>{e.r(c),e.d(c,{default:()=>a});const a=''}}]);
\ No newline at end of file
diff --git a/gateway/dist/8500.6ef153dc68d44d4fc1aa.bundle.js b/gateway/dist/8500.6ef153dc68d44d4fc1aa.bundle.js
new file mode 100644
index 00000000..8f3f49d9
--- /dev/null
+++ b/gateway/dist/8500.6ef153dc68d44d4fc1aa.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[8500],{18500:(e,t,l)=>{l.r(t),l.d(t,{default:()=>i});const i=''}}]);
\ No newline at end of file
diff --git a/gateway/dist/9240.c4780a1c4c1e4a445d92.bundle.js b/gateway/dist/9240.c4780a1c4c1e4a445d92.bundle.js
new file mode 100644
index 00000000..acee9cf0
--- /dev/null
+++ b/gateway/dist/9240.c4780a1c4c1e4a445d92.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[9240],{19240:(M,I,N)=>{N.r(I),N.d(I,{default:()=>j});const j="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIyIiBoZWlnaHQ9IjEyNCIgdmlld0JveD0iMCAwIDEyMiAxMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxtYXNrIGlkPSJtYXNrMF8zMF8xMTAiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMjIiIGhlaWdodD0iMTI0Ij4KPHBhdGggZD0iTTEyMS43ODcgMzQuODMzMUw2OS4zODc2IDAuNDc2NTYyVjE5LjY4NTVMMTAzLjAwMiA0MS41Mjg4TDk5LjA0NzQgNTQuMDQySDY5LjM4NzZWNjkuOTU4SDk5LjA0NzRMMTAzLjAwMiA4Mi40NzEyTDY5LjM4NzYgMTA0LjMxNFYxMjMuNTIzTDEyMS43ODcgODkuMjc2N0wxMTMuMjE4IDYyLjA1NDlMMTIxLjc4NyAzNC44MzMxWiIgZmlsbD0iIzFEMUQxQiIvPgo8cGF0aCBkPSJNMjMuNzk5MyA2OS45NThINTMuMzQ5M1Y1NC4wNDJIMjMuNjg5NEwxOS44NDQ2IDQxLjUyODhMNTMuMzQ5MyAxOS42ODU1VjAuNDc2NTYyTDAuOTUwMTk1IDM0LjgzMzFMOS41MTg2IDYyLjA1NDlMMC45NTAxOTUgODkuMjc2N0w1My40NTkxIDEyMy41MjNWMTA0LjMxNEwxOS44NDQ2IDgyLjQ3MTJMMjMuNzk5MyA2OS45NThaIiBmaWxsPSIjMUQxRDFCIi8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF8zMF8xMTApIj4KPHBhdGggZD0iTTEyMS43ODcgMzQuODMzMUw2OS4zODc2IDAuNDc2NTYyVjE5LjY4NTVMMTAzLjAwMiA0MS41Mjg4TDk5LjA0NzQgNTQuMDQySDY5LjM4NzZWNjkuOTU4SDk5LjA0NzRMMTAzLjAwMiA4Mi40NzEyTDY5LjM4NzYgMTA0LjMxNFYxMjMuNTIzTDEyMS43ODcgODkuMjc2N0wxMTMuMjE4IDYyLjA1NDlMMTIxLjc4NyAzNC44MzMxWiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTIzLjc5OTMgNjkuOTU4SDUzLjM0OTNWNTQuMDQySDIzLjY4OTRMMTkuODQ0NiA0MS41Mjg4TDUzLjM0OTMgMTkuNjg1NVYwLjQ3NjU2MkwwLjk1MDE5NSAzNC44MzMxTDkuNTE4NiA2Mi4wNTQ5TDAuOTUwMTk1IDg5LjI3NjdMNTMuNDU5MSAxMjMuNTIzVjEwNC4zMTRMMTkuODQ0NiA4Mi40NzEyTDIzLjc5OTMgNjkuOTU4WiIgZmlsbD0id2hpdGUiLz4KPHJlY3QgeD0iMS4xMDYzMiIgeT0iMC40NzY1NjIiIHdpZHRoPSIxMzMuNzQ0IiBoZWlnaHQ9IjEzNi4wODUiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8zMF8xMTApIi8+CjxlbGxpcHNlIGN4PSI4LjQzMTc2IiBjeT0iMjcuNDYwMiIgcng9IjExNy42MzkiIHJ5PSIxMjcuNTQ1IiB0cmFuc2Zvcm09InJvdGF0ZSgtMzMuOTMwMyA4LjQzMTc2IDI3LjQ2MDIpIiBmaWxsPSJ1cmwoI3BhaW50MV9yYWRpYWxfMzBfMTEwKSIvPgo8L2c+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfMzBfMTEwIiB4MT0iMTA1LjA4NCIgeTE9IjEzMi41OTQiIHgyPSI2OS44NDM5IiB5Mj0iLTEyLjI3NjUiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzBCNDZGOSIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNCQkZCRTAiLz4KPC9saW5lYXJHcmFkaWVudD4KPHJhZGlhbEdyYWRpZW50IGlkPSJwYWludDFfcmFkaWFsXzMwXzExMCIgY3g9IjAiIGN5PSIwIiByPSIxIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgZ3JhZGllbnRUcmFuc2Zvcm09InRyYW5zbGF0ZSg4LjQzMTc1IDI3LjQ2MDIpIHJvdGF0ZSg3Mi4yNTU3KSBzY2FsZSg5Ni40OTc5IDkwLjQ1NDMpIj4KPHN0b3Agb2Zmc2V0PSIwLjExOTc5MiIgc3RvcC1jb2xvcj0iIzg5NTJGRiIgc3RvcC1vcGFjaXR5PSIwLjg3Ii8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0RBQkRGRiIgc3RvcC1vcGFjaXR5PSIwIi8+CjwvcmFkaWFsR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg=="}}]);
\ No newline at end of file
diff --git a/gateway/dist/9343.2f6223db98fe471da9f4.bundle.js b/gateway/dist/9343.2f6223db98fe471da9f4.bundle.js
new file mode 100644
index 00000000..587195db
--- /dev/null
+++ b/gateway/dist/9343.2f6223db98fe471da9f4.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[9343],{72478:(e,t,s)=>{s.d(t,{jc:()=>i,o5:()=>r}),Symbol();const o=Symbol(),n=Object.getPrototypeOf,a=new WeakMap,r=e=>(e=>e&&(a.has(e)?a.get(e):n(e)===Object.prototype||n(e)===Array.prototype))(e)&&e[o]||null,i=(e,t=!0)=>{a.set(e,t)}},28448:(e,t,s)=>{s.d(t,{ConfigCtrl:()=>g,zv:()=>u,uA:()=>h,ExplorerCtrl:()=>$,jb:()=>B,OptionsCtrl:()=>b,AV:()=>p,ThemeCtrl:()=>G,ToastCtrl:()=>X});var o=s(72478);const n=e=>"object"==typeof e&&null!==e,a=new WeakMap,r=new WeakSet,[i]=((e=Object.is,t=((e,t)=>new Proxy(e,t)),s=(e=>n(e)&&!r.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)),i=(e=>e.configurable&&e.enumerable&&e.writable),l=(e=>{switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e}}),c=new WeakMap,d=((e,t,s=l)=>{const n=c.get(e);if((null==n?void 0:n[0])===t)return n[1];const i=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return(0,o.jc)(i,!0),c.set(e,[t,i]),Reflect.ownKeys(e).forEach((t=>{if(Object.getOwnPropertyDescriptor(i,t))return;const n=Reflect.get(e,t),l={value:n,enumerable:!0,configurable:!0};if(r.has(n))(0,o.jc)(n,!1);else if(n instanceof Promise)delete l.value,l.get=()=>s(n);else if(a.has(n)){const[e,t]=a.get(n);l.value=d(e,t(),s)}Object.defineProperty(i,t,l)})),Object.preventExtensions(i)}),p=new WeakMap,u=[1,1],f=(l=>{if(!n(l))throw new Error("object required");const c=p.get(l);if(c)return c;let h=u[0];const m=new Set,b=(e,t=++u[0])=>{h!==t&&(h=t,m.forEach((s=>s(e,t))))};let y=u[1];const g=e=>(t,s)=>{const o=[...t];o[1]=[e,...o[1]],b(o,s)},v=new Map,w=e=>{var t;const s=v.get(e);s&&(v.delete(e),null==(t=s[1])||t.call(s))},C=Array.isArray(l)?[]:Object.create(Object.getPrototypeOf(l)),I=(t,i,l,c,d)=>{if(t&&(e(i,c)||p.has(c)&&e(i,p.get(c))))return;w(l),n(c)&&(c=(0,o.o5)(c)||c);let u=c;if(c instanceof Promise)c.then((e=>{c.status="fulfilled",c.value=e,b(["resolve",[l],e])})).catch((e=>{c.status="rejected",c.reason=e,b(["reject",[l],e])}));else{!a.has(c)&&s(c)&&(u=f(c));const e=!r.has(u)&&a.get(u);e&&((e,t)=>{if(v.has(e))throw new Error("prop listener already exists");if(m.size){const s=t[3](g(e));v.set(e,[t,s])}else v.set(e,[t])})(l,e)}d(u),b(["set",[l],c,i])},O=t(C,{deleteProperty(e,t){const s=Reflect.get(e,t);w(t);const o=Reflect.deleteProperty(e,t);return o&&b(["delete",[t],s]),o},set(e,t,s,o){const n=Reflect.has(e,t),a=Reflect.get(e,t,o);return I(n,a,t,s,(s=>{Reflect.set(e,t,s,o)})),!0},defineProperty(e,t,s){if(i(s)){const o=Reflect.getOwnPropertyDescriptor(e,t);if(!o||i(o))return I(!!o&&"value"in o,null==o?void 0:o.value,t,s.value,(o=>{Reflect.defineProperty(e,t,{...s,value:o})})),!0}return Reflect.defineProperty(e,t,s)}});p.set(l,O);const W=[C,(e=++u[1])=>(y===e||m.size||(y=e,v.forEach((([t])=>{const s=t[1](e);s>h&&(h=s)}))),h),d,e=>(m.add(e),1===m.size&&v.forEach((([e,t],s)=>{if(t)throw new Error("remove already exists");const o=e[3](g(s));v.set(s,[e,o])})),()=>{m.delete(e),0===m.size&&v.forEach((([e,t],s)=>{t&&(t(),v.set(s,[e]))}))})];return a.set(O,W),Reflect.ownKeys(l).forEach((e=>{const t=Object.getOwnPropertyDescriptor(l,e);"value"in t&&(O[e]=l[e],delete t.value,delete t.writable),Object.defineProperty(C,e,t)})),O}))=>[f,a,r,e,t,s,i,l,c,d,p,u])();function l(e={}){return i(e)}function c(e,t,s){const o=a.get(e);let n;o||console.warn("Please use proxy object");const r=[],i=o[3];let l=!1;const c=i((e=>{r.push(e),s?t(r.splice(0)):n||(n=Promise.resolve().then((()=>{n=void 0,l&&t(r.splice(0))})))}));return l=!0,()=>{l=!1,c()}}const d=l({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),p={state:d,subscribe:e=>c(d,(()=>e(d))),push(e,t){e!==d.view&&(d.view=e,t&&(d.data=t),d.history.push(e))},reset(e){d.view=e,d.history=[e]},replace(e){d.history.length>1&&(d.history[d.history.length-1]=e,d.view=e)},goBack(){if(d.history.length>1){d.history.pop();const[e]=d.history.slice(-1);d.view=e}},setData(e){d.data=e}},u={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile:()=>typeof window<"u"&&Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),isAndroid:()=>u.isMobile()&&navigator.userAgent.toLowerCase().includes("android"),isIos(){const e=navigator.userAgent.toLowerCase();return u.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl:e=>e.startsWith("http://")||e.startsWith("https://"),isArray:e=>Array.isArray(e)&&e.length>0,formatNativeUrl(e,t,s){if(u.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let o=e;return o.includes("://")||(o=e.replaceAll("/","").replaceAll(":",""),o=`${o}://`),o.endsWith("/")||(o=`${o}/`),this.setWalletConnectDeepLink(o,s),`${o}wc?uri=${encodeURIComponent(t)}`},formatUniversalUrl(e,t,s){if(!u.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let o=e;return o.endsWith("/")||(o=`${o}/`),this.setWalletConnectDeepLink(o,s),`${o}wc?uri=${encodeURIComponent(t)}`},wait:async e=>new Promise((t=>{setTimeout(t,e)})),openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(u.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(u.WCM_VERSION,"2.6.1")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=null==(e=p.state.data)?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},f=l({enabled:typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),userSessionId:"",events:[],connectedWalletId:void 0}),h={state:f,subscribe:e=>c(f.events,(()=>e(function(e,t){const s=a.get(e);s||console.warn("Please use proxy object");const[o,n,r]=s;return r(o,n(),void 0)}(f.events[f.events.length-1])))),initialize(){f.enabled&&typeof(null==crypto?void 0:crypto.randomUUID)<"u"&&(f.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){f.connectedWalletId=e},click(e){if(f.enabled){const t={type:"CLICK",name:e.name,userSessionId:f.userSessionId,timestamp:Date.now(),data:e};f.events.push(t)}},track(e){if(f.enabled){const t={type:"TRACK",name:e.name,userSessionId:f.userSessionId,timestamp:Date.now(),data:e};f.events.push(t)}},view(e){if(f.enabled){const t={type:"VIEW",name:e.name,userSessionId:f.userSessionId,timestamp:Date.now(),data:e};f.events.push(t)}}},m=l({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),b={state:m,subscribe:e=>c(m,(()=>e(m))),setChains(e){m.chains=e},setWalletConnectUri(e){m.walletConnectUri=e},setIsCustomDesktop(e){m.isCustomDesktop=e},setIsCustomMobile(e){m.isCustomMobile=e},setIsDataLoaded(e){m.isDataLoaded=e},setIsUiLoaded(e){m.isUiLoaded=e},setIsAuth(e){m.isAuth=e}},y=l({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),g={state:y,subscribe:e=>c(y,(()=>e(y))),setConfig(e){var t,s;h.initialize(),b.setChains(e.chains),b.setIsAuth(Boolean(e.enableAuthMode)),b.setIsCustomMobile(Boolean(null==(t=e.mobileWallets)?void 0:t.length)),b.setIsCustomDesktop(Boolean(null==(s=e.desktopWallets)?void 0:s.length)),u.setModalVersionInStorage(),Object.assign(y,e)}};var v=Object.defineProperty,w=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,O=(e,t,s)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;const W="https://explorer-api.walletconnect.com",E="wcm",j="js-2.6.1";async function A(e,t){const s=((e,t)=>{for(var s in t||(t={}))C.call(t,s)&&O(e,s,t[s]);if(w)for(var s of w(t))I.call(t,s)&&O(e,s,t[s]);return e})({sdkType:E,sdkVersion:j},t),o=new URL(e,W);return o.searchParams.append("projectId",g.state.projectId),Object.entries(s).forEach((([e,t])=>{t&&o.searchParams.append(e,String(t))})),(await fetch(o)).json()}const L=async e=>A("/w3m/v1/getDesktopListings",e),k=async e=>A("/w3m/v1/getMobileListings",e),P=async e=>A("/w3m/v1/getAllListings",e),M=e=>`${W}/w3m/v1/getWalletImage/${e}?projectId=${g.state.projectId}&sdkType=${E}&sdkVersion=${j}`,U=e=>`${W}/w3m/v1/getAssetImage/${e}?projectId=${g.state.projectId}&sdkType=${E}&sdkVersion=${j}`;var D=Object.defineProperty,S=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,x=(e,t,s)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;const R=u.isMobile(),_=l({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),$={state:_,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=g.state;if("NONE"===e||"ALL"===t&&!e)return _.recomendedWallets;if(u.isArray(e)){const t={recommendedIds:e.join(",")},{listings:s}=await P(t),o=Object.values(s);o.sort(((t,s)=>e.indexOf(t.id)-e.indexOf(s.id))),_.recomendedWallets=o}else{const{chains:e,isAuth:s}=b.state,o=e?.join(","),n=u.isArray(t),a={page:1,sdks:s?"auth_v1":void 0,entries:u.RECOMMENDED_WALLET_AMOUNT,chains:o,version:2,excludedIds:n?t.join(","):void 0},{listings:r}=R?await k(a):await L(a);_.recomendedWallets=Object.values(r)}return _.recomendedWallets},async getWallets(e){const t=((e,t)=>{for(var s in t||(t={}))N.call(t,s)&&x(e,s,t[s]);if(S)for(var s of S(t))T.call(t,s)&&x(e,s,t[s]);return e})({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:o}=g.state,{recomendedWallets:n}=_;if("ALL"===o)return _.wallets;n.length?t.excludedIds=n.map((e=>e.id)).join(","):u.isArray(s)&&(t.excludedIds=s.join(",")),u.isArray(o)&&(t.excludedIds=[t.excludedIds,o].filter(Boolean).join(",")),b.state.isAuth&&(t.sdks="auth_v1");const{page:a,search:r}=e,{listings:i,total:l}=R?await k(t):await L(t),c=Object.values(i),d=r?"search":"wallets";return _[d]={listings:[..._[d].listings,...c],total:l,page:a??1},{listings:c,total:l}},getWalletImageUrl:e=>M(e),getAssetImageUrl:e=>U(e),resetSearch(){_.search={listings:[],total:0,page:1}}},V=l({open:!1}),B={state:V,subscribe:e=>c(V,(()=>e(V))),open:async e=>new Promise((t=>{const{isUiLoaded:s,isDataLoaded:o}=b.state;if(u.removeWalletConnectDeepLink(),b.setWalletConnectUri(e?.uri),b.setChains(e?.chains),p.reset("ConnectWallet"),s&&o)V.open=!0,t();else{const e=setInterval((()=>{const s=b.state;s.isUiLoaded&&s.isDataLoaded&&(clearInterval(e),V.open=!0,t())}),200)}})),close(){V.open=!1}};var H=Object.defineProperty,K=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,q=(e,t,s)=>t in e?H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;const F=l({themeMode:typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}),G={state:F,subscribe:e=>c(F,(()=>e(F))),setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(F.themeMode=t),s&&(F.themeVariables=((e,t)=>{for(var s in t||(t={}))z.call(t,s)&&q(e,s,t[s]);if(K)for(var s of K(t))J.call(t,s)&&q(e,s,t[s]);return e})({},s))}},Q=l({open:!1,message:"",variant:"success"}),X={state:Q,subscribe:e=>c(Q,(()=>e(Q))),openToast(e,t){Q.open=!0,Q.message=e,Q.variant=t},closeToast(){Q.open=!1}}},59343:(e,t,s)=>{s.d(t,{WalletConnectModal:()=>n});var o=s(28448);class n{constructor(e){this.openModal=o.jb.open,this.closeModal=o.jb.close,this.subscribeModal=o.jb.subscribe,this.setTheme=o.ThemeCtrl.setThemeConfig,o.ThemeCtrl.setThemeConfig(e),o.ConfigCtrl.setConfig(e),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.all([s.e(3626),s.e(4839)]).then(s.bind(s,14839));const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),o.OptionsCtrl.setIsUiLoaded(!0)}}}}}]);
\ No newline at end of file
diff --git a/gateway/dist/9377.687cbf14ffdeb9157d5a.bundle.js b/gateway/dist/9377.687cbf14ffdeb9157d5a.bundle.js
new file mode 100644
index 00000000..d35825d7
--- /dev/null
+++ b/gateway/dist/9377.687cbf14ffdeb9157d5a.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[9377],{99377:(e,n,t)=>{t.r(n),t.d(n,{default:()=>tn});var o=t(4511),r=t(94975),a=t(97582),i=function(e){function n(n,t){return e.call(this)||this}return(0,a.ZT)(n,e),n.prototype.schedule=function(e,n){return void 0===n&&(n=0),this},n}(t(35720).w0),c={setInterval:function(e,n){for(var t=[],o=2;o'),A='\n \n';function G(e){(0,o.a)(e,"svelte-1uqued6","select.svelte-1uqued6{border:none;background-image:none;background-color:transparent;-webkit-appearance:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;appearance:none;font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));transition:width 250ms ease-in-out;background-repeat:no-repeat, repeat;background-position:right 0px top 0px, 0 0;scrollbar-width:none;-ms-overflow-style:none;padding:0 14px 0 0;white-space:nowrap;text-overflow:ellipsis}select.minimized_ac.svelte-1uqued6{min-width:80px;max-width:80px}select.maximized_ac.svelte-1uqued6{width:auto !important}select.svelte-1uqued6:focus{outline:none}span.switching-placeholder.svelte-1uqued6{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));min-width:80px;max-width:80px;padding:0 8px 0 4px}")}function I(e,n,t){const o=e.slice();return o[15]=n[t],o}function T(e){let n;function t(e,n){return e[7]?F:_}let r=t(e),a=r(e);return{c(){a.c(),n=(0,o.e)()},m(e,t){a.m(e,t),(0,o.b)(e,n,t)},p(e,o){r===(r=t(e))&&a?a.p(e,o):(a.d(1),a=r(e),a&&(a.c(),a.m(n.parentNode,n)))},d(e){a.d(e),e&&(0,o.d)(n)}}}function _(e){let n,t,r,a,i,c,l,s=!(0,o.h)(e[6].chains[0],e[2]),d=[],u=new Map,m=s&&H(e),p=e[2];const v=e=>e[15].id;for(let n=0;nt(12,c=e)));let{selectIcon:s=z}=n,{colorVar:d}=n,{chains:u}=n,{bold:g=!1}=n,{parentCSSId:h=""}=n;const b=new x.X(!1);let j;(0,o.c)(e,b,(e=>t(7,l=e)));const A=function(){for(var e=[],n=0;n"boolean"!=typeof e&&"boolean"!=typeof n&&e[0]&&n[0]&&e[0].chains[0].id===n[0].chains[0].id)));var G;return(0,o.c)(e,A,(e=>t(11,i=e))),e.$$set=e=>{"selectIcon"in e&&t(0,s=e.selectIcon),"colorVar"in e&&t(1,d=e.colorVar),"chains"in e&&t(2,u=e.chains),"bold"in e&&t(3,g=e.bold),"parentCSSId"in e&&t(4,h=e.parentCSSId)},e.$$.update=()=>{4096&e.$$.dirty&&t(6,[a]=c,a),2048&e.$$.dirty&&i&&function(){if(!j)return;let e=document.createElement("option");e.textContent=j.selectedOptions[0].textContent;let n=document.createElement("select");n.style.visibility="hidden",n.style.position="fixed",n.appendChild(e),j.after(n),t(5,j.style.width=n.clientWidth-22+"px",j),n.remove()}()},[s,d,u,g,h,j,a,l,b,A,async function(){const e=j.selectedOptions[0].value;e!==a.chains[0].id&&(b.next(!0),await(0,o.f)({chainId:e,chainNamespace:"evm",wallet:a.label}),b.next(!1))},i,c,function(e){o.g[e?"unshift":"push"]((()=>{j=e,t(5,j),t(2,u),t(6,a),t(12,c)}))}]}class S extends o.S{constructor(e){super(),(0,o.i)(this,e,P,M,o.s,{selectIcon:0,colorVar:1,chains:2,bold:3,parentCSSId:4},G)}}var V='\n \n';function q(e){(0,o.a)(e,"svelte-hb2n95",".container.svelte-hb2n95.svelte-hb2n95{display:flex;align-items:center;gap:0.5rem;cursor:pointer;position:relative;z-index:0;width:100%;padding:0.25rem;margin-bottom:0.25rem;border-radius:12px;transition:background-color 150ms ease-in-out}.container.svelte-hb2n95.svelte-hb2n95::before{content:'';display:block;position:absolute;top:0;bottom:0;left:0;right:0;height:100%;width:100%;background:var(--action-color);border-radius:12px;z-index:-1;opacity:0}.container.svelte-hb2n95.svelte-hb2n95:hover::before{opacity:0.2}.container.svelte-hb2n95:hover .balance.svelte-hb2n95,.container.svelte-hb2n95:hover .elipsis-container.svelte-hb2n95{opacity:1}.container.svelte-hb2n95:hover .balance.svelte-hb2n95{color:var(--account-center-maximized-balance-color, inherit)}.container.primary.svelte-hb2n95.svelte-hb2n95:hover{background-color:var(\n --account-center-maximized-account-section-background-hover\n )}.account-details.svelte-hb2n95.svelte-hb2n95{flex:1 1;display:flex;gap:inherit;overflow:hidden}.address-domain.svelte-hb2n95.svelte-hb2n95{flex:1 0 auto;max-width:70%;white-space:nowrap;font-weight:600;color:var(--account-center-maximized-address-color, inherit);overflow:scroll;scrollbar-width:none;-ms-overflow-style:none}.address-domain.svelte-hb2n95.svelte-hb2n95::-webkit-scrollbar{display:none}.balance.svelte-hb2n95.svelte-hb2n95{flex:1 1 auto;max-width:70%;white-space:nowrap;text-align:end;opacity:0.4;transition:color 150ms ease-in-out, background-color 150ms ease-in-out;overflow:scroll;scrollbar-width:none;-ms-overflow-style:none}.balance.svelte-hb2n95.svelte-hb2n95::-webkit-scrollbar{display:none}.elipsis-container.svelte-hb2n95.svelte-hb2n95{flex:0;padding:0.25rem;border-radius:24px;transition:color 150ms ease-in-out, background-color 150ms ease-in-out;background-color:transparent;opacity:0.4}.elipsis-container.svelte-hb2n95.svelte-hb2n95:hover{color:var(--text-color)}.elipsis-container.active.svelte-hb2n95.svelte-hb2n95{color:var(--text-color)}.elipsis.svelte-hb2n95.svelte-hb2n95{width:24px}.menu.svelte-hb2n95.svelte-hb2n95{background:var(--onboard-white, var(--white));border:1px solid var(--onboard-gray-100, var(--gray-100));border-radius:8px;list-style-type:none;right:0.25rem;top:2.25rem;margin:0;padding:0;border:none;overflow:hidden;z-index:1}.menu.svelte-hb2n95 li.svelte-hb2n95{color:var(--onboard-primary-500, var(--primary-500));font-size:var(--onboard-font-size-5, var(--font-size-5));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));padding:12px 16px;background:var(--onboard-white, var(--white));transition:background-color 150ms ease-in-out;cursor:pointer}.menu.svelte-hb2n95 li.svelte-hb2n95:hover{background:var(--onboard-primary-200, var(--primary-200))}")}function D(e,n,t){const o=e.slice();return o[14]=n[t].address,o[15]=n[t].ens,o[16]=n[t].uns,o[17]=n[t].balance,o[19]=t,o}function E(e){let n,t,r;return t=new o.R({props:{size:14}}),{c(){n=(0,o.j)("div"),(0,o.F)(t.$$.fragment),(0,o.T)(n,"right","-5px"),(0,o.T)(n,"bottom","-5px"),(0,o.k)(n,"class","drop-shadow absolute")},m(e,a){(0,o.b)(e,n,a),(0,o.I)(t,n,null),r=!0},i(e){r||((0,o.x)(t.$$.fragment,e),r=!0)},o(e){(0,o.A)(t.$$.fragment,e),r=!1},d(e){e&&(0,o.d)(n),(0,o.K)(t)}}}function Z(e){let n,t,r,a=O(e[17])+"";return{c(){n=(0,o.j)("div"),t=(0,o.t)(a),(0,o.k)(n,"class","balance svelte-hb2n95")},m(e,r){(0,o.b)(e,n,r),(0,o.m)(n,t)},p(e,n){1&n&&a!==(a=O(e[17])+"")&&(0,o.v)(t,a)},i(e){e&&(r||(0,o.U)((()=>{r=(0,o.V)(n,o.X,{}),r.start()})))},o:o.n,d(e){e&&(0,o.d)(n)}}}function K(e){let n,t,r,a,i,c,l,s,d,u,m,p,v,f=e[4]("accountCenter.addAccount",{default:e[2].accountCenter.addAccount})+"",g=e[4]("accountCenter.disconnectWallet",{default:e[2].accountCenter.disconnectWallet})+"",h=e[2].accountCenter.copyAddress+"",b=!(e[1]&&0===e[19])&&B(e);function x(){return e[13](e[15],e[16],e[14])}return{c(){n=(0,o.j)("ul"),t=(0,o.j)("li"),r=(0,o.t)(f),a=(0,o.G)(),b&&b.c(),i=(0,o.G)(),c=(0,o.j)("li"),l=(0,o.t)(g),s=(0,o.G)(),d=(0,o.j)("li"),u=(0,o.t)(h),(0,o.k)(t,"class","svelte-hb2n95"),(0,o.k)(c,"class","svelte-hb2n95"),(0,o.k)(d,"class","svelte-hb2n95"),(0,o.k)(n,"class","menu absolute svelte-hb2n95")},m(m,f){(0,o.b)(m,n,f),(0,o.m)(n,t),(0,o.m)(t,r),(0,o.m)(n,a),b&&b.m(n,null),(0,o.m)(n,i),(0,o.m)(n,c),(0,o.m)(c,l),(0,o.m)(n,s),(0,o.m)(n,d),(0,o.m)(d,u),p||(v=[(0,o.p)(t,"click",(0,o.J)(e[10])),(0,o.p)(c,"click",(0,o.J)(e[12])),(0,o.p)(d,"click",(0,o.J)(x))],p=!0)},p(t,a){e=t,20&a&&f!==(f=e[4]("accountCenter.addAccount",{default:e[2].accountCenter.addAccount})+"")&&(0,o.v)(r,f),e[1]&&0===e[19]?b&&(b.d(1),b=null):b?b.p(e,a):(b=B(e),b.c(),b.m(n,i)),20&a&&g!==(g=e[4]("accountCenter.disconnectWallet",{default:e[2].accountCenter.disconnectWallet})+"")&&(0,o.v)(l,g),4&a&&h!==(h=e[2].accountCenter.copyAddress+"")&&(0,o.v)(u,h)},i(e){e&&(m||(0,o.U)((()=>{m=(0,o.V)(n,o.X,{}),m.start()})))},o:o.n,d(e){e&&(0,o.d)(n),b&&b.d(),p=!1,(0,o.L)(v)}}}function B(e){let n,t,r,a,i=e[4]("accountCenter.setPrimaryAccount",{default:e[2].accountCenter.setPrimaryAccount})+"";function c(){return e[11](e[14])}return{c(){n=(0,o.j)("li"),t=(0,o.t)(i),(0,o.k)(n,"class","svelte-hb2n95")},m(e,i){(0,o.b)(e,n,i),(0,o.m)(n,t),r||(a=(0,o.p)(n,"click",(0,o.J)(c)),r=!0)},p(n,r){e=n,20&r&&i!==(i=e[4]("accountCenter.setPrimaryAccount",{default:e[2].accountCenter.setPrimaryAccount})+"")&&(0,o.v)(t,i)},d(e){e&&(0,o.d)(n),r=!1,a()}}}function W(e){let n,t,r,a,i,c,l,s,d,u,m,p,v,f,g,h,b,x,w=(e[15]?(0,o.D)(e[15].name):e[16]?(0,o.D)(e[16].name):(0,o.E)(e[14]))+"";a=new o.W({props:{size:32,padding:4,background:"custom",color:"#EFF1FC",customBackgroundColor:e[1]&&0===e[19]?"rgba(24, 206, 102, 0.2)":"rgba(235, 235, 237, 0.1)",border:e[1]&&0===e[19]?"green":"gray",radius:8,icon:e[0].icon}});let y=e[1]&&0===e[19]&&E(),k=e[17]&&Z(e);function $(){return e[8](e[14])}function C(){return e[9](e[14])}let j=e[3]===e[14]&&K(e);return{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),r=(0,o.j)("div"),(0,o.F)(a.$$.fragment),i=(0,o.G)(),y&&y.c(),c=(0,o.G)(),l=(0,o.j)("div"),s=(0,o.j)("div"),d=(0,o.t)(w),u=(0,o.G)(),k&&k.c(),m=(0,o.G)(),p=(0,o.j)("div"),v=(0,o.j)("div"),f=(0,o.G)(),j&&j.c(),g=(0,o.G)(),(0,o.k)(r,"class","flex items-center relative"),(0,o.k)(s,"class","address-domain svelte-hb2n95"),(0,o.k)(l,"class","account-details svelte-hb2n95"),(0,o.k)(v,"class","elipsis pointer flex items-center justify-center relative svelte-hb2n95"),(0,o.k)(p,"class","elipsis-container svelte-hb2n95"),(0,o.H)(p,"active",e[3]===e[14]),(0,o.k)(t,"class","container svelte-hb2n95"),(0,o.H)(t,"primary",e[1]&&0===e[19]),(0,o.k)(n,"class","relative")},m(e,w){(0,o.b)(e,n,w),(0,o.m)(n,t),(0,o.m)(t,r),(0,o.I)(a,r,null),(0,o.m)(r,i),y&&y.m(r,null),(0,o.m)(t,c),(0,o.m)(t,l),(0,o.m)(l,s),(0,o.m)(s,d),(0,o.m)(l,u),k&&k.m(l,null),(0,o.m)(t,m),(0,o.m)(t,p),(0,o.m)(p,v),v.innerHTML=V,(0,o.m)(n,f),j&&j.m(n,null),(0,o.m)(n,g),h=!0,b||(x=[(0,o.p)(v,"click",(0,o.J)($)),(0,o.p)(t,"click",C)],b=!0)},p(i,c){e=i;const s={};2&c&&(s.customBackgroundColor=e[1]&&0===e[19]?"rgba(24, 206, 102, 0.2)":"rgba(235, 235, 237, 0.1)"),2&c&&(s.border=e[1]&&0===e[19]?"green":"gray"),1&c&&(s.icon=e[0].icon),a.$set(s),e[1]&&0===e[19]?y?2&c&&(0,o.x)(y,1):(y=E(),y.c(),(0,o.x)(y,1),y.m(r,null)):y&&((0,o.y)(),(0,o.A)(y,1,1,(()=>{y=null})),(0,o.z)()),(!h||1&c)&&w!==(w=(e[15]?(0,o.D)(e[15].name):e[16]?(0,o.D)(e[16].name):(0,o.E)(e[14]))+"")&&(0,o.v)(d,w),e[17]?k?(k.p(e,c),1&c&&(0,o.x)(k,1)):(k=Z(e),k.c(),(0,o.x)(k,1),k.m(l,null)):k&&(k.d(1),k=null),(!h||9&c)&&(0,o.H)(p,"active",e[3]===e[14]),(!h||2&c)&&(0,o.H)(t,"primary",e[1]&&0===e[19]),e[3]===e[14]?j?(j.p(e,c),9&c&&(0,o.x)(j,1)):(j=K(e),j.c(),(0,o.x)(j,1),j.m(n,g)):j&&(j.d(1),j=null)},i(e){h||((0,o.x)(a.$$.fragment,e),(0,o.x)(y),(0,o.x)(k),(0,o.x)(j),h=!0)},o(e){(0,o.A)(a.$$.fragment,e),(0,o.A)(y),h=!1},d(e){e&&(0,o.d)(n),(0,o.K)(a),y&&y.d(),k&&k.d(),j&&j.d(),b=!1,(0,o.L)(x)}}}function N(e){let n,t,r=e[0].accounts,a=[];for(let n=0;n(0,o.A)(a[e],1,1,(()=>{a[e]=null}));return{c(){for(let e=0;e7?e[n].slice(0,7):e[n]} ${n}`}function R(e,n,t){let r;(0,o.c)(e,b._,(e=>t(4,r=e)));let{wallet:a}=n,{primary:i}=n;function c(){t(3,l="")}let l="";async function s(e){try{await(0,o.M)(e.provider)}catch(n){const{code:t}=n;t!==j.ProviderRpcErrorCode.UNSUPPORTED_METHOD&&t!==j.ProviderRpcErrorCode.DOES_NOT_EXIST||o.N.next({inProgress:!1,actionRequired:e.label})}}function d(){t(2,o.C.accountCenter.copyAddress="Copied Successfully",o.C),setTimeout(c,500),setTimeout((()=>{t(2,o.C.accountCenter.copyAddress="Copy Wallet address",o.C)}),700)}return e.$$set=e=>{"wallet"in e&&t(0,a=e.wallet),"primary"in e&&t(1,i=e.primary)},[a,i,o.C,l,r,s,d,c,e=>t(3,l=l===e?"":e),e=>(0,o.O)(a,e),()=>{t(3,l=""),s(a)},e=>{t(3,l=""),(0,o.O)(a,e)},()=>{t(3,l=""),(0,o.P)({label:a.label})},(e,n,t)=>{(0,o.Q)(e?e.name:n?n.name:t).then((()=>{d()}))}]}class U extends o.S{constructor(e){super(),(0,o.i)(this,e,R,N,o.s,{wallet:0,primary:1,hideMenu:7},q)}get hideMenu(){return this.$$.ctx[7]}}var J='\n \n',X='\n \n',Y='',Q='\n';function ee(e){(0,o.a)(e,"svelte-1ubxcdp",".content.svelte-1ubxcdp{padding:1rem;width:300px;font-family:var(--onboard-font-family-normal, var(--font-family-normal));font-size:var(--onboard-font-size-5, var(--font-size-5));line-height:24px}.icon-container.svelte-1ubxcdp{width:3rem;height:3rem;background:var(--onboard-warning-100, var(--warning-100));border-radius:24px;padding:12px;color:var(--onboard-warning-500, var(--warning-500))}h4.svelte-1ubxcdp{margin:1.5rem 0 0.5rem 0;font-weight:600}p.svelte-1ubxcdp{margin:0;font-weight:400}button.svelte-1ubxcdp{margin-top:1.5rem;width:50%;font-weight:600}.right.svelte-1ubxcdp{margin-left:0.5rem;width:60%}")}function ne(e){let n,t,r,a,i,c,l,s,d,u,m,p,v,f,g,h,b,x=e[2]("modals.confirmDisconnectAll.heading",{default:o.C.modals.confirmDisconnectAll.heading})+"",w=e[2]("modals.confirmDisconnectAll.description")+"",y=e[2]("modals.confirmDisconnectAll.cancel",{default:o.C.modals.confirmDisconnectAll.cancel})+"",k=e[2]("modals.confirmDisconnectAll.confirm",{default:o.C.modals.confirmDisconnectAll.confirm})+"";return{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),r=(0,o.G)(),a=(0,o.j)("h4"),i=(0,o.t)(x),c=(0,o.G)(),l=(0,o.j)("p"),s=(0,o.t)(w),d=(0,o.G)(),u=(0,o.j)("div"),m=(0,o.j)("button"),p=(0,o.t)(y),v=(0,o.G)(),f=(0,o.j)("button"),g=(0,o.t)(k),(0,o.k)(t,"class","icon-container flex justify-center items-center svelte-1ubxcdp"),(0,o.k)(a,"class","svelte-1ubxcdp"),(0,o.k)(l,"class","svelte-1ubxcdp"),(0,o.k)(m,"class","button-neutral-solid-b rounded svelte-1ubxcdp"),(0,o.k)(f,"class","right button-neutral-solid rounded svelte-1ubxcdp"),(0,o.k)(u,"class","flex justify-between items-center w-100"),(0,o.k)(n,"class","content svelte-1ubxcdp")},m(x,w){(0,o.b)(x,n,w),(0,o.m)(n,t),t.innerHTML=A,(0,o.m)(n,r),(0,o.m)(n,a),(0,o.m)(a,i),(0,o.m)(n,c),(0,o.m)(n,l),(0,o.m)(l,s),(0,o.m)(n,d),(0,o.m)(n,u),(0,o.m)(u,m),(0,o.m)(m,p),(0,o.m)(u,v),(0,o.m)(u,f),(0,o.m)(f,g),h||(b=[(0,o.p)(m,"click",(function(){(0,o.Z)(e[1])&&e[1].apply(this,arguments)})),(0,o.p)(f,"click",(function(){(0,o.Z)(e[0])&&e[0].apply(this,arguments)}))],h=!0)},p(n,t){e=n,4&t&&x!==(x=e[2]("modals.confirmDisconnectAll.heading",{default:o.C.modals.confirmDisconnectAll.heading})+"")&&(0,o.v)(i,x),4&t&&w!==(w=e[2]("modals.confirmDisconnectAll.description")+"")&&(0,o.v)(s,w),4&t&&y!==(y=e[2]("modals.confirmDisconnectAll.cancel",{default:o.C.modals.confirmDisconnectAll.cancel})+"")&&(0,o.v)(p,y),4&t&&k!==(k=e[2]("modals.confirmDisconnectAll.confirm",{default:o.C.modals.confirmDisconnectAll.confirm})+"")&&(0,o.v)(g,k)},d(e){e&&(0,o.d)(n),h=!1,(0,o.L)(b)}}}function te(e){let n,t;return n=new o.Y({props:{close:e[1],$$slots:{default:[ne]},$$scope:{ctx:e}}}),{c(){(0,o.F)(n.$$.fragment)},m(e,r){(0,o.I)(n,e,r),t=!0},p(e,[t]){const o={};2&t&&(o.close=e[1]),15&t&&(o.$$scope={dirty:t,ctx:e}),n.$set(o)},i(e){t||((0,o.x)(n.$$.fragment,e),t=!0)},o(e){(0,o.A)(n.$$.fragment,e),t=!1},d(e){(0,o.K)(n,e)}}}function oe(e,n,t){let r;(0,o.c)(e,b._,(e=>t(2,r=e)));let{onConfirm:a}=n,{onClose:i}=n;return e.$$set=e=>{"onConfirm"in e&&t(0,a=e.onConfirm),"onClose"in e&&t(1,i=e.onClose)},[a,i,r]}class re extends o.S{constructor(e){super(),(0,o.i)(this,e,oe,te,o.s,{onConfirm:0,onClose:1},ee)}}function ae(e){(0,o.a)(e,"svelte-ruodf3",".content.svelte-ruodf3{--background-color:var(--w3o-background-color);--text-color:var(--w3o-text-color);--action-color:var(--w3o-action-color, var(--primary-500));font-size:1rem;line-height:1.5rem;display:flex;flex-flow:column;gap:1.5rem;padding:1rem;max-width:320px;background:var(--background-color);color:var(--text-color)}.icon-container.svelte-ruodf3{position:relative;overflow:hidden;width:3rem;height:3rem;border-radius:24px;padding:0.75rem;background:none}.icon-container.svelte-ruodf3::before{content:'';position:absolute;height:100%;width:100%;opacity:0.2;background:var(--action-color)}.text-container.svelte-ruodf3{display:flex;flex-flow:column;gap:0.5rem;padding:0 0.5rem}.actions-container.svelte-ruodf3{display:flex;flex-flow:row nowrap;gap:1rem}.heading.svelte-ruodf3{font-weight:600}button.svelte-ruodf3{font-weight:600}button.primary.svelte-ruodf3{background:var(--action-color)}")}function ie(e){let n,t,r,a,i,c,l,s,d,u,m,p,v,f,g,h,b,x,w,y,k,$=e[3]("modals.confirmTransactionProtection.heading",{default:o.C.modals.confirmTransactionProtection.heading})+"",C=e[3]("modals.confirmTransactionProtection.description")+"",j=e[3]("modals.confirmTransactionProtection.link",{default:o.C.modals.confirmTransactionProtection.link})+"",z=e[3]("modals.confirmTransactionProtection.dismiss",{default:o.C.modals.confirmTransactionProtection.dismiss})+"",A=e[3]("modals.confirmTransactionProtection.enable",{default:o.C.modals.confirmTransactionProtection.enable})+"";return{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),r=(0,o.G)(),a=(0,o.j)("div"),i=(0,o.j)("div"),c=(0,o.t)($),l=(0,o.G)(),s=(0,o.j)("div"),d=(0,o.t)(C),u=(0,o.G)(),m=(0,o.j)("a"),p=(0,o.t)(j),v=(0,o.G)(),f=(0,o.j)("div"),g=(0,o.j)("button"),h=(0,o.t)(z),b=(0,o.G)(),x=(0,o.j)("button"),w=(0,o.t)(A),(0,o.k)(t,"class","icon-container flex justify-center items-center svelte-ruodf3"),(0,o.k)(i,"class","heading svelte-ruodf3"),(0,o.k)(m,"href",e[2]),(0,o.k)(m,"target","_blank"),(0,o.k)(m,"rel","noreferrer noopener"),(0,o.k)(m,"class","no-link"),(0,o.k)(a,"class","text-container svelte-ruodf3"),(0,o.k)(g,"class","button-neutral-solid-b svelte-ruodf3"),(0,o.k)(x,"class","button-neutral-solid rounded primary svelte-ruodf3"),(0,o.k)(f,"class","actions-container svelte-ruodf3"),(0,o.k)(n,"class","content svelte-ruodf3")},m($,C){(0,o.b)($,n,C),(0,o.m)(n,t),t.innerHTML=Q,(0,o.m)(n,r),(0,o.m)(n,a),(0,o.m)(a,i),(0,o.m)(i,c),(0,o.m)(a,l),(0,o.m)(a,s),(0,o.m)(s,d),(0,o.m)(a,u),(0,o.m)(a,m),(0,o.m)(m,p),(0,o.m)(n,v),(0,o.m)(n,f),(0,o.m)(f,g),(0,o.m)(g,h),(0,o.m)(f,b),(0,o.m)(f,x),(0,o.m)(x,w),y||(k=[(0,o.p)(g,"click",(function(){(0,o.Z)(e[1])&&e[1].apply(this,arguments)})),(0,o.p)(x,"click",(function(){(0,o.Z)(e[0])&&e[0].apply(this,arguments)}))],y=!0)},p(n,t){e=n,8&t&&$!==($=e[3]("modals.confirmTransactionProtection.heading",{default:o.C.modals.confirmTransactionProtection.heading})+"")&&(0,o.v)(c,$),8&t&&C!==(C=e[3]("modals.confirmTransactionProtection.description")+"")&&(0,o.v)(d,C),8&t&&j!==(j=e[3]("modals.confirmTransactionProtection.link",{default:o.C.modals.confirmTransactionProtection.link})+"")&&(0,o.v)(p,j),4&t&&(0,o.k)(m,"href",e[2]),8&t&&z!==(z=e[3]("modals.confirmTransactionProtection.dismiss",{default:o.C.modals.confirmTransactionProtection.dismiss})+"")&&(0,o.v)(h,z),8&t&&A!==(A=e[3]("modals.confirmTransactionProtection.enable",{default:o.C.modals.confirmTransactionProtection.enable})+"")&&(0,o.v)(w,A)},d(e){e&&(0,o.d)(n),y=!1,(0,o.L)(k)}}}function ce(e){let n,t;return n=new o.Y({props:{close:e[1],$$slots:{default:[ie]},$$scope:{ctx:e}}}),{c(){(0,o.F)(n.$$.fragment)},m(e,r){(0,o.I)(n,e,r),t=!0},p(e,[t]){const o={};2&t&&(o.close=e[1]),31&t&&(o.$$scope={dirty:t,ctx:e}),n.$set(o)},i(e){t||((0,o.x)(n.$$.fragment,e),t=!0)},o(e){(0,o.A)(n.$$.fragment,e),t=!1},d(e){(0,o.K)(n,e)}}}function le(e,n,t){let r;(0,o.c)(e,b._,(e=>t(3,r=e)));let{onEnable:a}=n,{onDismiss:i}=n,{infoLink:c}=n;return e.$$set=e=>{"onEnable"in e&&t(0,a=e.onEnable),"onDismiss"in e&&t(1,i=e.onDismiss),"infoLink"in e&&t(2,c=e.infoLink)},[a,i,c,r]}class se extends o.S{constructor(e){super(),(0,o.i)(this,e,le,ce,o.s,{onEnable:0,onDismiss:1,infoLink:2},ae)}}function de(e){(0,o.a)(e,"svelte-b848yl",".secondary-token-container.svelte-b848yl.svelte-b848yl{width:100%}table.svelte-b848yl.svelte-b848yl{width:100%}tr.svelte-b848yl.svelte-b848yl{padding:0.25rem 1rem;line-height:1rem;border-bottom:1px solid var(--border-color);display:flex;flex-direction:row;align-items:flex-start;gap:1rem}thead.svelte-b848yl .secondary-token-table-header.svelte-b848yl{text-align:inherit;font-size:var(--onboard-font-size-7, var(--font-size-7))}.token-icon.svelte-b848yl.svelte-b848yl{width:30%;font-weight:700;font-size:var(--onboard-font-size-6, var(--font-size-6));color:var(--text-color)}.icon-name-container.svelte-b848yl.svelte-b848yl{display:flex;flex-direction:row;align-items:flex-start;padding:0px;gap:0.5rem}.icon.svelte-b848yl.svelte-b848yl{width:1rem;height:1rem}img.svelte-b848yl.svelte-b848yl{height:100%;width:100%}.token-balance.svelte-b848yl.svelte-b848yl{width:70%;font-weight:200;font-size:var(--onboard-font-size-6, var(--font-size-6));color:var(--text-color)}")}function ue(e,n,t){const o=e.slice();return o[1]=n[t],o}function me(e){let n,t,r,a,i,c,l,s,d,u=e[1].name.toUpperCase()+"",m=(e[1].balance.length>7?e[1].balance.slice(0,7):e[1].balance)+"";function p(e,n){return e[1].icon?ve:pe}let v=p(e),f=v(e);return{c(){n=(0,o.j)("tr"),t=(0,o.j)("td"),r=(0,o.j)("div"),f.c(),a=(0,o.G)(),i=(0,o.t)(u),c=(0,o.G)(),l=(0,o.j)("td"),s=(0,o.t)(m),d=(0,o.G)(),(0,o.k)(r,"class","icon-name-container svelte-b848yl"),(0,o.k)(t,"class","token-icon svelte-b848yl"),(0,o.k)(l,"class","token-balance svelte-b848yl"),(0,o.k)(n,"class","token-row svelte-b848yl")},m(e,u){(0,o.b)(e,n,u),(0,o.m)(n,t),(0,o.m)(t,r),f.m(r,null),(0,o.m)(r,a),(0,o.m)(r,i),(0,o.m)(n,c),(0,o.m)(n,l),(0,o.m)(l,s),(0,o.m)(n,d)},p(e,n){v===(v=p(e))&&f?f.p(e,n):(f.d(1),f=v(e),f&&(f.c(),f.m(r,a))),1&n&&u!==(u=e[1].name.toUpperCase()+"")&&(0,o.v)(i,u),1&n&&m!==(m=(e[1].balance.length>7?e[1].balance.slice(0,7):e[1].balance)+"")&&(0,o.v)(s,m)},d(e){e&&(0,o.d)(n),f.d()}}}function pe(e){let n;return{c(){n=(0,o.j)("div"),(0,o.k)(n,"class","icon svelte-b848yl")},m(e,t){(0,o.b)(e,n,t)},p:o.n,d(e){e&&(0,o.d)(n)}}}function ve(e){let n,t,r={ctx:e,current:null,token:null,hasCatch:!1,pending:xe,then:ge,catch:fe,value:4};return(0,o._)(t=e[1].icon,r),{c(){n=(0,o.e)(),r.block.c()},m(e,t){(0,o.b)(e,n,t),r.block.m(e,r.anchor=t),r.mount=()=>n.parentNode,r.anchor=n},p(n,a){e=n,r.ctx=e,1&a&&t!==(t=e[1].icon)&&(0,o._)(t,r)||(0,o.$)(r,e,a)},d(e){e&&(0,o.d)(n),r.block.d(e),r.token=null,r=null}}}function fe(e){return{c:o.n,m:o.n,p:o.n,i:o.n,o:o.n,d:o.n}}function ge(e){let n,t,r;function a(e,n){return 1&n&&(t=null),null==t&&(t=!!(0,o.a0)(e[4])),t?be:he}let i=a(e,-1),c=i(e);return{c(){n=(0,o.j)("div"),c.c(),(0,o.k)(n,"class","icon svelte-b848yl")},m(e,t){(0,o.b)(e,n,t),c.m(n,null)},p(e,t){i===(i=a(e,t))&&c?c.p(e,t):(c.d(1),c=i(e),c&&(c.c(),c.m(n,null)))},i(e){e&&(r||(0,o.U)((()=>{r=(0,o.V)(n,o.X,{}),r.start()})))},o:o.n,d(e){e&&(0,o.d)(n),c.d()}}}function he(e){let n,t;return{c(){n=(0,o.j)("img"),(0,o.a1)(n.src,t=e[4])||(0,o.k)(n,"src",t),(0,o.k)(n,"alt","logo"),(0,o.k)(n,"class","svelte-b848yl")},m(e,t){(0,o.b)(e,n,t)},p(e,r){1&r&&!(0,o.a1)(n.src,t=e[4])&&(0,o.k)(n,"src",t)},d(e){e&&(0,o.d)(n)}}}function be(e){let n,t,r=e[4]+"";return{c(){n=new o.a2(!1),t=(0,o.e)(),n.a=t},m(e,a){n.m(r,e,a),(0,o.b)(e,t,a)},p(e,t){1&t&&r!==(r=e[4]+"")&&n.p(r)},d(e){e&&(0,o.d)(t),e&&n.d()}}}function xe(e){return{c:o.n,m:o.n,p:o.n,i:o.n,o:o.n,d:o.n}}function we(e){let n,t=e[1]&&e[1].name&&e[1].balance&&me(e);return{c(){t&&t.c(),n=(0,o.e)()},m(e,r){t&&t.m(e,r),(0,o.b)(e,n,r)},p(e,o){e[1]&&e[1].name&&e[1].balance?t?t.p(e,o):(t=me(e),t.c(),t.m(n.parentNode,n)):t&&(t.d(1),t=null)},d(e){t&&t.d(e),e&&(0,o.d)(n)}}}function ye(e){let n,t,r,a,i,c=e[0],l=[];for(let n=0;n',a=(0,o.G)(),i=(0,o.j)("tbody");for(let e=0;e{"secondaryTokens"in e&&t(0,o=e.secondaryTokens)},[o]}class $e extends o.S{constructor(e){super(),(0,o.i)(this,e,ke,ye,o.s,{secondaryTokens:0},de)}}function Ce(e){(0,o.a)(e,"svelte-177u10y",".outer-container.svelte-177u10y{--background-color:var(--w3o-background-color);--text-color:var(--w3o-text-color);--border-color:var(--w3o-border-color, var(--gray-500));--action-color:var(--w3o-action-color, var(--primary-500));--border-radius:var(--w3o-border-radius, 1rem);--account-center-network-selector-color:var(--text-color, white);width:100%;overflow:hidden;pointer-events:auto;border:1px solid transparent;background:var(\n --account-center-maximized-upper-background,\n var(--background-color)\n );border-color:var(--border-color);border-radius:var(--account-center-border-radius, var(--border-radius))}.wallets-section.svelte-177u10y{width:100%;color:var(--text-color, var(--gray-100));background:var(--background-color, var(--gray-700))}.p5.svelte-177u10y{padding:var(--onboard-spacing-5, var(--spacing-5))}.wallets.svelte-177u10y{width:100%;margin-bottom:0.5rem}.actions.svelte-177u10y{color:var(\n --account-center-maximized-upper-action-color,\n var(--action-color)\n );padding-left:2px}.action-container.svelte-177u10y{padding:0.25rem 12px 0.25rem 0.5rem;border-radius:0.5rem;transition:background-color 150ms ease-in-out}.action-container.svelte-177u10y:hover{background-color:var(\n --account-center-maximized-upper-action-background-hover,\n rgba(146, 155, 237, 0.2)\n )}.plus-icon.svelte-177u10y{width:20px}.arrow-forward.svelte-177u10y{width:20px}.mt.svelte-177u10y{margin-top:0.25rem}.action-text.svelte-177u10y{font-size:var(--onboard-font-size-6, var(--font-size-6));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));margin-left:0.5rem}.background-blue.svelte-177u10y{background:var(\n --account-center-maximized-network-section-background,\n var(--onboard-primary-100, var(--primary-100))\n )}.background-gray.svelte-177u10y{background:var(--onboard-gray-100, var(--gray-100))}.background-yellow.svelte-177u10y{background:var(--onboard-warning-100, var(--warning-100))}.network-container.svelte-177u10y{background:var(--background-color);border-top:1px solid var(--border-color);width:100%;display:flex;flex-direction:column;align-items:flex-start;padding:0.75rem;gap:0.5rem;border-radius:var(\n --account-center-border-radius,\n var(--onboard-border-radius-3, var(--border-radius-3))\n );color:var(\n --account-center-maximized-network-text-color,\n var(--account-center-maximized-network-section, inherit)\n )}.network-section.svelte-177u10y{flex-direction:row;align-items:flex-start;padding:0px;gap:16px}.network-selector-container.svelte-177u10y{width:100%}.protect.svelte-177u10y{flex-direction:row;padding:0.25rem 0.375rem 0;gap:0.375rem;width:100%}.shield.svelte-177u10y{width:20px;height:20px;display:flex;justify-content:center}.protect-text.svelte-177u10y{font-size:var(--onboard-font-size-6, var(--font-size-6));color:var(\n --account-center-maximized-upper-action-color,\n var(--action-color)\n );line-height:1.75rem;display:flex;align-items:center}.network-selector-container.svelte-177u10y{margin-left:1rem;width:100%}.network-selector-label.svelte-177u10y{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3))}.app-info-container.svelte-177u10y{color:var(--text-color, var(--gray-700));background:var(\n --account-center-maximized-info-section-background-color,\n var(\n --account-center-maximized-info-section,\n var(--background-color, #fff)\n )\n );border-top:1px solid var(--border-color);border-radius:var(--account-center-border-radius, inherit);display:flex;flex-direction:column;align-items:flex-start;padding:0px}.app-info-header.svelte-177u10y{width:100%;flex-direction:column;align-items:flex-start;padding:0.75rem;gap:0.5rem;border-bottom:1px solid var(--border-color)}.app-icon-name.svelte-177u10y{display:flex;align-items:center;flex-direction:row;gap:0.75rem}.app-name.svelte-177u10y{font-size:1rem;font-weight:600;line-height:1rem;margin-bottom:0.25rem;color:var(--account-center-maximized-app-name-color, inherit)}.app-description.svelte-177u10y{margin:0;font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));color:var(--account-center-maximized-app-info-color, inherit);display:flex;flex-direction:row;align-items:flex-start;padding:0px 0.25rem;gap:1rem}.app-info.svelte-177u10y{width:100%;font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));color:var(--account-center-maximized-app-info-color, inherit);border-bottom:1px solid var(--border-color);display:flex;flex-direction:column;align-items:flex-start;padding:0.5rem 1rem;gap:0.25rem}.app-info-heading.svelte-177u10y{font-weight:700;color:var(--account-center-maximized-app-info-color, inherit)}.w100.svelte-177u10y{width:100%}a.svelte-177u10y{font-weight:700}.powered-by-container.svelte-177u10y{color:var(--text-color);padding:0.75rem}")}function je(e,n,t){const o=e.slice();return o[29]=n[t],o[31]=t,o}function ze(e){let n,t;return n=new re({props:{onClose:e[22],onConfirm:e[13]}}),{c(){(0,o.F)(n.$$.fragment)},m(e,r){(0,o.I)(n,e,r),t=!0},p(e,t){const o={};4&t[0]&&(o.onClose=e[22]),n.$set(o)},i(e){t||((0,o.x)(n.$$.fragment,e),t=!0)},o(e){(0,o.A)(n.$$.fragment,e),t=!1},d(e){(0,o.K)(n,e)}}}function Ae(e){let n,t;return n=new se({props:{onDismiss:e[23],onEnable:e[24],infoLink:e[9].transactionProtectionInfoLink||o.a5}}),{c(){(0,o.F)(n.$$.fragment)},m(e,r){(0,o.I)(n,e,r),t=!0},p(e,t){const r={};16&t[0]&&(r.onDismiss=e[23]),512&t[0]&&(r.infoLink=e[9].transactionProtectionInfoLink||o.a5),n.$set(r)},i(e){t||((0,o.x)(n.$$.fragment,e),t=!0)},o(e){(0,o.A)(n.$$.fragment,e),t=!1},d(e){(0,o.K)(n,e)}}}function Ge(e){let n,t,r,a,i,c,l,s,d,u,m,p,v,f,g,h,b,x,w,y,k,$,C,j,z,G,I,T,_,F,H=[],L=new Map,M=e[10]("accountCenter.currentNetwork",{default:o.C.accountCenter.currentNetwork})+"",P=e[1];const V=e=>e[29].label;for(let n=0;n{D=null})),(0,o.z)()),(!T||1024&t[0])&&M!==(M=e[10]("accountCenter.currentNetwork",{default:o.C.accountCenter.currentNetwork})+"")&&(0,o.v)(h,M),e[9].hideTransactionProtectionBtn||!e[6]&&!e[5]?.protectedRpcUrl?E&&(E.d(1),E=null):E?E.p(e,t):(E=_e(e),E.c(),E.m(s,null)),(!T||160&t[0])&&(0,o.H)(s,"background-blue",e[5]&&e[5].icon||e[7]),(!T||32&t[0])&&(0,o.H)(s,"background-yellow",!e[5]),(!T||160&t[0])&&(0,o.H)(s,"background-gray",e[5]&&!e[7]),e[11]?Z?(Z.p(e,t),2048&t[0]&&(0,o.x)(Z,1)):(Z=Fe(e),Z.c(),(0,o.x)(Z,1),Z.m($,C)):Z&&((0,o.y)(),(0,o.A)(Z,1,1,(()=>{Z=null})),(0,o.z)()),e[8]&&e[8].length?K?(K.p(e,t),256&t[0]&&(0,o.x)(K,1)):(K=Pe(e),K.c(),(0,o.x)(K,1),K.m($,j)):K&&((0,o.y)(),(0,o.A)(K,1,1,(()=>{K=null})),(0,o.z)())},i(t){if(!T){for(let e=0;e{T&&(I||(I=(0,o.a9)(n,o.ab,{duration:600,y:e[16].includes("bottom")?56:-76,easing:o.aa,opacity:0},!0)),I.run(1))})),T=!0}},o(t){for(let e=0;e(0,o.ac)(r,"hideMenu",c))),{key:e,first:null,c(){t=(0,o.e)(),(0,o.F)(r.$$.fragment),this.first=t},m(e,n){(0,o.b)(e,t,n),(0,o.I)(r,e,n),i=!0},p(e,t){n=e;const i={};2&t[0]&&(i.wallet=n[29]),2&t[0]&&(i.primary=0===n[31]),!a&&8&t[0]&&(a=!0,i.hideMenu=n[3],(0,o.ad)((()=>a=!1))),r.$set(i)},i(e){i||((0,o.x)(r.$$.fragment,e),i=!0)},o(e){(0,o.A)(r.$$.fragment,e),i=!1},d(e){e&&(0,o.d)(t),(0,o.K)(r,e)}}}function Te(e){let n,t,r;return t=new o.R({props:{size:14}}),{c(){n=(0,o.j)("div"),(0,o.F)(t.$$.fragment),(0,o.T)(n,"right","-5px"),(0,o.T)(n,"bottom","-5px"),(0,o.k)(n,"class","drop-shadow absolute")},m(e,a){(0,o.b)(e,n,a),(0,o.I)(t,n,null),r=!0},i(e){r||((0,o.x)(t.$$.fragment,e),r=!0)},o(e){(0,o.A)(t.$$.fragment,e),r=!1},d(e){e&&(0,o.d)(n),(0,o.K)(t)}}}function _e(e){let n,t,r,a,i,c,l,s=e[10]("accountCenter.enableTransactionProtection",{default:o.C.accountCenter.enableTransactionProtection})+"";return{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),r=(0,o.G)(),a=(0,o.j)("span"),i=(0,o.t)(s),(0,o.k)(t,"class","shield svelte-177u10y"),(0,o.k)(a,"class","protect-text svelte-177u10y"),(0,o.k)(n,"class","protect action-container flex items-center pointer svelte-177u10y")},m(s,d){(0,o.b)(s,n,d),(0,o.m)(n,t),t.innerHTML=Q,(0,o.m)(n,r),(0,o.m)(n,a),(0,o.m)(a,i),c||(l=(0,o.p)(n,"click",e[28]),c=!0)},p(e,n){1024&n[0]&&s!==(s=e[10]("accountCenter.enableTransactionProtection",{default:o.C.accountCenter.enableTransactionProtection})+"")&&(0,o.v)(i,s)},d(e){e&&(0,o.d)(n),c=!1,l()}}}function Fe(e){let n,t,r,a,i,c,l,s,d,u,m,p,v=(e[11]&&e[11].name||"App Name")+"",f=(e[11]&&e[11].description||"This app has not added a description.")+"";r=new o.W({props:{size:32,padding:4,background:"white",border:"black",radius:8,icon:e[11]&&e[11].icon||o.ae}});let g=(e[11].gettingStartedGuide||e[11].explore)&&He(e);return{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),(0,o.F)(r.$$.fragment),a=(0,o.G)(),i=(0,o.j)("div"),c=(0,o.t)(v),l=(0,o.G)(),s=(0,o.j)("div"),d=(0,o.t)(f),u=(0,o.G)(),g&&g.c(),m=(0,o.e)(),(0,o.k)(i,"class","app-name svelte-177u10y"),(0,o.k)(t,"class","relative flex app-icon-name svelte-177u10y"),(0,o.k)(s,"class","app-description svelte-177u10y"),(0,o.k)(n,"class","flex items-start app-info-header svelte-177u10y")},m(e,v){(0,o.b)(e,n,v),(0,o.m)(n,t),(0,o.I)(r,t,null),(0,o.m)(t,a),(0,o.m)(t,i),(0,o.m)(i,c),(0,o.m)(n,l),(0,o.m)(n,s),(0,o.m)(s,d),(0,o.b)(e,u,v),g&&g.m(e,v),(0,o.b)(e,m,v),p=!0},p(e,n){const t={};2048&n[0]&&(t.icon=e[11]&&e[11].icon||o.ae),r.$set(t),(!p||2048&n[0])&&v!==(v=(e[11]&&e[11].name||"App Name")+"")&&(0,o.v)(c,v),(!p||2048&n[0])&&f!==(f=(e[11]&&e[11].description||"This app has not added a description.")+"")&&(0,o.v)(d,f),e[11].gettingStartedGuide||e[11].explore?g?g.p(e,n):(g=He(e),g.c(),g.m(m.parentNode,m)):g&&(g.d(1),g=null)},i(e){p||((0,o.x)(r.$$.fragment,e),p=!0)},o(e){(0,o.A)(r.$$.fragment,e),p=!1},d(e){e&&(0,o.d)(n),(0,o.K)(r),e&&(0,o.d)(u),g&&g.d(e),e&&(0,o.d)(m)}}}function He(e){let n,t,r,a,i,c=e[10]("accountCenter.appInfo",{default:o.C.accountCenter.appInfo})+"",l=e[11].gettingStartedGuide&&Le(e),s=e[11].explore&&Me(e);return{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),r=(0,o.t)(c),a=(0,o.G)(),l&&l.c(),i=(0,o.G)(),s&&s.c(),(0,o.k)(t,"class","app-info-heading svelte-177u10y"),(0,o.k)(n,"class","app-info svelte-177u10y")},m(e,c){(0,o.b)(e,n,c),(0,o.m)(n,t),(0,o.m)(t,r),(0,o.m)(n,a),l&&l.m(n,null),(0,o.m)(n,i),s&&s.m(n,null)},p(e,t){1024&t[0]&&c!==(c=e[10]("accountCenter.appInfo",{default:o.C.accountCenter.appInfo})+"")&&(0,o.v)(r,c),e[11].gettingStartedGuide?l?l.p(e,t):(l=Le(e),l.c(),l.m(n,i)):l&&(l.d(1),l=null),e[11].explore?s?s.p(e,t):(s=Me(e),s.c(),s.m(n,null)):s&&(s.d(1),s=null)},d(e){e&&(0,o.d)(n),l&&l.d(),s&&s.d()}}}function Le(e){let n,t,r,a,i,c,l,s=e[10]("accountCenter.learnMore",{default:o.C.accountCenter.learnMore})+"",d=e[10]("accountCenter.gettingStartedGuide",{default:o.C.accountCenter.gettingStartedGuide})+"";return{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),r=(0,o.t)(s),a=(0,o.G)(),i=(0,o.j)("a"),c=(0,o.t)(d),(0,o.k)(i,"href",l=e[11].gettingStartedGuide),(0,o.k)(i,"target","_blank"),(0,o.k)(i,"rel","noreferrer noopener"),(0,o.k)(i,"class","svelte-177u10y"),(0,o.k)(n,"class","flex justify-between items-center w100 svelte-177u10y")},m(e,l){(0,o.b)(e,n,l),(0,o.m)(n,t),(0,o.m)(t,r),(0,o.m)(n,a),(0,o.m)(n,i),(0,o.m)(i,c)},p(e,n){1024&n[0]&&s!==(s=e[10]("accountCenter.learnMore",{default:o.C.accountCenter.learnMore})+"")&&(0,o.v)(r,s),1024&n[0]&&d!==(d=e[10]("accountCenter.gettingStartedGuide",{default:o.C.accountCenter.gettingStartedGuide})+"")&&(0,o.v)(c,d),2048&n[0]&&l!==(l=e[11].gettingStartedGuide)&&(0,o.k)(i,"href",l)},d(e){e&&(0,o.d)(n)}}}function Me(e){let n,t,r,a,i,c,l,s=e[10]("accountCenter.smartContracts",{default:o.C.accountCenter.smartContracts})+"",d=e[10]("accountCenter.explore",{default:o.C.accountCenter.explore})+"";return{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),r=(0,o.t)(s),a=(0,o.G)(),i=(0,o.j)("a"),c=(0,o.t)(d),(0,o.k)(i,"href",l=e[11].explore),(0,o.k)(i,"target","_blank"),(0,o.k)(i,"rel","noreferrer noopener"),(0,o.k)(i,"class","svelte-177u10y"),(0,o.k)(n,"class","flex justify-between items-center w100 svelte-177u10y")},m(e,l){(0,o.b)(e,n,l),(0,o.m)(n,t),(0,o.m)(t,r),(0,o.m)(n,a),(0,o.m)(n,i),(0,o.m)(i,c)},p(e,n){1024&n[0]&&s!==(s=e[10]("accountCenter.smartContracts",{default:o.C.accountCenter.smartContracts})+"")&&(0,o.v)(r,s),1024&n[0]&&d!==(d=e[10]("accountCenter.explore",{default:o.C.accountCenter.explore})+"")&&(0,o.v)(c,d),2048&n[0]&&l!==(l=e[11].explore)&&(0,o.k)(i,"href",l)},d(e){e&&(0,o.d)(n)}}}function Pe(e){let n,t;return n=new $e({props:{secondaryTokens:e[8]}}),{c(){(0,o.F)(n.$$.fragment)},m(e,r){(0,o.I)(n,e,r),t=!0},p(e,t){const o={};256&t[0]&&(o.secondaryTokens=e[8]),n.$set(o)},i(e){t||((0,o.x)(n.$$.fragment,e),t=!0)},o(e){(0,o.A)(n.$$.fragment,e),t=!1},d(e){(0,o.K)(n,e)}}}function Se(e){let n,t,r,a,i=e[2]&&ze(e),c=e[4]&&Ae(e),l=e[0]&&Ge(e);return{c(){i&&i.c(),n=(0,o.G)(),c&&c.c(),t=(0,o.G)(),l&&l.c(),r=(0,o.e)()},m(e,s){i&&i.m(e,s),(0,o.b)(e,n,s),c&&c.m(e,s),(0,o.b)(e,t,s),l&&l.m(e,s),(0,o.b)(e,r,s),a=!0},p(e,a){e[2]?i?(i.p(e,a),4&a[0]&&(0,o.x)(i,1)):(i=ze(e),i.c(),(0,o.x)(i,1),i.m(n.parentNode,n)):i&&((0,o.y)(),(0,o.A)(i,1,1,(()=>{i=null})),(0,o.z)()),e[4]?c?(c.p(e,a),16&a[0]&&(0,o.x)(c,1)):(c=Ae(e),c.c(),(0,o.x)(c,1),c.m(t.parentNode,t)):c&&((0,o.y)(),(0,o.A)(c,1,1,(()=>{c=null})),(0,o.z)()),e[0]?l?(l.p(e,a),1&a[0]&&(0,o.x)(l,1)):(l=Ge(e),l.c(),(0,o.x)(l,1),l.m(r.parentNode,r)):l&&((0,o.y)(),(0,o.A)(l,1,1,(()=>{l=null})),(0,o.z)())},i(e){a||((0,o.x)(i),(0,o.x)(c),(0,o.x)(l),a=!0)},o(e){(0,o.A)(i),(0,o.A)(c),(0,o.A)(l),a=!1},d(e){i&&i.d(e),e&&(0,o.d)(n),c&&c.d(e),e&&(0,o.d)(t),l&&l.d(e),e&&(0,o.d)(r)}}}function Ve(e,n,t){let r,a,i,c,l,s,d,u,m,p;(0,o.c)(e,o.w,(e=>t(1,d=e))),(0,o.c)(e,b._,(e=>t(10,m=e)));let{expanded:v}=n;const f=o.a3.select("accountCenter").pipe((0,g.O)(o.a3.get().accountCenter),(0,h.d)(1));(0,o.c)(e,f,(e=>t(9,u=e)));const{chains:x}=o.a3.get();let w,y=!1,k=!1;const $=o.a3.select("appMetadata").pipe((0,g.O)(o.a3.get().appMetadata),(0,h.d)(1));(0,o.c)(e,$,(e=>t(11,p=e)));const{position:C}=o.a3.get().accountCenter,{device:j}=o.af,z=async()=>{try{await(0,o.ag)(r.provider,c,c?.protectedRpcUrl||o.ah),t(4,k=!1)}catch(e){const{code:n}=e;console.log(e,n)}};return e.$$set=e=>{"expanded"in e&&t(0,v=e.expanded)},e.$$.update=()=>{2&e.$$.dirty[0]&&t(19,[r]=d,r),524288&e.$$.dirty[0]&&t(20,[a]=r?r.chains:[],a),524288&e.$$.dirty[0]&&t(8,i=r&&r.accounts.length&&r.accounts[0].secondaryTokens),1048576&e.$$.dirty[0]&&t(5,c=x.find((({id:e,namespace:n})=>!!a&&e===a.id&&n===a.namespace))),1048576&e.$$.dirty[0]&&t(7,l=(0,o.a4)(a&&a.id)),1048576&e.$$.dirty[0]&&t(6,s=a&&"0x1"===a.id)},[v,d,y,w,k,c,s,l,i,u,m,p,f,function(){d.forEach((({label:e})=>(0,o.P)({label:e})))},x,$,C,j,z,r,a,function(n){o.ai.call(this,e,n)},()=>t(2,y=!1),()=>t(4,k=!1),()=>z(),function(e){w=e,t(3,w)},()=>(0,o.aj)(),()=>t(2,y=!0),()=>t(4,k=!0)]}class qe extends o.S{constructor(e){super(),(0,o.i)(this,e,Ve,Se,o.s,{expanded:0},Ce,[-1,-1])}}function De(e){(0,o.a)(e,"svelte-1xsvwqj",".ac-trigger.svelte-1xsvwqj{--background-color:var(\n --account-center-minimized-background,\n var(--w3o-background-color, white)\n );--text-color:var(--w3o-text-color, var(--gray-700));--border-color:var(\n --account-center-border,\n var(--w3o-border-color, var(--onboard-gray-200, var(--gray-200)))\n );--border-radius:var(\n --account-center-border-radius,\n var(--w3o-border-radius, 1rem)\n );cursor:pointer;pointer-events:auto;width:100%;padding:0.5rem;border:1px solid;background:var(--background-color);color:var(--text-color);border-color:var(--border-color);border-radius:var(--border-radius);box-shadow:var(\n --account-center-box-shadow,\n var(--onboard-shadow-3, var(--shadow-3))\n );z-index:var(--account-center-z-index, 1)}.inner-row.svelte-1xsvwqj{display:flex;flex-flow:row nowrap;align-items:center;gap:0.5rem;padding:0 0.25rem}.wallet-info.svelte-1xsvwqj{display:flex;flex:1;flex-flow:column;height:2.5rem;overflow:hidden}.address.svelte-1xsvwqj{font-weight:600;line-height:1.25rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--account-center-minimized-address-color, inherit)}.balance.svelte-1xsvwqj{font-weight:400;line-height:1.25rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;opacity:0.6;color:var(--account-center-minimized-balance-color, inherit)}.chain-icon-container.svelte-1xsvwqj{margin-right:4px}.container.svelte-1xsvwqj{border:1px solid transparent;border-radius:16px;padding:1px;transition:border-color 250ms ease-in-out, backround 250ms ease-in-out;max-width:128px;cursor:default}.drop-shadow.svelte-1xsvwqj{filter:drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.2))}")}function Ee(e){let n,t,r,a,i,c=(e[5].length>7?e[5].slice(0,7):e[5])+"";return{c(){n=(0,o.j)("div"),t=(0,o.t)(c),r=(0,o.G)(),a=(0,o.t)(e[2]),(0,o.k)(n,"class","balance svelte-1xsvwqj")},m(e,i){(0,o.b)(e,n,i),(0,o.m)(n,t),(0,o.m)(n,r),(0,o.m)(n,a)},p(e,n){32&n&&c!==(c=(e[5].length>7?e[5].slice(0,7):e[5])+"")&&(0,o.v)(t,c),4&n&&(0,o.v)(a,e[2])},i(e){e&&(i||(0,o.U)((()=>{i=(0,o.V)(n,o.X,{}),i.start()})))},o:o.n,d(e){e&&(0,o.d)(n)}}}function Ze(e){let n,t,r,a,i,c,l,s,d,u,m,p,v,f,g,h,b,x,w,y,k,$,C,j,G,I,T,_,F,H,L=(e[8]?(0,o.D)(e[8]):e[7]?(0,o.D)(e[7]):e[6])+"";i=new o.W({props:{size:32,padding:4,background:"white",border:"darkGreen",radius:8,icon:e[9]&&e[9].icon||o.ae}}),s=new o.W({props:{size:32,padding:4,background:"green",border:"darkGreen",radius:8,icon:e[1]?e[1].icon:""}}),m=new o.R({props:{size:14}});let M=e[5]&&Ee(e);return $=new o.W({props:{size:22,padding:4,background:"custom",color:e[4]?e[4].icon?void 0:"var(--onboard-primary-100, var(--primary-100))":"var(\n --account-center-chain-warning,\n var(--onboard-warning-500, var(--warning-500))\n )",customBackgroundColor:e[4]?e[4].color||e[3]&&e[3].color||o.a6.color:"var(--onboard-warning-200, var(--warning-200))",border:"transparent",radius:25,icon:e[4]?e[4].icon||e[3]&&e[3].icon||o.a6.icon:A}}),j=new S({props:{chains:e[11],colorVar:"--account-center-minimized-network-selector-color",selectIcon:z,parentCSSId:"minimized_ac"}}),{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),r=(0,o.j)("div"),a=(0,o.j)("div"),(0,o.F)(i.$$.fragment),c=(0,o.G)(),l=(0,o.j)("div"),(0,o.F)(s.$$.fragment),d=(0,o.G)(),u=(0,o.j)("div"),(0,o.F)(m.$$.fragment),p=(0,o.G)(),v=(0,o.j)("div"),f=(0,o.j)("div"),g=(0,o.t)(L),h=(0,o.G)(),M&&M.c(),b=(0,o.G)(),x=(0,o.j)("div"),w=(0,o.j)("div"),y=(0,o.j)("div"),k=(0,o.j)("div"),(0,o.F)($.$$.fragment),C=(0,o.G)(),(0,o.F)(j.$$.fragment),(0,o.k)(a,"class","drop-shadow svelte-1xsvwqj"),(0,o.T)(l,"margin-left","-0.5rem"),(0,o.k)(l,"class","drop-shadow svelte-1xsvwqj"),(0,o.T)(u,"right","-4px"),(0,o.T)(u,"bottom","-4px"),(0,o.k)(u,"class","drop-shadow absolute svelte-1xsvwqj"),(0,o.k)(r,"class","flex relative"),(0,o.k)(f,"class","address svelte-1xsvwqj"),(0,o.k)(v,"class","wallet-info svelte-1xsvwqj"),(0,o.k)(k,"class","chain-icon-container svelte-1xsvwqj"),(0,o.k)(y,"class","flex items-center"),(0,o.k)(w,"class","container shadow-1 flex items-center svelte-1xsvwqj"),(0,o.k)(w,"style",G=`border-color: var(${e[4]?"--onboard-primary-200, var(--primary-200)":"--onboard-warning-500, var(--warning-500)"}); background-color: var(${e[4]?"--account-center-minimized-chain-select-background, var(--primary-100)":"--account-center-minimized-chain-select-background-warning, var(--warning-100)"})`),(0,o.k)(x,"class","network"),(0,o.k)(t,"class","inner-row svelte-1xsvwqj"),(0,o.k)(n,"class","ac-trigger svelte-1xsvwqj")},m(z,A){(0,o.b)(z,n,A),(0,o.m)(n,t),(0,o.m)(t,r),(0,o.m)(r,a),(0,o.I)(i,a,null),(0,o.m)(r,c),(0,o.m)(r,l),(0,o.I)(s,l,null),(0,o.m)(r,d),(0,o.m)(r,u),(0,o.I)(m,u,null),(0,o.m)(t,p),(0,o.m)(t,v),(0,o.m)(v,f),(0,o.m)(f,g),(0,o.m)(v,h),M&&M.m(v,null),(0,o.m)(t,b),(0,o.m)(t,x),(0,o.m)(x,w),(0,o.m)(w,y),(0,o.m)(y,k),(0,o.I)($,k,null),(0,o.m)(y,C),(0,o.I)(j,y,null),_=!0,F||(H=[(0,o.p)(w,"click",(0,o.J)(e[15])),(0,o.p)(n,"click",(0,o.J)((function(){(0,o.Z)(e[0])&&e[0].apply(this,arguments)})))],F=!0)},p(n,[t]){e=n;const r={};512&t&&(r.icon=e[9]&&e[9].icon||o.ae),i.$set(r);const a={};2&t&&(a.icon=e[1]?e[1].icon:""),s.$set(a),(!_||448&t)&&L!==(L=(e[8]?(0,o.D)(e[8]):e[7]?(0,o.D)(e[7]):e[6])+"")&&(0,o.v)(g,L),e[5]?M?(M.p(e,t),32&t&&(0,o.x)(M,1)):(M=Ee(e),M.c(),(0,o.x)(M,1),M.m(v,null)):M&&(M.d(1),M=null);const c={};16&t&&(c.color=e[4]?e[4].icon?void 0:"var(--onboard-primary-100, var(--primary-100))":"var(\n --account-center-chain-warning,\n var(--onboard-warning-500, var(--warning-500))\n )"),24&t&&(c.customBackgroundColor=e[4]?e[4].color||e[3]&&e[3].color||o.a6.color:"var(--onboard-warning-200, var(--warning-200))"),24&t&&(c.icon=e[4]?e[4].icon||e[3]&&e[3].icon||o.a6.icon:A),$.$set(c),(!_||16&t&&G!==(G=`border-color: var(${e[4]?"--onboard-primary-200, var(--primary-200)":"--onboard-warning-500, var(--warning-500)"}); background-color: var(${e[4]?"--account-center-minimized-chain-select-background, var(--primary-100)":"--account-center-minimized-chain-select-background-warning, var(--warning-100)"})`))&&(0,o.k)(w,"style",G)},i(e){_||((0,o.x)(i.$$.fragment,e),(0,o.x)(s.$$.fragment,e),(0,o.x)(m.$$.fragment,e),(0,o.x)(M),(0,o.x)($.$$.fragment,e),(0,o.x)(j.$$.fragment,e),e&&(0,o.U)((()=>{_&&(T&&T.end(1),I=(0,o.V)(n,o.X,{duration:250}),I.start())})),_=!0)},o(e){(0,o.A)(i.$$.fragment,e),(0,o.A)(s.$$.fragment,e),(0,o.A)(m.$$.fragment,e),(0,o.A)($.$$.fragment,e),(0,o.A)(j.$$.fragment,e),I&&I.invalidate(),T=(0,o.ak)(n,o.X,{duration:100}),_=!1},d(e){e&&(0,o.d)(n),(0,o.K)(i),(0,o.K)(s),(0,o.K)(m),M&&M.d(),(0,o.K)($),(0,o.K)(j),e&&T&&T.end(),F=!1,(0,o.L)(H)}}}function Ke(e,n,t){let r,a,i,c,l,s,d,u,m,p,v,f;(0,o.c)(e,o.w,(e=>t(14,v=e)));let{toggle:b}=n;const x=o.a3.select("appMetadata").pipe((0,g.O)(o.a3.get().appMetadata),(0,h.d)(1));(0,o.c)(e,x,(e=>t(9,f=e)));const w=o.a3.get().chains;return e.$$set=e=>{"toggle"in e&&t(0,b=e.toggle)},e.$$.update=()=>{16384&e.$$.dirty&&t(1,[r]=v,r),2&e.$$.dirty&&t(13,[a]=r?r.accounts:[],a),8192&e.$$.dirty&&t(8,i=a&&a.ens&&(0,o.D)(a.ens.name)),8192&e.$$.dirty&&t(7,c=a&&a.uns&&(0,o.D)(a.uns.name)),8192&e.$$.dirty&&t(6,l=a?(0,o.E)(a.address):""),8192&e.$$.dirty&&t(2,[s]=a&&a.balance?Object.keys(a.balance):[],s),8196&e.$$.dirty&&t(5,d=a&&a.balance?a.balance[s]:null),2&e.$$.dirty&&t(12,u=r&&r.chains[0]),4096&e.$$.dirty&&t(4,m=w.find((({id:e,namespace:n})=>!!u&&e===u.id&&n===u.namespace))),4096&e.$$.dirty&&t(3,p=(0,o.a4)(u&&u.id))},[b,r,s,p,m,d,l,c,i,f,x,w,u,a,v,function(n){o.ai.call(this,e,n)}]}class Be extends o.S{constructor(e){super(),(0,o.i)(this,e,Ke,Ze,o.s,{toggle:0},De)}}function We(e){(0,o.a)(e,"svelte-1o9vinu",".ac-trigger.svelte-1o9vinu{--background-color:var(\n --account-center-minimized-background,\n var(--w3o-background-color, white)\n );--text-color:var(--w3o-text-color, var(--gray-700));--border-color:var(\n --account-center-border,\n var(--w3o-border-color, var(--onboard-gray-200, var(--gray-200)))\n );--border-radius:var(\n --account-center-border-radius,\n var(--w3o-border-radius, 1rem)\n );position:relative;cursor:pointer;pointer-events:auto;min-width:80px;background:var(--background-color);color:var(--text-color);border:1px solid var(--border-color);border-radius:var(--border-radius);box-shadow:var(\n --account-center-box-shadow,\n var(--onboard-shadow-3, var(--shadow-3))\n );z-index:var(--account-center-z-index, 1)}.wallet-square-wrapper.svelte-1o9vinu{position:relative;margin-left:-8px}.check-icon-wrapper.svelte-1o9vinu{position:absolute;right:-4px;bottom:-4px}.inner-row.svelte-1o9vinu{display:flex;flex-flow:row nowrap;width:80px;padding:0.75rem}.drop-shadow.svelte-1o9vinu{filter:drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.2))}")}function Ne(e){let n,t,r,a,i,c,l,s,d,u,m,p,v,f,g;return a=new o.W({props:{size:32,padding:4,background:"white",border:"darkGreen",radius:8,icon:e[3]&&e[3].icon||o.ae}}),s=new o.W({props:{size:32,padding:4,background:"green",border:"darkGreen",radius:8,icon:e[1]?e[1].icon:""}}),m=new o.R({props:{size:14}}),{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),r=(0,o.j)("div"),(0,o.F)(a.$$.fragment),i=(0,o.G)(),c=(0,o.j)("div"),l=(0,o.j)("div"),(0,o.F)(s.$$.fragment),d=(0,o.G)(),u=(0,o.j)("div"),(0,o.F)(m.$$.fragment),(0,o.k)(r,"class","drop-shadow svelte-1o9vinu"),(0,o.k)(l,"class","drop-shadow svelte-1o9vinu"),(0,o.k)(u,"class","check-icon-wrapper drop-shadow svelte-1o9vinu"),(0,o.k)(c,"class","wallet-square-wrapper svelte-1o9vinu"),(0,o.k)(t,"class","inner-row svelte-1o9vinu"),(0,o.k)(n,"class","ac-trigger svelte-1o9vinu"),(0,o.k)(n,"style",p=e[2].position.includes("Left")?"align-self: flex-start":null)},m(p,h){(0,o.b)(p,n,h),(0,o.m)(n,t),(0,o.m)(t,r),(0,o.I)(a,r,null),(0,o.m)(t,i),(0,o.m)(t,c),(0,o.m)(c,l),(0,o.I)(s,l,null),(0,o.m)(c,d),(0,o.m)(c,u),(0,o.I)(m,u,null),v=!0,f||(g=(0,o.p)(n,"click",(0,o.J)((function(){(0,o.Z)(e[0])&&e[0].apply(this,arguments)}))),f=!0)},p(t,[r]){e=t;const i={};8&r&&(i.icon=e[3]&&e[3].icon||o.ae),a.$set(i);const c={};2&r&&(c.icon=e[1]?e[1].icon:""),s.$set(c),(!v||4&r&&p!==(p=e[2].position.includes("Left")?"align-self: flex-start":null))&&(0,o.k)(n,"style",p)},i(e){v||((0,o.x)(a.$$.fragment,e),(0,o.x)(s.$$.fragment,e),(0,o.x)(m.$$.fragment,e),v=!0)},o(e){(0,o.A)(a.$$.fragment,e),(0,o.A)(s.$$.fragment,e),(0,o.A)(m.$$.fragment,e),v=!1},d(e){e&&(0,o.d)(n),(0,o.K)(a),(0,o.K)(s),(0,o.K)(m),f=!1,g()}}}function Oe(e,n,t){let r,a,i,c;(0,o.c)(e,o.w,(e=>t(6,a=e)));let{toggle:l}=n;const s=o.a3.select("appMetadata").pipe((0,g.O)(o.a3.get().appMetadata),(0,h.d)(1));(0,o.c)(e,s,(e=>t(3,c=e)));const d=o.a3.select("accountCenter").pipe((0,g.O)(o.a3.get().accountCenter),(0,h.d)(1));return(0,o.c)(e,d,(e=>t(2,i=e))),e.$$set=e=>{"toggle"in e&&t(0,l=e.toggle)},e.$$.update=()=>{64&e.$$.dirty&&t(1,[r]=a,r)},[l,r,i,c,s,d,a]}class Re extends o.S{constructor(e){super(),(0,o.i)(this,e,Oe,Ne,o.s,{toggle:0},We)}}function Ue(e){(0,o.a)(e,"svelte-1nua59o",".ac-container.svelte-1nua59o{display:flex;flex-flow:column;align-items:flex-end;gap:0.5rem}")}function Je(e){let n,t;return n=new qe({props:{expanded:e[0]}}),{c(){(0,o.F)(n.$$.fragment)},m(e,r){(0,o.I)(n,e,r),t=!0},p(e,t){const o={};1&t&&(o.expanded=e[0]),n.$set(o)},i(e){t||((0,o.x)(n.$$.fragment,e),t=!0)},o(e){(0,o.A)(n.$$.fragment,e),t=!1},d(e){(0,o.K)(n,e)}}}function Xe(e){let n,t;return n=new Be({props:{toggle:e[4]}}),{c(){(0,o.F)(n.$$.fragment)},m(e,r){(0,o.I)(n,e,r),t=!0},p:o.n,i(e){t||((0,o.x)(n.$$.fragment,e),t=!0)},o(e){(0,o.A)(n.$$.fragment,e),t=!1},d(e){(0,o.K)(n,e)}}}function Ye(e){let n,t;return n=new Re({props:{toggle:e[4]}}),{c(){(0,o.F)(n.$$.fragment)},m(e,r){(0,o.I)(n,e,r),t=!0},p:o.n,i(e){t||((0,o.x)(n.$$.fragment,e),t=!0)},o(e){(0,o.A)(n.$$.fragment,e),t=!1},d(e){(0,o.K)(n,e)}}}function Qe(e){let n,t;return n=new qe({props:{expanded:e[0]}}),{c(){(0,o.F)(n.$$.fragment)},m(e,r){(0,o.I)(n,e,r),t=!0},p(e,t){const o={};1&t&&(o.expanded=e[0]),n.$set(o)},i(e){t||((0,o.x)(n.$$.fragment,e),t=!0)},o(e){(0,o.A)(n.$$.fragment,e),t=!1},d(e){(0,o.K)(n,e)}}}function en(e){let n,t,r,a,i,c,l,s,d=e[1].position.includes("bottom"),u=e[1].position.includes("top"),m=d&&Je(e);const p=[Ye,Xe],v=[];function f(e,n){return e[1].minimal?0:1}r=f(e),a=v[r]=p[r](e);let g=u&&Qe(e);return{c(){n=(0,o.j)("div"),m&&m.c(),t=(0,o.G)(),a.c(),i=(0,o.G)(),g&&g.c(),(0,o.k)(n,"class","ac-container svelte-1nua59o")},m(a,d){(0,o.b)(a,n,d),m&&m.m(n,null),(0,o.m)(n,t),v[r].m(n,null),(0,o.m)(n,i),g&&g.m(n,null),c=!0,l||(s=(0,o.p)(window,"click",e[3]),l=!0)},p(e,[c]){2&c&&(d=e[1].position.includes("bottom")),d?m?(m.p(e,c),2&c&&(0,o.x)(m,1)):(m=Je(e),m.c(),(0,o.x)(m,1),m.m(n,t)):m&&((0,o.y)(),(0,o.A)(m,1,1,(()=>{m=null})),(0,o.z)());let l=r;r=f(e),r===l?v[r].p(e,c):((0,o.y)(),(0,o.A)(v[l],1,1,(()=>{v[l]=null})),(0,o.z)(),a=v[r],a?a.p(e,c):(a=v[r]=p[r](e),a.c()),(0,o.x)(a,1),a.m(n,i)),2&c&&(u=e[1].position.includes("top")),u?g?(g.p(e,c),2&c&&(0,o.x)(g,1)):(g=Qe(e),g.c(),(0,o.x)(g,1),g.m(n,null)):g&&((0,o.y)(),(0,o.A)(g,1,1,(()=>{g=null})),(0,o.z)())},i(e){c||((0,o.x)(m),(0,o.x)(a),(0,o.x)(g),c=!0)},o(e){(0,o.A)(m),(0,o.A)(a),(0,o.A)(g),c=!1},d(e){e&&(0,o.d)(n),m&&m.d(),v[r].d(),g&&g.d(),l=!1,s()}}}function nn(e,n,t){let r,a=!1;const i=o.a3.select("accountCenter").pipe((0,g.O)(o.a3.get().accountCenter),(0,h.d)(1));function c(){r.expanded&&((0,o.am)({expanded:!1}),t(0,a=!1))}return(0,o.c)(e,i,(e=>t(1,r=e))),(0,o.al)(c),[a,r,i,c,function(){(0,o.am)({expanded:!r.expanded}),t(0,a=!a)}]}class tn extends o.S{constructor(e){super(),(0,o.i)(this,e,nn,en,o.s,{},Ue)}}}}]);
\ No newline at end of file
diff --git a/gateway/dist/9513.9feec5fff495aa351e14.bundle.js b/gateway/dist/9513.9feec5fff495aa351e14.bundle.js
new file mode 100644
index 00000000..246093f5
--- /dev/null
+++ b/gateway/dist/9513.9feec5fff495aa351e14.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[9513],{19513:(C,e,t)=>{t.r(e),t.d(e,{default:()=>s});const s=''}}]);
\ No newline at end of file
diff --git a/gateway/dist/9579.2d4881a727275ab4862f.bundle.js b/gateway/dist/9579.2d4881a727275ab4862f.bundle.js
new file mode 100644
index 00000000..b825a7ea
--- /dev/null
+++ b/gateway/dist/9579.2d4881a727275ab4862f.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[9579],{89579:(c,n,s)=>{s.r(n),s.d(n,{default:()=>t});const t='\n\n\x3c!-- Generator: Adobe Illustrator 23.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n\n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/9769.1b1e6ae0a22cb9178c93.bundle.js b/gateway/dist/9769.1b1e6ae0a22cb9178c93.bundle.js
new file mode 100644
index 00000000..0f174828
--- /dev/null
+++ b/gateway/dist/9769.1b1e6ae0a22cb9178c93.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[9769],{9769:(n,e,s)=>{s.r(e),s.d(e,{default:()=>t});const t='\n \n \n \n '}}]);
\ No newline at end of file
diff --git a/gateway/dist/9850.886178d386f7bfbe76b3.bundle.js b/gateway/dist/9850.886178d386f7bfbe76b3.bundle.js
new file mode 100644
index 00000000..20576861
--- /dev/null
+++ b/gateway/dist/9850.886178d386f7bfbe76b3.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[9850],{9850:(t,e,r)=>{r.d(e,{StaticJsonRpcProvider:()=>nt});var n=r(53587),o=r(80711);const s="providers/5.5.0";var i=r(48171),l=r(2593),a=r(93286),c=r(67827),u=r(44242),h=r(64377),d=r(58341),f=r(64353),m=r(57727),g=r(57218),p=r(78339),k=r(79861),v=r(23951),_=r(92882),b=r.n(_),w=r(64594),y=r(9279);const N=new o.Yd(s);class E{constructor(){N.checkNew(new.target,E),this.formats=this.getDefaultFormats()}getDefaultFormats(){const t={},e=this.address.bind(this),r=this.bigNumber.bind(this),o=this.blockTag.bind(this),s=this.data.bind(this),i=this.hash.bind(this),l=this.hex.bind(this),a=this.number.bind(this),c=this.type.bind(this);return t.transaction={hash:i,type:c,accessList:E.allowNull(this.accessList.bind(this),null),blockHash:E.allowNull(i,null),blockNumber:E.allowNull(a,null),transactionIndex:E.allowNull(a,null),confirmations:E.allowNull(a,null),from:e,gasPrice:E.allowNull(r),maxPriorityFeePerGas:E.allowNull(r),maxFeePerGas:E.allowNull(r),gasLimit:r,to:E.allowNull(e,null),value:r,nonce:a,data:s,r:E.allowNull(this.uint256),s:E.allowNull(this.uint256),v:E.allowNull(a),creates:E.allowNull(e,null),raw:E.allowNull(s)},t.transactionRequest={from:E.allowNull(e),nonce:E.allowNull(a),gasLimit:E.allowNull(r),gasPrice:E.allowNull(r),maxPriorityFeePerGas:E.allowNull(r),maxFeePerGas:E.allowNull(r),to:E.allowNull(e),value:E.allowNull(r),data:E.allowNull((t=>this.data(t,!0))),type:E.allowNull(a),accessList:E.allowNull(this.accessList.bind(this),null)},t.receiptLog={transactionIndex:a,blockNumber:a,transactionHash:i,address:e,topics:E.arrayOf(i),data:s,logIndex:a,blockHash:i},t.receipt={to:E.allowNull(this.address,null),from:E.allowNull(this.address,null),contractAddress:E.allowNull(e,null),transactionIndex:a,root:E.allowNull(l),gasUsed:r,logsBloom:E.allowNull(s),blockHash:i,transactionHash:i,logs:E.arrayOf(this.receiptLog.bind(this)),blockNumber:a,confirmations:E.allowNull(a,null),cumulativeGasUsed:r,effectiveGasPrice:E.allowNull(r),status:E.allowNull(a),type:c},t.block={hash:i,parentHash:i,number:a,timestamp:a,nonce:E.allowNull(l),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:e,extraData:s,transactions:E.allowNull(E.arrayOf(i)),baseFeePerGas:E.allowNull(r)},t.blockWithTransactions=(0,n.DC)(t.block),t.blockWithTransactions.transactions=E.allowNull(E.arrayOf(this.transactionResponse.bind(this))),t.filter={fromBlock:E.allowNull(o,void 0),toBlock:E.allowNull(o,void 0),blockHash:E.allowNull(i,void 0),address:E.allowNull(e,void 0),topics:E.allowNull(this.topics.bind(this),void 0)},t.filterLog={blockNumber:E.allowNull(a),blockHash:E.allowNull(i),transactionIndex:a,removed:E.allowNull(this.boolean.bind(this)),address:e,data:E.allowFalsish(s,"0x"),topics:E.arrayOf(i),transactionHash:i,logIndex:a},t}accessList(t){return(0,h.z7)(t||[])}number(t){return"0x"===t?0:l.O$.from(t).toNumber()}type(t){return"0x"===t||null==t?0:l.O$.from(t).toNumber()}bigNumber(t){return l.O$.from(t)}boolean(t){if("boolean"==typeof t)return t;if("string"==typeof t){if("true"===(t=t.toLowerCase()))return!0;if("false"===t)return!1}throw new Error("invalid boolean - "+t)}hex(t,e){return"string"==typeof t&&(e||"0x"===t.substring(0,2)||(t="0x"+t),(0,a.A7)(t))?t.toLowerCase():N.throwArgumentError("invalid hash","value",t)}data(t,e){const r=this.hex(t,e);if(r.length%2!=0)throw new Error("invalid data; odd-length - "+t);return r}address(t){return(0,w.Kn)(t)}callAddress(t){if(!(0,a.A7)(t,32))return null;const e=(0,w.Kn)((0,a.p3)(t,12));return e===y.d?null:e}contractAddress(t){return(0,w.CR)(t)}blockTag(t){if(null==t)return"latest";if("earliest"===t)return"0x0";if("latest"===t||"pending"===t)return t;if("number"==typeof t||(0,a.A7)(t))return(0,a.$P)(t);throw new Error("invalid blockTag")}hash(t,e){const r=this.hex(t,e);return 32!==(0,a.E1)(r)?N.throwArgumentError("invalid hash","value",t):r}difficulty(t){if(null==t)return null;const e=l.O$.from(t);try{return e.toNumber()}catch(t){}return null}uint256(t){if(!(0,a.A7)(t))throw new Error("invalid uint256");return(0,a.$m)(t,32)}_block(t,e){null!=t.author&&null==t.miner&&(t.miner=t.author);const r=null!=t._difficulty?t._difficulty:t.difficulty,n=E.check(e,t);return n._difficulty=null==r?null:l.O$.from(r),n}block(t){return this._block(t,this.formats.block)}blockWithTransactions(t){return this._block(t,this.formats.blockWithTransactions)}transactionRequest(t){return E.check(this.formats.transactionRequest,t)}transactionResponse(t){null!=t.gas&&null==t.gasLimit&&(t.gasLimit=t.gas),t.to&&l.O$.from(t.to).isZero()&&(t.to="0x0000000000000000000000000000000000000000"),null!=t.input&&null==t.data&&(t.data=t.input),null==t.to&&null==t.creates&&(t.creates=this.contractAddress(t)),1!==t.type&&2!==t.type||null!=t.accessList||(t.accessList=[]);const e=E.check(this.formats.transaction,t);if(null!=t.chainId){let r=t.chainId;(0,a.A7)(r)&&(r=l.O$.from(r).toNumber()),e.chainId=r}else{let r=t.networkId;null==r&&null==e.v&&(r=t.chainId),(0,a.A7)(r)&&(r=l.O$.from(r).toNumber()),"number"!=typeof r&&null!=e.v&&(r=(e.v-35)/2,r<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),e.chainId=r}return e.blockHash&&"x"===e.blockHash.replace(/0/g,"")&&(e.blockHash=null),e}transaction(t){return(0,h.Qc)(t)}receiptLog(t){return E.check(this.formats.receiptLog,t)}receipt(t){const e=E.check(this.formats.receipt,t);if(null!=e.root)if(e.root.length<=4){const t=l.O$.from(e.root).toNumber();0===t||1===t?(null!=e.status&&e.status!==t&&N.throwArgumentError("alt-root-status/status mismatch","value",{root:e.root,status:e.status}),e.status=t,delete e.root):N.throwArgumentError("invalid alt-root-status","value.root",e.root)}else 66!==e.root.length&&N.throwArgumentError("invalid root hash","value.root",e.root);return null!=e.status&&(e.byzantium=!0),e}topics(t){return Array.isArray(t)?t.map((t=>this.topics(t))):null!=t?this.hash(t,!0):null}filter(t){return E.check(this.formats.filter,t)}filterLog(t){return E.check(this.formats.filterLog,t)}static check(t,e){const r={};for(const n in t)try{const o=t[n](e[n]);void 0!==o&&(r[n]=o)}catch(t){throw t.checkKey=n,t.checkValue=e[n],t}return r}static allowNull(t,e){return function(r){return null==r?e:t(r)}}static allowFalsish(t,e){return function(r){return r?t(r):e}}static arrayOf(t){return function(e){if(!Array.isArray(e))throw new Error("not an array");const r=[];return e.forEach((function(e){r.push(t(e))})),r}}}var T=function(t,e,r,n){return new(r||(r=Promise))((function(o,s){function i(t){try{a(n.next(t))}catch(t){s(t)}}function l(t){try{a(n.throw(t))}catch(t){s(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,l)}a((n=n.apply(t,e||[])).next())}))};const R=new o.Yd(s);function x(t){return null==t?"null":(32!==(0,a.E1)(t)&&R.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function P(t){for(t=t.slice();t.length>0&&null==t[t.length-1];)t.pop();return t.map((t=>{if(Array.isArray(t)){const e={};t.forEach((t=>{e[x(t)]=!0}));const r=Object.keys(e);return r.sort(),r.join("|")}return x(t)})).join("&")}function O(t){if("string"==typeof t){if(t=t.toLowerCase(),32===(0,a.E1)(t))return"tx:"+t;if(-1===t.indexOf(":"))return t}else{if(Array.isArray(t))return"filter:*:"+P(t);if(f.Sg.isForkEvent(t))throw R.warn("not implemented"),new Error("not implemented");if(t&&"object"==typeof t)return"filter:"+(t.address||"*")+":"+P(t.topics||[])}throw new Error("invalid event - "+t)}function B(){return(new Date).getTime()}function A(t){return new Promise((e=>{setTimeout(e,t)}))}const I=["block","network","pending","poll"];class L{constructor(t,e,r){(0,n.zG)(this,"tag",t),(0,n.zG)(this,"listener",e),(0,n.zG)(this,"once",r)}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const t=this.tag.split(":");return"tx"!==t[0]?null:t[1]}get filter(){const t=this.tag.split(":");if("filter"!==t[0])return null;const e=t[1],r=""===(n=t[2])?[]:n.split(/&/g).map((t=>{if(""===t)return[];const e=t.split("|").map((t=>"null"===t?null:t));return 1===e.length?e[0]:e}));var n;const o={};return r.length>0&&(o.topics=r),e&&"*"!==e&&(o.address=e),o}pollable(){return this.tag.indexOf(":")>=0||I.indexOf(this.tag)>=0}}const C={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function S(t){return(0,a.$m)(l.O$.from(t).toHexString(),32)}function $(t){return m.eU.encode((0,a.zo)([t,(0,a.p3)((0,v.JQ)((0,v.JQ)(t)),0,4)]))}const Y=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),new RegExp("^(ipfs)://(.*)$","i"),new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function D(t){try{return(0,u.ZN)(G(t))}catch(t){}return null}function G(t){if("0x"===t)return null;const e=l.O$.from((0,a.p3)(t,0,32)).toNumber(),r=l.O$.from((0,a.p3)(t,e,e+32)).toNumber();return(0,a.p3)(t,e+32,e+32+r)}class F{constructor(t,e,r,o){(0,n.zG)(this,"provider",t),(0,n.zG)(this,"name",r),(0,n.zG)(this,"address",t.formatter.address(e)),(0,n.zG)(this,"_resolvedAddress",o)}_fetchBytes(t,e){return T(this,void 0,void 0,(function*(){const r={to:this.address,data:(0,a.xs)([t,(0,p.VM)(this.name),e||"0x"])};try{return G(yield this.provider.call(r))}catch(t){return t.code,o.Yd.errors.CALL_EXCEPTION,null}}))}_getAddress(t,e){const r=C[String(t)];if(null==r&&R.throwError(`unsupported coin type: ${t}`,o.Yd.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`}),"eth"===r.ilk)return this.provider.formatter.address(e);const n=(0,a.lE)(e);if(null!=r.p2pkh){const t=e.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(t){const e=parseInt(t[1],16);if(t[2].length===2*e&&e>=1&&e<=75)return $((0,a.zo)([[r.p2pkh],"0x"+t[2]]))}}if(null!=r.p2sh){const t=e.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(t){const e=parseInt(t[1],16);if(t[2].length===2*e&&e>=1&&e<=75)return $((0,a.zo)([[r.p2sh],"0x"+t[2]]))}}if(null!=r.prefix){const t=n[1];let e=n[0];if(0===e?20!==t&&32!==t&&(e=-1):e=-1,e>=0&&n.length===2+t&&t>=1&&t<=75){const t=b().toWords(n.slice(2));return t.unshift(e),b().encode(r.prefix,t)}}return null}getAddress(t){return T(this,void 0,void 0,(function*(){if(null==t&&(t=60),60===t)try{const t={to:this.address,data:"0x3b3b57de"+(0,p.VM)(this.name).substring(2)},e=yield this.provider.call(t);return"0x"===e||e===g.R?null:this.provider.formatter.callAddress(e)}catch(t){if(t.code===o.Yd.errors.CALL_EXCEPTION)return null;throw t}const e=yield this._fetchBytes("0xf1cb7e06",S(t));if(null==e||"0x"===e)return null;const r=this._getAddress(t,e);return null==r&&R.throwError("invalid or unsupported coin data",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`,coinType:t,data:e}),r}))}getAvatar(){return T(this,void 0,void 0,(function*(){const t=[];try{const e=yield this.getText("avatar");if(null==e)return null;for(let r=0;r{})),this._ready().catch((t=>{}));else{const e=(0,n.tu)(new.target,"getNetwork")(t);e?((0,n.zG)(this,"_network",e),this.emit("network",e,null)):R.throwArgumentError("invalid network","network",t)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return T(this,void 0,void 0,(function*(){if(null==this._network){let t=null;if(this._networkPromise)try{t=yield this._networkPromise}catch(t){}null==t&&(t=yield this.detectNetwork()),t||R.throwError("no network detected",o.Yd.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:(0,n.zG)(this,"_network",t),this.emit("network",t,null))}return this._network}))}get ready(){return(0,d.$l)((()=>this._ready().then((t=>t),(t=>{if(t.code!==o.Yd.errors.NETWORK_ERROR||"noNetwork"!==t.event)throw t}))))}static getFormatter(){return null==U&&(U=new E),U}static getNetwork(t){return(0,k.H)(null==t?"homestead":t)}_getInternalBlockNumber(t){return T(this,void 0,void 0,(function*(){if(yield this._ready(),t>0)for(;this._internalBlockNumber;){const e=this._internalBlockNumber;try{const r=yield e;if(B()-r.respTime<=t)return r.blockNumber;break}catch(t){if(this._internalBlockNumber===e)break}}const e=B(),r=(0,n.mE)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((t=>null),(t=>t))}).then((({blockNumber:t,networkError:n})=>{if(n)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),n;const o=B();return(t=l.O$.from(t).toNumber()){this._internalBlockNumber===r&&(this._internalBlockNumber=null)})),(yield r).blockNumber}))}poll(){return T(this,void 0,void 0,(function*(){const t=H++,e=[];let r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(t){return void this.emit("error",t)}if(this._setFastBlockNumber(r),this.emit("poll",t,r),r!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)R.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",R.makeError("network block skew detected",o.Yd.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let t=this._emitted.block+1;t<=r;t++)this.emit("block",t);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach((t=>{if("block"===t)return;const e=this._emitted[t];"pending"!==e&&r-e>12&&delete this._emitted[t]}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach((t=>{switch(t.type){case"tx":{const r=t.hash;let n=this.getTransactionReceipt(r).then((t=>t&&null!=t.blockNumber?(this._emitted["t:"+r]=t.blockNumber,this.emit(r,t),null):null)).catch((t=>{this.emit("error",t)}));e.push(n);break}case"filter":{const n=t.filter;n.fromBlock=this._lastBlockNumber+1,n.toBlock=r;const o=this.getLogs(n).then((t=>{0!==t.length&&t.forEach((t=>{this._emitted["b:"+t.blockHash]=t.blockNumber,this._emitted["t:"+t.transactionHash]=t.blockNumber,this.emit(n,t)}))})).catch((t=>{this.emit("error",t)}));e.push(o);break}}})),this._lastBlockNumber=r,Promise.all(e).then((()=>{this.emit("didPoll",t)})).catch((t=>{this.emit("error",t)}))}else this.emit("didPoll",t)}))}resetEventsBlock(t){this._lastBlockNumber=t-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return T(this,void 0,void 0,(function*(){return R.throwError("provider does not support network detection",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})}))}getNetwork(){return T(this,void 0,void 0,(function*(){const t=yield this._ready(),e=yield this.detectNetwork();if(t.chainId!==e.chainId){if(this.anyNetwork)return this._network=e,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",e,t),yield A(0),this._network;const r=R.makeError("underlying network changed",o.Yd.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:e});throw this.emit("error",r),r}return t}))}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then((t=>{this._setFastBlockNumber(t)}),(t=>{})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(t){t&&!this._poller?(this._poller=setInterval((()=>{this.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((()=>{this.poll(),this._bootstrapPoll=setTimeout((()=>{this._poller||this.poll(),this._bootstrapPoll=null}),this.pollingInterval)}),0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(t){if("number"!=typeof t||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval((()=>{this.poll()}),this._pollingInterval))}_getFastBlockNumber(){const t=B();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then((t=>((null==this._fastBlockNumber||t>this._fastBlockNumber)&&(this._fastBlockNumber=t),this._fastBlockNumber)))),this._fastBlockNumberPromise}_setFastBlockNumber(t){null!=this._fastBlockNumber&&tthis._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))}waitForTransaction(t,e,r){return T(this,void 0,void 0,(function*(){return this._waitForTransaction(t,null==e?1:e,r||0,null)}))}_waitForTransaction(t,e,r,n){return T(this,void 0,void 0,(function*(){const s=yield this.getTransactionReceipt(t);return(s?s.confirmations:0)>=e?s:new Promise(((s,i)=>{const l=[];let a=!1;const c=function(){return!!a||(a=!0,l.forEach((t=>{t()})),!1)},u=t=>{t.confirmations{this.removeListener(t,u)})),n){let r=n.startBlock,s=null;const u=l=>T(this,void 0,void 0,(function*(){a||(yield A(1e3),this.getTransactionCount(n.from).then((h=>T(this,void 0,void 0,(function*(){if(!a){if(h<=n.nonce)r=l;else{{const e=yield this.getTransaction(t);if(e&&null!=e.blockNumber)return}for(null==s&&(s=r-3,s{a||this.once("block",u)})))}));if(a)return;this.once("block",u),l.push((()=>{this.removeListener("block",u)}))}if("number"==typeof r&&r>0){const t=setTimeout((()=>{c()||i(R.makeError("timeout exceeded",o.Yd.errors.TIMEOUT,{timeout:r}))}),r);t.unref&&t.unref(),l.push((()=>{clearTimeout(t)}))}}))}))}getBlockNumber(){return T(this,void 0,void 0,(function*(){return this._getInternalBlockNumber(0)}))}getGasPrice(){return T(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield this.perform("getGasPrice",{});try{return l.O$.from(t)}catch(e){return R.throwError("bad result from backend",o.Yd.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e})}}))}getBalance(t,e){return T(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,n.mE)({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),s=yield this.perform("getBalance",r);try{return l.O$.from(s)}catch(t){return R.throwError("bad result from backend",o.Yd.errors.SERVER_ERROR,{method:"getBalance",params:r,result:s,error:t})}}))}getTransactionCount(t,e){return T(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,n.mE)({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),s=yield this.perform("getTransactionCount",r);try{return l.O$.from(s).toNumber()}catch(t){return R.throwError("bad result from backend",o.Yd.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:s,error:t})}}))}getCode(t,e){return T(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,n.mE)({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),s=yield this.perform("getCode",r);try{return(0,a.Dv)(s)}catch(t){return R.throwError("bad result from backend",o.Yd.errors.SERVER_ERROR,{method:"getCode",params:r,result:s,error:t})}}))}getStorageAt(t,e,r){return T(this,void 0,void 0,(function*(){yield this.getNetwork();const s=yield(0,n.mE)({address:this._getAddress(t),blockTag:this._getBlockTag(r),position:Promise.resolve(e).then((t=>(0,a.$P)(t)))}),i=yield this.perform("getStorageAt",s);try{return(0,a.Dv)(i)}catch(t){return R.throwError("bad result from backend",o.Yd.errors.SERVER_ERROR,{method:"getStorageAt",params:s,result:i,error:t})}}))}_wrapTransaction(t,e,r){if(null!=e&&32!==(0,a.E1)(e))throw new Error("invalid response - sendTransaction");const n=t;return null!=e&&t.hash!==e&&R.throwError("Transaction hash mismatch from Provider.sendTransaction.",o.Yd.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:e}),n.wait=(e,n)=>T(this,void 0,void 0,(function*(){let s;null==e&&(e=1),null==n&&(n=0),0!==e&&null!=r&&(s={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:r});const i=yield this._waitForTransaction(t.hash,e,n,s);return null==i&&0===e?null:(this._emitted["t:"+t.hash]=i.blockNumber,0===i.status&&R.throwError("transaction failed",o.Yd.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:i}),i)})),n}sendTransaction(t){return T(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield Promise.resolve(t).then((t=>(0,a.Dv)(t))),r=this.formatter.transaction(t);null==r.confirmations&&(r.confirmations=0);const n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const t=yield this.perform("sendTransaction",{signedTransaction:e});return this._wrapTransaction(r,t,n)}catch(t){throw t.transaction=r,t.transactionHash=r.hash,t}}))}_getTransactionRequest(t){return T(this,void 0,void 0,(function*(){const e=yield t,r={};return["from","to"].forEach((t=>{null!=e[t]&&(r[t]=Promise.resolve(e[t]).then((t=>t?this._getAddress(t):null)))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((t=>{null!=e[t]&&(r[t]=Promise.resolve(e[t]).then((t=>t?l.O$.from(t):null)))})),["type"].forEach((t=>{null!=e[t]&&(r[t]=Promise.resolve(e[t]).then((t=>null!=t?t:null)))})),e.accessList&&(r.accessList=this.formatter.accessList(e.accessList)),["data"].forEach((t=>{null!=e[t]&&(r[t]=Promise.resolve(e[t]).then((t=>t?(0,a.Dv)(t):null)))})),this.formatter.transactionRequest(yield(0,n.mE)(r))}))}_getFilter(t){return T(this,void 0,void 0,(function*(){t=yield t;const e={};return null!=t.address&&(e.address=this._getAddress(t.address)),["blockHash","topics"].forEach((r=>{null!=t[r]&&(e[r]=t[r])})),["fromBlock","toBlock"].forEach((r=>{null!=t[r]&&(e[r]=this._getBlockTag(t[r]))})),this.formatter.filter(yield(0,n.mE)(e))}))}call(t,e){return T(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,n.mE)({transaction:this._getTransactionRequest(t),blockTag:this._getBlockTag(e)}),s=yield this.perform("call",r);try{return(0,a.Dv)(s)}catch(t){return R.throwError("bad result from backend",o.Yd.errors.SERVER_ERROR,{method:"call",params:r,result:s,error:t})}}))}estimateGas(t){return T(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield(0,n.mE)({transaction:this._getTransactionRequest(t)}),r=yield this.perform("estimateGas",e);try{return l.O$.from(r)}catch(t){return R.throwError("bad result from backend",o.Yd.errors.SERVER_ERROR,{method:"estimateGas",params:e,result:r,error:t})}}))}_getAddress(t){return T(this,void 0,void 0,(function*(){"string"!=typeof(t=yield t)&&R.throwArgumentError("invalid address or ENS name","name",t);const e=yield this.resolveName(t);return null==e&&R.throwError("ENS name not configured",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(t)})`}),e}))}_getBlock(t,e){return T(this,void 0,void 0,(function*(){yield this.getNetwork(),t=yield t;let r=-128;const n={includeTransactions:!!e};if((0,a.A7)(t,32))n.blockHash=t;else try{n.blockTag=yield this._getBlockTag(t),(0,a.A7)(n.blockTag)&&(r=parseInt(n.blockTag.substring(2),16))}catch(e){R.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",t)}return(0,d.$l)((()=>T(this,void 0,void 0,(function*(){const t=yield this.perform("getBlock",n);if(null==t)return null!=n.blockHash&&null==this._emitted["b:"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?null:void 0;if(e){let e=null;for(let r=0;rthis._wrapTransaction(t))),r}return this.formatter.block(t)}))),{oncePoll:this})}))}getBlock(t){return this._getBlock(t,!1)}getBlockWithTransactions(t){return this._getBlock(t,!0)}getTransaction(t){return T(this,void 0,void 0,(function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return(0,d.$l)((()=>T(this,void 0,void 0,(function*(){const r=yield this.perform("getTransaction",e);if(null==r)return null==this._emitted["t:"+t]?null:void 0;const n=this.formatter.transactionResponse(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let t=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;t<=0&&(t=1),n.confirmations=t}return this._wrapTransaction(n)}))),{oncePoll:this})}))}getTransactionReceipt(t){return T(this,void 0,void 0,(function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return(0,d.$l)((()=>T(this,void 0,void 0,(function*(){const r=yield this.perform("getTransactionReceipt",e);if(null==r)return null==this._emitted["t:"+t]?null:void 0;if(null==r.blockHash)return;const n=this.formatter.receipt(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let t=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;t<=0&&(t=1),n.confirmations=t}return n}))),{oncePoll:this})}))}getLogs(t){return T(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield(0,n.mE)({filter:this._getFilter(t)}),r=yield this.perform("getLogs",e);return r.forEach((t=>{null==t.removed&&(t.removed=!1)})),E.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)}))}getEtherPrice(){return T(this,void 0,void 0,(function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})}))}_getBlockTag(t){return T(this,void 0,void 0,(function*(){if("number"==typeof(t=yield t)&&t<0){t%1&&R.throwArgumentError("invalid BlockTag","blockTag",t);let e=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return e+=t,e<0&&(e=0),this.formatter.blockTag(e)}return this.formatter.blockTag(t)}))}getResolver(t){return T(this,void 0,void 0,(function*(){try{const e=yield this._getResolver(t);return null==e?null:new F(this,e,t)}catch(t){return t.code,o.Yd.errors.CALL_EXCEPTION,null}}))}_getResolver(t){return T(this,void 0,void 0,(function*(){const e=yield this.getNetwork();e.ensAddress||R.throwError("network does not support ENS",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:"ENS",network:e.name});const r={to:e.ensAddress,data:"0x0178b8bf"+(0,p.VM)(t).substring(2)};try{return this.formatter.callAddress(yield this.call(r))}catch(t){if(t.code===o.Yd.errors.CALL_EXCEPTION)return null;throw t}}))}resolveName(t){return T(this,void 0,void 0,(function*(){t=yield t;try{return Promise.resolve(this.formatter.address(t))}catch(e){if((0,a.A7)(t))throw e}"string"!=typeof t&&R.throwArgumentError("invalid ENS name","name",t);const e=yield this.getResolver(t);return e?yield e.getAddress():null}))}lookupAddress(t){return T(this,void 0,void 0,(function*(){t=yield t;const e=(t=this.formatter.address(t)).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(e);if(!r)return null;let n=(0,a.lE)(yield this.call({to:r,data:"0x691f3431"+(0,p.VM)(e).substring(2)}));if(n.length<32||!l.O$.from(n.slice(0,32)).eq(32))return null;if(n=n.slice(32),n.length<32)return null;const o=l.O$.from(n.slice(0,32)).toNumber();if(n=n.slice(32),o>n.length)return null;const s=(0,u.ZN)(n.slice(0,o));return(yield this.resolveName(s))!=t?null:s}))}getAvatar(t){return T(this,void 0,void 0,(function*(){let e=null;if((0,a.A7)(t)){const r=this.formatter.address(t),n=r.substring(2).toLowerCase()+".addr.reverse",o=yield this._getResolver(n);if(!o)return null;e=new F(this,o,"_",r)}else e=yield this.getResolver(t);const r=yield e.getAvatar();return null==r?null:r.url}))}perform(t,e){return R.throwError(t+" not implemented",o.Yd.errors.NOT_IMPLEMENTED,{operation:t})}_startEvent(t){this.polling=this._events.filter((t=>t.pollable())).length>0}_stopEvent(t){this.polling=this._events.filter((t=>t.pollable())).length>0}_addEventListener(t,e,r){const n=new L(O(t),e,r);return this._events.push(n),this._startEvent(n),this}on(t,e){return this._addEventListener(t,e,!1)}once(t,e){return this._addEventListener(t,e,!0)}emit(t,...e){let r=!1,n=[],o=O(t);return this._events=this._events.filter((t=>t.tag!==o||(setTimeout((()=>{t.listener.apply(this,e)}),0),r=!0,!t.once||(n.push(t),!1)))),n.forEach((t=>{this._stopEvent(t)})),r}listenerCount(t){if(!t)return this._events.length;let e=O(t);return this._events.filter((t=>t.tag===e)).length}listeners(t){if(null==t)return this._events.map((t=>t.listener));let e=O(t);return this._events.filter((t=>t.tag===e)).map((t=>t.listener))}off(t,e){if(null==e)return this.removeAllListeners(t);const r=[];let n=!1,o=O(t);return this._events=this._events.filter((t=>t.tag!==o||t.listener!=e||!!n||(n=!0,r.push(t),!1))),r.forEach((t=>{this._stopEvent(t)})),this}removeAllListeners(t){let e=[];if(null==t)e=this._events,this._events=[];else{const r=O(t);this._events=this._events.filter((t=>t.tag!==r||(e.push(t),!1)))}return e.forEach((t=>{this._stopEvent(t)})),this}}var q=function(t,e,r,n){return new(r||(r=Promise))((function(o,s){function i(t){try{a(n.next(t))}catch(t){s(t)}}function l(t){try{a(n.throw(t))}catch(t){s(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,l)}a((n=n.apply(t,e||[])).next())}))};const W=new o.Yd(s),M=["call","estimateGas"];function V(t,e,r){if("call"===t&&e.code===o.Yd.errors.SERVER_ERROR){const t=e.error;if(t&&t.message.match("reverted")&&(0,a.A7)(t.data))return t.data;W.throwError("missing revert data in call exception",o.Yd.errors.CALL_EXCEPTION,{error:e,data:"0x"})}let n=e.message;e.code===o.Yd.errors.SERVER_ERROR&&e.error&&"string"==typeof e.error.message?n=e.error.message:"string"==typeof e.body?n=e.body:"string"==typeof e.responseText&&(n=e.responseText),n=(n||"").toLowerCase();const s=r.transaction||r.signedTransaction;throw n.match(/insufficient funds|base fee exceeds gas limit/)&&W.throwError("insufficient funds for intrinsic transaction cost",o.Yd.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:s}),n.match(/nonce too low/)&&W.throwError("nonce has already been used",o.Yd.errors.NONCE_EXPIRED,{error:e,method:t,transaction:s}),n.match(/replacement transaction underpriced/)&&W.throwError("replacement fee too low",o.Yd.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:s}),n.match(/only replay-protected/)&&W.throwError("legacy pre-eip-155 transactions not supported",o.Yd.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:s}),M.indexOf(t)>=0&&n.match(/gas required exceeds allowance|always failing transaction|execution reverted/)&&W.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",o.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:s}),e}function K(t){return new Promise((function(e){setTimeout(e,t)}))}function j(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}function J(t){return t?t.toLowerCase():t}const Q={};class X extends i.E{constructor(t,e,r){if(W.checkNew(new.target,X),super(),t!==Q)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");(0,n.zG)(this,"provider",e),null==r&&(r=0),"string"==typeof r?((0,n.zG)(this,"_address",this.provider.formatter.address(r)),(0,n.zG)(this,"_index",null)):"number"==typeof r?((0,n.zG)(this,"_index",r),(0,n.zG)(this,"_address",null)):W.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(t){return W.throwError("cannot alter JSON-RPC Signer connection",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new Z(Q,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((t=>(t.length<=this._index&&W.throwError("unknown account #"+this._index,o.Yd.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(t[this._index]))))}sendUncheckedTransaction(t){t=(0,n.DC)(t);const e=this.getAddress().then((t=>(t&&(t=t.toLowerCase()),t)));if(null==t.gasLimit){const r=(0,n.DC)(t);r.from=e,t.gasLimit=this.provider.estimateGas(r)}return null!=t.to&&(t.to=Promise.resolve(t.to).then((t=>q(this,void 0,void 0,(function*(){if(null==t)return null;const e=yield this.provider.resolveName(t);return null==e&&W.throwArgumentError("provided ENS name resolves to null","tx.to",t),e}))))),(0,n.mE)({tx:(0,n.mE)(t),sender:e}).then((({tx:e,sender:r})=>{null!=e.from?e.from.toLowerCase()!==r&&W.throwArgumentError("from address mismatch","transaction",t):e.from=r;const n=this.provider.constructor.hexlifyTransaction(e,{from:!0});return this.provider.send("eth_sendTransaction",[n]).then((t=>t),(t=>V("sendTransaction",t,n)))}))}signTransaction(t){return W.throwError("signing transactions is unsupported",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(t){return q(this,void 0,void 0,(function*(){const e=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(t);try{return yield(0,d.$l)((()=>q(this,void 0,void 0,(function*(){const t=yield this.provider.getTransaction(r);if(null!==t)return this.provider._wrapTransaction(t,r,e)}))),{oncePoll:this.provider})}catch(t){throw t.transactionHash=r,t}}))}signMessage(t){return q(this,void 0,void 0,(function*(){const e="string"==typeof t?(0,u.Y0)(t):t,r=yield this.getAddress();return yield this.provider.send("personal_sign",[(0,a.Dv)(e),r.toLowerCase()])}))}_legacySignMessage(t){return q(this,void 0,void 0,(function*(){const e="string"==typeof t?(0,u.Y0)(t):t,r=yield this.getAddress();return yield this.provider.send("eth_sign",[r.toLowerCase(),(0,a.Dv)(e)])}))}_signTypedData(t,e,r){return q(this,void 0,void 0,(function*(){const n=yield c.E.resolveNames(t,e,r,(t=>this.provider.resolveName(t))),o=yield this.getAddress();return yield this.provider.send("eth_signTypedData_v4",[o.toLowerCase(),JSON.stringify(c.E.getPayload(n.domain,e,n.value))])}))}unlock(t){return q(this,void 0,void 0,(function*(){const e=this.provider,r=yield this.getAddress();return e.send("personal_unlockAccount",[r.toLowerCase(),t,null])}))}}class Z extends X{sendTransaction(t){return this.sendUncheckedTransaction(t).then((t=>({hash:t,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:e=>this.provider.waitForTransaction(t,e)})))}}const tt={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class et extends z{constructor(t,e){W.checkNew(new.target,et);let r=e;null==r&&(r=new Promise(((t,e)=>{setTimeout((()=>{this.detectNetwork().then((e=>{t(e)}),(t=>{e(t)}))}),0)}))),super(r),t||(t=(0,n.tu)(this.constructor,"defaultUrl")()),"string"==typeof t?(0,n.zG)(this,"connection",Object.freeze({url:t})):(0,n.zG)(this,"connection",Object.freeze((0,n.DC)(t))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((()=>{this._cache.detectNetwork=null}),0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return q(this,void 0,void 0,(function*(){yield K(0);let t=null;try{t=yield this.send("eth_chainId",[])}catch(e){try{t=yield this.send("net_version",[])}catch(t){}}if(null!=t){const e=(0,n.tu)(this.constructor,"getNetwork");try{return e(l.O$.from(t).toNumber())}catch(e){return W.throwError("could not detect network",o.Yd.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:e})}}return W.throwError("could not detect network",o.Yd.errors.NETWORK_ERROR,{event:"noNetwork"})}))}getSigner(t){return new X(Q,this,t)}getUncheckedSigner(t){return this.getSigner(t).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then((t=>t.map((t=>this.formatter.address(t)))))}send(t,e){const r={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,n.p$)(r),provider:this});const o=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(o&&this._cache[t])return this._cache[t];const s=(0,d.rd)(this.connection,JSON.stringify(r),j).then((t=>(this.emit("debug",{action:"response",request:r,response:t,provider:this}),t)),(t=>{throw this.emit("debug",{action:"response",error:t,request:r,provider:this}),t}));return o&&(this._cache[t]=s,setTimeout((()=>{this._cache[t]=null}),0)),s}prepareRequest(t,e){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[J(e.address),e.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[J(e.address),e.blockTag]];case"getCode":return["eth_getCode",[J(e.address),e.blockTag]];case"getStorageAt":return["eth_getStorageAt",[J(e.address),e.position,e.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[e.signedTransaction]];case"getBlock":return e.blockTag?["eth_getBlockByNumber",[e.blockTag,!!e.includeTransactions]]:e.blockHash?["eth_getBlockByHash",[e.blockHash,!!e.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[e.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[e.transactionHash]];case"call":return["eth_call",[(0,n.tu)(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0}),e.blockTag]];case"estimateGas":return["eth_estimateGas",[(0,n.tu)(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0})]];case"getLogs":return e.filter&&null!=e.filter.address&&(e.filter.address=J(e.filter.address)),["eth_getLogs",[e.filter]]}return null}perform(t,e){return q(this,void 0,void 0,(function*(){if("call"===t||"estimateGas"===t){const t=e.transaction;if(t&&null!=t.type&&l.O$.from(t.type).isZero()&&null==t.maxFeePerGas&&null==t.maxPriorityFeePerGas){const r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((e=(0,n.DC)(e)).transaction=(0,n.DC)(t),delete e.transaction.type)}}const r=this.prepareRequest(t,e);null==r&&W.throwError(t+" not implemented",o.Yd.errors.NOT_IMPLEMENTED,{operation:t});try{return yield this.send(r[0],r[1])}catch(r){return V(t,r,e)}}))}_startEvent(t){"pending"===t.tag&&this._startPending(),super._startEvent(t)}_startPending(){if(null!=this._pendingFilter)return;const t=this,e=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=e,e.then((function(r){return function n(){t.send("eth_getFilterChanges",[r]).then((function(r){if(t._pendingFilter!=e)return null;let n=Promise.resolve();return r.forEach((function(e){t._emitted["t:"+e.toLowerCase()]="pending",n=n.then((function(){return t.getTransaction(e).then((function(e){return t.emit("pending",e),null}))}))})),n.then((function(){return K(1e3)}))})).then((function(){if(t._pendingFilter==e)return setTimeout((function(){n()}),0),null;t.send("eth_uninstallFilter",[r])})).catch((t=>{}))}(),r})).catch((t=>{}))}_stopEvent(t){"pending"===t.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(t)}static hexlifyTransaction(t,e){const r=(0,n.DC)(tt);if(e)for(const t in e)e[t]&&(r[t]=!0);(0,n.uj)(t,r);const o={};return["gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(e){if(null==t[e])return;const r=(0,a.$P)(t[e]);"gasLimit"===e&&(e="gas"),o[e]=r})),["from","to","data"].forEach((function(e){null!=t[e]&&(o[e]=(0,a.Dv)(t[e]))})),t.accessList&&(o.accessList=(0,h.z7)(t.accessList)),o}}const rt=new o.Yd(s);class nt extends et{detectNetwork(){const t=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return e=this,r=void 0,i=function*(){let e=this.network;return null==e&&(e=yield t.detectNetwork.call(this),e||rt.throwError("no network detected",o.Yd.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,n.zG)(this,"_network",e),this.emit("network",e,null))),e},new((s=void 0)||(s=Promise))((function(t,n){function o(t){try{a(i.next(t))}catch(t){n(t)}}function l(t){try{a(i.throw(t))}catch(t){n(t)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof s?r:new s((function(t){t(r)}))).then(o,l)}a((i=i.apply(e,r||[])).next())}));var e,r,s,i}}new o.Yd(s)}}]);
\ No newline at end of file
diff --git a/gateway/dist/9859.2590db36575d7658757e.bundle.js b/gateway/dist/9859.2590db36575d7658757e.bundle.js
new file mode 100644
index 00000000..45d6f567
--- /dev/null
+++ b/gateway/dist/9859.2590db36575d7658757e.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[9859],{9859:(C,e,l)=>{l.r(e),l.d(e,{default:()=>t});const t=''}}]);
\ No newline at end of file
diff --git a/gateway/dist/9864.8bc7fcd2aabd8fefa439.bundle.js b/gateway/dist/9864.8bc7fcd2aabd8fefa439.bundle.js
new file mode 100644
index 00000000..01cec7f4
--- /dev/null
+++ b/gateway/dist/9864.8bc7fcd2aabd8fefa439.bundle.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[9864],{29864:(s,e,c)=>{c.r(e),c.d(e,{default:()=>n});const n='\n \n'}}]);
\ No newline at end of file
diff --git a/gateway/dist/index.html b/gateway/dist/index.html
new file mode 100644
index 00000000..61336c75
--- /dev/null
+++ b/gateway/dist/index.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+ bos-workspace gateway
+
+
+
+
+
+
diff --git a/gateway/dist/main.c44aae050e2ee1199a44.bundle.js b/gateway/dist/main.c44aae050e2ee1199a44.bundle.js
new file mode 100644
index 00000000..70764e89
--- /dev/null
+++ b/gateway/dist/main.c44aae050e2ee1199a44.bundle.js
@@ -0,0 +1,8 @@
+/*! For license information please see main.c44aae050e2ee1199a44.bundle.js.LICENSE.txt */
+(self.webpackChunkbos_workspace_gateway=self.webpackChunkbos_workspace_gateway||[]).push([[179],{64353:(e,t,r)=>{"use strict";r.d(t,{Sg:()=>s,zt:()=>l});var n=r(2593),o=r(53587),i=r(80711);const a=new i.Yd("abstract-provider/5.7.0");class s extends o.dk{static isForkEvent(e){return!(!e||!e._isForkEvent)}}class l{constructor(){a.checkAbstract(new.target,l),(0,o.zG)(this,"_isProvider",!0)}getFeeData(){return e=this,t=void 0,i=function*(){const{block:e,gasPrice:t}=yield(0,o.mE)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((e=>null))});let r=null,i=null,a=null;return e&&e.baseFeePerGas&&(r=e.baseFeePerGas,a=n.O$.from("1500000000"),i=e.baseFeePerGas.mul(2).add(a)),{lastBaseFeePerGas:r,maxFeePerGas:i,maxPriorityFeePerGas:a,gasPrice:t}},new((r=void 0)||(r=Promise))((function(n,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}));var e,t,r,i}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!(!e||!e._isProvider)}}},48171:(e,t,r)=>{"use strict";r.d(t,{E:()=>c,b:()=>u});var n=r(53587),o=r(80711),i=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))};const a=new o.Yd("abstract-signer/5.7.0"),s=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],l=[o.Yd.errors.INSUFFICIENT_FUNDS,o.Yd.errors.NONCE_EXPIRED,o.Yd.errors.REPLACEMENT_UNDERPRICED];class c{constructor(){a.checkAbstract(new.target,c),(0,n.zG)(this,"_isSigner",!0)}getBalance(e){return i(this,void 0,void 0,(function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)}))}getTransactionCount(e){return i(this,void 0,void 0,(function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)}))}estimateGas(e){return i(this,void 0,void 0,(function*(){this._checkProvider("estimateGas");const t=yield(0,n.mE)(this.checkTransaction(e));return yield this.provider.estimateGas(t)}))}call(e,t){return i(this,void 0,void 0,(function*(){this._checkProvider("call");const r=yield(0,n.mE)(this.checkTransaction(e));return yield this.provider.call(r,t)}))}sendTransaction(e){return i(this,void 0,void 0,(function*(){this._checkProvider("sendTransaction");const t=yield this.populateTransaction(e),r=yield this.signTransaction(t);return yield this.provider.sendTransaction(r)}))}getChainId(){return i(this,void 0,void 0,(function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId}))}getGasPrice(){return i(this,void 0,void 0,(function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()}))}getFeeData(){return i(this,void 0,void 0,(function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()}))}resolveName(e){return i(this,void 0,void 0,(function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)}))}checkTransaction(e){for(const t in e)-1===s.indexOf(t)&&a.throwArgumentError("invalid transaction key: "+t,"transaction",e);const t=(0,n.DC)(e);return null==t.from?t.from=this.getAddress():t.from=Promise.all([Promise.resolve(t.from),this.getAddress()]).then((t=>(t[0].toLowerCase()!==t[1].toLowerCase()&&a.throwArgumentError("from address mismatch","transaction",e),t[0]))),t}populateTransaction(e){return i(this,void 0,void 0,(function*(){const t=yield(0,n.mE)(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then((e=>i(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.resolveName(e);return null==t&&a.throwArgumentError("provided ENS name resolves to null","tx.to",e),t})))),t.to.catch((e=>{})));const r=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null==t.gasPrice||2!==t.type&&!r?0!==t.type&&1!==t.type||!r||a.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e):a.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e),2!==t.type&&null!=t.type||null==t.maxFeePerGas||null==t.maxPriorityFeePerGas)if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{const e=yield this.getFeeData();if(null==t.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(t.type=2,null!=t.gasPrice){const e=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=e,t.maxPriorityFeePerGas=e}else null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?(r&&a.throwError("network does not support EIP-1559",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):a.throwError("failed to get consistent fee data",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}else t.type=2;return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch((e=>{if(l.indexOf(e.code)>=0)throw e;return a.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",o.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})}))),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then((t=>(0!==t[1]&&t[0]!==t[1]&&a.throwArgumentError("chainId address mismatch","transaction",e),t[0]))),yield(0,n.mE)(t)}))}_checkProvider(e){this.provider||a.throwError("missing provider",o.Yd.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!(!e||!e._isSigner)}}class u extends c{constructor(e,t){super(),(0,n.zG)(this,"address",e),(0,n.zG)(this,"provider",t||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then((()=>{a.throwError(e,o.Yd.errors.UNSUPPORTED_OPERATION,{operation:t})}))}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,t,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new u(this.address,e)}}},64594:(e,t,r)=>{"use strict";r.d(t,{Kn:()=>f,CR:()=>g,hB:()=>b,vU:()=>m,UJ:()=>h});var n=r(93286),o=r(2593),i=r(38197),a=r(61843);const s=new(r(80711).Yd)("address/5.7.0");function l(e){(0,n.A7)(e,20)||s.throwArgumentError("invalid address","address",e);const t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);const o=(0,n.lE)((0,i.w)(r));for(let e=0;e<40;e+=2)o[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&o[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}const c={};for(let e=0;e<10;e++)c[String(e)]=String(e);for(let e=0;e<26;e++)c[String.fromCharCode(65+e)]=String(10+e);const u=Math.floor((d=9007199254740991,Math.log10?Math.log10(d):Math.log(d)/Math.LN10));var d;function p(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>c[e])).join("");for(;t.length>=u;){let e=t.substring(0,u);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}function f(e){let t=null;if("string"!=typeof e&&s.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=l(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&s.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==p(e)&&s.throwArgumentError("bad icap checksum","address",e),t=(0,o.g$)(e.substring(4));t.length<40;)t="0"+t;t=l("0x"+t)}else s.throwArgumentError("invalid address","address",e);return t}function h(e){try{return f(e),!0}catch(e){}return!1}function m(e){let t=(0,o.t2)(f(e).substring(2)).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+p("XE00"+t)+t}function g(e){let t=null;try{t=f(e.from)}catch(t){s.throwArgumentError("missing from address","transaction",e)}const r=(0,n.G1)((0,n.lE)(o.O$.from(e.nonce).toHexString()));return f((0,n.p3)((0,i.w)((0,a.encode)([t,r])),12))}function b(e,t,r){return 32!==(0,n.E1)(t)&&s.throwArgumentError("salt must be 32 bytes","salt",t),32!==(0,n.E1)(r)&&s.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),f((0,n.p3)((0,i.w)((0,n.zo)(["0xff",f(e),t,r])),12))}},59567:(e,t,r)=>{"use strict";r.d(t,{J:()=>o,c:()=>i});var n=r(93286);function o(e){e=atob(e);const t=[];for(let r=0;r{"use strict";r.d(t,{eU:()=>a});var n=r(93286),o=r(53587);class i{constructor(e){(0,o.zG)(this,"alphabet",e),(0,o.zG)(this,"base",e.length),(0,o.zG)(this,"_alphabetMap",{}),(0,o.zG)(this,"_leader",e.charAt(0));for(let t=0;t0;)r.push(n%this.base),n=n/this.base|0}let o="";for(let e=0;0===t[e]&&e=0;--e)o+=this.alphabet[r[e]];return o}decode(e){if("string"!=typeof e)throw new TypeError("Expected String");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let r=0;r>=8;for(;o>0;)t.push(255&o),o>>=8}for(let r=0;e[r]===this._leader&&r{"use strict";r.d(t,{i:()=>n});const n="bignumber/5.7.0"},2593:(e,t,r)=>{"use strict";r.d(t,{O$:()=>h,Zm:()=>p,g$:()=>y,t2:()=>w});var n=r(13550),o=r.n(n),i=r(93286),a=r(80711),s=r(48794),l=o().BN;const c=new a.Yd(s.i),u={},d=9007199254740991;function p(e){return null!=e&&(h.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||(0,i.A7)(e)||"bigint"==typeof e||(0,i._t)(e))}let f=!1;class h{constructor(e,t){e!==u&&c.throwError("cannot call constructor directly; use BigNumber.from",a.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return g(b(this).fromTwos(e))}toTwos(e){return g(b(this).toTwos(e))}abs(){return"-"===this._hex[0]?h.from(this._hex.substring(1)):this}add(e){return g(b(this).add(b(e)))}sub(e){return g(b(this).sub(b(e)))}div(e){return h.from(e).isZero()&&v("division-by-zero","div"),g(b(this).div(b(e)))}mul(e){return g(b(this).mul(b(e)))}mod(e){const t=b(e);return t.isNeg()&&v("division-by-zero","mod"),g(b(this).umod(t))}pow(e){const t=b(e);return t.isNeg()&&v("negative-power","pow"),g(b(this).pow(t))}and(e){const t=b(e);return(this.isNegative()||t.isNeg())&&v("unbound-bitwise-result","and"),g(b(this).and(t))}or(e){const t=b(e);return(this.isNegative()||t.isNeg())&&v("unbound-bitwise-result","or"),g(b(this).or(t))}xor(e){const t=b(e);return(this.isNegative()||t.isNeg())&&v("unbound-bitwise-result","xor"),g(b(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&v("negative-width","mask"),g(b(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&v("negative-width","shl"),g(b(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&v("negative-width","shr"),g(b(this).shrn(e))}eq(e){return b(this).eq(b(e))}lt(e){return b(this).lt(b(e))}lte(e){return b(this).lte(b(e))}gt(e){return b(this).gt(b(e))}gte(e){return b(this).gte(b(e))}isNegative(){return"-"===this._hex[0]}isZero(){return b(this).isZero()}toNumber(){try{return b(this).toNumber()}catch(e){v("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return c.throwError("this platform does not support BigInt",a.Yd.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?f||(f=!0,c.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?c.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",a.Yd.errors.UNEXPECTED_ARGUMENT,{}):c.throwError("BigNumber.toString does not accept parameters",a.Yd.errors.UNEXPECTED_ARGUMENT,{})),b(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof h)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new h(u,m(e)):e.match(/^-?[0-9]+$/)?new h(u,m(new l(e))):c.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&v("underflow","BigNumber.from",e),(e>=d||e<=-d)&&v("overflow","BigNumber.from",e),h.from(String(e));const t=e;if("bigint"==typeof t)return h.from(t.toString());if((0,i._t)(t))return h.from((0,i.Dv)(t));if(t)if(t.toHexString){const e=t.toHexString();if("string"==typeof e)return h.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&((0,i.A7)(e)||"-"===e[0]&&(0,i.A7)(e.substring(1))))return h.from(e)}return c.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function m(e){if("string"!=typeof e)return m(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&c.throwArgumentError("invalid hex","value",e),"0x00"===(e=m(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function g(e){return h.from(m(e))}function b(e){const t=h.from(e).toHexString();return"-"===t[0]?new l("-"+t.substring(3),16):new l(t.substring(2),16)}function v(e,t,r){const n={fault:e,operation:t};return null!=r&&(n.value=r),c.throwError(e,a.Yd.errors.NUMERIC_FAULT,n)}function y(e){return new l(e,36).toString(16)}function w(e){return new l(e,16).toString(36)}},93286:(e,t,r)=>{"use strict";r.d(t,{lE:()=>c,zo:()=>u,xs:()=>v,E1:()=>g,p3:()=>b,Ou:()=>w,$P:()=>y,$m:()=>E,Dv:()=>m,_t:()=>l,Zq:()=>a,A7:()=>f,gV:()=>S,N:()=>_,G1:()=>d,Bu:()=>p});const n=new(r(80711).Yd)("bytes/5.7.0");function o(e){return!!e.toHexString}function i(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return i(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function a(e){return f(e)&&!(e.length%2)||l(e)}function s(e){return"number"==typeof e&&e==e&&e%1==0}function l(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(!s(e.length)||e.length<0)return!1;for(let t=0;t=256)return!1}return!0}function c(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),i(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),o(e)&&(e=e.toHexString()),f(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":n.throwArgumentError("hex data is odd-length","value",e));const o=[];for(let e=0;ec(e))),r=t.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(r);return t.reduce(((e,t)=>(n.set(t,e),e+t.length)),0),i(n)}function d(e){let t=c(e);if(0===t.length)return t;let r=0;for(;rt&&n.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(t);return r.set(e,t-e.length),i(r)}function f(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}const h="0123456789abcdef";function m(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=h[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),o(e))return e.toHexString();if(f(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":n.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(l(e)){let t="0x";for(let r=0;r>4]+h[15&n]}return t}return n.throwArgumentError("invalid hexlify value","value",e)}function g(e){if("string"!=typeof e)e=m(e);else if(!f(e)||e.length%2)return null;return(e.length-2)/2}function b(e,t,r){return"string"!=typeof e?e=m(e):(!f(e)||e.length%2)&&n.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function v(e){let t="0x";return e.forEach((e=>{t+=m(e).substring(2)})),t}function y(e){const t=w(m(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function w(e){"string"!=typeof e&&(e=m(e)),f(e)||n.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let t=0;for(;t2*t+2&&n.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function _(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(a(e)){let r=c(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=m(r.slice(0,32)),t.s=m(r.slice(32,64))):65===r.length?(t.r=m(r.slice(0,32)),t.s=m(r.slice(32,64)),t.v=r[64]):n.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:n.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=m(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){const r=p(c(t._vs),32);t._vs=m(r);const o=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=o:t.recoveryParam!==o&&n.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;const i=m(r);null==t.s?t.s=i:t.s!==i&&n.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?n.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{const r=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==r&&n.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&f(t.r)?t.r=E(t.r,32):n.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&f(t.s)?t.s=E(t.s,32):n.throwArgumentError("signature missing or invalid s","signature",e);const r=c(t.s);r[0]>=128&&n.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);const o=m(r);t._vs&&(f(t._vs)||n.throwArgumentError("signature invalid _vs","signature",e),t._vs=E(t._vs,32)),null==t._vs?t._vs=o:t._vs!==o&&n.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function S(e){return m(u([(e=_(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},9279:(e,t,r)=>{"use strict";r.d(t,{d:()=>n});const n="0x0000000000000000000000000000000000000000"},21046:(e,t,r)=>{"use strict";r.d(t,{$B:()=>u,Bz:()=>c,Ce:()=>l,PS:()=>d,Py:()=>s,_Y:()=>i,fh:()=>a,tL:()=>o});var n=r(2593);const o=n.O$.from(-1),i=n.O$.from(0),a=n.O$.from(1),s=n.O$.from(2),l=n.O$.from("1000000000000000000"),c=n.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),u=n.O$.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),d=n.O$.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},57218:(e,t,r)=>{"use strict";r.d(t,{R:()=>n});const n="0x0000000000000000000000000000000000000000000000000000000000000000"},35644:(e,t,r)=>{"use strict";r.d(t,{i:()=>n});const n="hash/5.7.0"},32046:(e,t,r)=>{"use strict";r.d(t,{id:()=>i});var n=r(38197),o=r(44242);function i(e){return(0,n.w)((0,o.Y0)(e))}},78339:(e,t,r)=>{"use strict";r.d(t,{Kn:()=>M,r1:()=>I,VM:()=>N});var n=r(93286),o=r(44242),i=r(38197),a=r(80711),s=r(35644);function l(e,t){null==t&&(t=1);const r=[],n=r.forEach,o=function(e,t){n.call(e,(function(e){t>0&&Array.isArray(e)?o(e,t-1):r.push(e)}))};return o(e,t),r}function c(e){return 1&e?~e>>1:e>>1}function u(e,t){let r=Array(e);for(let n=0,o=-1;nt[e])):r}function f(e,t,r){let n=Array(e).fill(void 0).map((()=>[]));for(let o=0;on[t].push(e)));return n}function h(e,t){let r=1+t(),n=t(),o=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(r)}return t}(t);return l(f(o.length,1+e,t).map(((e,t)=>{const i=e[0],a=e.slice(1);return Array(o[t]).fill(void 0).map(((e,t)=>{let o=t*n;return[i+t*r,a.map((e=>e+o))]}))})))}function m(e,t){return f(1+t(),1+e,t).map((e=>[e[0],e.slice(1)]))}const g=function(e){let t=0;return()=>e[t++]}(function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),o=1,i=[0,1];for(let e=1;e>--l&1}const d=Math.pow(2,31),p=d>>>1,f=p>>1,h=d-1;let m=0;for(let e=0;e<31;e++)m=m<<1|u();let g=[],b=0,v=d;for(;;){let e=Math.floor(((m-b+1)*o-1)/v),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e>>1|u(),a=a<<1^p,s=(s^p)<<1|p|1;b=a,v=1+s-a}let y=n-4;return g.map((t=>{switch(t-y){case 3:return y+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return y+256+(e[s++]<<8|e[s++]);case 1:return y+e[s++];default:return t-1}}))}((0,r(59567).J)("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"))),b=new Set(p(g)),v=new Set(p(g)),y=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(h(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(m(r,e))}return function(e){const t={};for(let r=0;re-t));return function r(){let n=[];for(;;){let o=p(e,t);if(0==o.length)break;n.push({set:new Set(o),node:r()})}n.sort(((e,t)=>t.set.size-e.set.size));let o=e(),i=o%3;o=o/3|0;let a=!!(1&o);return o>>=1,{branches:n,valid:i,fe0f:a,save:1==o,check:2==o}}()}(g),E=45,_=95;function S(e){return(0,o.XL)(e)}function x(e){return e.filter((e=>65039!=e))}function A(e){for(let t of e.split(".")){let e=S(t);try{for(let t=e.lastIndexOf(_)-1;t>=0;t--)if(e[t]!==_)throw new Error("underscore only allowed at start");if(e.length>=4&&e.every((e=>e<128))&&e[2]===E&&e[3]===E)throw new Error("invalid label extension")}catch(e){throw new Error(`Invalid label "${t}": ${e.message}`)}}return e}function T(e,t){var r;let n,o,i=w,a=[],s=e.length;for(t&&(t.length=0);s;){let l=e[--s];if(i=null===(r=i.branches.find((e=>e.set.has(l))))||void 0===r?void 0:r.node,!i)break;if(i.save)o=l;else if(i.check&&l===o)break;a.push(l),i.fe0f&&(a.push(65039),s>0&&65039==e[s-1]&&s--),i.valid&&(n=a.slice(),2==i.valid&&n.splice(1,1),t&&t.push(...e.slice(s).reverse()),e.length=s)}return n}const C=new a.Yd(s.i),O=new Uint8Array(32);function k(e){if(0===e.length)throw new Error("invalid ENS name; empty component");return e}function R(e){const t=(0,o.Y0)(function(e){return A(function(e,t){let r=S(e).reverse(),n=[];for(;r.length;){let e=T(r);if(e){n.push(...t(e));continue}let o=r.pop();if(b.has(o)){n.push(o);continue}if(v.has(o))continue;let i=y[o];if(!i)throw new Error(`Disallowed codepoint: 0x${o.toString(16).toUpperCase()}`);n.push(...i)}return A(String.fromCodePoint(...n).normalize("NFC"))}(e,x))}(e)),r=[];if(0===e.length)return r;let n=0;for(let e=0;e=t.length)throw new Error("invalid ENS name; empty component");return r.push(k(t.slice(n))),r}function I(e){try{return 0!==R(e).length}catch(e){}return!1}function N(e){"string"!=typeof e&&C.throwArgumentError("invalid ENS name; not a string","name",e);let t=O;const r=R(e);for(;r.length;)t=(0,i.w)((0,n.zo)([t,(0,i.w)(r.pop())]));return(0,n.Dv)(t)}function M(e){return(0,n.Dv)((0,n.zo)(R(e).map((e=>{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t}))))+"00"}O.fill(0)},67827:(e,t,r)=>{"use strict";r.d(t,{E:()=>A});var n=r(64594),o=r(2593),i=r(93286),a=r(38197),s=r(53587),l=r(80711),c=r(35644),u=r(32046);const d=new l.Yd(c.i),p=new Uint8Array(32);p.fill(0);const f=o.O$.from(-1),h=o.O$.from(0),m=o.O$.from(1),g=o.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),b=(0,i.$m)(m.toHexString(),32),v=(0,i.$m)(h.toHexString(),32),y={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},w=["name","version","chainId","verifyingContract","salt"];function E(e){return function(t){return"string"!=typeof t&&d.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const _={name:E("name"),version:E("version"),chainId:function(e){try{return o.O$.from(e).toString()}catch(e){}return d.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return(0,n.Kn)(e).toLowerCase()}catch(e){}return d.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{const t=(0,i.lE)(e);if(32!==t.length)throw new Error("bad length");return(0,i.Dv)(t)}catch(e){}return d.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function S(e){{const t=e.match(/^(u?)int(\d*)$/);if(t){const r=""===t[1],n=parseInt(t[2]||"256");(n%8!=0||n>256||t[2]&&t[2]!==String(n))&&d.throwArgumentError("invalid numeric width","type",e);const a=g.mask(r?n-1:n),s=r?a.add(m).mul(f):h;return function(t){const r=o.O$.from(t);return(r.lt(s)||r.gt(a))&&d.throwArgumentError(`value out-of-bounds for ${e}`,"value",t),(0,i.$m)(r.toTwos(256).toHexString(),32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const r=parseInt(t[1]);return(0===r||r>32||t[1]!==String(r))&&d.throwArgumentError("invalid bytes width","type",e),function(t){return(0,i.lE)(t).length!==r&&d.throwArgumentError(`invalid length for ${e}`,"value",t),function(e){const t=(0,i.lE)(e),r=t.length%32;return r?(0,i.xs)([t,p.slice(r)]):(0,i.Dv)(t)}(t)}}}switch(e){case"address":return function(e){return(0,i.$m)((0,n.Kn)(e),32)};case"bool":return function(e){return e?b:v};case"bytes":return function(e){return(0,a.w)(e)};case"string":return function(e){return(0,u.id)(e)}}return null}function x(e,t){return`${e}(${t.map((({name:e,type:t})=>t+" "+e)).join(",")})`}class A{constructor(e){(0,s.zG)(this,"types",Object.freeze((0,s.p$)(e))),(0,s.zG)(this,"_encoderCache",{}),(0,s.zG)(this,"_types",{});const t={},r={},n={};Object.keys(e).forEach((e=>{t[e]={},r[e]=[],n[e]={}}));for(const n in e){const o={};e[n].forEach((i=>{o[i.name]&&d.throwArgumentError(`duplicate variable name ${JSON.stringify(i.name)} in ${JSON.stringify(n)}`,"types",e),o[i.name]=!0;const a=i.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===n&&d.throwArgumentError(`circular type reference to ${JSON.stringify(a)}`,"types",e),S(a)||(r[a]||d.throwArgumentError(`unknown type ${JSON.stringify(a)}`,"types",e),r[a].push(n),t[n][a]=!0)}))}const o=Object.keys(r).filter((e=>0===r[e].length));0===o.length?d.throwArgumentError("missing primary type","types",e):o.length>1&&d.throwArgumentError(`ambiguous primary types or unused types: ${o.map((e=>JSON.stringify(e))).join(", ")}`,"types",e),(0,s.zG)(this,"primaryType",o[0]),function o(i,a){a[i]&&d.throwArgumentError(`circular type reference to ${JSON.stringify(i)}`,"types",e),a[i]=!0,Object.keys(t[i]).forEach((e=>{r[e]&&(o(e,a),Object.keys(a).forEach((t=>{n[t][e]=!0})))})),delete a[i]}(this.primaryType,{});for(const t in n){const r=Object.keys(n[t]);r.sort(),this._types[t]=x(t,e[t])+r.map((t=>x(t,e[t]))).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{const t=S(e);if(t)return t}const t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){const e=t[1],r=this.getEncoder(e),n=parseInt(t[3]);return t=>{n>=0&&t.length!==n&&d.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);let o=t.map(r);return this._types[e]&&(o=o.map(a.w)),(0,a.w)((0,i.xs)(o))}}const r=this.types[e];if(r){const t=(0,u.id)(this._types[e]);return e=>{const n=r.map((({name:t,type:r})=>{const n=this.getEncoder(r)(e[t]);return this._types[r]?(0,a.w)(n):n}));return n.unshift(t),(0,i.xs)(n)}}return d.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const t=this._types[e];return t||d.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,a.w)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if(S(e))return r(e,t);const n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const e=n[1],o=parseInt(n[3]);return o>=0&&t.length!==o&&d.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((t=>this._visit(e,t,r)))}const o=this.types[e];return o?o.reduce(((e,{name:n,type:o})=>(e[n]=this._visit(o,t[n],r),e)),{}):d.throwArgumentError(`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,r){return A.from(t).hashStruct(e,r)}static hashDomain(e){const t=[];for(const r in e){const n=y[r];n||d.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:n})}return t.sort(((e,t)=>w.indexOf(e.name)-w.indexOf(t.name))),A.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return(0,i.xs)(["0x1901",A.hashDomain(e),A.from(t).hash(r)])}static hash(e,t,r){return(0,a.w)(A.encode(e,t,r))}static resolveNames(e,t,r,n){return o=this,a=void 0,c=function*(){e=(0,s.DC)(e);const o={};e.verifyingContract&&!(0,i.A7)(e.verifyingContract,20)&&(o[e.verifyingContract]="0x");const a=A.from(t);a.visit(r,((e,t)=>("address"!==e||(0,i.A7)(t,20)||(o[t]="0x"),t)));for(const e in o)o[e]=yield n(e);return e.verifyingContract&&o[e.verifyingContract]&&(e.verifyingContract=o[e.verifyingContract]),r=a.visit(r,((e,t)=>"address"===e&&o[t]?o[t]:t)),{domain:e,value:r}},new((l=void 0)||(l=Promise))((function(e,t){function r(e){try{i(c.next(e))}catch(e){t(e)}}function n(e){try{i(c.throw(e))}catch(e){t(e)}}function i(t){var o;t.done?e(t.value):(o=t.value,o instanceof l?o:new l((function(e){e(o)}))).then(r,n)}i((c=c.apply(o,a||[])).next())}));var o,a,l,c}static getPayload(e,t,r){A.hashDomain(e);const n={},a=[];w.forEach((t=>{const r=e[t];null!=r&&(n[t]=_[t](r),a.push({name:t,type:y[t]}))}));const l=A.from(t),c=(0,s.DC)(t);return c.EIP712Domain?d.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):c.EIP712Domain=a,l.encode(r),{types:c,domain:n,primaryType:l.primaryType,message:l.visit(r,((e,t)=>{if(e.match(/^bytes(\d*)/))return(0,i.Dv)((0,i.lE)(t));if(e.match(/^u?int/))return o.O$.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&d.throwArgumentError("invalid string","value",t),t}return d.throwArgumentError("unsupported type","type",e)}))}}}},38197:(e,t,r)=>{"use strict";r.d(t,{w:()=>a});var n=r(91094),o=r.n(n),i=r(93286);function a(e){return"0x"+o().keccak_256((0,i.lE)(e))}},80711:(e,t,r)=>{"use strict";r.d(t,{jK:()=>u,Yd:()=>p});let n=!1,o=!1;const i={debug:1,default:2,info:2,warning:3,error:4,off:5};let a=i.default,s=null;const l=function(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(r){e.push(t)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();var c,u;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(c||(c={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(u||(u={}));const d="0123456789abcdef";class p{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const r=e.toLowerCase();null==i[r]&&this.throwArgumentError("invalid log level name","logLevel",e),a>i[r]||console.log.apply(console,t)}debug(...e){this._log(p.levels.DEBUG,e)}info(...e){this._log(p.levels.INFO,e)}warn(...e){this._log(p.levels.WARNING,e)}makeError(e,t,r){if(o)return this.makeError("censored error",t,{});t||(t=p.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((e=>{const t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e>4],r+=d[15&t[e]];n.push(e+"=Uint8Array(0x"+r+")")}else n.push(e+"="+JSON.stringify(t))}catch(t){n.push(e+"="+JSON.stringify(r[e].toString()))}})),n.push(`code=${t}`),n.push(`version=${this.version}`);const i=e;let a="";switch(t){case u.NUMERIC_FAULT:{a="NUMERIC_FAULT";const t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":a+="-"+t;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result"}break}case u.CALL_EXCEPTION:case u.INSUFFICIENT_FUNDS:case u.MISSING_NEW:case u.NONCE_EXPIRED:case u.REPLACEMENT_UNDERPRICED:case u.TRANSACTION_REPLACED:case u.UNPREDICTABLE_GAS_LIMIT:a=t}a&&(e+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),n.length&&(e+=" ("+n.join(", ")+")");const s=new Error(e);return s.reason=i,s.code=t,Object.keys(r).forEach((function(e){s[e]=r[e]})),s}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,p.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,n){e||this.throwError(t,r,n)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),l&&this.throwError("platform missing String.prototype.normalize",p.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:l})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,p.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,p.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",et&&this.throwError("too many arguments"+r,p.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",p.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",p.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",p.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return s||(s=new p("logger/5.7.0")),s}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!e)return;this.globalLogger().throwError("error censorship permanent",p.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}o=!!e,n=!!t}static setLogLevel(e){const t=i[e.toLowerCase()];null!=t?a=t:p.globalLogger().warn("invalid log level - "+e)}static from(e){return new p(e)}}p.errors=u,p.levels=c},79861:(e,t,r)=>{"use strict";r.d(t,{H:()=>u});const n=new(r(80711).Yd)("networks/5.7.1");function o(e){const t=function(t,r){null==r&&(r={});const n=[];if(t.InfuraProvider&&"-"!==r.infura)try{n.push(new t.InfuraProvider(e,r.infura))}catch(e){}if(t.EtherscanProvider&&"-"!==r.etherscan)try{n.push(new t.EtherscanProvider(e,r.etherscan))}catch(e){}if(t.AlchemyProvider&&"-"!==r.alchemy)try{n.push(new t.AlchemyProvider(e,r.alchemy))}catch(e){}if(t.PocketProvider&&"-"!==r.pocket){const o=["goerli","ropsten","rinkeby","sepolia"];try{const i=new t.PocketProvider(e,r.pocket);i.network&&-1===o.indexOf(i.network.name)&&n.push(i)}catch(e){}}if(t.CloudflareProvider&&"-"!==r.cloudflare)try{n.push(new t.CloudflareProvider(e))}catch(e){}if(t.AnkrProvider&&"-"!==r.ankr)try{const o=["ropsten"],i=new t.AnkrProvider(e,r.ankr);i.network&&-1===o.indexOf(i.network.name)&&n.push(i)}catch(e){}if(0===n.length)return null;if(t.FallbackProvider){let o=1;return null!=r.quorum?o=r.quorum:"homestead"===e&&(o=2),new t.FallbackProvider(n,o)}return n[0]};return t.renetwork=function(e){return o(e)},t}function i(e,t){const r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return i(e,t)},r}const a={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:o("homestead")},s={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:o("ropsten")},l={chainId:63,name:"classicMordor",_defaultProvider:i("https://www.ethercluster.com/mordor","classicMordor")},c={unspecified:{chainId:0,name:"unspecified"},homestead:a,mainnet:a,morden:{chainId:2,name:"morden"},ropsten:s,testnet:s,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:o("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:o("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:o("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:o("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:i("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:l,classicTestnet:l,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:i("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:o("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:o("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function u(e){if(null==e)return null;if("number"==typeof e){for(const t in c){const r=c[t];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){const t=c[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}const t=c[e.name];if(!t)return"number"!=typeof e.chainId&&n.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==t.chainId&&n.throwArgumentError("network chainId mismatch","network",e);let r=e._defaultProvider||null;var o;return null==r&&t._defaultProvider&&(r=(o=t._defaultProvider)&&"function"==typeof o.renetwork?t._defaultProvider.renetwork(e):t._defaultProvider),{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:r}}},53587:(e,t,r)=>{"use strict";r.d(t,{dk:()=>m,uj:()=>c,p$:()=>h,zG:()=>a,tu:()=>s,mE:()=>l,DC:()=>u});var n=r(80711),o=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))};const i=new n.Yd("properties/5.7.0");function a(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function s(e,t){for(let r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||"object"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function l(e){return o(this,void 0,void 0,(function*(){const t=Object.keys(e).map((t=>{const r=e[t];return Promise.resolve(r).then((e=>({key:t,value:e})))}));return(yield Promise.all(t)).reduce(((e,t)=>(e[t.key]=t.value,e)),{})}))}function c(e,t){e&&"object"==typeof e||i.throwArgumentError("invalid object","object",e),Object.keys(e).forEach((r=>{t[r]||i.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)}))}function u(e){const t={};for(const r in e)t[r]=e[r];return t}const d={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function p(e){if(null==e||d[typeof e])return!0;if(Array.isArray(e)||"object"==typeof e){if(!Object.isFrozen(e))return!1;const t=Object.keys(e);for(let r=0;rh(e))));if("object"==typeof e){const t={};for(const r in e){const n=e[r];void 0!==n&&a(t,r,h(n))}return t}return i.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}function h(e){return f(e)}class m{constructor(e){for(const t in e)this[t]=h(e[t])}}},34216:(e,t,r)=>{"use strict";r.d(t,{i:()=>n});const n="providers/5.7.2"},97013:(e,t,r)=>{"use strict";r.d(t,{H2:()=>U,Zk:()=>H});var n=r(64353),o=r(59567),i=r(57727),a=r(2593),s=r(93286),l=r(57218),c=r(78339),u=r(79861),d=r(53587),p=r(23951),f=r(44242),h=r(58341),m=r(92882),g=r.n(m),b=r(80711),v=r(34216),y=r(30032),w=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))};const E=new b.Yd(v.i);function _(e){return null==e?"null":(32!==(0,s.E1)(e)&&E.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function S(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map((e=>{if(Array.isArray(e)){const t={};e.forEach((e=>{t[_(e)]=!0}));const r=Object.keys(t);return r.sort(),r.join("|")}return _(e)})).join("&")}function x(e){if("string"==typeof e){if(e=e.toLowerCase(),32===(0,s.E1)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+S(e);if(n.Sg.isForkEvent(e))throw E.warn("not implemented"),new Error("not implemented");if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+S(e.topics||[])}throw new Error("invalid event - "+e)}function A(){return(new Date).getTime()}function T(e){return new Promise((t=>{setTimeout(t,e)}))}const C=["block","network","pending","poll"];class O{constructor(e,t,r){(0,d.zG)(this,"tag",e),(0,d.zG)(this,"listener",t),(0,d.zG)(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){const e=this.tag.split(":");if("filter"!==e[0])return null;const t=e[1],r=""===(n=e[2])?[]:n.split(/&/g).map((e=>{if(""===e)return[];const t=e.split("|").map((e=>"null"===e?null:e));return 1===t.length?t[0]:t}));var n;const o={};return r.length>0&&(o.topics=r),t&&"*"!==t&&(o.address=t),o}pollable(){return this.tag.indexOf(":")>=0||C.indexOf(this.tag)>=0}}const k={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function R(e){return(0,s.$m)(a.O$.from(e).toHexString(),32)}function I(e){return i.eU.encode((0,s.zo)([e,(0,s.p3)((0,p.JQ)((0,p.JQ)(e)),0,4)]))}const N=new RegExp("^(ipfs)://(.*)$","i"),M=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),N,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function P(e,t){try{return(0,f.ZN)(D(e,t))}catch(e){}return null}function D(e,t){if("0x"===e)return null;const r=a.O$.from((0,s.p3)(e,t,t+32)).toNumber(),n=a.O$.from((0,s.p3)(e,r,r+32)).toNumber();return(0,s.p3)(e,r+32,r+32+n)}function L(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):E.throwArgumentError("unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}function F(e){const t=(0,s.lE)(e);if(t.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(t,32-t.length),r}function B(e){if(e.length%32==0)return e;const t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}function j(e){const t=[];let r=0;for(let n=0;na.O$.from(e).eq(1))).catch((e=>{if(e.code===b.Yd.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e}))),this._supportsEip2544}_fetch(e,t){return w(this,void 0,void 0,(function*(){const r={to:this.address,ccipReadEnabled:!0,data:(0,s.xs)([e,(0,c.VM)(this.name),t||"0x"])};let n=!1;(yield this.supportsWildcard())&&(n=!0,r.data=(0,s.xs)(["0x9061b923",j([(0,c.Kn)(this.name),r.data])]));try{let e=yield this.provider.call(r);return(0,s.lE)(e).length%32==4&&E.throwError("resolver threw error",b.Yd.errors.CALL_EXCEPTION,{transaction:r,data:e}),n&&(e=D(e,0)),e}catch(e){if(e.code===b.Yd.errors.CALL_EXCEPTION)return null;throw e}}))}_fetchBytes(e,t){return w(this,void 0,void 0,(function*(){const r=yield this._fetch(e,t);return null!=r?D(r,0):null}))}_getAddress(e,t){const r=k[String(e)];if(null==r&&E.throwError(`unsupported coin type: ${e}`,b.Yd.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===r.ilk)return this.provider.formatter.address(t);const n=(0,s.lE)(t);if(null!=r.p2pkh){const e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return I((0,s.zo)([[r.p2pkh],"0x"+e[2]]))}}if(null!=r.p2sh){const e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return I((0,s.zo)([[r.p2sh],"0x"+e[2]]))}}if(null!=r.prefix){const e=n[1];let t=n[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&n.length===2+e&&e>=1&&e<=75){const e=g().toWords(n.slice(2));return e.unshift(t),g().encode(r.prefix,e)}}return null}getAddress(e){return w(this,void 0,void 0,(function*(){if(null==e&&(e=60),60===e)try{const e=yield this._fetch("0x3b3b57de");return"0x"===e||e===l.R?null:this.provider.formatter.callAddress(e)}catch(e){if(e.code===b.Yd.errors.CALL_EXCEPTION)return null;throw e}const t=yield this._fetchBytes("0xf1cb7e06",R(e));if(null==t||"0x"===t)return null;const r=this._getAddress(e,t);return null==r&&E.throwError("invalid or unsupported coin data",b.Yd.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),r}))}getAvatar(){return w(this,void 0,void 0,(function*(){const e=[{type:"name",content:this.name}];try{const t=yield this.getText("avatar");if(null==t)return null;for(let r=0;re[t]))}return E.throwError("invalid or unsupported content hash data",b.Yd.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})}))}getText(e){return w(this,void 0,void 0,(function*(){let t=(0,f.Y0)(e);t=(0,s.zo)([R(64),R(t.length),t]),t.length%32!=0&&(t=(0,s.zo)([t,(0,s.$m)("0x",32-e.length%32)]));const r=yield this._fetchBytes("0x59d1d43c",(0,s.Dv)(t));return null==r||"0x"===r?null:(0,f.ZN)(r)}))}}let z=null,G=1;class H extends n.zt{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),(0,d.zG)(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch((e=>{})),this._ready().catch((e=>{}));else{const t=(0,d.tu)(new.target,"getNetwork")(e);t?((0,d.zG)(this,"_network",t),this.emit("network",t,null)):E.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return w(this,void 0,void 0,(function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch(e){}null==e&&(e=yield this.detectNetwork()),e||E.throwError("no network detected",b.Yd.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:(0,d.zG)(this,"_network",e),this.emit("network",e,null))}return this._network}))}get ready(){return(0,h.$l)((()=>this._ready().then((e=>e),(e=>{if(e.code!==b.Yd.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))))}static getFormatter(){return null==z&&(z=new y.Mb),z}static getNetwork(e){return(0,u.H)(null==e?"homestead":e)}ccipReadFetch(e,t,r){return w(this,void 0,void 0,(function*(){if(this.disableCcipRead||0===r.length)return null;const n=e.to.toLowerCase(),o=t.toLowerCase(),i=[];for(let e=0;e=0?null:JSON.stringify({data:o,sender:n}),l=yield(0,h.rd)({url:a,errorPassThrough:!0},s,((e,t)=>(e.status=t.statusCode,e)));if(l.data)return l.data;const c=l.message||"unknown error";if(l.status>=400&&l.status<500)return E.throwError(`response not found during CCIP fetch: ${c}`,b.Yd.errors.SERVER_ERROR,{url:t,errorMessage:c});i.push(c)}return E.throwError(`error encountered during CCIP fetch: ${i.map((e=>JSON.stringify(e))).join(", ")}`,b.Yd.errors.SERVER_ERROR,{urls:r,errorMessages:i})}))}_getInternalBlockNumber(e){return w(this,void 0,void 0,(function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const t=this._internalBlockNumber;try{const r=yield t;if(A()-r.respTime<=e)return r.blockNumber;break}catch(e){if(this._internalBlockNumber===t)break}}const t=A(),r=(0,d.mE)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((e=>null),(e=>e))}).then((({blockNumber:e,networkError:n})=>{if(n)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),n;const o=A();return(e=a.O$.from(e).toNumber()){this._internalBlockNumber===r&&(this._internalBlockNumber=null)})),(yield r).blockNumber}))}poll(){return w(this,void 0,void 0,(function*(){const e=G++,t=[];let r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(e){return void this.emit("error",e)}if(this._setFastBlockNumber(r),this.emit("poll",e,r),r!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)E.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",E.makeError("network block skew detected",b.Yd.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let e=this._emitted.block+1;e<=r;e++)this.emit("block",e);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach((e=>{if("block"===e)return;const t=this._emitted[e];"pending"!==t&&r-t>12&&delete this._emitted[e]}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach((e=>{switch(e.type){case"tx":{const r=e.hash;let n=this.getTransactionReceipt(r).then((e=>e&&null!=e.blockNumber?(this._emitted["t:"+r]=e.blockNumber,this.emit(r,e),null):null)).catch((e=>{this.emit("error",e)}));t.push(n);break}case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);const n=e.filter;n.fromBlock=e._lastBlockNumber+1,n.toBlock=r;const o=n.toBlock-this._maxFilterBlockRange;o>n.fromBlock&&(n.fromBlock=o),n.fromBlock<0&&(n.fromBlock=0);const i=this.getLogs(n).then((t=>{e._inflight=!1,0!==t.length&&t.forEach((t=>{t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),this._emitted["b:"+t.blockHash]=t.blockNumber,this._emitted["t:"+t.transactionHash]=t.blockNumber,this.emit(n,t)}))})).catch((t=>{this.emit("error",t),e._inflight=!1}));t.push(i)}}})),this._lastBlockNumber=r,Promise.all(t).then((()=>{this.emit("didPoll",e)})).catch((e=>{this.emit("error",e)}))}else this.emit("didPoll",e)}))}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return w(this,void 0,void 0,(function*(){return E.throwError("provider does not support network detection",b.Yd.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})}))}getNetwork(){return w(this,void 0,void 0,(function*(){const e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",t,e),yield T(0),this._network;const r=E.makeError("underlying network changed",b.Yd.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t});throw this.emit("error",r),r}return e}))}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then((e=>{this._setFastBlockNumber(e)}),(e=>{})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval((()=>{this.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((()=>{this.poll(),this._bootstrapPoll=setTimeout((()=>{this._poller||this.poll(),this._bootstrapPoll=null}),this.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((()=>{this.poll()}),this._pollingInterval))}_getFastBlockNumber(){const e=A();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then((e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber)))),this._fastBlockNumberPromise}_setFastBlockNumber(e){null!=this._fastBlockNumber&ðis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,r){return w(this,void 0,void 0,(function*(){return this._waitForTransaction(e,null==t?1:t,r||0,null)}))}_waitForTransaction(e,t,r,n){return w(this,void 0,void 0,(function*(){const o=yield this.getTransactionReceipt(e);return(o?o.confirmations:0)>=t?o:new Promise(((o,i)=>{const a=[];let s=!1;const l=function(){return!!s||(s=!0,a.forEach((e=>{e()})),!1)},c=e=>{e.confirmations{this.removeListener(e,c)})),n){let r=n.startBlock,o=null;const c=a=>w(this,void 0,void 0,(function*(){s||(yield T(1e3),this.getTransactionCount(n.from).then((u=>w(this,void 0,void 0,(function*(){if(!s){if(u<=n.nonce)r=a;else{{const t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==o&&(o=r-3,o{s||this.once("block",c)})))}));if(s)return;this.once("block",c),a.push((()=>{this.removeListener("block",c)}))}if("number"==typeof r&&r>0){const e=setTimeout((()=>{l()||i(E.makeError("timeout exceeded",b.Yd.errors.TIMEOUT,{timeout:r}))}),r);e.unref&&e.unref(),a.push((()=>{clearTimeout(e)}))}}))}))}getBlockNumber(){return w(this,void 0,void 0,(function*(){return this._getInternalBlockNumber(0)}))}getGasPrice(){return w(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return a.O$.from(e)}catch(t){return E.throwError("bad result from backend",b.Yd.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t})}}))}getBalance(e,t){return w(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,d.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getBalance",r);try{return a.O$.from(n)}catch(e){return E.throwError("bad result from backend",b.Yd.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:e})}}))}getTransactionCount(e,t){return w(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,d.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getTransactionCount",r);try{return a.O$.from(n).toNumber()}catch(e){return E.throwError("bad result from backend",b.Yd.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:e})}}))}getCode(e,t){return w(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,d.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getCode",r);try{return(0,s.Dv)(n)}catch(e){return E.throwError("bad result from backend",b.Yd.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:e})}}))}getStorageAt(e,t,r){return w(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield(0,d.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then((e=>(0,s.$P)(e)))}),o=yield this.perform("getStorageAt",n);try{return(0,s.Dv)(o)}catch(e){return E.throwError("bad result from backend",b.Yd.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:o,error:e})}}))}_wrapTransaction(e,t,r){if(null!=t&&32!==(0,s.E1)(t))throw new Error("invalid response - sendTransaction");const n=e;return null!=t&&e.hash!==t&&E.throwError("Transaction hash mismatch from Provider.sendTransaction.",b.Yd.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),n.wait=(t,n)=>w(this,void 0,void 0,(function*(){let o;null==t&&(t=1),null==n&&(n=0),0!==t&&null!=r&&(o={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});const i=yield this._waitForTransaction(e.hash,t,n,o);return null==i&&0===t?null:(this._emitted["t:"+e.hash]=i.blockNumber,0===i.status&&E.throwError("transaction failed",b.Yd.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:i}),i)})),n}sendTransaction(e){return w(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield Promise.resolve(e).then((e=>(0,s.Dv)(e))),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);const n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(r,e,n)}catch(e){throw e.transaction=r,e.transactionHash=r.hash,e}}))}_getTransactionRequest(e){return w(this,void 0,void 0,(function*(){const t=yield e,r={};return["from","to"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?this._getAddress(e):null)))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?a.O$.from(e):null)))})),["type"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>null!=e?e:null)))})),t.accessList&&(r.accessList=this.formatter.accessList(t.accessList)),["data"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?(0,s.Dv)(e):null)))})),this.formatter.transactionRequest(yield(0,d.mE)(r))}))}_getFilter(e){return w(this,void 0,void 0,(function*(){e=yield e;const t={};return null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach((r=>{null!=e[r]&&(t[r]=e[r])})),["fromBlock","toBlock"].forEach((r=>{null!=e[r]&&(t[r]=this._getBlockTag(e[r]))})),this.formatter.filter(yield(0,d.mE)(t))}))}_call(e,t,r){return w(this,void 0,void 0,(function*(){r>=10&&E.throwError("CCIP read exceeded maximum redirections",b.Yd.errors.SERVER_ERROR,{redirects:r,transaction:e});const n=e.to,o=yield this.perform("call",{transaction:e,blockTag:t});if(r>=0&&"latest"===t&&null!=n&&"0x556f1830"===o.substring(0,10)&&(0,s.E1)(o)%32==4)try{const i=(0,s.p3)(o,4),l=(0,s.p3)(i,0,32);a.O$.from(l).eq(n)||E.throwError("CCIP Read sender did not match",b.Yd.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o});const c=[],u=a.O$.from((0,s.p3)(i,32,64)).toNumber(),d=a.O$.from((0,s.p3)(i,u,u+32)).toNumber(),p=(0,s.p3)(i,u+32);for(let t=0;tw(this,void 0,void 0,(function*(){const e=yield this.perform("getBlock",n);if(null==e)return null!=n.blockHash&&null==this._emitted["b:"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?null:void 0;if(t){let t=null;for(let r=0;rthis._wrapTransaction(e))),r}return this.formatter.block(e)}))),{oncePoll:this})}))}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return w(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return(0,h.$l)((()=>w(this,void 0,void 0,(function*(){const r=yield this.perform("getTransaction",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;const n=this.formatter.transactionResponse(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return this._wrapTransaction(n)}))),{oncePoll:this})}))}getTransactionReceipt(e){return w(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return(0,h.$l)((()=>w(this,void 0,void 0,(function*(){const r=yield this.perform("getTransactionReceipt",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;if(null==r.blockHash)return;const n=this.formatter.receipt(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return n}))),{oncePoll:this})}))}getLogs(e){return w(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield(0,d.mE)({filter:this._getFilter(e)}),r=yield this.perform("getLogs",t);return r.forEach((e=>{null==e.removed&&(e.removed=!1)})),y.Mb.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)}))}getEtherPrice(){return w(this,void 0,void 0,(function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})}))}_getBlockTag(e){return w(this,void 0,void 0,(function*(){if("number"==typeof(e=yield e)&&e<0){e%1&&E.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return t+=e,t<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)}))}getResolver(e){return w(this,void 0,void 0,(function*(){let t=e;for(;;){if(""===t||"."===t)return null;if("eth"!==e&&"eth"===t)return null;const r=yield this._getResolver(t,"getResolver");if(null!=r){const n=new U(this,r,e);return t===e||(yield n.supportsWildcard())?n:null}t=t.split(".").slice(1).join(".")}}))}_getResolver(e,t){return w(this,void 0,void 0,(function*(){null==t&&(t="ENS");const r=yield this.getNetwork();r.ensAddress||E.throwError("network does not support ENS",b.Yd.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name});try{const t=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+(0,c.VM)(e).substring(2)});return this.formatter.callAddress(t)}catch(e){}return null}))}resolveName(e){return w(this,void 0,void 0,(function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(t){if((0,s.A7)(e))throw t}"string"!=typeof e&&E.throwArgumentError("invalid ENS name","name",e);const t=yield this.getResolver(e);return t?yield t.getAddress():null}))}lookupAddress(e){return w(this,void 0,void 0,(function*(){e=yield e;const t=(e=this.formatter.address(e)).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(t,"lookupAddress");if(null==r)return null;const n=P(yield this.call({to:r,data:"0x691f3431"+(0,c.VM)(t).substring(2)}),0);return(yield this.resolveName(n))!=e?null:n}))}getAvatar(e){return w(this,void 0,void 0,(function*(){let t=null;if((0,s.A7)(e)){const r=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(r,"getAvatar");if(!n)return null;t=new U(this,n,r);try{const e=yield t.getAvatar();if(e)return e.url}catch(e){if(e.code!==b.Yd.errors.CALL_EXCEPTION)throw e}try{const e=P(yield this.call({to:n,data:"0x691f3431"+(0,c.VM)(r).substring(2)}),0);t=yield this.getResolver(e)}catch(e){if(e.code!==b.Yd.errors.CALL_EXCEPTION)throw e;return null}}else if(t=yield this.getResolver(e),!t)return null;const r=yield t.getAvatar();return null==r?null:r.url}))}perform(e,t){return E.throwError(e+" not implemented",b.Yd.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_stopEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_addEventListener(e,t,r){const n=new O(x(e),t,r);return this._events.push(n),this._startEvent(n),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e,...t){let r=!1,n=[],o=x(e);return this._events=this._events.filter((e=>e.tag!==o||(setTimeout((()=>{e.listener.apply(this,t)}),0),r=!0,!e.once||(n.push(e),!1)))),n.forEach((e=>{this._stopEvent(e)})),r}listenerCount(e){if(!e)return this._events.length;let t=x(e);return this._events.filter((e=>e.tag===t)).length}listeners(e){if(null==e)return this._events.map((e=>e.listener));let t=x(e);return this._events.filter((e=>e.tag===t)).map((e=>e.listener))}off(e,t){if(null==t)return this.removeAllListeners(e);const r=[];let n=!1,o=x(e);return this._events=this._events.filter((e=>e.tag!==o||e.listener!=t||!!n||(n=!0,r.push(e),!1))),r.forEach((e=>{this._stopEvent(e)})),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{const r=x(e);this._events=this._events.filter((e=>e.tag!==r||(t.push(e),!1)))}return t.forEach((e=>{this._stopEvent(e)})),this}}},30032:(e,t,r)=>{"use strict";r.d(t,{Ed:()=>f,Gp:()=>h,Mb:()=>p,vh:()=>g});var n=r(64594),o=r(2593),i=r(93286),a=r(9279),s=r(53587),l=r(64377),c=r(80711),u=r(34216);const d=new c.Yd(u.i);class p{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},t=this.address.bind(this),r=this.bigNumber.bind(this),n=this.blockTag.bind(this),o=this.data.bind(this),i=this.hash.bind(this),a=this.hex.bind(this),l=this.number.bind(this),c=this.type.bind(this);return e.transaction={hash:i,type:c,accessList:p.allowNull(this.accessList.bind(this),null),blockHash:p.allowNull(i,null),blockNumber:p.allowNull(l,null),transactionIndex:p.allowNull(l,null),confirmations:p.allowNull(l,null),from:t,gasPrice:p.allowNull(r),maxPriorityFeePerGas:p.allowNull(r),maxFeePerGas:p.allowNull(r),gasLimit:r,to:p.allowNull(t,null),value:r,nonce:l,data:o,r:p.allowNull(this.uint256),s:p.allowNull(this.uint256),v:p.allowNull(l),creates:p.allowNull(t,null),raw:p.allowNull(o)},e.transactionRequest={from:p.allowNull(t),nonce:p.allowNull(l),gasLimit:p.allowNull(r),gasPrice:p.allowNull(r),maxPriorityFeePerGas:p.allowNull(r),maxFeePerGas:p.allowNull(r),to:p.allowNull(t),value:p.allowNull(r),data:p.allowNull((e=>this.data(e,!0))),type:p.allowNull(l),accessList:p.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:l,blockNumber:l,transactionHash:i,address:t,topics:p.arrayOf(i),data:o,logIndex:l,blockHash:i},e.receipt={to:p.allowNull(this.address,null),from:p.allowNull(this.address,null),contractAddress:p.allowNull(t,null),transactionIndex:l,root:p.allowNull(a),gasUsed:r,logsBloom:p.allowNull(o),blockHash:i,transactionHash:i,logs:p.arrayOf(this.receiptLog.bind(this)),blockNumber:l,confirmations:p.allowNull(l,null),cumulativeGasUsed:r,effectiveGasPrice:p.allowNull(r),status:p.allowNull(l),type:c},e.block={hash:p.allowNull(i),parentHash:i,number:l,timestamp:l,nonce:p.allowNull(a),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:p.allowNull(t),extraData:o,transactions:p.allowNull(p.arrayOf(i)),baseFeePerGas:p.allowNull(r)},e.blockWithTransactions=(0,s.DC)(e.block),e.blockWithTransactions.transactions=p.allowNull(p.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:p.allowNull(n,void 0),toBlock:p.allowNull(n,void 0),blockHash:p.allowNull(i,void 0),address:p.allowNull(t,void 0),topics:p.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:p.allowNull(l),blockHash:p.allowNull(i),transactionIndex:l,removed:p.allowNull(this.boolean.bind(this)),address:t,data:p.allowFalsish(o,"0x"),topics:p.arrayOf(i),transactionHash:i,logIndex:l},e}accessList(e){return(0,l.z7)(e||[])}number(e){return"0x"===e?0:o.O$.from(e).toNumber()}type(e){return"0x"===e||null==e?0:o.O$.from(e).toNumber()}bigNumber(e){return o.O$.from(e)}boolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)}hex(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),(0,i.A7)(e))?e.toLowerCase():d.throwArgumentError("invalid hash","value",e)}data(e,t){const r=this.hex(e,t);if(r.length%2!=0)throw new Error("invalid data; odd-length - "+e);return r}address(e){return(0,n.Kn)(e)}callAddress(e){if(!(0,i.A7)(e,32))return null;const t=(0,n.Kn)((0,i.p3)(e,12));return t===a.d?null:t}contractAddress(e){return(0,n.CR)(e)}blockTag(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"==typeof e||(0,i.A7)(e))return(0,i.$P)(e);throw new Error("invalid blockTag")}hash(e,t){const r=this.hex(e,t);return 32!==(0,i.E1)(r)?d.throwArgumentError("invalid hash","value",e):r}difficulty(e){if(null==e)return null;const t=o.O$.from(e);try{return t.toNumber()}catch(e){}return null}uint256(e){if(!(0,i.A7)(e))throw new Error("invalid uint256");return(0,i.$m)(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);const r=null!=e._difficulty?e._difficulty:e.difficulty,n=p.check(t,e);return n._difficulty=null==r?null:o.O$.from(r),n}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return p.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&o.O$.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),1!==e.type&&2!==e.type||null!=e.accessList||(e.accessList=[]);const t=p.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;(0,i.A7)(r)&&(r=o.O$.from(r).toNumber()),t.chainId=r}else{let r=e.networkId;null==r&&null==t.v&&(r=e.chainId),(0,i.A7)(r)&&(r=o.O$.from(r).toNumber()),"number"!=typeof r&&null!=t.v&&(r=(t.v-35)/2,r<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),t.chainId=r}return t.blockHash&&"x"===t.blockHash.replace(/0/g,"")&&(t.blockHash=null),t}transaction(e){return(0,l.Qc)(e)}receiptLog(e){return p.check(this.formats.receiptLog,e)}receipt(e){const t=p.check(this.formats.receipt,e);if(null!=t.root)if(t.root.length<=4){const e=o.O$.from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&d.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):d.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&d.throwArgumentError("invalid root hash","value.root",t.root);return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map((e=>this.topics(e))):null!=e?this.hash(e,!0):null}filter(e){return p.check(this.formats.filter,e)}filterLog(e){return p.check(this.formats.filterLog,e)}static check(e,t){const r={};for(const n in e)try{const o=e[n](t[n]);void 0!==o&&(r[n]=o)}catch(e){throw e.checkKey=n,e.checkValue=t[n],e}return r}static allowNull(e,t){return function(r){return null==r?t:e(r)}}static allowFalsish(e,t){return function(r){return r?e(r):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");const r=[];return t.forEach((function(t){r.push(e(t))})),r}}}function f(e){return e&&"function"==typeof e.isCommunityResource}function h(e){return f(e)&&e.isCommunityResource()}let m=!1;function g(){m||(m=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (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.io/api-keys/"),console.log("=========================="))}},82169:(e,t,r)=>{"use strict";r.d(t,{C:()=>S,r:()=>T});var n=r(48171),o=r(2593),i=r(93286),a=r(67827),s=r(53587),l=r(44242),c=r(64377),u=r(58341),d=r(80711),p=r(34216),f=r(97013),h=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))};const m=new d.Yd(p.i),g=["call","estimateGas"];function b(e,t){if(null==e)return null;if("string"==typeof e.message&&e.message.match("reverted")){const r=(0,i.A7)(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if("object"==typeof e){for(const r in e){const n=b(e[r],t);if(n)return n}return null}if("string"==typeof e)try{return b(JSON.parse(e),t)}catch(e){}return null}function v(e,t,r){const n=r.transaction||r.signedTransaction;if("call"===e){const e=b(t,!0);if(e)return e.data;m.throwError("missing revert data in call exception; Transaction reverted without a reason string",d.Yd.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:t})}if("estimateGas"===e){let r=b(t.body,!1);null==r&&(r=b(t,!1)),r&&m.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",d.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:e,transaction:n,error:t})}let o=t.message;throw t.code===d.Yd.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?o=t.error.message:"string"==typeof t.body?o=t.body:"string"==typeof t.responseText&&(o=t.responseText),o=(o||"").toLowerCase(),o.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&m.throwError("insufficient funds for intrinsic transaction cost",d.Yd.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),o.match(/nonce (is )?too low/i)&&m.throwError("nonce has already been used",d.Yd.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),o.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&m.throwError("replacement fee too low",d.Yd.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),o.match(/only replay-protected/i)&&m.throwError("legacy pre-eip-155 transactions not supported",d.Yd.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:n}),g.indexOf(e)>=0&&o.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&m.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",d.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}function y(e){return new Promise((function(t){setTimeout(t,e)}))}function w(e){if(e.error){const t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function E(e){return e?e.toLowerCase():e}const _={};class S extends n.E{constructor(e,t,r){if(super(),e!==_)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");(0,s.zG)(this,"provider",t),null==r&&(r=0),"string"==typeof r?((0,s.zG)(this,"_address",this.provider.formatter.address(r)),(0,s.zG)(this,"_index",null)):"number"==typeof r?((0,s.zG)(this,"_index",r),(0,s.zG)(this,"_address",null)):m.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(e){return m.throwError("cannot alter JSON-RPC Signer connection",d.Yd.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new x(_,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((e=>(e.length<=this._index&&m.throwError("unknown account #"+this._index,d.Yd.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index]))))}sendUncheckedTransaction(e){e=(0,s.DC)(e);const t=this.getAddress().then((e=>(e&&(e=e.toLowerCase()),e)));if(null==e.gasLimit){const r=(0,s.DC)(e);r.from=t,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((e=>h(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.provider.resolveName(e);return null==t&&m.throwArgumentError("provided ENS name resolves to null","tx.to",e),t}))))),(0,s.mE)({tx:(0,s.mE)(e),sender:t}).then((({tx:t,sender:r})=>{null!=t.from?t.from.toLowerCase()!==r&&m.throwArgumentError("from address mismatch","transaction",e):t.from=r;const n=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send("eth_sendTransaction",[n]).then((e=>e),(e=>("string"==typeof e.message&&e.message.match(/user denied/i)&&m.throwError("user rejected transaction",d.Yd.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:t}),v("sendTransaction",e,n))))}))}signTransaction(e){return m.throwError("signing transactions is unsupported",d.Yd.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return h(this,void 0,void 0,(function*(){const t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield(0,u.$l)((()=>h(this,void 0,void 0,(function*(){const e=yield this.provider.getTransaction(r);if(null!==e)return this.provider._wrapTransaction(e,r,t)}))),{oncePoll:this.provider})}catch(e){throw e.transactionHash=r,e}}))}signMessage(e){return h(this,void 0,void 0,(function*(){const t="string"==typeof e?(0,l.Y0)(e):e,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[(0,i.Dv)(t),r.toLowerCase()])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&m.throwError("user rejected signing",d.Yd.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),t}}))}_legacySignMessage(e){return h(this,void 0,void 0,(function*(){const t="string"==typeof e?(0,l.Y0)(e):e,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),(0,i.Dv)(t)])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&m.throwError("user rejected signing",d.Yd.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),t}}))}_signTypedData(e,t,r){return h(this,void 0,void 0,(function*(){const n=yield a.E.resolveNames(e,t,r,(e=>this.provider.resolveName(e))),o=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[o.toLowerCase(),JSON.stringify(a.E.getPayload(n.domain,t,n.value))])}catch(e){throw"string"==typeof e.message&&e.message.match(/user denied/i)&&m.throwError("user rejected signing",d.Yd.errors.ACTION_REJECTED,{action:"_signTypedData",from:o,messageData:{domain:n.domain,types:t,value:n.value}}),e}}))}unlock(e){return h(this,void 0,void 0,(function*(){const t=this.provider,r=yield this.getAddress();return t.send("personal_unlockAccount",[r.toLowerCase(),e,null])}))}}class x extends S{sendTransaction(e){return this.sendUncheckedTransaction(e).then((e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(e,t)})))}}const A={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class T extends f.Zk{constructor(e,t){let r=t;null==r&&(r=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then((t=>{e(t)}),(e=>{t(e)}))}),0)}))),super(r),e||(e=(0,s.tu)(this.constructor,"defaultUrl")()),"string"==typeof e?(0,s.zG)(this,"connection",Object.freeze({url:e})):(0,s.zG)(this,"connection",Object.freeze((0,s.DC)(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((()=>{this._cache.detectNetwork=null}),0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return h(this,void 0,void 0,(function*(){yield y(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(t){try{e=yield this.send("net_version",[])}catch(e){}}if(null!=e){const t=(0,s.tu)(this.constructor,"getNetwork");try{return t(o.O$.from(e).toNumber())}catch(t){return m.throwError("could not detect network",d.Yd.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:t})}}return m.throwError("could not detect network",d.Yd.errors.NETWORK_ERROR,{event:"noNetwork"})}))}getSigner(e){return new S(_,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then((e=>e.map((e=>this.formatter.address(e)))))}send(e,t){const r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,s.p$)(r),provider:this});const n=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(n&&this._cache[e])return this._cache[e];const o=(0,u.rd)(this.connection,JSON.stringify(r),w).then((e=>(this.emit("debug",{action:"response",request:r,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",error:e,request:r,provider:this}),e}));return n&&(this._cache[e]=o,setTimeout((()=>{this._cache[e]=null}),0)),o}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[E(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[E(t.address),t.blockTag]];case"getCode":return["eth_getCode",[E(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[E(t.address),(0,i.$m)(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[(0,s.tu)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[(0,s.tu)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=E(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return h(this,void 0,void 0,(function*(){if("call"===e||"estimateGas"===e){const e=t.transaction;if(e&&null!=e.type&&o.O$.from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){const r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((t=(0,s.DC)(t)).transaction=(0,s.DC)(e),delete t.transaction.type)}}const r=this.prepareRequest(e,t);null==r&&m.throwError(e+" not implemented",d.Yd.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(r){return v(e,r,t)}}))}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;const e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(r){return function n(){e.send("eth_getFilterChanges",[r]).then((function(r){if(e._pendingFilter!=t)return null;let n=Promise.resolve();return r.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",n=n.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),n.then((function(){return y(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){n()}),0),null;e.send("eth_uninstallFilter",[r])})).catch((e=>{}))}(),r})).catch((e=>{}))}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){const r=(0,s.DC)(A);if(t)for(const e in t)t[e]&&(r[e]=!0);(0,s.uj)(e,r);const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null==e[t])return;const r=(0,i.$P)(o.O$.from(e[t]));"gasLimit"===t&&(t="gas"),n[t]=r})),["from","to","data"].forEach((function(t){null!=e[t]&&(n[t]=(0,i.Dv)(e[t]))})),e.accessList&&(n.accessList=(0,c.z7)(e.accessList)),n}}},241:(e,t,r)=>{"use strict";r.d(t,{Q:()=>u});var n=r(53587),o=r(80711),i=r(34216),a=r(82169);const s=new o.Yd(i.i);let l=1;function c(e,t){const r="Web3LegacyFetcher";return function(e,o){const i={method:e,params:o,id:l++,jsonrpc:"2.0"};return new Promise(((e,o)=>{this.emit("debug",{action:"request",fetcher:r,request:(0,n.p$)(i),provider:this}),t(i,((t,n)=>{if(t)return this.emit("debug",{action:"response",fetcher:r,error:t,request:i,provider:this}),o(t);if(this.emit("debug",{action:"response",fetcher:r,request:i,response:n,provider:this}),n.error){const e=new Error(n.error.message);return e.code=n.error.code,e.data=n.error.data,o(e)}e(n.result)}))}))}}class u extends a.r{constructor(e,t){null==e&&s.throwArgumentError("missing provider","provider",e);let r=null,o=null,i=null;"function"==typeof e?(r="unknown:",o=e):(r=e.host||e.path||"",!r&&e.isMetaMask&&(r="metamask"),i=e,e.request?(""===r&&(r="eip-1193:"),o=function(e){return function(t,r){null==r&&(r=[]);const o={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,n.p$)(o),provider:this}),e.request(o).then((e=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:o,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:o,error:e,provider:this}),e}))}}(e)):e.sendAsync?o=c(0,e.sendAsync.bind(e)):e.send?o=c(0,e.send.bind(e)):s.throwArgumentError("unsupported provider","provider",e),r||(r="unknown:")),super(r,t),(0,n.zG)(this,"jsonRpcFetchFunc",o),(0,n.zG)(this,"provider",i)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}},61843:(e,t,r)=>{"use strict";r.r(t),r.d(t,{decode:()=>p,encode:()=>c});var n=r(93286),o=r(80711);const i=new o.Yd("rlp/5.7.0");function a(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function s(e,t,r){let n=0;for(let o=0;ot+1+n&&i.throwError("child data too short",o.Yd.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:a}}function d(e,t){if(0===e.length&&i.throwError("data too short",o.Yd.errors.BUFFER_OVERRUN,{}),e[t]>=248){const r=e[t]-247;t+1+r>e.length&&i.throwError("data short segment too short",o.Yd.errors.BUFFER_OVERRUN,{});const n=s(e,t+1,r);return t+1+r+n>e.length&&i.throwError("data long segment too short",o.Yd.errors.BUFFER_OVERRUN,{}),u(e,t,t+1+r,r+n)}if(e[t]>=192){const r=e[t]-192;return t+1+r>e.length&&i.throwError("data array too short",o.Yd.errors.BUFFER_OVERRUN,{}),u(e,t,t+1,r)}if(e[t]>=184){const r=e[t]-183;t+1+r>e.length&&i.throwError("data array too short",o.Yd.errors.BUFFER_OVERRUN,{});const a=s(e,t+1,r);return t+1+r+a>e.length&&i.throwError("data array too short",o.Yd.errors.BUFFER_OVERRUN,{}),{consumed:1+r+a,result:(0,n.Dv)(e.slice(t+1+r,t+1+r+a))}}if(e[t]>=128){const r=e[t]-128;return t+1+r>e.length&&i.throwError("data too short",o.Yd.errors.BUFFER_OVERRUN,{}),{consumed:1+r,result:(0,n.Dv)(e.slice(t+1,t+1+r))}}return{consumed:1,result:(0,n.Dv)(e[t])}}function p(e){const t=(0,n.lE)(e),r=d(t,0);return r.consumed!==t.length&&i.throwArgumentError("invalid rlp data","data",e),r.result}},23951:(e,t,r)=>{"use strict";r.d(t,{Gy:()=>p,bP:()=>c,JQ:()=>u,o:()=>d});var n=r(33715),o=r.n(n),i=r(93286),a=r(21261),s=r(80711);const l=new s.Yd("sha2/5.7.0");function c(e){return"0x"+o().ripemd160().update((0,i.lE)(e)).digest("hex")}function u(e){return"0x"+o().sha256().update((0,i.lE)(e)).digest("hex")}function d(e){return"0x"+o().sha512().update((0,i.lE)(e)).digest("hex")}function p(e,t,r){return a.p[e]||l.throwError("unsupported algorithm "+e,s.Yd.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+o().hmac(o()[e],(0,i.lE)(t)).update((0,i.lE)(r)).digest("hex")}},21261:(e,t,r)=>{"use strict";var n;r.d(t,{p:()=>n}),function(e){e.sha256="sha256",e.sha512="sha512"}(n||(n={}))},62768:(e,t,r)=>{"use strict";r.d(t,{Et:()=>Y,VW:()=>X,LO:()=>Z});var n=r(13550),o=r.n(n),i=r(33715),a=r.n(i);function s(e,t,r){return r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},e(r,r.exports),r.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self&&self;var l=c;function c(e,t){if(!e)throw new Error(t||"Assertion failed")}c.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var u=s((function(e,t){var r=t;function n(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r>8,a=255&o;i?r.push(i,a):r.push(a)}return r},r.zero2=n,r.toHex=o,r.encode=function(e,t){return"hex"===t?o(e):e}})),d=s((function(e,t){var r=t;r.assert=l,r.toArray=u.toArray,r.zero2=u.zero2,r.toHex=u.toHex,r.encode=u.encode,r.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var o=1<(o>>1)-1?(o>>1)-l:l,i.isubn(s)):s=0,n[a]=s,i.iushrn(1)}return n},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,o=0,i=0;e.cmpn(-o)>0||t.cmpn(-i)>0;){var a,s,l=e.andln(3)+o&3,c=t.andln(3)+i&3;3===l&&(l=-1),3===c&&(c=-1),a=0==(1&l)?0:3!=(n=e.andln(7)+o&7)&&5!==n||2!==c?l:-l,r[0].push(a),s=0==(1&c)?0:3!=(n=t.andln(7)+i&7)&&5!==n||2!==l?c:-c,r[1].push(s),2*o===a+1&&(o=1-o),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new(o())(e,"hex","le")}})),p=d.getNAF,f=d.getJSF,h=d.assert;function m(e,t){this.type=e,this.p=new(o())(t.p,16),this.red=t.prime?o().red(t.prime):o().mont(this.p),this.zero=new(o())(0).toRed(this.red),this.one=new(o())(1).toRed(this.red),this.two=new(o())(2).toRed(this.red),this.n=t.n&&new(o())(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var g=m;function b(e,t){this.curve=e,this.type=t,this.precomputed=null}m.prototype.point=function(){throw new Error("Not implemented")},m.prototype.validate=function(){throw new Error("Not implemented")},m.prototype._fixedNafMul=function(e,t){h(e.precomputed);var r=e._getDoubles(),n=p(t,1,this._bitLength),o=(1<=i;l--)a=(a<<1)+n[l];s.push(a)}for(var c=this.jpoint(null,null,null),u=this.jpoint(null,null,null),d=o;d>0;d--){for(i=0;i=0;s--){for(var l=0;s>=0&&0===i[s];s--)l++;if(s>=0&&l++,a=a.dblp(l),s<0)break;var c=i[s];h(0!==c),a="affine"===e.type?c>0?a.mixedAdd(o[c-1>>1]):a.mixedAdd(o[-c-1>>1].neg()):c>0?a.add(o[c-1>>1]):a.add(o[-c-1>>1].neg())}return"affine"===e.type?a.toP():a},m.prototype._wnafMulAdd=function(e,t,r,n,o){var i,a,s,l=this._wnafT1,c=this._wnafT2,u=this._wnafT3,d=0;for(i=0;i=1;i-=2){var m=i-1,g=i;if(1===l[m]&&1===l[g]){var b=[t[m],null,null,t[g]];0===t[m].y.cmp(t[g].y)?(b[1]=t[m].add(t[g]),b[2]=t[m].toJ().mixedAdd(t[g].neg())):0===t[m].y.cmp(t[g].y.redNeg())?(b[1]=t[m].toJ().mixedAdd(t[g]),b[2]=t[m].add(t[g].neg())):(b[1]=t[m].toJ().mixedAdd(t[g]),b[2]=t[m].toJ().mixedAdd(t[g].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],y=f(r[m],r[g]);for(d=Math.max(y[0].length,d),u[m]=new Array(d),u[g]=new Array(d),a=0;a=0;i--){for(var x=0;i>=0;){var A=!0;for(a=0;a=0&&x++,_=_.dblp(x),i<0)break;for(a=0;a0?s=c[a][T-1>>1]:T<0&&(s=c[a][-T-1>>1].neg()),_="affine"===s.type?_.mixedAdd(s):_.add(s))}}for(i=0;i=Math.ceil((e.bitLength()+1)/t.step)},b.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,o=0;o=0&&(a=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a,b:s}]},w.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],o=n.b.mul(e).divRound(this.n),i=r.b.neg().mul(e).divRound(this.n),a=o.mul(r.a),s=i.mul(n.a),l=o.mul(r.b),c=i.mul(n.b);return{k1:e.sub(a).sub(s),k2:l.add(c).neg()}},w.prototype.pointFromX=function(e,t){(e=new(o())(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},w.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),o=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(o).cmpn(0)},w.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,o=this._endoWnafT2,i=0;i