1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3857],{5370:(e,a,t)=>{t.r(a),t.d(a,{Sidebar:()=>_,SidebarContent:()=>T,SidebarFooter:()=>B,SidebarGroup:()=>F,SidebarGroupAction:()=>$,SidebarGroupContent:()=>U,SidebarGroupLabel:()=>P,SidebarHeader:()=>L,SidebarInput:()=>I,SidebarInset:()=>A,SidebarMenu:()=>V,SidebarMenuAction:()=>X,SidebarMenuActionButton:()=>Z,SidebarMenuBadge:()=>K,SidebarMenuButton:()=>G,SidebarMenuItem:()=>O,SidebarMenuSkeleton:()=>W,SidebarMenuSub:()=>Y,SidebarMenuSubButton:()=>J,SidebarMenuSubItem:()=>H,SidebarProvider:()=>M,SidebarRail:()=>E,SidebarTrigger:()=>D,sidebarMenuButtonVariants:()=>q,useSidebar:()=>z});var r=t(71545),n=t(1463),s=t(18204),i=t(78292),l=t(43466),o=t(69109),d=t(84129),c=t(193),u=t(78445),m=t(91784),f=t(62047),p=t(52027),b=t(76685),h=t(87125),x=t(6769);let g=h.bL;h.l9,h.bm;let v=h.ZL,y=u.forwardRef(({className:e,...a},t)=>(0,r.jsx)(h.hJ,{className:(0,m.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80 data-[state=closed]:animate-out data-[state=open]:animate-in",e),...a,ref:t}));y.displayName=h.hJ.displayName;let w=(0,d.F)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),N=u.forwardRef(({side:e="right",className:a,children:t,...n},s)=>(0,r.jsxs)(v,{children:[(0,r.jsx)(y,{}),(0,r.jsxs)(h.UC,{ref:s,className:(0,m.cn)(w({side:e}),a),...n,children:[t,(0,r.jsxs)(h.bm,{className:"absolute top-4 right-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,r.jsx)(x.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));N.displayName=h.UC.displayName;let j=u.forwardRef(({className:e,...a},t)=>(0,r.jsx)(h.hE,{ref:t,className:(0,m.cn)("font-semibold text-foreground text-lg",e),...a}));j.displayName=h.hE.displayName,u.forwardRef(({className:e,...a},t)=>(0,r.jsx)(h.VY,{ref:t,className:(0,m.cn)("text-muted-foreground text-sm",e),...a})).displayName=h.VY.displayName;var S=t(71882),k=t(77364);let C="100vw",R=u.createContext(null);function z(){let e=u.useContext(R);if(!e)throw Error("useSidebar must be used within a SidebarProvider.");return e}let M=u.forwardRef(({defaultOpen:e=!0,open:a,onOpenChange:t,className:n,style:s,children:i,...l},o)=>{let{isMobile:d}=(0,f.m)(),[c,p]=u.useState(!1),[b,h]=u.useState(e),x=a??b,g=u.useCallback(e=>{let a="function"==typeof e?e(x):e;t?t(a):h(a),document.cookie=`sidebar:state=${a}; path=/; max-age=604800`},[t,x]),v=u.useCallback(()=>d?p(e=>!e):g(e=>!e),[d,g]);u.useEffect(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),v())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[v]);let y=x?"expanded":"collapsed",w=u.useMemo(()=>({state:y,open:x,setOpen:g,isMobile:d,openMobile:c,setOpenMobile:p,toggleSidebar:v}),[y,x,g,d,c,v]);return(0,r.jsx)(R.Provider,{value:w,children:(0,r.jsx)(k.Bc,{delayDuration:0,children:(0,r.jsx)("div",{style:{"--sidebar-width":"100vw","--sidebar-width-icon":"3rem",...s},className:(0,m.cn)("group/sidebar-wrapper w-full has-[[data-variant=inset]]:bg-default",n),ref:o,...l,children:i})})})});M.displayName="SidebarProvider";let _=u.forwardRef(({side:e="left",variant:a="sidebar",collapsible:t="offcanvas",className:n,children:s,...i},l)=>{let{isMobile:o,state:d,openMobile:c,setOpenMobile:f,toggleSidebar:p}
1=z(),b=u.useRef(null);return"none"===t?(0,r.jsx)("div",{className:(0,m.cn)("flex h-full w-[--sidebar-width] flex-col bg-default",n),ref:l,...i,children:s}):o?(0,r.jsx)(g,{open:c,onOpenChange:f,...i,children:(0,r.jsxs)(N,{ref:b,onOpenAutoFocus:e=>{e.preventDefault(),b.current?.focus()},"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] border-l-0 bg-default p-0 focus:outline-none [&>button]:hidden",style:{"--sidebar-width":C},side:e,children:[(0,r.jsx)(j,{className:"sr-only",children:"Sidebar"}),(0,r.jsx)("div",{className:"flex h-full w-full flex-col",children:s})]})}):(0,r.jsx)(g,{open:"collapsed"!==d,...i,children:(0,r.jsxs)(N,{onPointerDownOutside:p,"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-default p-0 [&>button]:hidden",style:{"--sidebar-width":C},side:e,children:[(0,r.jsx)(j,{className:"sr-only",children:"Sidebar"}),(0,r.jsx)("div",{className:"flex h-full w-full flex-col",children:s})]})})});_.displayName="Sidebar";let D=u.forwardRef(({className:e,children:a,onClick:t,...n},s)=>{let{toggleSidebar:i}=z();return(0,r.jsxs)(p.$,{ref:s,"data-sidebar":"trigger",size:"sm",className:(0,m.cn)("h-7 w-7",e),onClick:e=>{t?.(e),i()},...n,children:[a||(0,r.jsx)(c.A,{}),(0,r.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});D.displayName="SidebarTrigger";let E=u.forwardRef(({className:e,...a},t)=>{let{toggleSidebar:n}=z();return(0,r.jsx)("button",{ref:t,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:(0,m.cn)("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-default-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:hover:bg-default group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...a})});E.displayName="SidebarRail";let A=u.forwardRef(({className:e,...a},t)=>(0,r.jsx)("main",{ref:t,className:(0,m.cn)("relative flex min-h-svh flex-1 flex-col bg-white","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...a}));A.displayName="SidebarInset";let I=u.forwardRef(({className:e,...a},t)=>(0,r.jsx)(b.p,{ref:t,"data-sidebar":"input",className:(0,m.cn)("h-8 w-full bg-white shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...a}));I.displayName="SidebarInput";let L=u.forwardRef(({className:e,...a},t)=>(0,r.jsx)("div",{ref:t,"data-sidebar":"header",className:(0,m.cn)("flex flex-col gap-2 p-2",e),...a}));L.displayName="SidebarHeader";let B=u.forwardRef(({className:e,...a},t)=>(0,r.jsx)("div",{ref:t,"data-sidebar":"footer",className:(0,m.cn)("flex flex-col gap-2 p-2",e),...a}));B.displayName="SidebarFooter";let T=u.forwardRef(({className:e,...a},t)=>(0,r.jsx)("div",{ref:t,"data-sidebar":"content",className:(0,m.cn)("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...a}));T.displayName="SidebarContent";let F=u.forwardRef(({className:e,...a},t)=>(0,r.jsx)("div",{ref:t,"data-sidebar":"group",className:(0,m.cn)("relative flex w-full min-w-0 flex-col p-2",e),...a}));F.displayName="SidebarGroup";let P=u.forwardRef(({className:e,asChild:a=!1,...t},s)=>{let i=a?n.DX:"div";return(0,r.jsx)(i,{ref:s,"data-sidebar":"group-label",className:(0,m.cn)("/70 flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-xs outline-none ring-sidebar-ring transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...t})});P.displayName="SidebarGroupLabel";let $=u.forwardRef(({className:e,asChild:a=!1,...t},s)=>{let i=a?n.DX:"button";return(0,r.jsx)(i,{ref:s,"data-sidebar":"group-action",className:(0,m.cn)("absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-none ring-sidebar-ring transition-transform hover:bg-default-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...t})});$.displayName="SidebarGroupAction";let U=u.forwardRef(({className:e,...a},t)=>(0,r.jsx)("div",{ref:t,"data-sidebar":"group-content",className:(0,m.cn)("w-full text-sm",e),...a}));U.displayName="SidebarGroupContent";let V=u.forwardRef(({className:e,...a},t)=>(0,r.jsx)("ul",{ref:t,"data-sidebar":"menu",className:(0,m.cn)("flex w-full min-w-0 flex-col gap-1",e),...a}));V.displayName="SidebarMenu";let O=u.forwardRef(({className:e,...a},t)=>(0,r.jsx)("li",{ref:t,"data-sidebar":"menu-item",className:(0,m.cn)("group/menu-item relative",e),...a}));O.displayName="SidebarMenuItem";let q=(0,d.F)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded text-left outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-default-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-default-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-default-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-default-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:""}},defaultVariants:{variant:"default"}}),G=u.forwardRef(({asChild:e=!1,isActive:a=!1,variant:t="default",tooltip:s,className:i,toggleSidebar:l=!1,...o},d)=>{let c=e?n.DX:"button",{isMobile:u,state:f,toggleSidebar:p}
1=z(),b=(0,r.jsx)(c,{ref:d,"data-sidebar":"menu-button","data-active":a,onClick:l?p:void 0,className:(0,m.cn)(q({variant:t}),i),...o});return s?("string"==typeof s&&(s={children:s}),(0,r.jsxs)(k.m_,{children:[(0,r.jsx)(k.k$,{asChild:!0,children:b}),(0,r.jsx)(k.ZI,{side:"right",align:"center",hidden:"collapsed"!==f||u,...s})]})):b});G.displayName="SidebarMenuButton";let X=u.forwardRef(({className:e,asChild:a=!1,showOnHover:t=!1,...s},i)=>{let l=a?n.DX:"button";return(0,r.jsx)(l,{ref:i,"data-sidebar":"menu-action",className:(0,m.cn)("absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-none ring-sidebar-ring transition-transform hover:bg-default-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...s})});X.displayName="SidebarMenuAction";let Z=u.forwardRef(({className:e,asChild:a=!1,mutationFn:t,analyticsData:d,...c},u)=>{let f=a?n.DX:"button",{handleRedirectResponse:p,handleRedirectError:b,isZoneRedirectResponse:h}=(0,i.m)(),{mutate:x}=(0,o.n)({mutationFn:t,onSuccess:e=>{if(d?.event==="feature_used"&&s.zS.trackFeatureUsed(d.params),d?.event==="signed_out"&&s.zS.trackSignedOut(d.params),h(e))return p(e)},onError:e=>{if((0,l.Bh)(e))return b(e)}});return(0,r.jsx)(f,{className:(0,m.cn)("flex items-center",e),"data-sidebar":"menu-action",onClick:()=>x(),ref:u,...c})});Z.displayName="SidebarMenuActionButton";let K=u.forwardRef(({className:e,...a},t)=>(0,r.jsx)("div",{ref:t,"data-sidebar":"menu-badge",className:(0,m.cn)("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 font-medium text-xs tabular-nums","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...a}));K.displayName="SidebarMenuBadge";let W=u.forwardRef(({className:e,showIcon:a=!1,...t},n)=>{let s=u.useMemo(()=>`${Math.floor(40*Math.random())+50}%`,[]);return(0,r.jsxs)("div",{ref:n,"data-sidebar":"menu-skeleton",className:(0,m.cn)("flex h-8 items-center gap-2 rounded-md px-2",e),...t,children:[a&&(0,r.jsx)(S.E,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,r.jsx)(S.E,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":s}})]})});W.displayName="SidebarMenuSkeleton";let Y=u.forwardRef(({className:e,...a},t)=>(0,r.jsx)("ul",{ref:t,"data-sidebar":"menu-sub",className:(0,m.cn)("","group-data-[collapsible=icon]:hidden",e),...a}));Y.displayName="SidebarMenuSub";let H=u.forwardRef(({...e},a)=>(0,r.jsx)("li",{ref:a,...e}));H.displayName="SidebarMenuSubItem";let J=u.forwardRef(({asChild:e=!1,size:a="md",isActive:t,className:s,...i},l)=>{let o=e?n.DX:"a";return(0,r.jsx)(o,{ref:l,"data-sidebar":"menu-sub-button","data-size":a,"data-active":t,className:(0,m.cn)("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-none ring-sidebar-ring hover:bg-default-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-default-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-default-accent data-[active=true]:text-sidebar-accent-foreground","sm"===a&&"text-xs","md"===a&&"text-sm","group-data-[collapsible=icon]:hidden",s),...i})});J.displayName="SidebarMenuSubButton"},7235:(e,a,t)=>{t.d(a,{AccountDropdownTrigger:()=>o});var r=t(71545),n=t(14500),s=t(45427),i=t(40957),l=t(78445);function o({isLoggedIn:e}){let[,a]=(0,s.M)("has_seen_kids_hint",!1),t=(0,l.useCallback)(()=>{a(!0)},[a]);return(0,r.jsx)(n.DropdownMenuTrigger,{asChild:!0,className:"relative",children:(0,r.jsx)("button",{onPointerDown:t,type:"button",children:(0,r.jsx)(i.A,{"aria-label":"Account Settings",size:24,strokeWidth:1,className:"stroke-default"})})})}},14500:(e,a,t)=>{t.r(a),t.d(a,{DropdownMenu:()=>p,DropdownMenuActionItem:()=>S,DropdownMenuCheckboxItem:()=>k,DropdownMenuContent:()=>N,DropdownMenuGroup:()=>h,DropdownMenuItem:()=>j,DropdownMenuLabel:()=>R,DropdownMenuPortal:()=>x,DropdownMenuRadioGroup:()=>v,DropdownMenuRadioItem:()=>C,DropdownMenuSeparator:()=>z,DropdownMenuShortcut:()=>M,DropdownMenuSub:()=>g,DropdownMenuSubContent:()=>w,DropdownMenuSubTrigger:()=>y,DropdownMenuTrigger:()=>b});var r=t(71545),n=t(9864),s=t(18204),i=t(78292),l=t(43466),o=t(69109),d=t(36605),c=t(7437),u=t(55829),m=t(78445),f=t(91784);let p=({onOpenChangeFn:e,...a})=>(0,r.jsx)(n.bL,{...a,onOpenChange:e,children:a.children}),b=n.l9,h=n.YJ,x=n.ZL,g=n.Pb,v=n.z6,y=m.forwardRef(({className:e,inset:a,children:t,...s},i)=>(0,r.jsxs)(n.ZP,{ref:i,className:(0,f.cn)("flex cursor-default select-none items-center rounded-sm bg-[red] px-4 py-2.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",a&&"pl-8",e),...s,children:[t,(0,r.jsx)(d.A,{className:"ml-auto size-4"})]}));y.displayName=n.ZP.displayName;let w=m.forwardRef(({className:e,...a},t)=>(0,r.jsx)(n.G5,{ref:t,className:(0,f.cn)("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
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border bg-minimal p-1 shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in",e),...a}));w.displayName=n.G5.displayName;let N=m.forwardRef(({className:e,sideOffset:a=4,...t},s)=>(0,r.jsx)(n.ZL,{children:(0,r.jsx)(n.UC,{ref:s,sideOffset:a,className:(0,f.cn)("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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded border bg-card p-1.5 shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",e),...t})}));N.displayName=n.UC.displayName;let j=m.forwardRef(({className:e,inset:a,...t},s)=>(0,r.jsx)(n.q7,{ref:s,className:(0,f.cn)("relative flex select-none items-center rounded-sm px-4 py-2.5 text-sm transition-colors focus:bg-subtle focus-visible:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a&&"pl-8",e),...t}));j.displayName=n.q7.displayName;let S=m.forwardRef(({analyticsData:e,className:a,inset:t,mutationFn:d,...c},u)=>{let{handleRedirectResponse:m,handleRedirectError:p,isZoneRedirectResponse:b}=(0,i.m)(),{mutate:h}=(0,o.n)({mutationFn:d,onSuccess:a=>{if(e?.event==="feature_used"&&s.zS.trackFeatureUsed(e.params),e?.event==="signed_out"&&s.zS.trackSignedOut(e.params),b(a))return m(a)},onError:e=>{if((0,l.Bh)(e))return p(e)}});return(0,r.jsx)(n.q7,{className:(0,f.cn)("relative flex cursor-default select-none items-center rounded-sm px-4 py-2.5 text-sm outline-none transition-colors focus:bg-subtle focus-visible:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",a),onSelect:()=>h(),ref:u,...c})});S.displayName="DropdownMenuActionItem";let k=m.forwardRef(({className:e,children:a,checked:t,...s},i)=>(0,r.jsxs)(n.H_,{ref:i,className:(0,f.cn)("relative flex cursor-default select-none items-center rounded-sm py-2.5 pr-2 pl-8 text-sm outline-none transition-colors focus:bg-subtle focus-visible:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:t,...s,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(n.VF,{children:(0,r.jsx)(c.A,{className:"h-4 w-4"})})}),a]}));k.displayName=n.H_.displayName;let C=m.forwardRef(({className:e,children:a,...t},s)=>(0,r.jsxs)(n.hN,{ref:s,className:(0,f.cn)("relative flex cursor-default select-none items-center rounded-sm py-2.5 pr-2 pl-8 text-sm outline-none transition-colors focus:bg-subtle data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(n.VF,{children:(0,r.jsx)(u.A,{className:"h-2 w-2 fill-current"})})}),a]}));C.displayName=n.hN.displayName;let R=m.forwardRef(({className:e,inset:a,...t},s)=>(0,r.jsx)(n.JU,{ref:s,className:(0,f.cn)("px-4 py-2.5 font-semibold text-sm",a&&"pl-8",e),...t}));R.displayName=n.JU.displayName;let z=m.forwardRef(({className:e,...a},t)=>(0,r.jsx)(n.wv,{ref:t,className:(0,f.cn)("-mx-1 my-1.5 h-px bg-subtle",e),...a}));z.displayName=n.wv.displayName;let M=({className:e,...a})=>(0,r.jsx)("span",{className:(0,f.cn)("ml-auto text-xs tracking-widest opacity-60",e),...a});M.displayName="DropdownMenuShortcut"},20274:(e,a,t)=>{t.d(a,{MobileHeaderSearchBarRow:()=>o});var r=t(71545),n=t(58855),s=t(91784),i=t(60113);let l=["/search","/join-2","/join/checkout","/join/payment","/join/donate"];function o({defaultText:e,hideSearchBar:a=!1,isPremium:t=!1}){let d=(0,n.usePathname)(),c=a||l.some(e=>d===e||d.startsWith(`${e}/`));return(0,r.jsx)("div",{className:(0,s.cn)("border-default/10 border-t pb-3 xl:hidden",c&&"hidden"),hidden:c,children:(0,r.jsx)(i.MobileHeaderSearchBar,{className:"w-full",isPremium:t,defaultText:e})})}},23995:(e,a,t)=>{t.d(a,{N:()=>D});var r=t(71545),n=t(18204),s=t(63861);t(37811),t(37811);var i=t(20878);let l=i.Ik({id:i.Yj().min(1),name:i.Yj(),trackingKey:i.Yj().min(1)}),o=i.Ik({key:i.Yj().min(1),name:i.Yj(),variationId:i.Yj().min(1)}),d=i.k5(["string","text","slug","file","link","links","structured_text","rich_text"]),c=i.Ik({growthbookVariant:o,id:i.Yj().min(1),value:i.L5()});function u(){if("u"<typeof document)return null;var e=document.cookie;if(!e)return null;for(let a of e.split(";")){let[e,...t]=a.trim().split("=");if("gb_visitor_id"===e){let e=t.join("=").trim();return e.length>
10?decodeURIComponent(e):null}}return null}i.Ik({fieldApiKey:i.Yj().min(1).nullable(),fieldType:d.nullable(),growthbookExperiment:l.nullable(),segments:i.YO(c).max(3)}),t(37811),t(37811);var m=t(18957),f=t(97120),p=t(89032),b=t(65768),h=t(88567),x=t(28294),g=t(78445),v=t(69207),y=t(16049),w=t(65656);async function N(e){let a=u();if(!a)throw Error("Missing GrowthBook visitor id");let t=(0,w.I)();if(!t)throw Error("Browser API client is not registered");let r={"x-gb-visitor-id":a},n=function(){if("u"<typeof localStorage)return new Map;try{return function(e){let a=new Map;if(!e?.trim())return a;for(let t of e.split(",")){let e=t.trim();if(!e)continue;let r=e.lastIndexOf(":");if(r<=0)continue;let n=e.slice(0,r).trim(),s=e.slice(r+1).trim();if(!n||!s)continue;let i=Number(s);Number.isInteger(i)&&!(i<0)&&a.set(n,i)}return a}(localStorage.getItem("gb_force_segments"))}catch{return new Map}}();n.size>0&&(r["x-gb-force-segments"]=[...n.entries()].map(([e,a])=>`${e}:${a}`).join(","));let s=await t["v1.1"]["donate-info"].$get({},{init:{headers:r,signal:e}});if(!s.ok)throw Error("Failed to fetch personalized donate info");return s.json()}var j=t(91784),S=t(65082),k=t(91402),C=t(52027),R=t(329),z=t(31675);let M=["donate-info","personalized"];function _(e,a){return(a?e.recurring.find(e=>e.defaultSelected)?.amount:e.nonRecurring.find(e=>e.defaultSelected)?.amount)||0}function D({children:e,className:a,defaultGiveOption:t="once",donateButtonText:n="Donate",donateHeading:s,donateHeadingBgColor:i,donationLevels:l,experimentAssignments:o,location:d,size:c="default",variant:b="donate",customUrl:x}){let[v,y]=(0,g.useState)(null),[w,j]=(0,g.useState)(!1);(0,g.useEffect)(()=>{y(u()),j(!0)},[]);let S=!!v,{data:k,isLoading:z,isSuccess:_}=(0,p.I)({queryKey:M,enabled:S,staleTime:1/0,retry:!1,queryFn:async({signal:e})=>{let a=AbortSignal.timeout(2e3);return N(AbortSignal.any([e,a]))}}),I=_&&k?k:{defaultGiveOption:t,donateButtonText:n,donateHeading:s,donateHeadingBgColor:i,donationLevels:l},L=I.experimentAssignments??[],[B,T]=(0,g.useState)(!1),F=B&&(!w||S&&z);return x?(0,r.jsx)(E,{className:a,customUrl:x,donateButtonText:n,location:d,size:c,variant:b,children:e}):(0,r.jsxs)(m.ExperimentProvider,{assignments:B&&!F?L:[],children:[B&&!F&&L.length>0?(0,r.jsx)(f.ExperimentExposureTracker,{assignments:L}
1):null,(0,r.jsxs)(R.RF,{open:B,onOpenChange:T,children:[(0,r.jsx)(R.Lr,{asChild:!0,children:(0,r.jsx)(C.$,{className:a,size:c,variant:b,children:e||"Donate"})}),(0,r.jsx)(R.sL,{children:F?(0,r.jsxs)("div",{className:"flex min-h-[240px] items-center justify-center py-10",children:[(0,r.jsx)(h.A,{className:"size-10 animate-spin opacity-75",strokeWidth:1,absoluteStrokeWidth:!0}),(0,r.jsx)("span",{className:"sr-only",children:"Loading"})]}):(0,r.jsx)(A,{donateInfo:I,location:d},_?"personalized":"control")})]})]})}function E({children:e,className:a,customUrl:t,donateButtonText:i,location:l,size:o,variant:d}){let c=(0,m.toExperimentTrackingProps)((0,m.useExperimentAssignment)({fieldApiKey:["donation_levels","button_text","heading","default_give_option"]})),u=async()=>{let e=await (0,s.lk)();n.zS.trackCtaClicked({clickId:e,destination:t,location:l,text:i||"",type:y.aX.Button,url:window.location.href,...c}),window.open(t,"_blank","noopener,noreferrer")};return(0,r.jsx)(C.$,{className:a,size:o,variant:d,onClick:u,children:e||"Donate"})}function A({donateInfo:e,location:a}){let t,{defaultGiveOption:i="once",donateButtonText:l="Donate",donateHeading:o,donateHeadingBgColor:d,donationLevels:c}=e,u=(0,m.toExperimentTrackingProps)((0,m.useExperimentAssignment)({fieldApiKey:["donation_levels","button_text","heading"]})),[f,p]=(0,g.useState)("once"!==i),[h,w]=(0,g.useState)(()=>_(c,"once"!==i)),{register:N,handleSubmit:M,resetField:D}=(0,v.mN)({defaultValues:{customAmount:void 0},mode:"onChange"}),E=M(async({customAmount:e})=>{let t,r=await (0,s.lk)(),i=e||h,o=e?"568445":c[f?"recurring":"nonRecurring"].find(e=>e.amount===i)?.campaignId,d=c[f?"recurring":"nonRecurring"].find(e=>e.amount===i);d?.campaignIds&&d.campaignIds.length>0&&(o=d.campaignIds[Math.floor(Math.random()*d.campaignIds.length)]);let m=c[f?"recurring":"nonRecurring"].find(e=>e.amount===i)?.sourceCode;switch(o){case"431495":case"539997":case"94990":t=`https://donate.prageru.com/give/${o}/#!/donation/checkout`;break;default:t=`https://donate.prageru.com/campaign/${o}/donate`}let p=new URL(t),b=new URLSearchParams;b.append("amount",i.toString()),b.append("recurring",f.toString()),b.append("c_src",`web_${r}`),b.append("c_src2",m||"general"),p.search=b.toString();let x=p.toString();window.saq?.("conv","qIEVrmrxFURrz1cVrFAijE"),n.zS.trackCtaClicked({clickId:r,destination:x,location:a,text:l||"",type:y.aX.Button,url:window.location.href,...u}),window.location.href=x}),I=e=>{D("customAmount"),p(e),w(_(c,e))},L=e=>{D("customAmount"),w(e)};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{style:{"--headerColor":d},className:(0,j.cn)(o?"md:-mx-px":"sr-only"),children:(0,r.jsx)(R.N5,{className:(0,j.cn)("body-base p-3 text-center font-normal text-white max-md:rounded md:-mx-10 md:-mt-12 md:-translate-y-px md:rounded-t-lg",d?"bg-[--headerColor]":"bg-subtle`"),children:o||"Donate"})}),(0,r.jsxs)(R.BD,{className:(0,j.cn)(o&&"pt-6 max-md:pb-8"),children:[(0,r.jsxs)("form",{onSubmit:E,children:[(0,r.jsxs)(z.Tabs,{className:"w-full",defaultValue:"recurring",value:f?"recurring":"non-recurring",children:[(0,r.jsxs)(z.TabsList,{className:"label-base flex overflow-hidden rounded bg-minimal",children:[(0,r.jsx)(z.TabsTrigger,{className:"flex-1 px-4 py-3 data-[state=active]:bg-primary data-[state=active]:text-white",onClick:()=>I(!1),value:"non-recurring",children:"One-Time"}),(0,r.jsx)(z.TabsTrigger,{className:"flex-1 px-4 py-3 data-[state=active]:bg-primary data-[state=active]:text-white",onClick:()=>I(!0),value:"recurring",children:"Monthly"})]}),(0,r.jsx)(z.TabsContent,{value:"non-recurring",className:"mt-6 space-y-3",children:(0,r.jsx)("div",{className:"flex flex-row gap-x-2",children:c.nonRecurring.map(e=>(0,r.jsxs)("button",{className:(0,j.cn)("label-base flex-1 rounded border px-4 py-3",h===e.amount?"border-primary bg-primary/10 text-primary":""),onClick:()=>L(e.amount||0),type:"button",children:["$",e.amount]},e.amount||""))})}),(0,r.jsx)(z.TabsContent,{value:"recurring",className:"mt-6 space-y-3",children:(0,r.jsx)("div",{className:"flex flex-row gap-x-2",children:c.recurring.map(e=>(0,r.jsxs)("button",{className:(0,j.cn)("label-base flex-1 rounded border px-4 py-3",h===e.amount?"border-primary bg-primary/10 text-primary":""),onClick:()=>L(e.amount||0),type:"button",children:["$",e.amount]},e.amount||""))})})]}),(0,r.jsxs)("div",{className:"body-lg mt-4 flex items-center border-b py-2",children:["$",(0,r.jsx)("input",{"aria-label":"Other amount",className:"ml-1 w-full appearance-none border-none bg-transparent focus:outline-none",min:1,placeholder:"Other",type:"number",...N("customAmount",{onChange(e){e.target.value||w(f?c.recurring[1].amount:c.nonRecurring[1].amount)}})})]}),(t=c[f?"recurring":"nonRecurring"].find(e=>e.amount===h))?(0,r.jsxs)("div",{className:"body-sm my-5 flex min-h-[200px] flex-col justify-center rounded bg-minimal p-5 sm:min-h-[174px]",children:[t.image&&(0,r.jsx)(x.default,{alt:t.image.alt||t.title||"Donor benefit logo",className:"mb-4 max-h-[36px] max-w-[216px] object-contain object-left",height:40,src:t.image.url||"",width:216}),t.heading&&(0,r.jsx)("h3",{className:"mb-2 font-bold",children:t.heading}),!(0,b.n6)(t.description)&&(0,r.jsx)(S.n,{data:t.description}),t.upsell&&"number"==typeof t.upsell.amount&&"boolean"==typeof t.upsell.recurring&&"PragerUnited"!==t.title&&(0,r.jsx)("p",{className:"mt-2 font-bold",children:(0,r.jsx)("button",{className:"inline text-primary underline",onClick:()=>{p(t.upsell?.recurring??!1),L(t.upsell?.amount??0)},type:"button",children:"Upgrade"})})]}):null,(0,r.jsx)(C.$,{className:"w-full",type:"submit",variant:"donate",children:l})]}),(0,r.jsx)(R.Ih,{className:"flex flex-col space-y-2 p-0 sm:space-y-0",children:(0,r.jsxs)("p",{className:"mt-5 text-center text-sm",children:["Learn more about PragerU's"," ",(0,r.jsx)(k.ForesightLink,{href:"/donor-club",className:"text-primary underline",target:"_blank",children:"Donor Clubs"})]})})]})]})}},27820:(e,a,t)=>{t.r(a),t.d(a,{Avatar:()=>l,AvatarFallback:()=>d,AvatarImage:()=>o});var r=t(71545),n=t(59884),s=t(78445),i=t(91784);let l=s.forwardRef(({className:e,...a},t)=>(0,r.jsx)(n.bL,{ref:t,className:(0,i.cn)("relative flex size-10 shrink-0 overflow-hidden rounded-full",e),...a}));l.displayName=n.bL.displayName;let o=s.forwardRef(({className:e,...a},t)=>(0,r.jsx)(n._V,{ref:t,className:(0,i.cn)("aspect-square size-full",e),...a}));o.displayName=n._V.displayName;let d=s.forwardRef(({className:e,...a},t)=>(0,r.jsx)(n.H4,{ref:t,className:(0,i.cn)("flex size-full items-center justify-center rounded-full bg-subtle",e),...a}));d.displayName=n.H4.displayName},43466:(e,a,t)=>
1{function r(e){return"object"==typeof e&&null!==e&&"__isZoneRedirect"in e&&!0===e.__isZoneRedirect&&"url"in e&&"type"in e&&"string"==typeof e.url&&("push"===e.type||"replace"===e.type)}function n(e){let a=()=>{"push"===e.type?window.location.href=e.url:window.location.replace(e.url)};e.delay&&e.delay>0?setTimeout(a,e.delay):a()}function s(e){return e instanceof Error&&"__zoneRedirectData"in e&&r(e.__zoneRedirectData)}function i(e){return e.__zoneRedirectData}t.d(a,{Bh:()=>s,DX:()=>i,S4:()=>r,cw:()=>n})},45427:(e,a,t)=>{t.d(a,{M:()=>i});var r=t(78445);class n{subscribe(e,a){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e)?.add(a),()=>{let t=this.listeners.get(e);t&&(t.delete(a),0===t.size&&this.listeners.delete(e))}}emit(e,a){let t=this.listeners.get(e);t&&t.forEach(e=>{e(a)})}init(){window.addEventListener("storage",this.handleStorageEvent)}destroy(){window.removeEventListener("storage",this.handleStorageEvent)}constructor(){this.listeners=new Map,this.handleStorageEvent=e=>{if(e.key&&e.newValue!==e.oldValue)try{let a=e.newValue?JSON.parse(e.newValue):null;this.emit(e.key,a)}catch(a){console.warn(`Error parsing localStorage event for key "${e.key}":`,a)}}}}let s=new n;function i(e,a){let[t,n]=(0,r.useState)(()=>(function(e,a){try{let t=localStorage.getItem(e);return t?JSON.parse(t):a}catch(t){return console.warn(`Error reading localStorage key "${e}":`,t),a}})(e,a));(0,r.useEffect)(()=>s.subscribe(e,e=>{n(null===e?a:e)}),[e,a]);let i=(0,r.useCallback)(a=>{try{let r=a instanceof Function?a(t):a;n(r);try{localStorage.setItem(e,JSON.stringify(r)),s.emit(e,r)}catch(a){console.warn(`Error setting localStorage key "${e}":`,a)}}catch(a){console.warn(`Error setting localStorage key "${e}":`,a)}},[e,t]);return[t,i,(0,r.useCallback)(()=>{try{n(a);try{localStorage.removeItem(e),s.emit(e,null)}catch(a){console.warn(`Error removing localStorage key "${e}":`,a)}}catch(a){console.warn(`Error removing localStorage key "${e}":`,a)}},[e,a])]}s.init()},58352:(e,a,t)=>{t.d(a,{AuthLink:()=>o});var r=t(71545),n=t(91402),s=t(91784),i=t(86919),l=t(58855);function o({className:e}){let a=(0,l.usePathname)();return(0,r.jsxs)(n.ForesightLink,{className:(0,s.cn)(e),href:`/auth?from=${encodeURIComponent(a)}`,children:[(0,r.jsx)(i.A,{className:"mr-2 size-4"}),"Login / Sign Up"]})}},60113:(e,a,t)=>{t.d(a,{MobileHeaderSearchBar:()=>d});var r=t(71545),n=t(92638),s=t(75349),i=t(78445),l=t(91784),o=t(76685);function d({className:e,isPremium:a=!1,defaultText:t="Economics, Politics, Science..."}){let[c,u]=(0,i.useState)("");return(0,r.jsxs)("form",{action:"/search",className:(0,l.cn)("relative min-w-0 flex-1",e),method:"get",children:[(0,r.jsx)(o.p,{type:"search",name:"q",placeholder:t,required:!0,value:c,onChange:e=>u(e.target.value),className:(0,l.cn)("h-11 rounded border bg-card shadow-sm focus-visible:outline-none [&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none",c?"pr-24":"pr-11",a?"focus-visible:border-primary":"border-default"),"aria-label":"Search"}),c?(0,r.jsx)("button",{type:"button",className:"absolute top-1/2 right-12 flex h-8 w-8 -translate-y-1/2 items-center justify-center p-0 text-default hover:opacity-90",onClick:()=>u(""),"aria-label":"Clear search",children:(0,r.jsx)(n.A,{strokeWidth:1,size:20,className:"stroke-subtle"})}):null,(0,r.jsx)("button",{type:"submit",className:"absolute top-1/2 right-2 flex h-8 w-8 -translate-y-1/2 items-center justify-center rounded border-default border-l bg-subtle p-0 text-default hover:bg-minimal hover:opacity-90","aria-label":"Search",children:(0,r.jsx)(s.A,{strokeWidth:1.5,size:20,className:"stroke-default"})})]})}},65656:(e,a,t)=>{t.d(a,{I:()=>s,t:()=>n});let r=null;function n(e){r=e}function s(){return r}},74887:(e,a,t)=>{t.d(a,{De:()=>s,UV:()=>i,sX:()=>l});var r=t(91784),n=t(52027);let s="Premium + PragerUnited",i=(0,r.cn)((0,n.r)({variant:"primary",size:"sm"}),"header-premium-cta"),l=(0,r.cn)(i,"bg-gradient-premium text-inverted")},75904:(e,a,t)=>{t.d(a,{DesktopNavigation:()=>k});
1var r=t(71545),n=t(18204),s=t(63861),i=t(5615),l=t(75349),o=t(58855),d=t(11405),c=t(77793),u=t(91784),m=t(74887),f=t(23995),p=t(91402),b=t(20162),h=t(84129),x=t(78445);let g=x.forwardRef(({className:e,children:a,...t},n)=>(0,r.jsx)(b.bL,{className:(0,u.cn)("relative z-10 flex flex-1 items-center justify-center",e),ref:n,...t,children:a}));g.displayName=b.bL.displayName;let v=x.forwardRef(({className:e,...a},t)=>(0,r.jsx)(b.B8,{className:(0,u.cn)("group flex flex-1 list-none items-center justify-center space-x-1",e),ref:t,...a}));v.displayName=b.B8.displayName;let y=b.q7,w=(0,h.F)("group inline-flex h-8 w-max items-center justify-center rounded-md bg-transparent px-2 py-2 text-default transition-colors hover:bg-transparent hover:text-default disabled:pointer-events-none disabled:opacity-50"),N=x.forwardRef(({className:e,children:a,...t},n)=>(0,r.jsxs)(b.l9,{className:(0,u.cn)(w(),"group",e),ref:n,...t,children:[a," "]}));N.displayName=b.l9.displayName;let j=x.forwardRef(({className:e,...a},t)=>(0,r.jsx)(b.UC,{className:(0,u.cn)("top-full left-0 mt-1.5 w-full overflow-hidden rounded-md bg-card md:absolute md:w-auto",e),ref:t,...a}));j.displayName=b.UC.displayName;let S=x.forwardRef(({applyTriggerStyles:e,className:a,...t},n)=>(0,r.jsx)(b.N_,{className:(0,u.cn)(a,e&&w()),ref:n,...t}));function k({children:e,donateInfo:a,isKids:t,isPremium:b,navLists:h}){let x=(0,o.usePathname)(),w=(0,o.useRouter)(),{onClick:C}=(0,c.o)("/for-you"),{onClick:R}=(0,c.o)("/join"),[z]=(0,d.ZA)("device_code"),M=async e=>{let a=await (0,s.lk)();n.zS.trackCtaClicked({clickId:a,destination:"/join",location:"desktop-navigation",text:m.De,type:(0,s.wf)("button"),url:window.location.href}),R(e)},_="xl:max-2xl:text-sm rounded xl:px-1 xl:py-1.5 2xl:px-2 h-auto data-[state=open]:bg-subtle",D="after:-bottom-[28px] 2xl:after:-bottom-[26px] after:-z-10 after:absolute after:inset-x-0 after:h-1 after:rounded-t-full after:bg-primary";return(0,r.jsx)(g,{className:"ml-auto justify-end text-base max-xl:hidden",delayDuration:200,children:(0,r.jsxs)(v,{className:"xl:gap-x-2.5 2xl:gap-x-5 space-x-0 max-xl:text-sm",children:[h.map(({items:e,title:a,splitControl:n})=>{let s=e.some(({url:e})=>e===x),l=e[0]?.url;return l?(0,r.jsxs)(y,{className:"relative","data-menu-title":a,children:[n?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(N,{className:(0,u.cn)(_,s&&D,"group focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary"),onKeyDown:e=>{"Enter"===e.key&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),w.push(l))},"aria-label":`${a} menu. Press Enter to open submenu, Ctrl+Enter to navigate to ${a}`,children:[(0,r.jsx)("span",{className:"cursor-pointer hover:underline",onClick:e=>{e.stopPropagation(),w.push(l)},children:a}),(0,r.jsx)(i.A,{className:"ml-1 h-4 w-4 transition-transform group-data-[state=open]:rotate-180",strokeWidth:1.5})]})}):(0,r.jsxs)(N,{className:(0,u.cn)(_,s&&D,"group focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary"),children:[a,(0,r.jsx)(i.A,{className:"ml-1 h-4 w-4 transition-transform group-data-[state=open]:rotate-180",strokeWidth:1.5})]}),(0,r.jsx)(j,{className:"relative bg-card border border-default shadow-card p-2 min-w-56 mt-3.5 rounded",onInteractOutside:e=>{e.preventDefault()},children:(0,r.jsx)("ul",{"aria-label":`${a} submenu`,children:e.map(({premiumRoute:e,title:a,url:n})=>e&&!b||e&&t?null:(0,r.jsx)("li",{children:(0,r.jsx)(S,{className:"py-2 px-3 block hover:bg-subtle xl:max-2xl:text-sm rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:bg-subtle",asChild:!0,children:(0,r.jsx)(p.ForesightLink,{prefetch:!0,href:n,children:a})})},a))})})]},a):null}),!t&&!z&&(b?(0,r.jsx)(y,{className:"premium",children:(0,r.jsx)(S,{asChild:!0,children:(0,r.jsx)(p.ForesightLink,{className:m.UV,href:"/for-you",onClick:C,children:m.De})})}):(0,r.jsx)(y,{className:"join-premium",children:(0,r.jsx)(S,{asChild:!0,children:(0,r.jsx)(p.ForesightLink,{className:m.sX,href:"/join",onClick:M,children:m.De})})})),(0,r.jsx)(y,{className:"relative",children:(0,r.jsx)(f.N,{location:"desktop-navigation",size:"sm",variant:"donate",...a})}),(0,r.jsx)(y,{className:(0,u.cn)("relative p-2","/search"===x&&D),children:(0,r.jsx)(S,{asChild:!0,children:(0,r.jsx)(p.ForesightLink,{href:"/search",className:"block",children:(0,r.jsx)(l.A,{size:20,"aria-label":"Search",strokeWidth:1.5,className:"stroke-default"})})})}),(0,r.jsx)(y,{className:"flex items-center",children:e})]})})}
1S.displayName=b.N_.displayName,x.forwardRef(({className:e,...a},t)=>(0,r.jsx)("div",{className:(0,u.cn)("absolute top-full left-0 flex justify-center"),children:(0,r.jsx)(b.LM,{className:(0,u.cn)("data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 data-[state=closed]:animate-out data-[state=open]:animate-in","h-[var(--radix-navigation-menu-viewport-height)] md:w-[var(--radix-navigation-menu-viewport-width)]","relative mt-1.5 w-full origin-top-center overflow-hidden rounded-md bg-card text-white shadow-lg",e),ref:t,...a})})).displayName=b.LM.displayName,x.forwardRef(({className:e,...a},t)=>(0,r.jsx)(b.C1,{className:(0,u.cn)("data-[state=hidden]:fade-out data-[state=visible]:fade-in data-[state=hidden]:animate-out data-[state=visible]:animate-in","top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",e),ref:t,...a,children:(0,r.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})).displayName=b.C1.displayName},77364:(e,a,t)=>{t.d(a,{Bc:()=>l,ZI:()=>c,k$:()=>d,m_:()=>o});var r=t(71545),n=t(42434),s=t(78445),i=t(91784);let l=n.Kq,o=n.bL,d=n.l9,c=s.forwardRef(({className:e,sideOffset:a=4,...t},s)=>(0,r.jsx)(n.UC,{className:(0,i.cn)("fade-in-0 zoom-in-95 body-sm z-50 overflow-hidden rounded border px-3 py-1.5","data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:animate-out","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2",e),ref:s,sideOffset:a,...t}));c.displayName=n.UC.displayName},77793:(e,a,t)=>{t.d(a,{o:()=>s});var r=t(58855),n=t(78445);function s(e,a={}){let{method:t="push"}=a,i=(0,r.usePathname)(),l=(0,r.useRouter)(),o=(0,n.useRef)(!1),d=(0,n.useRef)(i),[c,u]=(0,n.use
1State)(!1);return(0,n.useEffect)(()=>{d.current!==i&&(d.current=i,o.current=!1,u(!1))},[i]),{onClick:a=>{if(i!==e){if(o.current)return void a.preventDefault();o.current=!0,u(!0),a.preventDefault(),"replace"===t?l.replace(e):l.push(e)}},isNavigating:c}}},78292:(e,a,t)=>{t.d(a,{m:()=>s});var r=t(78445),n=t(43466);function s(){let e=(0,r.useCallback)(e=>!!(0,n.S4)(e)&&((0,n.cw)(e),!0),[]),a=(0,r.useCallback)(e=>{if((0,n.Bh)(e)){let a=(0,n.DX)(e);return(0,n.cw)(a),null}return e},[]),t=(0,r.useCallback)((t={})=>({...t,onSuccess:(a,r,n)=>{!e(a)&&t.onSuccess&&t.onSuccess(a,r,n)},onError:(e,r,n)=>{let s=a(e);s&&t.onError&&t.onError(s,r,n)}}),[e,a]);return{executeRedirect:(0,r.useCallback)(e=>{(0,n.cw)(e)},[]),handleRedirectError:a,handleRedirectResponse:e,handleZoneRedirect:t,isZoneRedirectError:n.Bh,isZoneRedirectResponse:n.S4}}},83385:(e,a,t)=>{t.d(a,{Collapsible:()=>s,CollapsibleContent:()=>l,CollapsibleTrigger:()=>i});var r=t(71545),n=t(7071);function s({...e}){return(0,r.jsx)(n.bL,{"data-slot":"collapsible",...e})}function i({...e}){return(0,r.jsx)(n.R6,{"data-slot":"collapsible-trigger",...e})}function l({...e}){return(0,r.jsx)(n.Ke,{"data-slot":"collapsible-content",...e})}},96549:(e,a,t)=>{t.r(a),t.d(a,{MobileNavigation:()=>y,mobileNavLinkClasses:()=>g,mobileNavSublinkClasses:()=>v});var r=t(71545),n=t(18204),s=t(63861),i=t(41612),l=t(6769),o=t(5615),d=t(11405),c=t(45427),u=t(77793),m=t(91784),f=t(23995),p=t(91402),b=t(83385),h=t(5370),x=t(74887);let g="inline-flex h-auto gap-x-3 h-auto p-3 text-lg font-medium",v="!p-3 body-base w-full";function y({aiWidget:e,children:a,donateInfo:t,isKids:w,isPremium:N,navLists:j,profileSwitcher:S}){let[,k]=(0,c.M)("has_seen_kids_hint",!1),{onClick:C}=(0,u.o)("/for-you"),{onClick:R}=(0,u.o)("/join"),[z]=(0,d.ZA)("device_code"),M=async e=>{let a=await (0,s.lk)();n.zS.trackCtaClicked({clickId:a,destination:"/join",location:"mobile-navigation",text:x.De,type:(0,s.wf)("button"),url:window.location.href}),R(e)};return(0,r.jsx)(h.SidebarProvider,{defaultOpen:!1,className:"w-auto min-w-0",children:(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-x-2 sm:gap-x-3 md:gap-x-6 xl:hidden",children:[!w&&!z&&(N?(0,r.jsx)("div",{className:"premium min-w-0",children:(0,r.jsx)(p.ForesightLink,{className:x.UV,href:"/for-you",onClick:C,children:x.De})}):(0,r.jsx)("div",{className:"join-premium min-w-0",children:(0,r.jsx)(p.ForesightLink,{className:x.sX,href:"/join",onClick:M,children:x.De})})),(0,r.jsx)(f.N,{className:"h-8 shrink-0 px-2.5 sm:h-10 sm:px-3.5",location:"mobile-navigation",size:"sm",variant:"donate",...t}),(0,r.jsx)(h.SidebarTrigger,{className:"size-auto shrink-0 p-0 text-default [&_svg]:size-7 sm:[&_svg]:size-8",onClick:()=>k(!0),variant:"ghost",children:(0,r.jsx)(i.A,{strokeWidth:1})}),(0,r.jsxs)(h.Sidebar,{className:"min-h-0",collapsible:"offcanvas",side:"right",variant:"floating",children:[(0,r.jsxs)(h.SidebarHeader,{className:"flex-row items-center justify-between border-b p-4",children:[S,(0,r.jsxs)(h.SidebarTrigger,{variant:"ghost",className:"-mr-1 size-auto p-2 text-default [&_svg]:size-6",children:[(0,r.jsx)(l.A,{strokeWidth:1,className:"text-icon-subtle"}),(0,r.jsx)("span",{className:"sr-only",children:"Close Sidebar"})]})]}),(0,r.jsxs)(h.SidebarContent,{className:"px-2 pt-4 pb-6",children:[(0,r.jsx)("h3",{className:"sr-only",children:"Main Menu"}),(0,r.jsxs)(h.SidebarMenu,{className:"gap-y-2",children:[e,(0,r.jsx)(h.SidebarMenuItem,{children:(0,r.jsx)(h.SidebarMenuButton,{toggleSidebar:!0,asChild:!0,children:(0,r.jsx)(p.ForesightLink,{className:(0,m.cn)(g,"justify-start"),href:"/search",children:"Search"})})}),j.map(e=>(0,r.jsx)(b.Collapsible,{className:"group/collapsible",asChild:!0,children:(0,r.jsxs)(h.SidebarMenuItem,{children:[(0,r.jsx)(b.CollapsibleTrigger,{className:"group",asChild:!0,children:(0,r.jsxs)(h.SidebarMenuButton,{className:g,children:[e.title,(0,r.jsx)(o.A,{className:"ml-auto size-6 transition-transform duration-300 group-data-[state=open]:rotate-180",strokeWidth:1})]})}),(0,r.jsx)(b.CollapsibleContent,{className:"-mx-2 border-b px-2",children:(0,r.jsx)(h.SidebarMenuSub,{className:"pb-5",children:e.items.map(e=>e.premiumRoute&&!N?null:(0,r.jsx)(h.SidebarMenuSubItem,{children:(0,r.jsx)(h.SidebarMenuButton,{toggleSidebar:!0,asChild:!0,children:(0,r.jsx)(p.ForesightLink,{prefetch:!0,className:v,href:e.url,children:e.title})})}
1,e.title))})})]})},e.title)),a]})]})]})]})})}}}]);
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.