1import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{n as t,t as n}from"./jsx-runtime-Ciaf_P-h.js";var r=e(t(),1),i=e(n(),1),a=()=>{throw Error("You need to wrap your application inside `FrameworkProvider`.")},o=(0,r.createContext)({useParams:a,useRouter:a,usePathname:a});function s({Link:e,useRouter:t,useParams:n,usePathname:a,Image:s,children:c}){let l=(0,r.useMemo)(()=>({usePathname:a,useRouter:t,Link:e,Image:s,useParams:n}),[e,a,t,n,s]);return(0,i.jsx)(o,{value:l,children:c})}function c(){return(0,r.use)(o).usePathname()}function l(){return(0,r.use)(o).useRouter()}function u(e){let{Image:t}=(0,r.use)(o);if(!t){let{src:t,alt:n,priority:r,...a}=e;return(0,i.jsx)(`img`,{alt:n,src:t,fetchPriority:r?`high`:`auto`,...a})}return(0,i.jsx)(t,{...e})}function d(e){let{Link:t}=(0,r.use)(o);if(!t){let{href:t,prefetch:n,...r}=e;return(0,i.jsx)(`a`,{href:t,...r})}return(0,i.jsx)(t,{...e})}var f=(0,r.createContext)({});function p({translations:e,children:t}){let n=(0,r.use)(f);return(0,i.jsx)(f,{value:(0,r.useMemo)(()=>({...n,...e}),[n,e]),children:t})}var m=/\\?\{([^}]+)\}/g;function h({note:e}={}){let t=(0,r.use)(f);return(0,r.useMemo)(()=>g(t,{note:e}),[t,e])}function g(e,{note:t}={}){let n=(n,r={})=>{let{note:i,variables:a}=r,o=[];t&&o.push(t),i&&o.push(i);let s=e[_(n,o)]??n;return a&&(s=s.replaceAll(m,(e,t)=>e[0]===`\\`?e.slice(1):t in a?a[t]:e)),s};return n.jsx=(n,r={})=>{let{note:i,variables:a,tags:o}=r,s=[];t&&s.push(t),i&&s.push(i);let c=e[_(n,s)]??n;return o?b(c,a,o):a?v(c,a):c},n.translations=e,n}function _(e,t){return e+t.map(e=>`(${e})`).join(``)}function v(e,t){let n=0,r=[];for(let i of e.matchAll(m)){let[a,o]=i;n<i.index&&r.push(e.slice(n,i.index)),n=i.index+a.length,a[0]===`\\`?r.push(a.slice(1)):o in t?r.push(C(t[o],n)):r.push(a)}return r.push(e.slice(n)),r}var y=/\\?<([^>]+)>/g;function b(e,t,n){let r=[{children:[]}],i=0,a=()=>{let e=r.pop();r[r.length-1].children.push(C(e.tag&&n[e.tag]?S(n[e.tag],e.children):e.children,i))};for(let o of e.matchAll(y)){let s=r[r.length-1],[c,l]=o;if(i<o.index){let n=e.slice(i,o.index);s.children.push(t?v(n,t):n)}if(i=o.index+c.length,c[0]===`\\`){let e=c.slice(1);s.children.push(t?v(e,t):e)}else if(l[0]===`/`){let e=l.slice(1);s.tag===e?a():s.children.push(t?v(c,t):c)}else if(l.at(-1)===`/`){let e=l.slice(0,-1);n[e]&&s.children.push(C(S(n[e]),i))}else r.push({children:[],tag:l})}if(i<e.length){let n=e.slice(i);r[r.length-1].children.push(t?v(n,t):n)}for(;r.length>1;)a();return r[0].children}function x({text:e,note:t,variables:n,tags:i}){let a=(0,r.use)(f);return(0,r.useMemo)(()=>g(a).jsx(e,{note:t,variables:n,tags:i}),[a,e,t,n,i])}function S(e,t){return(0,r.isValidElement)(e)?t===void 0?e:(0,r.cloneElement)(e,void 0,t):e(t)}function C(e,t){return(0,r.isValidElement)(e)?(0,r.cloneElement)(e,{key:t}):e}export{u as a,l as c,s as i,p as n,d as o,h as r,c as s,x 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.