import{F as e,I as t,M as n,N as r}from"./record-DW-UYlLY.js";function i(e){return new Response(`Bad Request`,{status:400,headers:e?.headers})}function a(e){return new Response(`This page could not be found`,{status:404,headers:e?.headers})}function o(){return new Response(`Not Found`,{status:404,headers:{"Content-Type":`text/plain; charset=utf-8`}})}function s(e,t){let n=new Headers(t?.headers);return n.set(`Allow`,e),new Response(`Method Not Allowed`,{status:405,headers:n})}var c=Symbol.for(`vinext.rootParams.fallback`),l=globalThis,u=t(`vinext.rootParams.als`),d=t(`vinext.rootParams.usage.als`),f=l[c]??={rootParams:null};function p(){return r()?n():u.getStore()??f}function m(e,t){let n={};for(let r of t??[])n[r]=e[r];return n}function h(e){p().rootParams=e}function g(e,t,n){let r={...e,phase:`active`};return n&&(n.transitionToRender=()=>{e.kind===`server-action`&&(r.phase=`render`)}),d.run(r,t)}function _(t,n){return r()?e(e=>{e.rootParams=t},n):u.run({rootParams:t},n)}export{i as a,o as c,h as i,_ as n,s as o,g as r,a as s,m as t};