PageSourceSearch

https://www.sierraavalanchecenter.org/_next/static/chunks/app/(fro…/%5Bcenter%5D/layout-bf1b34730678b798.js

js sierraavalanchecenter.org collected 2026-09-24 20:30:23 UTC 21,075 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="33ab6e14-ceaf-4f4d-a86a-799e9af773ec",e._sentryDebugIdIdentifier="sentry-dbid-33ab6e14-ceaf-4f4d-a86a-799e9af773ec")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3461],{10289:(e,t,n)=>{"use strict";n.d(t,{DesktopNav:()=>y});var l=n(39422),a=n(55324),s=n(61244),r=n(12500),i=n(66714),o=n(62466),c=n(89834),d=n(69422);let u=d.forwardRef((e,t)=>{let{className:n,children:s,...r}=e;return(0,l.jsx)(i.bL,{ref:t,className:(0,a.cn)("relative z-10 flex max-w-max flex-1 items-center justify-center",n),...r,children:s})});u.displayName=i.bL.displayName;let m=d.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,l.jsx)(i.B8,{ref:t,className:(0,a.cn)("group flex flex-1 list-none items-center justify-center",n),...s})});m.displayName=i.B8.displayName;let f=i.q7,h=(0,o.F)("group inline-flex w-max items-center justify-center rounded-md px-3.5 pt-2.5 pb-5 text-header-foreground font-medium transition-colors hover:bg-header hover:text-header-foreground-highlight focus-visible:bg-header focus-visible:text-header-foreground-highlight focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50"),x=d.forwardRef((e,t)=>{let{className:n,children:s,...r}=e;return(0,l.jsxs)(i.l9,{ref:t,className:(0,a.cn)(h(),"group",n),...r,children:[s," ",(0,l.jsx)(c.A,{className:"relative top-[1px] ml-0.5 h-6 w-6 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})});x.displayName=i.l9.displayName;let p=d.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,l.jsx)(i.UC,{ref:t,className:(0,a.cn)("absolute bg-header text-header-foreground-highlight origin-top-center top-full w-fit overflow-hidden border-x border-b max-h-[calc(100vh-225px)] overflow-y-auto",n),...s})});p.displayName=i.UC.displayName;let g=i.N_;d.forwardRef((e,t)=>{let{className:n,...s}=e;return(0,l.jsx)(i.C1,{ref:t,className:(0,a.cn)("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",n),...s,children:(0,l.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})}).displayName=i.C1.displayName;var b=n(78663);let v="relative w-fit after:content-[''] after:absolute after:left-2 after:bottom-0 after:h-[1px] after:w-0 after:bg-nav-underline after:transition-all after:duration-300 hover:after:w-[calc(100%-1rem)] hover:text-header-foreground-highlight",y=e=>{let{topLevelNavItems:t}=e;return(0,l.jsx)(u,{delayDuration:100,className:"z-50",children:(0,l.jsx)(m,{children:t.map(e=>{var t,n,i;let o=e.label||(null==(t=e.link)?void 0:t.label);if(!o)return null;if("button"===e.displayMode||"link"===e.displayMode)return(0,l.jsx)(f,{value:o,children:(0,l.jsx)(g,{asChild:!0,children:(0,l.jsx)(b.i,{link:e.link,displayMode:e.displayMode,className:(0,a.cn)(h(),"font-medium")})})},o);let c=null==(n=e.items)?void 0:n.find(e=>e.items&&e.items.length>0);return(0,l.jsxs)(f,{value:o,children:[(0,l.jsx)(x,{onClick:e=>{"pointerType"in e.nativeEvent&&""!==e.nativeEvent.pointerType&&e.preventDefault()},className:"data-[state=open]:text-header-foreground-highlight font-medium lg:px-1.5 xl:px-3.5",children:o}),(0,l.jsx)(p,{children:(0,l.jsx)(r.Accordion,{type:"single",collapsible:!0,className:"grid min-w-max px-4 pt-2 pb-5 gap-2",defaultValue:null==c?void 0:c.id,children:null==(i=e.items)?void 0:i.map(e=>{var t,n;let i=e.items&&e.items.length>0;return(0,l.jsxs)("div",{className:"flex flex-col",children:[!i&&e.link&&(0,l.jsx)(g,{asChild:!0,children:(0,l.jsx)(b.i,{link:e.link,className:(0,a.cn)("py-1.5 px-2",v)})}),i&&(0,l.jsxs)(r.AccordionItem,{value:e.id,className:"border-0",children:[(0,l.jsx)(r.AccordionTrigger,{className:"pl-2 py-1.5 hover:no-underline -mb-0.5 w-full group/accordion-trigger",chevronClassName:"h-6 w-6 text-inherit",children:(0,l.jsx)("div",{className:(0,a.cn)("text-base pb-0.5",v,"after:left-0 after:group-hover/accordion-trigger:w-full"),children:e.label||(null==(t=e.link)?void 0:t.label)})}),(0,l.jsx)(s.ub,{children:(0,l.jsx)("ul",{className:"flex flex-col gap-1 py-1 pl-4 w-full",children:null==(n=e.items)?void 0:n.map(e=>(0,l.jsx)("li",{className:(0,a.cn)("py-1.5",v),children:(0,l.jsx)(g,{asChild:!0,children:(0,l.jsx)(b.i,{link:e.link,className:"px-2"})})},e.id))})})]})]},e.id)})})})]},o)})})})}},12500:(e,t,n)=>{"use strict";n.d(t,{Accordion:()=>c,AccordionContent:()=>f,AccordionItem:()=>d,AccordionTrigger:()=>m});var l=n(39422),a=n(55324),s=n(61244),r=n(89834),i=n(20943),o=n(69422);let c=s.bL,d=o.forwardRef((e,t)=>
1{let{className:n,...r}=e;return(0,l.jsx)(s.q7,{ref:t,className:(0,a.cn)("border-b",n),...r})});d.displayName="AccordionItem";let u={"chevron-down":r.A,plus:i.A},m=o.forwardRef((e,t)=>{let{className:n,chevronClassName:r,icon:i="chevron-down",iconPosition:o="right",children:c,...d}=e,m=u[i],f=(0,l.jsx)(m,{className:(0,a.cn)("h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200",r)});return(0,l.jsx)(s.Y9,{className:"flex",children:(0,l.jsxs)(s.l9,{ref:t,className:(0,a.cn)("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",n),...d,children:["left"===o&&f,c,"right"===o&&f]})})});m.displayName=s.l9.displayName;let f=o.forwardRef((e,t)=>{let{className:n,children:r,...i}=e;return(0,l.jsx)(s.UC,{ref:t,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...i,children:(0,l.jsx)("div",{className:(0,a.cn)("pb-4 pt-0",n),children:r})})});f.displayName=s.UC.displayName},15357:(e,t,n)=>{"use strict";n.d(t,{AnnouncementPopup:()=>h});var l=n(39422),a=n(40396),s=n(69422),r=n(18112),i=n(6771),o=n(56575),c=n(32938);let d="announcement-popup-",u="announcement-popup-shown-";function m(e){try{let t=localStorage.getItem("".concat(d).concat(e));if(t)return JSON.parse(t)}catch(e){}return{dismissed:!1,visitCount:0}}function f(e,t){try{localStorage.setItem("".concat(d).concat(e),JSON.stringify(t))}catch(e){}}function h(e){var t;let{popups:n,center:d}=e,[h,x]=(0,s.useState)([]),[p,g]=(0,s.useState)(0),[b,v]=(0,s.useState)(!1),y=(0,a.usePathname)(),j=null!=(t=h[p])?t:null;(0,s.useEffect)(()=>{v(!1)},[y]),(0,s.useEffect)(()=>{let e=n.filter(e=>!(0,c._)(e)&&(0,o.M3)(e.deviceTarget)&&(0,o.V4)(e.pageScope,y,d)&&!m(e.id).dismissed),t=e.filter(e=>!("every_session"===e.displayFrequency&&function(e){try{return null!==sessionStorage.getItem("".concat(u).concat(e))}catch(e){return!1}}(e.id))&&(0,o.lB)(e,m(e.id).visitCount));for(let n of e)if(!t.includes(n)){let e=m(n.id);f(n.id,{...e,visitCount:e.visitCount+1})}x(t),g(0)},[n,y,d]),(0,s.useEffect)(()=>{let e=h[p];if(!e)return;let t=setTimeout(()=>{let t=m(e.id);f(e.id,{...t,visitCount:t.visitCount+1}),"every_session"===e.displayFrequency&&function(e){try{sessionStorage.setItem("".concat(u).concat(e),"1")}catch(e){}}(e.id),v(!0)},1e3*(0===p));return()=>clearTimeout(t)},[h,p]);let N=(0,s.useCallback)(()=>{v(!1),g(e=>e+1<h.length?e+1:e)},[h.length]),w=(0,s.useCallback)(()=>{if((null==j?void 0:j.displayFrequency)==="once"){let e=m(j.id);f(j.id,{...e,dismissed:!0})}},[j]),C=(0,s.useCallback)(e=>{if(e)return void v(!0);w(),N()},[w,N]),k=(0,s.useCallback)(()=>{if(!j)return;let e=m(j.id);f(j.id,{...e,dismissed:!0}),N()},[j,N]),_=(0,s.useCallback)(e=>{e.target instanceof HTMLElement&&e.target.closest("a, button:not([aria-label])")&&(w(),v(!1))},[w]);return j?(0,l.jsx)(i.Dialog,{open:b,onOpenChange:C,children:(0,l.jsxs)(i.DialogContent,{className:"max-w-[600px] gap-0",onClick:_,onOpenAutoFocus:e=>e.preventDefault(),children:[(0,l.jsxs)(i.DialogHeader,{children:[(0,l.jsx)(i.DialogTitle,{className:"text-2xl pb-4",children:j.title}),(0,l.jsx)(i.DialogDescription,{className:"sr-only",children:"Announcement"})]}),j.content&&(0,l.jsx)(r.A,{data:j.content,enableGutter:!1,className:"max-w-none [&_.my-4]:my-0"}),(0,l.jsx)("button",{onClick:k,type:"button",className:"justify-self-end text-xs text-muted-foreground transition-colors hover:text-foreground",children:"Don't show this again"})]})}):null}},32938:(e,t,n)=>{"use strict";function l(e){return!!e.endDate&&new Date(e.endDate)<new Date}n.d(t,{_:()=>l})},37581:(e,t,n)=>{"use strict";n.d(t,{AvalancheCenterProvider:()=>s});var l=n(39422);let a=(0,n(69422).createContext)({platforms:null,metadata:null}),s=e=>{let{platforms:t,metadata:n,children:s}=e;return(0,l.jsx)(a,{value:{platforms:t,metadata:n},children:s})}},51562:(e,t,n)=>{"use strict";n.d(t,{AnnouncementBannerProvider:()=>o,e:()=>c});var l=n(39422),a=n(56575),s=n(32938),r=n(69422);let i=(0,r.createContext)({activeBanners:[],deviceResolved:!1,count:0,collapsed:!0,collapse:()=>{},expand:()=>{},toggle:()=>{}});function o(e){let{banners:t,children:n}=e,[o,c]=(0,r.useState)(!0),[d,u]=(0,r.useState)(!1);(0,r.useEffect)(()=>u(!0),[]);let m=(0,r.useMemo)(()=>t.filter(e=>!(0,s._)(e)&&(!d||(0,a.M3)(e.deviceTarget))),[t,d]),f=(0,r.useCallback)(()=>c(!0),[]),h=(0,r.useCallback)(()=>c(!1),[]),x=(0,r.useCallback)(()=>c(e=>!e),[]);return(0,l.jsx)(i,{value:{activeBanners:m,deviceResolved:d,count:m.length,collapsed:o,collapse:f,expand:h,toggle:x},children:n})}let c=()=>(0,r.use)(i)},56575:(e,t,n)=>{"use strict";function l(){return window.innerWidth<1024}function a(e){return!e||"all"===e||("mobile_only"===e?l():"desktop_only"!==e||!l())}
1function s(e,t,n){return!e||"all_pages"===e||"homepage_only"!==e||"/"===t||t==="/".concat(n)}function r(e,t){var n,l;let a=null!=(n=e.displayFrequency)?n:"once";return"every_session"===a||("once"===a?0===t:"every_n_views"===a&&t%(null!=(l=e.displayInterval)?l:3)==0)}n.d(t,{M3:()=>a,V4:()=>s,lB:()=>r})},58656:(e,t,n)=>{"use strict";n.d(t,{MobileNav:()=>v});var l=n(39422),a=n(51562),s=n(98022),r=n(55324),i=n(29825),o=n(94246),c=n(84114),d=n(52299),u=n.n(d),m=n(69422),f=n(72913),h=n(5581),x=n(12500),p=n(78663);let g="relative after:content-[''] after:absolute after:left-0 after:bottom-0 after:h-[1px] after:w-0 after:bg-nav-underline after:transition-all after:duration-300 hover:after:w-full hover:text-header-foreground-highlight",b=e=>{let{label:t,navItem:n,displayMode:a,setMobileNavOpen:s,className:i}=e;if("button"===a||!n.items||0===n.items.length)return n.link?(0,l.jsx)(p.i,{link:n.link,displayMode:a,className:(0,r.cn)("button"===a?"flex items-center py-3 px-2":"flex items-center py-3 text-base px-2 hover:text-header-foreground-highlight font-medium",i),onClick:()=>s(!1)}):(0,l.jsx)("span",{className:i,children:t});let o=n.items.find(e=>e.items&&e.items.length>0);return(0,l.jsxs)(x.AccordionItem,{value:t,className:(0,r.cn)("border-0 px-2 data-[state=open]:text-header-foreground-highlight",i),children:[(0,l.jsx)(x.AccordionTrigger,{className:(0,r.cn)("py-3 capitalize text-base hover:no-underline hover:text-header-foreground-highlight font-medium"),chevronClassName:"h-6 w-6 text-inherit",children:n.link?n.link.label:t}),(0,l.jsx)(x.AccordionContent,{className:"pt-0 pb-2",children:(0,l.jsx)(x.Accordion,{type:"single",collapsible:!0,defaultValue:null==o?void 0:o.id,className:"pl-4",children:n.items.map(e=>{var t,n;if(!e.items||0===e.items.length)return e.link?(0,l.jsx)(p.i,{link:e.link,className:(0,r.cn)("flex items-center pt-3 pb-1.5 text-base"),onClick:()=>s(!1),children:(0,l.jsx)("div",{className:(0,r.cn)(g,"pb-1.5"),children:e.link.label})},e.id):null;let a=e.label||(null==(t=e.link)?void 0:t.label);if(a)return(0,l.jsxs)(x.AccordionItem,{value:e.id,className:"border-0",children:[(0,l.jsx)(x.AccordionTrigger,{className:"py-2 text-base font-normal hover:no-underline -mb-1.5",chevronClassName:"h-6 w-6 text-inherit",children:(0,l.jsx)("div",{className:(0,r.cn)(g,"pb-1.5"),children:a})}),(0,l.jsx)(x.AccordionContent,{className:"py-0 w-full",children:(0,l.jsx)("div",{className:"pl-4",children:null==(n=e.items)?void 0:n.map(e=>e.link?(0,l.jsx)(p.i,{link:e.link,className:(0,r.cn)("flex items-center pt-3 pb-1.5 text-base"),onClick:()=>s(!1),children:(0,l.jsx)("div",{className:(0,r.cn)(g,"pb-1.5"),children:e.link.label})},e.id):null)})})]},e.id)})})})]})},v=e=>{let{topLevelNavItems:t,banner:n,usfsLogo:d}=e,[p,g]=(0,m.useState)(!1),[v,y]=(0,m.useState)(64),j=(0,m.useRef)(null),{count:N,collapsed:w,toggle:C}=(0,a.e)();return(0,m.useEffect)(()=>{let e=()=>{j.current&&y(j.current.getBoundingClientRect().bottom)};if(e(),!p)return;let t=requestAnimationFrame(function n(){e(),t=requestAnimationFrame(n)});return()=>cancelAnimationFrame(t)},[p]),(0,m.useEffect)(function(){if(p)return document.body.style.overflow="hidden",()=>{document.body.style.overflow="unset"}},[p]),(0,l.jsxs)(i.lG,{open:p,onOpenChange:g,modal:!1,children:[(0,l.jsx)("div",{ref:j,className:"lg:hidden py-1.5 bg-header shadow-sm",children:(0,l.jsxs)("div",{className:"container grid grid-cols-[1fr_auto_1fr] items-center gap-5",children:[(0,l.jsxs)(i.zM,{className:"col-start-1 justify-self-start p-2",children:[(0,l.jsxs)("div",{className:"flex w-6 h-6 flex-col items-center justify-center space-y-[5px] overflow-hidden outline-none",children:[(0,l.jsx)("span",{className:"bg-header-foreground h-[2px] w-full rounded transition-all duration-300 ease-in-out ".concat(p?"translate-x-full":"")}),(0,l.jsx)("span",{className:"bg-header-foreground h-[2px] w-full rounded transition-all duration-300 ease-in-out ".concat(p?"mx-auto rotate-45":"")}),(0,l.jsx)("span",{className:"bg-header-foreground h-[2px] w-full  rounded transition-all duration-300 ease-in-out ".concat(p?"mx-auto -translate-y-[7px] -rotate-45":"")})]}),(0,l.jsx)("span",{className:"sr-only",children:"Toggle menu"})]}),n&&(0,l.jsxs)(u(),{href:"/",className:"col-start-2 justify-self-center w-fit flex gap-4",children:[(0,l.jsx)(h.ImageMedia,{resource:n,loading:"eager",priority:!0,imgClassName:"h-[36px] object-contain w-fit",sizes:(0,s.z)(n,36
1)}),d&&(0,l.jsx)(h.ImageMedia,{resource:d,loading:"eager",priority:!0,imgClassName:"h-[36px] object-contain w-fit",sizes:(0,s.z)(d,36)})]}),N>0&&(0,l.jsxs)("button",{onClick:C,className:(0,r.cn)("col-start-3 justify-self-end relative rounded-md p-2 text-header-foreground transition-colors",!w&&"bg-header-foreground/20"),"aria-label":"".concat(w?"Expand":"Collapse"," ").concat(N," ").concat(1===N?"announcement":"announcements"),"aria-expanded":!w,children:[w?(0,l.jsx)(o.A,{className:"h-5 w-5"}):(0,l.jsx)(c.A,{className:"h-5 w-5"}),(0,l.jsx)("span",{className:"absolute -right-0.5 -top-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-callout px-1 text-[10px] font-bold text-callout-foreground",children:N})]})]})}),(0,l.jsxs)(i.ZJ,{children:[(0,l.jsx)("div",{className:(0,r.cn)("lg:hidden fixed inset-0",p&&"pointer-events-none"),onClick:()=>g(!1)}),(0,l.jsxs)(i.Cf,{className:"lg:hidden overflow-y-auto fixed z-40 bg-header text-header-foreground pb-2 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 inset-x-0 border-b border-b-header-foreground-highlight data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",style:{top:"".concat(v,"px"),maxHeight:"calc(100dvh - ".concat(v,"px)")},children:[(0,l.jsx)(i.L3,{className:"sr-only",children:"menu"}),(0,l.jsx)(i.rr,{className:"sr-only",children:"navigation menu"}),(0,l.jsx)(x.Accordion,{type:"single",collapsible:!0,asChild:!0,children:(0,l.jsx)("nav",{className:"divide-y divide-header-foreground
1/20 px-2 sm:container",children:t.map((e,t)=>{var n,a;let s=null!=(a=e.label)?a:null==(n=e.link)?void 0:n.label;return(0,f.A)(s,"Missing a label for top level nav item ".concat(t)),(0,l.jsx)(b,{label:s,navItem:{id:s,link:e.link,items:e.items},displayMode:e.displayMode,setMobileNavOpen:g},s)})})})]})]})]})}},64923:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,52299,23)),Promise.resolve().then(n.t.bind(n,76817,23)),Promise.resolve().then(n.bind(n,84034)),Promise.resolve().then(n.bind(n,83850)),Promise.resolve().then(n.bind(n,86193)),Promise.resolve().then(n.bind(n,82761)),Promise.resolve().then(n.bind(n,15357)),Promise.resolve().then(n.bind(n,10289)),Promise.resolve().then(n.bind(n,58656)),Promise.resolve().then(n.bind(n,5581)),Promise.resolve().then(n.bind(n,86756)),Promise.resolve().then(n.bind(n,51562)),Promise.resolve().then(n.bind(n,37581)),Promise.resolve().then(n.bind(n,57562)),Promise.resolve().then(n.bind(n,92581))},76817:()=>{},78663:(e,t,n)=>{"use strict";n.d(t,{i:()=>d});var l=n(39422),a=n(55324),s=n(12335),r=n(9370),i=n(52299),o=n.n(i),c=n(4399);let d=e=>{let{link:t,className:n="",displayMode:i,onClick:d,children:u}=e,{captureWithTenant:m}=(0,s.s)();if(!t)return null;let f=e=>{m("navigation_click",{menu_item:t.label,destination:t.url}),d&&d(e)},h="button"===i?(0,l.jsx)(c.$,{variant:"callout",children:u||t.label}):u||t.label;return"external"===t.type?(0,l.jsxs)(o(),{href:t.url,target:t.newTab?"_blank":void 0,className:(0,a.cn)(t.newTab&&"flex items-center",n),onClick:f,children:[h,t.newTab&&(0,l.jsx)(r.A,{className:"w-4 h-4 flex-shrink-0 ml-2 -mt-1.5 lg:-mt-0.5 text-callout"})]}):"internal"===t.type?(0,l.jsx)(o(),{href:t.url,className:n,onClick:f,children:h}):void 0}},82761:(e,t,n)=>{"use strict";n.d(t,{AnnouncementBanners:()=>u});var l=n(39422),a=n(51562),s=n(89655),r=n(89834),i=n(69422),o=n(18112);let c="announcement-banners";function d(e){let{banners:t,collapsed:n,onCollapse:a}=e,r=(0,i.useRef)(null),[c,d]=(0,i.useState)(0);(0,i.useEffect)(()=>{if(!r.current)return;let e=new ResizeObserver(e=>{for(let t of e)d(t.contentRect.height)});return e.observe(r.current),()=>e.disconnect()},[t.length]);let u=(0,i.useCallback)(e=>{e.target instanceof HTMLElement&&e.target.closest('a, button:not([aria-label="Collapse announcements"])')&&a()},[a]);return(0,l.jsx)("div",{className:"max-h-[35dvh] overflow-x-hidden overflow-y-auto transition-[height] duration-300 ease-in-out lg:max-h-none lg:overflow-y-hidden",style:{height:n?0:c},children:(0,l.jsxs)("div",{ref:r,className:"relative bg-callout",onClick:u,children:[t.map((e,t)=>(0,l.jsxs)(i.Fragment,{children:[t>0&&(0,l.jsx)("hr",{className:"container mx-auto border-callout-foreground
1/25"}),(0,l.jsx)("div",{className:"bg-callout px-4 py-3 text-callout-foreground",children:(0,l.jsxs)("div",{className:"container mx-auto",children:[(0,l.jsx)("h3",{className:"mb-1 pr-24 font-semibold",children:e.title}),e.content&&(0,l.jsx)(o.A,{data:e.content,enableGutter:!1,className:"prose-sm max-w-none [&_p]:mb-2 [&_p_a]:text-callout-foreground [&_p_a]:underline [&_p_a]:decoration-callout-foreground/50 hover:[&_p_a]:decoration-callout-foreground [&_.my-4]:mt-0 [&_.my-4]:mb-4 [&_.my-4:last-child]:mb-1 [&_.my-4_a]:h-9 [&_.my-4_a]:px-3"})]})})]},e.id)),(0,l.jsxs)("button",{onClick:a,className:"absolute right-0 top-0 flex items-center gap-1.5 px-4 py-1.5 text-sm text-callout-foreground transition-colors hover:bg-callout-foreground/10","aria-label":"Collapse announcements",children:["Collapse",(0,l.jsx)(s.A,{className:"h-5 w-5"})]})]})})}function u(){let{activeBanners:e,deviceResolved:t,collapsed:n,collapse:s,expand:o}=(0,a.e)();!function(e){let{activeBanners:t,deviceResolved:n,collapsed:l,collapse:a,expand:s}=e,[r,o]=(0,i.useState)([]),d=(0,i.useRef)(!1);(0,i.useEffect)(()=>{var e;if(!n||0===t.length)return;let l=t.map(e=>e.id);!(e=function(){try{let e=localStorage.getItem(c);if(e)return JSON.parse(e)}catch(e){}return{collapsed:!1,seenIds:[]}}()).collapsed||l.some(t=>!e.seenIds.includes(t))?s():a(),o(l),d.current=!0},[n]),(0,i.useEffect)(()=>{if(d.current)try{localStorage.setItem(c,JSON.stringify({collapsed:l,seenIds:r}))}catch(e){}},[l,r])}({activeBanners:e,deviceResolved:t,collapsed:n,collapse:s,expand:o});let u=(0,i.useCallback)(()=>{o(),function(){if(0===window.scrollY)return;let e=window.matchMedia("(prefers-reduced-motion: reduce)").matches;window.scrollTo({top:0,behavior:e?"auto":"smooth"})}()},[o]);return 0===e.length?null:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d,{banners:e,collapsed:n,onCollapse:s}),n&&(0,l.jsxs)("button",{onClick:u,className:"hidden lg:flex fixed right-0 top-0 z-40 items-center gap-1.5 rounded-bl-md bg-callout px-4 py-1.5 text-sm font-medium text-callout-foreground shadow-md transition-colors hover:bg-callout/90",children:[e.length," ",1===e.length?"Announcement":"Announcements",(0,l.jsx)(r.A,{className:"h-5 w-5"})]})]})}},84034:(e,t,n)=>{"use strict";n.d(t,{default:()=>a});var l=n(69422);function a(e){let{theme:t}=e;return(0,l.useEffect)(()=>{let e=document.documentElement;e.classList.contains(t)||e.classList.add(t)},[t]),null}},86756:(e,t,n)=>{"use strict";n.d(t,{PostHogTenantRegister:()=>r});var l=n(92581),a=n(27334),s=n(69422);function r(){let{tenant:e}=(0,l.K)();return(0,s.useEffect)(()=>{(null==e?void 0:e.slug)&&a.Ay.register({tenant:e.slug})},[null==e?void 0:e.slug]),null}}},e=>{e.O(0,[6376,2968,2138,2299,3036,2689,5478,6410,738,6840,254,684,624,4153,2186,8746,8503,8112,8391,2994,7762,7358],()=>e(e.s=64923)),_N_E=e.O()}]);

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.