import{M as e,V as t,L as s}from"./p-6e1ab235.js";import{S as a}from"./p-1fb56e14.js";class o extends t{constructor(e){super(),this.autoRunTaskQueue=new a(e)}async executeTaskHook(){this.autoRunTaskQueue.queue.length&&await this.autoRunTaskQueue.runTask()}enqueueTheTaskIntoQueue(e=!1){this.autoRunTaskQueue.enqueue({run:async()=>{try{await this.doTask()}catch(e){s.error("The auto task run failed.",e)}}},e)}}!function(e,t,s,a){var o,c=arguments.length,n=c<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,a);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(n=(c<3?o(n):c>3?o(t,s,n):o(t,s))||n);c>3&&n&&Object.defineProperty(t,s,n)}([e("componentDidUpdate")],o.prototype,"executeTaskHook",null);export{o as A}