import{a as u}from"./chunk-2EV355TI.mjs";import{createContext as l,useRef as y}from"react";import{create as b}from"zustand";import{jsx as s}from"react/jsx-runtime";function n(r){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(r)}function f(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,o)}return t}function c(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?f(Object(t),!0).forEach(function(o){a(r,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o))})}return r}function a(r,e,t){return(e=p(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function p(r){var e=m(r,"string");return n(e)=="symbol"?e:e+""}function m(r,e){if(n(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(n(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var v=l(null),O=function(e){var t=e.children,o=y();return o.current||(o.current=b(function(i){return c(c({},u),{},{setChatRoom:i,resetChatRoom:function(){return i(c({},u))}})})),s(v.Provider,{value:o.current,children:t})},S=O;export{v as a,S as b};
//# sourceMappingURL=chunk-326YYXXP.mjs.map