1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9738],{7561:(e,t,n)=>{n.d(t,{u:()=>o});var i=n(58563);let l={"connectionStatus.successfullyConnected":"Successfully connected with {walletName}","connectionStatus.errorTitle":"{errorMessage}","connectionStatus.connecting":"Connecting","connectionStatus.connectOneWallet":"For the best experience, connect only one wallet at a time.","connectionStatus.checkOtherWindows":"Don't see your wallet? Check your other browser windows.","connectionStatus.stillHere":"Still here?","connectionStatus.tryConnectingAgain":"Try connecting again","connectionStatus.or":"or","connectionStatus.useDifferentLink":"use this different link","connectWallet.connectYourWallet":"Connect a wallet","connectWallet.waitingForWallet":"Waiting for {walletName}","connectWallet.connectToAccount":"Connect a wallet to your {appName} account","connectWallet.installAndConnect":"To connect to {walletName}, install and open the app. Then confirm the connection when prompted.","connectWallet.tryConnectingAgain":"Please try connecting again.","connectWallet.openInApp":"Open in app","connectWallet.copyLink":"Copy link","connectWallet.retry":"Retry","connectWallet.searchPlaceholder":"Search through {count} wallets","connectWallet.noWalletsFound":"No wallets found. Try another search.","connectWallet.lastUsed":"Last used","connectWallet.selectYourWallet":"Select your wallet","connectWallet.selectNetwork":"Select network","connectWallet.goToWallet":"Go to {walletName} to continue","connectWallet.scanToConnect":"Scan code to connect to {walletName}","connectWallet.openOrInstall":"Open or install {walletName}"};function o(){let e=(0,i.u)();return{t:(t,n)=>{var i;let o;return i=e.intl.textLocalization,o=i?.[t]??l[t],n&&0!==Object.keys(n).length?o.replace(/\{(\w+)\}/g,(e,t)=>n[t]??e):o}}}},21297:(e,t,n)=>{n.d(t,{E:()=>i});let i=n(18827).I4.span.withConfig({displayName:"ErrorMessage",componentId:"sc-fcb8cd50-0"})(["text-align:left;font-size:0.75rem;font-weight:500;line-height:1.125rem;color:var(--privy-color-error);"])},27514:(e,t,n)=>{n.d(t,{W:()=>l});var i=n(37876);let l=({...e})=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,i.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,i.jsx)("path",{d:"M3 9a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2"}),(0,i.jsx)("path",{d:"M3 11h3c.8 0 1.6.3 2.1.9l1.1.9c1.6 1.6 4.1 1.6 5.7 0l1.1-.9c.5-.5 1.3-.9 2.1-.9H21"})]})},39738:(e,t,n)=>{n.d(t,{c:()=>q,d:()=>G,i:()=>X,u:()=>Q});var i=n(37876),l=n(14232);let o=l.forwardRef(function({title:e,titleId:t,...n},i){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},n),e?l.createElement("title",{id:t},e):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))});var s=n(98477);function a(e,t,n){let i,l=n.initialDeps??[],o=!0;function s(){var s,a,r;let c,d;n.key&&(null==(s=n.debug)?void 0:s.call(n))&&(c=Date.now());let h=e();if(!(h.length!==l.length||h.some((e,t)=>l[t]!==e)))return i;if(l=h,n.key&&(null==(a=n.debug)?void 0:a.call(n))&&(d=Date.now()),i=t(...h),n.key&&(null==(r=n.debug)?void 0:r.call(n))){let e=Math.round((Date.now()-c)*100)/100,t=Math.round((Date.now()-d)*100)/100,i=t/16,l=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%câ± ${l(t,5)} /${l(e,5)} ms`,` 2 font-size: .6rem; 3 font-weight: bold; 4 color: hsl(${Math.max(0,Math.min(120-120*i,120))}deg 100% 31%);`,null==n?void 0:n.key)}return(null==n?void 0:n.onChange)&&!(o&&n.skipInitialOnChange)&&n.onChange(i),o=!1,i}return s.updateDeps=e=>{l=e},s}function r(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let c=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},d=e=>e,h=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let e=t;e<=n;e++)i.push(e);return i},u=(e,t)=>
4{let n=e.scrollElement;if(!n)return;let i=e.targetWindow;if(!i)return;let l=e=>{let{width:n,height:i}=e;t({width:Math.round(n),height:Math.round(i)})};if(l(c(n)),!i.ResizeObserver)return()=>{};let o=new i.ResizeObserver(t=>{let i=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t)return void l({width:t.inlineSize,height:t.blockSize})}l(c(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},p={passive:!0},m="undefined"==typeof window||"onscrollend"in window,g=(e,t)=>{var n,i;let l,o=e.scrollElement;if(!o)return;let s=e.targetWindow;if(!s)return;let a=0,r=e.options.useScrollendEvent&&m?()=>void 0:(n=()=>{t(a,!1)},i=e.options.isScrollingResetDelay,function(...e){s.clearTimeout(l),l=s.setTimeout(()=>n.apply(this,e),i)}),c=n=>()=>{let{horizontal:i,isRtl:l}=e.options;a=i?o.scrollLeft*(l&&-1||1):o.scrollTop,r(),t(a,n)},d=c(!0),h=c(!1);o.addEventListener("scroll",d,p);let u=e.options.useScrollendEvent&&m;return u&&o.addEventListener("scrollend",h,p),()=>{o.removeEventListener("scroll",d),u&&o.removeEventListener("scrollend",h)}},f=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},v=(e,{adjustments:t=0,behavior:n},i)=>{var l,o;null==(o=null==(l=i.scrollElement)?void 0:l.scrollTo)||o.call(l,{[i.options.horizontal?"left":"top"]:e+t,behavior:n})};class w{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.currentScrollToIndex=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:d,rangeExtractor:h,onChange:()=>{},measureElement:f,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=a(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>
4{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,i=new Map;for(let l=t-1;l>=0;l--){let t=e[l];if(n.has(t.lane))continue;let o=i.get(t.lane);if(null==o||t.end>o.end?i.set(t.lane,t):t.end<o.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=a(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(e,t,n,i,l,o)=>(void 0!==this.prevLanes&&this.prevLanes!==o&&(this.lanesChangedFlag=!0),this.prevLanes=o,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:i,enabled:l,lanes:o}),{key:!1}),this.getMeasurements=a(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:i,enabled:l,lanes:o},s)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let a=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);let r=this.measurementsCache.slice(0,a),c=Array(o).fill(void 0);for(let e=0;e<a;e++){let t=r[e];t&&(c[t.lane]=e)}for(let l=a;l<e;l++){let e,o,a=i(l),d=this.laneAssignments.get(l);if(void 0!==d&&this.options.lanes>1){let i=c[e=d],l=void 0!==i?r[i]:void 0;o=l?l.end+this.options.gap:t+n}else{let i=1===this.options.lanes?r[l-1]:this.getFurthestMeasurement(r,l);o=i?i.end+this.options.gap:t+n,e=i?i.lane:l%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(l,e)}let h=s.get(a),u="number"==typeof h?h:this.options.estimateSize(l),p=o+u;r[l]={index:l,start:o,size:u,end:p,key:a,lane:e},c[e]=l}return this.measurementsCache=r,r},{key:!1,debug:()=>this.options.debug}),this.calculateRange=a(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,i)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:i}){let l=e.length-1;if(e.length<=i)return{startIndex:0,endIndex:l};let o=y(0,l,t=>e[t].start,n),s=o;if(1===i)for(;s<l&&e[s].end<n+t;)s++;else if(i>1){let a=Array(i).fill(0);for(;s<l&&a.some(e=>e<n+t);){let t=e[s];a[t.lane]=t.end,s++}let r=Array(i).fill(n+t);for(;o>=0&&r.some(e=>e>=n);){let t=e[o];r[t.lane]=t.start,o--}o=Math.max(0,o-o%i),s=Math.min(l,s+(i-1-s%i))}return{startIndex:o,endIndex:s}}({measurements:e,outerSize:t,scrollOffset:n,lanes:i}):null,{key:!1,debug:()=>this.options.debug}
4),this.getVirtualIndexes=a(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,i,l)=>null===i||null===l?[]:e({startIndex:i,endIndex:l,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let n=this.indexFromElement(e),i=this.measurementsCache[n];if(!i)return;let l=i.key,o=this.elementsCache.get(l);o!==e&&(o&&this.observer.unobserve(o),this.observer.observe(e),this.elementsCache.set(l,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let i=t-(this.itemSizeCache.get(n.key)??n.size);0!==i&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,i,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))})},this.getVirtualItems=a(()=>
4[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let i=0,l=e.length;i<l;i++){let l=t[e[i]];n.push(l)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return r(t[y(0,t.length-1,e=>r(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let i=this.getSize(),l=this.getScrollOffset();return"auto"===t&&(t=e>=l+i?"end":"start"),"center"===t?e+=(n-i)/2:"end"===t&&(e-=i),Math.max(Math.min(this.getMaxScrollOffset(),e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let i=this.getSize(),l=this.getScrollOffset();if("auto"===t)if(n.end>=l+i-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=l+this.options.scrollPaddingStart))return[l,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let o="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1)),this.currentScrollToIndex=e;let i=0,l=t=>{if(!this.targetWindow)return;let i=this.getOffsetForIndex(e,t);if(!i)return void console.warn("Failed to get offset for index:",e);let[l,s]=i;this._scrollToOffset(l,{adjustments:void 0,behavior:n}),this.targetWindow.requestAnimationFrame(()=>{let t=()=>{if(this.currentScrollToIndex!==e)return;let t=this.getScrollOffset(),n=this.getOffsetForIndex(e,s);n?1.01>Math.abs(n[0]-t)||o(s):console.warn("Failed to get offset for index:",e)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(t):t()})},o=t=>{this.targetWindow&&this.currentScrollToIndex===e&&(++i<10?this.targetWindow.requestAnimationFrame(()=>l(t)):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};l(t)},this.scrollBy=(e,{behavior:t}={})=>{"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adju
4stments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t,n=this.getMeasurements();if(0===n.length)t=this.options.paddingStart;else if(1===this.options.lanes)t=(null==(e=n[n.length-1])?void 0:e.end)??0;else{let e=Array(this.options.lanes).fill(null),i=n.length-1;for(;i>=0&&e.some(e=>null===e);){let t=n[i];null===e[t.lane]&&(e[t.lane]=t.end),i--}t=Math.max(...e.filter(e=>null!==e))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}}let y=(e,t,n,i)=>{for(;e<=t;){let l=(e+t)/2|0,o=n(l);if(o<i)e=l+1;else{if(!(o>i))return l;t=l-1}}return e>0?e-1:0},x="undefined"!=typeof document?l.useLayoutEffect:l.useEffect;var b=n(94085),C=n(18827),S=n(21635);let z=l.forwardRef(function({title:e,titleId:t,...n},i){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},n),e?l.createElement("title",{id:t},e):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))});var k=n(85845),W=n(95521),j=n(82965),I=n(27047),E=n(63196),T=n(58563),L=n(7561),_=n(55927),M=n(8627),O=n(27514),A=n(7587),F=n(3659);let N=C.I4.button.withConfig({displayName:"CopyTextButton",componentId:"sc-4b0620dc-0"})(["display:flex;align-items:center;gap:0.5rem;&:hover{text-decoration:underline;}svg{width:0.875rem;height:0.875rem;}"]),B=C.I4.span.withConfig({displayName:"CopiedText",componentId:"sc-4b0620dc-1"})(["display:flex;align-items:center;gap:0.25rem;font-size:0.875rem;color:var(--privy-color-foreground-2);"]),R=(0,C.I4)(z).withConfig({displayName:"GreenCheck",componentId:"sc-4b0620dc-2"})(["color:var(--privy-color-success);"]),$=(0,C.I4)(k.C).withConfig({displayName:"StyledCopy",componentId:"sc-4b0620dc-3"})(["color:var(--privy-color-foreground-3);opactiy:0.5;"]),D={phantom:{mobile:{native:"phantom://",universal:"https://phantom.app/ul/"}},solflare:{mobile:{native:void 0,universal:"https://solflare.com/ul/v1/"}},metamask:{image_url:{sm:_.M,md:_.M}}};class q{static normalize(e){return e.replace(/[-_]wallet$/,"").replace(/[-_]extension$/,"").toLowerCase()}isEth(e){return e.chains.some(e=>e.includes("eip155:"))}isSol(e){return e.chains.some(e=>e.includes("solana:"))}inAllowList(e,t){if(!this.normalizedAllowList||0===this.normalizedAllowList.length||"listing"===t&&this.includeWalletConnect)return!0;let n=q.normalize(e);return this.normalizedAllowList.some(e=>n===q.normalize(e))}inDenyList(e,t){return"listing"===t&&"rabby"===e}chainMatches(e){return"ethereum-only"===this.chainFilter?"ethereum"===e:"solana-only"!==this.chainFilter||"solana"===e}getAllowListKey(e,t,n,i){let l=q.normalize(e);for(let e of this.normalizedAllowList||[])if(l===q.normalize(e))return e;if("connector"===t){if(("injected"===n||"solana_adapter"===n)&&"ethereum"===i&&this.detectedEth)return"detected_ethereum_wallets";if(("injected"===n||"solana_adapter"===n)&&"solana"===i&&this.detectedSol)return"detected_solana_wallets"}if("listing"===t&&this.includeWalletConnect)return"wallet_connect"}connectorOk(e){return!!("null"!==e.connectorType&&"walletconnect_solana"!==e.walletBranding.id&&this.chainMatches(e.chainType)&&(this.inAllowList(e.walletClientType,"connector")||("injected"===e.connectorType||"solana_adapter"===e.connectorType)&&("ethereum"===e.chainType&&this.detectedEth||"solana"===e.chainType&&this.detectedSol)))}listingOk(e){if(e.slug.includes("coinbase"))return!1;if("ethereum-only"===this.chainFilter){if(!this.isEth(e))return!1}else if("solana-only"===this.chainFilter&&!this.isSol(e))return!1;return!(!this.inAllowList(e.slug,"listing")||this.inDenyList(e.slug,"listing"))}getWallets(e,t){let n=new Map,i=e=>{let t=n.get(e.id);if(t){t.chainType!==e.chainType&&(t.chainType="multi");let n=new Set(t.chains);e.chains.forEach(e=>n.add(e)),t.chains=Array.from(n),!t.icon&&e.icon&&(t.icon=e.icon),!t.url&&e.url&&(t.url=e.url),!t.listing&&e.listing&&(t.listing=e.listing),!t.allowListKey&&e.allowListKey&&(t.allowListKey=e.allowListKey)}else n.set(e.id,e)};e.filter(e=>
4this.connectorOk(e)).forEach(e=>{let t=q.normalize(e.walletClientType);i({id:t,label:e.walletBranding?.name??t,source:"connector",connector:e,chainType:e.chainType,icon:e.walletBranding?.icon,url:void 0,chains:["ethereum"===e.chainType?"eip155":"solana"],allowListKey:this.getAllowListKey(e.walletClientType,"connector",e.connectorType,e.chainType)})});let l=e.find(e=>"wallet_connect_v2"===e.connectorType),o=e.find(e=>"walletconnect_solana"===e.walletBranding.id);t.filter(e=>this.listingOk(e)).forEach(t=>{let n=[...t.chains].filter(e=>e.includes("eip155:")||e.includes("solana:"));if(e.some(e=>q.normalize(e.walletClientType)===q.normalize(t.slug)&&"ethereum"===e.chainType&&"null"!==e.connectorType)||l||t.mobile.native||t.mobile.universal||_.q[t.slug]?.chainTypes.includes("ethereum")||(n=n.filter(e=>!e.includes("eip155:"))),e.some(e=>q.normalize(e.walletClientType)===q.normalize(t.slug)&&"solana"===e.chainType&&"null"!==e.connectorType)||o||t.mobile.native||t.mobile.universal||_.q[t.slug]?.chainTypes.includes("solana")||(n=n.filter(e=>!e.includes("solana:"))),!n.length)return;let s=q.normalize(t.slug),a=D[t.slug],r=a?.image_url?.sm||t.image_url?.sm;n.some(e=>e.includes("eip155:"))&&i({id:s,label:t.name||s,source:"listing",listing:t,chainType:"ethereum",icon:r,url:t.homepage,chains:n,allowListKey:this.getAllowListKey(t.slug,"listing")}),n.some(e=>e.includes("solana:"))&&i({id:s,label:t.name||s,source:"listing",listing:t,chainType:"solana",icon:r,url:t.homepage,chains:n,allowListKey:this.getAllowListKey(t.slug,"listing")})}),this.includeWalletConnectQr&&l&&i({id:"wallet_connect_qr",label:"WalletConnect",source:"connector",connector:l,chainType:"ethereum",icon:A.W,url:void 0,chains:["eip155"],allowListKey:"wallet_connect_qr"}),this.includeWalletConnectQrSolana&&o&&i({id:"wallet_connect_qr_solana",label:"WalletConnect",source:"connector",connector:o,chainType:"solana",icon:A.W,url:void 0,chains:["solana"],allowListKey:"wallet_connect_qr_solana"});let s=Array.from(n.values());s.forEach(e=>{let t=D[e.listing?.slug||e.id];t?.image_url?.sm&&(e.icon=t.image_url.sm)});let a=new Map;return this.normalizedAllowList?.forEach((e,t)=>{a.set(q.normalize(e),t)}),{wallets:s.slice().sort((e,t)=>{if(e.allowListKey&&t.allowListKey){let n=this.normalizedAllowList?.findIndex(t=>q.normalize(t)===q.normalize(e.allowListKey))??-1,i=this.normalizedAllowList?.findIndex(e=>q.normalize(e)===q.normalize(t.allowListKey))??-1;if(n!==i&&n>=0&&i>=0)return n-i}if(e.allowListKey&&!t.allowListKey)return -1;if(!e.allowListKey&&t.allowListKey)return 1;let n=q.normalize(e.id),i=q.normalize(t.id);"binance-defi"===n?n="binance":"universalprofiles"===n?n="universal_profile":"cryptocom-defi"===n?n="cryptocom":"bitkeep"===n&&(n="bitget_wallet"),"binance-defi"===i?i="binance":"universalprofiles"===i?i="universal_profile":"cryptocom-defi"===i?i="cryptocom":"bitkeep"===i&&(i="bitget_wallet");let l=a.has(n),o=a.has(i);return l&&o?a.get(n)-a.get(i):l?-1:o?1:"connector"===e.source&&"listing"===t.source?-1:"listing"===e.source&&"connector"===t.source?1:e.label.toLowerCase().localeCompare(t.label.toLowerCase())}),walletCount:s.length}}constructor(e,t){this.chainFilter=e,t&&t.length>0&&(this.normalizedAllowList=t.map(String),this.normalizedAllowList.includes("binance")&&this.normalizedAllowList.push("binance-defi-wallet"),this.normalizedAllowList.includes("bitget_wallet")&&this.normalizedAllowList.push("bitkeep")),this.detectedEth=this.normalizedAllowList?.includes("detected_ethereum_wallets")??!1,this.detectedSol=this.normalizedAllowList?.includes("detected_solana_wallets")??!1,this.includeWalletConnect=this.normalizedAllowList?.includes("wallet_connect")??!1,this.includeWalletConnectQr=this.normalizedAllowList?.includes("wallet_connect_qr")??!1,this.includeWalletConnectQrSolana=this.normalizedAllowList?.includes("wallet_connect_qr_solana")??!1}}var K=e=>(0,i.jsxs)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,i.jsx)("path",{d:"m0 0h32v32h-32z",fill:"#5469d4"}),(0,i.jsx)("path",{d:"m15.997 5.333-.143.486v14.106l.143.143 6.548-3.87z",fill:"#c2ccf4"}),(0,i.jsx)("path",{d:"m15.996 5.333-6.548 10.865 6.548 3.87z",fill:"#fff"}),(0,i.jsx)("path",{d:"m15.997 21.306-.08.098v5.025l.08.236 6.552-9.227z",fill:"#c2ccf4"}),(0,i.jsx)("path",{d:"m15.996 26.665v-5.36l-6.548-3.867z",fill:"#fff"}),(0,i.jsx)("path",{d:"m15.995 20.07 6.548-3.87-6.548-2.976v6.847z",fill:"#8698e8"}),(0,i.jsx)("path",{d:"m9.448 16.2 6.548 3.87v-6.846z",fill:"#c2ccf4"})]}),P=e=>(0,i.jsxs)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,i.jsxs)("linearGradient",{id:"a",gradientUnits:"userSpaceOnUse",x1:"7.233",x2:"24.766",y1:"24.766",y2:"7.234",children:[(0,i.jsx)("stop",{offset:"0",stopColor:"#9945ff"}),(0,i.jsx)("stop",{offset:".2",stopColor:"#7962e7"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#00d18c"})]}),(0,i.jsx)("path",{d:"m0 0h32v32h-32z",fill:"#10111a"}),(0,i.jsx)("path",{clipRule:"evenodd",d:"m9.873 20.41a.645.645 0 0 1 .476-.21l14.662.012a.323.323 0 0 1 .238.54l-3.123 3.438a.643.643 0 0 1 -.475.21l-14.662-.012a.323.323 0 0 1 -.238-.54zm15.376-2.862a.322.322 0 0 1 -.238.54l-14.662.012a.642.642 0 0 1 -.476-.21l-3.122-3.44a.323.323 0 0 1 .238-.54l14.662-.012a.644.644 0 0 1 .475.21zm-15.376-9.738a.644.644 0 0 1 .476-.21l14.662.012a.322.322 0 0 1 .238.54l-3.123 3.438a.643.643 0 0 1 -.475.21l-14.662-.012a.323.323 0 0 1 -.238-.54z",fill:"url(#a)",fillRule:"evenodd"})]});let U=C.I4.div.withConfig({displayName:"WalletIconWithActiveIndicator",componentId:"sc-9b65f2b6-2"})(["position:relative;display:inline-flex;align-items:center;&::after{content:' ';border-radius:var(--privy-border-radius-full);height:6px;width:6px;background-color:var(--privy-color-icon-success);position:absolute;right:-3px;top:-3px;}"]),V=C.I4.img.withConfig({displayName:"WalletIcon",componentId:"sc-9b65f2b6-3"})(["width:32px;height:32px;border-radius:0.25rem;object-fit:contain;"]),H=C.I4.span.withConfig({displayName:"Chip",componentId:"sc-9b65f2b6-4"})(["display:flex;gap:0.25rem;align-items:center;padding:0.25rem 0.5rem;font-size:0.75rem;font-weight:500;line-height:1.125rem;border-radius:var(--privy-border-radius-sm);background-color:var(--privy-color-background-2);svg{width:100%;max-width:1rem;max-height:1rem;stroke-width:2;}"]);function Q({enabled:e=!0,walletList:t,walletChainType:n}){let i=(0,T.u)(),{connectors:o}=(0,M.u)(),{listings:s,loading:a}=(0,_.d)(e),r=n??i.appearance.walletChainType,c=t??i.appearance?.walletList,d=(0,l.useMemo)(()=>new q(r,c),[r,c]),{wallets:h,walletCount:u}=(0,l.useMemo)(()=>d.getWallets(o,s),[d,o,s]),[p,m]=(0,l.useState)(""),g=(0,l.useMemo)(()=>p?h.filter(e=>e.label.toLowerCase().includes(p.toLowerCase())):h,[p,h]),[f,v]=(0,l.useState)();return{selected:f,setSelected:v,search:p,setSearch:m,loadingListings:a,wallets:g,walletCount:u}}let Y=e=>!e||"string"!=typeof e&&(e instanceof _.w||e instanceof _.S),G=({index:e,style:t,data:n,recent:l})=>{let o=n.wallets[e],{walletChainType:s,handleWalletClick:a}=n,{t:r}=(0,L.u)(),c={...t,boxSizing:"border-box"};return o?(0,i.jsxs)(ee,{style:c,onClick:()=>a(o),children:[o.icon&&(o.connector&&!Y(o.connector)?(0,i.jsx)(U,{children:"string"==typeof o.icon?(0,i.jsx)(V,{src:o.icon}):(0,i.jsx)(o.icon,{style:{width:"32px",height:"32px"}})}):"string"==typeof o.icon?(0,i.jsx)(V,{src:o.icon}):(0,i.jsx)(o.icon,{style:{width:"32px",height:"32px"}})),(0,i.jsx)(ei,{children:o.label}),l?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(H,{children:r("connectWallet.lastUsed")}),(0,i.jsx)(et,{children:(0,i.jsxs)(i.Fragment,{children:["ethereum-only"===s&&(0,i.jsx)(K,{}
4),"solana-only"===s&&(0,i.jsx)(P,{})]})})]}):(0,i.jsx)(et,{children:"ethereum-only"!==s&&"solana-only"!==s&&(0,i.jsxs)(i.Fragment,{children:[o.chains?.some(e=>e.startsWith("eip155"))&&(0,i.jsx)(K,{}),o.chains?.some(e=>e.startsWith("solana"))&&(0,i.jsx)(P,{})]})})]}):null};var X=({className:e,customDescription:t,connectOnly:n,preSelectedWalletId:a,hideHeader:r,...c})=>{let d=(0,T.u)(),{t:h}=(0,L.u)(),{connectors:p}=(0,M.u)(),m=c.walletChainType||d.appearance.walletChainType,f=c.walletList||d.appearance?.walletList,{onBack:y,onClose:C,app:z}=c,{selected:k,setSelected:N,qrUrl:B,setQrUrl:R,connecting:$,uiState:U,errorCode:H,wallets:X,walletCount:es,handleConnect:ea,handleBack:er,showSearchBar:ec,isInitialConnectView:ed,title:eh,search:eu,setSearch:ep}=function({onConnect:e,onBack:t,onClose:n,onConnectError:i,walletList:o,walletChainType:s,app:a}){let r=(0,T.u)(),{connectors:c}=(0,M.u)(),{t:d}=(0,L.u)(),{wallets:h,walletCount:u,search:p,setSearch:m,selected:g,setSelected:f}=Q({enabled:(0,_.e)(o??[]),walletList:o,walletChainType:s}),[v,w]=(0,l.useState)(),[y,x]=(0,l.useState)(),[C,S]=(0,l.useState)(),[z,k]=(0,l.useState)(),W=!g&&!C&&!z,j=W&&(u>6||p.length>0),I=c.find(e=>"wallet_connect_v2"===e.connectorType),E=(0,l.useCallback)(async(t,n)=>{if(t){if(z?.connector===t&&"loading"===v)return void console.log("Already connecting to this wallet, skipping duplicate attempt");if(w("loading"),"string"==typeof t)return k({connector:t,name:n?.name??"Wallet",icon:n?.icon,id:n?.id,url:n?.url}),void window.open(t,"_blank");k({connector:t,name:n?.name??t.walletBranding.name??"Wallet",icon:n?.icon??t.walletBranding.icon,id:n?.id,url:n?.url});try{let n=await t.connect({showPrompt:!0});if(!n)return w("error"),x(void 0),void i?.(new M.P("Unable to connect wallet"));w("success"),x(void 0),(0,_.K)({address:n.address,client:n.walletClientType,appId:r.id}),setTimeout(()=>{e({connector:t,wallet:n})},T.q)}catch(e){if(console.error("ERROR: ",{e:e}),e?.message?.includes("already pending for origin")||e?.message?.includes("wallet_requestPermissions"))return void console.log("Connection request already pending, maintaining loading state");w("error"),x(e?.privyErrorCode),i?.(e instanceof Error?e:new M.P(e?.message||"Unable to connect wallet"))}}},[r.id,e,z,v]),O=(0,l.useCallback)(()=>C?(w(void 0),x(void 0),k(void 0),void S(void 0)):z?(w(void 0),x(void 0),void k(void 0)):g?(w(void 0),x(void 0),k(void 0),void f(void 0)):"error"===v||"loading"===v?(w(void 0),x(void 0),void k(void 0)):void t?.(),[C,z,g,v,t]),A=(0,l.useMemo)(()=>z?.connector===I&&C&&b.Fr&&z?.name?d("connectWallet.goToWallet",{walletName:z.name}):z?.connector===I&&C&&z?.name?d("connectWallet.scanToConnect",{walletName:z.name}):C&&z?.name?d(b.Fr?"connectWallet.goToWallet":"connectWallet.scanToConnect",{walletName:z.name}):"string"==typeof z?.connector?d("connectWallet.openOrInstall",{walletName:z.name}):g&&!z?d("connectWallet.selectNetwork"):z?null:d("connectWallet.selectYourWallet"),[z,C,g,I,d]);return{selected:g,setSelected:f,qrUrl:C,setQrUrl:S,connecting:z,uiState:v,errorCode:y,search:p,setSearch:m,wallets:h,walletCount:u,wc:I,isInitialConnectView:W,showSearchBar:j,title:A,handleConnect:E,handleBack:O,onClose:n,onConnect:e,app:a}}({...c,walletList:f,walletChainType:m}),em=p.find(e=>"wallet_connect_v2"===e.connectorType),eg=p.find(e=>"walletconnect_solana"===e.walletBranding.id),ef=(0,l.useRef)(null),ev=function({useFlushSync:e=!0,...t}){let n=l.useReducer(()=>({}),{})[1],i={...t,onChange:(i,l)=>{var o;e&&l?(0,s.flushSync)(n):n(),null==(o=t.onChange)||o.call(t,i,l)}},[o]=l.useState(()=>new w(i));return o.setOptions(i),x(()=>o._didMount(),[]),x(()=>o._willUpdate()),o}({observeElementRect:u,observeElementOffset:g,scrollToFn:v,...{count:X.length,getScrollElement:()=>ef.current,estimateSize:()=>56,overscan:6,gap:5}}),ew=(0,l.useCallback)(async e=>{let t="solana-only"!==m&&e.chains?.some(e=>e.startsWith("eip155")),i="ethereum-only"!==m&&e.chains?.some(e=>e.startsWith("solana")),l=()=>{let t=e.id;return _.q[t]||_.q[`${t}_wallet`]},o=t=>{let n=q.normalize(e.id);return p.find(e=>q.normalize(e.walletClientType)===n&&e.chainType===t&&!("ethereum"===e.chainType&&e instanceof _.w||"solana"===e.chainType&&e instanceof _.S))},s=async()=>
4{if(!em||!e.listing)return!1;let t=D[e.listing.slug]?{...e.listing,...D[e.listing.slug]}:e.listing;return em.setWalletEntry(t,R),await em.resetConnection(e.id),await ea(em,{name:e.label,icon:e.icon,id:e.id,url:e.url}),!0},a=async()=>!!eg&&!!e.listing&&(await eg.disconnect(),eg.wallet.setWalletEntry(e.listing,R),await new Promise(e=>setTimeout(e,100)),await ea(eg,{name:e.label,icon:e.icon,id:e.id,url:e.url}),!0),r=async t=>{let i=(e=>{let t=l();if(t)return t.getMobileRedirect({isSolana:e,connectOnly:!!n,useUniversalLink:!1})})(t);return!!i&&(await ea(i,{name:e.label,icon:e.icon,id:e.id,url:e.url}),!0)};if(t&&i)N(e);else{if(t&&!i){let t=o("ethereum");if(t&&!Y(t))return void await ea(t,{name:e.label,icon:e.icon,id:e.id,url:e.url});if(b.Fr&&l()){if(await r(!1)||await s())return}else if(await s()||await r(!1))return}if(i&&!t){let t=o("solana");if(t&&!Y(t))return void await ea(t,{name:e.label,icon:e.icon,id:e.id,url:e.url});if(b.Fr){if(await r(!0)||await a())return}else if(await a()||await r(!0))return}if(!Y(e.connector)){if(em&&"wallet_connect_v2"===e.connector?.connectorType)if(await em.resetConnection(e.id),"wallet_connect_qr"!==e.id&&e.listing){let t=D[e.listing.slug]?{...e.listing,...D[e.listing.slug]}:e.listing;em.setWalletEntry(t,R)}else em.setWalletEntry({id:"wallet_connect_qr",name:"WalletConnect",rdns:"",slug:"wallet-connect",homepage:"",chains:["eip155"],mobile:{native:"",universal:void 0}},R);return eg&&"walletconnect_solana"===e.connector?.walletBranding.id&&(await eg.disconnect(),"wallet_connect_qr_solana"!==e.id&&e.listing?eg.wallet.setWalletEntry(e.listing,R):eg.wallet.setWalletEntry({id:"wallet_connect_solana_qr",name:"WalletConnect",rdns:"",slug:"wallet-connect-solana",homepage:"",chains:["solana"],mobile:{native:"",universal:void 0}},R),await new Promise(e=>setTimeout(e,100))),void await ea(e.connector,{name:e.label,icon:e.icon,id:e.id,url:e.url})}e.url&&await ea(e.url,{name:e.label,icon:e.icon,id:e.id,url:e.url})}},[em,eg,ea,N,R,m,n,p]);return(0,l.useEffect)(()=>{if(!a)return;let e=X.find(({id:e})=>e===a);e&&ew(e).catch(console.error)},[a]),(0,i.jsxs)(F.S,{className:e,children:[(0,i.jsx)(F.S.Header,{icon:r&&ed?void 0:$&&!B||B&&b.Fr&&$?.icon?$.icon:$?void 0:O.W,iconVariant:$&&!B||B&&b.Fr?"loading":void 0,iconLoadingStatus:$&&!B||B&&b.Fr?{success:"success"===U,fail:"error"===U}:void 0,title:r&&ed?void 0:$&&!B?h("connectWallet.waitingForWallet",{walletName:$.name}):B&&b.Fr?h("connectWallet.waitingForWallet",{walletName:$?.name??"connection"}):eh,subtitle:r&&ed?void 0:$&&!B&&"string"==typeof $.connector?h("connectWallet.installAndConnect",{walletName:$.name}):$&&!B&&"string"!=typeof $.connector?"error"===U?H===M.b.NO_SOLANA_ACCOUNTS?`The connected wallet has no Solana accounts. Please add a Solana account in ${$.name} and try again.`:h("connectWallet.tryConnectingAgain"):h("connectionStatus.connectOneWallet"):ed?t??(z?h("connectWallet.connectToAccount",{appName:z.name}):null):null,showBack:!!y||!ed,showClose:!0,onBack:y||er,onClose:C}),(0,i.jsxs)(F.S.Body,{ref:ef,$colorScheme:d.appearance.palette.colorScheme,style:{marginBottom:B?"0.5rem":void 0},children:[ec&&(0,i.jsx)(Z,{children:(0,i.jsxs)(E.E,{style:{background:"transparent"},children:[(0,i.jsx)(_.V,{children:(0,i.jsx)(o,{})}),(0,i.jsx)("input",{className:"login-method-button",type:"text",placeholder:h("connectWallet.searchPlaceholder",{count:String(es)}),onChange:e=>ep(e.target.value),value:eu})]})}),B&&b.Fr&&"loading"===U&&(0,i.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"1rem"},children:[(0,i.jsx)(S.B,{variant:"primary",onClick:()=>window.open(B.universal??B.native,"_blank"),style:{width:"100%"},children:h("connectWallet.openInApp")}),(0,i.jsx)(el,{value:B.universal??B.native,iconOnly:!0,children:"Copy link"})]}),B&&!b.Fr&&"loading"===U&&(0,i.jsx)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"1rem"},children:(0,i.jsx)(el,{value:B.universal??B.native,iconOnly:!0,children:h("connectWallet.copyLink")})}),B&&!b.Fr&&(0,i.jsx)(I.Q,{size:280,url:B.universal??B.native,squareLogoElement:$?.icon?"string"==typeof $.icon?e=>(0,i.jsx)("svg",{...e,children:(0,i.jsx)("image",{href:$.icon,height:e.height,width:e.width})}):$.icon:A.h}),B&&!b.Fr&&$?.url&&("binance"===$.id||"binanceus"===$.id||"binance-defi"===$.id)&&(0,i.jsxs)(eo,{children:[(0,i.jsxs)("span",{children:["Don't have ",$.name,"? "]}),(0,i.jsx)(W.L,{href:$.url,target:"_blank",size:"sm",children:"Download here"})]}),(0,i.jsxs)(J,{children:[$&&!B&&"string"==typeof $.connector&&(0,i.jsxs)(ee,{onClick:()=>window.open($.connector,"_blank"),children:[$.icon&&("string"==typeof $.icon?(0,i.jsx)(V,{src:$.icon}):(0,i.jsx)($.icon,{})),(0,i.jsx)(ei,{children:$.name})]}),k?.chains.some(e=>
4e.startsWith("eip155"))&&!$&&(0,i.jsxs)(ee,{onClick:()=>ew({...k,chains:k.chains.filter(e=>e.startsWith("eip155"))}),children:[k.icon&&("string"==typeof k.icon?(0,i.jsx)(V,{src:k.icon}):(0,i.jsx)(k.icon,{})),(0,i.jsx)(ei,{children:k.label}),(0,i.jsx)(et,{children:(0,i.jsx)(K,{})})]}),k?.chains.some(e=>e.startsWith("solana"))&&!$&&(0,i.jsxs)(ee,{onClick:()=>ew({...k,chains:k.chains.filter(e=>e.startsWith("solana"))}),children:[k.icon&&("string"==typeof k.icon?(0,i.jsx)(V,{src:k.icon}):(0,i.jsx)(k.icon,{})),(0,i.jsx)(ei,{children:k.label}),(0,i.jsx)(et,{children:(0,i.jsx)(P,{})})]}),ed&&(0,i.jsxs)(i.Fragment,{children:[!(es>0)&&(0,i.jsx)(en,{children:h("connectWallet.noWalletsFound")}),es>0&&!B&&(0,i.jsx)("div",{style:{maxHeight:56*Math.min(X.length,5)+5,width:"100%"},children:(0,i.jsx)("div",{style:{height:`${ev.getTotalSize()}px`,width:"100%",position:"relative"},children:ev.getVirtualItems().map(e=>(0,i.jsx)(G,{index:e.index,style:{position:"absolute",top:0,left:0,height:`${e.size}px`,transform:`translateY(${e.start}px)`},data:{wallets:X,walletChainType:m,handleWalletClick:ew}},e.key))})})]})]})]}),(0,i.jsxs)(F.S.Footer,{children:[$&&!B&&"string"!=typeof $.connector&&"error"===U&&(0,i.jsx)(F.S.Actions,{children:(0,i.jsx)(S.B,{style:{width:"100%",alignItems:"center"},variant:"error",onClick:()=>ea($.connector,{name:$.name,icon:$.icon,id:$.id,url:$.url}),children:h("connectWallet.retry")})}),!!(z&&z.legal.privacyPolicyUrl&&z.legal.termsAndConditionsUrl)&&(0,i.jsx)(j.T,{app:z,alwaysShowImplicitConsent:!0}),(0,i.jsx)(F.S.Watermark,{})]})]})};let Z=C.I4.div.withConfig({displayName:"StickySearchContainer",componentId:"sc-5a8fc7d8-0"})(["position:sticky;margin-top:-3px;padding-top:3px;top:-3px;z-index:1;background:var(--privy-color-background);padding-bottom:calc(var(--screen-space) / 2);"]),J=C.I4.div.withConfig({displayName:"WalletListContainer",componentId:"sc-5a8fc7d8-1"})(["display:flex;flex-direction:column;gap:","px;"],5),ee=C.I4.button.withConfig({displayName:"Button",componentId:"sc-5a8fc7d8-2"})(["&&{gap:0.5rem;align-items:center;display:flex;position:relative;text-align:left;font-weight:500;transition:background 200ms ease-in;width:calc(100% - 4px);border-radius:var(--privy-border-radius-md);padding:0.75em;border:1px solid var(--privy-color-foreground-4);justify-content:space-between;}&:hover{background:var(--privy-color-background-2);}"]),et=C.I4.span.withConfig({displayName:"ButtonBadge",componentId:"sc-5a8fc7d8-3"})(["display:flex;align-items:center;justify-content:end;position:relative;& > svg{border-radius:var(--privy-border-radius-full);stroke-width:2.5;width:100%;max-height:1rem;max-width:1rem;flex-shrink:0;}& > svg:not(:last-child){border-radius:var(--privy-border-radius-full);margin-right:-0.375rem;}"]),en=C.I4.div.withConfig({displayName:"EmptyContainer",componentId:"sc-5a8fc7d8-4"})(["height:60px;display:flex;align-items:center;justify-content:center;text-align:center;"]),ei=C.I4.span.withConfig({displayName:"WalletName",componentId:"sc-5a8fc7d8-5"})(["text-overflow:ellipsis;white-space:nowrap;color:var(--privy-color-foreground);font-weight:400;flex:1;"]),el=(0,C.I4)(function({children:e,iconOnly:t,value:n,hideCopyIcon:o,...s}){let[a,r]=(0,l.useState)(!1);return(0,i.jsxs)(N,{...s,onClick:()=>
4{navigator.clipboard.writeText(n||e).catch(console.error),r(!0),setTimeout(()=>r(!1),1500)},children:[e," ",a?(0,i.jsxs)(B,{children:[(0,i.jsx)(R,{})," ",!t&&"Copied"]}):!o&&(0,i.jsx)($,{})]})}).withConfig({displayName:"StyledCopyableText",componentId:"sc-5a8fc7d8-6"})(["&&{margin:0.5rem auto 0 auto;}"]),eo=C.I4.div.withConfig({displayName:"BinanceDownloadMessage",componentId:"sc-5a8fc7d8-7"})(["text-align:center;margin-top:1rem;font-size:0.875rem;font-weight:400;color:var(--privy-color-foreground-3);"])},63196:(e,t,n)=>{n.d(t,{E:()=>s,I:()=>r,a:()=>a});var i=n(18827),l=n(21297);let o=i.I4.label.withConfig({displayName:"BaseEmailForm",componentId:"sc-f34af797-0"})(["display:block;position:relative;width:100%;height:56px;&& > :first-child{position:absolute;left:0.75em;top:50%;transform:translate(0,-50%);}&& > input{font-size:16px;line-height:24px;color:var(--privy-color-foreground);padding:12px 88px 12px 52px;flex-grow:1;background:var(--privy-color-background);border:1px solid ",";border-radius:var(--privy-border-radius-md);width:100%;height:100%;@media (min-width:441px){font-size:14px;padding-right:78px;}:focus{outline:none;border-color:",";box-shadow:",";}:autofill,:-webkit-autofill{background:var(--privy-color-background);}&& > input::placeholder{color:var(--privy-color-foreground-3);}&:disabled{opacity:0.4;cursor:not-allowed;}&:disabled,&:disabled:hover,&:disabled > span{color:var(--privy-color-foreground-3);}}&& > button:last-child{right:0px;line-height:24px;padding:13px 17px;:focus{outline:none;}&:disabled{opacity:0.4;cursor:not-allowed;}&:disabled,&:disabled:hover,&:disabled > span{color:var(--privy-color-foreground-3);}}"],({$error:e})=>e?"var(--privy-color-error) !important":"var(--privy-color-foreground-4)",({$error:e})=>e?"var(--privy-color-error) !important":"var(--privy-color-accent-light)",({$error:e})=>e?"none":"0 0 0 1px var(--privy-color-accent-light)"),s=(0,i.I4)(o).withConfig({displayName:"EmailUpdateForm",componentId:"sc-f34af797-1"})(["background-color:var(--privy-color-background);transition:background-color 200ms ease;&& > button{right:0;line-height:24px;position:absolute;padding:13px 17px;background-color:#090;:focus{outline:none;border-color:var(--privy-color-accent);}}"]),a=(0,i.I4)(o).withConfig({displayName:"EmailInputForm",componentId:"sc-f34af797-2"})(["&& > input{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-right:",";border:1px solid ",";&& > input::placeholder{color:var(--privy-color-foreground-3);}}&& > :last-child{right:16px;position:absolute;top:50%;transform:translate(0,-50%);}&& > button:last-child{right:0px;line-height:24px;padding:13px 17px;:focus{outline:none;}}"],e=>e.$stacked?"16px":"88px",({$error:e})=>e?"var(--privy-color-error) !important":"var(--privy-color-foreground-4)"),r=i.I4.div.withConfig({displayName:"InputContainerForm",componentId:"sc-f34af797-3"})(["width:100%;&& > ","{display:block;text-align:left;padding-left:var(--privy-border-radius-md);padding-bottom:5px;}"],l.E)},85845:(e,t,n)=>{n.d(t,{C:()=>l});var i=n(37876);let l=({color:e,...t})=>(0,i.jsx)("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 115.77 122.88",xmlSpace:"preserve",...t,children:(0,i.jsx)("g",{children:(0,i.jsx)("path",{fill:e||"currentColor",className:"st0",d:"M89.62,13.96v7.73h12.19h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02v0.02 v73.27v0.01h-0.02c-0.01,3.84-1.57,7.33-4.1,9.86c-2.51,2.5-5.98,4.06-9.82,4.07v0.02h-0.02h-61.7H40.1v-0.02 c-3.84-0.01-7.34-1.57-9.86-4.1c-2.5-2.51-4.06-5.98-4.07-9.82h-0.02v-0.02V92.51H13.96h-0.01v-0.02c-3.84-0.01-7.34-1.57-9.86-4.1 c-2.5-2.51-4.06-5.98-4.07-9.82H0v-0.02V13.96v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07V0h0.02h61.7 h0.01v0.02c3.85,0.01,7.34,1.57,9.86,4.1c2.5,2.51,4.06,5.98,4.07,9.82h0.02V13.96L89.62,13.96z M79.04,21.69v-7.73v-0.02h0.02 c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v64.59v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h12.19V35.65 v-0.01h0.02c0.01-3.85,1.58-7.34,4.1-9.86c2.51-2.5,5.98-4.06,9.82-4.07v-0.02h0.02H79.04L79.04,21.69z M105.18,108.92V35.65v-0.02 h0.02c0-0.91-0.39-1.75-1.01-2.37c-0.61-0.61-1.46-1-2.37-1v0.02h-0.01h-61.7h-0.02v-0.02c-0.91,0-1.75,0.39-2.37,1.01 c-0.61,0.61-1,1.46-1,2.37h0.02v0.01v73.27v0.02h-0.02c0,0.91,0.39,1.75,1.01,2.37c0.61,0.61,1.46,1,2.37,1v-0.02h0.01h61.7h0.02 v0.02c0.91,0,1.75-0.39,2.37-1.01c0.61-0.61,1-1.46,1-2.37h-0.02V108.92L105.18,108.92z"})})})},95521:(e,t,n)=>{n.d(t,{L:()=>o});var i=n(37876);let l=n(18827).I4.a.withConfig({displayName:"StyledLink",componentId:"sc-c8577138-0"})(["&&{color:",";font-weight:400;text-decoration:",";text-underline-offset:4px;text-decoration-thickness:1px;cursor:",";opacity:",";font-size:",";line-height:",";transition:color 200ms ease,text-decoration-color 200ms ease,opacity 200ms ease;&:hover{color:",";text-decoration:",";text-underline-offset:4px;}&:active{color:",";}&:focus{outline:none;box-shadow:0 0 0 3px #949df9;border-radius:2px;}}"],({$variant:e})=>"underlined"===e?"var(--privy-color-foreground)":"var(--privy-link-navigation-color, var(--privy-color-accent))",({$variant:e})=>"underlined"===e?"underline":"var(--privy-link-navigation-decoration, none)",({$disabled:e})=>e?"not-allowed":"pointer",({$disabled:e})=>e?.5:1,({$size:e})=>{switch(e){case"xs":return"12px";case"sm":return"14px";default:return"16px"}},({$size:e})=>{switch(e){case"xs":return"18px";case"sm":return"22px";default:return"24px"}},({$variant:e,$disabled:t})=>"underlined"===e?"var(--privy-color-foreground)":"var(--privy-link-navigation-color, var(--privy-color-accent))",({$disabled:e})=>e?"none":"underline",({$variant:e,$disabled:t})=>t?"underlined"===e?"var(--privy-color-foreground)":"var(--privy-link-navigation-color, var(--privy-color-accent))":"var(--privy-color-foreground)"),o=({size:e="md",variant:t="navigation",disabled:n=!1,as:o,children:s,onClick:a,...r})=>(0,i.jsx)(l,{as:o,$size:e,$variant:t,$disabled:n,onClick:e=>{n?e.preventDefault():a?.(e)},...r,children:s})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.