!function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define("$store",["vue"],t):"object"===typeof exports?exports.$store=t(require("vue")):e.$store=t(e.Vue)}("undefined"!==typeof self?self:this,(function(e){return function(){"use strict";var t={895:function(t){t.exports=e}},o={};function r(e){var n=o[e];if(void 0!==n)return n.exports;var i=o[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.d=function(e,t){for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return function(){r.r(n),r.d(n,{default:function(){return s},install:function(){return f},useStore:function(){return a}});var e=r(895);var t="undefined"===typeof window?e.createSSRApp:e.createApp;const o=/(?:^\[object\s(.*?)\]$)/;var i=e=>Object.prototype.toString.call(e).replace(o,"$1").toLowerCase();let u={};function c(e,o){!function(e){const t=document.createElement("div");t.id=e,document.body.appendChild(t)}(e);const r=e.replace(/^\S/,(e=>e.toUpperCase()));return t({name:`BalmUI${r}`,setup:()=>o,render:()=>""}).mount(`#${e}`).$.setupState}function f(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)if("object"===i(t)){const o=(t.name||"store").toLowerCase();u=c(o,t),e.config.globalProperties[`$${o}`]=u,e.provide(`$${o}`,u)}else{if(!Array.isArray(t))throw new Error("[$store]: The '$store' of BalmUI must be an object or array");for(let o=0,r=t.length;o<r;o++){const r=t[o],n=(r.name||`store${o}`).toLowerCase();u[n]=c(n,r),e.config.globalProperties[`$${n}`]=u[n],e.provide(`$${n}`,u[n])}}}const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?u[e]:u};var s={install:f}}(),n}()}));