1import{P as d}from"./BA1mfeB7.js";import{p as r}from"./B5p9aadf.js";var c="@vercel/speed-insights",o="1.3.1",u=()=>{window.si||(window.si=function(...n){(window.siq=window.siq||[]).push(n)})};function f(){return typeof window<"u"}function l(){try{const e="production"}catch{}return"production"}function a(){return l()==="development"}function h(e){return e.scriptSrc?e.scriptSrc:a()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js"}function v(e={}){var n;if(!f()||e.route===null)return null;u();const i=h(e);if(document.head.querySelector(`script[src*="${i}"]`))return null;e.beforeSend&&((n=window.si)==null||n.call(window,"beforeSend",e.beforeSend));const t=document.createElement("script");return t.src=i,t.defer=!0,t.dataset.sdkn=c+(e.framework?`/${e.framework}`:""),t.dataset.sdkv=o,e.sampleRate&&(t.dataset.sampleRate=e.sampleRate.toString()),e.route&&(t.dataset.route=e.route),e.endpoint?t.dataset.endpoint=e.endpoint:e.basePath&&(t.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(t.dataset.dsn=e.dsn),a()&&e.debug===!1&&(t.dataset.debug="false"),t.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${i}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(t),{setRoute:s=>{t.dataset.route=s??void 0}}}function m(){try{return}catch{}}function b(e={}){var n;{const i=v({route:(n=d(r).route)==null?void 0:n.id,...e,framework:"sveltekit",basePath:m()});i&&r.subscribe(t=>{var s;(s=t.route)!=null&&s.id&&i.setRoute(t.route.id)})}}export{b as injectSpeedInsights};
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.