1import{w as e}from"./BaBhFZm2.js";import{t}from"./oQPVSlJP.js";import{t as n}from"./C1a0ecns.js";var r=()=>{let n=t();return e(()=>n.getCurrentSport?.id?.toString()??`0`)},i=()=>{let n=t(),r=e(()=>n.getCurrentSport),i=e(()=>n.getSports);return e(()=>{if(!r.value||!i.value?.length)return!1;let e=i.value?.find(e=>(e.shortname?.toLowerCase()??``)===``||(e.shortname?.toLowerCase()??``)===`gen`||(e.shortname?.toLowerCase()??``)===`general`)??null;return e?e.id===r.value.id:!1})},a=()=>{let n=t();return e(()=>n.getCurrentSport)},o=async({route:e,fetch:r})=>{let i=t(),a=n(),o=i.getSports;o.length||(await i.fetchSports({fetch:r}),o=i.getSports);let s=o.find(t=>{let n=e.params.sportSlug;return e.params.slug&&(n=e.params.slug),e.params.globalSportNameSlug&&(n=e.params.globalSportNameSlug),t.global_sport_name_slug?.length&&n===t.global_sport_name_slug?!0:t.shortname?.length?n===t.shortname:!1});i.setCurrentSport(s),s&&a.setMetaTokens([{token:`@sport`,value:s.title??``}])};export{r as i,o as n,a as r,i as 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.