1import{a as e}from"./rolldown-runtime-CNC7AqOf.js";import{$r as t,A as n,At as r,Br as i,Ci as a,D as o,Di as s,Dt as c,E as l,Et as u,G as d,Hr as f,Ir as p,Jr as m,K as h,Kr as g,Mt as _,Nt as ee,O as v,Ot as te,Qr as y,Rr as b,Tt as x,Ui as S,Ur as C,Vr as w,Wi as ne,Wr as re,Xr as ie,ai as ae,at as oe,ei as se,ft as ce,h as T,ii as le,j as ue,jt as de,kt as fe,m as pe,mi as me,nt as E,o as he,oi as D,pt as O,qr as ge,r as _e,rt as k,ti as ve,ur as ye,w as be,zr as xe}from"./use-wallet-transaction-sign-and-send-vjg2Y8yL.js";import{f as Se,p as Ce}from"./chunk-SJCQ3KZE-gAiIYLeK.js";import{x as we}from"./index.browser-CuqjIw4r.js";var Te=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Ee=/^[\\/]{2}/;function De(e,t){return t+e.replace(/\\/g,`/`)}var Oe=`popstate`;function ke(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function Ae(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return Ne(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:Pe(t)}return Ie(t,n,null,e)}function A(e,t){if(e===!1||e==null)throw Error(t)}function j(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function je(){return Math.random().toString(36).substring(2,10)}function Me(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Ne(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?Fe(t):t,state:n,key:t&&t.key||r||je(),mask:i}}function Pe({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function Fe(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Ie(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=ke(e)?e:Ne(h.location,e,t);n&&n(r,e),l=u()+1;let d=Me(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=ke(e)?e:Ne(h.location,e,t);n&&n(r,e),l=u();let i=Me(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return Le(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(Oe,d),c=e,()=>{i.removeEventListener(Oe,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function Le(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),A(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:Pe(t);return i=i.replace(/ $/,`%20`),!n&&Ee.test(i)&&(i=r+i),new URL(i,r)}var M=e(ne(),1);function Re(e,t,n=`/`){return ze(e,t,n,!1)}function ze(e,t,n,r,i){let a=st((typeof t==`string`?Fe(t):t).pathname||`/`,n);if(a==null)return null;let o=i??Ve(e),s=null,c=ot(a);for(let e=0;s==null&&e<o.length;++e)s=nt(o[e],c,r);return s}function Be(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,loaderData:t[n.id],handle:n.handle}}function Ve(e){let t=He(e);return We(t),t}function He(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;A(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}
1" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=N([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(A(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),He(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:et(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=at(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of Ue(e.path))a(e,t,!0,n)}),t}function Ue(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=Ue(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function We(e){e.sort((e,t)=>e.score===t.score?tt(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var Ge=/^:[\w-]+$/,Ke=/^:[\w-]+/,qe=3.5,Je=3,Ye=2,Xe=1,Ze=10,Qe=-2,$e=e=>e===`*`;function et(e,t){let n=e.split(`/`),r=n.length;return n.some($e)&&(r+=Qe),t&&(r+=Ye),n.filter(e=>!$e(e)).reduce((e,t)=>e+(Ge.test(t)?Je:Ke.test(t)?qe:t===``?Xe:Ze),r)}function tt(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function nt(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?it(u,l,s.matcher,s.compiledParams):rt(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=rt({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;
1Object.assign(i,d.params),o.push({params:i,pathname:N([a,d.pathname]),pathnameBase:gt(N([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=N([a,d.pathnameBase]))}return o}function rt(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=at(e.path,e.caseSensitive,e.end);return it(e,t,n,r)}function it(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=ht(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=ht(a.slice(0,a.length-e.length),1)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function at(e,t=!1,n=!0){j(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(?=\/|$|\()/g,`(?:/$1)?`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function ot(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return j(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function st(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function ct(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?Fe(e):e,a;return n?(n=mt(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?lt(n.substring(1),`/`):lt(n,t)):a=t,{pathname:a,search:_t(r),hash:vt(i)}}function lt(e,t){let n=ht(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function ut(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function dt(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function ft(e){let t=dt(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function pt(e,t,n,r=!1){let i;typeof e==`string`?i=Fe(e):(i={...e},A(!i.pathname||!i.pathname.includes(`?`),ut(`?`,`pathname`,`search`,i)),A(!i.pathname||!i.pathname.includes(`#`),ut(`#`,`pathname`,`hash`,i)),A(!i.search||!i.search.includes(`#`),ut(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=ct(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var mt=e=>e.replace(/[\\/]{2,}/g,`/`),N=e=>mt(e.join(`/`));function ht(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var gt=e=>ht(e).replace(/^\/*/,`/`),_t=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,vt=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,yt=class{status;statusText;data;error;internal;constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function bt(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function xt(e){return N(e.map(e=>e.route.path).filter(Boolean))||`/`}var St=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Ct(e,t){let n=e;if(typeof n!=`string`||!Te.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(St)try{let e=new URL(window.location.href),r=Ee.test(n)?new URL(De(n,e.protocol)):new URL(n),a=st(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{j(!1,`<Link to="${n}">
1 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var wt=new URL(`http://localhost`);function Tt(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),wt)}catch{return wt}}function Et(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function Dt(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function Ot(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!Et(i,n),s=!Et(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!Dt(e,i)||!Et(i,a)))throw Error(`External navigation is not allowed`)}var kt=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(kt);var At=[`GET`,...kt];new Set(At);var jt=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Mt(e){try{return jt.includes(new URL(e).protocol)}catch{return!1}}var Nt=M.createContext(null);Nt.displayName=`DataRouter`;var Pt=M.createContext(null);Pt.displayName=`DataRouterState`;var Ft=M.createContext(!1);function It(){return M.useContext(Ft)}var Lt=M.createContext({isTransitioning:!1});Lt.displayName=`ViewTransition`;var Rt=M.createContext(new Map);Rt.displayName=`Fetchers`;var zt=M.createContext(null);zt.displayName=`Await`;var Bt=M.createContext(null);Bt.displayName=`Navigation`;var Vt=M.createContext(null);Vt.displayName=`Location`;var P=M.createContext({outlet:null,matches:[],isDataRoute:!1});P.displayName=`Route`;var Ht=M.createContext(null);Ht.displayName=`RouteError`;var Ut=`REACT_ROUTER_ERROR`,Wt=`REDIRECT`,Gt=`ROUTE_ERROR_RESPONSE`;function Kt(e){if(e.startsWith(`${Ut}:${Wt}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function qt(e){if(e.startsWith(`${Ut}:${Gt}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new yt(t.status,t.statusText,t.data)}catch{}}function Jt(e,{relative:t}={}){A(Yt(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=M.useContext(Bt),{hash:i,pathname:a,search:o}=en(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:N([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Yt(){return M.useContext(Vt)!=null}function Xt(){return A(Yt(),`useLocation() may be used only in the context of a <Router> component.`),M.useContext(Vt).location}var Zt=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Qt(){let{isDataRoute:e}=M.useContext(P);return e?bn():$t()}function $t(){A(Yt(),`useNavigate() may be used only in the context of a <Router> component.`);let e=M.useContext(Nt),{basename:t,navigator:n}=M.useContext(Bt),{matches:r}=M.useContext(P),{pathname:i}=Xt(),a=JSON.stringify(ft(r)),o=M.useRef(!1);return M.useLayoutEffect(()=>{o.current=!0}),M.useCallback((r,s={})=>{if(j(o.current,Zt),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=pt(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:N([t,c.pathname])),Ot(typeof r==`string`?r:Pe(r),n.createHref(c),Tt(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}M.createContext(null);function en(e,{relative:t}={}){let{matches:n}=M.useContext(P),{pathname:r}=Xt(),i=JSON.stringify(ft(n));return M.useMemo(()=>pt(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function tn(e,t){return nn(e,t)}function nn(e,t,n){A(Yt(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=M.useContext(Bt),{matches:i}=M.useContext(P),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:`/`;a&&a.route;let c=Xt(),l;if(t){let e=typeof t==`string`?Fe(t):t;A(s===`/`||e.pathname?.startsWith(s),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`),l=e}else l=c;let u=l.pathname||`/`,d=u;if(s!==`/`){let e=s.replace(/^\//,``).split(`/`);d=`/`+u.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let f=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):Re(e,{pathname:d}),p=un(f&&f.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:N([s,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?s:N([s,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&p?M.createElement(Vt.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...l},navigationType:`POP`}},p):p}function rn(){let e=yn(),t=bt(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return M.createElement(M.Fragment,null,M.createElement(`h2`,null,`Unexpected Application
1Error!`),M.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?M.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var an=M.createElement(rn,null),on=class extends M.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static contextType=Ft;static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=qt(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:M.createElement(P.Provider,{value:this.props.routeContext},M.createElement(Ht.Provider,{value:e,children:this.props.component}));return this.context?M.createElement(cn,{error:e},t):t}},sn=new WeakMap;function cn({children:e,error:t}){let{basename:n,navigator:r}=M.useContext(Bt);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Kt(t.digest);if(e){let i=sn.get(t);if(i)throw i;let a=Ct(e.location,n),o=a.absoluteURL||a.to;if(Ot(e.location,o,Tt(r),`allow-explicit`),Mt(o))throw Error(`Invalid redirect location`);if(St&&!sn.get(t))if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw sn.set(t,n),n}return M.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function ln({routeContext:e,match:t,children:n}){let r=M.useContext(Nt);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),M.createElement(P.Provider,{value:e},n)}function un(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);A(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:xt(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||an,o&&(s<0&&c===0?(Sn(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?M.createElement(n.route.Component,null):n.route.element?n.route.element:e,M.createElement(ln,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?M.createElement(on,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function dn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fn(e){let t=M.useContext(Nt);return A(t,dn(e)),t}function pn(e){let t=M.useContext(Pt);return A(t,dn(e)),t}function mn(e){let t=M.useContext(P);return A(t,dn(e)),t}function hn(e){let t=mn(e),n=t.matches[t.matches.length-1];return A(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function gn(){return hn(`useRouteId`)}function _n(){let e=pn(`useNavigation`);return M.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function vn(){let{matches:e,loaderData:t}=pn(`useMatches`);return M.useMemo(()=>e.map(e=>Be(e,t)),[e,t])}function yn(){let e=M.useContext(Ht),t=pn(`useRouteError`),n=hn(`useRouteError`);return e===void 0?t.errors?.[n]:e}function bn(){let{router:e}=fn(`useNavigate`),t=hn(`useNavigate`),n=M.useRef(!1);return M.useLayoutEffect(()=>{n.current=!0}),M.useCallback(async(r,i={})=>{j(n.current,Zt),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var xn={};function Sn(e,t,n){!t&&!xn[e]&&(xn[e]=!0,j(!1,n))}var Cn=O(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),wn=O(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Tn=O(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),En=O(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),Dn=O(`wallet`,[[`path`,{d:`M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1`,key:`18etb6`}],[`path`,{d:`M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4`,key:`xoc0q4`}]]),On=Object.defineProperty,kn=(e,t)=>On(e,`name`,{value:t,configurable:!0}),An=!!(typeof window<`u`&&window.document&&window.document.createElement);function F(e,t,{checkForDefaultPrevented:n=!0}={}){return kn(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}kn(F,`composeEventHandlers`);function jn(e){if(!An)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}kn(jn,`getOwnerWindow`);function Mn(e){if(!An)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}kn(Mn,`getOwnerDocument`);function Nn(e,t=!1){let{activeElement:n}=Mn(e);if(!n?.nodeName)return null;if(Pn(n)&&n.contentDocument)return Nn(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=Mn(n).getElementById(e);if(t)return t}}return n}kn(Nn,`getActiveElement`);function Pn(e){return e.tagName===`IFRAME`}kn(Pn,`isFrame`);var I=s(),Fn=Object.defineProperty,L=(e,t)=>Fn(e,`name`,{value:t,configurable:!0});function In(e,t){let n=M.createContext(t);n.displayName=e+`Context`;let r=L(e=>{let{children:t,...r}=e,i=M.useMemo(()=>r,Object.values(r));return(0,I.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=M.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return L(i,`useContext`),[r,i]}L(In,`createContext`);function R(e,t=[]){let n=[];function r(t,r){let i=M.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=L(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=M.useMemo(()=>o,Object.values(o));return(0,I.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}
1=s,l=o?.[e]?.[a]||i,u=M.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return L(s,`useContext`),[o,s]}L(r,`createContext`);let i=L(()=>{let t=n.map(e=>M.createContext(e));return L(function(n){let r=n?.[e]||t;return M.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,Ln(i,...t)]}L(R,`createContextScope`);function Ln(...e){let t=e[0];if(e.length===1)return t;let n=L(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return L(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return M.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}L(Ln,`composeContextScopes`);var z=globalThis?.document?M.useLayoutEffect:()=>{},Rn=Object.defineProperty,zn=(e,t)=>Rn(e,`name`,{value:t,configurable:!0}),Bn=M.useEffectEvent,Vn=M.useInsertionEffect;function Hn(e){if(typeof Bn==`function`)return Bn(e);let t=M.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Vn==`function`?Vn(()=>{t.current=e}):z(()=>{t.current=e}),M.useMemo(()=>((...e)=>t.current?.(...e)),[])}zn(Hn,`useEffectEvent`);var Un=Object.defineProperty,Wn=(e,t)=>Un(e,`name`,{value:t,configurable:!0}),Gn=M.useInsertionEffect||z;function Kn({prop:e,defaultProp:t,onChange:n=Wn(()=>{},`onChange`),caller:r}){let[i,a,o]=qn({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,M.useCallback(t=>{if(s){let n=Jn(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}Wn(Kn,`useControllableState`);function qn({defaultProp:e,onChange:t}){let[n,r]=M.useState(e),i=M.useRef(n),a=M.useRef(t);return Gn(()=>{a.current=t},[t]),M.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}Wn(qn,`useUncontrolledState`);function Jn(e){return typeof e==`function`}Wn(Jn,`isFunction`);var Yn=Symbol(`RADIX:SYNC_STATE`);function Xn(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=Hn(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=M.useReducer((t,n)=>{if(n.type===Yn)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=M.useRef(p);M.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=M.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return M.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:Yn,state:i})},[i,d.state,c]),[h,f]}Wn(Xn,`useControllableStateReducer`);var Zn=e(S(),1),Qn=Object.defineProperty,$n=(e,t)=>Qn(e,`name`,{value:t,configurable:!0}),B=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=E(`Primitive.${t}`),r=M.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,I.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function er(e,t){e&&Zn.flushSync(()=>e.dispatchEvent(t))}$n(er,`dispatchDiscreteCustomEvent`);var tr=Object.defineProperty,V=(e,t)=>tr(e,`name`,{value:t,configurable:!0});function nr(e){let t=e+`CollectionProvider`,[n,r]=R(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=V(e=>{let{scope:t,children:n}=e,r=M.useRef(null),a=M.useRef(new Map).current;return(0,I.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=E(s),l=M.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=k(t,a(s,n).collectionRef);return(0,I.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=E(u),p=M.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=M.useRef(null),s=k(t,o),c=a(u,n);return M.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,I.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return M.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return V(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}V(nr,`createCollection`);var rr=new WeakMap,ir=class e extends Map{static{V(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],rr.set(this,!0)}set(e,t){return rr.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=sr(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=ar(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=ar(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return ar(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}
1}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function ar(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=or(e,t);return n===-1?void 0:e[n]}V(ar,`at`);function or(e,t){let n=e.length,r=sr(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}V(or,`toSafeIndex`);function sr(e){return e!==e||e===0?0:Math.trunc(e)}V(sr,`toSafeInteger`);function cr(e){let t=e+`CollectionProvider`,[n,r]=R(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new ir,setItemMap:V(()=>void 0,`setItemMap`)}),o=V(({state:e,...t})=>e?(0,I.jsx)(c,{...t,state:e}):(0,I.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=V(e=>{let t=h();return(0,I.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=V(e=>{let{scope:t,children:n,state:r}=e,a=M.useRef(null),[o,s]=M.useState(null),c=k(a,s),[l,u]=r;return M.useEffect(()=>{if(!o)return;let e=fr(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,I.jsx)(i,{scope:t,itemMap:l,setItemMap:u,collectionRef:c,collectionRefObject:a,collectionElement:o,children:n})},`CollectionProviderImpl`);c.displayName=t+`Impl`;let l=e+`CollectionSlot`,u=E(l),d=M.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=k(t,a(l,n).collectionRef);return(0,I.jsx)(u,{ref:i,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=E(f),m=M.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=M.useRef(null),[s,c]=M.useState(null),l=k(t,o,c),{setItemMap:u}=a(f,n),d=M.useRef(i);lr(d.current,i)||(d.current=i);let m=d.current;return M.useEffect(()=>{let e=m;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(dr):(t.set(s,{...e,element:s}),t.toSorted(dr)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new ir(e)))}},[s,m,u]),(0,I.jsx)(p,{"data-radix-collection-item":``,ref:l,children:r})});m.displayName=f;function h(){return M.useState(new ir)}V(h,`useInitCollection`);function g(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return V(g,`useCollection`),[{Provider:o,Slot:d,ItemSlot:m},{createCollectionScope:r,useCollection:g,useInitCollection:h}]}V(cr,`createCollection`);function lr(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}V(lr,`shallowEqual`);function ur(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}V(ur,`isElementPreceding`);function dr(e,t){return!e[1].element||!t[1].element?0:ur(e[1].element,t[1].element)?-1:1}V(dr,`sortByDocumentPosition`);function fr(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}V(fr,`getChildListObserver`);var pr=Object.defineProperty,mr=(e,t)=>pr(e,`name`,{value:t,configurable:!0}),hr=M.createContext(void 0);function gr(e){let t=M.useContext(hr);return e||t||`ltr`}mr(gr,`useDirection`);var _r=Object.defineProperty,vr=(e,t)=>_r(e,`name`,{value:t,configurable:!0});function H(e){let t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useMemo(()=>((...e)=>t.current?.(...e)),[])}vr(H,`useCallbackRef`);var yr=Object.defineProperty,U=(e,t)=>yr(e,`name`,{value:t,configurable:!0}),br=`dismissableLayer.update`,xr=`dismissableLayer.pointerDownOutside`,Sr=`dismissableLayer.focusOutside`,Cr,wr=M.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}
1),Tr=M.forwardRef(U(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=M.useContext(wr),[d,f]=M.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=M.useState({}),h=k(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),ee=_?g.indexOf(_):-1,v=d?g.indexOf(d):-1,te=u.layersWithOutsidePointerEventsDisabled.size>0,y=v>=ee,b=M.useRef(!1),x=Or(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:b,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:M.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return y&&!t},[u.branches,y])}),S=kr(e=>{if(r&&b.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),C=d?v===g.length-1:!1,w=H(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return M.useEffect(()=>{if(C)return p.addEventListener(`keydown`,w,{capture:!0}),()=>p.removeEventListener(`keydown`,w,{capture:!0})},[p,C,w]),M.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Cr=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ar(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=Cr))}},[d,p,n,u]),M.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ar())},[d,u]),M.useEffect(()=>{let e=U(()=>m({}),`handleUpdate`);return document.addEventListener(br,e),()=>document.removeEventListener(br,e)},[]),(0,I.jsx)(B.div,{...l,ref:h,style:{pointerEvents:te?y?`auto`:`none`:void 0,...e.style},onFocusCapture:F(e.onFocusCapture,S.onFocusCapture),onBlurCapture:F(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:F(e.onPointerDownCapture,x.onPointerDownCapture)})},`DismissableLayer`));function Er(){let e=M.useContext(wr),[t,n]=M.useState(null);return M.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}U(Er,`useDismissableLayerSurface`);var Dr=U(()=>!0,`IS_TRUE`);function Or(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Dr}=t,s=H(e),c=M.useRef(!1),l=M.useRef(!1),u=M.useRef(new Map),d=M.useRef(()=>{});return M.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}U(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}U(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}U(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}U(p,`handleInteractionBubble`);let m=U(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||jr(xr,s,p,{discrete:!0})};if(U(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:U(()=>c.current=!0,`onPointerDownCapture`)}}U(Or,`usePointerDownOutside`);function kr(e,t=globalThis?.document){let n=H(e),r=M.useRef(!1);return M.useEffect(()=>{let e=U(e=>{e.target&&!r.current&&jr(Sr,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:U(()=>r.current=!0,`onFocusCapture`),onBlurCapture:U(()=>r.current=!1,`onBlurCapture`)}}U(kr,`useFocusOutside`);function Ar(){let e=new CustomEvent(br);document.dispatchEvent(e)}U(Ar,`dispatchUpdate`);function jr(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?er(i,a):i.dispatchEvent(a)}U(jr,`handleAndDispatchCustomEvent`);var Mr=Object.defineProperty,Nr=(e,t)=>
1Mr(e,`name`,{value:t,configurable:!0}),Pr=0,Fr=null;function Ir(e){return Lr(),e.children}Nr(Ir,`FocusGuards`);function Lr(){M.useEffect(()=>{Fr||={start:Rr(),end:Rr()};let{start:e,end:t}=Fr;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Pr++,()=>{Pr===1&&(Fr?.start.remove(),Fr?.end.remove(),Fr=null),Pr=Math.max(0,Pr-1)}},[])}Nr(Lr,`useFocusGuards`);function Rr(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}Nr(Rr,`createFocusGuard`);var zr=Object.defineProperty,W=(e,t)=>zr(e,`name`,{value:t,configurable:!0}),Br=`focusScope.autoFocusOnMount`,Vr=`focusScope.autoFocusOnUnmount`,Hr={bubbles:!1,cancelable:!0},Ur=M.forwardRef(W(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=M.useState(null),l=H(i),u=H(a),d=M.useRef(null),f=k(t,c),p=M.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;M.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:G(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||G(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&G(s)};W(e,`handleFocusIn`),W(t,`handleFocusOut`),W(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),M.useEffect(()=>{if(s){Xr.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(Br,Hr);s.addEventListener(Br,l),s.dispatchEvent(t),t.defaultPrevented||(Wr($r(Kr(s)),{select:!0}),document.activeElement===e&&G(s))}return()=>{s.removeEventListener(Br,l),setTimeout(()=>{let t=new CustomEvent(Vr,Hr);s.addEventListener(Vr,u),s.dispatchEvent(t),t.defaultPrevented||G(e??document.body,{select:!0}),s.removeEventListener(Vr,u),Xr.remove(p)},0)}}},[s,l,u,p]);let m=M.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Gr(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&G(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&G(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,I.jsx)(B.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function Wr(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(G(r,{select:t}),document.activeElement!==n)return}W(Wr,`focusFirst`);function Gr(e){let t=Kr(e);return[qr(t,e),qr(t.reverse(),e)]}W(Gr,`getTabbableEdges`);function Kr(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:W(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}W(Kr,`getTabbableCandidates`);function qr(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Jr(r,{upTo:t})))return r}W(qr,`findVisible`);function Jr(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}W(Jr,`isHidden`);function Yr(e){return e instanceof HTMLInputElement&&`select`in e}W(Yr,`isSelectableInput`);function G(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Yr(e)&&t&&e.select()}}W(G,`focus`);var Xr=Zr();function Zr(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Qr(e,t),e.unshift(t)},remove(t){e=Qr(e,t),e[0]?.resume()}}}W(Zr,`createFocusScopesStack`);function Qr(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}W(Qr,`arrayRemove`);function $r(e){return e.filter(e=>e.tagName!==`A`)}W($r,`removeLinks`);var ei=Object.defineProperty,ti=(e,t)=>ei(e,`name`,{value:t,configurable:!0}),ni=M.useId||(()=>void 0),ri=0;function ii(e){let[t,n]=M.useState(ni());return z(()=>{e||n(e=>e??String(ri++))},[e]),e||(t?`radix-${t}`:``)}ti(ii,`useId`);var ai=Object.defineProperty,oi=(e,t)=>ai(e,`name`,{value:t,configurable:!0});function si(e){let[t,n]=M.useState(void 0);return z(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}oi(si,`useSize`);var ci=Object.defineProperty,K=(e,t)=>ci(e,`name`,{value:t,configurable:!0}),li=`Popper`,[ui,di]=R(li),[fi,pi]=ui(li),mi=K(e=>{let{__scopePopper:t,children:n}=e,[r,i]=M.useState(null),[a,o]=M.useState(void 0);return(0,I.jsx)(fi,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),hi=`PopperAnchor`,gi=M.forwardRef(K(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=pi(hi,n),o=M.useRef(null),s=a.onAnchorChange,c=k(t,M.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=M.useRef(null);M.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&Ci(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,I.jsx)(B.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),_i=`PopperContent`,[vi,yi]=ui(_i),bi=M.forwardRef(K(function(e,t){let{__scopePopper:n,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:m=`partial`,hideWhenDetached:h=!1,updatePositionStrategy:g=`optimized`,onPlaced:v,...y}=e,b=pi(_i,n),[S,C]=M.useState(null),w=k(t,C),[ne,re]=M.useState(null),ie=si(ne),ae=ie?.width??0,oe=ie?.height??0,se=i+(o===`center`?``:`-`+o),ce=typeof p==`number`?p:{top:0,right:0,bottom:0,left:0,...p},T=Array.isArray(f)?f:[f],le=T.length>0,ue={padding:ce,boundary:T.filter(xi),altBoundary:le},{refs:pe,floatingStyles:me,placement:E,isPositioned:he,middlewareData:D}=_({strategy:`fixed`,placement:se,whileElementsMounted:K((...e)=>ee(...e,{animationFrame:g===`always`}),`whileElementsMounted`),elements:{reference:b.anchor},middleware:[fe({mainAxis:a+oe,alignmentAxis:s}),d&&r({mainAxis:!0,crossAxis:!1,limiter:m===`partial`?te():void 0,...ue}),d&&u({...ue}),de({...ue,apply:K(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}
1),ne&&x({element:ne,padding:l}),Si({arrowWidth:ae,arrowHeight:oe}),h&&c({strategy:`referenceHidden`,...ue,boundary:le?ue.boundary:void 0})]}),O=b.setPlacementState;z(()=>(O(E),()=>{O(void 0)}),[E,O]);let[ge,_e]=Ci(E),ve=H(v);z(()=>{he&&ve?.()},[he,ve]);let ye=D.arrow?.x,be=D.arrow?.y,xe=D.arrow?.centerOffset!==0,[Se,Ce]=M.useState();return z(()=>{S&&Ce(window.getComputedStyle(S).zIndex)},[S]),(0,I.jsx)(`div`,{ref:pe.setFloating,"data-radix-popper-content-wrapper":``,style:{...me,transform:he?me.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:Se,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(` `),...D.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,I.jsx)(vi,{scope:n,placedSide:ge,placedAlign:_e,onArrowChange:re,arrowX:ye,arrowY:be,shouldHideArrow:xe,children:(0,I.jsx)(B.div,{"data-side":ge,"data-align":_e,...y,ref:w,style:{...y.style,animation:he?y.style?.animation:`none`}})})})},`PopperContent`));function xi(e){return e!==null}K(xi,`isNotNull`);var Si=K(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Ci(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function Ci(e){let[t,n=`center`]=e.split(`-`);return[t,n]}K(Ci,`getSideAndAlignFromPlacement`);var wi=mi,Ti=gi,Ei=bi,Di=Object.defineProperty,Oi=M.forwardRef(((e,t)=>Di(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=M.useState(!1);z(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Zn.createPortal((0,I.jsx)(B.div,{...r,ref:t}),o):null},`Portal`)),ki=Object.defineProperty,q=(e,t)=>ki(e,`name`,{value:t,configurable:!0});function Ai(e,t){return M.useReducer((e,n)=>t[e][n]??e,e)}q(Ai,`useStateMachine`);var ji=q(e=>{let{present:t,children:n}=e,r=Mi(t),i=typeof n==`function`?n({present:r.isPresent}):M.Children.only(n),a=Pi(r.ref,Ii(i));return typeof n==`function`||r.isPresent?M.cloneElement(i,{ref:a}):null},`Presence`);function Mi(e){let[t,n]=M.useState(),r=M.useRef(null),i=M.useRef(e),a=M.useRef(`none`),o=M.useRef(void 0),[s,c]=Ai(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return M.useEffect(()=>{s===`mounted`?(a.current=o.current??Fi(r.current),o.current=void 0):a.current=`none`},[s]),z(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Fi(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),z(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=q(a=>{let o=Fi(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=q(e=>{e.target===t&&(a.current=Fi(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:M.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Fi(t)}else r.current=null;n(e)},[])}}q(Mi,`usePresence`);function Ni(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}q(Ni,`setRef`);function Pi(...e){let t=M.useRef(e);return t.current=e,M.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Ni(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():Ni(n[e],null)}}},[])}q(Pi,`useStableComposedRefs`);function Fi(e){return e?.animationName||`none`}q(Fi,`getAnimationName`);function Ii(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}q(Ii,`getElementRef`);var Li=Object.defineProperty,Ri=(e,t)=>Li(e,`name`,{value:t,configurable:!0}),zi=!1;
1function Bi(){let[e,t]=M.useState(zi);return M.useEffect(()=>{zi||(zi=!0,t(!0))},[]),e}Ri(Bi,`useIsHydrated`);var Vi=M.useSyncExternalStore;function Hi(){return()=>{}}Ri(Hi,`subscribe`);function Ui(){return Vi(Hi,()=>!0,()=>!1)}Ri(Ui,`useIsHydratedModern`);var Wi=typeof Vi==`function`?Ui:Bi,Gi=Object.defineProperty,J=(e,t)=>Gi(e,`name`,{value:t,configurable:!0}),Ki=`rovingFocusGroup.onEntryFocus`,qi={bubbles:!1,cancelable:!0},Ji=`RovingFocusGroup`,[Yi,Xi,Zi]=nr(Ji),[Qi,$i]=R(Ji,[Zi]),[ea,ta]=Qi(Ji),na=M.forwardRef(J(function(e,t){return(0,I.jsx)(Yi.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,I.jsx)(Yi.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,I.jsx)(ra,{...e,ref:t})})})},`RovingFocusGroup`)),ra=M.forwardRef(J(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=M.useRef(null),p=k(t,f),m=gr(a),[h,g]=Kn({prop:o,defaultProp:s??null,onChange:c,caller:Ji}),[_,ee]=M.useState(!1),v=H(l),te=Xi(n),y=M.useRef(!1),[b,x]=M.useState(0);return M.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(Ki,v),()=>e.removeEventListener(Ki,v)},[v]),(0,I.jsx)(ea,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:M.useCallback(e=>g(e),[g]),onItemShiftTab:M.useCallback(()=>ee(!0),[]),onFocusableItemAdd:M.useCallback(()=>x(e=>e+1),[]),onFocusableItemRemove:M.useCallback(()=>x(e=>e-1),[]),children:(0,I.jsx)(B.div,{tabIndex:_||b===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:F(e.onMouseDown,()=>{y.current=!0}),onFocus:F(e.onFocus,e=>{let t=!y.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(Ki,qi);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=te().filter(e=>e.focusable);la([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}y.current=!1}),onBlur:F(e.onBlur,()=>ee(!1))})})},`RovingFocusGroupImpl`)),ia=`RovingFocusGroupItem`,aa=M.forwardRef(J(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=ii(),l=a||c,u=ta(ia,n),d=u.currentTabStopId===l,f=Xi(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u,g=Wi();return z(()=>{if(!(!g||!r))return p(),()=>m()},[g,r,p,m]),M.useEffect(()=>{if(!(g||!r))return p(),()=>m()},[g,r,p,m]),(0,I.jsx)(Yi.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,I.jsx)(B.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:F(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:F(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:F(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=ca(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?ua(n,r+1):n.slice(r+1)}setTimeout(()=>la(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})},`RovingFocusGroupItem`)),oa={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function sa(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}J(sa,`getDirectionAwareKey`);function ca(e,t,n){let r=sa(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return oa[r]}J(ca,`getFocusIntent`);function la(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}J(la,`focusFirst`);function ua(e,t){return e.map((n,r)=>e[(t+r)%e.length])}J(ua,`wrapArray`);var da=na,fa=aa,pa=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},ma=new WeakMap,ha=new WeakMap,ga={},_a=0,va=function(e){return e&&(e.host||va(e.parentNode))},ya=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=va(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},ba=function(e,t,n,r){var i=ya(t,Array.isArray(e)?e:[e]);ga[n]||(ga[n]=new WeakMap);var a=ga[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};
vendor: 10,414 bytes, lines 1-41
1i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(ma.get(e)||0)+1,l=(a.get(e)||0)+1;ma.set(e,c),a.set(e,l),o.push(e),c===1&&i&&ha.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),_a++,function(){o.forEach(function(e){var t=ma.get(e)-1,i=a.get(e)-1;ma.set(e,t),a.set(e,i),t||(ha.has(e)||e.removeAttribute(r),ha.delete(e)),i||e.removeAttribute(n)}),_a--,_a||(ma=new WeakMap,ma=new WeakMap,ha=new WeakMap,ga={})}},xa=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||pa(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),ba(r,i,n,`aria-hidden`)):function(){return null}},Y=function(){return Y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Y.apply(this,arguments)};function Sa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ca(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var wa=`right-scroll-bar-position`,Ta=`width-before-scroll-bar`,Ea=`with-scroll-bars-hidden`,Da=`--removed-body-scroll-bar-size`;function Oa(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function ka(e,t){var n=(0,M.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Aa=typeof window<`u`?M.useLayoutEffect:M.useEffect,ja=new WeakMap;function Ma(e,t){var n=ka(t||null,function(t){return e.forEach(function(e){return Oa(e,t)})});return Aa(function(){var t=ja.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Oa(e,null)}),i.forEach(function(e){r.has(e)||Oa(e,a)})}ja.set(n,e)},[e]),n}function Na(e){return e}function Pa(e,t){t===void 0&&(t=Na);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Fa(e){e===void 0&&(e={});var t=Pa(null);return t.options=Y({async:!0,ssr:!1},e),t}var Ia=function(e){var t=e.sideCar,n=Sa(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return M.createElement(r,Y({},n))};Ia.isSideCarExport=!0;function La(e,t){return e.useMedium(t),Ia}var Ra=Fa(),za=function(){},Ba=M.forwardRef(function(e,t){var n=M.useRef(null),r=M.useState({onScrollCapture:za,onWheelCapture:za,onTouchMoveCapture:za}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,ee=_===void 0?`div`:_,v=e.gapMode,te=Sa(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),y=f,b=Ma([n,t]),x=Y(Y({},te),i);return M.createElement(M.Fragment,null,u&&M.createElement(y,{sideCar:Ra,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:v}),o?M.cloneElement(M.Children.only(s),Y(Y({},x),{ref:b})):M.createElement(ee,Y({},x,{className:c,ref:b}),s))});Ba.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ba.classNames={fullWidth:Ta,zeroRight:wa};var Va,Ha=function(){if(Va)return Va;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Ua(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Ha();return t&&e.setAttribute(`nonce`,t),e}function Wa(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ga(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Ka=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ua())&&(Wa(t,n),Ga(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},qa=function(){var e=Ka();return function(t,n){M.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ja=function(){var e=qa();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Ya={left:0,top:0,right:0,gap:0},Xa=function(e){return parseInt(e||``,10)||0},Za=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Xa(n),Xa(r),Xa(i)]},Qa=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Ya;var t=Za(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},$a=Ja(),eo=`data-scroll-locked`,to=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` 2 .${Ea} { 3 overflow: hidden ${r}; 4 padding-right: ${s}px ${r}; 5 } 6 body[${eo}] { 7 overflow: hidden ${r}; 8 overscroll-behavior: contain; 9 ${[t&&`position: relative ${r};`,n===`margin`&&` 10 padding-left: ${i}px; 11 padding-top: ${a}px; 12 padding-right: ${o}px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: ${s}px ${r}; 16 `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)} 17 } 18 19 .${wa} { 20 right: ${s}px ${r}; 21 } 22 23 .${Ta} { 24 margin-right: ${s}px ${r}; 25 } 26 27 .${wa} .${wa} { 28 right: 0 ${r}; 29 } 30 31 .${Ta} .${Ta} { 32 margin-right: 0 ${r}; 33 } 34 35 body[${eo}] { 36 ${Da}: ${s}px; 37 } 38`},no=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},ro=function(){M.useEffect(function(){return document.body.setAttribute(eo,(no()+1).toString()),function(){var e=no()-1;e<=0?document.body.removeAttribute(eo):document.body.setAttribute(eo,e.toString())}},[])},io=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;ro();var a=M.useMemo(function(){return Qa(i)},[i]);return M.createElement($a,{styles:to(a,!t,i,n?``:`!important`)})},ao=!1;if(typeof window<`u`)try{var oo=Object.defineProperty({},"passive",{get:function(){return ao=!0,!0}});window.addEventListener(`test`,oo,oo),window.removeEventListener(`test`,oo,oo)}catch{ao=!1}var so=ao?{passive:!1}:!1,co=function(e){return e.tagName===`TEXTAREA`},lo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!co(e)&&n[t]===`visible`)},uo=function(e){return lo(e,`overflowY`)},fo=function(e){return lo(e,`overflowX`)},po=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),go(e,r)){var i=_o(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},mo=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},ho=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},go=function(e,t){return e===`v`?uo(t):fo(t)},_o=function(e,t){return e===`v`?mo(t):ho(t)},vo=function(e,t){return e===`h`&&t===`rtl`?-1:1},yo=function(e,t,n,r,i){var a=vo(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=_o(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&go(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},bo=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xo=function(e){return[e.deltaX,e.deltaY]},So=function(e){return e&&`current`in e?e.current:e},Co=function(e,t){return e[0]===t[0]&&e[1]===t[1]},wo=function(e){return` 39 .block-interactivity-${e} {pointer-events: none;} 40 .allow-interactivity-${e} {pointer-events: all;} 41`},To=0,Eo=[];function Do(e){var t=M.useRef([]),n=M.useRef([0,0]),r=M.useRef(),i=M.useState(To++)[0],a=M.useState(Ja)[0],o=M.useRef(e);M.useEffect(function(){o.current=e},[e]),M.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Ca([e.lockRef.current],(e.shards||[]).map(So),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=M.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=bo(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=po(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=po(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return yo(h,t,e,h===`h`?s:c,!0)},[]),c=M.useCallback(function(e){var n=e;if(!(!Eo.length||Eo[Eo.length-1]!==a)){var r=`deltaY`in n?xo(n):bo(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Co(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}
41if(!i){var c=(o.current.shards||[]).map(So).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=M.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Oo(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=M.useCallback(function(e){n.current=bo(e),r.current=void 0},[]),d=M.useCallback(function(t){l(t.type,xo(t),t.target,s(t,e.lockRef.current))},[]),f=M.useCallback(function(t){l(t.type,bo(t),t.target,s(t,e.lockRef.current))},[]);M.useEffect(function(){return Eo.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,so),document.addEventListener(`touchmove`,c,so),document.addEventListener(`touchstart`,u,so),function(){Eo=Eo.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,so),document.removeEventListener(`touchmove`,c,so),document.removeEventListener(`touchstart`,u,so)}},[]);var p=e.removeScrollBar,m=e.inert;return M.createElement(M.Fragment,null,m?M.createElement(a,{styles:wo(i)}):null,p?M.createElement(io,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Oo(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var ko=La(Ra,Do),Ao=M.forwardRef(function(e,t){return M.createElement(Ba,Y({},e,{ref:t,sideCar:ko}))});Ao.classNames=Ba.classNames;var jo=Object.defineProperty,X=(e,t)=>jo(e,`name`,{value:t,configurable:!0}),Mo=[`Enter`,` `],No=[`ArrowDown`,`PageUp`,`Home`],Po=[`ArrowUp`,`PageDown`,`End`],Fo=[...No,...Po];[...Mo],[...Mo];var Io=`Menu`,[Lo,Ro,zo]=nr(Io),[Z,Bo]=R(Io,[zo,di,$i]),Vo=di(),Ho=$i(),[Uo,Wo]=Z(Io),[Go,Ko]=Z(Io),qo=X(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Vo(t),[c,l]=M.useState(null),u=M.useRef(!1),d=H(a),f=gr(i);return M.useEffect(()=>{let e=X(()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=X(()=>u.current=!1,`handlePointer`);return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),M.useEffect(()=>{if(!n)return;let e=X(()=>d(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,I.jsx)(wi,{...s,children:(0,I.jsx)(Uo,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,I.jsx)(Go,{scope:t,onClose:M.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})},`Menu`),Jo=M.forwardRef(X(function(e,t){let{__scopeMenu:n,...r}=e,i=Vo(n);return(0,I.jsx)(Ti,{...i,...r,ref:t})},`MenuAnchor`)),Yo=`MenuPortal`,[Xo,Zo]=Z(Yo,{forceMount:void 0}),Qo=X(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=Wo(Yo,t);return(0,I.jsx)(Xo,{scope:t,forceMount:n,children:(0,I.jsx)(ji,{present:n||a.open,children:(0,I.jsx)(Oi,{asChild:!0,container:i,children:r})})})},`MenuPortal`),Q=`MenuContent`,[$o,es]=Z(Q),ts=M.forwardRef(X(function(e,t){let n=Zo(Q,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=Wo(Q,e.__scopeMenu),o=Ko(Q,e.__scopeMenu);return(0,I.jsx)(Lo.Provider,{scope:e.__scopeMenu,children:(0,I.jsx)(ji,{present:r||a.open,children:(0,I.jsx)(Lo.Slot,{scope:e.__scopeMenu,children:o.modal?(0,I.jsx)(ns,{...i,ref:t}):(0,I.jsx)(rs,{...i,ref:t})})})})},`MenuContent`)),ns=M.forwardRef(X(function(e,t){let n=Wo(Q,e.__scopeMenu),r=M.useRef(null),i=k(t,r);return M.useEffect(()=>{let e=r.current;if(e)return xa(e)},[]),(0,I.jsx)(as,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:F(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),rs=M.forwardRef(X(function(e,t){let n=Wo(Q,e.__scopeMenu);return(0,I.jsx)(as,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),is=E(`MenuContent.ScrollLock`),as=M.forwardRef(X(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}
41=e,g=Wo(Q,n),_=Ko(Q,n),ee=Vo(n),v=Ho(n),te=Ro(n),[y,b]=M.useState(null),x=M.useRef(null),S=k(t,x,g.onContentChange),C=M.useRef(0),w=M.useRef(``),ne=M.useRef(0),re=M.useRef(null),ie=M.useRef(`right`),ae=M.useRef(0),oe=m?Ao:M.Fragment,se=m?{as:is,allowPinchZoom:!0}:void 0,ce=X(e=>{let t=w.current+e,n=te().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Cs(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;X((function e(t){w.current=t,window.clearTimeout(C.current),t!==``&&(C.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);M.useEffect(()=>()=>window.clearTimeout(C.current),[]),Lr();let T=M.useCallback(e=>ie.current===re.current?.side&&Ts(e,re.current?.area),[]);return(0,I.jsx)($o,{scope:n,searchRef:w,onItemEnter:M.useCallback(e=>{T(e)&&e.preventDefault()},[T]),onItemLeave:M.useCallback(e=>{T(e)||(x.current?.focus(),b(null))},[T]),onTriggerLeave:M.useCallback(e=>{T(e)&&e.preventDefault()},[T]),pointerGraceTimerRef:ne,onPointerGraceIntentChange:M.useCallback(e=>{re.current=e},[]),children:(0,I.jsx)(oe,{...se,children:(0,I.jsx)(Ur,{asChild:!0,trapped:i,onMountAutoFocus:F(a,e=>{e.preventDefault(),x.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,I.jsx)(Tr,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,I.jsx)(da,{asChild:!0,...v,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:y,onCurrentTabStopIdChange:b,onEntryFocus:F(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,I.jsx)(Ei,{role:`menu`,"aria-orientation":`vertical`,"data-state":vs(g.open),"data-radix-menu-content":``,dir:_.dir,...ee,...h,ref:S,style:{outline:`none`,...h.style},onKeyDown:F(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&ce(e.key));let i=x.current;if(e.target!==i||!Fo.includes(e.key))return;e.preventDefault();let a=te().filter(e=>!e.disabled).map(e=>e.ref.current);Po.includes(e.key)&&a.reverse(),xs(a)}),onBlur:F(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(C.current),w.current=``)}),onPointerMove:F(e.onPointerMove,Es(e=>{let t=e.target,n=ae.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>ae.current?`right`:`left`;ie.current=t,ae.current=e.clientX}}))})})})})})})},`MenuContentImpl`)),os=M.forwardRef(X(function(e,t){let{__scopeMenu:n,...r}=e;return(0,I.jsx)(B.div,{...r,ref:t})},`MenuLabel`)),ss=`MenuItem`,cs=`menu.itemSelect`,ls=M.forwardRef(X(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,a=M.useRef(null),o=Ko(ss,e.__scopeMenu),s=es(ss,e.__scopeMenu),c=k(t,a),l=M.useRef(!1),u=X(()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(cs,{bubbles:!0,cancelable:!0});e.addEventListener(cs,e=>r?.(e),{once:!0}),er(e,t),t.defaultPrevented?l.current=!1:o.onClose()}},`handleSelect`);return(0,I.jsx)(us,{...i,ref:c,disabled:n,onClick:F(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:F(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:F(e.onKeyDown,e=>{n||e.target!==e.currentTarget||s.searchRef.current!==``&&e.key===` `||Mo.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),us=M.forwardRef(X(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=es(ss,n),s=Ho(n),c=M.useRef(null),l=k(t,c),[u,d]=M.useState(!1),[f,p]=M.useState(``);return M.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,I.jsx)(Lo.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,I.jsx)(fa,{asChild:!0,...s,focusable:!r,children:(0,I.jsx)(B.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:F(e.onPointerMove,Es(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:F(e.onPointerLeave,Es(e=>
41o.onItemLeave(e))),onFocus:F(e.onFocus,()=>d(!0)),onBlur:F(e.onBlur,()=>d(!1))})})})},`MenuItemImpl`)),[ds,fs]=Z(`MenuRadioGroup`,{value:void 0,onValueChange:X(()=>{},`onValueChange`)}),[ps,ms]=Z(`MenuItemIndicator`,{checked:!1}),hs=M.forwardRef(X(function(e,t){let{__scopeMenu:n,...r}=e;return(0,I.jsx)(B.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})},`MenuSeparator`)),[gs,_s]=Z(`MenuSub`);function vs(e){return e?`open`:`closed`}X(vs,`getOpenState`);function ys(e){return e===`indeterminate`}X(ys,`isIndeterminate`);function bs(e){return ys(e)?`indeterminate`:e?`checked`:`unchecked`}X(bs,`getCheckedState`);function xs(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}X(xs,`focusFirst`);function Ss(e,t){return e.map((n,r)=>e[(t+r)%e.length])}X(Ss,`wrapArray`);function Cs(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Ss(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}X(Cs,`getNextMatch`);function ws(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}X(ws,`isPointInPolygon`);function Ts(e,t){return t?ws({x:e.clientX,y:e.clientY},t):!1}X(Ts,`isPointerInGraceArea`);function Es(e){return t=>t.pointerType===`mouse`?e(t):void 0}X(Es,`whenMouse`);var Ds=qo,Os=Jo,ks=Qo,As=ts,js=os,Ms=ls,Ns=hs,Ps=Object.defineProperty,Fs=(e,t)=>Ps(e,`name`,{value:t,configurable:!0}),Is=`DropdownMenu`,[Ls,Rs]=R(Is,[Bo]),$=Bo(),[zs,Bs]=Ls(Is),Vs=Fs(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=$(t),l=M.useRef(null),[u,d]=Kn({prop:i,defaultProp:a??!1,onChange:o,caller:Is});return(0,I.jsx)(zs,{scope:t,triggerId:ii(),triggerRef:l,contentId:ii(),open:u,onOpenChange:d,onOpenToggle:M.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,I.jsx)(Ds,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})},`DropdownMenu`),Hs=`DropdownMenuTrigger`,Us=M.forwardRef(Fs(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=Bs(Hs,n),o=$(n),s=k(t,a.triggerRef);return(0,I.jsx)(Os,{asChild:!0,...o,children:(0,I.jsx)(B.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:F(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:F(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),Ws=Fs(e=>{let{__scopeDropdownMenu:t,...n}=e,r=$(t);return(0,I.jsx)(ks,{...r,...n})},`DropdownMenuPortal`),Gs=`DropdownMenuContent`,Ks=M.forwardRef(Fs(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=Bs(Gs,n),a=$(n),o=M.useRef(!1);return(0,I.jsx)(As,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:F(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:F(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuContent`)),qs=M.forwardRef(Fs(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,I.jsx)(js,{...i,...r,ref:t})},`DropdownMenuLabel`)),Js=M.forwardRef(Fs(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,I.jsx)(Ms,{...i,...r,ref:t})},`DropdownMenuItem`)),Ys=M.forwardRef(Fs(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,I.jsx)(Ns,{...i,...r,ref:t})},`DropdownMenuSeparator`)),Xs=Vs,Zs=Us,Qs=Ws,$s=Ks,ec=qs,tc=Js,nc=Ys;function rc({...e}){return(0,I.jsx)(Xs,{"data-slot":`dropdown-menu`,...e})}function ic({...e}){return(0,I.jsx)(Zs,{"data-slot":`dropdown-menu-trigger`,...e})}function ac({className:e,sideOffset:t=4,...n}){return(0,I.jsx)(Qs,{children:(0,I.jsx)($s,{"data-slot":`dropdown-menu-content`,sideOffset:t,className:d(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
41de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md`,e),...n})})}function oc({className:e,inset:t,variant:n=`default`,...r}){return(0,I.jsx)(tc,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:d(`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 =destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r})}function sc({className:e,inset:t,...n}){return(0,I.jsx)(ec,{"data-slot":`dropdown-menu-label`,"data-inset":t,className:d(`px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,e),...n})}function cc({className:e,...t}){return(0,I.jsx)(nc,{"data-slot":`dropdown-menu-separator`,className:d(`bg-border -mx-1 my-1 h-px`,e),...t})}var lc=`custom-rpc-url`,uc=`custom-rpc-label`,dc=`custom-rpc-network`,fc=`setup-cluster`,pc={"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d":`mainnet`,EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG:`devnet`,"4uhcVJyU9pJkvQyS88uRDiswHXSCkY3zQawwpjk2NsNY":`testnet`};function mc(){let e=localStorage.getItem(lc),t=localStorage.getItem(dc);return!e||!t?null:{label:localStorage.getItem(uc)||`Custom`,network:t,url:e}}async function hc(e){return pc[await Se(e).getGenesisHash().send()]??null}function gc(e,t,n){localStorage.setItem(lc,e),localStorage.setItem(dc,t),localStorage.setItem(uc,n?.trim()||`Custom`),localStorage.setItem(fc,`solana:${t}`),localStorage.setItem(`setup-complete-${t}`,`true`)}function _c(){localStorage.removeItem(lc),localStorage.removeItem(dc),localStorage.removeItem(uc)}function vc(e){try{let{protocol:t}=new URL(e);return t===`http:`||t===`https:`}catch{return!1}}function yc(){let e=localStorage.getItem(`setup-cluster`)||`solana:devnet`;return e===`solana:devnet`||e===`solana:testnet`||e===`solana:localnet`||e===`solana:mainnet`?e:`solana:devnet`}function bc(e){return e===`solana:devnet`?`devnet`:e===`solana:testnet`?`testnet`:e===`solana:mainnet`?`mainnet`:`localnet`}function xc(){let e=[{id:`solana:devnet`,label:`Devnet`,url:`https://api.devnet.solana.com`},{id:`solana:testnet`,label:`Testnet`,url:`https://api.testnet.solana.com`},{id:`solana:mainnet`,label:`Mainnet`,url:`https://birdie-12ji8p-fast-mainnet.helius-rpc.com`}],t=mc();if(t){let n=e.find(e=>e.id===`solana:${t.network}`);n&&(n.url=t.url,n.label=`${n.label} (${t.label})`)}return e}function Sc(){let{account:e,isConnected:t,isConnecting:n}=w(),r=f(),{connect:i,isConnecting:a}=b(),{disconnect:o,isDisconnecting:s}=xe(),c=C(),l=n||a||s;async function u(e){try{await i(e)}catch(e){oe.error(e instanceof Error?e.message:`Wallet connection failed`)}}async function d(){try{await o()}catch(e){oe.error(e instanceof Error?e.message:`Wallet disconnect failed`)}}return t&&e?(0,I.jsxs)(rc,{children:[(0,I.jsx)(ic,{asChild:!0,children:(0,I.jsx)(ye,{disabled:l,iconLeft:(0,I.jsx)(Dn,{}),iconRight:(0,I.jsx)(ce,{className:`opacity-60`}),size:`sm`,variant:`secondary`,children:h(e,4)})}),(0,I.jsxs)(ac,{align:`end`,className:`w-64`,children:[(0,I.jsxs)(sc,{className:`space-y-1`,children:[(0,I.jsx)(`div`,{className:`text-sm`,children:c.name??`Connected wallet`}),(0,I.jsx)(`div`,{className:`font-mono text-xs text-muted-foreground`,children:e})]}),(0,I.jsx)(cc,{}),(0,I.jsxs)(oc,{className:`text-destructive focus:text-destructive`,disabled:l,onClick:()=>void d(),children:[(0,I.jsx)(Tn,{className:`h-4 w-4`}),`Disconnect`]})]})]}):(0,I.jsxs)(rc,{children:[(0,I.jsx)(ic,{asChild:!0,children:(0,I.jsx)(ye,{iconLeft:(0,I.jsx)(Dn,{}),iconRight:(0,I.jsx)(ce,{className:`opacity-60`}),loading:l,size:`sm`,variant:`secondary`,children:`Connect Wallet`})}),(0,I.jsxs)(ac,{align:`end`,className:`w-64`,children:[(0,I.jsx)(sc,{children:`Connect wallet`}),(0,I.jsx)(cc,{}),r.length===0&&(0,I.jsx)(oc,{disabled:!0,children:`No Wallet Standard wallets detected`}),r.map(e=>(0,I.jsxs)(oc,{disabled:l||!e.ready,onClick:()=>void u(e.id),children:[e.icon&&(0,I.jsx)(`img`,{src:e.icon,alt:``,className:`h-4 w-4 roun
41ded-sm`}),(0,I.jsx)(`span`,{children:e.name}),!e.ready&&(0,I.jsx)(`span`,{className:`ml-auto text-xs text-muted-foreground`,children:`Not ready`})]},e.id))]})]})}function Cc({children:e}){return(0,I.jsx)(p,{connectorConfig:(0,M.useMemo)(()=>{let e=yc();return re({appName:`Subscriptions`,autoConnect:!0,clusters:xc(),enableMobile:!0,network:bc(e),persistClusterSelection:!1})},[]),children:e})}var wc=82;function Tc(e){return e==null?wc:wc+D(le(l(),{size:`remainder`}),[ae(we(me(),83).encode(1))]).encode(e).length}var Ec=`data:image/svg+xml,%3csvg%20width='101'%20height='88'%20viewBox='0%200%20101%2088'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M100.48%2069.3817L83.8068%2086.8015C83.4444%2087.1799%2083.0058%2087.4816%2082.5185%2087.6878C82.0312%2087.894%2081.5055%2088.0003%2080.9743%2088H1.93563C1.55849%2088%201.18957%2087.8926%200.874202%2087.6912C0.558829%2087.4897%200.31074%2087.2029%200.160416%2086.8659C0.0100923%2086.529%20-0.0359181%2086.1566%200.0280382%2085.7945C0.0919944%2085.4324%200.263131%2085.0964%200.520422%2084.8278L17.2061%2067.408C17.5676%2067.0306%2018.0047%2066.7295%2018.4904%2066.5234C18.9762%2066.3172%2019.5002%2066.2104%2020.0301%2066.2095H99.0644C99.4415%2066.2095%2099.8104%2066.3169%20100.126%2066.5183C100.441%2066.7198%20100.689%2067.0067%20100.84%2067.3436C100.99%2067.6806%20101.036%2068.0529%20100.972%2068.415C100.908%2068.7771%20100.737%2069.1131%20100.48%2069.3817ZM83.8068%2034.3032C83.4444%2033.9248%2083.0058%2033.6231%2082.5185%2033.4169C82.0312%2033.2108%2081.5055%2033.1045%2080.9743%2033.1048H1.93563C1.55849%2033.1048%201.18957%2033.2121%200.874202%2033.4136C0.558829%2033.6151%200.31074%2033.9019%200.160416%2034.2388C0.0100923%2034.5758%20-0.0359181%2034.9482%200.0280382%2035.3103C0.0919944%2035.6723%200.263131%2036.0083%200.520422%2036.277L17.2061%2053.6968C17.5676%2054.0742%2018.0047%2054.3752%2018.4904%2054.5814C18.9762%2054.7875%2019.5002%2054.8944%2020.0301%2054.8952H99.0644C99.4415%2054.8952%2099.8
41104%2054.7879%20100.126%2054.5864C100.441%2054.3849%20100.689%2054.0981%20100.84%2053.7612C100.99%2053.4242%20101.036%2053.0518%20100.972%2052.6897C100.908%2052.3277%20100.737%2051.9917%20100.48%2051.723L83.8068%2034.3032ZM1.93563%2021.7905H80.9743C81.5055%2021.7907%2082.0312%2021.6845%2082.5185%2021.4783C83.0058%2021.2721%2083.4444%2020.9704%2083.8068%2020.592L100.48%203.17219C100.737%202.90357%20100.908%202.56758%20100.972%202.2055C101.036%201.84342%20100.99%201.47103%20100.84%201.13408C100.689%200.79713%20100.441%200.510296%20100.126%200.308823C99.8104%200.107349%2099.4415%201.24074e-05%2099.0644%200L20.0301%200C19.5002%200.000878397%2018.9762%200.107699%2018.4904%200.313848C18.0047%200.519998%2017.5676%200.821087%2017.2061%201.19848L0.524723%2018.6183C0.267681%2018.8866%200.0966198%2019.2223%200.0325185%2019.5839C-0.0315829%2019.9456%200.0140624%2020.3177%200.163856%2020.6545C0.31365%2020.9913%200.561081%2021.2781%200.875804%2021.4799C1.19053%2021.6817%201.55886%2021.7896%201.93563%2021.7905Z'%20fill='url(%23paint0_linear_174_4403)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_174_4403'%20x1='8.52558'%20y1='90.0973'%20x2='88.9933'%20y2='-3.01622'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.08'%20stop-color='%239945FF'/%3e%3cstop%20offset='0.3'%20stop-color='%238752F3'/%3e%3cstop%20offset='0.5'%20stop-color='%235497D5'/%3e%3cstop%20offset='0.6'%20stop-color='%2343B4CA'/%3e%3cstop%20offset='0.72'%20stop-color='%2328E0B9'/%3e%3cstop%20offset='0.97'%20stop-color='%2319FB9B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`;function Dc(){let{signer:e}=i(),r=T(),s=pe();async function c(e){let t=await m(e);await s.sendTransaction(ie(t),{encoding:`base64`}).send()}return{createToken:a({mutationFn:async({decimals:n=6}={})=>{if(!e)throw Error(`Wallet not connected`);let r=e,i=await g(await y()),a=Tc(),l=await s.getMinimumBalanceForRentExemption(BigInt(a)).send(),{value:u}=await s.getLatestBlockhash().send(),d=he(r,i,l,a,be),f=o({decimals:n,freezeAuthority:r.address,mint:i.address,mintAuthority:r.address});return await c(Ce(se({version:0}),e=>ge(r,e),e=>ve(u,e),e=>t([d,f],e))),{mint:i.address}},onError:e=>r.onError(e),onSuccess:()=>{r.onSuccess(`Token mint created`)}}),mintTo:a({mutationFn:async({mint:r,amount:i,recipient:a})=>{if(!e)throw Error(`Wallet not connected`);let o=e,l=a??o.address,[u]=await n({mint:r,owner:l,tokenProgram:be}),{value:d}=await s.getLatestBlockhash().send(),f=ue({ata:u,mint:r,owner:l,payer:o,systemProgram:_e,tokenProgram:be}),p=v({amount:i,mint:r,mintAuthority:o,token:u});return await c(Ce(se({version:0}),e=>ge(o,e),e=>ve(d,e),e=>t([f,p],e))),{ata:u}},onError:e=>r.onError(e),onSuccess:()=>{r.onSuccess(`Tokens minted`)}})}}export{Ot as $,Dn as A,en as B,Tr as C,z as D,Kn as E,Yt as F,Nt as G,tn as H,Xt as I,Bt as J,Pt as K,vn as L,wn as M,Cn as N,R as O,Jt as P,Tt as Q,Qt as R,Lr as S,B as T,nn as U,gn as V,zt as W,Lt as X,P as Y,It as Z,xa as _,_c as a,pt as at,ii as b,mc as c,Pe as ct,ac as d,j as dt,ft as et,oc as f,Te as ft,Ao as g,ic as h,Sc as i,Ct as it,En as j,F as k,gc as l,A as lt,cc as m,Ec as n,rt as nt,hc as o,st as ot,sc as p,Vt as q,Cc as r,Re as rt,vc as s,Ae as st,Dc as t,N as tt,rc as u,Fe as ut,ji as v,Er as w,Ur as x,Oi as y,_n as z};
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.