1import{b as C}from"./chunk-CYOMB54L.js";import{a as A}from"./chunk-VFHYWK2Q.js";import{b as x}from"./chunk-KYU7VZRO.js";import{a as v}from"./chunk-RHUJMWSY.js";import{$ as R,aa as G,ba as P,ca as w,da as N}from"./chunk-FLKPQEL7.js";import{a as c,b as m}from"./chunk-KUN5WTS7.js";import"./chunk-7SY5SJP4.js";import{O as M,Z as l}from"./chunk-YNKQPWSP.js";import"./chunk-4EY2W66C.js";import"./chunk-ZR73OBID.js";import"./chunk-6R4CBI6E.js";import"./chunk-ZEH2WMTB.js";import"./chunk-3H2GI3MM.js";import{L as S,aa as p,na as a,t as s,y as h}from"./chunk-N4XFLIUN.js";import{a as f,b as g}from"./chunk-DIH54OSL.js";var L=r=>a(R).fetch({variables:{site:r.data.site}}).pipe(m(),c(),p(e=>s(e.data??null)),S(e=>(console.error("Could not resolve the section navigation",e),s(null)))),Q=(r,e)=>{let o=a(l);return a(G).fetch({variables:{site:r.data.site}}).pipe(m(),c(),p(t=>t.data?.entry?s(t.data):v(o,e.url)))},U=(r,e)=>{let o=a(l),t=a(A),i=null;try{if(i=r.queryParamMap.has("year")?x.fromFormat(r.queryParamMap.get("year"),"yyyy"):null,!i?.isValid)throw t.addError({name:"Not a valid year",message:"The parameter year is not a valid year"}),new Error("Not a valid year")}catch(u){console.error(u);let y=o.parseUrl(e.url);return y.queryParams=g(f({},y.queryParams),{errorCode:422}),o.navigateByUrl(y.toString(),{skipLocationChange:!0})}let d=i.startOf("year").toFormat("yyyy-MM-dd"),n=i.endOf("year").toFormat("yyyy-MM-dd");return a(P).fetch({variables:{site:r.data.site,isDuringDate:`${d} => ${n}`}}).pipe(m(),c(),p(u=>u.data?.entry?s(u.data):v(o,e.url)))},q=(r,e)=>{let o=a(l);return a(w).fetch({variables:{site:r.data.site}}).pipe(m(),c(),p(t=>t.data?.entry?s(t.data):v(o,e.url)))},O=async(r,e)=>{let o=r.queryParamMap.has("year"),t=a(l);if(o)return!0;{let d=((await h(a(N).fetch({variables:{site:r.data.site}}))).data?.entry).dateTimeRange?.end,n=t.parseUrl(e.url);return d?(n.queryParams=g(f({},n.queryParams),{year:d}),new M(n)):v(t,e.url)}};var I=[{path:"",resolve:{nav:L},children:[{path:"",loadComponent:()=>import("./chunk-D34CIITG.js"),resolve:{page:Q}},{path:"past",loadComponent:()=>import("./chunk-SLYNWG5M.js"),canActivate:[O],resolve:{page:U},runGuardsAndResolvers:"pathParamsOrQueryParamsChange"},{path:"upcoming",loadComponent:()=>import("./chunk-TM6FXMJU.js"),resolve:{page:q}},{path:":slug",loadComponent:()=>import("./chunk-KNFPGK7Q.js"),resolve:{page:C}}]}];export{I as default}; 2//# sourceMappingURL=chunk-R3MBDE2F.js.map
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.