"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("../config-provider/index.js");require("./index.vue.js");const r=require("./index.vue2.js");class s{_options={_globalMark:!0};container=null;app=null;instance=null;constructor(t){t&&(this._options={...this._options,...t})}_getInstance(){return this.instance?this.instance:(this.container=document.createElement("div"),this.app=e.createApp(e.createVNode(i.APConfigProvider,null,{default:()=>[e.createVNode(r.default,{ref:t=>this.instance=t},null)]})),this.app.mount(this.container),document.body.appendChild(this.container.firstElementChild),this.instance)}open(t){const n={...this._options,...t};this._getInstance().start(n)}}exports.LoadingBar=s;
