');const E=a=>{const[l,u]=j(a,["class"]);return(()=>{var n=De();return B(n,L({get class(){return M("toggle",l.class)}},u),!1,!1),n})()},A=a=>{const[l,u]=j(a,["class"]);return(()=>{var n=Te();return B(n,L({get class(){return M("input min-w-0",l.class)}},u),!1,!1),n})()},I=a=>{const[l,u]=j(a,["class"]);return(()=>{var n=Ne();return B(n,L({get class(){return M("select",l.class)}},u),!1,!0),t(n,()=>J(()=>u.children)()),n})()},w=a=>{const[l,u]=j(a,["class"]);return(()=>{var n=Ie();return B(n,L({get class(){return M("label truncate",l.class)}},u),!1,!0),t(n,()=>J(()=>u.children)()),n})()},Oe=S.object({name:S.string(),type:S.string()}),He=()=>{const[a]=R(),l=te(),u="google.com",{form:n,isSubmitting:k}=Y({extend:K({schema:Oe}),onSubmit:c=>l.get("dns/query",{searchParams:{name:c.name||u,type:c.type}}).json().then(({Answer:m})=>g((m==null?void 0:m.map(({data:r})=>r))||[])).catch(m=>ke.error(m.message))}),[o,g]=le([]);return(()=>{var c=Re(),m=c.firstChild,r=m.firstChild;return Z(n,m,()=>n),t(m,e(A,{type:"search",name:"name",class:"flex-1",placeholder:u,onInput:s=>{s.target.value||g([])}}),r),t(r,e(I,{name:"type",get children(){return[Pe(),Fe(),Ae()]}}),null),t(r,e(T,{type:"submit",class:"btn-primary",get loading(){return k()},get children(){return a("dnsQuery")}}),null),t(c,e(P,{get when(){return o().length>0},get children(){var s=Ee();return t(s,e(D,{get each(){return o()},children:p=>(()=>{var y=je();return t(y,p),y})()})),s}}),null),c})()},Ue=S.object({port:S.number(),"socks-port":S.number(),"redir-port":S.number(),"tproxy-port":S.number(),"mixed-port":S.number()}),ze=({isSingBox:a})=>{const[l]=R(),u=[{label:()=>l("port",{name:"Mixed"}),key:"mixed-port",onChange:r=>void x("mixed-port",Number(r.target.value),c)},{label:()=>l("port",{name:"HTTP"}),key:"port",onChange:r=>void x("port",Number(r.target.value),c)},{label:()=>l("port",{name:"Socks"}),key:"socks-port",onChange:r=>void x("socks-port",Number(r.target.value),c)},{label:()=>l("port",{name:"Redir"}),key:"redir-port",onChange:r=>void x("redir-port",Number(r.target.value),c)},{label:()=>l("port",{name:"TProxy"}),key:"tproxy-port",onChange:r=>void x("tproxy-port",Number(r.target.value),c)}],{form:n,setInitialValues:k,reset:o}=Y({extend:K({schema:Ue})}),[g,{refetch:c}]=X(ye);re(()=>{const r=g();r&&(k(r),o())});const m=W(()=>{const r=g();return(r==null?void 0:r["mode-list"])||(r==null?void 0:r.modes)||["rule","direct","global"]});return(()=>{var r=Me(),s=r.firstChild,p=s.firstChild,y=p.nextSibling,b=y.nextSibling,h=s.nextSibling;return t(p,e(w,{for:"enable-allow-lan",get children(){return l("allowLan")}}),null),t(p,e(E,{id:"enable-allow-lan",get checked(){var i;return(i=g())==null?void 0:i["allow-lan"]},onChange:i=>void x("allow-lan",i.target.checked,c)}),null),t(y,e(w,{for:"mode",get children(){return l("runningMode")}}),null),t(y,e(I,{id:"mode",onChange:i=>void x("mode",i.target.value,c),get children(){return e(D,{get each(){return m()},children:i=>(()=>{var f=F();return f.value=i,t(f,()=>l(i)??i),N(()=>{var $;return f.selected=i===(($=g())==null?void 0:$.mode)}),f})()})}}),null),t(b,e(w,{for:"interface-name",get children(){return l("outboundInterfaceName")}}),null),t(b,e(A,{id:"interface-name",get value(){var i;return(i=g())==null?void 0:i["interface-name"]},onChange:i=>void x("interface-name",i.target.value,c)}),null),t(r,e(P,{get when(){return!a()},get children(){return[(()=>{var i=Be(),f=i.firstChild,$=f.nextSibling,V=$.nextSibling;return t(f,e(w,{for:"enable-tun-device",get children(){return l("enableTunDevice")}}),null),t(f,e(E,{id:"enable-tun-device",get checked(){var v,_;return(_=(v=g())==null?void 0:v.tun)==null?void 0:_.enable},onChange:v=>void x("tun",{enable:v.target.checked},c)}),null),t($,e(w,{for:"tun-ip-stack",get children(){return l("tunModeStack")}}),null),t($,e(I,{id:"tun-ip-stack",onChange:v=>void x("tun",{stack:v.target.value},c),get children(){return e(D,{each:["Mixed","gVisor","System","LWIP"],children:v=>(()=>{var _=F();return _.value=v,t(_,v),N(()=>{var q,G;return _.selected=((G=(q=g())==null?void 0:q.tun)==null?void 0:G.stack)===v}),_})()})}}),null),t(V,e(w,{for:"device-name",get children(){return l("tunDeviceName")}}),null),t(V,e(A,{id:"device-name",get value(){var v,_;return(_=(v=g())==null?void 0:v.tun)==null?void 0:_.device},onChange:v=>void x("tun",{device:v.target.value},c)}),null),i})(),(()=>{var i=Le();return Z(n,i,()=>n),t(i,e(D,{each:u,children:f=>(()=>{var $=Qe();return t($,e(w,{get for(){return f.key},get children(){return f.label()}}),null),t($,e(A,{get id(){return f.key},get name(){return f.key},type:"number",get placeholder(){return f.label()},get onChange(){return f.onChange}}),null),$})()})),i})()]}}),h),t(h,e(T,{class:"btn-primary",get loading(){return ae()},onClick:ne,get children(){return l("reloadConfig")}}),null),t(h,e(T,{class:"btn-accent",get loading(){return ie()},onClick:se,get children(){return l("flushFakeIP")}}),null),t(h,e(T,{class:"btn-warning",get loading(){return oe()},onClick:ce,get children(){return l("restartCore")}}),null),t(h,e(P,{get when(){return!a()},get children(){return e(T,{class:"btn-secondary",get loading(){return de()},onClick:ue,get children(){return l("updateGEODatabases")}})}}),null),r})()},Xe=()=>{const[a]=R(),l=U(),u=[{label:()=>a("en"),value:Q.EN},{label:()=>a("zh"),value:Q.ZH},{label:()=>a("ru"),value:Q.RU}];return(()=>{var n=qe(),k=n.firstChild,o=k.firstChild,g=o.nextSibling,c=g.nextSibling,m=k.nextSibling,r=m.firstChild;return t(o,e(C,{get children(){return a("useTwemoji")}}),null),t(o,e(E,{get checked(){return he()},onChange:s=>ge(s.target.checked)}),null),t(g,e(C,{get children(){return a("switchLanguage")}}),null),t(g,e(I,{onChange:s=>fe(s.target.value),get children(){return e(D,{each:u,children:s=>(()=>{var p=F();return t(p,()=>s.label()),N(()=>p.selected=ve()===s.value),N(()=>p.value=s.value),p})()})}}),null),t(c,e(C,{get children(){var s;return(s=z())==null?void 0:s.url}}),null),t(c,e(T,{class:"btn-info",onClick:()=>{me(""),l(pe.Setup)},get children(){return a("switchEndpoint")}}),null),t(r,e(C,{get children(){return a("autoSwitchTheme")}}),null),t(r,e(E,{get checked(){return O()},onChange:s=>be(s.target.checked)}),null),t(m,e(P,{get when(){return O()},get children(){var s=Ve(),p=s.firstChild,y=p.nextSibling;return t(p,e(C,{get children(){return a("favDayTheme")}}),null),t(p,e(I,{onChange:b=>xe(b.target.value),get children(){return e(D,{each:H,children:b=>(()=>{var h=F();return h.value=b,t(h,b),N(()=>h.selected=$e()===b),h})()})}}),null),t(y,e(C,{get children(){return a("favNightTheme")}}),null),t(y,e(I,{onChange:b=>_e(b.target.value),get children(){return e(D,{each:H,children:b=>(()=>{var h=F();return h.value=b,t(h,b),N(()=>h.selected=Ce()===b),h})()})}}),null),s}}),null),n})()},Ze=()=>{const a=U();if(!z())return a("/setup",{replace:!0}),null;const[l]=R(),u="v1.186.1",[n]=X(Se,{initialValue:""}),k=W(()=>{var o;return((o=n())==null?void 0:o.includes("sing-box"))||!1});return[e(we,{get children(){return l("config")}}),(()=>{var o=Ge();return t(o,e(P,{get when(){return!k()},get children(){return[e(C,{withDivider:!0,get children(){return l("dnsQuery")}}),e(He,{})]}}),null),t(o,e(C,{withDivider:!0,get children(){return l("coreConfig")}}),null),t(o,e(ze,{isSingBox:k}),null),t(o,e(C,{withDivider:!0,get children(){return l("xdConfig")}}),null),t(o,e(Xe,{}),null),t(o,e(C,{withDivider:!0,get children(){return l("version")}}),null),t(o,e(P,{get when(){return!n.loading},get children(){return e(ee,{frontendVersion:u,backendVersion:n})}}),null),o})()]};export{Ze as default};
2 |
--------------------------------------------------------------------------------
/Proxy/WebUI/MetacubeXD/assets/Connections-DwCnEzZx.js:
--------------------------------------------------------------------------------
1 | import{M as O,u as ie,d as l,S as Te,t as u,i as s,N as ce,O as ze,P as Me,b as Ge,y as Ee,A as $,Q as Ke,R as X,T as i,E as D,B as I,U as Y,I as W,V as ee,W as R,r as Re,D as h,g as _,X as w,Y as P,Z as te,J as Ne,_ as Oe,$ as Ae,F as T,a0 as N,a1 as je,a2 as He,a3 as ne,a4 as ae,a5 as Ve,a6 as Ue,a7 as Ze,a8 as Le,w as Qe,a9 as qe,n as Be}from"./index-BklDWftz.js";import{c as Je,I as Xe,a as Ye,f as z,b as We,d as et,g as tt,e as nt,h as at,i as lt,j as st,r as rt}from"./index-YkUbZ20w.js";import{D as ot}from"./DocumentTitle-my5Dni1j.js";import{f as it}from"./time-yVWJ-azh.js";/**
2 | * @license @tabler/icons-solidjs v3.31.0 - MIT
3 | *
4 | * This source code is licensed under the MIT license.
5 | * See the LICENSE file in the root directory of this source tree.
6 | */var ct=O("outline","info-small","IconInfoSmall",[["path",{d:"M12 9h.01"}],["path",{d:"M11 12h1v4h1"}]]);/**
7 | * @license @tabler/icons-solidjs v3.31.0 - MIT
8 | *
9 | * This source code is licensed under the MIT license.
10 | * See the LICENSE file in the root directory of this source tree.
11 | */var le=O("filled","zoom-in-filled","IconZoomInFilled",[["path",{d:"M14 3.072a8 8 0 0 1 2.617 11.424l4.944 4.943a1.5 1.5 0 0 1 -2.008 2.225l-.114 -.103l-4.943 -4.944a8 8 0 0 1 -12.49 -6.332l-.006 -.285l.005 -.285a8 8 0 0 1 11.995 -6.643zm-4 2.928a1 1 0 0 0 -.993 .883l-.007 .117v2h-2l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h2v2l.007 .117a1 1 0 0 0 1.986 0l.007 -.117v-2h2l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007h-2v-2l-.007 -.117a1 1 0 0 0 -.993 -.883z"}]]);/**
12 | * @license @tabler/icons-solidjs v3.31.0 - MIT
13 | *
14 | * This source code is licensed under the MIT license.
15 | * See the LICENSE file in the root directory of this source tree.
16 | */var se=O("filled","zoom-out-filled","IconZoomOutFilled",[["path",{d:"M14 3.072a8 8 0 0 1 2.617 11.424l4.944 4.943a1.5 1.5 0 0 1 -2.008 2.225l-.114 -.103l-4.943 -4.944a8 8 0 0 1 -12.49 -6.332l-.006 -.285l.005 -.285a8 8 0 0 1 11.995 -6.643zm-1 5.928h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z"}]]),dt=u("
");const ut=c=>{const[v]=ie();return l(Me,{ref:g=>{var n;return(n=c.ref)==null?void 0:n.call(c,g)},get icon(){return l(ze,{size:24})},get title(){return v("connectionsDetails")},get children(){return l(Te,{get when(){return c.selectedConnectionID},get children(){var g=dt(),n=g.firstChild;return s(n,()=>JSON.stringify(ce().find(({id:S})=>S===c.selectedConnectionID),null,2)),g}})}})},gt=async c=>{typeof c=="string"?await navigator.clipboard.writeText(c):await navigator.clipboard.write(c)};var re=u(''),mt=u('
'),pt=u('