1import{o as y}from"./rolldown-runtime-b_fG2Gut.js";import{a as S,i as w,r as x}from"./vendor-react-gjV-ggfK.js";import{V as C}from"./vendor-misc-BgrWKciP.js";import{k as b}from"./token-CYxd1kQL.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[new t.Error().stack]=(function(i){for(var l=1;l<arguments.length;l++){var u=arguments[l];if(u!=null)for(var s in u)u.hasOwnProperty(s)&&(i[s]=u[s])}return i})({},t._sentryModuleMetadata[new t.Error().stack],{"_sentryBundlerPluginAppKey:pixai-web-app-key":!0});var a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="79a67f0a-85ee-4549-a720-58c603d48b55",t._sentryDebugIdIdentifier="sentry-dbid-79a67f0a-85ee-4549-a720-58c603d48b55")}catch{}})();var n=y(S(),1),I=y(x(),1),v=w(),_=(0,n.createContext)(void 0);function P({children:t}){const[a,i]=(0,n.useState)({}),l=(0,n.useCallback)((r,e)=>{i(o=>o[r]?.includes(e)?o:{...o,[r]:(o[r]??[]).concat(e)})},[]),u=(0,n.useCallback)((r,e)=>{i(o=>{if(o[r]?.includes(e)){const f=o[r].filter(p=>p!==e);return{...o,[r]:f.length?f:void 0}}else return o})},[]),[s,c]=(0,n.useState)({}),d=(0,n.useCallback)((r,e)=>{c(o=>o[r]!==e?{...o,[r]:e}:o)},[]);return(0,v.jsx)(_.Provider,{value:{slots:a,register:l,unregister:u,contents:s,setContent:d},children:t})}function j({name:t,forceMount:a,children:i,...l}){const{slots:u,register:s,unregister:c,contents:d}=(0,n.useContext)(_)??b("Slot must be used within a SlotProvider"),r=(0,n.useId)(),[e,o]=(0,n.useState)(null),f=!!d[t],p=a||i||f,g=f&&e!=null&&!!u[t]?.includes(e);return(0,n.useEffect)(()=>(e&&p&&s(t,e),()=>{e&&c(t,e)}),[e,t,p,s,c]),p&&(0,v.jsx)("div",{ref:o,...l,"data-slot-id":r,children:!g&&i})}function m({name:t,children:a}){const{slots:i,contents:l,setContent:u}=(0,n.useContext)(_)??b("UseSlot must be used within a SlotProvider"),s=(0,n.useId)(),c=i[t],d=l[t];return(0,n.useEffect)(()=>((!d||d===s)&&u(t,a?s:void 0),()=>{d===s&&u(t,void 0)}),[a,s,d,t,u]),c&&a&&l[t]===s&&c.map((r,e)=>(0,v.jsx)(C,{fallback:null,children:(0,I.createPortal)(a,r)},`${t}:${r.dataset.slotId||e}`))}export{P as n,m as r,j 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.