!function(){function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,r,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",i=o.toStringTag||"@@toStringTag";function c(t,o,u,i){var c=o&&o.prototype instanceof s?o:s,f=Object.create(c.prototype);return n(f,"_invoke",function(t,n,o){var u,i,c,s=0,f=o||[],l=!1,p={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,n){return u=t,i=0,c=e,p.n=n,a}};function v(t,n){for(i=t,c=n,r=0;!l&&s&&!o&&r<f.length;r++){var o,u=f[r],v=p.p,y=u[2];t>3?(o=y===n)&&(c=u[(i=u[4])?5:(i=3,3)],u[4]=u[5]=e):u[0]<=v&&((o=t<2&&v<u[1])?(i=0,p.v=n,p.n=u[1]):v<y&&(o=t<3||u[0]>n||n>y)&&(u[4]=t,u[5]=n,p.n=y,i=0))}if(o||t>1)return a;throw l=!0,n}return function(o,f,y){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&v(f,y),i=f,c=y;(r=i<2?e:c)||!l;){u||(i?i<3?(i>1&&(p.n=-1),v(i,c)):p.n=c:p.v=c);try{if(s=2,u){if(i||(o="next"),r=u[o]){if(!(r=r.call(u,c)))throw TypeError("iterator result is not an object");if(!r.done)return r;c=r.value,i<2&&(i=0)}else 1===i&&(r=u.return)&&r.call(u),i<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),i=1);u=e}else if((r=(l=p.n<0)?c:t.call(n,p))!==a)break}catch(r){u=e,i=1,c=r}finally{s=1}}return{value:r,done:l}}}(t,u,i),!0),f}var a={};function s(){}function f(){}function l(){}r=Object.getPrototypeOf;var p=[][u]?r(r([][u]())):(n(r={},u,function(){return this}),r),v=l.prototype=s.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,n(t,i,"GeneratorFunction")),t.prototype=Object.create(v),t}return f.prototype=l,n(v,"constructor",l),n(l,"constructor",f),f.displayName="GeneratorFunction",n(l,i,"GeneratorFunction"),n(v),n(v,i,"Generator"),n(v,u,function(){return this}),n(v,"toString",function(){return"[object Generator]"}),(t=function(){return{w:c,m:y}})()}function n(t,e,r,o){var u=Object.defineProperty;try{u({},"",{})}catch(t){u=0}n=function(t,e,r,o){function i(e,r){n(t,e,function(t){return this._invoke(e,r,t)})}e?u?u(t,e,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},n(t,e,r,o)}function e(t,n,e,r,o,u,i){try{var c=t[u](i),a=c.value}catch(t){return void e(t)}c.done?n(a):Promise.resolve(a).then(r,o)}function r(t){return function(){var n=this,r=arguments;return new Promise(function(o,u){var i=t.apply(n,r);function c(t){e(i,o,u,c,a,"next",t)}function a(t){e(i,o,u,c,a,"throw",t)}c(void 0)})}}System.register(["./utils-lib-legacy.js?v=1761009159","./base-lib-legacy.js?v=1761009159","./database-legacy.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159"],function(n,e){"use strict";var o,u,i,c,a,s,f,l,p,v,y,d,m,h;return{setters:[function(t){o=t.P,u=t.$},function(t){i=t.c,c=t.r,a=t.q,s=t.v,f=t.x,l=t.z,p=t.e,v=t.y,y=t.Q,d=t.an},function(t){m=t.setRestartTask,h=t.getRestartTask},null],execute:function(){var e={class:"flex items-center"};n("default",i({__name:"index",setup:function(n,i){var b=i.expose,g=c(!1),j=[{content:"守护进程可以在MySQL数据库服务停止后自动启动，保证MySQL服务一直运行。"}],w=function(){var n=r(t().m(function n(e){return t().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,o({loading:"正在设置守护进程, 请稍后...",request:m({status:e?1:0}),message:!0,success:function(){return _()}});case 1:return t.a(2)}},n)}));return function(t){return n.apply(this,arguments)}}(),_=function(){var n=r(t().m(function n(){return t().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,o({loading:"正在获取守护进程状态, 请稍后...",request:h(),success:function(t){var n=t.data;g.value=1===n.msg.status}});case 1:return t.a(2)}},n)}));return function(){return n.apply(this,arguments)}}();return a(_),b({init:_}),function(t,n){var r=d,o=u;return s(),f("div",null,[l("div",e,[n[1]||(n[1]=l("div",{class:"mr-4"},"守护进程开关",-1)),p(r,{modelValue:v(g),"onUpdate:modelValue":n[0]||(n[0]=function(t){return y(g)?g.value=t:null}),width:36,onChange:w},null,8,["modelValue"])]),p(o,{options:j,"list-style":"disc",class:"mt-2rem ml-2rem"})])}}}))}}})}();
