(function(t,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("react/jsx-runtime"),require("@phoenix-islands/core"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@phoenix-islands/core","react","react-dom"],r):(t=typeof globalThis<"u"?globalThis:t||self,r(t["@phoenix-islands/react"]={},t["react/jsx-runtime"],t["@phoenix-islands/core"],t.React,t.ReactDOM))})(this,function(t,r,a,u,y){"use strict";var d,s=y;if(process.env.NODE_ENV==="production")d=s.createRoot,s.hydrateRoot;else{var l=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;d=function(e,n){l.usingClientEntryPoint=!0;try{return s.createRoot(e,n)}finally{l.usingClientEntryPoint=!1}}}const S=a.registerIslands("ReactIsland",d,(e,n,i)=>void e.render(r.jsx(u.StrictMode,{children:r.jsx(n,{...i,children:r.jsx("div",{className:a.CLASSES.MOUNTED_CHILDREN})})})),e=>e.unmount());function E(e,n,i){let c=new Set([...n,void 0]);return e.listen((o,f)=>{c.has(f)&&i(o,f)})}function _(e,n={}){let i=u.useCallback(o=>n.keys?E(e,n.keys,o):e.listen(o),[n.keys,e]),c=e.get.bind(e);return u.useSyncExternalStore(i,c,c)}t.registerReactIslands=S,t.useStore=_,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});