1import{a as y}from"/build/_shared/chunk-Z45G6HN7.js";import{a as _}from"/build/_shared/chunk-2VNXVMCI.js";import{e as P}from"/build/_shared/chunk-XDMRC4Q6.js";var n=P(_(),1),R=P(y(),1),E=Object.defineProperty,r=(e,s)=>E(e,"name",{value:s,configurable:!0});function $(e,s){let u=n.createContext(s);u.displayName=e+"Context";let p=r(a=>{let{children:t,...o}=a,c=n.useMemo(()=>o,Object.values(o));return(0,R.jsx)(u.Provider,{value:c,children:t})},"Provider");p.displayName=e+"Provider";function i(a,t={}){let{optional:o=!1}=t,c=n.useContext(u);if(c)return c;if(s!==void 0)return s;if(!o)throw new Error(`\`${a}\` must be used within \`${e}\``)}return r(i,"useContext"),[p,i]}r($,"createContext");function w(e,s=[]){let u=[];function p(a,t){let o=n.createContext(t);o.displayName=a+"Context";let c=u.length;u=[...u,t];let f=r(x=>{let{scope:m,children:l,...d}=x,S=m?.[e]?.[c]||o,v=n.useMemo(()=>d,Object.values(d));return(0,R.jsx)(S.Provider,{value:v,children:l})},"Provider");f.displayName=a+"Provider";function C(x,m,l={}){let{optional:d=!1}=l,S=m?.[e]?.[c]||o,v=n.useContext(S);if(v)return v;if(t!==void 0)return t;if(!d)throw new Error(`\`${x}\` must be used within \`${a}\``)}return r(C,"useContext"),[f,C]}r(p,"createContext");let i=r(()=>{let a=u.map(t=>n.createContext(t));return r(function(o){let c=o?.[e]||a;return n.useMemo(()=>({[`__scope${e}`]:{...o,[e]:c}}),[o,c])},"useScope")},"createScope");return i.scopeName=e,[p,h(i,...s)]}r(w,"createContextScope");function h(...e){let s=e[0];if(e.length===1)return s;let u=r(()=>{let p=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return r(function(a){let t=p.reduce((o,{useScope:c,scopeName:f})=>{let x=c(a)[`__scope${f}`];return{...o,...x}},{});return n.useMemo(()=>({[`__scope${s.scopeName}`]:t}),[t])},"useComposedScopes")},"createScope");return u.scopeName=s.scopeName,u}r(h,"composeContextScopes");var b=P(_(),1),g=globalThis?.document?b.useLayoutEffect:()=>{};var L=!1;export{w as a,L as b,g as c};
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.