!function(){function n(){/*! 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:{},i=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function a(n,o,i,u){var a=o&&o.prototype instanceof l?o:l,f=Object.create(a.prototype);return t(f,"_invoke",function(n,t,o){var i,u,a,l=0,f=o||[],s=!1,p={p:0,n:0,v:e,a:y,f:y.bind(e,4),d:function(n,t){return i=n,u=0,a=e,p.n=t,c}};function y(n,t){for(u=n,a=t,r=0;!s&&l&&!o&&r<f.length;r++){var o,i=f[r],y=p.p,v=i[2];n>3?(o=v===t)&&(a=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=y&&((o=n<2&&y<i[1])?(u=0,p.v=t,p.n=i[1]):y<v&&(o=n<3||i[0]>t||t>v)&&(i[4]=n,i[5]=t,p.n=v,u=0))}if(o||n>1)return c;throw s=!0,t}return function(o,f,v){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&y(f,v),u=f,a=v;(r=u<2?e:a)||!s;){i||(u?u<3?(u>1&&(p.n=-1),y(u,a)):p.n=a:p.v=a);try{if(l=2,i){if(u||(o="next"),r=i[o]){if(!(r=r.call(i,a)))throw TypeError("iterator result is not an object");if(!r.done)return r;a=r.value,u<2&&(u=0)}else 1===u&&(r=i.return)&&r.call(i),u<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((r=(s=p.n<0)?a:n.call(t,p))!==c)break}catch(r){i=e,u=1,a=r}finally{l=1}}return{value:r,done:s}}}(n,i,u),!0),f}var c={};function l(){}function f(){}function s(){}r=Object.getPrototypeOf;var p=[][i]?r(r([][i]())):(t(r={},i,function(){return this}),r),y=s.prototype=l.prototype=Object.create(p);function v(n){return Object.setPrototypeOf?Object.setPrototypeOf(n,s):(n.__proto__=s,t(n,u,"GeneratorFunction")),n.prototype=Object.create(y),n}return f.prototype=s,t(y,"constructor",s),t(s,"constructor",f),f.displayName="GeneratorFunction",t(s,u,"GeneratorFunction"),t(y),t(y,u,"Generator"),t(y,i,function(){return this}),t(y,"toString",function(){return"[object Generator]"}),(n=function(){return{w:a,m:v}})()}function t(n,e,r,o){var i=Object.defineProperty;try{i({},"",{})}catch(n){i=0}t=function(n,e,r,o){function u(e,r){t(n,e,function(n){return this._invoke(e,r,n)})}e?i?i(n,e,{value:r,enumerable:!o,configurable:!o,writable:!o}):n[e]=r:(u("next",0),u("throw",1),u("return",2))},t(n,e,r,o)}function e(n,t,e,r,o,i,u){try{var a=n[i](u),c=a.value}catch(n){return void e(n)}a.done?t(c):Promise.resolve(c).then(r,o)}function r(n){return function(){var t=this,r=arguments;return new Promise(function(o,i){var u=n.apply(t,r);function a(n){e(u,o,i,a,c,"next",n)}function c(n){e(u,o,i,a,c,"throw",n)}a(void 0)})}}System.register(["./utils-lib-legacy.js?v=1761009159","./firewall-legacy.js?v=1761009159","./column-legacy.js?v=1761009159","./base-lib-legacy.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159","./index-legacy106.js?v=1761009159"],function(t,e){"use strict";var o,i,u,a,c,l,f,s,p,y,v,d,m,b,g,h,j,_,w;return{setters:[function(n){o=n.u,i=n.P,u=n.l,a=n.n,c=n.Q},function(n){l=n.ao,f=n.ap},function(n){s=n.u},function(n){p=n.c,y=n.r,v=n.aD,d=n.an,m=n.e,b=n.q,g=n.H,h=n.v,j=n.x,_=n.I,w=n.y},null,null],execute:function(){t("default",p({__name:"index",setup:function(t){o();var p=y(!1),O=y([]),x=function(){var t=r(n().m(function t(e,r){return n().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,i({loading:"正在"+(r?"开启":"关闭")+"防护状态，请稍后...",request:l(r,{siteName:e}),message:!0});case 1:P();case 2:return n.a(2)}},t)}));return function(n,e){return t.apply(this,arguments)}}(),P=function(){var t=r(n().m(function t(){return n().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,i({loading:p,request:f(),data:{sites:[Array,O]}});case 1:return n.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),G=[{label:"网站名称",prop:"site_name"},{label:"防护状态",render:function(n){return v(d,{modelValue:n.open,onChange:function(t){return x(n.site_name,t)},size:"small"})}},{label:"今日触发",prop:"total.day_total"},{label:"触发总数",prop:"total.total"},{label:"PHP版本",render:function(n){return m("span",{class:n.version.includes("不兼容")?"!text-danger":""},[n.version])}},s([{onClick:function(n){a({title:"【".concat(n.site_name,"】网站安全日志"),area:93,component:function(){return c(function(){return e.import("./index-legacy468.js?v=1761009159")},void 0,e.meta.url)},compData:{row:n}})},title:"日志"}])];return b(r(n().m(function t(){return n().w(function(n){for(;;)if(0===n.n)return n.a(2,P())},t)}))),function(n,t){var e=u,r=g("bt-loading");return h(),j("div",null,[_(m(e,{column:G,data:w(O)},null,8,["data"]),[[r,w(p)],[r,"正在加载中，请稍后...","title"]])])}}}))}}})}();
