!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 n,r,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function i(t,o,u,a){var i=o&&o.prototype instanceof l?o:l,f=Object.create(i.prototype);return e(f,"_invoke",function(t,e,o){var u,a,i,l=0,f=o||[],s=!1,v={p:0,n:0,v:n,a:p,f:p.bind(n,4),d:function(t,e){return u=t,a=0,i=n,v.n=e,c}};function p(t,e){for(a=t,i=e,r=0;!s&&l&&!o&&r<f.length;r++){var o,u=f[r],p=v.p,y=u[2];t>3?(o=y===e)&&(i=u[(a=u[4])?5:(a=3,3)],u[4]=u[5]=n):u[0]<=p&&((o=t<2&&p<u[1])?(a=0,v.v=e,v.n=u[1]):p<y&&(o=t<3||u[0]>e||e>y)&&(u[4]=t,u[5]=e,v.n=y,a=0))}if(o||t>1)return c;throw s=!0,e}return function(o,f,y){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&p(f,y),a=f,i=y;(r=a<2?n:i)||!s;){u||(a?a<3?(a>1&&(v.n=-1),p(a,i)):v.n=i:v.v=i);try{if(l=2,u){if(a||(o="next"),r=u[o]){if(!(r=r.call(u,i)))throw TypeError("iterator result is not an object");if(!r.done)return r;i=r.value,a<2&&(a=0)}else 1===a&&(r=u.return)&&r.call(u),a<2&&(i=TypeError("The iterator does not provide a '"+o+"' method"),a=1);u=n}else if((r=(s=v.n<0)?i:t.call(e,v))!==c)break}catch(r){u=n,a=1,i=r}finally{l=1}}return{value:r,done:s}}}(t,u,a),!0),f}var c={};function l(){}function f(){}function s(){}r=Object.getPrototypeOf;var v=[][u]?r(r([][u]())):(e(r={},u,function(){return this}),r),p=s.prototype=l.prototype=Object.create(v);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,e(t,a,"GeneratorFunction")),t.prototype=Object.create(p),t}return f.prototype=s,e(p,"constructor",s),e(s,"constructor",f),f.displayName="GeneratorFunction",e(s,a,"GeneratorFunction"),e(p),e(p,a,"Generator"),e(p,u,function(){return this}),e(p,"toString",function(){return"[object Generator]"}),(t=function(){return{w:i,m:y}})()}function e(t,n,r,o){var u=Object.defineProperty;try{u({},"",{})}catch(t){u=0}e=function(t,n,r,o){function a(n,r){e(t,n,function(t){return this._invoke(n,r,t)})}n?u?u(t,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[n]=r:(a("next",0),a("throw",1),a("return",2))},e(t,n,r,o)}function n(t,e,n,r,o,u,a){try{var i=t[u](a),c=i.value}catch(t){return void n(t)}i.done?e(c):Promise.resolve(c).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise(function(o,u){var a=t.apply(e,r);function i(t){n(a,o,u,i,c,"next",t)}function c(t){n(a,o,u,i,c,"throw",t)}i(void 0)})}}System.register(["./utils-lib-legacy.js?v=1761009159","./base-lib-legacy.js?v=1761009159","./site-legacy.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159"],function(e,n){"use strict";var o,u,a,i,c,l,f,s,v,p,y,d,m,b,h,g,_,j,w,O,S,k,x,P;return{setters:[function(t){o=t.aK,u=t.P,a=t.$},function(t){i=t.c,c=t.r,l=t.q,f=t.H,s=t.I,v=t.y,p=t.v,y=t.x,d=t.z,m=t.e,b=t.B,h=t.F,g=t.b0,_=t.Q,j=t.C,w=t.al,O=t.G,S=t.N,k=t.ak},function(t){x=t.getDefaultSite,P=t.setDefaultSite},null],execute:function(){var n={class:"p-[20px]"};e("default",i({__name:"defalut-site",setup:function(e){var i=c(!1),G=c([{name:"默认站点",value:"default"},{name:"自定义站点",value:"custom"}]),T=c("default"),F=function(){var e=r(t().m(function e(){var n,r,u;return t().w(function(t){for(;;)switch(t.p=t.n){case 0:return i.value=!0,t.p=1,t.n=2,x();case 2:n=t.v,r=n.data,T.value=r.defaultSite,r.defaultSite||(T.value="未设置默认站点"),G.value=r.sites,G.value.unshift({name:"未设置默认站点",value:"未设置默认站点"}),t.n=4;break;case 3:t.p=3,u=t.v,o(u);case 4:return t.p=4,i.value=!1,t.f(4);case 5:return t.a(2)}},e,null,[[1,3,4,5]])}));return function(){return e.apply(this,arguments)}}(),E=function(){var e=r(t().m(function e(){var n;return t().w(function(t){for(;;)switch(t.n){case 0:return n={name:"未设置默认站点"===T.value?"0":T.value},i.value=!0,t.n=1,u({loading:"正在设置默认站点，请稍后...",request:P(n),message:!0});case 1:i.value=!1;case 2:return t.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return l(function(){F()}),function(t,e){var r=k,o=w,u=O,c=a,l=f("bt-loading");return s((p(),y("div",n,[e[2]||(e[2]=d("span",{class:"mr-[12px]"},"默认站点",-1)),m(o,{modelValue:v(T),"onUpdate:modelValue":e[0]||(e[0]=function(t){return _(T)?T.value=t:null}),class:"!w-[32rem]"},{default:b(function(){return[(p(!0),y(h,null,g(v(G),function(t,e){return p(),S(r,{key:e,label:t.name,value:t.name},null,8,["label","value"])}),128))]}),_:1},8,["modelValue"]),m(u,{type:"primary",onClick:E,class:"!my-[20px] !block"},{default:b(function(){return e[1]||(e[1]=[j("保存",-1)])}),_:1,__:[1]}),m(c,{options:[{content:"设置默认站点后,所有未绑定的域名和IP都被定向到默认站点"},{content:"可有效防止恶意解析"}]})])),[[l,v(i)]])}}}))}}})}();
