import{createContext as p}from"react";var m=p(Object.freeze({middleware:Object.freeze([])})),r=m;import l,{memo as i,useContext as s,useMemo as n}from"react";var C=Object.freeze([]);function x({children:d,middleware:e=C,priority:t}){let o=s(r),a=n(()=>Object.freeze(t==="low"?[...o.middleware,...e]:[...e,...o.middleware]),[o,e,t]),c=n(()=>({middleware:a}),[a]);return l.createElement(r.Provider,{value:c},d)}var u=i(x);export{r as a,u as b};
//# sourceMappingURL=chunk-VNGDFILB.mjs.map