import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{$n as t,$r as n,Ar as r,Cr as i,Dt as a,Ei as o,En as ee,Fn as te,Gn as ne,Ir as re,It as ie,J as ae,Jr as oe,M as s,Nr as c,Qt as se,R as l,Tt as u,Vt as d,Wt as ce,Xr as le,Y as f,Zt as ue,ai as de,ar as fe,bt as p,ci as m,en as h,f as g,fi as _,gi as v,gt as y,hr as b,ht as x,ii as S,ki as C,mr as w,mt as T,pi as E,q as D,qn as O,r as k,si as A,st as j,ui as M,ut as N,x as P,xt as F,zt as I}from"./lucide-icons-BjbcRgLk.js";import{t as L}from"./jsx-runtime-By8HlURe.js";import{o as R}from"./react-intl-DZWxPhxo.js";import{t as z}from"./WikipediaIcon-Df-eqPdn.js";import{t as B}from"./BlueskyIcon-imVay4Hn.js";var V=e(C(),1),H=L(),U=V.forwardRef(({className:e,...t},n)=>(0,H.jsx)(`svg`,{ref:n,xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`currentColor`,stroke:`none`,className:e,...t,children:(0,H.jsx)(`path`,{d:`M11.19,2.25C10.93,2.25 10.67,2.31 10.42,2.4L3.06,5.45C2.04,5.87 1.55,7.04 1.97,8.05L6.93,20C7.24,20.77 7.97,21.23 8.74,21.25C9,21.25 9.27,21.22 9.53,21.1L16.9,18.05C17.65,17.74 18.11,17 18.13,16.25C18.14,16 18.09,15.71 18,15.45L13,3.5C12.71,2.73 11.97,2.26 11.19,2.25M14.67,2.25L18.12,10.6V4.25A2,2 0 0,0 16.12,2.25M20.13,3.79V12.82L22.56,6.96C22.97,5.94 22.5,4.78 21.47,4.36M11.19,4.22L16.17,16.24L8.78,19.3L3.8,7.29`})}));U.displayName=`CardsIcon`;var W=V.forwardRef(({className:e,strokeWidth:t=2,...n},r)=>(0,H.jsxs)(`svg`,{ref:r,xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t,strokeLinecap:`round`,strokeLinejoin:`round`,className:e,...n,children:[(0,H.jsx)(`path`,{d:`M8 19a2 2 0 0 0 2-2V9a4 4 0 0 0-8 0v8a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a4 4 0 0 0-4-4H6`}),(0,H.jsx)(`path`,{d:`M2 11h20`}),(0,H.jsx)(`path`,{d:`M16 11v3`})]}));W.displayName=`ChestIcon`;var G=V.forwardRef(({className:e,strokeWidth:t=2,...n},r)=>(0,H.jsxs)(`svg`,{ref:r,xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t,strokeLinecap:`round`,strokeLinejoin:`round`,className:e,...n,children:[(0,H.jsx)(`circle`,{cx:`12`,cy:`12`,r:`8`}),(0,H.jsx)(`path`,{d:`M4.05 13c-1.7 1.8-2.5 3.5-1.8 4.5c1.1 1.9 6.4 1 11.8-2s8.9-7.1 7.7-9c-.6-1-2.4-1.2-4.7-.7`})]}));G.displayName=`PlanetIcon`;var K=V.forwardRef(({className:e,strokeWidth:t=2,...n},r)=>(0,H.jsxs)(`svg`,{ref:r,xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t,strokeLinecap:`round`,strokeLinejoin:`round`,className:e,...n,children:[(0,H.jsx)(`path`,{d:`M20 5.5A4 4 0 0 1 22 9v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a4 4 0 0 1 8 0v8a2 2 0 0 1-2 2M6 5h4`}),(0,H.jsx)(`path`,{d:`M14 9V5h2v1h-2`})]}));K.displayName=`MailboxIcon`;var q=`divider`;function pe(e){return e===q}function J(e){return e.startsWith(`nostr:`)}function Y(e){return e.startsWith(`nsite://`)}function me(e){return e.slice(8)}function X(e){return e.startsWith(`nostr:`)?e.slice(6):e}function Z(e){return e.startsWith(`https://`)||e.startsWith(`http://`)||e.startsWith(`iso3166:`)||e.startsWith(`isbn:`)}var he=[`yours`,`app`,`social`,`media`,`reading`,`fun`,`personalize`,`tools`],Q=[{id:`feed`,label:`Feed`,path:`/feed`,icon:G,section:`app`},{id:`notifications`,label:`Notifications`,path:`/notifications`,icon:E,requiresAuth:!0,section:`yours`},{id:`search`,label:`Search`,path:`/search`,icon:T,section:`app`},{id:`trends`,label:`Trends`,path:`/trends`,icon:s,section:`app`},{id:`bookmarks`,label:`Bookmarks`,path:`/bookmarks`,icon:de,requiresAuth:!0,section:`yours`},{id:`profile`,label:`Profile`,path:`/profile`,icon:P,requiresAuth:!0,section:`yours`},{id:`lists`,label:`Lists`,path:`/lists`,icon:y,requiresAuth:!0,section:`yours`},{id:`settings`,label:`Settings`,path:`/settings`,icon:N,section:`app`},{id:`wallet`,label:`Wallet`,path:`/wallet`,icon:g,requiresAuth:!0,section:`yours`},{id:`changelog`,label:`Changelog`,path:`/changelog`,icon:x,section:`app`},{id:`letters`,label:`Letters`,path:`/letters`,icon:K,requiresAuth:!0,section:`social`},{id:`ai-chat`,label:`AI Chat`,path:`/ai-chat`,icon:S,requiresAuth:!0,section:`tools`},{id:`blobbi`,label:`Blobbi`,path:`/blobbi`,icon:w,requiresAuth:!0,section:`fun`},{id:`help`,label:`Help`,path:`/help`,icon:re,section:`app`},{id:`events`,label:`Events`,path:`/events`,icon:n,section:`social`},{id:`photos`,label:`Photos`,path:`/photos`,icon:le,section:`media`},{id:`videos`,label:`Videos`,path:`/videos`,icon:t,section:`media`},{id:`articles`,label:`Articles`,path:`/articles`,icon:A,section:`reading`},{id:`highlights`,label:`Highlights`,path:`/highlights`,icon:u,section:`reading`},{id:`books`,label:`Books`,path:`/books`,icon:m,section:`reading`},{id:`vines`,label:`Shorts`,path:`/shorts`,icon:c,section:`media`},{id:`music`,label:`Music`,path:`/music`,icon:ce,section:`media`},{id:`podcasts`,label:`Podcasts`,path:`/podcasts`,icon:a,section:`media`},{id:`webxdc`,label:`Webxdc`,path:`/webxdc`,icon:M,section:`tools`},{id:`themes`,label:`Themes`,path:`/themes`,icon:D,section:`personalize`},{id:`polls`,label:`Polls`,path:`/polls`,icon:oe,section:`social`},{id:`packs`,label:`Follow Packs`,path:`/packs`,icon:ie,section:`social`},{id:`colors`,label:`Color Moments`,path:`/colors`,icon:I,section:`fun`},{id:`decks`,label:`Magic Decks`,path:`/decks`,icon:U,section:`fun`},{id:`treasures`,label:`Treasures`,path:`/treasures`,icon:W,section:`fun`},{id:`quizzes`,label:`Quizzes`,path:`/quizzes`,icon:r,section:`fun`},{id:`cards`,label:`Memory Cards`,path:`/memory-cards`,icon:O,section:`fun`},{id:`emojis`,label:`Emojis`,path:`/emojis`,icon:f,section:`personalize`},{id:`development`,label:`Development`,path:`/development`,icon:i,section:`tools`},{id:`badges`,label:`Badges`,path:`/badges`,icon:v,section:`fun`},{id:`world`,label:`World`,path:`/world`,icon:b,section:`social`},{id:`archive`,label:`Archive`,path:`/archive`,icon:o,section:`reading`},{id:`wikipedia`,label:`Wikipedia`,path:`/wikipedia`,icon:z,section:`reading`},{id:`bluesky`,label:`Bluesky`,path:`/bluesky`,icon:B,section:`social`}],ge=new Set(Q.map(e=>e.id)),$=new Map(Q.map(e=>[e.id,e])),_e={posts:se,comments:h,reposts:F,"generic-reposts":F,reactions:f,zaps:k,voice:ue,"custom-emojis":ae,statuses:f,"bird-detections":_,constellations:D,"custom-nips":fe,nsites:p,zapstore:d,"app-handlers":M,vanish:ne,"love-lists":ee,campaigns:te,attestations:j,"classified-listings":l,...Object.fromEntries(Q.filter(e=>e.icon).map(e=>[e.id,e.icon]))};function ve(e){return $.get(e)}function ye(e,t=`size-6`){return(0,H.jsx)($.get(e)?.icon??I,{className:t})}function be(e){let t=R(),n=$.get(e)?.label;return n?t.formatMessage({id:`nav.${e}`,defaultMessage:n}):e}function xe(e,t,n){return e===`profile`&&t?t:n&&e===n?`/`:$.get(e)?.path??`/${e}`}function Se(e){let t=e.trim().toLowerCase();if(t.length===0)return[];let n=[],r=[];for(let e of Q){let i=e.label.toLowerCase();i.startsWith(t)?n.push(e):i.split(/\s+/).some(e=>e.startsWith(t))&&r.push(e)}return[...n,...r]}function Ce(e,t,n,r,i){if(J(e))return t===`/${X(e)}`;if(Y(e))return!1;if(Z(e))return t===`/i/${encodeURIComponent(e)}`||t===`/i/${e}`;if(e===`profile`)return!!r&&t===r;if(e===`settings`)return t.startsWith(`/settings`);let a=$.get(e)?.path??`/${e}`;return i&&e===i&&t===`/`||t===a}export{be as _,he as a,U as b,Ce as c,pe as d,xe as f,ye as g,Se as h,ge as i,J as l,me as m,q as n,ve as o,X as p,Q as r,Z as s,_e as t,Y as u,K as v,W as y};