1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,50380,e=>{e.v("/_next/static/media/arrow.9379ada8.svg")},93149,e=>{e.v("/_next/static/media/crosshair.6384d8b6.svg")},75026,e=>{e.v("/_next/static/media/a.43f5cc02.svg")},73224,e=>{e.v("/_next/static/media/b.30294351.svg")},27578,e=>{e.v("/_next/static/media/simpleradar.08cbcd3c.svg")},65705,e=>{"use strict";let t;var r=e.i(35795),s=e.i(93284),n=e.i(32868),i=e.i(81693),a=e.i(65830),l=e.i(15046),o=e.i(13478),u=class extends i.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,a.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#s=void 0;#n=void 0;#i=void 0;#a;#l;#r;#t;#o;#u;#c;#d;#h;#p;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#s.addObserver(this),c(this.#s,this.options)?this.#m():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#s,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#v(),this.#s.removeObserver(this)}setOptions(e){let t=this.options,r=this.#s;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,l.resolveEnabled)(this.options.enabled,this.#s))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#g(),this.#s.setOptions(this.options),t._defaulted&&!(0,l.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let s=this.hasListeners();s&&h(this.#s,r,this.options,t)&&this.#m(),this.updateResult(),s&&(this.#s!==r||(0,l.resolveEnabled)(this.options.enabled,this.#s)!==(0,l.resolveEnabled)(t.enabled,this.#s)||(0,l.resolveStaleTime)(this.options.staleTime,this.#s)!==(0,l.resolveStaleTime)(t.staleTime,this.#s))&&this.#S();let n=this.#w();s&&(this.#s!==r||(0,l.resolveEnabled)(this.options.enabled,this.#s)!==(0,l.resolveEnabled)(t.enabled,this.#s)||n!==this.#p)&&this.#x(n)}getOptimisticResult(e){var t,r;let s=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(s,e);return t=this,r=n,(0,l.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#i=n,this.#l=this.options,this.#a=this.#s.state),n}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#f.add(e)}getCurrentQuery(){return this.#s}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#m(e){this.#g();let t=this.#s.fetch(this.options,e);return e?.throwOnError||(t=t.catch(l.noop)),t}#S(){this.#y();let e=(0,l.resolveStaleTime)(this.options.staleTime,this.#s);if(l.isServer||this.#i.isStale||!(0,l.isValidTimeout)(e))return;let t=(0,l.timeUntilStale)(this.#i.dataUpdatedAt,e);this.#d=o.timeoutManager.setTimeout(()=>{this.#i.isStale||this.updateResult()},t+1)}#w(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#x(e){this.#v(),this.#p=e,!l.isServer&&!1!==(0,l.resolveEnabled)(this.options.enabled,this.#s)&&(0,l.isValidTimeout)(this.#p)&&0!==this.#p&&(this.#h=o.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||r.focusManager.isFocused())&&this.#m()},this.#p))}#b(){this.#S(),this.#x(this.#w())}#y(){this.#d&&(o.timeoutManager.clearTimeout(this.#d),this.#d=void 0)}#v(){this.#h&&(o.timeoutManager.clearInterval(this.#h),this.#h=void 0)}createResult(e,t){let r,s=this.#s,i=this.options,o=this.#i,u=this.#a,d=this.#l,f=e!==s?e.state:this.#n,{state:m}=e,b={...m},y=!1;if(t._optimisticResults){let r=this.hasListeners(),a=!r&&c(e,t),l=r&&h(e,s,t,i);(a||l)&&(b={...b,...(0,n.fetchState)(m.data,e.options)}),"isRestoring"===t._optimisticResults&&(b.fetchStatus="idle")}let{error:v,errorUpdatedAt:g,status:S}=b;r=b.data;let w=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===S){let e;o?.isPlaceholderData&&t.placeholderData===d?.placeholderData?(e=
1o.data,w=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#c?.state.data,this.#c):t.placeholderData,void 0!==e&&(S="success",r=(0,l.replaceData)(o?.data,e,t),y=!0)}if(t.select&&void 0!==r&&!w)if(o&&r===u?.data&&t.select===this.#o)r=this.#u;else try{this.#o=t.select,r=t.select(r),r=(0,l.replaceData)(o?.data,r,t),this.#u=r,this.#t=null}catch(e){this.#t=e}this.#t&&(v=this.#t,r=this.#u,g=Date.now(),S="error");let x="fetching"===b.fetchStatus,R="pending"===S,E="error"===S,C=R&&x,j=void 0!==r,_={status:S,fetchStatus:b.fetchStatus,isPending:R,isSuccess:"success"===S,isError:E,isInitialLoading:C,isLoading:C,data:r,dataUpdatedAt:b.dataUpdatedAt,error:v,errorUpdatedAt:g,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>f.dataUpdateCount||b.errorUpdateCount>f.errorUpdateCount,isFetching:x,isRefetching:x&&!R,isLoadingError:E&&!j,isPaused:"paused"===b.fetchStatus,isPlaceholderData:y,isRefetchError:E&&j,isStale:p(e,t),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,l.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===_.status?e.reject(_.error):void 0!==_.data&&e.resolve(_.data)},r=()=>{t(this.#r=_.promise=(0,a.pendingThenable)())},n=this.#r;switch(n.status){case"pending":e.queryHash===s.queryHash&&t(n);break;case"fulfilled":("error"===_.status||_.data!==n.value)&&r();break;case"rejected":("error"!==_.status||_.error!==n.reason)&&r()}}return _}updateResult(){let e=this.#i,t=this.createResult(this.#s,this.options);if(this.#a=this.#s.state,this.#l=this.options,void 0!==this.#a.data&&(this.#c=this.#s),(0,l.shallowEqualObjects)(t,e))return;this.#i=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#f.size)return!0;let s=new Set(r??this.#f);return this.options.throwOnError&&s.add("error"),Object.keys(this.#i).some(t=>this.#i[t]!==e[t]&&s.has(t))};this.#R({listeners:r()})}#g(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#s)return;let t=this.#s;this.#s=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#R(e){s.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#i)}),this.#e.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function c(e,t){return!1!==(0,l.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,r){if(!1!==(0,l.resolveEnabled)(t.enabled,e)&&"static"!==(0,l.resolveStaleTime)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&p(e,t)}return!1}function h(e,t,r,s){return(e!==t||!1===(0,l.resolveEnabled)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&p(e,r)}function p(e,t){return!1!==(0,l.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,l.resolveStaleTime)(t.staleTime,e))}e.i(4828);var f=e.i(75522),m=e.i(25359);e.i(87012);var b=f.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),y=f.createContext(!1);y.Provider;var v=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function g(e,t){return function(e,t,r){let n=f.useContext(y),i=f.useContext(b),a=(0,m.useQueryClient)(r),o=a.defaultQueryOptions(e);if(a.getDefaultOptions().queries?._experimental_beforeQuery?.(o),o._optimisticResults=n?"isRestoring":"optimistic",o.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=o.staleTime;o.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof o.gcTime&&(o.gcTime=Math.max(o.gcTime,1e3))}(o.suspense||o.throwOnError||o.experimental_prefetchInRender)&&!i.isReset()&&(o.retryOnMount=!1),f.useEffect(()=>{i.clearReset()},[i]);let u=!a.getQueryCache().get(o.queryHash),[c]=f.useState(()=>new t(a,o)),d=c.getOptimisticResult(o),h=!n&&!1!==e.subscribed;if(f.useSyncExternalStore(f.useCallback(e=>{let t=h?c.subscribe(s.notifyManager.batchCalls(e)):l.noop;return c.updateResult(),t},[c,h]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),f.useEffect(()=>{c.setOptions(o)},[o,c]),o?.suspense&&d.isPending)throw v(o,c,i);if((({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(n&&void 0===e.data||(0,l.shouldThrowError)(r,[e.error,s])))({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:a.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw d.error;if(a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!l.isServer&&d.isLoading&&d.isFetching&&!n){let e=u?v(o,c,i):a.getQueryCache().get(o.queryHash)?.promise;e?.catch(l.noop).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?d:c.trackResult(d)}(e,u,t)}e.s(["useQuery",()=>g],65705)},58127,e=>{"use strict";var t=e.i(87012),r=e.i(4460),s=e.i(92606),n=e.i(75522),i=e.i(7284),a=e.i(22957),l=e.i(62396);function o(){return(0,t.jsx)(r.Tooltip,{id:"nade-video",className:"!z-50 !p-1.5 !duration-200",delayShow:83,delayHide:50,middlewares:[(0,a.offset)(10),(0,a.flip)({fallbackAxisSideDirection:"start",crossAxis:!1}),(0,a.shift)({padding:16})],render:({content:e})=>
1{if(!e)return;let{assets:r,technique:n,movement:i,precision:a,video:l}=JSON.parse(e);if(!l&&!r)return;let o=[n&&(0,s.findTechniqueByEnum)(n).name,i&&(0,s.findMovementByEnum)(i).name].filter(Boolean).join(" / "),c=a&&(0,s.findPrecisionByEnum)(a).name;return e&&(0,t.jsxs)("div",{className:"w-[384px] max-w-[calc(95vw-(16px*2))]",children:[(0,t.jsxs)("div",{className:"mb-1.5 flex flex-wrap justify-between",children:[(0,t.jsx)("p",{className:"text-sm",children:"Click for full video"}),r&&(0,t.jsx)("p",{className:"text-sm",children:"Hold Shift to see lineup"})]}),(0,t.jsxs)("div",{className:"relative h-0 w-full overflow-hidden bg-neutral-700 pb-[56.25%]",children:[r&&(0,t.jsx)(u,{assets:r}),l&&"ComponentVideosYouTube"===l.__typename&&(0,t.jsx)("iframe",{className:"absolute inset-0 h-full w-full outline-hidden",allow:"autoplay; encrypted-media",src:`https://www.youtube.com/embed/${l.youtubeId}?autoplay=1&controls=0&disablekb=1&fs=0&iv_load_policy=0&playsinline=1&&loop=1&mute=1&origin=https://csnades.gg${l.start?`&start=${l.start}`:""}${l.end?`&end=${l.end}`:""}`})]}),(o||c)&&(0,t.jsxs)("div",{className:"mt-1.5 flex flex-wrap justify-between",children:[(0,t.jsx)("p",{className:"text-sm",children:o}),(0,t.jsx)("p",{className:"text-sm",children:c})]})]})}})}function u({assets:e}){let[r,s]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{function e(e){"Shift"===e.key&&s(!0)}function t(e){"Shift"===e.key&&s(!1)}return window.addEventListener("keydown",e),window.addEventListener("keyup",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("keyup",t)}},[]),r)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("img",{src:e.lineup,className:"absolute inset-0 h-full w-full scale-[5] text-[0]",alt:"Lineup"}),(0,t.jsx)("img",{src:l.default.src,className:(0,i.default)("rendering-crisp-edges absolute max-h-none max-w-none text-[0] duration-300 ease-in-out","top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2","h-[30%] w-[30%]"),alt:"Crosshair image","aria-hidden":!0})]}):(0,t.jsxs)("video",{muted:!0,autoPlay:!0,loop:!0,disableRemotePlayback:!0,playsInline:!0,onPlay:e=>{e.currentTarget.playbackRate=2},className:"absolute inset-0",children:[(0,t.jsx)("source",{src:e.videoThumbnail.webm,type:"video/webm"}),(0,t.jsx)("source",{src:e.videoThumbnail.mp4,type:"video/mp4"})]},e.id)}e.s(["default",()=>o])},37105,e=>{"use strict";var t=e.i(87012),r=e.i(54872),s=e.i(50996),n=e.i(9319),i=e.i(7284),a=e.i(10272),l=e.i(77290);let o=(0,r.atom)("dark");o.onMount=e=>{e("light"===localStorage.getItem("theme")?"light":"dark")};let u=(0,r.atom)(e=>e(o),(e,t,r)=>{t(o,r),"light"===r?(localStorage.setItem("theme","light"),document.documentElement.classList.remove("dark")):(localStorage.removeItem("theme"),document.documentElement.classList.add("dark"))});function c({children:e,dark:r,light:n,label:i,...a}){let[l,o]=(0,s.useAtom)(u);return(0,t.jsx)("button",{...a,onClick:()=>{o("light"===l?"dark":"light")},"aria-label":i,children:e??("dark"===l?r:n)})}function d(){let[e,r]=(0,s.useAtom)(u);return(0,t.jsx)(a.SidebarListItem,{onClick:()=>{r("light"===e?"dark":"light")},left:"dark"===e?(0,t.jsx)(n.FaSun,{className:(0,i.default)(l.leftIconClassName,"p-1"),"aria-hidden":!0}):(0,t.jsx)(n.FaMoon,{className:(0,i.default)(l.leftIconClassName,"p-1"),"aria-hidden":!0}),children:"Change theme"})}e.s(["SidebarChangeThemeButton",()=>d,"default",()=>c,"themeAtom",0,u])},82495,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return n}});let s=e.r(6245);function n({reason:e,children:t}){if("undefined"==typeof window)throw Object.defineProperty(new s.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},39732,(e,t,r)=>{"use strict";function s(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return s}})},57765,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return l}});let s=e.r(87012),n=e.r(36619),i=e.r(96455),a=e.r(39732);function l({moduleIds:e}){if("undefined"!=typeof window)return null;let t=i.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let s=t.reactLoadableManifest;for(let t of e){if(!s[t])continue;let e=s[t].files;
1r.push(...e)}}return 0===r.length?null:(0,s.jsx)(s.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,a.encodeURIPath)(e)}`;return e.endsWith(".css")?(0,s.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,n.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},15026,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return u}});let s=e.r(87012),n=e.r(75522),i=e.r(82495),a=e.r(57765);function l(e){return{default:e&&"default"in e?e.default:e}}let o={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},u=function(e){let t={...o,...e},r=(0,n.lazy)(()=>t.loader().then(l)),u=t.loading;function c(e){let l=u?(0,s.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,c=o?n.Suspense:n.Fragment,d=t.ssr?(0,s.jsxs)(s.Fragment,{children:["undefined"==typeof window?(0,s.jsx)(a.PreloadChunks,{moduleIds:t.modules}):null,(0,s.jsx)(r,{...e})]}):(0,s.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,s.jsx)(r,{...e})});return(0,s.jsx)(c,{...o?{fallback:l}:{},children:d})}return c.displayName="LoadableComponent",c}},73713,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return n}});let s=e.r(81258)._(e.r(15026));function n(e,t){let r={};"function"==typeof e&&(r.loader=e);let n={...r,...t};return(0,s.default)({...n,modules:n.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},92994,e=>{"use strict";var t=e.i(87012),r=e.i(7284),s=e.i(9319),n=e.i(50996),i=e.i(73713),a=e.i(10272),l=e.i(77290),o=e.i(23503);let u=(0,i.default)(()=>e.A(56540),{loadableGenerated:{modules:[12003]},ssr:!1});function c(){let e=(0,n.useSetAtom)(o.searchShowingAtom);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u,{}),(0,t.jsx)(a.SidebarListItem,{onClick:()=>{e(!0)},left:(0,t.jsx)(s.FaSearch,{className:(0,r.default)(l.leftIconClassName,"p-1"),"aria-hidden":!0}),children:"Search nades or maps"})]})}function d(){let e=(0,n.useSetAtom)(o.searchShowingAtom);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u,{}),(0,t.jsx)("button",{onClick:()=>{e(!0)},className:"icon-button-header","aria-label":"Search",children:(0,t.jsx)(s.FaSearch,{"aria-hidden":!0})})]})}e.s(["HeaderSearchButton",()=>d,"SidebarSearchButton",()=>c])},38601,e=>{"use strict";var t=e.i(87012),r=e.i(75522),s=e.i(25147),n=e.i(325);function i(){let e=(0,r.useContext)(n.AdsContext);return((0,r.useLayoutEffect)(()=>{if(e.mode===s.Enum_Ad_Mode.Nitro)if(!window.nitroAds?.loaded)return document.addEventListener("nitroAds.loaded",t),()=>{document.removeEventListener("nitroAds.loaded",t)};else t();function t(){window.__tcfapi&&setTimeout(()=>{document.querySelectorAll("[data-ncmp-link='1']").forEach(e=>{e.innerHTML="<button onclick=\"window.__npcmp('showModal');\">Update consent preferences</button>"})},1),window.__uspapi&&window.__uspapi("addLink",1)}},[e.mode]),e.mode!==s.Enum_Ad_Mode.Nitro)?null:(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{"data-ncmp-link":"1",className:"link text-brand-accent text-sm [&>button]:mt-6 [&>button]:hover:underline"}),(0,t.jsx)("span",{"data-ccpa-link":"1",className:"link text-brand-accent text-sm [&>a]:mt-6 [&>a]:block [&>a]:hover:underline"})]})}e.s(["default",()=>i])},79271,e=>{"use strict";e.s(["discordLink",0,"https://discord.gg/hZNCnka2eg","patreonLink",0,"https://patreon.com/csnades"])},80799,e=>{"use strict";var t=e.i(54872),r=e.i(50996),s=e.i(75522);let n=(0,t.atom)(!1);function i(e,t){let i=(0,r.useAtomValue)(n),a=(0,s.useCallback)(r=>{i||(Array.isArray(t)?t.some(e=>r.key===e)&&!r.ctrlKey&&!r.metaKey:t(r))&&(r.preventDefault(),e(r))},[e,Array.isArray(t)?JSON.stringify(t):t,i]);(0,s.useEffect)(()=>(document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}),[a])}e.s(["keysDisabledAtom",0,n,"useKeyDown",()=>i])},62396,e=>{"use strict";let t={src:e.i(93149).default,width:201,height:201,blurWidth:0,blurHeight:0};e.s(["default",0,t])},55296,5003,2920,e=>{"use strict";var t=Symbol.for("bunshi.molecules.type"),r=Symbol.for("bunshi.scope.type"),s=Symbol.for("bunshi.injector.instance"),n=Symbol.for("bunshi.molecules.getter"),i=Symbol.for("bunshi.molecules.molecule"),a=Symbol.for("bunshi.molecules.molecule.interface"),l=Symbol.for("bunshi.injector.defaultGlobalInjector"),o=Symbol("bunshi.debug"),u=Symbol("bunshi.scope.sort");function c(e,s){let n,i=d++;return{defaultValue:e,[t]:r,[o]:Symbol((null==s?void 0:s.debugLabel)??`bunshi.scope ${i}`),[u]:i,get defaultTuple(){if(n)return n;return n=[this,e]}}}var d=1,h=c(void 0,{debugLabel:"Component Scope"}),p=0,f="`mol` called with an object that is not a Molecule or Interface";function m(e,r){return!!e&&"object"==typeof e&&e[t]===r}var b=(e,t)=>{for(;;){let[r,...s]=t,n=e.get(r);if(!n)return;if(!s.length)return n[1];e=n[0],t=s}},y=(e,t,r)=>{for(;;){let[s,...n]=t,i=e.get(s);if(i||(i=[new WeakMap],e.set(s,i)),!n.length){i[1]=r;return}e=i[0],t=n}},v=class{_s=[];push=e=>{this._s.push(e)};pop=()=>{this._s.pop()};active=e=>{let t=this._s[this._s.length-1];if(!t)throw Error(`Cannot call \`${e}\` outside of a molecule function`);return t}},g=new v,S=new v;function w(e){g.active("onMount")(e)}function x(e){g.active("onUnmount")(()=>e)}function R(e){return S.active("use")(e)}var E=c(Symbol("bunshi.global.scope.value"),{debugLabel:"Global Scope"});function C(e={}){var l;let o,u={get:e=>b(o,e),cache:o=new WeakMap,deepCache:(e,t,r)=>{if(!r.length)throw Error("Dependencies need to exist.");let s=b(o,r);if(s)return t(s),s;let n=e();return y(o,r,n),n},upsert:(e,t)=>{if(!t.length)throw Error("Dependencies need to exist.");let r=e(b(o,t));y(o,t,r)},remove:(...e)=>{((e,t)=>
1{for(;;){let[r,...s]=t,n=e.get(r);if(!n)return;if(!s.length){n[1]=void 0;return}e=n[0],t=s}})(o,e)}},c=new WeakMap,d=(l=e.bindings)?new Map(Array.isArray(l)?l:l.entries()):new Map,h=function(e){let t=new WeakMap,r=new WeakSet,s=new WeakSet;function n(e,r){e.forEach(([e,s])=>{r.forEach(r=>{var n,i;let a=null==(i=null==(n=t.get(e))?void 0:n.get(s))?void 0:i.cleanups;if(!a)throw Error("Can't register cleanups for uncached values");a.add(r)})})}function i(){let e=new a,t=!1;return{addCleanups(e){n(this.tuples,e)},get tuples(){return e.tuples},expand:t=>e.expand(t),start(){if(t){let r;return t=!1,r=e.tuples,(e=new a).expand(r),e.start()}return e.start()},stop(){e.stop(),t=!0}}}class a{addCleanups(e){n(this.tuples,e)}__tupleMap=new Map;__stableArray=[];get tuples(){return this.__stableArray}expand(e){let r=e.map(e=>(function(e){var r;let[s,n]=e,i=null==(r=t.get(s))?void 0:r.get(n);return i?i.tuple:e})(e));return r.forEach(e=>{this.__tupleMap.set(e[0],e)}),this.__stableArray=Array.from(this.__tupleMap.values()),r}start(){var e;return e=this,this.__stableArray.map(r=>(function(e,r){var s;let[n,i]=r,a=null==(s=t.get(n))?void 0:s.get(i);return a?(a.references.add(e),a.tuple):((t.get(n)??t.set(n,new Map).get(n)).set(i,{tuple:r,references:new Set([e]),cleanups:new Set}),r)})(e,r))}stop(){var n,i,a;let l;n=new Set(this.tuples),s.has(this)||(s.add(this),n&&Array.from((i=n,a=this,l=new Set,i.forEach(([r,s])=>{let n=t.get(r),i=null==n?void 0:n.get(s),o=null==i?void 0:i.references;null==o||o.delete(a),o&&o.size<=0?(null==e||e.scopeStopWithCleanup(a,i),null==n||n.delete(s),null==i||i.cleanups.forEach(e=>{l.add(e)})):null==e||e.scopeStopWithCleanup(a,i)}),l).values()).reverse().forEach(t=>{r.has(t)||(null==e||e.scopeRunCleanup(t),t(),r.add(t))}))}}return{useScopes:function(...e){let t=i();return t.expand(e),t.start(),[t.tuples,()=>t.stop()]},registerCleanups:n,createSubscription:i}}(e.instrumentation);function v(e){let t=d.get(e);if(t)return t;if(m(e,i))return e;throw Error("Unbound molecule interface. Could not find a molecule.")}function w(t,s){var l,o,d;null==(l=e.instrumentation)||l.getInternal(t);let h=c.get(t);if(h){let r=j(s.scopes.filter(e=>h.has(e[0])),t),n=u.get(r);if(n)return n.deps.defaultScopes.forEach(e=>{s.lease(e.defaultTuple)}),null==(o=e.instrumentation)||o.stage1CacheHit(t,n),n}null==(d=e.instrumentation)||d.stage1CacheMiss();let{previous:b}=s;return!1!==b?u.deepCache(()=>b,()=>{},b.path):function(t,s){var l,o,d;let h,b=function(e,t,s,l){let o=l(e),u=new Set,c=new Set,d=new Set,h=new Set,p=[],b=e=>{if(m(e,r)){c.add(e);let r=t(e);return r.defaultScopes.forEach(e=>d.add(e)),r.value}if(m(e,i)||m(e,a)){let t=l(e);u.add(t);let r=s(t);return r.deps.allScopes.forEach(e=>c.add(e)),r.deps.defaultScopes.forEach(e=>{d.add(e)}),p.push(r),r.value}throw Error("Can only call `use` with a molecule, interface or scope")},y=e=>{if(!v)throw Error("`scope` called asynchronously in a molecule constructor. Make sure your calls are only synchronous.");if(!m(e,r))throw Error("`scope` called with an object that is not a MoleculeScope");return b(e)};g.push(e=>h.add(e)),S.push(b);let v=!0;y(E);try{let e=o[n](e=>{if(!v)throw Error("`mol` called asynchronously in a molecule constructor. Make sure your calls are only synchronous.");if(!m(e,i)&&!m(e,a))throw Error(f);return b(e)},y);return{deps:{molecules:u,allScopes:c,defaultScopes:d,mountedCallbacks:h,buddies:p.slice().reverse()},value:e}}finally{v=!1,g.pop(),S.pop()}}(t,e=>{let t=new Set,r=s.scopes.find(([t])=>t===e);return r&&r[1]!==r[0].defaultValue?{value:r[1],defaultScopes:t}:(t.add(e),{value:e.defaultValue,defaultScopes:t})},e=>w(e,s),v);null==(l=e.instrumentation)||l.executed(t,b);let y=s.scopes.filter(([e])=>b.deps.allScopes.has(e));if(c.has(t)){let e=c.get(t);if(b.deps.allScopes.size!==(null==e?void 0:e.size))throw Error("Molecule is using conditional dependencies. This is not supported.");let r=!1;if(b.deps.allScopes.forEach(t=>{e.has(t)||(r=!0)}),r)throw Error("Molecule is using conditional dependencies. This is not supported.")}else c.set(t,b.deps.allScopes);return o=()=>{var t;
1b.deps.defaultScopes.forEach(e=>{s.lease(e.defaultTuple)});let r={deps:b.deps,value:b.value,isMounted:!1};return null==(t=e.instrumentation)||t.stage2CacheMiss(r),r},d=r=>{var n;r.deps.defaultScopes.forEach(e=>{s.lease(e.defaultTuple)}),null==(n=e.instrumentation)||n.stage2CacheHit(t,r)},h=j(y,t),u.deepCache(()=>({...o(),path:h,instanceId:Symbol(`bunshi.instance ${p++}`)}),d,h)}(t,s)}function x(e,...t){let[r,s]=R(e,...t);return[s.start(),s.stop]}function R(t,...r){if(!m(t,i)&&!m(t,a))throw Error(f);let s=h.createSubscription(),n=s.expand(r),l=v(t),o=0,c=e=>{let[t]=s.expand([e]);return t},d=w(l,{scopes:n,lease:c,previous:!1});return[d.value,{start:()=>{var t;if(1===o)throw Error("Don't start a subscription that is already started.");return null==(t=null==e?void 0:e.instrumentation)||t.subscribe(l,d),!function t(r){var s;if(r.isMounted)return r;r.isMounted=!0,r.deps.buddies.forEach(t);let n=new Set;r.deps.mountedCallbacks.forEach(e=>{let t=e();t&&n.add(t)}),n.add(function(){var t;null==(t=e.instrumentation)||t.cleanup(r),u.remove(...r.path),r.isMounted=!1});let i=Array.from(r.deps.defaultScopes.values()).map(e=>e.defaultTuple);h.registerCleanups(i,n);let a=r.path.filter(e=>Array.isArray(e));return h.registerCleanups(a,n),null==(s=null==e?void 0:e.instrumentation)||s.mounted(r,a,n),r}(d=w(l,{scopes:s.start(),lease:c,previous:d})),o=1,d.value},stop:()=>{var t;if(2===o)throw Error("Don't start a subscription that is already started.");null==(t=null==e?void 0:e.instrumentation)||t.unsubscribe(l,d),s.stop(),o=2}}]}return{[t]:s,get:function(e,...t){let[r,s]=x(e,...t);return r},use:x,useLazily:R,useScopes:h.useScopes,createSubscription:h.createSubscription}}function j(e,t){return[t,...[...e.filter(e=>e[0].defaultValue!==e[1])].sort((e,t)=>{var r,s;return r=e[0],s=t[0],r[u]-s[u]})]}var _=()=>{let e=globalThis[l];if(void 0===e){let e=C();return globalThis[l]=e,e}if(m(e,s))return e;throw Error("Global namespace conflict. Default injector is not a bunshi injector.")},I=e=>{globalThis[l]=C(e)};function T(e){return{[n]:e,[t]:i}}function k(){return{[t]:a}}function M(e,t){let[r]=t,s=e.findIndex(e=>e[0]===r);return s>=0?[...e.slice(0,s),t,...e.slice(s+1)]:[...e,t]}e.s(["ComponentScope",()=>h,"createInjector",()=>C,"createScope",()=>c,"getDefaultInjector",()=>_,"molecule",()=>T,"moleculeInterface",()=>k,"onMount",()=>w,"onUnmount",()=>x,"resetDefaultInjector",()=>I,"use",()=>R],5003);var O=e.i(75522),Q=O.default.createContext([]);function P(e){return e.flatMap(e=>e)}Q.displayName="BunshiMoleculeScopeContext";var A=O.default.createContext(()=>_());function L(){return(0,O.useContext)(A)()}function D(e){let t=(0,O.useContext)(Q),r=(0,O.useMemo)(()=>Error("Do not use this scope value. It is a placeholder only."),[]),s=(0,O.useRef)([h,r]).current;return e?e.withUniqueScope?M(M(t,[e.withUniqueScope,r]),s):e.withScope?M(M(t,e.withScope),s):e.exclusiveScope?[e.exclusiveScope,s]:[...t,s]:[...t,s]}function F(e){let{value:t,scope:r,uniqueValue:s}=e,n=function(e){let t=D(e),r=L(),s=P(t),n=(0,O.useMemo)(()=>{let e=r.createSubscription();return e.expand(t),e},[r,...s]),[i,a]=(0,O.useState)(n.tuples);return(0,O.useEffect)(()=>(a(n.start()),()=>{n.stop()}),[n,a]),i}(s?{withUniqueScope:r}:{withScope:[r,t]}),i=(0,O.useMemo)(()=>n.filter(([e])=>e!==h),[n,r]);return O.default.createElement(Q.Provider,{value:i},e.children)}function N(e,t){let r=L(),s=D(t),[n,i]=(0,O.useMemo)(()=>r.useLazily(e,...s),[e,r,...P(s)]),[a,l]=(0,O.useState)(()=>n);return(0,O.useEffect)(()=>{let e=i.start();return l(()=>e),()=>{i.stop()}},[i]),a}function U(e){return c(e)}A.displayName="BunshiMoleculeInjectorContext",A.Provider,e.s(["ScopeProvider",()=>F,"useMolecule",()=>N],2920),e.s(["createScope",()=>U],55296)},46590,e=>{"use strict";var t=e.i(87012),r=e.i(54872),s=e.i(92606),n=e.i(55296),i=e.i(5003),a=e.i(2920);let l=(0,r.atom)(null),o=(0,n.createScope)(void 0),u=(0,i.molecule)((e,t)=>(t(o),(0,r.atom)(s.teams[0])));function c({children:e,mapSlug:r}){return(0,t.jsx)(a.ScopeProvider,{scope:o,value:r,children:e})}e.s(["MapPageStateProvider",()=>c,"latestMapStateAtom",0,l,"teamMolecule",0,u])},8124,e=>{"use strict";function t(e){let t={...e};
1return Object.keys(t).forEach(e=>!t[e]&&delete t[e]),t}e.s(["removeFalseyFromObject",()=>t])}]);
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.