From fa42313f845cd64247c51208ca72b235475f50a4 Mon Sep 17 00:00:00 2001 From: Asutorufa Date: Thu, 18 Jul 2024 14:04:41 +0000 Subject: [PATCH] deploy: yuhaiin/yuhaiin-react@6df4b40340578398979db34b7a87f3a91f365813 --- 404.html | 2 +- 404/index.html | 2 +- .../_buildManifest.js | 0 .../_ssgManifest.js | 0 _next/static/chunks/427-c39f446fb38e37a3.js | 1 - _next/static/chunks/427-cf7cb1c085033b87.js | 1 + _next/static/chunks/app/docs/config/page-6b98dd1cea46d30d.js | 1 - _next/static/chunks/app/docs/config/page-c62d19ac53b4c733.js | 1 + _next/static/chunks/app/docs/webui/page-2405f45520f40f0d.js | 1 - _next/static/chunks/app/docs/webui/page-65a521370c615408.js | 1 + docs/config/index.html | 2 +- docs/config/index.txt | 4 ++-- docs/connections/index.html | 2 +- docs/connections/index.txt | 4 ++-- docs/group/index.html | 2 +- docs/group/index.txt | 4 ++-- docs/subscribe/index.html | 2 +- docs/subscribe/index.txt | 4 ++-- docs/tag/index.html | 2 +- docs/tag/index.txt | 4 ++-- docs/webui/index.html | 2 +- docs/webui/index.txt | 4 ++-- index.html | 2 +- index.txt | 4 ++-- 24 files changed, 26 insertions(+), 26 deletions(-) rename _next/static/{aS9SB6NI2PksMxNI5IkyW => X6aESpxNUXDPpgu0Cn1J-}/_buildManifest.js (100%) rename _next/static/{aS9SB6NI2PksMxNI5IkyW => X6aESpxNUXDPpgu0Cn1J-}/_ssgManifest.js (100%) delete mode 100644 _next/static/chunks/427-c39f446fb38e37a3.js create mode 100644 _next/static/chunks/427-cf7cb1c085033b87.js delete mode 100644 _next/static/chunks/app/docs/config/page-6b98dd1cea46d30d.js create mode 100644 _next/static/chunks/app/docs/config/page-c62d19ac53b4c733.js delete mode 100644 _next/static/chunks/app/docs/webui/page-2405f45520f40f0d.js create mode 100644 _next/static/chunks/app/docs/webui/page-65a521370c615408.js diff --git a/404.html b/404.html index 4fe8f587..6de2706b 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -Yuhaiin404: This page could not be found.

404

This page could not be found.

\ No newline at end of file +Yuhaiin404: This page could not be found.

404

This page could not be found.

\ No newline at end of file diff --git a/404/index.html b/404/index.html index 4fe8f587..6de2706b 100644 --- a/404/index.html +++ b/404/index.html @@ -1 +1 @@ -Yuhaiin404: This page could not be found.

404

This page could not be found.

\ No newline at end of file +Yuhaiin404: This page could not be found.

404

This page could not be found.

\ No newline at end of file diff --git a/_next/static/aS9SB6NI2PksMxNI5IkyW/_buildManifest.js b/_next/static/X6aESpxNUXDPpgu0Cn1J-/_buildManifest.js similarity index 100% rename from _next/static/aS9SB6NI2PksMxNI5IkyW/_buildManifest.js rename to _next/static/X6aESpxNUXDPpgu0Cn1J-/_buildManifest.js diff --git a/_next/static/aS9SB6NI2PksMxNI5IkyW/_ssgManifest.js b/_next/static/X6aESpxNUXDPpgu0Cn1J-/_ssgManifest.js similarity index 100% rename from _next/static/aS9SB6NI2PksMxNI5IkyW/_ssgManifest.js rename to _next/static/X6aESpxNUXDPpgu0Cn1J-/_ssgManifest.js diff --git a/_next/static/chunks/427-c39f446fb38e37a3.js b/_next/static/chunks/427-c39f446fb38e37a3.js deleted file mode 100644 index 2f5bafbb..00000000 --- a/_next/static/chunks/427-c39f446fb38e37a3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[427],{4971:function(n,t,r){r.d(t,{$f:function(){return m},XE:function(){return f},YO:function(){return a},fG:function(){return e},gU:function(){return o},gW:function(){return d},qQ:function(){return i},r:function(){return c},rQ:function(){return s},zP:function(){return l}});var e="",i="https://raw.githubusercontent.com/yuhaiin/kitte/main/yuhaiin/yuhaiin.conf",s="https://clients3.google.com/generate_204",o="dns.nextdns.io:853",a=!0;let u=()=>{let n=localStorage.getItem("api_url");e=null!==n?n:"",null!==(n=localStorage.getItem("remote_bypass"))&&(i=n),null!==(n=localStorage.getItem("latency_http_url"))&&(s=n),null!==(n=localStorage.getItem("latency_dns_url"))&&(o=n),null!==(n=localStorage.getItem("latency_ipv6"))&&(a="true"===n)},c=n=>{w("api_url",n)},l=n=>{w("remote_bypass",n)},m=n=>{w("latency_dns_url",n)},f=n=>{w("latency_http_url",n)},d=n=>{w("latency_ipv6",n.toString())},w=(n,t)=>{""===t?localStorage.removeItem(n):localStorage.setItem(n,t),u()};u()},716:function(n,t,r){var e=r(7437),i=r(2514),s=r(6264),o=r.n(s);t.Z=function(n){return(0,e.jsxs)("div",{className:"z-1090 d-flex flex-column justify-content-center align-items-center",style:{height:"100px"},children:[void 0!==n.children&&(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(o(),{className:"p2",statusCode:void 0!==n.code?n.code:500,title:n.children})}),(0,e.jsx)("div",{className:"p2",children:(0,e.jsx)(i.Z,{})})]})}},879:function(n,t,r){r.d(t,{D:function(){return i},U:function(){return s}});var e=r(4971);function i(n,t,r){return i=>fetch("".concat(e.fG).concat(i),{method:t,body:r}).then(async t=>{if(!t.ok)throw{code:t.status,msg:t.statusText,raw:t.text()};return n.fromBinary(new Uint8Array(await t.arrayBuffer()))})}let s=async(n,t)=>{let r=await fetch("".concat(e.fG).concat(n),{method:void 0!==t.method?t.method:"POST",body:t.body});return r.ok?void 0===t.process?{}:{data:t.process(r)}:{error:{code:r.status,msg:r.text()}}}},629:function(n,t,r){r.d(t,{h:function(){return i},x:function(){return u}});var e,i,s=r(3256),o=r(1859),a=r(8401);(e=i||(i={}))[e.reserve=0]="reserve",e[e.remote=101]="remote",e[e.manual=102]="manual",s.w.util.setEnumType(i,"yuhaiin.point.origin",[{no:0,name:"reserve"},{no:101,name:"remote"},{no:102,name:"manual"}]);class u extends o.v{static fromBinary(n,t){return new u().fromBinary(n,t)}static fromJson(n,t){return new u().fromJson(n,t)}static fromJsonString(n,t){return new u().fromJsonString(n,t)}static equals(n,t){return s.w.util.equals(u,n,t)}constructor(n){super(),this.hash="",this.name="",this.group="",this.origin=0,this.protocols=[],s.w.util.initPartial(n,this)}}u.runtime=s.w,u.typeName="yuhaiin.point.point",u.fields=s.w.util.newFieldList(()=>[{no:1,name:"hash",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"group",kind:"scalar",T:9},{no:4,name:"origin",kind:"enum",T:s.w.getEnumType(i)},{no:5,name:"protocols",kind:"message",T:a.TF,repeated:!0}])},8401:function(n,t,r){r.d(t,{Cw:function(){return q},E1:function(){return N},Fr:function(){return g},Gf:function(){return v},If:function(){return p},MY:function(){return w},N4:function(){return d},Qz:function(){return o},TF:function(){return s},To:function(){return x},U$:function(){return S},Vh:function(){return u},YP:function(){return J},Yo:function(){return y},ZK:function(){return h},Zl:function(){return k},dJ:function(){return a},fW:function(){return c},fg:function(){return F},ho:function(){return B},i5:function(){return l},kY:function(){return f},lC:function(){return T},nB:function(){return m}});var e=r(1859),i=r(3256);class s extends e.v{static fromBinary(n,t){return new s().fromBinary(n,t)}static fromJson(n,t){return new s().fromJson(n,t)}static fromJsonString(n,t){return new s().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(s,n,t)}constructor(n){super(),this.protocol={case:void 0},i.w.util.initPartial(n,this)}}s.runtime=i.w,s.typeName="yuhaiin.protocol.protocol",s.fields=i.w.util.newFieldList(()=>[{no:1,name:"shadowsocks",kind:"message",T:u,oneof:"protocol"},{no:2,name:"shadowsocksr",kind:"message",T:c,oneof:"protocol"},{no:3,name:"vmess",kind:"message",T:m,oneof:"protocol"},{no:4,name:"websocket",kind:"message",T:p,oneof:"protocol"},{no:5,name:"quic",kind:"message",T:y,oneof:"protocol"},{no:6,name:"obfs_http",jsonName:"obfs_http",kind:"message",T:k,oneof:"protocol"},{no:7,name:"trojan",kind:"message",T:d,oneof:"protocol"},{no:8,name:"simple",kind:"message",T:T,oneof:"protocol"},{no:9,name:"none",kind:"message",T:J,oneof:"protocol"},{no:10,name:"socks5",kind:"message",T:o,oneof:"protocol"},{no:11,name:"http",kind:"message",T:a,oneof:"protocol"},{no:12,name:"direct",kind:"message",T:S,oneof:"protocol"},{no:13,name:"reject",kind:"message",T:_,oneof:"protocol"},{no:14,name:"yuubinsya",kind:"message",T:w,oneof:"protocol"},{no:15,name:"grpc",kind:"message",T:h,oneof:"protocol"},{no:16,name:"http2",kind:"message",T:l,oneof:"protocol"},{no:17,name:"reality",kind:"message",T:g,oneof:"protocol"},{no:18,name:"tls",kind:"message",T:v,oneof:"protocol"},{no:19,name:"wireguard",kind:"message",T:x,oneof:"protocol"},{no:20,name:"mux",kind:"message",T:F,oneof:"protocol"},{no:21,name:"drop",kind:"message",T:q,oneof:"protocol"},{no:22,name:"vless",kind:"message",T:f,oneof:"protocol"}]);class o extends e.v{static fromBinary(n,t){return new o().fromBinary(n,t)}static fromJson(n,t){return new o().fromJson(n,t)}static fromJsonString(n,t){return new o().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(o,n,t)}constructor(n){super(),this.hostname="",this.user="",this.password="",i.w.util.initPartial(n,this)}}o.runtime=i.w,o.typeName="yuhaiin.protocol.socks5",o.fields=i.w.util.newFieldList(()=>[{no:3,name:"hostname",kind:"scalar",T:9},{no:1,name:"user",kind:"scalar",T:9},{no:2,name:"password",kind:"scalar",T:9}]);class a extends e.v{static fromBinary(n,t){return new a().fromBinary(n,t)}static fromJson(n,t){return new a().fromJson(n,t)}static fromJsonString(n,t){return new a().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(a,n,t)}constructor(n){super(),this.user="",this.password="",i.w.util.initPartial(n,this)}}a.runtime=i.w,a.typeName="yuhaiin.protocol.http",a.fields=i.w.util.newFieldList(()=>[{no:1,name:"user",kind:"scalar",T:9},{no:2,name:"password",kind:"scalar",T:9}]);class u extends e.v{static fromBinary(n,t){return new u().fromBinary(n,t)}static fromJson(n,t){return new u().fromJson(n,t)}static fromJsonString(n,t){return new u().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(u,n,t)}constructor(n){super(),this.method="",this.password="",i.w.util.initPartial(n,this)}}u.runtime=i.w,u.typeName="yuhaiin.protocol.shadowsocks",u.fields=i.w.util.newFieldList(()=>[{no:1,name:"method",kind:"scalar",T:9},{no:2,name:"password",kind:"scalar",T:9}]);class c extends e.v{static fromBinary(n,t){return new c().fromBinary(n,t)}static fromJson(n,t){return new c().fromJson(n,t)}static fromJsonString(n,t){return new c().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(c,n,t)}constructor(n){super(),this.server="",this.port="",this.method="",this.password="",this.obfs="",this.obfsparam="",this.protocol="",this.protoparam="",i.w.util.initPartial(n,this)}}c.runtime=i.w,c.typeName="yuhaiin.protocol.shadowsocksr",c.fields=i.w.util.newFieldList(()=>[{no:1,name:"server",kind:"scalar",T:9},{no:2,name:"port",kind:"scalar",T:9},{no:3,name:"method",kind:"scalar",T:9},{no:4,name:"password",kind:"scalar",T:9},{no:5,name:"obfs",kind:"scalar",T:9},{no:6,name:"obfsparam",kind:"scalar",T:9},{no:7,name:"protocol",kind:"scalar",T:9},{no:8,name:"protoparam",kind:"scalar",T:9}]);class l extends e.v{static fromBinary(n,t){return new l().fromBinary(n,t)}static fromJson(n,t){return new l().fromJson(n,t)}static fromJsonString(n,t){return new l().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(l,n,t)}constructor(n){super(),this.concurrency=0,i.w.util.initPartial(n,this)}}l.runtime=i.w,l.typeName="yuhaiin.protocol.http2",l.fields=i.w.util.newFieldList(()=>[{no:1,name:"concurrency",kind:"scalar",T:5}]);class m extends e.v{static fromBinary(n,t){return new m().fromBinary(n,t)}static fromJson(n,t){return new m().fromJson(n,t)}static fromJsonString(n,t){return new m().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(m,n,t)}constructor(n){super(),this.uuid="",this.alterId="",this.security="",i.w.util.initPartial(n,this)}}m.runtime=i.w,m.typeName="yuhaiin.protocol.vmess",m.fields=i.w.util.newFieldList(()=>[{no:1,name:"uuid",jsonName:"id",kind:"scalar",T:9},{no:2,name:"alter_id",jsonName:"aid",kind:"scalar",T:9},{no:3,name:"security",kind:"scalar",T:9}]);class f extends e.v{static fromBinary(n,t){return new f().fromBinary(n,t)}static fromJson(n,t){return new f().fromJson(n,t)}static fromJsonString(n,t){return new f().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(f,n,t)}constructor(n){super(),this.uuid="",i.w.util.initPartial(n,this)}}f.runtime=i.w,f.typeName="yuhaiin.protocol.vless",f.fields=i.w.util.newFieldList(()=>[{no:1,name:"uuid",kind:"scalar",T:9}]);class d extends e.v{static fromBinary(n,t){return new d().fromBinary(n,t)}static fromJson(n,t){return new d().fromJson(n,t)}static fromJsonString(n,t){return new d().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(d,n,t)}constructor(n){super(),this.password="",this.peer="",i.w.util.initPartial(n,this)}}d.runtime=i.w,d.typeName="yuhaiin.protocol.trojan",d.fields=i.w.util.newFieldList(()=>[{no:1,name:"password",kind:"scalar",T:9},{no:2,name:"peer",kind:"scalar",T:9}]);class w extends e.v{static fromBinary(n,t){return new w().fromBinary(n,t)}static fromJson(n,t){return new w().fromJson(n,t)}static fromJsonString(n,t){return new w().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(w,n,t)}constructor(n){super(),this.password="",this.tcpEncrypt=!1,this.udpEncrypt=!1,this.udpOverStream=!1,i.w.util.initPartial(n,this)}}w.runtime=i.w,w.typeName="yuhaiin.protocol.yuubinsya",w.fields=i.w.util.newFieldList(()=>[{no:1,name:"password",kind:"scalar",T:9},{no:4,name:"tcp_encrypt",jsonName:"tcp_encrypt",kind:"scalar",T:8},{no:5,name:"udp_encrypt",jsonName:"udp_encrypt",kind:"scalar",T:8},{no:3,name:"udp_over_stream",jsonName:"udp_over_stream",kind:"scalar",T:8}]);class p extends e.v{static fromBinary(n,t){return new p().fromBinary(n,t)}static fromJson(n,t){return new p().fromJson(n,t)}static fromJsonString(n,t){return new p().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(p,n,t)}constructor(n){super(),this.host="",this.path="",i.w.util.initPartial(n,this)}}p.runtime=i.w,p.typeName="yuhaiin.protocol.websocket",p.fields=i.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:2,name:"path",kind:"scalar",T:9}]);class h extends e.v{static fromBinary(n,t){return new h().fromBinary(n,t)}static fromJson(n,t){return new h().fromJson(n,t)}static fromJsonString(n,t){return new h().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(h,n,t)}constructor(n){super(),i.w.util.initPartial(n,this)}}h.runtime=i.w,h.typeName="yuhaiin.protocol.grpc",h.fields=i.w.util.newFieldList(()=>[{no:1,name:"tls",kind:"message",T:v}]);class y extends e.v{static fromBinary(n,t){return new y().fromBinary(n,t)}static fromJson(n,t){return new y().fromJson(n,t)}static fromJsonString(n,t){return new y().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(y,n,t)}constructor(n){super(),this.host="",i.w.util.initPartial(n,this)}}y.runtime=i.w,y.typeName="yuhaiin.protocol.quic",y.fields=i.w.util.newFieldList(()=>[{no:2,name:"host",kind:"scalar",T:9},{no:1,name:"tls",kind:"message",T:v}]);class g extends e.v{static fromBinary(n,t){return new g().fromBinary(n,t)}static fromJson(n,t){return new g().fromJson(n,t)}static fromJsonString(n,t){return new g().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(g,n,t)}constructor(n){super(),this.serverName="",this.publicKey="",this.shortId="",this.debug=!1,i.w.util.initPartial(n,this)}}g.runtime=i.w,g.typeName="yuhaiin.protocol.reality",g.fields=i.w.util.newFieldList(()=>[{no:1,name:"server_name",jsonName:"server_name",kind:"scalar",T:9},{no:2,name:"public_key",jsonName:"public_key",kind:"scalar",T:9},{no:3,name:"short_id",jsonName:"short_id",kind:"scalar",T:9},{no:4,name:"debug",kind:"scalar",T:8}]);class k extends e.v{static fromBinary(n,t){return new k().fromBinary(n,t)}static fromJson(n,t){return new k().fromJson(n,t)}static fromJsonString(n,t){return new k().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(k,n,t)}constructor(n){super(),this.host="",this.port="",i.w.util.initPartial(n,this)}}k.runtime=i.w,k.typeName="yuhaiin.protocol.obfs_http",k.fields=i.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:2,name:"port",kind:"scalar",T:9}]);class J extends e.v{static fromBinary(n,t){return new J().fromBinary(n,t)}static fromJson(n,t){return new J().fromJson(n,t)}static fromJsonString(n,t){return new J().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(J,n,t)}constructor(n){super(),i.w.util.initPartial(n,this)}}J.runtime=i.w,J.typeName="yuhaiin.protocol.none",J.fields=i.w.util.newFieldList(()=>[]);class T extends e.v{static fromBinary(n,t){return new T().fromBinary(n,t)}static fromJson(n,t){return new T().fromJson(n,t)}static fromJsonString(n,t){return new T().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(T,n,t)}constructor(n){super(),this.host="",this.port=0,this.alternateHost=[],i.w.util.initPartial(n,this)}}T.runtime=i.w,T.typeName="yuhaiin.protocol.simple",T.fields=i.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:2,name:"port",kind:"scalar",T:5},{no:5,name:"alternate_host",jsonName:"alternate_host",kind:"message",T:B,repeated:!0}]);class v extends e.v{static fromBinary(n,t){return new v().fromBinary(n,t)}static fromJson(n,t){return new v().fromJson(n,t)}static fromJsonString(n,t){return new v().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(v,n,t)}constructor(n){super(),this.enable=!1,this.serverNames=[],this.caCert=[],this.insecureSkipVerify=!1,this.nextProtos=[],i.w.util.initPartial(n,this)}}v.runtime=i.w,v.typeName="yuhaiin.protocol.tls_config",v.fields=i.w.util.newFieldList(()=>[{no:1,name:"enable",kind:"scalar",T:8},{no:6,name:"server_names",jsonName:"servernames",kind:"scalar",T:9,repeated:!0},{no:3,name:"ca_cert",jsonName:"ca_cert",kind:"scalar",T:12,repeated:!0},{no:4,name:"insecure_skip_verify",jsonName:"insecure_skip_verify",kind:"scalar",T:8},{no:5,name:"next_protos",jsonName:"next_protos",kind:"scalar",T:9,repeated:!0}]);class S extends e.v{static fromBinary(n,t){return new S().fromBinary(n,t)}static fromJson(n,t){return new S().fromJson(n,t)}static fromJsonString(n,t){return new S().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(S,n,t)}constructor(n){super(),i.w.util.initPartial(n,this)}}S.runtime=i.w,S.typeName="yuhaiin.protocol.direct",S.fields=i.w.util.newFieldList(()=>[]);class _ extends e.v{static fromBinary(n,t){return new _().fromBinary(n,t)}static fromJson(n,t){return new _().fromJson(n,t)}static fromJsonString(n,t){return new _().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(_,n,t)}constructor(n){super(),i.w.util.initPartial(n,this)}}_.runtime=i.w,_.typeName="yuhaiin.protocol.reject",_.fields=i.w.util.newFieldList(()=>[]);class q extends e.v{static fromBinary(n,t){return new q().fromBinary(n,t)}static fromJson(n,t){return new q().fromJson(n,t)}static fromJsonString(n,t){return new q().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(q,n,t)}constructor(n){super(),i.w.util.initPartial(n,this)}}q.runtime=i.w,q.typeName="yuhaiin.protocol.drop",q.fields=i.w.util.newFieldList(()=>[]);class B extends e.v{static fromBinary(n,t){return new B().fromBinary(n,t)}static fromJson(n,t){return new B().fromJson(n,t)}static fromJsonString(n,t){return new B().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(B,n,t)}constructor(n){super(),this.host="",this.port=0,i.w.util.initPartial(n,this)}}B.runtime=i.w,B.typeName="yuhaiin.protocol.host",B.fields=i.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:2,name:"port",kind:"scalar",T:5}]);class N extends e.v{static fromBinary(n,t){return new N().fromBinary(n,t)}static fromJson(n,t){return new N().fromJson(n,t)}static fromJsonString(n,t){return new N().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(N,n,t)}constructor(n){super(),this.publicKey="",this.preSharedKey="",this.endpoint="",this.keepAlive=0,this.allowedIps=[],i.w.util.initPartial(n,this)}}N.runtime=i.w,N.typeName="yuhaiin.protocol.wireguard_peer_config",N.fields=i.w.util.newFieldList(()=>[{no:1,name:"public_key",kind:"scalar",T:9},{no:2,name:"pre_shared_key",kind:"scalar",T:9},{no:3,name:"endpoint",kind:"scalar",T:9},{no:4,name:"keep_alive",kind:"scalar",T:5},{no:5,name:"allowed_ips",kind:"scalar",T:9,repeated:!0}]);class x extends e.v{static fromBinary(n,t){return new x().fromBinary(n,t)}static fromJson(n,t){return new x().fromJson(n,t)}static fromJsonString(n,t){return new x().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(x,n,t)}constructor(n){super(),this.secretKey="",this.endpoint=[],this.peers=[],this.mtu=0,this.reserved=new Uint8Array(0),this.idleTimeout=0,i.w.util.initPartial(n,this)}}x.runtime=i.w,x.typeName="yuhaiin.protocol.wireguard",x.fields=i.w.util.newFieldList(()=>[{no:1,name:"secret_key",kind:"scalar",T:9},{no:2,name:"endpoint",kind:"scalar",T:9,repeated:!0},{no:3,name:"peers",kind:"message",T:N,repeated:!0},{no:4,name:"mtu",kind:"scalar",T:5},{no:6,name:"reserved",kind:"scalar",T:12},{no:7,name:"idle_timeout",kind:"scalar",T:5}]);class F extends e.v{static fromBinary(n,t){return new F().fromBinary(n,t)}static fromJson(n,t){return new F().fromJson(n,t)}static fromJsonString(n,t){return new F().fromJsonString(n,t)}static equals(n,t){return i.w.util.equals(F,n,t)}constructor(n){super(),this.concurrency=0,i.w.util.initPartial(n,this)}}F.runtime=i.w,F.typeName="yuhaiin.protocol.mux",F.fields=i.w.util.newFieldList(()=>[{no:1,name:"concurrency",kind:"scalar",T:5}])}}]); \ No newline at end of file diff --git a/_next/static/chunks/427-cf7cb1c085033b87.js b/_next/static/chunks/427-cf7cb1c085033b87.js new file mode 100644 index 00000000..4f8bd0a7 --- /dev/null +++ b/_next/static/chunks/427-cf7cb1c085033b87.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[427],{4971:function(t,n,r){r.d(n,{$f:function(){return m},XE:function(){return f},YO:function(){return a},fG:function(){return e},gU:function(){return o},gW:function(){return d},qQ:function(){return i},r:function(){return c},rQ:function(){return s},zP:function(){return l}});var e="",i="https://raw.githubusercontent.com/yuhaiin/kitte/main/yuhaiin/remote.conf",s="https://clients3.google.com/generate_204",o="dns.nextdns.io:853",a=!0;let u=()=>{let t=localStorage.getItem("api_url");e=null!==t?t:"",null!==(t=localStorage.getItem("remote_bypass"))&&(i=t),null!==(t=localStorage.getItem("latency_http_url"))&&(s=t),null!==(t=localStorage.getItem("latency_dns_url"))&&(o=t),null!==(t=localStorage.getItem("latency_ipv6"))&&(a="true"===t)},c=t=>{w("api_url",t)},l=t=>{w("remote_bypass",t)},m=t=>{w("latency_dns_url",t)},f=t=>{w("latency_http_url",t)},d=t=>{w("latency_ipv6",t.toString())},w=(t,n)=>{""===n?localStorage.removeItem(t):localStorage.setItem(t,n),u()};u()},716:function(t,n,r){var e=r(7437),i=r(2514),s=r(6264),o=r.n(s);n.Z=function(t){return(0,e.jsxs)("div",{className:"z-1090 d-flex flex-column justify-content-center align-items-center",style:{height:"100px"},children:[void 0!==t.children&&(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(o(),{className:"p2",statusCode:void 0!==t.code?t.code:500,title:t.children})}),(0,e.jsx)("div",{className:"p2",children:(0,e.jsx)(i.Z,{})})]})}},879:function(t,n,r){r.d(n,{D:function(){return i},U:function(){return s}});var e=r(4971);function i(t,n,r){return i=>fetch("".concat(e.fG).concat(i),{method:n,body:r}).then(async n=>{if(!n.ok)throw{code:n.status,msg:n.statusText,raw:n.text()};return t.fromBinary(new Uint8Array(await n.arrayBuffer()))})}let s=async(t,n)=>{let r=await fetch("".concat(e.fG).concat(t),{method:void 0!==n.method?n.method:"POST",body:n.body});return r.ok?void 0===n.process?{}:{data:n.process(r)}:{error:{code:r.status,msg:r.text()}}}},629:function(t,n,r){r.d(n,{h:function(){return i},x:function(){return u}});var e,i,s=r(3256),o=r(1859),a=r(8401);(e=i||(i={}))[e.reserve=0]="reserve",e[e.remote=101]="remote",e[e.manual=102]="manual",s.w.util.setEnumType(i,"yuhaiin.point.origin",[{no:0,name:"reserve"},{no:101,name:"remote"},{no:102,name:"manual"}]);class u extends o.v{static fromBinary(t,n){return new u().fromBinary(t,n)}static fromJson(t,n){return new u().fromJson(t,n)}static fromJsonString(t,n){return new u().fromJsonString(t,n)}static equals(t,n){return s.w.util.equals(u,t,n)}constructor(t){super(),this.hash="",this.name="",this.group="",this.origin=0,this.protocols=[],s.w.util.initPartial(t,this)}}u.runtime=s.w,u.typeName="yuhaiin.point.point",u.fields=s.w.util.newFieldList(()=>[{no:1,name:"hash",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"group",kind:"scalar",T:9},{no:4,name:"origin",kind:"enum",T:s.w.getEnumType(i)},{no:5,name:"protocols",kind:"message",T:a.TF,repeated:!0}])},8401:function(t,n,r){r.d(n,{Cw:function(){return q},E1:function(){return N},Fr:function(){return g},Gf:function(){return v},If:function(){return p},MY:function(){return w},N4:function(){return d},Qz:function(){return o},TF:function(){return s},To:function(){return x},U$:function(){return S},Vh:function(){return u},YP:function(){return J},Yo:function(){return y},ZK:function(){return h},Zl:function(){return k},dJ:function(){return a},fW:function(){return c},fg:function(){return F},ho:function(){return B},i5:function(){return l},kY:function(){return f},lC:function(){return T},nB:function(){return m}});var e=r(1859),i=r(3256);class s extends e.v{static fromBinary(t,n){return new s().fromBinary(t,n)}static fromJson(t,n){return new s().fromJson(t,n)}static fromJsonString(t,n){return new s().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(s,t,n)}constructor(t){super(),this.protocol={case:void 0},i.w.util.initPartial(t,this)}}s.runtime=i.w,s.typeName="yuhaiin.protocol.protocol",s.fields=i.w.util.newFieldList(()=>[{no:1,name:"shadowsocks",kind:"message",T:u,oneof:"protocol"},{no:2,name:"shadowsocksr",kind:"message",T:c,oneof:"protocol"},{no:3,name:"vmess",kind:"message",T:m,oneof:"protocol"},{no:4,name:"websocket",kind:"message",T:p,oneof:"protocol"},{no:5,name:"quic",kind:"message",T:y,oneof:"protocol"},{no:6,name:"obfs_http",jsonName:"obfs_http",kind:"message",T:k,oneof:"protocol"},{no:7,name:"trojan",kind:"message",T:d,oneof:"protocol"},{no:8,name:"simple",kind:"message",T:T,oneof:"protocol"},{no:9,name:"none",kind:"message",T:J,oneof:"protocol"},{no:10,name:"socks5",kind:"message",T:o,oneof:"protocol"},{no:11,name:"http",kind:"message",T:a,oneof:"protocol"},{no:12,name:"direct",kind:"message",T:S,oneof:"protocol"},{no:13,name:"reject",kind:"message",T:_,oneof:"protocol"},{no:14,name:"yuubinsya",kind:"message",T:w,oneof:"protocol"},{no:15,name:"grpc",kind:"message",T:h,oneof:"protocol"},{no:16,name:"http2",kind:"message",T:l,oneof:"protocol"},{no:17,name:"reality",kind:"message",T:g,oneof:"protocol"},{no:18,name:"tls",kind:"message",T:v,oneof:"protocol"},{no:19,name:"wireguard",kind:"message",T:x,oneof:"protocol"},{no:20,name:"mux",kind:"message",T:F,oneof:"protocol"},{no:21,name:"drop",kind:"message",T:q,oneof:"protocol"},{no:22,name:"vless",kind:"message",T:f,oneof:"protocol"}]);class o extends e.v{static fromBinary(t,n){return new o().fromBinary(t,n)}static fromJson(t,n){return new o().fromJson(t,n)}static fromJsonString(t,n){return new o().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(o,t,n)}constructor(t){super(),this.hostname="",this.user="",this.password="",i.w.util.initPartial(t,this)}}o.runtime=i.w,o.typeName="yuhaiin.protocol.socks5",o.fields=i.w.util.newFieldList(()=>[{no:3,name:"hostname",kind:"scalar",T:9},{no:1,name:"user",kind:"scalar",T:9},{no:2,name:"password",kind:"scalar",T:9}]);class a extends e.v{static fromBinary(t,n){return new a().fromBinary(t,n)}static fromJson(t,n){return new a().fromJson(t,n)}static fromJsonString(t,n){return new a().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(a,t,n)}constructor(t){super(),this.user="",this.password="",i.w.util.initPartial(t,this)}}a.runtime=i.w,a.typeName="yuhaiin.protocol.http",a.fields=i.w.util.newFieldList(()=>[{no:1,name:"user",kind:"scalar",T:9},{no:2,name:"password",kind:"scalar",T:9}]);class u extends e.v{static fromBinary(t,n){return new u().fromBinary(t,n)}static fromJson(t,n){return new u().fromJson(t,n)}static fromJsonString(t,n){return new u().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(u,t,n)}constructor(t){super(),this.method="",this.password="",i.w.util.initPartial(t,this)}}u.runtime=i.w,u.typeName="yuhaiin.protocol.shadowsocks",u.fields=i.w.util.newFieldList(()=>[{no:1,name:"method",kind:"scalar",T:9},{no:2,name:"password",kind:"scalar",T:9}]);class c extends e.v{static fromBinary(t,n){return new c().fromBinary(t,n)}static fromJson(t,n){return new c().fromJson(t,n)}static fromJsonString(t,n){return new c().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(c,t,n)}constructor(t){super(),this.server="",this.port="",this.method="",this.password="",this.obfs="",this.obfsparam="",this.protocol="",this.protoparam="",i.w.util.initPartial(t,this)}}c.runtime=i.w,c.typeName="yuhaiin.protocol.shadowsocksr",c.fields=i.w.util.newFieldList(()=>[{no:1,name:"server",kind:"scalar",T:9},{no:2,name:"port",kind:"scalar",T:9},{no:3,name:"method",kind:"scalar",T:9},{no:4,name:"password",kind:"scalar",T:9},{no:5,name:"obfs",kind:"scalar",T:9},{no:6,name:"obfsparam",kind:"scalar",T:9},{no:7,name:"protocol",kind:"scalar",T:9},{no:8,name:"protoparam",kind:"scalar",T:9}]);class l extends e.v{static fromBinary(t,n){return new l().fromBinary(t,n)}static fromJson(t,n){return new l().fromJson(t,n)}static fromJsonString(t,n){return new l().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(l,t,n)}constructor(t){super(),this.concurrency=0,i.w.util.initPartial(t,this)}}l.runtime=i.w,l.typeName="yuhaiin.protocol.http2",l.fields=i.w.util.newFieldList(()=>[{no:1,name:"concurrency",kind:"scalar",T:5}]);class m extends e.v{static fromBinary(t,n){return new m().fromBinary(t,n)}static fromJson(t,n){return new m().fromJson(t,n)}static fromJsonString(t,n){return new m().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(m,t,n)}constructor(t){super(),this.uuid="",this.alterId="",this.security="",i.w.util.initPartial(t,this)}}m.runtime=i.w,m.typeName="yuhaiin.protocol.vmess",m.fields=i.w.util.newFieldList(()=>[{no:1,name:"uuid",jsonName:"id",kind:"scalar",T:9},{no:2,name:"alter_id",jsonName:"aid",kind:"scalar",T:9},{no:3,name:"security",kind:"scalar",T:9}]);class f extends e.v{static fromBinary(t,n){return new f().fromBinary(t,n)}static fromJson(t,n){return new f().fromJson(t,n)}static fromJsonString(t,n){return new f().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(f,t,n)}constructor(t){super(),this.uuid="",i.w.util.initPartial(t,this)}}f.runtime=i.w,f.typeName="yuhaiin.protocol.vless",f.fields=i.w.util.newFieldList(()=>[{no:1,name:"uuid",kind:"scalar",T:9}]);class d extends e.v{static fromBinary(t,n){return new d().fromBinary(t,n)}static fromJson(t,n){return new d().fromJson(t,n)}static fromJsonString(t,n){return new d().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(d,t,n)}constructor(t){super(),this.password="",this.peer="",i.w.util.initPartial(t,this)}}d.runtime=i.w,d.typeName="yuhaiin.protocol.trojan",d.fields=i.w.util.newFieldList(()=>[{no:1,name:"password",kind:"scalar",T:9},{no:2,name:"peer",kind:"scalar",T:9}]);class w extends e.v{static fromBinary(t,n){return new w().fromBinary(t,n)}static fromJson(t,n){return new w().fromJson(t,n)}static fromJsonString(t,n){return new w().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(w,t,n)}constructor(t){super(),this.password="",this.tcpEncrypt=!1,this.udpEncrypt=!1,this.udpOverStream=!1,i.w.util.initPartial(t,this)}}w.runtime=i.w,w.typeName="yuhaiin.protocol.yuubinsya",w.fields=i.w.util.newFieldList(()=>[{no:1,name:"password",kind:"scalar",T:9},{no:4,name:"tcp_encrypt",jsonName:"tcp_encrypt",kind:"scalar",T:8},{no:5,name:"udp_encrypt",jsonName:"udp_encrypt",kind:"scalar",T:8},{no:3,name:"udp_over_stream",jsonName:"udp_over_stream",kind:"scalar",T:8}]);class p extends e.v{static fromBinary(t,n){return new p().fromBinary(t,n)}static fromJson(t,n){return new p().fromJson(t,n)}static fromJsonString(t,n){return new p().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(p,t,n)}constructor(t){super(),this.host="",this.path="",i.w.util.initPartial(t,this)}}p.runtime=i.w,p.typeName="yuhaiin.protocol.websocket",p.fields=i.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:2,name:"path",kind:"scalar",T:9}]);class h extends e.v{static fromBinary(t,n){return new h().fromBinary(t,n)}static fromJson(t,n){return new h().fromJson(t,n)}static fromJsonString(t,n){return new h().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(h,t,n)}constructor(t){super(),i.w.util.initPartial(t,this)}}h.runtime=i.w,h.typeName="yuhaiin.protocol.grpc",h.fields=i.w.util.newFieldList(()=>[{no:1,name:"tls",kind:"message",T:v}]);class y extends e.v{static fromBinary(t,n){return new y().fromBinary(t,n)}static fromJson(t,n){return new y().fromJson(t,n)}static fromJsonString(t,n){return new y().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(y,t,n)}constructor(t){super(),this.host="",i.w.util.initPartial(t,this)}}y.runtime=i.w,y.typeName="yuhaiin.protocol.quic",y.fields=i.w.util.newFieldList(()=>[{no:2,name:"host",kind:"scalar",T:9},{no:1,name:"tls",kind:"message",T:v}]);class g extends e.v{static fromBinary(t,n){return new g().fromBinary(t,n)}static fromJson(t,n){return new g().fromJson(t,n)}static fromJsonString(t,n){return new g().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(g,t,n)}constructor(t){super(),this.serverName="",this.publicKey="",this.shortId="",this.debug=!1,i.w.util.initPartial(t,this)}}g.runtime=i.w,g.typeName="yuhaiin.protocol.reality",g.fields=i.w.util.newFieldList(()=>[{no:1,name:"server_name",jsonName:"server_name",kind:"scalar",T:9},{no:2,name:"public_key",jsonName:"public_key",kind:"scalar",T:9},{no:3,name:"short_id",jsonName:"short_id",kind:"scalar",T:9},{no:4,name:"debug",kind:"scalar",T:8}]);class k extends e.v{static fromBinary(t,n){return new k().fromBinary(t,n)}static fromJson(t,n){return new k().fromJson(t,n)}static fromJsonString(t,n){return new k().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(k,t,n)}constructor(t){super(),this.host="",this.port="",i.w.util.initPartial(t,this)}}k.runtime=i.w,k.typeName="yuhaiin.protocol.obfs_http",k.fields=i.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:2,name:"port",kind:"scalar",T:9}]);class J extends e.v{static fromBinary(t,n){return new J().fromBinary(t,n)}static fromJson(t,n){return new J().fromJson(t,n)}static fromJsonString(t,n){return new J().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(J,t,n)}constructor(t){super(),i.w.util.initPartial(t,this)}}J.runtime=i.w,J.typeName="yuhaiin.protocol.none",J.fields=i.w.util.newFieldList(()=>[]);class T extends e.v{static fromBinary(t,n){return new T().fromBinary(t,n)}static fromJson(t,n){return new T().fromJson(t,n)}static fromJsonString(t,n){return new T().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(T,t,n)}constructor(t){super(),this.host="",this.port=0,this.alternateHost=[],i.w.util.initPartial(t,this)}}T.runtime=i.w,T.typeName="yuhaiin.protocol.simple",T.fields=i.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:2,name:"port",kind:"scalar",T:5},{no:5,name:"alternate_host",jsonName:"alternate_host",kind:"message",T:B,repeated:!0}]);class v extends e.v{static fromBinary(t,n){return new v().fromBinary(t,n)}static fromJson(t,n){return new v().fromJson(t,n)}static fromJsonString(t,n){return new v().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(v,t,n)}constructor(t){super(),this.enable=!1,this.serverNames=[],this.caCert=[],this.insecureSkipVerify=!1,this.nextProtos=[],i.w.util.initPartial(t,this)}}v.runtime=i.w,v.typeName="yuhaiin.protocol.tls_config",v.fields=i.w.util.newFieldList(()=>[{no:1,name:"enable",kind:"scalar",T:8},{no:6,name:"server_names",jsonName:"servernames",kind:"scalar",T:9,repeated:!0},{no:3,name:"ca_cert",jsonName:"ca_cert",kind:"scalar",T:12,repeated:!0},{no:4,name:"insecure_skip_verify",jsonName:"insecure_skip_verify",kind:"scalar",T:8},{no:5,name:"next_protos",jsonName:"next_protos",kind:"scalar",T:9,repeated:!0}]);class S extends e.v{static fromBinary(t,n){return new S().fromBinary(t,n)}static fromJson(t,n){return new S().fromJson(t,n)}static fromJsonString(t,n){return new S().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(S,t,n)}constructor(t){super(),i.w.util.initPartial(t,this)}}S.runtime=i.w,S.typeName="yuhaiin.protocol.direct",S.fields=i.w.util.newFieldList(()=>[]);class _ extends e.v{static fromBinary(t,n){return new _().fromBinary(t,n)}static fromJson(t,n){return new _().fromJson(t,n)}static fromJsonString(t,n){return new _().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(_,t,n)}constructor(t){super(),i.w.util.initPartial(t,this)}}_.runtime=i.w,_.typeName="yuhaiin.protocol.reject",_.fields=i.w.util.newFieldList(()=>[]);class q extends e.v{static fromBinary(t,n){return new q().fromBinary(t,n)}static fromJson(t,n){return new q().fromJson(t,n)}static fromJsonString(t,n){return new q().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(q,t,n)}constructor(t){super(),i.w.util.initPartial(t,this)}}q.runtime=i.w,q.typeName="yuhaiin.protocol.drop",q.fields=i.w.util.newFieldList(()=>[]);class B extends e.v{static fromBinary(t,n){return new B().fromBinary(t,n)}static fromJson(t,n){return new B().fromJson(t,n)}static fromJsonString(t,n){return new B().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(B,t,n)}constructor(t){super(),this.host="",this.port=0,i.w.util.initPartial(t,this)}}B.runtime=i.w,B.typeName="yuhaiin.protocol.host",B.fields=i.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:2,name:"port",kind:"scalar",T:5}]);class N extends e.v{static fromBinary(t,n){return new N().fromBinary(t,n)}static fromJson(t,n){return new N().fromJson(t,n)}static fromJsonString(t,n){return new N().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(N,t,n)}constructor(t){super(),this.publicKey="",this.preSharedKey="",this.endpoint="",this.keepAlive=0,this.allowedIps=[],i.w.util.initPartial(t,this)}}N.runtime=i.w,N.typeName="yuhaiin.protocol.wireguard_peer_config",N.fields=i.w.util.newFieldList(()=>[{no:1,name:"public_key",kind:"scalar",T:9},{no:2,name:"pre_shared_key",kind:"scalar",T:9},{no:3,name:"endpoint",kind:"scalar",T:9},{no:4,name:"keep_alive",kind:"scalar",T:5},{no:5,name:"allowed_ips",kind:"scalar",T:9,repeated:!0}]);class x extends e.v{static fromBinary(t,n){return new x().fromBinary(t,n)}static fromJson(t,n){return new x().fromJson(t,n)}static fromJsonString(t,n){return new x().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(x,t,n)}constructor(t){super(),this.secretKey="",this.endpoint=[],this.peers=[],this.mtu=0,this.reserved=new Uint8Array(0),this.idleTimeout=0,i.w.util.initPartial(t,this)}}x.runtime=i.w,x.typeName="yuhaiin.protocol.wireguard",x.fields=i.w.util.newFieldList(()=>[{no:1,name:"secret_key",kind:"scalar",T:9},{no:2,name:"endpoint",kind:"scalar",T:9,repeated:!0},{no:3,name:"peers",kind:"message",T:N,repeated:!0},{no:4,name:"mtu",kind:"scalar",T:5},{no:6,name:"reserved",kind:"scalar",T:12},{no:7,name:"idle_timeout",kind:"scalar",T:5}]);class F extends e.v{static fromBinary(t,n){return new F().fromBinary(t,n)}static fromJson(t,n){return new F().fromJson(t,n)}static fromJsonString(t,n){return new F().fromJsonString(t,n)}static equals(t,n){return i.w.util.equals(F,t,n)}constructor(t){super(),this.concurrency=0,i.w.util.initPartial(t,this)}}F.runtime=i.w,F.typeName="yuhaiin.protocol.mux",F.fields=i.w.util.newFieldList(()=>[{no:1,name:"concurrency",kind:"scalar",T:5}])}}]); \ No newline at end of file diff --git a/_next/static/chunks/app/docs/config/page-6b98dd1cea46d30d.js b/_next/static/chunks/app/docs/config/page-6b98dd1cea46d30d.js deleted file mode 100644 index 93388795..00000000 --- a/_next/static/chunks/app/docs/config/page-6b98dd1cea46d30d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[347],{2280:function(e,n,t){Promise.resolve().then(t.bind(t,401))},4971:function(e,n,t){"use strict";t.d(n,{$f:function(){return d},XE:function(){return m},YO:function(){return i},fG:function(){return s},gU:function(){return o},gW:function(){return h},qQ:function(){return a},r:function(){return u},rQ:function(){return r},zP:function(){return c}});var s="",a="https://raw.githubusercontent.com/yuhaiin/kitte/main/yuhaiin/yuhaiin.conf",r="https://clients3.google.com/generate_204",o="dns.nextdns.io:853",i=!0;let l=()=>{let e=localStorage.getItem("api_url");s=null!==e?e:"",null!==(e=localStorage.getItem("remote_bypass"))&&(a=e),null!==(e=localStorage.getItem("latency_http_url"))&&(r=e),null!==(e=localStorage.getItem("latency_dns_url"))&&(o=e),null!==(e=localStorage.getItem("latency_ipv6"))&&(i="true"===e)},u=e=>{p("api_url",e)},c=e=>{p("remote_bypass",e)},d=e=>{p("latency_dns_url",e)},m=e=>{p("latency_http_url",e)},h=e=>{p("latency_ipv6",e.toString())},p=(e,n)=>{""===n?localStorage.removeItem(e):localStorage.setItem(e,n),l()};l()},716:function(e,n,t){"use strict";var s=t(7437),a=t(2514),r=t(6264),o=t.n(r);n.Z=function(e){return(0,s.jsxs)("div",{className:"z-1090 d-flex flex-column justify-content-center align-items-center",style:{height:"100px"},children:[void 0!==e.children&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o(),{className:"p2",statusCode:void 0!==e.code?e.code:500,title:e.children})}),(0,s.jsx)("div",{className:"p2",children:(0,s.jsx)(a.Z,{})})]})}},879:function(e,n,t){"use strict";t.d(n,{D:function(){return a},U:function(){return r}});var s=t(4971);function a(e,n,t){return a=>fetch("".concat(s.fG).concat(a),{method:n,body:t}).then(async n=>{if(!n.ok)throw{code:n.status,msg:n.statusText,raw:n.text()};return e.fromBinary(new Uint8Array(await n.arrayBuffer()))})}let r=async(e,n)=>{let t=await fetch("".concat(s.fG).concat(e),{method:void 0!==n.method?n.method:"POST",body:n.body});return t.ok?void 0===n.process?{}:{data:n.process(t)}:{error:{code:t.status,msg:t.text()}}}},401:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return ne}});var s,a,r,o,i,l,u,c,d,m,h,p,v,f,g=t(7437),x=t(2265),y=t(550),w=t(7185),j=t(5014),b=t(7420),k=t(358),C=t(6712),T=t(8977),_=t(844),N=t(2808),J=t(2312),S=t(8727),Z=t(6601),F=t(3256),q=t(1859);(s=c||(c={}))[s.reserve=0]="reserve",s[s.udp=1]="udp",s[s.tcp=2]="tcp",s[s.doh=3]="doh",s[s.dot=4]="dot",s[s.doq=5]="doq",s[s.doh3=6]="doh3",F.w.util.setEnumType(c,"yuhaiin.dns.type",[{no:0,name:"reserve"},{no:1,name:"udp"},{no:2,name:"tcp"},{no:3,name:"doh"},{no:4,name:"dot"},{no:5,name:"doq"},{no:6,name:"doh3"}]);class P extends q.v{static fromBinary(e,n){return new P().fromBinary(e,n)}static fromJson(e,n){return new P().fromJson(e,n)}static fromJsonString(e,n){return new P().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(P,e,n)}constructor(e){super(),this.host="",this.type=0,this.subnet="",this.tlsServername="",F.w.util.initPartial(e,this)}}P.runtime=F.w,P.typeName="yuhaiin.dns.dns",P.fields=F.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:5,name:"type",kind:"enum",T:F.w.getEnumType(c)},{no:4,name:"subnet",kind:"scalar",T:9},{no:2,name:"tls_servername",jsonName:"tls_servername",kind:"scalar",T:9}]);class B extends q.v{static fromBinary(e,n){return new B().fromBinary(e,n)}static fromJson(e,n){return new B().fromJson(e,n)}static fromJsonString(e,n){return new B().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(B,e,n)}constructor(e){super(),this.server="",this.fakedns=!1,this.fakednsIpRange="",this.fakednsIpv6Range="",this.fakednsWhitelist=[],this.resolveRemoteDomain=!1,this.hosts={},this.resolver={},F.w.util.initPartial(e,this)}}B.runtime=F.w,B.typeName="yuhaiin.dns.dns_config",B.fields=F.w.util.newFieldList(()=>[{no:4,name:"server",kind:"scalar",T:9},{no:5,name:"fakedns",kind:"scalar",T:8},{no:6,name:"fakedns_ip_range",jsonName:"fakedns_ip_range",kind:"scalar",T:9},{no:13,name:"fakedns_ipv6_range",jsonName:"fakedns_ipv6_range",kind:"scalar",T:9},{no:9,name:"fakedns_whitelist",jsonName:"fakedns_whitelist",kind:"scalar",T:9,repeated:!0},{no:7,name:"resolve_remote_domain",jsonName:"resolve_remote_domain",kind:"scalar",T:8},{no:1,name:"remote",kind:"message",T:P},{no:2,name:"local",kind:"message",T:P},{no:3,name:"bootstrap",kind:"message",T:P},{no:8,name:"hosts",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:10,name:"resolver",kind:"map",K:9,V:{kind:"message",T:P}}]);let V=x.memo(e=>{var n,t,s,a,r,o,i,l,u,c,d,m,h,p,v,f,y,w,j,k,C;let[T,_]=(0,x.useState)({key:"",value:""}),F=n=>{n(e.data),e.onChange(e.data)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{label:"Server",value:e.data.server,onChange:e=>F(n=>n.server=e)}),(0,g.jsx)(S.W2,{title:"FakeDNS",hideClose:!0,children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Z.J,{label:"Enabled",checked:e.data.fakedns,onChange:()=>F(e=>e.fakedns=!e.fakedns)}),(0,g.jsx)(S.Vf,{label:"IPv4 Range",value:e.data.fakednsIpRange,onChange:e=>F(n=>n.fakednsIpRange=e)}),(0,g.jsx)(S.Vf,{label:"IPv6 Range",value:e.data.fakednsIpv6Range,onChange:e=>F(n=>n.fakednsIpv6Range=e)}),(0,g.jsx)(S.yh,{title:"Whitelist",data:e.data.fakednsWhitelist,onChange:e=>F(n=>{e&&(n.fakednsWhitelist=e)})})]})}),(0,g.jsx)(S.W2,{title:"Local DNS",hideClose:!0,children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{label:"Host",value:null!==(h=null===(n=e.data.local)||void 0===n?void 0:n.host)&&void 0!==h?h:"",onChange:e=>F(n=>{void 0!==n.local&&(n.local.host=e)})}),(0,g.jsx)(I,{label:"Type",value:null===(t=e.data.local)||void 0===t?void 0:t.type,onChange:e=>F(n=>{void 0!==n.local&&(n.local.type=e)})}),(0,g.jsx)(S.Vf,{label:"Subnet",value:null!==(p=null===(s=e.data.local)||void 0===s?void 0:s.subnet)&&void 0!==p?p:"",onChange:e=>F(n=>{void 0!==n.local&&(n.local.subnet=e)})}),(0,g.jsx)(S.Vf,{label:"SNI",value:null!==(v=null===(a=e.data.local)||void 0===a?void 0:a.tlsServername)&&void 0!==v?v:"",onChange:e=>F(n=>{void 0!==n.local&&(n.local.tlsServername=e)})})]})}),(0,g.jsx)(S.W2,{title:"Remote DNS",hideClose:!0,children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Z.J,{label:"Use IP",checked:e.data.resolveRemoteDomain,onChange:()=>F(e=>e.resolveRemoteDomain=!e.resolveRemoteDomain)}),(0,g.jsx)(S.Vf,{label:"Host",value:null!==(f=null===(r=e.data.remote)||void 0===r?void 0:r.host)&&void 0!==f?f:"",onChange:e=>F(n=>{void 0!==n.remote&&(n.remote.host=e)})}),(0,g.jsx)(I,{label:"Type",value:null===(o=e.data.remote)||void 0===o?void 0:o.type,onChange:e=>F(n=>{void 0!==n.remote&&(n.remote.type=e)})}),(0,g.jsx)(S.Vf,{label:"Subnet",value:null!==(y=null===(i=e.data.remote)||void 0===i?void 0:i.subnet)&&void 0!==y?y:"",onChange:e=>F(n=>{void 0!==n.remote&&(n.remote.subnet=e)})}),(0,g.jsx)(S.Vf,{label:"SNI",value:null!==(w=null===(l=e.data.remote)||void 0===l?void 0:l.tlsServername)&&void 0!==w?w:"",onChange:e=>F(n=>{void 0!==n.remote&&(n.remote.tlsServername=e)})})]})}),(0,g.jsx)(S.W2,{title:"Remote DNS",hideClose:!0,children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{label:"Host",value:null!==(j=null===(u=e.data.bootstrap)||void 0===u?void 0:u.host)&&void 0!==j?j:"",onChange:e=>F(n=>{void 0!==n.bootstrap&&(n.bootstrap.host=e)})}),(0,g.jsx)(I,{label:"Type",value:null===(c=e.data.bootstrap)||void 0===c?void 0:c.type,onChange:e=>F(n=>{void 0!==n.bootstrap&&(n.bootstrap.type=e)})}),(0,g.jsx)(S.Vf,{label:"Subnet",value:null!==(k=null===(d=e.data.bootstrap)||void 0===d?void 0:d.subnet)&&void 0!==k?k:"",onChange:e=>F(n=>{void 0!==n.bootstrap&&(n.bootstrap.subnet=e)})}),(0,g.jsx)(S.Vf,{label:"SNI",value:null!==(C=null===(m=e.data.bootstrap)||void 0===m?void 0:m.tlsServername)&&void 0!==C?C:"",onChange:e=>F(n=>{void 0!==n.bootstrap&&(n.bootstrap.tlsServername=e)})})]})}),(0,g.jsx)(S.W2,{title:"Hosts",hideClose:!0,children:(0,g.jsxs)(g.Fragment,{children:[Object.entries(e.data.hosts).sort((e,n)=>{let[t]=e,[s]=n;return t>s?-1:1}).map(e=>{let[n,t]=e;return(0,g.jsxs)(J.Z,{className:"mb-2",children:[(0,g.jsx)(b.Z.Control,{readOnly:!0,value:n}),(0,g.jsx)(J.Z.Text,{children:(0,g.jsx)("i",{className:"bi bi-arrow-right"})}),(0,g.jsx)(b.Z.Control,{value:t,onChange:e=>F(t=>t.hosts[n]=e.target.value)}),(0,g.jsx)(N.Z,{variant:"outline-danger",onClick:()=>F(e=>delete e.hosts[n]),children:(0,g.jsx)("i",{className:"bi bi-x-lg"})})]},"hosts"+n)}),(0,g.jsxs)(J.Z,{className:"mb-2",children:[(0,g.jsx)(b.Z.Control,{value:T.key,onChange:e=>_({...T,key:e.target.value})}),(0,g.jsx)(J.Z.Text,{children:(0,g.jsx)("i",{className:"bi bi-arrow-right"})}),(0,g.jsx)(b.Z.Control,{value:T.value,onChange:e=>_({...T,value:e.target.value})}),(0,g.jsx)(N.Z,{variant:"outline-success",onClick:()=>{""!==T.key&&void 0===e.data.hosts[T.key]&&F(e=>e.hosts[T.key]=T.value)},children:(0,g.jsx)("i",{className:"bi bi-plus-lg"})})]})]})})]})});function I(e){var n;return(0,g.jsxs)(b.Z.Group,{as:k.Z,className:"mb-3",children:[(0,g.jsx)(b.Z.Label,{column:!0,sm:2,children:e.label}),(0,g.jsx)(C.Z,{sm:10,children:(0,g.jsx)(b.Z.Select,{value:c[null!==(n=e.value)&&void 0!==n?n:c.udp],onChange:n=>e.onChange(c[n.target.value]),children:F.w.getEnumType(c).values.filter(e=>0!==e.no).map(e=>(0,g.jsx)("option",{value:c[e.no],children:e.name},e.no))})})]})}(a=d||(d={}))[a.bypass=0]="bypass",a[a.direct=1]="direct",a[a.proxy=2]="proxy",a[a.block=3]="block",F.w.util.setEnumType(d,"yuhaiin.bypass.mode",[{no:0,name:"bypass"},{no:1,name:"direct"},{no:2,name:"proxy"},{no:3,name:"block"}]),(r=m||(m={}))[r.default=0]="default",r[r.prefer_ipv4=1]="prefer_ipv4",r[r.only_ipv4=2]="only_ipv4",r[r.prefer_ipv6=3]="prefer_ipv6",r[r.only_ipv6=4]="only_ipv6",F.w.util.setEnumType(m,"yuhaiin.bypass.resolve_strategy",[{no:0,name:"default"},{no:1,name:"prefer_ipv4"},{no:2,name:"only_ipv4"},{no:3,name:"prefer_ipv6"},{no:4,name:"only_ipv6"}]),(o=h||(h={}))[o.udp_proxy_fqdn_strategy_default=0]="udp_proxy_fqdn_strategy_default",o[o.resolve=1]="resolve",o[o.skip_resolve=2]="skip_resolve",F.w.util.setEnumType(h,"yuhaiin.bypass.udp_proxy_fqdn_strategy",[{no:0,name:"udp_proxy_fqdn_strategy_default"},{no:1,name:"resolve"},{no:2,name:"skip_resolve"}]);class L extends q.v{static fromBinary(e,n){return new L().fromBinary(e,n)}static fromJson(e,n){return new L().fromJson(e,n)}static fromJsonString(e,n){return new L().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(L,e,n)}constructor(e){super(),this.tcp=0,this.udp=0,this.bypassFile="",this.udpProxyFqdn=0,this.customRuleV3=[],F.w.util.initPartial(e,this)}}L.runtime=F.w,L.typeName="yuhaiin.bypass.bypass_config",L.fields=F.w.util.newFieldList(()=>[{no:3,name:"tcp",kind:"enum",T:F.w.getEnumType(d)},{no:4,name:"udp",kind:"enum",T:F.w.getEnumType(d)},{no:2,name:"bypass_file",jsonName:"bypass_file",kind:"scalar",T:9},{no:6,name:"udp_proxy_fqdn",jsonName:"udp_proxy_fqdn",kind:"enum",T:F.w.getEnumType(h)},{no:7,name:"custom_rule_v3",jsonName:"custom_rule_v3",kind:"message",T:E,repeated:!0}]);class E extends q.v{static fromBinary(e,n){return new E().fromBinary(e,n)}static fromJson(e,n){return new E().fromJson(e,n)}static fromJsonString(e,n){return new E().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(E,e,n)}constructor(e){super(),this.mode=0,this.tag="",this.hostname=[],this.resolveStrategy=0,this.udpProxyFqdnStrategy=0,F.w.util.initPartial(e,this)}}E.runtime=F.w,E.typeName="yuhaiin.bypass.mode_config",E.fields=F.w.util.newFieldList(()=>[{no:1,name:"mode",kind:"enum",T:F.w.getEnumType(d)},{no:2,name:"tag",kind:"scalar",T:9},{no:3,name:"hostname",kind:"scalar",T:9,repeated:!0},{no:4,name:"resolve_strategy",jsonName:"resolve_strategy",kind:"enum",T:F.w.getEnumType(m)},{no:6,name:"udp_proxy_fqdn_strategy",jsonName:"udp_proxy_fqdn_strategy",kind:"enum",T:F.w.getEnumType(h)}]),new L({tcp:d.bypass,udp:d.bypass,bypassFile:"yuhaiin.conf",customRuleV3:[]});let D=x.memo(e=>{let n=new E({hostname:["www.example.com"],mode:d.proxy,tag:"",resolveStrategy:m.default}),t=n=>{n(e.bypass),e.onChange(e.bypass)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(H,{label:"TCP",network:!0,value:e.bypass.tcp,onChange:e=>t(n=>n.tcp=e)}),(0,g.jsx)(H,{label:"UDP",network:!0,value:e.bypass.udp,onChange:e=>t(n=>n.udp=e)}),(0,g.jsx)(S.Vf,{label:"Bypass File",value:e.bypass.bypassFile,onChange:e=>t(n=>n.bypassFile=e)}),(0,g.jsx)(Z.J,{label:"Udp proxy Fqdn",checked:e.bypass.udpProxyFqdn===h.skip_resolve,onChange:()=>t(e=>e.udpProxyFqdn=e.udpProxyFqdn===h.skip_resolve?h.resolve:h.skip_resolve)}),(0,g.jsx)("hr",{}),e.bypass.customRuleV3.map((e,n)=>(0,g.jsx)(S.W2,{title:""!==e.tag?e.tag:d[e.mode],onClose:()=>t(e=>e.customRuleV3.splice(n,1)),children:(0,g.jsx)(R,{config:e,onChange:e=>t(t=>t.customRuleV3[n]=e)})},"rule"+n)),(0,g.jsx)("div",{className:"d-flex mb-2",children:(0,g.jsxs)(N.Z,{className:"flex-grow-1",variant:"outline-success",onClick:()=>t(e=>e.customRuleV3.push(n)),children:[(0,g.jsx)("i",{className:"bi bi-plus-lg mb-2"}),"New Rule"]})})]})}),R=e=>{let n=n=>{n(e.config),e.onChange(e.config)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(H,{label:"Mode",network:!1,value:e.config.mode,onChange:e=>n(n=>n.mode=e)}),(0,g.jsx)(S.Vf,{label:"Tag",value:e.config.tag,onChange:e=>n(n=>n.tag=e)}),(0,g.jsx)(K,{label:"Resolve Strategy",value:e.config.resolveStrategy,onChange:e=>n(n=>n.resolveStrategy=e)}),(0,g.jsx)(U,{label:"UDP proxy Fqdn",value:e.config.udpProxyFqdnStrategy,onChange:e=>n(n=>n.udpProxyFqdnStrategy=e)}),(0,g.jsx)(S.yh,{title:"IP/DOMAIN",data:e.config.hostname,onChange:e=>n(n=>{e&&(n.hostname=e)})})]})};function H(e){return(0,g.jsxs)(b.Z.Group,{as:k.Z,className:"mb-3",children:[(0,g.jsx)(b.Z.Label,{column:!0,sm:2,children:e.label}),(0,g.jsx)(C.Z,{sm:10,children:(0,g.jsxs)(b.Z.Select,{value:d[e.value],onChange:n=>e.onChange(d[n.target.value]),children:[e.network&&(0,g.jsx)("option",{value:d[d.bypass],children:"BYPASS"}),(0,g.jsx)("option",{value:d[d.direct],children:"DIRECT"}),(0,g.jsx)("option",{value:d[d.proxy],children:"PROXY"}),(0,g.jsx)("option",{value:d[d.block],children:"BLOCK"})]})})]})}function U(e){return(0,g.jsxs)(b.Z.Group,{as:k.Z,className:"mb-3",children:[(0,g.jsx)(b.Z.Label,{column:!0,sm:2,children:e.label}),(0,g.jsx)(C.Z,{sm:10,children:(0,g.jsxs)(b.Z.Select,{value:h[e.value],onChange:n=>e.onChange(h[n.target.value]),children:[(0,g.jsx)("option",{value:h[h.udp_proxy_fqdn_strategy_default],children:"Global"}),(0,g.jsx)("option",{value:h[h.resolve],children:"Resolve"}),(0,g.jsx)("option",{value:h[h.skip_resolve],children:"Skip"})]})})]})}function K(e){return(0,g.jsxs)(b.Z.Group,{as:k.Z,className:"mb-3",children:[(0,g.jsx)(b.Z.Label,{column:!0,sm:2,children:e.label}),(0,g.jsx)(C.Z,{sm:10,children:(0,g.jsxs)(b.Z.Select,{value:m[e.value],onChange:n=>e.onChange(m[n.target.value]),children:[(0,g.jsx)("option",{value:m[m.default],children:"default"}),(0,g.jsx)("option",{value:m[m.prefer_ipv4],children:"prefer_ipv4"}),(0,g.jsx)("option",{value:m[m.only_ipv4],children:"only_ipv4"}),(0,g.jsx)("option",{value:m[m.prefer_ipv6],children:"prefer_ipv6"}),(0,g.jsx)("option",{value:m[m.only_ipv6],children:"only_ipv6"})]})})]})}var G=t(9912);(i=p||(p={}))[i.tcp_udp_control_all=0]="tcp_udp_control_all",i[i.disable_tcp=1]="disable_tcp",i[i.disable_udp=2]="disable_udp",F.w.util.setEnumType(p,"yuhaiin.listener.tcp_udp_control",[{no:0,name:"tcp_udp_control_all"},{no:1,name:"disable_tcp"},{no:2,name:"disable_udp"}]);class O extends q.v{static fromBinary(e,n){return new O().fromBinary(e,n)}static fromJson(e,n){return new O().fromJson(e,n)}static fromJsonString(e,n){return new O().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(O,e,n)}constructor(e){super(),this.hijackDns=!1,this.hijackDnsFakeip=!1,this.servers={},this.inbounds={},F.w.util.initPartial(e,this)}}O.runtime=F.w,O.typeName="yuhaiin.listener.inbound_config",O.fields=F.w.util.newFieldList(()=>[{no:2,name:"hijack_dns",jsonName:"hijack_dns",kind:"scalar",T:8},{no:3,name:"hijack_dns_fakeip",jsonName:"hijack_dns_fakeip",kind:"scalar",T:8},{no:5,name:"servers",kind:"map",K:9,V:{kind:"message",T:M}},{no:1,name:"inbounds",kind:"map",K:9,V:{kind:"message",T:W}},{no:4,name:"sniff",kind:"message",T:ex}]);class W extends q.v{static fromBinary(e,n){return new W().fromBinary(e,n)}static fromJson(e,n){return new W().fromJson(e,n)}static fromJsonString(e,n){return new W().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(W,e,n)}constructor(e){super(),this.name="",this.enabled=!1,this.network={case:void 0},this.transport=[],this.protocol={case:void 0},F.w.util.initPartial(e,this)}}W.runtime=F.w,W.typeName="yuhaiin.listener.inbound",W.fields=F.w.util.newFieldList(()=>[{no:13,name:"name",kind:"scalar",T:9},{no:14,name:"enabled",kind:"scalar",T:8},{no:21,name:"empty",kind:"message",T:z,oneof:"network"},{no:15,name:"tcpudp",kind:"message",T:Y,oneof:"network"},{no:16,name:"quic",kind:"message",T:X,oneof:"network"},{no:2,name:"transport",kind:"message",T:A,repeated:!0},{no:3,name:"http",kind:"message",T:$,oneof:"protocol"},{no:4,name:"socks5",kind:"message",T:ee,oneof:"protocol"},{no:7,name:"yuubinsya",kind:"message",T:ei,oneof:"protocol"},{no:8,name:"mix",jsonName:"mixed",kind:"message",T:et,oneof:"protocol"},{no:9,name:"socks4a",kind:"message",T:en,oneof:"protocol"},{no:20,name:"tproxy",kind:"message",T:ea,oneof:"protocol"},{no:18,name:"redir",kind:"message",T:es,oneof:"protocol"},{no:19,name:"tun",kind:"message",T:er,oneof:"protocol"}]);class A extends q.v{static fromBinary(e,n){return new A().fromBinary(e,n)}static fromJson(e,n){return new A().fromJson(e,n)}static fromJsonString(e,n){return new A().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(A,e,n)}constructor(e){super(),this.transport={case:void 0},F.w.util.initPartial(e,this)}}A.runtime=F.w,A.typeName="yuhaiin.listener.transport",A.fields=F.w.util.newFieldList(()=>[{no:12,name:"normal",kind:"message",T:eu,oneof:"transport"},{no:1,name:"tls",kind:"message",T:em,oneof:"transport"},{no:2,name:"mux",kind:"message",T:Q,oneof:"transport"},{no:5,name:"http2",kind:"message",T:ep,oneof:"transport"},{no:6,name:"websocket",kind:"message",T:ec,oneof:"transport"},{no:11,name:"grpc",kind:"message",T:eh,oneof:"transport"},{no:10,name:"reality",kind:"message",T:ev,oneof:"transport"}]);class M extends q.v{static fromBinary(e,n){return new M().fromBinary(e,n)}static fromJson(e,n){return new M().fromJson(e,n)}static fromJsonString(e,n){return new M().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(M,e,n)}constructor(e){super(),this.name="",this.enabled=!1,this.protocol={case:void 0},F.w.util.initPartial(e,this)}}M.runtime=F.w,M.typeName="yuhaiin.listener.protocol",M.fields=F.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"enabled",kind:"scalar",T:8},{no:3,name:"http",kind:"message",T:$,oneof:"protocol"},{no:4,name:"socks5",kind:"message",T:ee,oneof:"protocol"},{no:5,name:"redir",kind:"message",T:es,oneof:"protocol"},{no:6,name:"tun",kind:"message",T:er,oneof:"protocol"},{no:7,name:"yuubinsya",kind:"message",T:ei,oneof:"protocol"},{no:8,name:"mix",jsonName:"mixed",kind:"message",T:et,oneof:"protocol"},{no:9,name:"socks4a",kind:"message",T:en,oneof:"protocol"},{no:10,name:"tproxy",kind:"message",T:ea,oneof:"protocol"}]);class z extends q.v{static fromBinary(e,n){return new z().fromBinary(e,n)}static fromJson(e,n){return new z().fromJson(e,n)}static fromJsonString(e,n){return new z().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(z,e,n)}constructor(e){super(),F.w.util.initPartial(e,this)}}z.runtime=F.w,z.typeName="yuhaiin.listener.empty",z.fields=F.w.util.newFieldList(()=>[]);class Q extends q.v{static fromBinary(e,n){return new Q().fromBinary(e,n)}static fromJson(e,n){return new Q().fromJson(e,n)}static fromJsonString(e,n){return new Q().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(Q,e,n)}constructor(e){super(),F.w.util.initPartial(e,this)}}Q.runtime=F.w,Q.typeName="yuhaiin.listener.mux",Q.fields=F.w.util.newFieldList(()=>[]);class Y extends q.v{static fromBinary(e,n){return new Y().fromBinary(e,n)}static fromJson(e,n){return new Y().fromJson(e,n)}static fromJsonString(e,n){return new Y().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(Y,e,n)}constructor(e){super(),this.host="",this.control=0,F.w.util.initPartial(e,this)}}Y.runtime=F.w,Y.typeName="yuhaiin.listener.tcpudp",Y.fields=F.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:2,name:"control",kind:"enum",T:F.w.getEnumType(p)}]);class X extends q.v{static fromBinary(e,n){return new X().fromBinary(e,n)}static fromJson(e,n){return new X().fromJson(e,n)}static fromJsonString(e,n){return new X().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(X,e,n)}constructor(e){super(),this.host="",F.w.util.initPartial(e,this)}}X.runtime=F.w,X.typeName="yuhaiin.listener.quic2",X.fields=F.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:3,name:"tls",kind:"message",T:ef}]);class $ extends q.v{static fromBinary(e,n){return new $().fromBinary(e,n)}static fromJson(e,n){return new $().fromJson(e,n)}static fromJsonString(e,n){return new $().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals($,e,n)}constructor(e){super(),this.host="",this.username="",this.password="",F.w.util.initPartial(e,this)}}$.runtime=F.w,$.typeName="yuhaiin.listener.http",$.fields=F.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:3,name:"username",kind:"scalar",T:9},{no:4,name:"password",kind:"scalar",T:9}]);class ee extends q.v{static fromBinary(e,n){return new ee().fromBinary(e,n)}static fromJson(e,n){return new ee().fromJson(e,n)}static fromJsonString(e,n){return new ee().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(ee,e,n)}constructor(e){super(),this.host="",this.username="",this.password="",this.udp=!1,F.w.util.initPartial(e,this)}}ee.runtime=F.w,ee.typeName="yuhaiin.listener.socks5",ee.fields=F.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:3,name:"username",kind:"scalar",T:9},{no:4,name:"password",kind:"scalar",T:9},{no:5,name:"udp",kind:"scalar",T:8}]);class en extends q.v{static fromBinary(e,n){return new en().fromBinary(e,n)}static fromJson(e,n){return new en().fromJson(e,n)}static fromJsonString(e,n){return new en().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(en,e,n)}constructor(e){super(),this.host="",this.username="",F.w.util.initPartial(e,this)}}en.runtime=F.w,en.typeName="yuhaiin.listener.socks4a",en.fields=F.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:2,name:"username",kind:"scalar",T:9}]);class et extends q.v{static fromBinary(e,n){return new et().fromBinary(e,n)}static fromJson(e,n){return new et().fromJson(e,n)}static fromJsonString(e,n){return new et().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(et,e,n)}constructor(e){super(),this.host="",this.username="",this.password="",F.w.util.initPartial(e,this)}}et.runtime=F.w,et.typeName="yuhaiin.listener.mixed",et.fields=F.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:3,name:"username",kind:"scalar",T:9},{no:4,name:"password",kind:"scalar",T:9}]);class es extends q.v{static fromBinary(e,n){return new es().fromBinary(e,n)}static fromJson(e,n){return new es().fromJson(e,n)}static fromJsonString(e,n){return new es().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(es,e,n)}constructor(e){super(),this.host="",F.w.util.initPartial(e,this)}}es.runtime=F.w,es.typeName="yuhaiin.listener.redir",es.fields=F.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9}]);class ea extends q.v{static fromBinary(e,n){return new ea().fromBinary(e,n)}static fromJson(e,n){return new ea().fromJson(e,n)}static fromJsonString(e,n){return new ea().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(ea,e,n)}constructor(e){super(),this.host="",this.dnsHijacking=!1,this.forceFakeip=!1,F.w.util.initPartial(e,this)}}ea.runtime=F.w,ea.typeName="yuhaiin.listener.tproxy",ea.fields=F.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:2,name:"dns_hijacking",jsonName:"dns_hijacking",kind:"scalar",T:8},{no:3,name:"force_fakeip",jsonName:"force_fakeip",kind:"scalar",T:8}]);class er extends q.v{static fromBinary(e,n){return new er().fromBinary(e,n)}static fromJson(e,n){return new er().fromJson(e,n)}static fromJsonString(e,n){return new er().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(er,e,n)}constructor(e){super(),this.name="",this.mtu=0,this.gateway="",this.dnsHijacking=!1,this.forceFakeip=!1,this.skipMulticast=!1,this.driver=0,this.portal="",this.portalV6="",this.postUp=[],this.postDown=[],F.w.util.initPartial(e,this)}}er.runtime=F.w,er.typeName="yuhaiin.listener.tun",er.fields=F.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"mtu",kind:"scalar",T:5},{no:3,name:"gateway",kind:"scalar",T:9},{no:4,name:"dns_hijacking",jsonName:"dns_hijacking",kind:"scalar",T:8},{no:9,name:"force_fakeip",jsonName:"force_fakeip",kind:"scalar",T:8},{no:6,name:"skip_multicast",jsonName:"skip_multicast",kind:"scalar",T:8},{no:7,name:"driver",kind:"enum",T:F.w.getEnumType(v)},{no:8,name:"portal",kind:"scalar",T:9},{no:11,name:"portal_v6",jsonName:"portal_v6",kind:"scalar",T:9},{no:10,name:"route",kind:"message",T:eo},{no:12,name:"post_up",jsonName:"post_up",kind:"scalar",T:9,repeated:!0},{no:13,name:"post_down",jsonName:"post_down",kind:"scalar",T:9,repeated:!0}]),(l=v||(v={}))[l.fdbased=0]="fdbased",l[l.channel=1]="channel",l[l.system_gvisor=2]="system_gvisor",F.w.util.setEnumType(v,"yuhaiin.listener.tun.endpoint_driver",[{no:0,name:"fdbased"},{no:1,name:"channel"},{no:2,name:"system_gvisor"}]);class eo extends q.v{static fromBinary(e,n){return new eo().fromBinary(e,n)}static fromJson(e,n){return new eo().fromJson(e,n)}static fromJsonString(e,n){return new eo().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(eo,e,n)}constructor(e){super(),this.routes=[],this.excludes=[],F.w.util.initPartial(e,this)}}eo.runtime=F.w,eo.typeName="yuhaiin.listener.route",eo.fields=F.w.util.newFieldList(()=>[{no:1,name:"routes",kind:"scalar",T:9,repeated:!0},{no:2,name:"excludes",kind:"scalar",T:9,repeated:!0}]);class ei extends q.v{static fromBinary(e,n){return new ei().fromBinary(e,n)}static fromJson(e,n){return new ei().fromJson(e,n)}static fromJsonString(e,n){return new ei().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(ei,e,n)}constructor(e){super(),this.host="",this.password="",this.tcpEncrypt=!1,this.udpEncrypt=!1,this.mux=!1,this.protocol={case:void 0},F.w.util.initPartial(e,this)}}ei.runtime=F.w,ei.typeName="yuhaiin.listener.yuubinsya",ei.fields=F.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:2,name:"password",kind:"scalar",T:9},{no:12,name:"tcp_encrypt",jsonName:"tcp_encrypt",kind:"scalar",T:8},{no:13,name:"udp_encrypt",jsonName:"udp_encrypt",kind:"scalar",T:8},{no:11,name:"mux",kind:"scalar",T:8},{no:3,name:"normal",kind:"message",T:eu,oneof:"protocol"},{no:4,name:"tls",kind:"message",T:em,oneof:"protocol"},{no:5,name:"quic",kind:"message",T:ed,oneof:"protocol"},{no:6,name:"websocket",kind:"message",T:ec,oneof:"protocol"},{no:7,name:"grpc",kind:"message",T:eh,oneof:"protocol"},{no:9,name:"http2",kind:"message",T:ep,oneof:"protocol"},{no:10,name:"reality",kind:"message",T:ev,oneof:"protocol"}]);class el extends q.v{static fromBinary(e,n){return new el().fromBinary(e,n)}static fromJson(e,n){return new el().fromJson(e,n)}static fromJsonString(e,n){return new el().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(el,e,n)}constructor(e){super(),F.w.util.initPartial(e,this)}}el.runtime=F.w,el.typeName="yuhaiin.listener.yuubinsya.protocol_normal",el.fields=F.w.util.newFieldList(()=>[]);class eu extends q.v{static fromBinary(e,n){return new eu().fromBinary(e,n)}static fromJson(e,n){return new eu().fromJson(e,n)}static fromJsonString(e,n){return new eu().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(eu,e,n)}constructor(e){super(),F.w.util.initPartial(e,this)}}eu.runtime=F.w,eu.typeName="yuhaiin.listener.normal",eu.fields=F.w.util.newFieldList(()=>[]);class ec extends q.v{static fromBinary(e,n){return new ec().fromBinary(e,n)}static fromJson(e,n){return new ec().fromJson(e,n)}static fromJsonString(e,n){return new ec().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(ec,e,n)}constructor(e){super(),F.w.util.initPartial(e,this)}}ec.runtime=F.w,ec.typeName="yuhaiin.listener.websocket",ec.fields=F.w.util.newFieldList(()=>[{no:1,name:"tls",kind:"message",T:ef}]);class ed extends q.v{static fromBinary(e,n){return new ed().fromBinary(e,n)}static fromJson(e,n){return new ed().fromJson(e,n)}static fromJsonString(e,n){return new ed().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(ed,e,n)}constructor(e){super(),F.w.util.initPartial(e,this)}}ed.runtime=F.w,ed.typeName="yuhaiin.listener.quic",ed.fields=F.w.util.newFieldList(()=>[{no:1,name:"tls",kind:"message",T:ef}]);class em extends q.v{static fromBinary(e,n){return new em().fromBinary(e,n)}static fromJson(e,n){return new em().fromJson(e,n)}static fromJsonString(e,n){return new em().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(em,e,n)}constructor(e){super(),F.w.util.initPartial(e,this)}}em.runtime=F.w,em.typeName="yuhaiin.listener.tls",em.fields=F.w.util.newFieldList(()=>[{no:1,name:"tls",kind:"message",T:ef}]);class eh extends q.v{static fromBinary(e,n){return new eh().fromBinary(e,n)}static fromJson(e,n){return new eh().fromJson(e,n)}static fromJsonString(e,n){return new eh().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(eh,e,n)}constructor(e){super(),F.w.util.initPartial(e,this)}}eh.runtime=F.w,eh.typeName="yuhaiin.listener.grpc",eh.fields=F.w.util.newFieldList(()=>[{no:1,name:"tls",kind:"message",T:ef}]);class ep extends q.v{static fromBinary(e,n){return new ep().fromBinary(e,n)}static fromJson(e,n){return new ep().fromJson(e,n)}static fromJsonString(e,n){return new ep().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(ep,e,n)}constructor(e){super(),F.w.util.initPartial(e,this)}}ep.runtime=F.w,ep.typeName="yuhaiin.listener.http2",ep.fields=F.w.util.newFieldList(()=>[{no:1,name:"tls",kind:"message",T:ef}]);class ev extends q.v{static fromBinary(e,n){return new ev().fromBinary(e,n)}static fromJson(e,n){return new ev().fromJson(e,n)}static fromJsonString(e,n){return new ev().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(ev,e,n)}constructor(e){super(),this.shortId=[],this.serverName=[],this.dest="",this.privateKey="",this.debug=!1,F.w.util.initPartial(e,this)}}ev.runtime=F.w,ev.typeName="yuhaiin.listener.reality",ev.fields=F.w.util.newFieldList(()=>[{no:1,name:"short_id",jsonName:"short_id",kind:"scalar",T:9,repeated:!0},{no:2,name:"server_name",jsonName:"server_name",kind:"scalar",T:9,repeated:!0},{no:3,name:"dest",kind:"scalar",T:9},{no:4,name:"private_key",jsonName:"private_key",kind:"scalar",T:9},{no:5,name:"debug",kind:"scalar",T:8}]);class ef extends q.v{static fromBinary(e,n){return new ef().fromBinary(e,n)}static fromJson(e,n){return new ef().fromJson(e,n)}static fromJsonString(e,n){return new ef().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(ef,e,n)}constructor(e){super(),this.certificates=[],this.nextProtos=[],this.serverNameCertificate={},F.w.util.initPartial(e,this)}}ef.runtime=F.w,ef.typeName="yuhaiin.listener.tls_config",ef.fields=F.w.util.newFieldList(()=>[{no:1,name:"certificates",kind:"message",T:eg,repeated:!0},{no:3,name:"next_protos",jsonName:"next_protos",kind:"scalar",T:9,repeated:!0},{no:4,name:"server_name_certificate",jsonName:"server_name_certificate",kind:"map",K:9,V:{kind:"message",T:eg}}]);class eg extends q.v{static fromBinary(e,n){return new eg().fromBinary(e,n)}static fromJson(e,n){return new eg().fromJson(e,n)}static fromJsonString(e,n){return new eg().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(eg,e,n)}constructor(e){super(),this.cert=new Uint8Array(0),this.key=new Uint8Array(0),this.certFilePath="",this.keyFilePath="",F.w.util.initPartial(e,this)}}eg.runtime=F.w,eg.typeName="yuhaiin.listener.certificate",eg.fields=F.w.util.newFieldList(()=>[{no:1,name:"cert",kind:"scalar",T:12},{no:2,name:"key",kind:"scalar",T:12},{no:3,name:"cert_file_path",jsonName:"cert_file_path",kind:"scalar",T:9},{no:4,name:"key_file_path",jsonName:"key_file_path",kind:"scalar",T:9}]);class ex extends q.v{static fromBinary(e,n){return new ex().fromBinary(e,n)}static fromJson(e,n){return new ex().fromJson(e,n)}static fromJsonString(e,n){return new ex().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(ex,e,n)}constructor(e){super(),this.enabled=!1,F.w.util.initPartial(e,this)}}ex.runtime=F.w,ex.typeName="yuhaiin.listener.sniff",ex.fields=F.w.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8}]);let ey=x.memo(e=>{let n=n=>{n(e.http),e.onChange(e.http)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{label:"Host",value:e.http.host,onChange:e=>n(n=>n.host=e)}),(0,g.jsx)(S.Vf,{label:"Username",value:e.http.username,onChange:e=>n(n=>n.username=e)}),(0,g.jsx)(S.Vf,{label:"Password",value:e.http.password,onChange:e=>n(n=>n.password=e)})]})}),ew=x.memo(e=>{let n=n=>{n(e.redir),e.onChange(e.redir)};return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(S.Vf,{label:"Host",value:e.redir.host,onChange:e=>n(n=>n.host=e)})})}),ej=x.memo(e=>{let n=n=>{n(e.tproxy),e.onChange(e.tproxy)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Z.J,{label:"DNS Hijacking",checked:e.tproxy.dnsHijacking,onChange:()=>n(e=>e.dnsHijacking=!e.dnsHijacking)}),(0,g.jsx)(Z.J,{label:"Force Fake IP",checked:e.tproxy.forceFakeip,onChange:()=>n(e=>e.forceFakeip=!e.forceFakeip)}),(0,g.jsx)(S.Vf,{label:"Host",value:e.tproxy.host,onChange:e=>n(n=>n.host=e)})]})}),eb=x.memo(e=>{let n=n=>{n(e.socks5),e.onChange(e.socks5)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{label:"Host",value:e.socks5.host,onChange:e=>n(n=>n.host=e)}),(0,g.jsx)(S.Vf,{label:"Username",value:e.socks5.username,onChange:e=>n(n=>n.username=e)}),(0,g.jsx)(S.Vf,{label:"Password",value:e.socks5.password,onChange:e=>n(n=>n.password=e)})]})}),ek=x.memo(e=>{let n=n=>{n(e.mixed),e.onChange(e.mixed)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{label:"Host",value:e.mixed.host,onChange:e=>n(n=>n.host=e)}),(0,g.jsx)(S.Vf,{label:"Username",value:e.mixed.username,onChange:e=>n(n=>n.username=e)}),(0,g.jsx)(S.Vf,{label:"Password",value:e.mixed.password,onChange:e=>n(n=>n.password=e)})]})}),eC=x.memo(e=>{var n,t;let s=n=>{n(e.tun),e.onChange(e.tun)},[a,r]=(0,x.useState)((0,G.v_)(e.tun.postUp)),[o,i]=(0,x.useState)((0,G.v_)(e.tun.postDown));return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Z.J,{checked:e.tun.skipMulticast,onChange:()=>s(e=>e.skipMulticast=!e.skipMulticast),label:"Skip Multicast"}),(0,g.jsx)(S.Vf,{label:"Name",value:e.tun.name,onChange:e=>s(n=>n.name=e)}),(0,g.jsx)(S.Vf,{label:"MTU",value:e.tun.mtu,onChange:e=>s(n=>n.mtu=isNaN(Number(e))?n.mtu:Number(e))}),(0,g.jsx)(S.Vf,{label:"IPv4",value:e.tun.portal,onChange:e=>s(n=>n.portal=e)}),(0,g.jsx)(S.Vf,{label:"IPv6",value:e.tun.portalV6,onChange:e=>s(n=>n.portalV6=e)}),(0,g.jsx)(S.Vf,{label:"Post Up",value:a,onChange:e=>{r(e);try{let n=(0,G.Vl)(e);s(e=>e.postUp=n)}catch(e){console.log(e)}}}),(0,g.jsx)(S.Vf,{label:"Post Down",value:o,onChange:e=>{i(e);try{let n=(0,G.Vl)(e);s(e=>e.postDown=n)}catch(e){console.log(e)}}}),(0,g.jsx)(function(e){return(0,g.jsxs)(b.Z.Group,{as:k.Z,className:"mb-3",children:[(0,g.jsx)(b.Z.Label,{column:!0,sm:2,children:e.label}),(0,g.jsx)(C.Z,{sm:10,children:(0,g.jsxs)(b.Z.Select,{value:v[void 0===e.value||null===e.value?v.fdbased:e.value],onChange:n=>e.onChange(v[n.target.value]),children:[(0,g.jsx)("option",{value:v[v.fdbased],children:"Fdbased"}),(0,g.jsx)("option",{value:v[v.channel],children:"Channel"}),(0,g.jsx)("option",{value:v[v.system_gvisor],children:"System"})]})})]})},{label:"Stack",value:e.tun.driver,onChange:e=>s(n=>n.driver=e)}),(0,g.jsx)(S.yh,{title:"Routes",data:null!==(t=null===(n=e.tun.route)||void 0===n?void 0:n.routes)&&void 0!==t?t:[],onChange:e=>s(n=>{n.route||(n.route=new eo),e||(e=[]),n.route&&(n.route.routes=e)})})]})}),eT=e=>null==e||void 0===e.certificates&&void 0===e.nextProtos&&void 0===e.serverNameCertificate,e_=x.memo(e=>{let n=n=>{n(e.cert),e.onChange(e.cert)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.NZ,{label:"Cert",value:new TextDecoder().decode(e.cert.cert),onChange:e=>n(n=>{n.cert=new TextEncoder().encode(e)})}),(0,g.jsx)(S.NZ,{label:"Key",value:new TextDecoder().decode(e.cert.key),onChange:e=>n(n=>{n.key=new TextEncoder().encode(e)})}),(0,g.jsx)(S.Vf,{label:"Cert File",value:e.cert.certFilePath,onChange:e=>n(n=>{n.certFilePath=e})}),(0,g.jsx)(S.Vf,{label:"Key File",value:e.cert.keyFilePath,onChange:e=>n(n=>{n.keyFilePath=e})})]})}),eN=x.memo(e=>{var n,t;let[s,a]=(0,x.useState)("www.example.com"),r=n=>{n(e.tls),e.onChange(e.tls)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.yh,{title:"Next Protos",data:null!==(t=null===(n=e.tls)||void 0===n?void 0:n.nextProtos)&&void 0!==t?t:[],onChange:e=>r(n=>{e&&(n.nextProtos=e)})}),e.tls&&e.tls.certificates.map((e,n)=>(0,g.jsx)(w.Z,{className:"mb-2",children:(0,g.jsxs)(w.Z.Body,{children:[(0,g.jsx)(w.Z.Title,{className:"d-flex justify-content-end align-items-center",children:(0,g.jsx)(N.Z,{variant:"outline-danger",onClick:()=>r(e=>{(null==e?void 0:e.certificates)!==void 0&&e.certificates.splice(n,1)}),children:(0,g.jsx)("i",{className:"bi bi-x-lg"})})}),(0,g.jsx)(e_,{cert:new eg(e),onChange:e=>r(t=>{(null==t?void 0:t.certificates)!==void 0&&(t.certificates[n]=e)})})]})},"tls_certificates"+n)),(0,g.jsx)(J.Z,{className:"d-flex justify-content-end mb-2",children:(0,g.jsxs)(N.Z,{variant:"outline-success",onClick:()=>r(e=>{e.certificates.push(new eg({cert:new Uint8Array(0),key:new Uint8Array(0),certFilePath:"",keyFilePath:""}))}),children:[(0,g.jsx)("i",{className:"bi bi-plus-lg"}),"New Certificate"]})}),e.tls&&e.tls.serverNameCertificate&&Object.entries(e.tls.serverNameCertificate).map(e=>{let[n,t]=e;return(0,g.jsx)(w.Z,{className:"mb-2",children:(0,g.jsxs)(w.Z.Body,{children:[(0,g.jsxs)(w.Z.Title,{className:"d-flex justify-content-between align-items-center",children:[n,(0,g.jsx)(N.Z,{variant:"outline-danger",onClick:()=>r(e=>{null==e||delete e.serverNameCertificate[n]}),children:(0,g.jsx)("i",{className:"bi bi-x-lg"})})]}),(0,g.jsx)(e_,{cert:new eg(t),onChange:e=>r(t=>{t.serverNameCertificate[n]=e})})]})},"server_name_certificate"+n)}),(0,g.jsxs)(J.Z,{className:"d-flex justify-content-end",children:[(0,g.jsx)(b.Z.Control,{value:s,onChange:e=>a(e.target.value)}),(0,g.jsxs)(N.Z,{variant:"outline-success",onClick:()=>r(e=>{""!==s&&(e.serverNameCertificate[s]=new eg({}))}),children:[(0,g.jsx)("i",{className:"bi bi-plus-lg"}),"New SNI Certificate"]})]})]})}),eJ=x.memo(e=>{var n;let t=n=>{eT(e.websocket.tls)&&(e.websocket.tls=void 0),n(e.websocket),e.onChange(e.websocket)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{plaintext:!0,label:"Protocol",value:"Websocket"}),e.websocket.tls&&(0,g.jsx)(eN,{tls:new ef(null!==(n=e.websocket.tls)&&void 0!==n?n:void 0),onChange:e=>t(n=>n.tls=e)})]})}),eS=x.memo(e=>{let n=n=>{eT(e.quic.tls)&&(e.quic.tls=void 0),n(e.quic),e.onChange(e.quic)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{plaintext:!0,label:"Protocol",value:"QUIC"}),e.quic.tls&&(0,g.jsx)(eN,{tls:new ef(null!==e.quic.tls?e.quic.tls:void 0),onChange:e=>n(n=>n.tls=e)})]})}),eZ=x.memo(e=>{let n=n=>{eT(e.quic.tls)&&(e.quic.tls=void 0),n(e.quic),e.onChange(e.quic)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{label:"Host",onChange:e=>n(n=>n.host=e),value:e.quic.host}),e.quic.tls&&(0,g.jsx)(eN,{tls:new ef(null!==e.quic.tls?e.quic.tls:void 0),onChange:e=>n(n=>n.tls=e)})]})}),eF=x.memo(e=>{let n=n=>{eT(e.grpc.tls)&&(e.grpc.tls=void 0),n(e.grpc),e.onChange(e.grpc)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{plaintext:!0,label:"Protocol",value:"GRPC"}),e.grpc.tls&&(0,g.jsx)(eN,{tls:new ef(e.grpc.tls),onChange:e=>n(n=>n.tls=e)})]})}),eq=x.memo(e=>{let n=n=>{eT(e.tls.tls)&&(e.tls.tls=void 0),n(e.tls),e.onChange(e.tls)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{plaintext:!0,label:"Protocol",value:"TLS"}),e.tls.tls&&(0,g.jsx)(eN,{tls:new ef(e.tls.tls),onChange:e=>n(n=>n.tls=e)})]})}),eP=x.memo(e=>{let n=n=>{eT(e.http2.tls)&&(e.http2.tls=void 0),n(e.http2),e.onChange(e.http2)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{plaintext:!0,label:"Protocol",value:"HTTP2"}),e.http2.tls&&(0,g.jsx)(eN,{tls:new ef(e.http2.tls),onChange:e=>n(n=>n.tls=e)})]})}),eB=x.memo(e=>{let n=n=>{n(e.reality),e.onChange(e.reality)},[t,s]=(0,x.useState)({value:""}),[a,r]=(0,x.useState)({value:""});return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{plaintext:!0,label:"Protocol",value:"Reality"}),(0,g.jsx)(S.Vf,{label:"Dest",value:e.reality.dest,onChange:e=>n(n=>n.dest=e)}),(0,g.jsx)(S.Vf,{label:"Private Key",value:e.reality.privateKey,onChange:e=>n(n=>n.privateKey=e)}),(0,g.jsxs)(b.Z.Group,{as:k.Z,className:"mb-3",children:[(0,g.jsx)(b.Z.Label,{column:!0,sm:2,className:"nowrap",children:"Short ID"}),e.reality.shortId.map((e,t)=>(0,g.jsx)(C.Z,{sm:{span:10,offset:0!==t?2:0},children:(0,g.jsxs)(J.Z,{className:"mb-2",children:[(0,g.jsx)(b.Z.Control,{value:e,onChange:e=>n(n=>{n.shortId[t]=e.target.value})}),(0,g.jsx)(N.Z,{variant:"outline-danger",onClick:()=>n(e=>{e.shortId.splice(t,1)}),children:(0,g.jsx)("i",{className:"bi bi-x-lg"})})]})},t)),(0,g.jsx)(C.Z,{sm:{span:10,offset:0!==e.reality.shortId.length?2:0},children:(0,g.jsxs)(J.Z,{className:"mb-2",children:[(0,g.jsx)(b.Z.Control,{value:t.value,onChange:e=>s({value:e.target.value})}),(0,g.jsx)(N.Z,{variant:"outline-success",onClick:()=>n(e=>{e.shortId.push(t.value)}),children:(0,g.jsx)("i",{className:"bi bi-plus-lg"})})]})})]}),(0,g.jsxs)(b.Z.Group,{as:k.Z,className:"mb-3",children:[(0,g.jsx)(b.Z.Label,{column:!0,sm:2,className:"nowrap",children:"Server Name"}),e.reality.serverName.map((e,t)=>(0,g.jsx)(C.Z,{sm:{span:10,offset:0!==t?2:0},children:(0,g.jsxs)(J.Z,{className:"mb-2",children:[(0,g.jsx)(b.Z.Control,{value:e,onChange:e=>n(n=>{n.serverName[t]=e.target.value})}),(0,g.jsx)(N.Z,{variant:"outline-danger",onClick:()=>n(e=>{e.serverName.splice(t,1)}),children:(0,g.jsx)("i",{className:"bi bi-x-lg"})})]})},t)),(0,g.jsx)(C.Z,{sm:{span:10,offset:0!==e.reality.serverName.length?2:0},children:(0,g.jsxs)(J.Z,{className:"mb-2",children:[(0,g.jsx)(b.Z.Control,{value:a.value,onChange:e=>r({value:e.target.value})}),(0,g.jsx)(N.Z,{variant:"outline-success",onClick:()=>n(e=>{e.serverName.push(a.value)}),children:(0,g.jsx)("i",{className:"bi bi-plus-lg"})})]})})]})]})}),eV=x.memo(e=>{let n=n=>{n(e.yuubinsya),e.onChange(e.yuubinsya)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Z.J,{label:"TCP Encrypt",checked:e.yuubinsya.tcpEncrypt,onChange:()=>n(e=>e.tcpEncrypt=!e.tcpEncrypt)}),(0,g.jsx)(Z.J,{label:"UDP Encrypt",checked:e.yuubinsya.udpEncrypt,onChange:()=>n(e=>e.udpEncrypt=!e.udpEncrypt)}),(0,g.jsx)(Z.J,{label:"Mux",checked:e.yuubinsya.mux,onChange:()=>n(e=>e.mux=!e.mux)}),(0,g.jsx)(S.Vf,{label:"Host",value:e.yuubinsya.host,onChange:e=>n(n=>n.host=e)}),(0,g.jsx)(S.Vf,{label:"Password",value:e.yuubinsya.password,onChange:e=>n(n=>n.password=e)}),(()=>{switch(e.yuubinsya.protocol.case){case"websocket":return(0,g.jsx)(eJ,{websocket:new ec(e.yuubinsya.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"quic":return(0,g.jsx)(eS,{quic:new ed(e.yuubinsya.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"grpc":return(0,g.jsx)(eF,{grpc:new eh(e.yuubinsya.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"http2":return(0,g.jsx)(eP,{http2:new ep(e.yuubinsya.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"reality":return(0,g.jsx)(eB,{reality:new ev(e.yuubinsya.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"tls":return(0,g.jsx)(eq,{tls:new em(e.yuubinsya.protocol.value),onChange:e=>n(n=>n.protocol.value=e)})}})()]})}),eI=x.memo(e=>{let n=n=>{n(e.protocol),e.onChange(e.protocol)};switch(e.protocol.protocol.case){case"http":return(0,g.jsx)(ey,{http:new $(e.protocol.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"socks5":return(0,g.jsx)(eb,{socks5:new ee(e.protocol.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"mix":return(0,g.jsx)(ek,{mixed:new et(e.protocol.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"redir":return(0,g.jsx)(ew,{redir:new es(e.protocol.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"tun":return(0,g.jsx)(eC,{tun:new er(e.protocol.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"yuubinsya":return(0,g.jsx)(eV,{yuubinsya:new ei(e.protocol.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"tproxy":return(0,g.jsx)(ej,{tproxy:new ea(e.protocol.protocol.value),onChange:e=>n(n=>n.protocol.value=e)})}return(0,g.jsx)(g.Fragment,{})}),eL=x.memo(e=>{let n=n=>{n(e.server),e.onChange(e.server)};return(0,g.jsx)(g.Fragment,{children:Object.entries(e.server.servers).sort((e,n)=>e[0]<=n[0]?-1:1).map(e=>{let[t,s]=e;return(0,g.jsxs)("div",{children:[(0,g.jsxs)(w.Z.Title,{className:"d-flex justify-content-between align-items-center",children:[t,(0,g.jsx)(N.Z,{variant:"outline-danger",onClick:()=>n(e=>{e.servers&&delete e.servers[t]}),children:(0,g.jsx)("i",{className:"bi bi-x-lg"})})]}),(0,g.jsx)(Z.J,{label:"Enabled",checked:s.enabled,onChange:()=>n(e=>e.servers[t].enabled=!e.servers[t].enabled)}),(0,g.jsx)(eI,{protocol:new M(s),onChange:e=>n(n=>n.servers[t]=e)})]},t)})})});var eE=t(716),eD=t(1159),eR=t(1617),eH=t(879),eU=t(6264),eK=t.n(eU);(u=f||(f={}))[u.verbose=0]="verbose",u[u.debug=1]="debug",u[u.info=2]="info",u[u.warning=3]="warning",u[u.error=4]="error",u[u.fatal=5]="fatal",F.w.util.setEnumType(f,"yuhaiin.log.log_level",[{no:0,name:"verbose"},{no:1,name:"debug"},{no:2,name:"info"},{no:3,name:"warning"},{no:4,name:"error"},{no:5,name:"fatal"}]);class eG extends q.v{static fromBinary(e,n){return new eG().fromBinary(e,n)}static fromJson(e,n){return new eG().fromJson(e,n)}static fromJsonString(e,n){return new eG().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(eG,e,n)}constructor(e){super(),this.level=0,this.save=!1,F.w.util.initPartial(e,this)}}eG.runtime=F.w,eG.typeName="yuhaiin.log.logcat",eG.fields=F.w.util.newFieldList(()=>[{no:1,name:"level",kind:"enum",T:F.w.getEnumType(f)},{no:2,name:"save",kind:"scalar",T:8}]);class eO extends q.v{static fromBinary(e,n){return new eO().fromBinary(e,n)}static fromJson(e,n){return new eO().fromJson(e,n)}static fromJsonString(e,n){return new eO().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(eO,e,n)}constructor(e){super(),this.ipv6=!1,this.netInterface="",F.w.util.initPartial(e,this)}}eO.runtime=F.w,eO.typeName="yuhaiin.config.setting",eO.fields=F.w.util.newFieldList(()=>[{no:7,name:"ipv6",kind:"scalar",T:8},{no:6,name:"net_interface",jsonName:"net_interface",kind:"scalar",T:9},{no:1,name:"system_proxy",jsonName:"system_proxy",kind:"message",T:eW},{no:2,name:"bypass",kind:"message",T:L},{no:4,name:"dns",kind:"message",T:B},{no:5,name:"server",kind:"message",T:O},{no:8,name:"logcat",kind:"message",T:eG}]);class eW extends q.v{static fromBinary(e,n){return new eW().fromBinary(e,n)}static fromJson(e,n){return new eW().fromJson(e,n)}static fromJsonString(e,n){return new eW().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(eW,e,n)}constructor(e){super(),this.http=!1,this.socks5=!1,F.w.util.initPartial(e,this)}}eW.runtime=F.w,eW.typeName="yuhaiin.config.system_proxy",eW.fields=F.w.util.newFieldList(()=>[{no:2,name:"http",kind:"scalar",T:8},{no:3,name:"socks5",kind:"scalar",T:8}]);class eA extends q.v{static fromBinary(e,n){return new eA().fromBinary(e,n)}static fromJson(e,n){return new eA().fromJson(e,n)}static fromJsonString(e,n){return new eA().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(eA,e,n)}constructor(e){super(),this.version="",this.commit="",this.buildTime="",this.goVersion="",this.arch="",this.platform="",this.os="",this.compiler="",this.build=[],F.w.util.initPartial(e,this)}}eA.runtime=F.w,eA.typeName="yuhaiin.config.info",eA.fields=F.w.util.newFieldList(()=>[{no:1,name:"version",kind:"scalar",T:9},{no:2,name:"commit",kind:"scalar",T:9},{no:3,name:"build_time",jsonName:"build_time",kind:"scalar",T:9},{no:4,name:"go_version",jsonName:"go_version",kind:"scalar",T:9},{no:5,name:"arch",kind:"scalar",T:9},{no:6,name:"platform",kind:"scalar",T:9},{no:7,name:"os",kind:"scalar",T:9},{no:8,name:"compiler",kind:"scalar",T:9},{no:9,name:"build",kind:"scalar",T:9,repeated:!0}]);class eM extends q.v{static fromBinary(e,n){return new eM().fromBinary(e,n)}static fromJson(e,n){return new eM().fromJson(e,n)}static fromJsonString(e,n){return new eM().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(eM,e,n)}constructor(e){super(),this.interfaces=[],F.w.util.initPartial(e,this)}}eM.runtime=F.w,eM.typeName="yuhaiin.tools.Interfaces",eM.fields=F.w.util.newFieldList(()=>[{no:1,name:"interfaces",kind:"message",T:ez,repeated:!0}]);class ez extends q.v{static fromBinary(e,n){return new ez().fromBinary(e,n)}static fromJson(e,n){return new ez().fromJson(e,n)}static fromJsonString(e,n){return new ez().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(ez,e,n)}constructor(e){super(),this.name="",this.addresses=[],F.w.util.initPartial(e,this)}}ez.runtime=F.w,ez.typeName="yuhaiin.tools.Interface",ez.fields=F.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"addresses",kind:"scalar",T:9,repeated:!0}]);var eQ=t(9882),eY=t(4694);function eX(e,n){return n?function(t){t(e),n(e)}:function(e){}}let e$=e=>(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(eQ.Z,{show:e.show,scrollable:!0,"aria-labelledby":"contained-modal-title-vcenter",size:"xl",onHide:()=>{e.onHide()},centered:!0,children:[(0,g.jsx)(eQ.Z.Header,{children:(0,g.jsx)(eQ.Z.Title,{id:"contained-modal-title-vcenter",children:e.value.name})}),(0,g.jsx)(eQ.Z.Body,{children:(0,g.jsx)(e1,{inbound:e.value,onChange:e.onChange})}),(0,g.jsx)(eQ.Z.Footer,{children:(0,g.jsx)(N.Z,{variant:"outline-primary",onClick:()=>{e.onHide()},children:"Save"})})]})}),e0=e=>{var n;let t=eX(e.inbounds,e.onChange),[s,a]=(0,x.useState)({show:!1,inbound:new W({}),onChange:e=>{}}),[r,o]=(0,x.useState)({value:""});return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(e$,{show:s.show,value:s.inbound,onHide:()=>{a({...s,show:!1})},onChange:s.onChange}),(0,g.jsx)(Z.J,{label:"DNS Hijack",checked:!!e.inbounds.hijackDns,onChange:()=>t(e=>e.hijackDns=!e.hijackDns)}),(0,g.jsx)(Z.J,{label:"Fakedns",checked:!!e.inbounds.hijackDnsFakeip,onChange:()=>t(e=>e.hijackDnsFakeip=!e.hijackDnsFakeip)}),(0,g.jsx)(Z.J,{label:"Sniff",checked:null!==(n=e.inbounds.sniff)&&void 0!==n&&!!n.enabled,onChange:()=>t(e=>{var n;return e.sniff=new ex({enabled:!(null===(n=e.sniff)||void 0===n?void 0:n.enabled)})})}),(0,g.jsx)("hr",{}),(0,g.jsxs)(w.Z,{children:[(0,g.jsx)(w.Z.Header,{children:"Inbounds"}),0===Object.keys(e.inbounds.inbounds).length?(0,g.jsx)(w.Z.Body,{children:(0,g.jsx)("div",{className:"text-center my-2",style:{opacity:"0.4"},children:"No Inbounds"})}):(0,g.jsx)(eY.Z,{variant:"flush",children:Object.entries(e.inbounds.inbounds).sort((e,n)=>e[0]<=n[0]?-1:1).map(e=>{let[n,s]=e;return(0,g.jsx)(x.Fragment,{children:(0,g.jsxs)(eY.Z.Item,{action:!0,className:"d-flex justify-content-between align-items-center",style:{border:"0ch",borderBottom:"1px solid #dee2e6"},onClick:e=>{e.stopPropagation(),a({show:!0,inbound:s,onChange:e=>{t(t=>t.inbounds[n]=e)}})},children:[n,(0,g.jsx)(N.Z,{variant:"outline-danger",size:"sm",as:"span",onClick:e=>{e.stopPropagation(),t(e=>{delete e.inbounds[n]})},children:(0,g.jsx)("i",{className:"bi bi-x-lg"})},n+"span-button")]})},"inbounds-"+n)})}),(0,g.jsx)(w.Z.Footer,{children:(0,g.jsxs)(J.Z,{className:"d-flex justify-content-end",children:[(0,g.jsx)(b.Z.Control,{value:r.value,onChange:e=>o({value:e.target.value})}),(0,g.jsxs)(N.Z,{variant:"outline-success",onClick:()=>{""!==r.value&&void 0===e.inbounds.inbounds[r.value]&&t(e=>e.inbounds[r.value]=new W({name:r.value}))},children:[(0,g.jsx)("i",{className:"bi bi-plus-lg"}),"New "]})]})})]})]})},e1=e=>{let n=eX(e.inbound,e.onChange),t=(t,s)=>{e.inbound.transport.length<=1||t&&0===s||!t&&s===e.inbound.transport.length-1||n(e=>{let n=e.transport[s];e.transport[s]=e.transport[s+(t?-1:1)],e.transport[s+(t?-1:1)]=n})},[s,a]=(0,x.useState)({value:"normal"});return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Z.J,{label:"Enabled",checked:e.inbound.enabled,onChange:()=>{n(e=>e.enabled=!e.enabled)}}),(0,g.jsx)(S.Vf,{label:"Name",value:e.inbound.name,onChange:e=>{n(n=>n.name=e)}}),(0,g.jsx)(S.W2,{title:"Network",hideClose:!0,children:(0,g.jsx)(e2,{inbound:e.inbound,onChange:e=>{n(n=>e)}})}),(0,g.jsx)(S.W2,{title:"Transport",hideClose:!0,children:(0,g.jsxs)(g.Fragment,{children:[e.inbound.transport.map((s,a)=>{var r,o;return(0,g.jsx)(S.W2,{title:null!==(o=null===(r=s.transport.case)||void 0===r?void 0:r.toString())&&void 0!==o?o:"",onClose:()=>{n(e=>e.transport.splice(a,1))},moveUpDown:new S.kx(e.inbound.transport.length,a,e=>t(e,a)),children:(0,g.jsx)(e4,{transport:s,onChange:e=>{n(n=>n.transport[a]=e)}},a)},a)}),(0,g.jsx)(eY.Z,{variant:"flush",children:(0,g.jsx)(eY.Z.Item,{children:(0,g.jsxs)(J.Z,{children:[(0,g.jsx)(b.Z.Select,{value:s.value,onChange:e=>a({value:e.target.value}),children:["normal","tls","mux","http2","websocket","grpc","reality"].map(e=>(0,g.jsx)("option",{value:e,children:e},e))}),(0,g.jsxs)(N.Z,{variant:"outline-success",onClick:()=>n(e=>{switch(s.value){case"normal":e.transport.push(new A({transport:{case:"normal",value:new eu({})}}));break;case"tls":e.transport.push(new A({transport:{case:"tls",value:new em({tls:new ef({})})}}));break;case"mux":e.transport.push(new A({transport:{case:"mux",value:new Q({})}}));break;case"http2":e.transport.push(new A({transport:{case:"http2",value:new ep({})}}));break;case"websocket":e.transport.push(new A({transport:{case:"websocket",value:new ec({})}}));break;case"grpc":e.transport.push(new A({transport:{case:"grpc",value:new eh({})}}));break;case"reality":e.transport.push(new A({transport:{case:"reality",value:new ev({})}}))}}),children:[(0,g.jsx)("i",{className:"bi bi-plus-lg"}),"Add"]})]})})})]})}),(0,g.jsx)(S.W2,{title:"Protocol",hideClose:!0,children:(0,g.jsx)(e3,{inbound:e.inbound,onChange:e=>{n(n=>e)}})})]})},e2=e=>{var n,t;let s=eX(e.inbound,e.onChange),[a,r]=(0,x.useState)({value:null!==(t=null===(n=e.inbound.network.case)||void 0===n?void 0:n.toString())&&void 0!==t?t:"tcpudp"});return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(eY.Z,{variant:"flush",children:(0,g.jsx)(eY.Z.Item,{children:(0,g.jsxs)(J.Z,{children:[(0,g.jsx)(b.Z.Select,{value:a.value,onChange:e=>r({value:e.target.value}),children:["empty","tcpudp","quic"].map(e=>(0,g.jsx)("option",{value:e,children:e},e))}),(0,g.jsx)(N.Z,{variant:"outline-success",onClick:()=>s(e=>{switch(a.value){case"tcpudp":e.network={case:"tcpudp",value:new Y({})};break;case"quic":e.network={case:"quic",value:new ei({})};break;case"empty":e.network={case:"empty",value:new z({})}}}),children:"Use"})]})})}),(0,g.jsx)("br",{}),(0,g.jsx)(e9,{inbound:e.inbound,onChange:e.onChange})]})},e9=e=>{let n=eX(e.inbound,e.onChange);switch(e.inbound.network.case){case"tcpudp":return(0,g.jsx)(e5,{protocol:e.inbound.network.value,onChange:e=>{n(n=>n.network.value=e)}});case"quic":return(0,g.jsx)(eZ,{quic:e.inbound.network.value,onChange:e=>{n(n=>n.network.value=e)}});case"empty":return(0,g.jsx)(g.Fragment,{})}},e4=e=>{let n=eX(e.transport,e.onChange);switch(e.transport.transport.case){case"normal":return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"text-center",style:{opacity:"0.4"},children:"Normal"})});case"tls":return(0,g.jsx)(eq,{tls:e.transport.transport.value,onChange:e=>{n(n=>n.transport.value=e)}});case"mux":return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"text-center",style:{opacity:"0.4"},children:"Mux"})});case"http2":return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"text-center",style:{opacity:"0.4"},children:"HTTP2"})});case"websocket":return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"text-center",style:{opacity:"0.4"},children:"Websocket"})});case"grpc":return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"text-center",style:{opacity:"0.4"},children:"Grpc"})});case"reality":return(0,g.jsx)(eB,{reality:e.transport.transport.value,onChange:e=>{n(n=>n.transport.value=e)}})}},e6=e=>{let n=eX(e.inbound,e.onChange);switch(e.inbound.protocol.case){case"http":return(0,g.jsx)(ey,{http:e.inbound.protocol.value,onChange:e=>{n(n=>n.protocol.value=e)}});case"socks5":return(0,g.jsx)(eb,{socks5:e.inbound.protocol.value,onChange:e=>{n(n=>n.protocol.value=e)}});case"socks4a":return(0,g.jsx)(g.Fragment,{});case"mix":return(0,g.jsx)(ek,{mixed:e.inbound.protocol.value,onChange:e=>{n(n=>n.protocol.value=e)}});case"redir":return(0,g.jsx)(ew,{redir:e.inbound.protocol.value,onChange:e=>{n(n=>n.protocol.value=e)}});case"tun":return(0,g.jsx)(eC,{tun:e.inbound.protocol.value,onChange:e=>{n(n=>n.protocol.value=e)}});case"yuubinsya":return(0,g.jsx)(e8,{yuubinsya:e.inbound.protocol.value,onChange:e=>{n(n=>n.protocol.value=e)}});case"tproxy":return(0,g.jsx)(ej,{tproxy:e.inbound.protocol.value,onChange:e=>{n(n=>n.protocol.value=e)}})}},e3=e=>{var n,t;let s=eX(e.inbound,e.onChange),[a,r]=(0,x.useState)({value:null!==(t=null===(n=e.inbound.protocol.case)||void 0===n?void 0:n.toString())&&void 0!==t?t:"yuubinsya"});return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(eY.Z,{variant:"flush",children:(0,g.jsx)(eY.Z.Item,{children:(0,g.jsxs)(J.Z,{children:[(0,g.jsx)(b.Z.Select,{value:a.value,onChange:e=>r({value:e.target.value}),children:["http","socks5","mix","redir","tun","yuubinsya","tproxy"].map(e=>(0,g.jsx)("option",{value:e,children:e},e))}),(0,g.jsx)(N.Z,{variant:"outline-success",onClick:()=>s(e=>{switch(a.value){case"http":e.protocol={case:"http",value:new $({})};break;case"socks5":e.protocol={case:"socks5",value:new ee({})};break;case"mix":e.protocol={case:"mix",value:new et({})};break;case"redir":e.protocol={case:"redir",value:new es({})};break;case"tun":e.protocol={case:"tun",value:new er({})};break;case"yuubinsya":e.protocol={case:"yuubinsya",value:new ei({})};break;case"tproxy":e.protocol={case:"tproxy",value:new ea({})}}}),children:"Use"})]})})}),(0,g.jsx)("br",{}),(0,g.jsx)(e6,{inbound:e.inbound,onChange:e=>{s(n=>e)}})]})},e8=e=>{let n=eX(e.yuubinsya,e.onChange);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Z.J,{label:"TCP Encrypt",checked:e.yuubinsya.tcpEncrypt,onChange:()=>{n(e=>e.tcpEncrypt=!e.tcpEncrypt)}}),(0,g.jsx)(Z.J,{label:"UDP Encrypt",checked:e.yuubinsya.udpEncrypt,onChange:()=>{n(e=>e.udpEncrypt=!e.udpEncrypt)}}),(0,g.jsx)(S.Vf,{label:"Password",value:e.yuubinsya.password,onChange:e=>{n(n=>n.password=e)}})]})},e5=e=>{let n=eX(e.protocol,e.onChange);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{label:"Host",value:e.protocol.host,onChange:e=>{n(n=>n.host=e)}}),(0,g.jsx)(e7,{label:"Control",type:F.w.getEnumType(p),value:e.protocol.control,onChange:e=>{n(n=>n.control=e)}})]})};function e7(e){var n;return(0,g.jsxs)(b.Z.Group,{as:k.Z,className:"mb-3",children:[(0,g.jsx)(b.Z.Label,{column:!0,sm:2,children:e.label}),(0,g.jsx)(C.Z,{sm:10,children:(0,g.jsx)(b.Z.Select,{value:e.value,onChange:n=>e.onChange(Number(n.target.value)),children:e.type.values.filter(null!==(n=e.filter)&&void 0!==n?n:()=>!0).map(e=>(0,g.jsx)("option",{value:e.no,children:e.name},e.no))})})]})}var ne=function(){var e,n,t,s,a,r,o,i;let l=(0,x.useContext)(eD.P),{data:u,error:c,isLoading:d,mutate:m}=(0,eR.ZP)("/config",(0,eH.D)(new eO),{revalidateOnFocus:!1}),{data:h}=(0,eR.ZP)("/info",(0,eH.D)(new eA),{}),{data:p}=(0,eR.ZP)("/interfaces",(0,eH.D)(new eM),{revalidateOnFocus:!0});if(void 0!==c)return(0,g.jsx)(eK(),{statusCode:c.code,title:c.msg});if(d||void 0===u)return(0,g.jsx)(eE.Z,{});let v=e=>{m(n=>{let t=new eO(n);return e(t),t},!1)},f=e=>{var n,t,s=[];return(null===(n=e.systemProxy)||void 0===n?void 0:n.http)&&s.push(1),(null===(t=e.systemProxy)||void 0===t?void 0:t.socks5)&&s.push(2),s};return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(y.Z.Container,{defaultActiveKey:"home",children:(0,g.jsxs)(w.Z,{className:"mb-3",children:[(0,g.jsx)(w.Z.Header,{children:(0,g.jsxs)(j.Z,{variant:"tabs",style:{flexWrap:"nowrap",overflow:"auto hidden"},children:[(0,g.jsx)(j.Z.Item,{children:(0,g.jsx)(j.Z.Link,{eventKey:"home",children:"Setting"})}),(0,g.jsx)(j.Z.Item,{children:(0,g.jsx)(j.Z.Link,{eventKey:"dns",children:"DNS"})}),(0,g.jsx)(j.Z.Item,{children:(0,g.jsx)(j.Z.Link,{eventKey:"bypass",children:"Bypass"})}),(0,g.jsx)(j.Z.Item,{children:(0,g.jsx)(j.Z.Link,{eventKey:"inbound",children:"Inbound"})}),(0,g.jsx)(j.Z.Item,{children:(0,g.jsx)(j.Z.Link,{eventKey:"inbound_old",children:"Inbound(Deprecated)"})}),(0,g.jsx)(j.Z.Item,{children:(0,g.jsx)(j.Z.Link,{eventKey:"info",children:"Info"})})]})}),(0,g.jsx)(w.Z.Body,{children:(0,g.jsxs)(y.Z.Content,{children:[(0,g.jsx)(y.Z.Pane,{eventKey:"home",children:(0,g.jsxs)("fieldset",{disabled:(null==h?void 0:h.os)==="android",children:[(0,g.jsx)(Z.J,{label:"IPv6",checked:u.ipv6,onChange:()=>m(new eO({...u,ipv6:!u.ipv6}),!1)}),(0,g.jsx)(S.Vf,{label:"Network Interface",value:u.netInterface,onChange:e=>v(n=>n.netInterface=e),reminds:null==p?void 0:p.interfaces.map(e=>{if(e.name){var n;return{label:e.name,value:e.name,label_children:null===(n=e.addresses)||void 0===n?void 0:n.map(e=>e||"")}}}).filter(e=>!!e)}),(0,g.jsxs)(b.Z.Group,{as:k.Z,className:"mb-2",children:[(0,g.jsx)(b.Z.Label,{column:!0,sm:2,className:"nowrap",children:"System Proxy"}),(0,g.jsx)(C.Z,{sm:10,children:(0,g.jsxs)(T.Z,{type:"checkbox",className:"d-flex",defaultValue:f(u),value:f(u),onChange:e=>{let n=!1,t=!1;for(var s of e)1===s&&(n=!0),2===s&&(t=!0);v(e=>{e.systemProxy=new eW({http:n,socks5:t})})},children:[(0,g.jsx)(_.Z,{variant:"outline-primary",className:"w-100",id:"system-proxy-tbg-btn-1",value:1,children:"HTTP"}),(0,g.jsx)(_.Z,{variant:"outline-primary",className:"w-100",id:"system-proxy-tbg-btn-2",value:2,children:"SOCKS5"})]})})]}),(0,g.jsx)("hr",{}),(0,g.jsx)(w.Z.Title,{className:"mb-2",children:"Logcat"}),(0,g.jsx)(Z.J,{label:"Save",checked:u.logcat.save,onChange:()=>v(e=>e.logcat.save=!e.logcat.save)}),(0,g.jsx)(nn,{label:"Level",value:u.logcat.level,onChange:e=>v(n=>{n.logcat.level=e})})]})}),(0,g.jsx)(y.Z.Pane,{eventKey:"bypass",children:(0,g.jsx)("fieldset",{disabled:(null==h?void 0:h.os)==="android",children:(0,g.jsx)(D,{bypass:new L(u.bypass),onChange:e=>v(n=>n.bypass=e)})})}),(0,g.jsx)(y.Z.Pane,{eventKey:"dns",title:"DNS",children:(0,g.jsx)("fieldset",{disabled:(null==h?void 0:h.os)==="android",children:(0,g.jsx)(V,{data:new B(u.dns),onChange:e=>v(n=>n.dns=e)})})}),(0,g.jsx)(y.Z.Pane,{eventKey:"inbound",title:"Inbound",children:(0,g.jsx)("fieldset",{disabled:(null==h?void 0:h.os)==="android",children:(0,g.jsx)(e0,{inbounds:u.server,onChange:e=>{v(n=>n.server=e)}})})}),(0,g.jsx)(y.Z.Pane,{eventKey:"inbound_old",children:(0,g.jsx)("fieldset",{disabled:(null==h?void 0:h.os)==="android",children:(0,g.jsx)(eL,{server:u.server,onChange:e=>v(n=>n.server=e)})})}),(0,g.jsxs)(y.Z.Pane,{eventKey:"info",children:[(0,g.jsx)(S.Vf,{plaintext:!0,mb:"mb-0",label:"Version",value:null!==(e=null==h?void 0:h.version)&&void 0!==e?e:""}),(0,g.jsx)(S.Vf,{url:"https://github.com/yuhaiin/yuhaiin/commit/"+(null==h?void 0:h.commit),plaintext:!0,mb:"mb-0",label:"Commit",value:null!==(n=null==h?void 0:h.commit)&&void 0!==n?n:""}),(0,g.jsx)(S.Vf,{plaintext:!0,mb:"mb-0",label:"Build Time",value:null!==(t=null==h?void 0:h.buildTime)&&void 0!==t?t:""}),(0,g.jsx)(S.Vf,{plaintext:!0,mb:"mb-0",label:"Go Version",value:null!==(s=null==h?void 0:h.goVersion)&&void 0!==s?s:""}),(0,g.jsx)(S.Vf,{url:"https://github.com/yuhaiin/yuhaiin",plaintext:!0,mb:"mb-0",label:"Github",value:"yuhaiin/yuhaiin"}),(0,g.jsx)(S.Vf,{plaintext:!0,mb:"mb-0",label:"OS",value:null!==(a=null==h?void 0:h.os)&&void 0!==a?a:""}),(0,g.jsx)(S.Vf,{plaintext:!0,mb:"mb-0",label:"Arch",value:null!==(r=null==h?void 0:h.arch)&&void 0!==r?r:""}),(0,g.jsx)(S.Vf,{plaintext:!0,mb:"mb-0",label:"Compiler",value:null!==(o=null==h?void 0:h.compiler)&&void 0!==o?o:""}),(0,g.jsx)(S.Vf,{plaintext:!0,mb:"mb-0",label:"Platform",value:null!==(i=null==h?void 0:h.platform)&&void 0!==i?i:""}),(0,g.jsx)(S.sr,{title:"Build",data:null==h?void 0:h.build,mb:"mb-0"})]})]})}),(null==h?void 0:h.os)!="android"&&(0,g.jsx)(w.Z.Footer,{className:"d-flex justify-content-md-end",children:(0,g.jsx)(N.Z,{variant:"outline-primary",onClick:()=>{(0,eH.U)("/config",{body:u.toBinary()}).then(async e=>{let{error:n}=e;void 0!==n?l.Error("save config failed, ".concat(n.code,"| ").concat(await n.msg)):(l.Info("Save Config Successfully"),m())})},children:"Save"})})]})})})};function nn(e){return(0,g.jsxs)(b.Z.Group,{as:k.Z,className:"mb-3",children:[(0,g.jsx)(b.Z.Label,{column:!0,sm:2,children:e.label}),(0,g.jsx)(C.Z,{sm:10,children:(0,g.jsxs)(b.Z.Select,{value:f[e.value],onChange:n=>e.onChange(f[n.target.value]),children:[(0,g.jsx)("option",{value:f[f.debug],children:"DEBUG"}),(0,g.jsx)("option",{value:f[f.info],children:"INFO"}),(0,g.jsx)("option",{value:f[f.warning],children:"WARN"}),(0,g.jsx)("option",{value:f[f.error],children:"ERROR"})]})})]})}}},function(e){e.O(0,[416,113,485,466,262,364,672,498,688,971,23,744],function(){return e(e.s=2280)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/docs/config/page-c62d19ac53b4c733.js b/_next/static/chunks/app/docs/config/page-c62d19ac53b4c733.js new file mode 100644 index 00000000..5ccd16ee --- /dev/null +++ b/_next/static/chunks/app/docs/config/page-c62d19ac53b4c733.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[347],{2280:function(e,n,t){Promise.resolve().then(t.bind(t,401))},4971:function(e,n,t){"use strict";t.d(n,{$f:function(){return d},XE:function(){return m},YO:function(){return i},fG:function(){return s},gU:function(){return o},gW:function(){return h},qQ:function(){return a},r:function(){return u},rQ:function(){return r},zP:function(){return c}});var s="",a="https://raw.githubusercontent.com/yuhaiin/kitte/main/yuhaiin/remote.conf",r="https://clients3.google.com/generate_204",o="dns.nextdns.io:853",i=!0;let l=()=>{let e=localStorage.getItem("api_url");s=null!==e?e:"",null!==(e=localStorage.getItem("remote_bypass"))&&(a=e),null!==(e=localStorage.getItem("latency_http_url"))&&(r=e),null!==(e=localStorage.getItem("latency_dns_url"))&&(o=e),null!==(e=localStorage.getItem("latency_ipv6"))&&(i="true"===e)},u=e=>{p("api_url",e)},c=e=>{p("remote_bypass",e)},d=e=>{p("latency_dns_url",e)},m=e=>{p("latency_http_url",e)},h=e=>{p("latency_ipv6",e.toString())},p=(e,n)=>{""===n?localStorage.removeItem(e):localStorage.setItem(e,n),l()};l()},716:function(e,n,t){"use strict";var s=t(7437),a=t(2514),r=t(6264),o=t.n(r);n.Z=function(e){return(0,s.jsxs)("div",{className:"z-1090 d-flex flex-column justify-content-center align-items-center",style:{height:"100px"},children:[void 0!==e.children&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o(),{className:"p2",statusCode:void 0!==e.code?e.code:500,title:e.children})}),(0,s.jsx)("div",{className:"p2",children:(0,s.jsx)(a.Z,{})})]})}},879:function(e,n,t){"use strict";t.d(n,{D:function(){return a},U:function(){return r}});var s=t(4971);function a(e,n,t){return a=>fetch("".concat(s.fG).concat(a),{method:n,body:t}).then(async n=>{if(!n.ok)throw{code:n.status,msg:n.statusText,raw:n.text()};return e.fromBinary(new Uint8Array(await n.arrayBuffer()))})}let r=async(e,n)=>{let t=await fetch("".concat(s.fG).concat(e),{method:void 0!==n.method?n.method:"POST",body:n.body});return t.ok?void 0===n.process?{}:{data:n.process(t)}:{error:{code:t.status,msg:t.text()}}}},401:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return ne}});var s,a,r,o,i,l,u,c,d,m,h,p,v,f,g=t(7437),x=t(2265),y=t(550),w=t(7185),j=t(5014),b=t(7420),k=t(358),C=t(6712),T=t(8977),_=t(844),N=t(2808),J=t(2312),S=t(8727),Z=t(6601),F=t(3256),q=t(1859);(s=c||(c={}))[s.reserve=0]="reserve",s[s.udp=1]="udp",s[s.tcp=2]="tcp",s[s.doh=3]="doh",s[s.dot=4]="dot",s[s.doq=5]="doq",s[s.doh3=6]="doh3",F.w.util.setEnumType(c,"yuhaiin.dns.type",[{no:0,name:"reserve"},{no:1,name:"udp"},{no:2,name:"tcp"},{no:3,name:"doh"},{no:4,name:"dot"},{no:5,name:"doq"},{no:6,name:"doh3"}]);class P extends q.v{static fromBinary(e,n){return new P().fromBinary(e,n)}static fromJson(e,n){return new P().fromJson(e,n)}static fromJsonString(e,n){return new P().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(P,e,n)}constructor(e){super(),this.host="",this.type=0,this.subnet="",this.tlsServername="",F.w.util.initPartial(e,this)}}P.runtime=F.w,P.typeName="yuhaiin.dns.dns",P.fields=F.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:5,name:"type",kind:"enum",T:F.w.getEnumType(c)},{no:4,name:"subnet",kind:"scalar",T:9},{no:2,name:"tls_servername",jsonName:"tls_servername",kind:"scalar",T:9}]);class B extends q.v{static fromBinary(e,n){return new B().fromBinary(e,n)}static fromJson(e,n){return new B().fromJson(e,n)}static fromJsonString(e,n){return new B().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(B,e,n)}constructor(e){super(),this.server="",this.fakedns=!1,this.fakednsIpRange="",this.fakednsIpv6Range="",this.fakednsWhitelist=[],this.resolveRemoteDomain=!1,this.hosts={},this.resolver={},F.w.util.initPartial(e,this)}}B.runtime=F.w,B.typeName="yuhaiin.dns.dns_config",B.fields=F.w.util.newFieldList(()=>[{no:4,name:"server",kind:"scalar",T:9},{no:5,name:"fakedns",kind:"scalar",T:8},{no:6,name:"fakedns_ip_range",jsonName:"fakedns_ip_range",kind:"scalar",T:9},{no:13,name:"fakedns_ipv6_range",jsonName:"fakedns_ipv6_range",kind:"scalar",T:9},{no:9,name:"fakedns_whitelist",jsonName:"fakedns_whitelist",kind:"scalar",T:9,repeated:!0},{no:7,name:"resolve_remote_domain",jsonName:"resolve_remote_domain",kind:"scalar",T:8},{no:1,name:"remote",kind:"message",T:P},{no:2,name:"local",kind:"message",T:P},{no:3,name:"bootstrap",kind:"message",T:P},{no:8,name:"hosts",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:10,name:"resolver",kind:"map",K:9,V:{kind:"message",T:P}}]);let V=x.memo(e=>{var n,t,s,a,r,o,i,l,u,c,d,m,h,p,v,f,y,w,j,k,C;let[T,_]=(0,x.useState)({key:"",value:""}),F=n=>{n(e.data),e.onChange(e.data)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{label:"Server",value:e.data.server,onChange:e=>F(n=>n.server=e)}),(0,g.jsx)(S.W2,{title:"FakeDNS",hideClose:!0,children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Z.J,{label:"Enabled",checked:e.data.fakedns,onChange:()=>F(e=>e.fakedns=!e.fakedns)}),(0,g.jsx)(S.Vf,{label:"IPv4 Range",value:e.data.fakednsIpRange,onChange:e=>F(n=>n.fakednsIpRange=e)}),(0,g.jsx)(S.Vf,{label:"IPv6 Range",value:e.data.fakednsIpv6Range,onChange:e=>F(n=>n.fakednsIpv6Range=e)}),(0,g.jsx)(S.yh,{title:"Whitelist",data:e.data.fakednsWhitelist,onChange:e=>F(n=>{e&&(n.fakednsWhitelist=e)})})]})}),(0,g.jsx)(S.W2,{title:"Local DNS",hideClose:!0,children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{label:"Host",value:null!==(h=null===(n=e.data.local)||void 0===n?void 0:n.host)&&void 0!==h?h:"",onChange:e=>F(n=>{void 0!==n.local&&(n.local.host=e)})}),(0,g.jsx)(I,{label:"Type",value:null===(t=e.data.local)||void 0===t?void 0:t.type,onChange:e=>F(n=>{void 0!==n.local&&(n.local.type=e)})}),(0,g.jsx)(S.Vf,{label:"Subnet",value:null!==(p=null===(s=e.data.local)||void 0===s?void 0:s.subnet)&&void 0!==p?p:"",onChange:e=>F(n=>{void 0!==n.local&&(n.local.subnet=e)})}),(0,g.jsx)(S.Vf,{label:"SNI",value:null!==(v=null===(a=e.data.local)||void 0===a?void 0:a.tlsServername)&&void 0!==v?v:"",onChange:e=>F(n=>{void 0!==n.local&&(n.local.tlsServername=e)})})]})}),(0,g.jsx)(S.W2,{title:"Remote DNS",hideClose:!0,children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Z.J,{label:"Use IP",checked:e.data.resolveRemoteDomain,onChange:()=>F(e=>e.resolveRemoteDomain=!e.resolveRemoteDomain)}),(0,g.jsx)(S.Vf,{label:"Host",value:null!==(f=null===(r=e.data.remote)||void 0===r?void 0:r.host)&&void 0!==f?f:"",onChange:e=>F(n=>{void 0!==n.remote&&(n.remote.host=e)})}),(0,g.jsx)(I,{label:"Type",value:null===(o=e.data.remote)||void 0===o?void 0:o.type,onChange:e=>F(n=>{void 0!==n.remote&&(n.remote.type=e)})}),(0,g.jsx)(S.Vf,{label:"Subnet",value:null!==(y=null===(i=e.data.remote)||void 0===i?void 0:i.subnet)&&void 0!==y?y:"",onChange:e=>F(n=>{void 0!==n.remote&&(n.remote.subnet=e)})}),(0,g.jsx)(S.Vf,{label:"SNI",value:null!==(w=null===(l=e.data.remote)||void 0===l?void 0:l.tlsServername)&&void 0!==w?w:"",onChange:e=>F(n=>{void 0!==n.remote&&(n.remote.tlsServername=e)})})]})}),(0,g.jsx)(S.W2,{title:"Remote DNS",hideClose:!0,children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{label:"Host",value:null!==(j=null===(u=e.data.bootstrap)||void 0===u?void 0:u.host)&&void 0!==j?j:"",onChange:e=>F(n=>{void 0!==n.bootstrap&&(n.bootstrap.host=e)})}),(0,g.jsx)(I,{label:"Type",value:null===(c=e.data.bootstrap)||void 0===c?void 0:c.type,onChange:e=>F(n=>{void 0!==n.bootstrap&&(n.bootstrap.type=e)})}),(0,g.jsx)(S.Vf,{label:"Subnet",value:null!==(k=null===(d=e.data.bootstrap)||void 0===d?void 0:d.subnet)&&void 0!==k?k:"",onChange:e=>F(n=>{void 0!==n.bootstrap&&(n.bootstrap.subnet=e)})}),(0,g.jsx)(S.Vf,{label:"SNI",value:null!==(C=null===(m=e.data.bootstrap)||void 0===m?void 0:m.tlsServername)&&void 0!==C?C:"",onChange:e=>F(n=>{void 0!==n.bootstrap&&(n.bootstrap.tlsServername=e)})})]})}),(0,g.jsx)(S.W2,{title:"Hosts",hideClose:!0,children:(0,g.jsxs)(g.Fragment,{children:[Object.entries(e.data.hosts).sort((e,n)=>{let[t]=e,[s]=n;return t>s?-1:1}).map(e=>{let[n,t]=e;return(0,g.jsxs)(J.Z,{className:"mb-2",children:[(0,g.jsx)(b.Z.Control,{readOnly:!0,value:n}),(0,g.jsx)(J.Z.Text,{children:(0,g.jsx)("i",{className:"bi bi-arrow-right"})}),(0,g.jsx)(b.Z.Control,{value:t,onChange:e=>F(t=>t.hosts[n]=e.target.value)}),(0,g.jsx)(N.Z,{variant:"outline-danger",onClick:()=>F(e=>delete e.hosts[n]),children:(0,g.jsx)("i",{className:"bi bi-x-lg"})})]},"hosts"+n)}),(0,g.jsxs)(J.Z,{className:"mb-2",children:[(0,g.jsx)(b.Z.Control,{value:T.key,onChange:e=>_({...T,key:e.target.value})}),(0,g.jsx)(J.Z.Text,{children:(0,g.jsx)("i",{className:"bi bi-arrow-right"})}),(0,g.jsx)(b.Z.Control,{value:T.value,onChange:e=>_({...T,value:e.target.value})}),(0,g.jsx)(N.Z,{variant:"outline-success",onClick:()=>{""!==T.key&&void 0===e.data.hosts[T.key]&&F(e=>e.hosts[T.key]=T.value)},children:(0,g.jsx)("i",{className:"bi bi-plus-lg"})})]})]})})]})});function I(e){var n;return(0,g.jsxs)(b.Z.Group,{as:k.Z,className:"mb-3",children:[(0,g.jsx)(b.Z.Label,{column:!0,sm:2,children:e.label}),(0,g.jsx)(C.Z,{sm:10,children:(0,g.jsx)(b.Z.Select,{value:c[null!==(n=e.value)&&void 0!==n?n:c.udp],onChange:n=>e.onChange(c[n.target.value]),children:F.w.getEnumType(c).values.filter(e=>0!==e.no).map(e=>(0,g.jsx)("option",{value:c[e.no],children:e.name},e.no))})})]})}(a=d||(d={}))[a.bypass=0]="bypass",a[a.direct=1]="direct",a[a.proxy=2]="proxy",a[a.block=3]="block",F.w.util.setEnumType(d,"yuhaiin.bypass.mode",[{no:0,name:"bypass"},{no:1,name:"direct"},{no:2,name:"proxy"},{no:3,name:"block"}]),(r=m||(m={}))[r.default=0]="default",r[r.prefer_ipv4=1]="prefer_ipv4",r[r.only_ipv4=2]="only_ipv4",r[r.prefer_ipv6=3]="prefer_ipv6",r[r.only_ipv6=4]="only_ipv6",F.w.util.setEnumType(m,"yuhaiin.bypass.resolve_strategy",[{no:0,name:"default"},{no:1,name:"prefer_ipv4"},{no:2,name:"only_ipv4"},{no:3,name:"prefer_ipv6"},{no:4,name:"only_ipv6"}]),(o=h||(h={}))[o.udp_proxy_fqdn_strategy_default=0]="udp_proxy_fqdn_strategy_default",o[o.resolve=1]="resolve",o[o.skip_resolve=2]="skip_resolve",F.w.util.setEnumType(h,"yuhaiin.bypass.udp_proxy_fqdn_strategy",[{no:0,name:"udp_proxy_fqdn_strategy_default"},{no:1,name:"resolve"},{no:2,name:"skip_resolve"}]);class L extends q.v{static fromBinary(e,n){return new L().fromBinary(e,n)}static fromJson(e,n){return new L().fromJson(e,n)}static fromJsonString(e,n){return new L().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(L,e,n)}constructor(e){super(),this.tcp=0,this.udp=0,this.bypassFile="",this.udpProxyFqdn=0,this.customRuleV3=[],F.w.util.initPartial(e,this)}}L.runtime=F.w,L.typeName="yuhaiin.bypass.bypass_config",L.fields=F.w.util.newFieldList(()=>[{no:3,name:"tcp",kind:"enum",T:F.w.getEnumType(d)},{no:4,name:"udp",kind:"enum",T:F.w.getEnumType(d)},{no:2,name:"bypass_file",jsonName:"bypass_file",kind:"scalar",T:9},{no:6,name:"udp_proxy_fqdn",jsonName:"udp_proxy_fqdn",kind:"enum",T:F.w.getEnumType(h)},{no:7,name:"custom_rule_v3",jsonName:"custom_rule_v3",kind:"message",T:E,repeated:!0}]);class E extends q.v{static fromBinary(e,n){return new E().fromBinary(e,n)}static fromJson(e,n){return new E().fromJson(e,n)}static fromJsonString(e,n){return new E().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(E,e,n)}constructor(e){super(),this.mode=0,this.tag="",this.hostname=[],this.resolveStrategy=0,this.udpProxyFqdnStrategy=0,F.w.util.initPartial(e,this)}}E.runtime=F.w,E.typeName="yuhaiin.bypass.mode_config",E.fields=F.w.util.newFieldList(()=>[{no:1,name:"mode",kind:"enum",T:F.w.getEnumType(d)},{no:2,name:"tag",kind:"scalar",T:9},{no:3,name:"hostname",kind:"scalar",T:9,repeated:!0},{no:4,name:"resolve_strategy",jsonName:"resolve_strategy",kind:"enum",T:F.w.getEnumType(m)},{no:6,name:"udp_proxy_fqdn_strategy",jsonName:"udp_proxy_fqdn_strategy",kind:"enum",T:F.w.getEnumType(h)}]),new L({tcp:d.bypass,udp:d.bypass,bypassFile:"yuhaiin.conf",customRuleV3:[]});let D=x.memo(e=>{let n=new E({hostname:["www.example.com"],mode:d.proxy,tag:"",resolveStrategy:m.default}),t=n=>{n(e.bypass),e.onChange(e.bypass)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(H,{label:"TCP",network:!0,value:e.bypass.tcp,onChange:e=>t(n=>n.tcp=e)}),(0,g.jsx)(H,{label:"UDP",network:!0,value:e.bypass.udp,onChange:e=>t(n=>n.udp=e)}),(0,g.jsx)(S.Vf,{label:"Bypass File",value:e.bypass.bypassFile,onChange:e=>t(n=>n.bypassFile=e)}),(0,g.jsx)(Z.J,{label:"Udp proxy Fqdn",checked:e.bypass.udpProxyFqdn===h.skip_resolve,onChange:()=>t(e=>e.udpProxyFqdn=e.udpProxyFqdn===h.skip_resolve?h.resolve:h.skip_resolve)}),(0,g.jsx)("hr",{}),e.bypass.customRuleV3.map((e,n)=>(0,g.jsx)(S.W2,{title:""!==e.tag?e.tag:d[e.mode],onClose:()=>t(e=>e.customRuleV3.splice(n,1)),children:(0,g.jsx)(R,{config:e,onChange:e=>t(t=>t.customRuleV3[n]=e)})},"rule"+n)),(0,g.jsx)("div",{className:"d-flex mb-2",children:(0,g.jsxs)(N.Z,{className:"flex-grow-1",variant:"outline-success",onClick:()=>t(e=>e.customRuleV3.push(n)),children:[(0,g.jsx)("i",{className:"bi bi-plus-lg mb-2"}),"New Rule"]})})]})}),R=e=>{let n=n=>{n(e.config),e.onChange(e.config)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(H,{label:"Mode",network:!1,value:e.config.mode,onChange:e=>n(n=>n.mode=e)}),(0,g.jsx)(S.Vf,{label:"Tag",value:e.config.tag,onChange:e=>n(n=>n.tag=e)}),(0,g.jsx)(K,{label:"Resolve Strategy",value:e.config.resolveStrategy,onChange:e=>n(n=>n.resolveStrategy=e)}),(0,g.jsx)(U,{label:"UDP proxy Fqdn",value:e.config.udpProxyFqdnStrategy,onChange:e=>n(n=>n.udpProxyFqdnStrategy=e)}),(0,g.jsx)(S.yh,{title:"IP/DOMAIN",data:e.config.hostname,onChange:e=>n(n=>{e&&(n.hostname=e)})})]})};function H(e){return(0,g.jsxs)(b.Z.Group,{as:k.Z,className:"mb-3",children:[(0,g.jsx)(b.Z.Label,{column:!0,sm:2,children:e.label}),(0,g.jsx)(C.Z,{sm:10,children:(0,g.jsxs)(b.Z.Select,{value:d[e.value],onChange:n=>e.onChange(d[n.target.value]),children:[e.network&&(0,g.jsx)("option",{value:d[d.bypass],children:"BYPASS"}),(0,g.jsx)("option",{value:d[d.direct],children:"DIRECT"}),(0,g.jsx)("option",{value:d[d.proxy],children:"PROXY"}),(0,g.jsx)("option",{value:d[d.block],children:"BLOCK"})]})})]})}function U(e){return(0,g.jsxs)(b.Z.Group,{as:k.Z,className:"mb-3",children:[(0,g.jsx)(b.Z.Label,{column:!0,sm:2,children:e.label}),(0,g.jsx)(C.Z,{sm:10,children:(0,g.jsxs)(b.Z.Select,{value:h[e.value],onChange:n=>e.onChange(h[n.target.value]),children:[(0,g.jsx)("option",{value:h[h.udp_proxy_fqdn_strategy_default],children:"Global"}),(0,g.jsx)("option",{value:h[h.resolve],children:"Resolve"}),(0,g.jsx)("option",{value:h[h.skip_resolve],children:"Skip"})]})})]})}function K(e){return(0,g.jsxs)(b.Z.Group,{as:k.Z,className:"mb-3",children:[(0,g.jsx)(b.Z.Label,{column:!0,sm:2,children:e.label}),(0,g.jsx)(C.Z,{sm:10,children:(0,g.jsxs)(b.Z.Select,{value:m[e.value],onChange:n=>e.onChange(m[n.target.value]),children:[(0,g.jsx)("option",{value:m[m.default],children:"default"}),(0,g.jsx)("option",{value:m[m.prefer_ipv4],children:"prefer_ipv4"}),(0,g.jsx)("option",{value:m[m.only_ipv4],children:"only_ipv4"}),(0,g.jsx)("option",{value:m[m.prefer_ipv6],children:"prefer_ipv6"}),(0,g.jsx)("option",{value:m[m.only_ipv6],children:"only_ipv6"})]})})]})}var G=t(9912);(i=p||(p={}))[i.tcp_udp_control_all=0]="tcp_udp_control_all",i[i.disable_tcp=1]="disable_tcp",i[i.disable_udp=2]="disable_udp",F.w.util.setEnumType(p,"yuhaiin.listener.tcp_udp_control",[{no:0,name:"tcp_udp_control_all"},{no:1,name:"disable_tcp"},{no:2,name:"disable_udp"}]);class O extends q.v{static fromBinary(e,n){return new O().fromBinary(e,n)}static fromJson(e,n){return new O().fromJson(e,n)}static fromJsonString(e,n){return new O().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(O,e,n)}constructor(e){super(),this.hijackDns=!1,this.hijackDnsFakeip=!1,this.servers={},this.inbounds={},F.w.util.initPartial(e,this)}}O.runtime=F.w,O.typeName="yuhaiin.listener.inbound_config",O.fields=F.w.util.newFieldList(()=>[{no:2,name:"hijack_dns",jsonName:"hijack_dns",kind:"scalar",T:8},{no:3,name:"hijack_dns_fakeip",jsonName:"hijack_dns_fakeip",kind:"scalar",T:8},{no:5,name:"servers",kind:"map",K:9,V:{kind:"message",T:M}},{no:1,name:"inbounds",kind:"map",K:9,V:{kind:"message",T:W}},{no:4,name:"sniff",kind:"message",T:ex}]);class W extends q.v{static fromBinary(e,n){return new W().fromBinary(e,n)}static fromJson(e,n){return new W().fromJson(e,n)}static fromJsonString(e,n){return new W().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(W,e,n)}constructor(e){super(),this.name="",this.enabled=!1,this.network={case:void 0},this.transport=[],this.protocol={case:void 0},F.w.util.initPartial(e,this)}}W.runtime=F.w,W.typeName="yuhaiin.listener.inbound",W.fields=F.w.util.newFieldList(()=>[{no:13,name:"name",kind:"scalar",T:9},{no:14,name:"enabled",kind:"scalar",T:8},{no:21,name:"empty",kind:"message",T:z,oneof:"network"},{no:15,name:"tcpudp",kind:"message",T:Y,oneof:"network"},{no:16,name:"quic",kind:"message",T:X,oneof:"network"},{no:2,name:"transport",kind:"message",T:A,repeated:!0},{no:3,name:"http",kind:"message",T:$,oneof:"protocol"},{no:4,name:"socks5",kind:"message",T:ee,oneof:"protocol"},{no:7,name:"yuubinsya",kind:"message",T:ei,oneof:"protocol"},{no:8,name:"mix",jsonName:"mixed",kind:"message",T:et,oneof:"protocol"},{no:9,name:"socks4a",kind:"message",T:en,oneof:"protocol"},{no:20,name:"tproxy",kind:"message",T:ea,oneof:"protocol"},{no:18,name:"redir",kind:"message",T:es,oneof:"protocol"},{no:19,name:"tun",kind:"message",T:er,oneof:"protocol"}]);class A extends q.v{static fromBinary(e,n){return new A().fromBinary(e,n)}static fromJson(e,n){return new A().fromJson(e,n)}static fromJsonString(e,n){return new A().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(A,e,n)}constructor(e){super(),this.transport={case:void 0},F.w.util.initPartial(e,this)}}A.runtime=F.w,A.typeName="yuhaiin.listener.transport",A.fields=F.w.util.newFieldList(()=>[{no:12,name:"normal",kind:"message",T:eu,oneof:"transport"},{no:1,name:"tls",kind:"message",T:em,oneof:"transport"},{no:2,name:"mux",kind:"message",T:Q,oneof:"transport"},{no:5,name:"http2",kind:"message",T:ep,oneof:"transport"},{no:6,name:"websocket",kind:"message",T:ec,oneof:"transport"},{no:11,name:"grpc",kind:"message",T:eh,oneof:"transport"},{no:10,name:"reality",kind:"message",T:ev,oneof:"transport"}]);class M extends q.v{static fromBinary(e,n){return new M().fromBinary(e,n)}static fromJson(e,n){return new M().fromJson(e,n)}static fromJsonString(e,n){return new M().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(M,e,n)}constructor(e){super(),this.name="",this.enabled=!1,this.protocol={case:void 0},F.w.util.initPartial(e,this)}}M.runtime=F.w,M.typeName="yuhaiin.listener.protocol",M.fields=F.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"enabled",kind:"scalar",T:8},{no:3,name:"http",kind:"message",T:$,oneof:"protocol"},{no:4,name:"socks5",kind:"message",T:ee,oneof:"protocol"},{no:5,name:"redir",kind:"message",T:es,oneof:"protocol"},{no:6,name:"tun",kind:"message",T:er,oneof:"protocol"},{no:7,name:"yuubinsya",kind:"message",T:ei,oneof:"protocol"},{no:8,name:"mix",jsonName:"mixed",kind:"message",T:et,oneof:"protocol"},{no:9,name:"socks4a",kind:"message",T:en,oneof:"protocol"},{no:10,name:"tproxy",kind:"message",T:ea,oneof:"protocol"}]);class z extends q.v{static fromBinary(e,n){return new z().fromBinary(e,n)}static fromJson(e,n){return new z().fromJson(e,n)}static fromJsonString(e,n){return new z().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(z,e,n)}constructor(e){super(),F.w.util.initPartial(e,this)}}z.runtime=F.w,z.typeName="yuhaiin.listener.empty",z.fields=F.w.util.newFieldList(()=>[]);class Q extends q.v{static fromBinary(e,n){return new Q().fromBinary(e,n)}static fromJson(e,n){return new Q().fromJson(e,n)}static fromJsonString(e,n){return new Q().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(Q,e,n)}constructor(e){super(),F.w.util.initPartial(e,this)}}Q.runtime=F.w,Q.typeName="yuhaiin.listener.mux",Q.fields=F.w.util.newFieldList(()=>[]);class Y extends q.v{static fromBinary(e,n){return new Y().fromBinary(e,n)}static fromJson(e,n){return new Y().fromJson(e,n)}static fromJsonString(e,n){return new Y().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(Y,e,n)}constructor(e){super(),this.host="",this.control=0,F.w.util.initPartial(e,this)}}Y.runtime=F.w,Y.typeName="yuhaiin.listener.tcpudp",Y.fields=F.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:2,name:"control",kind:"enum",T:F.w.getEnumType(p)}]);class X extends q.v{static fromBinary(e,n){return new X().fromBinary(e,n)}static fromJson(e,n){return new X().fromJson(e,n)}static fromJsonString(e,n){return new X().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(X,e,n)}constructor(e){super(),this.host="",F.w.util.initPartial(e,this)}}X.runtime=F.w,X.typeName="yuhaiin.listener.quic2",X.fields=F.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:3,name:"tls",kind:"message",T:ef}]);class $ extends q.v{static fromBinary(e,n){return new $().fromBinary(e,n)}static fromJson(e,n){return new $().fromJson(e,n)}static fromJsonString(e,n){return new $().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals($,e,n)}constructor(e){super(),this.host="",this.username="",this.password="",F.w.util.initPartial(e,this)}}$.runtime=F.w,$.typeName="yuhaiin.listener.http",$.fields=F.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:3,name:"username",kind:"scalar",T:9},{no:4,name:"password",kind:"scalar",T:9}]);class ee extends q.v{static fromBinary(e,n){return new ee().fromBinary(e,n)}static fromJson(e,n){return new ee().fromJson(e,n)}static fromJsonString(e,n){return new ee().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(ee,e,n)}constructor(e){super(),this.host="",this.username="",this.password="",this.udp=!1,F.w.util.initPartial(e,this)}}ee.runtime=F.w,ee.typeName="yuhaiin.listener.socks5",ee.fields=F.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:3,name:"username",kind:"scalar",T:9},{no:4,name:"password",kind:"scalar",T:9},{no:5,name:"udp",kind:"scalar",T:8}]);class en extends q.v{static fromBinary(e,n){return new en().fromBinary(e,n)}static fromJson(e,n){return new en().fromJson(e,n)}static fromJsonString(e,n){return new en().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(en,e,n)}constructor(e){super(),this.host="",this.username="",F.w.util.initPartial(e,this)}}en.runtime=F.w,en.typeName="yuhaiin.listener.socks4a",en.fields=F.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:2,name:"username",kind:"scalar",T:9}]);class et extends q.v{static fromBinary(e,n){return new et().fromBinary(e,n)}static fromJson(e,n){return new et().fromJson(e,n)}static fromJsonString(e,n){return new et().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(et,e,n)}constructor(e){super(),this.host="",this.username="",this.password="",F.w.util.initPartial(e,this)}}et.runtime=F.w,et.typeName="yuhaiin.listener.mixed",et.fields=F.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:3,name:"username",kind:"scalar",T:9},{no:4,name:"password",kind:"scalar",T:9}]);class es extends q.v{static fromBinary(e,n){return new es().fromBinary(e,n)}static fromJson(e,n){return new es().fromJson(e,n)}static fromJsonString(e,n){return new es().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(es,e,n)}constructor(e){super(),this.host="",F.w.util.initPartial(e,this)}}es.runtime=F.w,es.typeName="yuhaiin.listener.redir",es.fields=F.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9}]);class ea extends q.v{static fromBinary(e,n){return new ea().fromBinary(e,n)}static fromJson(e,n){return new ea().fromJson(e,n)}static fromJsonString(e,n){return new ea().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(ea,e,n)}constructor(e){super(),this.host="",this.dnsHijacking=!1,this.forceFakeip=!1,F.w.util.initPartial(e,this)}}ea.runtime=F.w,ea.typeName="yuhaiin.listener.tproxy",ea.fields=F.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:2,name:"dns_hijacking",jsonName:"dns_hijacking",kind:"scalar",T:8},{no:3,name:"force_fakeip",jsonName:"force_fakeip",kind:"scalar",T:8}]);class er extends q.v{static fromBinary(e,n){return new er().fromBinary(e,n)}static fromJson(e,n){return new er().fromJson(e,n)}static fromJsonString(e,n){return new er().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(er,e,n)}constructor(e){super(),this.name="",this.mtu=0,this.gateway="",this.dnsHijacking=!1,this.forceFakeip=!1,this.skipMulticast=!1,this.driver=0,this.portal="",this.portalV6="",this.postUp=[],this.postDown=[],F.w.util.initPartial(e,this)}}er.runtime=F.w,er.typeName="yuhaiin.listener.tun",er.fields=F.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"mtu",kind:"scalar",T:5},{no:3,name:"gateway",kind:"scalar",T:9},{no:4,name:"dns_hijacking",jsonName:"dns_hijacking",kind:"scalar",T:8},{no:9,name:"force_fakeip",jsonName:"force_fakeip",kind:"scalar",T:8},{no:6,name:"skip_multicast",jsonName:"skip_multicast",kind:"scalar",T:8},{no:7,name:"driver",kind:"enum",T:F.w.getEnumType(v)},{no:8,name:"portal",kind:"scalar",T:9},{no:11,name:"portal_v6",jsonName:"portal_v6",kind:"scalar",T:9},{no:10,name:"route",kind:"message",T:eo},{no:12,name:"post_up",jsonName:"post_up",kind:"scalar",T:9,repeated:!0},{no:13,name:"post_down",jsonName:"post_down",kind:"scalar",T:9,repeated:!0}]),(l=v||(v={}))[l.fdbased=0]="fdbased",l[l.channel=1]="channel",l[l.system_gvisor=2]="system_gvisor",F.w.util.setEnumType(v,"yuhaiin.listener.tun.endpoint_driver",[{no:0,name:"fdbased"},{no:1,name:"channel"},{no:2,name:"system_gvisor"}]);class eo extends q.v{static fromBinary(e,n){return new eo().fromBinary(e,n)}static fromJson(e,n){return new eo().fromJson(e,n)}static fromJsonString(e,n){return new eo().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(eo,e,n)}constructor(e){super(),this.routes=[],this.excludes=[],F.w.util.initPartial(e,this)}}eo.runtime=F.w,eo.typeName="yuhaiin.listener.route",eo.fields=F.w.util.newFieldList(()=>[{no:1,name:"routes",kind:"scalar",T:9,repeated:!0},{no:2,name:"excludes",kind:"scalar",T:9,repeated:!0}]);class ei extends q.v{static fromBinary(e,n){return new ei().fromBinary(e,n)}static fromJson(e,n){return new ei().fromJson(e,n)}static fromJsonString(e,n){return new ei().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(ei,e,n)}constructor(e){super(),this.host="",this.password="",this.tcpEncrypt=!1,this.udpEncrypt=!1,this.mux=!1,this.protocol={case:void 0},F.w.util.initPartial(e,this)}}ei.runtime=F.w,ei.typeName="yuhaiin.listener.yuubinsya",ei.fields=F.w.util.newFieldList(()=>[{no:1,name:"host",kind:"scalar",T:9},{no:2,name:"password",kind:"scalar",T:9},{no:12,name:"tcp_encrypt",jsonName:"tcp_encrypt",kind:"scalar",T:8},{no:13,name:"udp_encrypt",jsonName:"udp_encrypt",kind:"scalar",T:8},{no:11,name:"mux",kind:"scalar",T:8},{no:3,name:"normal",kind:"message",T:eu,oneof:"protocol"},{no:4,name:"tls",kind:"message",T:em,oneof:"protocol"},{no:5,name:"quic",kind:"message",T:ed,oneof:"protocol"},{no:6,name:"websocket",kind:"message",T:ec,oneof:"protocol"},{no:7,name:"grpc",kind:"message",T:eh,oneof:"protocol"},{no:9,name:"http2",kind:"message",T:ep,oneof:"protocol"},{no:10,name:"reality",kind:"message",T:ev,oneof:"protocol"}]);class el extends q.v{static fromBinary(e,n){return new el().fromBinary(e,n)}static fromJson(e,n){return new el().fromJson(e,n)}static fromJsonString(e,n){return new el().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(el,e,n)}constructor(e){super(),F.w.util.initPartial(e,this)}}el.runtime=F.w,el.typeName="yuhaiin.listener.yuubinsya.protocol_normal",el.fields=F.w.util.newFieldList(()=>[]);class eu extends q.v{static fromBinary(e,n){return new eu().fromBinary(e,n)}static fromJson(e,n){return new eu().fromJson(e,n)}static fromJsonString(e,n){return new eu().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(eu,e,n)}constructor(e){super(),F.w.util.initPartial(e,this)}}eu.runtime=F.w,eu.typeName="yuhaiin.listener.normal",eu.fields=F.w.util.newFieldList(()=>[]);class ec extends q.v{static fromBinary(e,n){return new ec().fromBinary(e,n)}static fromJson(e,n){return new ec().fromJson(e,n)}static fromJsonString(e,n){return new ec().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(ec,e,n)}constructor(e){super(),F.w.util.initPartial(e,this)}}ec.runtime=F.w,ec.typeName="yuhaiin.listener.websocket",ec.fields=F.w.util.newFieldList(()=>[{no:1,name:"tls",kind:"message",T:ef}]);class ed extends q.v{static fromBinary(e,n){return new ed().fromBinary(e,n)}static fromJson(e,n){return new ed().fromJson(e,n)}static fromJsonString(e,n){return new ed().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(ed,e,n)}constructor(e){super(),F.w.util.initPartial(e,this)}}ed.runtime=F.w,ed.typeName="yuhaiin.listener.quic",ed.fields=F.w.util.newFieldList(()=>[{no:1,name:"tls",kind:"message",T:ef}]);class em extends q.v{static fromBinary(e,n){return new em().fromBinary(e,n)}static fromJson(e,n){return new em().fromJson(e,n)}static fromJsonString(e,n){return new em().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(em,e,n)}constructor(e){super(),F.w.util.initPartial(e,this)}}em.runtime=F.w,em.typeName="yuhaiin.listener.tls",em.fields=F.w.util.newFieldList(()=>[{no:1,name:"tls",kind:"message",T:ef}]);class eh extends q.v{static fromBinary(e,n){return new eh().fromBinary(e,n)}static fromJson(e,n){return new eh().fromJson(e,n)}static fromJsonString(e,n){return new eh().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(eh,e,n)}constructor(e){super(),F.w.util.initPartial(e,this)}}eh.runtime=F.w,eh.typeName="yuhaiin.listener.grpc",eh.fields=F.w.util.newFieldList(()=>[{no:1,name:"tls",kind:"message",T:ef}]);class ep extends q.v{static fromBinary(e,n){return new ep().fromBinary(e,n)}static fromJson(e,n){return new ep().fromJson(e,n)}static fromJsonString(e,n){return new ep().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(ep,e,n)}constructor(e){super(),F.w.util.initPartial(e,this)}}ep.runtime=F.w,ep.typeName="yuhaiin.listener.http2",ep.fields=F.w.util.newFieldList(()=>[{no:1,name:"tls",kind:"message",T:ef}]);class ev extends q.v{static fromBinary(e,n){return new ev().fromBinary(e,n)}static fromJson(e,n){return new ev().fromJson(e,n)}static fromJsonString(e,n){return new ev().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(ev,e,n)}constructor(e){super(),this.shortId=[],this.serverName=[],this.dest="",this.privateKey="",this.debug=!1,F.w.util.initPartial(e,this)}}ev.runtime=F.w,ev.typeName="yuhaiin.listener.reality",ev.fields=F.w.util.newFieldList(()=>[{no:1,name:"short_id",jsonName:"short_id",kind:"scalar",T:9,repeated:!0},{no:2,name:"server_name",jsonName:"server_name",kind:"scalar",T:9,repeated:!0},{no:3,name:"dest",kind:"scalar",T:9},{no:4,name:"private_key",jsonName:"private_key",kind:"scalar",T:9},{no:5,name:"debug",kind:"scalar",T:8}]);class ef extends q.v{static fromBinary(e,n){return new ef().fromBinary(e,n)}static fromJson(e,n){return new ef().fromJson(e,n)}static fromJsonString(e,n){return new ef().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(ef,e,n)}constructor(e){super(),this.certificates=[],this.nextProtos=[],this.serverNameCertificate={},F.w.util.initPartial(e,this)}}ef.runtime=F.w,ef.typeName="yuhaiin.listener.tls_config",ef.fields=F.w.util.newFieldList(()=>[{no:1,name:"certificates",kind:"message",T:eg,repeated:!0},{no:3,name:"next_protos",jsonName:"next_protos",kind:"scalar",T:9,repeated:!0},{no:4,name:"server_name_certificate",jsonName:"server_name_certificate",kind:"map",K:9,V:{kind:"message",T:eg}}]);class eg extends q.v{static fromBinary(e,n){return new eg().fromBinary(e,n)}static fromJson(e,n){return new eg().fromJson(e,n)}static fromJsonString(e,n){return new eg().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(eg,e,n)}constructor(e){super(),this.cert=new Uint8Array(0),this.key=new Uint8Array(0),this.certFilePath="",this.keyFilePath="",F.w.util.initPartial(e,this)}}eg.runtime=F.w,eg.typeName="yuhaiin.listener.certificate",eg.fields=F.w.util.newFieldList(()=>[{no:1,name:"cert",kind:"scalar",T:12},{no:2,name:"key",kind:"scalar",T:12},{no:3,name:"cert_file_path",jsonName:"cert_file_path",kind:"scalar",T:9},{no:4,name:"key_file_path",jsonName:"key_file_path",kind:"scalar",T:9}]);class ex extends q.v{static fromBinary(e,n){return new ex().fromBinary(e,n)}static fromJson(e,n){return new ex().fromJson(e,n)}static fromJsonString(e,n){return new ex().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(ex,e,n)}constructor(e){super(),this.enabled=!1,F.w.util.initPartial(e,this)}}ex.runtime=F.w,ex.typeName="yuhaiin.listener.sniff",ex.fields=F.w.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8}]);let ey=x.memo(e=>{let n=n=>{n(e.http),e.onChange(e.http)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{label:"Host",value:e.http.host,onChange:e=>n(n=>n.host=e)}),(0,g.jsx)(S.Vf,{label:"Username",value:e.http.username,onChange:e=>n(n=>n.username=e)}),(0,g.jsx)(S.Vf,{label:"Password",value:e.http.password,onChange:e=>n(n=>n.password=e)})]})}),ew=x.memo(e=>{let n=n=>{n(e.redir),e.onChange(e.redir)};return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(S.Vf,{label:"Host",value:e.redir.host,onChange:e=>n(n=>n.host=e)})})}),ej=x.memo(e=>{let n=n=>{n(e.tproxy),e.onChange(e.tproxy)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Z.J,{label:"DNS Hijacking",checked:e.tproxy.dnsHijacking,onChange:()=>n(e=>e.dnsHijacking=!e.dnsHijacking)}),(0,g.jsx)(Z.J,{label:"Force Fake IP",checked:e.tproxy.forceFakeip,onChange:()=>n(e=>e.forceFakeip=!e.forceFakeip)}),(0,g.jsx)(S.Vf,{label:"Host",value:e.tproxy.host,onChange:e=>n(n=>n.host=e)})]})}),eb=x.memo(e=>{let n=n=>{n(e.socks5),e.onChange(e.socks5)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{label:"Host",value:e.socks5.host,onChange:e=>n(n=>n.host=e)}),(0,g.jsx)(S.Vf,{label:"Username",value:e.socks5.username,onChange:e=>n(n=>n.username=e)}),(0,g.jsx)(S.Vf,{label:"Password",value:e.socks5.password,onChange:e=>n(n=>n.password=e)})]})}),ek=x.memo(e=>{let n=n=>{n(e.mixed),e.onChange(e.mixed)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{label:"Host",value:e.mixed.host,onChange:e=>n(n=>n.host=e)}),(0,g.jsx)(S.Vf,{label:"Username",value:e.mixed.username,onChange:e=>n(n=>n.username=e)}),(0,g.jsx)(S.Vf,{label:"Password",value:e.mixed.password,onChange:e=>n(n=>n.password=e)})]})}),eC=x.memo(e=>{var n,t;let s=n=>{n(e.tun),e.onChange(e.tun)},[a,r]=(0,x.useState)((0,G.v_)(e.tun.postUp)),[o,i]=(0,x.useState)((0,G.v_)(e.tun.postDown));return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Z.J,{checked:e.tun.skipMulticast,onChange:()=>s(e=>e.skipMulticast=!e.skipMulticast),label:"Skip Multicast"}),(0,g.jsx)(S.Vf,{label:"Name",value:e.tun.name,onChange:e=>s(n=>n.name=e)}),(0,g.jsx)(S.Vf,{label:"MTU",value:e.tun.mtu,onChange:e=>s(n=>n.mtu=isNaN(Number(e))?n.mtu:Number(e))}),(0,g.jsx)(S.Vf,{label:"IPv4",value:e.tun.portal,onChange:e=>s(n=>n.portal=e)}),(0,g.jsx)(S.Vf,{label:"IPv6",value:e.tun.portalV6,onChange:e=>s(n=>n.portalV6=e)}),(0,g.jsx)(S.Vf,{label:"Post Up",value:a,onChange:e=>{r(e);try{let n=(0,G.Vl)(e);s(e=>e.postUp=n)}catch(e){console.log(e)}}}),(0,g.jsx)(S.Vf,{label:"Post Down",value:o,onChange:e=>{i(e);try{let n=(0,G.Vl)(e);s(e=>e.postDown=n)}catch(e){console.log(e)}}}),(0,g.jsx)(function(e){return(0,g.jsxs)(b.Z.Group,{as:k.Z,className:"mb-3",children:[(0,g.jsx)(b.Z.Label,{column:!0,sm:2,children:e.label}),(0,g.jsx)(C.Z,{sm:10,children:(0,g.jsxs)(b.Z.Select,{value:v[void 0===e.value||null===e.value?v.fdbased:e.value],onChange:n=>e.onChange(v[n.target.value]),children:[(0,g.jsx)("option",{value:v[v.fdbased],children:"Fdbased"}),(0,g.jsx)("option",{value:v[v.channel],children:"Channel"}),(0,g.jsx)("option",{value:v[v.system_gvisor],children:"System"})]})})]})},{label:"Stack",value:e.tun.driver,onChange:e=>s(n=>n.driver=e)}),(0,g.jsx)(S.yh,{title:"Routes",data:null!==(t=null===(n=e.tun.route)||void 0===n?void 0:n.routes)&&void 0!==t?t:[],onChange:e=>s(n=>{n.route||(n.route=new eo),e||(e=[]),n.route&&(n.route.routes=e)})})]})}),eT=e=>null==e||void 0===e.certificates&&void 0===e.nextProtos&&void 0===e.serverNameCertificate,e_=x.memo(e=>{let n=n=>{n(e.cert),e.onChange(e.cert)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.NZ,{label:"Cert",value:new TextDecoder().decode(e.cert.cert),onChange:e=>n(n=>{n.cert=new TextEncoder().encode(e)})}),(0,g.jsx)(S.NZ,{label:"Key",value:new TextDecoder().decode(e.cert.key),onChange:e=>n(n=>{n.key=new TextEncoder().encode(e)})}),(0,g.jsx)(S.Vf,{label:"Cert File",value:e.cert.certFilePath,onChange:e=>n(n=>{n.certFilePath=e})}),(0,g.jsx)(S.Vf,{label:"Key File",value:e.cert.keyFilePath,onChange:e=>n(n=>{n.keyFilePath=e})})]})}),eN=x.memo(e=>{var n,t;let[s,a]=(0,x.useState)("www.example.com"),r=n=>{n(e.tls),e.onChange(e.tls)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.yh,{title:"Next Protos",data:null!==(t=null===(n=e.tls)||void 0===n?void 0:n.nextProtos)&&void 0!==t?t:[],onChange:e=>r(n=>{e&&(n.nextProtos=e)})}),e.tls&&e.tls.certificates.map((e,n)=>(0,g.jsx)(w.Z,{className:"mb-2",children:(0,g.jsxs)(w.Z.Body,{children:[(0,g.jsx)(w.Z.Title,{className:"d-flex justify-content-end align-items-center",children:(0,g.jsx)(N.Z,{variant:"outline-danger",onClick:()=>r(e=>{(null==e?void 0:e.certificates)!==void 0&&e.certificates.splice(n,1)}),children:(0,g.jsx)("i",{className:"bi bi-x-lg"})})}),(0,g.jsx)(e_,{cert:new eg(e),onChange:e=>r(t=>{(null==t?void 0:t.certificates)!==void 0&&(t.certificates[n]=e)})})]})},"tls_certificates"+n)),(0,g.jsx)(J.Z,{className:"d-flex justify-content-end mb-2",children:(0,g.jsxs)(N.Z,{variant:"outline-success",onClick:()=>r(e=>{e.certificates.push(new eg({cert:new Uint8Array(0),key:new Uint8Array(0),certFilePath:"",keyFilePath:""}))}),children:[(0,g.jsx)("i",{className:"bi bi-plus-lg"}),"New Certificate"]})}),e.tls&&e.tls.serverNameCertificate&&Object.entries(e.tls.serverNameCertificate).map(e=>{let[n,t]=e;return(0,g.jsx)(w.Z,{className:"mb-2",children:(0,g.jsxs)(w.Z.Body,{children:[(0,g.jsxs)(w.Z.Title,{className:"d-flex justify-content-between align-items-center",children:[n,(0,g.jsx)(N.Z,{variant:"outline-danger",onClick:()=>r(e=>{null==e||delete e.serverNameCertificate[n]}),children:(0,g.jsx)("i",{className:"bi bi-x-lg"})})]}),(0,g.jsx)(e_,{cert:new eg(t),onChange:e=>r(t=>{t.serverNameCertificate[n]=e})})]})},"server_name_certificate"+n)}),(0,g.jsxs)(J.Z,{className:"d-flex justify-content-end",children:[(0,g.jsx)(b.Z.Control,{value:s,onChange:e=>a(e.target.value)}),(0,g.jsxs)(N.Z,{variant:"outline-success",onClick:()=>r(e=>{""!==s&&(e.serverNameCertificate[s]=new eg({}))}),children:[(0,g.jsx)("i",{className:"bi bi-plus-lg"}),"New SNI Certificate"]})]})]})}),eJ=x.memo(e=>{var n;let t=n=>{eT(e.websocket.tls)&&(e.websocket.tls=void 0),n(e.websocket),e.onChange(e.websocket)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{plaintext:!0,label:"Protocol",value:"Websocket"}),e.websocket.tls&&(0,g.jsx)(eN,{tls:new ef(null!==(n=e.websocket.tls)&&void 0!==n?n:void 0),onChange:e=>t(n=>n.tls=e)})]})}),eS=x.memo(e=>{let n=n=>{eT(e.quic.tls)&&(e.quic.tls=void 0),n(e.quic),e.onChange(e.quic)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{plaintext:!0,label:"Protocol",value:"QUIC"}),e.quic.tls&&(0,g.jsx)(eN,{tls:new ef(null!==e.quic.tls?e.quic.tls:void 0),onChange:e=>n(n=>n.tls=e)})]})}),eZ=x.memo(e=>{let n=n=>{eT(e.quic.tls)&&(e.quic.tls=void 0),n(e.quic),e.onChange(e.quic)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{label:"Host",onChange:e=>n(n=>n.host=e),value:e.quic.host}),e.quic.tls&&(0,g.jsx)(eN,{tls:new ef(null!==e.quic.tls?e.quic.tls:void 0),onChange:e=>n(n=>n.tls=e)})]})}),eF=x.memo(e=>{let n=n=>{eT(e.grpc.tls)&&(e.grpc.tls=void 0),n(e.grpc),e.onChange(e.grpc)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{plaintext:!0,label:"Protocol",value:"GRPC"}),e.grpc.tls&&(0,g.jsx)(eN,{tls:new ef(e.grpc.tls),onChange:e=>n(n=>n.tls=e)})]})}),eq=x.memo(e=>{let n=n=>{eT(e.tls.tls)&&(e.tls.tls=void 0),n(e.tls),e.onChange(e.tls)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{plaintext:!0,label:"Protocol",value:"TLS"}),e.tls.tls&&(0,g.jsx)(eN,{tls:new ef(e.tls.tls),onChange:e=>n(n=>n.tls=e)})]})}),eP=x.memo(e=>{let n=n=>{eT(e.http2.tls)&&(e.http2.tls=void 0),n(e.http2),e.onChange(e.http2)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{plaintext:!0,label:"Protocol",value:"HTTP2"}),e.http2.tls&&(0,g.jsx)(eN,{tls:new ef(e.http2.tls),onChange:e=>n(n=>n.tls=e)})]})}),eB=x.memo(e=>{let n=n=>{n(e.reality),e.onChange(e.reality)},[t,s]=(0,x.useState)({value:""}),[a,r]=(0,x.useState)({value:""});return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{plaintext:!0,label:"Protocol",value:"Reality"}),(0,g.jsx)(S.Vf,{label:"Dest",value:e.reality.dest,onChange:e=>n(n=>n.dest=e)}),(0,g.jsx)(S.Vf,{label:"Private Key",value:e.reality.privateKey,onChange:e=>n(n=>n.privateKey=e)}),(0,g.jsxs)(b.Z.Group,{as:k.Z,className:"mb-3",children:[(0,g.jsx)(b.Z.Label,{column:!0,sm:2,className:"nowrap",children:"Short ID"}),e.reality.shortId.map((e,t)=>(0,g.jsx)(C.Z,{sm:{span:10,offset:0!==t?2:0},children:(0,g.jsxs)(J.Z,{className:"mb-2",children:[(0,g.jsx)(b.Z.Control,{value:e,onChange:e=>n(n=>{n.shortId[t]=e.target.value})}),(0,g.jsx)(N.Z,{variant:"outline-danger",onClick:()=>n(e=>{e.shortId.splice(t,1)}),children:(0,g.jsx)("i",{className:"bi bi-x-lg"})})]})},t)),(0,g.jsx)(C.Z,{sm:{span:10,offset:0!==e.reality.shortId.length?2:0},children:(0,g.jsxs)(J.Z,{className:"mb-2",children:[(0,g.jsx)(b.Z.Control,{value:t.value,onChange:e=>s({value:e.target.value})}),(0,g.jsx)(N.Z,{variant:"outline-success",onClick:()=>n(e=>{e.shortId.push(t.value)}),children:(0,g.jsx)("i",{className:"bi bi-plus-lg"})})]})})]}),(0,g.jsxs)(b.Z.Group,{as:k.Z,className:"mb-3",children:[(0,g.jsx)(b.Z.Label,{column:!0,sm:2,className:"nowrap",children:"Server Name"}),e.reality.serverName.map((e,t)=>(0,g.jsx)(C.Z,{sm:{span:10,offset:0!==t?2:0},children:(0,g.jsxs)(J.Z,{className:"mb-2",children:[(0,g.jsx)(b.Z.Control,{value:e,onChange:e=>n(n=>{n.serverName[t]=e.target.value})}),(0,g.jsx)(N.Z,{variant:"outline-danger",onClick:()=>n(e=>{e.serverName.splice(t,1)}),children:(0,g.jsx)("i",{className:"bi bi-x-lg"})})]})},t)),(0,g.jsx)(C.Z,{sm:{span:10,offset:0!==e.reality.serverName.length?2:0},children:(0,g.jsxs)(J.Z,{className:"mb-2",children:[(0,g.jsx)(b.Z.Control,{value:a.value,onChange:e=>r({value:e.target.value})}),(0,g.jsx)(N.Z,{variant:"outline-success",onClick:()=>n(e=>{e.serverName.push(a.value)}),children:(0,g.jsx)("i",{className:"bi bi-plus-lg"})})]})})]})]})}),eV=x.memo(e=>{let n=n=>{n(e.yuubinsya),e.onChange(e.yuubinsya)};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Z.J,{label:"TCP Encrypt",checked:e.yuubinsya.tcpEncrypt,onChange:()=>n(e=>e.tcpEncrypt=!e.tcpEncrypt)}),(0,g.jsx)(Z.J,{label:"UDP Encrypt",checked:e.yuubinsya.udpEncrypt,onChange:()=>n(e=>e.udpEncrypt=!e.udpEncrypt)}),(0,g.jsx)(Z.J,{label:"Mux",checked:e.yuubinsya.mux,onChange:()=>n(e=>e.mux=!e.mux)}),(0,g.jsx)(S.Vf,{label:"Host",value:e.yuubinsya.host,onChange:e=>n(n=>n.host=e)}),(0,g.jsx)(S.Vf,{label:"Password",value:e.yuubinsya.password,onChange:e=>n(n=>n.password=e)}),(()=>{switch(e.yuubinsya.protocol.case){case"websocket":return(0,g.jsx)(eJ,{websocket:new ec(e.yuubinsya.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"quic":return(0,g.jsx)(eS,{quic:new ed(e.yuubinsya.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"grpc":return(0,g.jsx)(eF,{grpc:new eh(e.yuubinsya.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"http2":return(0,g.jsx)(eP,{http2:new ep(e.yuubinsya.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"reality":return(0,g.jsx)(eB,{reality:new ev(e.yuubinsya.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"tls":return(0,g.jsx)(eq,{tls:new em(e.yuubinsya.protocol.value),onChange:e=>n(n=>n.protocol.value=e)})}})()]})}),eI=x.memo(e=>{let n=n=>{n(e.protocol),e.onChange(e.protocol)};switch(e.protocol.protocol.case){case"http":return(0,g.jsx)(ey,{http:new $(e.protocol.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"socks5":return(0,g.jsx)(eb,{socks5:new ee(e.protocol.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"mix":return(0,g.jsx)(ek,{mixed:new et(e.protocol.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"redir":return(0,g.jsx)(ew,{redir:new es(e.protocol.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"tun":return(0,g.jsx)(eC,{tun:new er(e.protocol.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"yuubinsya":return(0,g.jsx)(eV,{yuubinsya:new ei(e.protocol.protocol.value),onChange:e=>n(n=>n.protocol.value=e)});case"tproxy":return(0,g.jsx)(ej,{tproxy:new ea(e.protocol.protocol.value),onChange:e=>n(n=>n.protocol.value=e)})}return(0,g.jsx)(g.Fragment,{})}),eL=x.memo(e=>{let n=n=>{n(e.server),e.onChange(e.server)};return(0,g.jsx)(g.Fragment,{children:Object.entries(e.server.servers).sort((e,n)=>e[0]<=n[0]?-1:1).map(e=>{let[t,s]=e;return(0,g.jsxs)("div",{children:[(0,g.jsxs)(w.Z.Title,{className:"d-flex justify-content-between align-items-center",children:[t,(0,g.jsx)(N.Z,{variant:"outline-danger",onClick:()=>n(e=>{e.servers&&delete e.servers[t]}),children:(0,g.jsx)("i",{className:"bi bi-x-lg"})})]}),(0,g.jsx)(Z.J,{label:"Enabled",checked:s.enabled,onChange:()=>n(e=>e.servers[t].enabled=!e.servers[t].enabled)}),(0,g.jsx)(eI,{protocol:new M(s),onChange:e=>n(n=>n.servers[t]=e)})]},t)})})});var eE=t(716),eD=t(1159),eR=t(1617),eH=t(879),eU=t(6264),eK=t.n(eU);(u=f||(f={}))[u.verbose=0]="verbose",u[u.debug=1]="debug",u[u.info=2]="info",u[u.warning=3]="warning",u[u.error=4]="error",u[u.fatal=5]="fatal",F.w.util.setEnumType(f,"yuhaiin.log.log_level",[{no:0,name:"verbose"},{no:1,name:"debug"},{no:2,name:"info"},{no:3,name:"warning"},{no:4,name:"error"},{no:5,name:"fatal"}]);class eG extends q.v{static fromBinary(e,n){return new eG().fromBinary(e,n)}static fromJson(e,n){return new eG().fromJson(e,n)}static fromJsonString(e,n){return new eG().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(eG,e,n)}constructor(e){super(),this.level=0,this.save=!1,F.w.util.initPartial(e,this)}}eG.runtime=F.w,eG.typeName="yuhaiin.log.logcat",eG.fields=F.w.util.newFieldList(()=>[{no:1,name:"level",kind:"enum",T:F.w.getEnumType(f)},{no:2,name:"save",kind:"scalar",T:8}]);class eO extends q.v{static fromBinary(e,n){return new eO().fromBinary(e,n)}static fromJson(e,n){return new eO().fromJson(e,n)}static fromJsonString(e,n){return new eO().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(eO,e,n)}constructor(e){super(),this.ipv6=!1,this.netInterface="",F.w.util.initPartial(e,this)}}eO.runtime=F.w,eO.typeName="yuhaiin.config.setting",eO.fields=F.w.util.newFieldList(()=>[{no:7,name:"ipv6",kind:"scalar",T:8},{no:6,name:"net_interface",jsonName:"net_interface",kind:"scalar",T:9},{no:1,name:"system_proxy",jsonName:"system_proxy",kind:"message",T:eW},{no:2,name:"bypass",kind:"message",T:L},{no:4,name:"dns",kind:"message",T:B},{no:5,name:"server",kind:"message",T:O},{no:8,name:"logcat",kind:"message",T:eG}]);class eW extends q.v{static fromBinary(e,n){return new eW().fromBinary(e,n)}static fromJson(e,n){return new eW().fromJson(e,n)}static fromJsonString(e,n){return new eW().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(eW,e,n)}constructor(e){super(),this.http=!1,this.socks5=!1,F.w.util.initPartial(e,this)}}eW.runtime=F.w,eW.typeName="yuhaiin.config.system_proxy",eW.fields=F.w.util.newFieldList(()=>[{no:2,name:"http",kind:"scalar",T:8},{no:3,name:"socks5",kind:"scalar",T:8}]);class eA extends q.v{static fromBinary(e,n){return new eA().fromBinary(e,n)}static fromJson(e,n){return new eA().fromJson(e,n)}static fromJsonString(e,n){return new eA().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(eA,e,n)}constructor(e){super(),this.version="",this.commit="",this.buildTime="",this.goVersion="",this.arch="",this.platform="",this.os="",this.compiler="",this.build=[],F.w.util.initPartial(e,this)}}eA.runtime=F.w,eA.typeName="yuhaiin.config.info",eA.fields=F.w.util.newFieldList(()=>[{no:1,name:"version",kind:"scalar",T:9},{no:2,name:"commit",kind:"scalar",T:9},{no:3,name:"build_time",jsonName:"build_time",kind:"scalar",T:9},{no:4,name:"go_version",jsonName:"go_version",kind:"scalar",T:9},{no:5,name:"arch",kind:"scalar",T:9},{no:6,name:"platform",kind:"scalar",T:9},{no:7,name:"os",kind:"scalar",T:9},{no:8,name:"compiler",kind:"scalar",T:9},{no:9,name:"build",kind:"scalar",T:9,repeated:!0}]);class eM extends q.v{static fromBinary(e,n){return new eM().fromBinary(e,n)}static fromJson(e,n){return new eM().fromJson(e,n)}static fromJsonString(e,n){return new eM().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(eM,e,n)}constructor(e){super(),this.interfaces=[],F.w.util.initPartial(e,this)}}eM.runtime=F.w,eM.typeName="yuhaiin.tools.Interfaces",eM.fields=F.w.util.newFieldList(()=>[{no:1,name:"interfaces",kind:"message",T:ez,repeated:!0}]);class ez extends q.v{static fromBinary(e,n){return new ez().fromBinary(e,n)}static fromJson(e,n){return new ez().fromJson(e,n)}static fromJsonString(e,n){return new ez().fromJsonString(e,n)}static equals(e,n){return F.w.util.equals(ez,e,n)}constructor(e){super(),this.name="",this.addresses=[],F.w.util.initPartial(e,this)}}ez.runtime=F.w,ez.typeName="yuhaiin.tools.Interface",ez.fields=F.w.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"addresses",kind:"scalar",T:9,repeated:!0}]);var eQ=t(9882),eY=t(4694);function eX(e,n){return n?function(t){t(e),n(e)}:function(e){}}let e$=e=>(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(eQ.Z,{show:e.show,scrollable:!0,"aria-labelledby":"contained-modal-title-vcenter",size:"xl",onHide:()=>{e.onHide()},centered:!0,children:[(0,g.jsx)(eQ.Z.Header,{children:(0,g.jsx)(eQ.Z.Title,{id:"contained-modal-title-vcenter",children:e.value.name})}),(0,g.jsx)(eQ.Z.Body,{children:(0,g.jsx)(e1,{inbound:e.value,onChange:e.onChange})}),(0,g.jsx)(eQ.Z.Footer,{children:(0,g.jsx)(N.Z,{variant:"outline-primary",onClick:()=>{e.onHide()},children:"Save"})})]})}),e0=e=>{var n;let t=eX(e.inbounds,e.onChange),[s,a]=(0,x.useState)({show:!1,inbound:new W({}),onChange:e=>{}}),[r,o]=(0,x.useState)({value:""});return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(e$,{show:s.show,value:s.inbound,onHide:()=>{a({...s,show:!1})},onChange:s.onChange}),(0,g.jsx)(Z.J,{label:"DNS Hijack",checked:!!e.inbounds.hijackDns,onChange:()=>t(e=>e.hijackDns=!e.hijackDns)}),(0,g.jsx)(Z.J,{label:"Fakedns",checked:!!e.inbounds.hijackDnsFakeip,onChange:()=>t(e=>e.hijackDnsFakeip=!e.hijackDnsFakeip)}),(0,g.jsx)(Z.J,{label:"Sniff",checked:null!==(n=e.inbounds.sniff)&&void 0!==n&&!!n.enabled,onChange:()=>t(e=>{var n;return e.sniff=new ex({enabled:!(null===(n=e.sniff)||void 0===n?void 0:n.enabled)})})}),(0,g.jsx)("hr",{}),(0,g.jsxs)(w.Z,{children:[(0,g.jsx)(w.Z.Header,{children:"Inbounds"}),0===Object.keys(e.inbounds.inbounds).length?(0,g.jsx)(w.Z.Body,{children:(0,g.jsx)("div",{className:"text-center my-2",style:{opacity:"0.4"},children:"No Inbounds"})}):(0,g.jsx)(eY.Z,{variant:"flush",children:Object.entries(e.inbounds.inbounds).sort((e,n)=>e[0]<=n[0]?-1:1).map(e=>{let[n,s]=e;return(0,g.jsx)(x.Fragment,{children:(0,g.jsxs)(eY.Z.Item,{action:!0,className:"d-flex justify-content-between align-items-center",style:{border:"0ch",borderBottom:"1px solid #dee2e6"},onClick:e=>{e.stopPropagation(),a({show:!0,inbound:s,onChange:e=>{t(t=>t.inbounds[n]=e)}})},children:[n,(0,g.jsx)(N.Z,{variant:"outline-danger",size:"sm",as:"span",onClick:e=>{e.stopPropagation(),t(e=>{delete e.inbounds[n]})},children:(0,g.jsx)("i",{className:"bi bi-x-lg"})},n+"span-button")]})},"inbounds-"+n)})}),(0,g.jsx)(w.Z.Footer,{children:(0,g.jsxs)(J.Z,{className:"d-flex justify-content-end",children:[(0,g.jsx)(b.Z.Control,{value:r.value,onChange:e=>o({value:e.target.value})}),(0,g.jsxs)(N.Z,{variant:"outline-success",onClick:()=>{""!==r.value&&void 0===e.inbounds.inbounds[r.value]&&t(e=>e.inbounds[r.value]=new W({name:r.value}))},children:[(0,g.jsx)("i",{className:"bi bi-plus-lg"}),"New "]})]})})]})]})},e1=e=>{let n=eX(e.inbound,e.onChange),t=(t,s)=>{e.inbound.transport.length<=1||t&&0===s||!t&&s===e.inbound.transport.length-1||n(e=>{let n=e.transport[s];e.transport[s]=e.transport[s+(t?-1:1)],e.transport[s+(t?-1:1)]=n})},[s,a]=(0,x.useState)({value:"normal"});return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Z.J,{label:"Enabled",checked:e.inbound.enabled,onChange:()=>{n(e=>e.enabled=!e.enabled)}}),(0,g.jsx)(S.Vf,{label:"Name",value:e.inbound.name,onChange:e=>{n(n=>n.name=e)}}),(0,g.jsx)(S.W2,{title:"Network",hideClose:!0,children:(0,g.jsx)(e2,{inbound:e.inbound,onChange:e=>{n(n=>e)}})}),(0,g.jsx)(S.W2,{title:"Transport",hideClose:!0,children:(0,g.jsxs)(g.Fragment,{children:[e.inbound.transport.map((s,a)=>{var r,o;return(0,g.jsx)(S.W2,{title:null!==(o=null===(r=s.transport.case)||void 0===r?void 0:r.toString())&&void 0!==o?o:"",onClose:()=>{n(e=>e.transport.splice(a,1))},moveUpDown:new S.kx(e.inbound.transport.length,a,e=>t(e,a)),children:(0,g.jsx)(e4,{transport:s,onChange:e=>{n(n=>n.transport[a]=e)}},a)},a)}),(0,g.jsx)(eY.Z,{variant:"flush",children:(0,g.jsx)(eY.Z.Item,{children:(0,g.jsxs)(J.Z,{children:[(0,g.jsx)(b.Z.Select,{value:s.value,onChange:e=>a({value:e.target.value}),children:["normal","tls","mux","http2","websocket","grpc","reality"].map(e=>(0,g.jsx)("option",{value:e,children:e},e))}),(0,g.jsxs)(N.Z,{variant:"outline-success",onClick:()=>n(e=>{switch(s.value){case"normal":e.transport.push(new A({transport:{case:"normal",value:new eu({})}}));break;case"tls":e.transport.push(new A({transport:{case:"tls",value:new em({tls:new ef({})})}}));break;case"mux":e.transport.push(new A({transport:{case:"mux",value:new Q({})}}));break;case"http2":e.transport.push(new A({transport:{case:"http2",value:new ep({})}}));break;case"websocket":e.transport.push(new A({transport:{case:"websocket",value:new ec({})}}));break;case"grpc":e.transport.push(new A({transport:{case:"grpc",value:new eh({})}}));break;case"reality":e.transport.push(new A({transport:{case:"reality",value:new ev({})}}))}}),children:[(0,g.jsx)("i",{className:"bi bi-plus-lg"}),"Add"]})]})})})]})}),(0,g.jsx)(S.W2,{title:"Protocol",hideClose:!0,children:(0,g.jsx)(e3,{inbound:e.inbound,onChange:e=>{n(n=>e)}})})]})},e2=e=>{var n,t;let s=eX(e.inbound,e.onChange),[a,r]=(0,x.useState)({value:null!==(t=null===(n=e.inbound.network.case)||void 0===n?void 0:n.toString())&&void 0!==t?t:"tcpudp"});return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(eY.Z,{variant:"flush",children:(0,g.jsx)(eY.Z.Item,{children:(0,g.jsxs)(J.Z,{children:[(0,g.jsx)(b.Z.Select,{value:a.value,onChange:e=>r({value:e.target.value}),children:["empty","tcpudp","quic"].map(e=>(0,g.jsx)("option",{value:e,children:e},e))}),(0,g.jsx)(N.Z,{variant:"outline-success",onClick:()=>s(e=>{switch(a.value){case"tcpudp":e.network={case:"tcpudp",value:new Y({})};break;case"quic":e.network={case:"quic",value:new ei({})};break;case"empty":e.network={case:"empty",value:new z({})}}}),children:"Use"})]})})}),(0,g.jsx)("br",{}),(0,g.jsx)(e9,{inbound:e.inbound,onChange:e.onChange})]})},e9=e=>{let n=eX(e.inbound,e.onChange);switch(e.inbound.network.case){case"tcpudp":return(0,g.jsx)(e5,{protocol:e.inbound.network.value,onChange:e=>{n(n=>n.network.value=e)}});case"quic":return(0,g.jsx)(eZ,{quic:e.inbound.network.value,onChange:e=>{n(n=>n.network.value=e)}});case"empty":return(0,g.jsx)(g.Fragment,{})}},e4=e=>{let n=eX(e.transport,e.onChange);switch(e.transport.transport.case){case"normal":return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"text-center",style:{opacity:"0.4"},children:"Normal"})});case"tls":return(0,g.jsx)(eq,{tls:e.transport.transport.value,onChange:e=>{n(n=>n.transport.value=e)}});case"mux":return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"text-center",style:{opacity:"0.4"},children:"Mux"})});case"http2":return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"text-center",style:{opacity:"0.4"},children:"HTTP2"})});case"websocket":return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"text-center",style:{opacity:"0.4"},children:"Websocket"})});case"grpc":return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"text-center",style:{opacity:"0.4"},children:"Grpc"})});case"reality":return(0,g.jsx)(eB,{reality:e.transport.transport.value,onChange:e=>{n(n=>n.transport.value=e)}})}},e6=e=>{let n=eX(e.inbound,e.onChange);switch(e.inbound.protocol.case){case"http":return(0,g.jsx)(ey,{http:e.inbound.protocol.value,onChange:e=>{n(n=>n.protocol.value=e)}});case"socks5":return(0,g.jsx)(eb,{socks5:e.inbound.protocol.value,onChange:e=>{n(n=>n.protocol.value=e)}});case"socks4a":return(0,g.jsx)(g.Fragment,{});case"mix":return(0,g.jsx)(ek,{mixed:e.inbound.protocol.value,onChange:e=>{n(n=>n.protocol.value=e)}});case"redir":return(0,g.jsx)(ew,{redir:e.inbound.protocol.value,onChange:e=>{n(n=>n.protocol.value=e)}});case"tun":return(0,g.jsx)(eC,{tun:e.inbound.protocol.value,onChange:e=>{n(n=>n.protocol.value=e)}});case"yuubinsya":return(0,g.jsx)(e8,{yuubinsya:e.inbound.protocol.value,onChange:e=>{n(n=>n.protocol.value=e)}});case"tproxy":return(0,g.jsx)(ej,{tproxy:e.inbound.protocol.value,onChange:e=>{n(n=>n.protocol.value=e)}})}},e3=e=>{var n,t;let s=eX(e.inbound,e.onChange),[a,r]=(0,x.useState)({value:null!==(t=null===(n=e.inbound.protocol.case)||void 0===n?void 0:n.toString())&&void 0!==t?t:"yuubinsya"});return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(eY.Z,{variant:"flush",children:(0,g.jsx)(eY.Z.Item,{children:(0,g.jsxs)(J.Z,{children:[(0,g.jsx)(b.Z.Select,{value:a.value,onChange:e=>r({value:e.target.value}),children:["http","socks5","mix","redir","tun","yuubinsya","tproxy"].map(e=>(0,g.jsx)("option",{value:e,children:e},e))}),(0,g.jsx)(N.Z,{variant:"outline-success",onClick:()=>s(e=>{switch(a.value){case"http":e.protocol={case:"http",value:new $({})};break;case"socks5":e.protocol={case:"socks5",value:new ee({})};break;case"mix":e.protocol={case:"mix",value:new et({})};break;case"redir":e.protocol={case:"redir",value:new es({})};break;case"tun":e.protocol={case:"tun",value:new er({})};break;case"yuubinsya":e.protocol={case:"yuubinsya",value:new ei({})};break;case"tproxy":e.protocol={case:"tproxy",value:new ea({})}}}),children:"Use"})]})})}),(0,g.jsx)("br",{}),(0,g.jsx)(e6,{inbound:e.inbound,onChange:e=>{s(n=>e)}})]})},e8=e=>{let n=eX(e.yuubinsya,e.onChange);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Z.J,{label:"TCP Encrypt",checked:e.yuubinsya.tcpEncrypt,onChange:()=>{n(e=>e.tcpEncrypt=!e.tcpEncrypt)}}),(0,g.jsx)(Z.J,{label:"UDP Encrypt",checked:e.yuubinsya.udpEncrypt,onChange:()=>{n(e=>e.udpEncrypt=!e.udpEncrypt)}}),(0,g.jsx)(S.Vf,{label:"Password",value:e.yuubinsya.password,onChange:e=>{n(n=>n.password=e)}})]})},e5=e=>{let n=eX(e.protocol,e.onChange);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S.Vf,{label:"Host",value:e.protocol.host,onChange:e=>{n(n=>n.host=e)}}),(0,g.jsx)(e7,{label:"Control",type:F.w.getEnumType(p),value:e.protocol.control,onChange:e=>{n(n=>n.control=e)}})]})};function e7(e){var n;return(0,g.jsxs)(b.Z.Group,{as:k.Z,className:"mb-3",children:[(0,g.jsx)(b.Z.Label,{column:!0,sm:2,children:e.label}),(0,g.jsx)(C.Z,{sm:10,children:(0,g.jsx)(b.Z.Select,{value:e.value,onChange:n=>e.onChange(Number(n.target.value)),children:e.type.values.filter(null!==(n=e.filter)&&void 0!==n?n:()=>!0).map(e=>(0,g.jsx)("option",{value:e.no,children:e.name},e.no))})})]})}var ne=function(){var e,n,t,s,a,r,o,i;let l=(0,x.useContext)(eD.P),{data:u,error:c,isLoading:d,mutate:m}=(0,eR.ZP)("/config",(0,eH.D)(new eO),{revalidateOnFocus:!1}),{data:h}=(0,eR.ZP)("/info",(0,eH.D)(new eA),{}),{data:p}=(0,eR.ZP)("/interfaces",(0,eH.D)(new eM),{revalidateOnFocus:!0});if(void 0!==c)return(0,g.jsx)(eK(),{statusCode:c.code,title:c.msg});if(d||void 0===u)return(0,g.jsx)(eE.Z,{});let v=e=>{m(n=>{let t=new eO(n);return e(t),t},!1)},f=e=>{var n,t,s=[];return(null===(n=e.systemProxy)||void 0===n?void 0:n.http)&&s.push(1),(null===(t=e.systemProxy)||void 0===t?void 0:t.socks5)&&s.push(2),s};return(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(y.Z.Container,{defaultActiveKey:"home",children:(0,g.jsxs)(w.Z,{className:"mb-3",children:[(0,g.jsx)(w.Z.Header,{children:(0,g.jsxs)(j.Z,{variant:"tabs",style:{flexWrap:"nowrap",overflow:"auto hidden"},children:[(0,g.jsx)(j.Z.Item,{children:(0,g.jsx)(j.Z.Link,{eventKey:"home",children:"Setting"})}),(0,g.jsx)(j.Z.Item,{children:(0,g.jsx)(j.Z.Link,{eventKey:"dns",children:"DNS"})}),(0,g.jsx)(j.Z.Item,{children:(0,g.jsx)(j.Z.Link,{eventKey:"bypass",children:"Bypass"})}),(0,g.jsx)(j.Z.Item,{children:(0,g.jsx)(j.Z.Link,{eventKey:"inbound",children:"Inbound"})}),(0,g.jsx)(j.Z.Item,{children:(0,g.jsx)(j.Z.Link,{eventKey:"inbound_old",children:"Inbound(Deprecated)"})}),(0,g.jsx)(j.Z.Item,{children:(0,g.jsx)(j.Z.Link,{eventKey:"info",children:"Info"})})]})}),(0,g.jsx)(w.Z.Body,{children:(0,g.jsxs)(y.Z.Content,{children:[(0,g.jsx)(y.Z.Pane,{eventKey:"home",children:(0,g.jsxs)("fieldset",{disabled:(null==h?void 0:h.os)==="android",children:[(0,g.jsx)(Z.J,{label:"IPv6",checked:u.ipv6,onChange:()=>m(new eO({...u,ipv6:!u.ipv6}),!1)}),(0,g.jsx)(S.Vf,{label:"Network Interface",value:u.netInterface,onChange:e=>v(n=>n.netInterface=e),reminds:null==p?void 0:p.interfaces.map(e=>{if(e.name){var n;return{label:e.name,value:e.name,label_children:null===(n=e.addresses)||void 0===n?void 0:n.map(e=>e||"")}}}).filter(e=>!!e)}),(0,g.jsxs)(b.Z.Group,{as:k.Z,className:"mb-2",children:[(0,g.jsx)(b.Z.Label,{column:!0,sm:2,className:"nowrap",children:"System Proxy"}),(0,g.jsx)(C.Z,{sm:10,children:(0,g.jsxs)(T.Z,{type:"checkbox",className:"d-flex",defaultValue:f(u),value:f(u),onChange:e=>{let n=!1,t=!1;for(var s of e)1===s&&(n=!0),2===s&&(t=!0);v(e=>{e.systemProxy=new eW({http:n,socks5:t})})},children:[(0,g.jsx)(_.Z,{variant:"outline-primary",className:"w-100",id:"system-proxy-tbg-btn-1",value:1,children:"HTTP"}),(0,g.jsx)(_.Z,{variant:"outline-primary",className:"w-100",id:"system-proxy-tbg-btn-2",value:2,children:"SOCKS5"})]})})]}),(0,g.jsx)("hr",{}),(0,g.jsx)(w.Z.Title,{className:"mb-2",children:"Logcat"}),(0,g.jsx)(Z.J,{label:"Save",checked:u.logcat.save,onChange:()=>v(e=>e.logcat.save=!e.logcat.save)}),(0,g.jsx)(nn,{label:"Level",value:u.logcat.level,onChange:e=>v(n=>{n.logcat.level=e})})]})}),(0,g.jsx)(y.Z.Pane,{eventKey:"bypass",children:(0,g.jsx)("fieldset",{disabled:(null==h?void 0:h.os)==="android",children:(0,g.jsx)(D,{bypass:new L(u.bypass),onChange:e=>v(n=>n.bypass=e)})})}),(0,g.jsx)(y.Z.Pane,{eventKey:"dns",title:"DNS",children:(0,g.jsx)("fieldset",{disabled:(null==h?void 0:h.os)==="android",children:(0,g.jsx)(V,{data:new B(u.dns),onChange:e=>v(n=>n.dns=e)})})}),(0,g.jsx)(y.Z.Pane,{eventKey:"inbound",title:"Inbound",children:(0,g.jsx)("fieldset",{disabled:(null==h?void 0:h.os)==="android",children:(0,g.jsx)(e0,{inbounds:u.server,onChange:e=>{v(n=>n.server=e)}})})}),(0,g.jsx)(y.Z.Pane,{eventKey:"inbound_old",children:(0,g.jsx)("fieldset",{disabled:(null==h?void 0:h.os)==="android",children:(0,g.jsx)(eL,{server:u.server,onChange:e=>v(n=>n.server=e)})})}),(0,g.jsxs)(y.Z.Pane,{eventKey:"info",children:[(0,g.jsx)(S.Vf,{plaintext:!0,mb:"mb-0",label:"Version",value:null!==(e=null==h?void 0:h.version)&&void 0!==e?e:""}),(0,g.jsx)(S.Vf,{url:"https://github.com/yuhaiin/yuhaiin/commit/"+(null==h?void 0:h.commit),plaintext:!0,mb:"mb-0",label:"Commit",value:null!==(n=null==h?void 0:h.commit)&&void 0!==n?n:""}),(0,g.jsx)(S.Vf,{plaintext:!0,mb:"mb-0",label:"Build Time",value:null!==(t=null==h?void 0:h.buildTime)&&void 0!==t?t:""}),(0,g.jsx)(S.Vf,{plaintext:!0,mb:"mb-0",label:"Go Version",value:null!==(s=null==h?void 0:h.goVersion)&&void 0!==s?s:""}),(0,g.jsx)(S.Vf,{url:"https://github.com/yuhaiin/yuhaiin",plaintext:!0,mb:"mb-0",label:"Github",value:"yuhaiin/yuhaiin"}),(0,g.jsx)(S.Vf,{plaintext:!0,mb:"mb-0",label:"OS",value:null!==(a=null==h?void 0:h.os)&&void 0!==a?a:""}),(0,g.jsx)(S.Vf,{plaintext:!0,mb:"mb-0",label:"Arch",value:null!==(r=null==h?void 0:h.arch)&&void 0!==r?r:""}),(0,g.jsx)(S.Vf,{plaintext:!0,mb:"mb-0",label:"Compiler",value:null!==(o=null==h?void 0:h.compiler)&&void 0!==o?o:""}),(0,g.jsx)(S.Vf,{plaintext:!0,mb:"mb-0",label:"Platform",value:null!==(i=null==h?void 0:h.platform)&&void 0!==i?i:""}),(0,g.jsx)(S.sr,{title:"Build",data:null==h?void 0:h.build,mb:"mb-0"})]})]})}),(null==h?void 0:h.os)!="android"&&(0,g.jsx)(w.Z.Footer,{className:"d-flex justify-content-md-end",children:(0,g.jsx)(N.Z,{variant:"outline-primary",onClick:()=>{(0,eH.U)("/config",{body:u.toBinary()}).then(async e=>{let{error:n}=e;void 0!==n?l.Error("save config failed, ".concat(n.code,"| ").concat(await n.msg)):(l.Info("Save Config Successfully"),m())})},children:"Save"})})]})})})};function nn(e){return(0,g.jsxs)(b.Z.Group,{as:k.Z,className:"mb-3",children:[(0,g.jsx)(b.Z.Label,{column:!0,sm:2,children:e.label}),(0,g.jsx)(C.Z,{sm:10,children:(0,g.jsxs)(b.Z.Select,{value:f[e.value],onChange:n=>e.onChange(f[n.target.value]),children:[(0,g.jsx)("option",{value:f[f.debug],children:"DEBUG"}),(0,g.jsx)("option",{value:f[f.info],children:"INFO"}),(0,g.jsx)("option",{value:f[f.warning],children:"WARN"}),(0,g.jsx)("option",{value:f[f.error],children:"ERROR"})]})})]})}}},function(e){e.O(0,[416,113,485,466,262,364,672,498,688,971,23,744],function(){return e(e.s=2280)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/docs/webui/page-2405f45520f40f0d.js b/_next/static/chunks/app/docs/webui/page-2405f45520f40f0d.js deleted file mode 100644 index e14cd7c7..00000000 --- a/_next/static/chunks/app/docs/webui/page-2405f45520f40f0d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[214],{9771:function(e,t,r){Promise.resolve().then(r.bind(r,6660))},4971:function(e,t,r){"use strict";r.d(t,{$f:function(){return m},XE:function(){return f},YO:function(){return l},fG:function(){return n},gU:function(){return s},gW:function(){return d},qQ:function(){return a},r:function(){return u},rQ:function(){return o},zP:function(){return c}});var n="",a="https://raw.githubusercontent.com/yuhaiin/kitte/main/yuhaiin/yuhaiin.conf",o="https://clients3.google.com/generate_204",s="dns.nextdns.io:853",l=!0;let i=()=>{let e=localStorage.getItem("api_url");n=null!==e?e:"",null!==(e=localStorage.getItem("remote_bypass"))&&(a=e),null!==(e=localStorage.getItem("latency_http_url"))&&(o=e),null!==(e=localStorage.getItem("latency_dns_url"))&&(s=e),null!==(e=localStorage.getItem("latency_ipv6"))&&(l="true"===e)},u=e=>{w("api_url",e)},c=e=>{w("remote_bypass",e)},m=e=>{w("latency_dns_url",e)},f=e=>{w("latency_http_url",e)},d=e=>{w("latency_ipv6",e.toString())},w=(e,t)=>{""===t?localStorage.removeItem(e):localStorage.setItem(e,t),i()};i()},879:function(e,t,r){"use strict";r.d(t,{D:function(){return a},U:function(){return o}});var n=r(4971);function a(e,t,r){return a=>fetch("".concat(n.fG).concat(a),{method:t,body:r}).then(async t=>{if(!t.ok)throw{code:t.status,msg:t.statusText,raw:t.text()};return e.fromBinary(new Uint8Array(await t.arrayBuffer()))})}let o=async(e,t)=>{let r=await fetch("".concat(n.fG).concat(e),{method:void 0!==t.method?t.method:"POST",body:t.body});return r.ok?void 0===t.process?{}:{data:t.process(r)}:{error:{code:r.status,msg:r.text()}}}},6601:function(e,t,r){"use strict";r.d(t,{J:function(){return l}});var n=r(7437);r(2265);var a=r(7420),o=r(358),s=r(6712);let l=e=>(0,n.jsxs)(a.Z.Group,{as:o.Z,className:"mb-2",children:[(0,n.jsx)(a.Z.Label,{column:!0,sm:2,children:e.label}),(0,n.jsx)(s.Z,{sm:10,className:"d-flex align-items-center",children:(0,n.jsx)(a.Z.Check,{className:"d-flex align-items-center",type:"switch",checked:e.checked,onChange:()=>e.onChange()})})]})},1159:function(e,t,r){"use strict";r.d(t,{P:function(){return l},t:function(){return i}});var n=r(7437),a=r(2265),o=r(8620),s=r(1529);let l=(0,a.createContext)({Info:e=>{},Error:e=>{}}),i=e=>{let{children:t}=e,[r,i]=(0,a.useState)({value:{},index:0}),u=(e,t)=>i(r=>({value:{...r.value,[r.index]:{text:e,type:t}},index:r.index+1}));return(0,n.jsxs)(l.Provider,{value:{Info:e=>{console.log(e),u(e,"success")},Error:e=>{console.error(e),u(e,"danger")}},children:[(0,n.jsx)(o.Z,{className:"p-3",position:"top-center",containerPosition:"fixed",style:{zIndex:999999},children:Object.entries(r.value).map(e=>{let[t,a]=e;return(0,n.jsxs)(s.Z,{role:"alert","aria-live":"assertive",show:!0,bg:a.type,onClose:()=>{let e=r.value;delete e[t],i({...r,value:e}),console.log("close: "+t)},"aria-atomic":"true",delay:4e3,autohide:!0,animation:!0,children:[(0,n.jsxs)(s.Z.Header,{children:[(0,n.jsx)("strong",{className:"me-auto",children:"Notification"}),(0,n.jsx)("small",{className:"text-muted",children:"just now"})]}),(0,n.jsx)(s.Z.Body,{className:"text-center",children:a.text})]},"toast"+t)})}),t]})}},6660:function(e,t,r){"use strict";r.r(t);var n=r(7437),a=r(2265),o=r(7420),s=r(358),l=r(6712),i=r(2808),u=r(7185),c=r(4971),m=r(1159),f=r(6601),d=r(879),w=r(6541);let g=e=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(o.Z.Group,{as:s.Z,className:"mb-1 ms-1",children:(0,n.jsxs)(s.Z,{className:"g-2",children:[(0,n.jsx)(o.Z.Label,{column:!0,sm:2,className:"nowrap",children:e.title}),(0,n.jsx)(l.Z,{sm:6,children:(0,n.jsx)(o.Z.Control,{value:e.value,onChange:t=>e.onChange(t.target.value),placeholder:e.placeholder})}),(0,n.jsx)(l.Z,{sm:2,children:(0,n.jsx)(i.Z,{onClick:()=>e.onClick(),children:e.buttonText?e.buttonText:"Save"})})]})})});t.default=function(){let e=(0,a.useContext)(m.P),[t,r]=(0,a.useState)(c.fG),[o,s]=(0,a.useState)(c.qQ),[l,i]=(0,a.useState)(c.rQ),[h,p]=(0,a.useState)(c.gU),[v,y]=(0,a.useState)(c.YO);return(0,n.jsxs)(n.Fragment,{children:[" ",(0,n.jsx)(u.Z,{className:"mb-3",children:(0,n.jsxs)(u.Z.Body,{children:[(0,n.jsx)(g,{title:"API Host",value:t,onChange:r,placeholder:"http://127.0.0.1:50051",onClick:()=>{(0,c.r)(t),""!==t?e.Info("Set API Url: ".concat(t," success.")):e.Info("Remove API Url success."),console.log(t)},buttonText:"Save"}),(0,n.jsx)(g,{title:"Remote Rule",value:o,onChange:s,buttonText:"Update",onClick:()=>{(0,c.zP)(o),""!==o&&(0,d.U)("/bypass",{body:new w.Gm({value:o}).toBinary()}).then(async t=>{let{error:r}=t;void 0!==r?e.Error("update remote rule ".concat(o," failed, ").concat(r.code,"| ").concat(await r.msg)):e.Info("update remote rule ".concat(o," success"))})}}),(0,n.jsx)("hr",{}),(0,n.jsx)(u.Z.Title,{className:"mb-2",children:"Latency"}),(0,n.jsx)(f.J,{label:"IPv6",checked:v,onChange:()=>{y(!v),(0,c.gW)(!v)}}),(0,n.jsx)(g,{title:"HTTP(tcp)",placeholder:"https://clients3.google.com/generate_204",value:l,onChange:i,onClick:()=>{(0,c.XE)(l),""!==l?e.Info("Set Latency HTTP Url: ".concat(l," success.")):e.Info("Remove Latency HTTP Url success.")}}),(0,n.jsx)(g,{title:"DOQ(udp)",placeholder:"dns.adguard.com:853",value:h,onChange:p,onClick:()=>{(0,c.$f)(h),""!==h?e.Info("Set Latency DNS: ".concat(h," success.")):e.Info("Remove Latency DNS success.")}})]})})]})}},6541:function(e,t,r){"use strict";r.d(t,{Gm:function(){return w}});var n=r(1859),a=r(3256),o=r(3498),s=r(7065);class l extends n.v{constructor(e){super(),this.value=0,a.w.util.initPartial(e,this)}toJson(e){return a.w.json.writeScalar(o.w.DOUBLE,this.value,!0)}fromJson(e,t){try{this.value=a.w.json.readScalar(o.w.DOUBLE,e)}catch(t){let e='cannot decode message google.protobuf.DoubleValue from JSON"';throw t instanceof Error&&t.message.length>0&&(e+=`: ${t.message}`),Error(e)}return this}static fromBinary(e,t){return new l().fromBinary(e,t)}static fromJson(e,t){return new l().fromJson(e,t)}static fromJsonString(e,t){return new l().fromJsonString(e,t)}static equals(e,t){return a.w.util.equals(l,e,t)}}l.runtime=a.w,l.typeName="google.protobuf.DoubleValue",l.fields=a.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),l.fieldWrapper={wrapField:e=>new l({value:e}),unwrapField:e=>e.value};class i extends n.v{constructor(e){super(),this.value=0,a.w.util.initPartial(e,this)}toJson(e){return a.w.json.writeScalar(o.w.FLOAT,this.value,!0)}fromJson(e,t){try{this.value=a.w.json.readScalar(o.w.FLOAT,e)}catch(t){let e='cannot decode message google.protobuf.FloatValue from JSON"';throw t instanceof Error&&t.message.length>0&&(e+=`: ${t.message}`),Error(e)}return this}static fromBinary(e,t){return new i().fromBinary(e,t)}static fromJson(e,t){return new i().fromJson(e,t)}static fromJsonString(e,t){return new i().fromJsonString(e,t)}static equals(e,t){return a.w.util.equals(i,e,t)}}i.runtime=a.w,i.typeName="google.protobuf.FloatValue",i.fields=a.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),i.fieldWrapper={wrapField:e=>new i({value:e}),unwrapField:e=>e.value};class u extends n.v{constructor(e){super(),this.value=s.q.zero,a.w.util.initPartial(e,this)}toJson(e){return a.w.json.writeScalar(o.w.INT64,this.value,!0)}fromJson(e,t){try{this.value=a.w.json.readScalar(o.w.INT64,e)}catch(t){let e='cannot decode message google.protobuf.Int64Value from JSON"';throw t instanceof Error&&t.message.length>0&&(e+=`: ${t.message}`),Error(e)}return this}static fromBinary(e,t){return new u().fromBinary(e,t)}static fromJson(e,t){return new u().fromJson(e,t)}static fromJsonString(e,t){return new u().fromJsonString(e,t)}static equals(e,t){return a.w.util.equals(u,e,t)}}u.runtime=a.w,u.typeName="google.protobuf.Int64Value",u.fields=a.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),u.fieldWrapper={wrapField:e=>new u({value:e}),unwrapField:e=>e.value};class c extends n.v{constructor(e){super(),this.value=s.q.zero,a.w.util.initPartial(e,this)}toJson(e){return a.w.json.writeScalar(o.w.UINT64,this.value,!0)}fromJson(e,t){try{this.value=a.w.json.readScalar(o.w.UINT64,e)}catch(t){let e='cannot decode message google.protobuf.UInt64Value from JSON"';throw t instanceof Error&&t.message.length>0&&(e+=`: ${t.message}`),Error(e)}return this}static fromBinary(e,t){return new c().fromBinary(e,t)}static fromJson(e,t){return new c().fromJson(e,t)}static fromJsonString(e,t){return new c().fromJsonString(e,t)}static equals(e,t){return a.w.util.equals(c,e,t)}}c.runtime=a.w,c.typeName="google.protobuf.UInt64Value",c.fields=a.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),c.fieldWrapper={wrapField:e=>new c({value:e}),unwrapField:e=>e.value};class m extends n.v{constructor(e){super(),this.value=0,a.w.util.initPartial(e,this)}toJson(e){return a.w.json.writeScalar(o.w.INT32,this.value,!0)}fromJson(e,t){try{this.value=a.w.json.readScalar(o.w.INT32,e)}catch(t){let e='cannot decode message google.protobuf.Int32Value from JSON"';throw t instanceof Error&&t.message.length>0&&(e+=`: ${t.message}`),Error(e)}return this}static fromBinary(e,t){return new m().fromBinary(e,t)}static fromJson(e,t){return new m().fromJson(e,t)}static fromJsonString(e,t){return new m().fromJsonString(e,t)}static equals(e,t){return a.w.util.equals(m,e,t)}}m.runtime=a.w,m.typeName="google.protobuf.Int32Value",m.fields=a.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),m.fieldWrapper={wrapField:e=>new m({value:e}),unwrapField:e=>e.value};class f extends n.v{constructor(e){super(),this.value=0,a.w.util.initPartial(e,this)}toJson(e){return a.w.json.writeScalar(o.w.UINT32,this.value,!0)}fromJson(e,t){try{this.value=a.w.json.readScalar(o.w.UINT32,e)}catch(t){let e='cannot decode message google.protobuf.UInt32Value from JSON"';throw t instanceof Error&&t.message.length>0&&(e+=`: ${t.message}`),Error(e)}return this}static fromBinary(e,t){return new f().fromBinary(e,t)}static fromJson(e,t){return new f().fromJson(e,t)}static fromJsonString(e,t){return new f().fromJsonString(e,t)}static equals(e,t){return a.w.util.equals(f,e,t)}}f.runtime=a.w,f.typeName="google.protobuf.UInt32Value",f.fields=a.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),f.fieldWrapper={wrapField:e=>new f({value:e}),unwrapField:e=>e.value};class d extends n.v{constructor(e){super(),this.value=!1,a.w.util.initPartial(e,this)}toJson(e){return a.w.json.writeScalar(o.w.BOOL,this.value,!0)}fromJson(e,t){try{this.value=a.w.json.readScalar(o.w.BOOL,e)}catch(t){let e='cannot decode message google.protobuf.BoolValue from JSON"';throw t instanceof Error&&t.message.length>0&&(e+=`: ${t.message}`),Error(e)}return this}static fromBinary(e,t){return new d().fromBinary(e,t)}static fromJson(e,t){return new d().fromJson(e,t)}static fromJsonString(e,t){return new d().fromJsonString(e,t)}static equals(e,t){return a.w.util.equals(d,e,t)}}d.runtime=a.w,d.typeName="google.protobuf.BoolValue",d.fields=a.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),d.fieldWrapper={wrapField:e=>new d({value:e}),unwrapField:e=>e.value};class w extends n.v{constructor(e){super(),this.value="",a.w.util.initPartial(e,this)}toJson(e){return a.w.json.writeScalar(o.w.STRING,this.value,!0)}fromJson(e,t){try{this.value=a.w.json.readScalar(o.w.STRING,e)}catch(t){let e='cannot decode message google.protobuf.StringValue from JSON"';throw t instanceof Error&&t.message.length>0&&(e+=`: ${t.message}`),Error(e)}return this}static fromBinary(e,t){return new w().fromBinary(e,t)}static fromJson(e,t){return new w().fromJson(e,t)}static fromJsonString(e,t){return new w().fromJsonString(e,t)}static equals(e,t){return a.w.util.equals(w,e,t)}}w.runtime=a.w,w.typeName="google.protobuf.StringValue",w.fields=a.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),w.fieldWrapper={wrapField:e=>new w({value:e}),unwrapField:e=>e.value};class g extends n.v{constructor(e){super(),this.value=new Uint8Array(0),a.w.util.initPartial(e,this)}toJson(e){return a.w.json.writeScalar(o.w.BYTES,this.value,!0)}fromJson(e,t){try{this.value=a.w.json.readScalar(o.w.BYTES,e)}catch(t){let e='cannot decode message google.protobuf.BytesValue from JSON"';throw t instanceof Error&&t.message.length>0&&(e+=`: ${t.message}`),Error(e)}return this}static fromBinary(e,t){return new g().fromBinary(e,t)}static fromJson(e,t){return new g().fromJson(e,t)}static fromJsonString(e,t){return new g().fromJsonString(e,t)}static equals(e,t){return a.w.util.equals(g,e,t)}}g.runtime=a.w,g.typeName="google.protobuf.BytesValue",g.fields=a.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),g.fieldWrapper={wrapField:e=>new g({value:e}),unwrapField:e=>e.value}}},function(e){e.O(0,[416,113,262,971,23,744],function(){return e(e.s=9771)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/docs/webui/page-65a521370c615408.js b/_next/static/chunks/app/docs/webui/page-65a521370c615408.js new file mode 100644 index 00000000..8d8fbe73 --- /dev/null +++ b/_next/static/chunks/app/docs/webui/page-65a521370c615408.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[214],{9771:function(e,t,r){Promise.resolve().then(r.bind(r,6660))},4971:function(e,t,r){"use strict";r.d(t,{$f:function(){return m},XE:function(){return f},YO:function(){return l},fG:function(){return n},gU:function(){return s},gW:function(){return d},qQ:function(){return a},r:function(){return u},rQ:function(){return o},zP:function(){return c}});var n="",a="https://raw.githubusercontent.com/yuhaiin/kitte/main/yuhaiin/remote.conf",o="https://clients3.google.com/generate_204",s="dns.nextdns.io:853",l=!0;let i=()=>{let e=localStorage.getItem("api_url");n=null!==e?e:"",null!==(e=localStorage.getItem("remote_bypass"))&&(a=e),null!==(e=localStorage.getItem("latency_http_url"))&&(o=e),null!==(e=localStorage.getItem("latency_dns_url"))&&(s=e),null!==(e=localStorage.getItem("latency_ipv6"))&&(l="true"===e)},u=e=>{w("api_url",e)},c=e=>{w("remote_bypass",e)},m=e=>{w("latency_dns_url",e)},f=e=>{w("latency_http_url",e)},d=e=>{w("latency_ipv6",e.toString())},w=(e,t)=>{""===t?localStorage.removeItem(e):localStorage.setItem(e,t),i()};i()},879:function(e,t,r){"use strict";r.d(t,{D:function(){return a},U:function(){return o}});var n=r(4971);function a(e,t,r){return a=>fetch("".concat(n.fG).concat(a),{method:t,body:r}).then(async t=>{if(!t.ok)throw{code:t.status,msg:t.statusText,raw:t.text()};return e.fromBinary(new Uint8Array(await t.arrayBuffer()))})}let o=async(e,t)=>{let r=await fetch("".concat(n.fG).concat(e),{method:void 0!==t.method?t.method:"POST",body:t.body});return r.ok?void 0===t.process?{}:{data:t.process(r)}:{error:{code:r.status,msg:r.text()}}}},6601:function(e,t,r){"use strict";r.d(t,{J:function(){return l}});var n=r(7437);r(2265);var a=r(7420),o=r(358),s=r(6712);let l=e=>(0,n.jsxs)(a.Z.Group,{as:o.Z,className:"mb-2",children:[(0,n.jsx)(a.Z.Label,{column:!0,sm:2,children:e.label}),(0,n.jsx)(s.Z,{sm:10,className:"d-flex align-items-center",children:(0,n.jsx)(a.Z.Check,{className:"d-flex align-items-center",type:"switch",checked:e.checked,onChange:()=>e.onChange()})})]})},1159:function(e,t,r){"use strict";r.d(t,{P:function(){return l},t:function(){return i}});var n=r(7437),a=r(2265),o=r(8620),s=r(1529);let l=(0,a.createContext)({Info:e=>{},Error:e=>{}}),i=e=>{let{children:t}=e,[r,i]=(0,a.useState)({value:{},index:0}),u=(e,t)=>i(r=>({value:{...r.value,[r.index]:{text:e,type:t}},index:r.index+1}));return(0,n.jsxs)(l.Provider,{value:{Info:e=>{console.log(e),u(e,"success")},Error:e=>{console.error(e),u(e,"danger")}},children:[(0,n.jsx)(o.Z,{className:"p-3",position:"top-center",containerPosition:"fixed",style:{zIndex:999999},children:Object.entries(r.value).map(e=>{let[t,a]=e;return(0,n.jsxs)(s.Z,{role:"alert","aria-live":"assertive",show:!0,bg:a.type,onClose:()=>{let e=r.value;delete e[t],i({...r,value:e}),console.log("close: "+t)},"aria-atomic":"true",delay:4e3,autohide:!0,animation:!0,children:[(0,n.jsxs)(s.Z.Header,{children:[(0,n.jsx)("strong",{className:"me-auto",children:"Notification"}),(0,n.jsx)("small",{className:"text-muted",children:"just now"})]}),(0,n.jsx)(s.Z.Body,{className:"text-center",children:a.text})]},"toast"+t)})}),t]})}},6660:function(e,t,r){"use strict";r.r(t);var n=r(7437),a=r(2265),o=r(7420),s=r(358),l=r(6712),i=r(2808),u=r(7185),c=r(4971),m=r(1159),f=r(6601),d=r(879),w=r(6541);let g=e=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(o.Z.Group,{as:s.Z,className:"mb-1 ms-1",children:(0,n.jsxs)(s.Z,{className:"g-2",children:[(0,n.jsx)(o.Z.Label,{column:!0,sm:2,className:"nowrap",children:e.title}),(0,n.jsx)(l.Z,{sm:6,children:(0,n.jsx)(o.Z.Control,{value:e.value,onChange:t=>e.onChange(t.target.value),placeholder:e.placeholder})}),(0,n.jsx)(l.Z,{sm:2,children:(0,n.jsx)(i.Z,{onClick:()=>e.onClick(),children:e.buttonText?e.buttonText:"Save"})})]})})});t.default=function(){let e=(0,a.useContext)(m.P),[t,r]=(0,a.useState)(c.fG),[o,s]=(0,a.useState)(c.qQ),[l,i]=(0,a.useState)(c.rQ),[h,p]=(0,a.useState)(c.gU),[v,y]=(0,a.useState)(c.YO);return(0,n.jsxs)(n.Fragment,{children:[" ",(0,n.jsx)(u.Z,{className:"mb-3",children:(0,n.jsxs)(u.Z.Body,{children:[(0,n.jsx)(g,{title:"API Host",value:t,onChange:r,placeholder:"http://127.0.0.1:50051",onClick:()=>{(0,c.r)(t),""!==t?e.Info("Set API Url: ".concat(t," success.")):e.Info("Remove API Url success."),console.log(t)},buttonText:"Save"}),(0,n.jsx)(g,{title:"Remote Rule",value:o,onChange:s,buttonText:"Update",onClick:()=>{(0,c.zP)(o),""!==o&&(0,d.U)("/bypass",{body:new w.Gm({value:o}).toBinary()}).then(async t=>{let{error:r}=t;void 0!==r?e.Error("update remote rule ".concat(o," failed, ").concat(r.code,"| ").concat(await r.msg)):e.Info("update remote rule ".concat(o," success"))})}}),(0,n.jsx)("hr",{}),(0,n.jsx)(u.Z.Title,{className:"mb-2",children:"Latency"}),(0,n.jsx)(f.J,{label:"IPv6",checked:v,onChange:()=>{y(!v),(0,c.gW)(!v)}}),(0,n.jsx)(g,{title:"HTTP(tcp)",placeholder:"https://clients3.google.com/generate_204",value:l,onChange:i,onClick:()=>{(0,c.XE)(l),""!==l?e.Info("Set Latency HTTP Url: ".concat(l," success.")):e.Info("Remove Latency HTTP Url success.")}}),(0,n.jsx)(g,{title:"DOQ(udp)",placeholder:"dns.adguard.com:853",value:h,onChange:p,onClick:()=>{(0,c.$f)(h),""!==h?e.Info("Set Latency DNS: ".concat(h," success.")):e.Info("Remove Latency DNS success.")}})]})})]})}},6541:function(e,t,r){"use strict";r.d(t,{Gm:function(){return w}});var n=r(1859),a=r(3256),o=r(3498),s=r(7065);class l extends n.v{constructor(e){super(),this.value=0,a.w.util.initPartial(e,this)}toJson(e){return a.w.json.writeScalar(o.w.DOUBLE,this.value,!0)}fromJson(e,t){try{this.value=a.w.json.readScalar(o.w.DOUBLE,e)}catch(t){let e='cannot decode message google.protobuf.DoubleValue from JSON"';throw t instanceof Error&&t.message.length>0&&(e+=`: ${t.message}`),Error(e)}return this}static fromBinary(e,t){return new l().fromBinary(e,t)}static fromJson(e,t){return new l().fromJson(e,t)}static fromJsonString(e,t){return new l().fromJsonString(e,t)}static equals(e,t){return a.w.util.equals(l,e,t)}}l.runtime=a.w,l.typeName="google.protobuf.DoubleValue",l.fields=a.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),l.fieldWrapper={wrapField:e=>new l({value:e}),unwrapField:e=>e.value};class i extends n.v{constructor(e){super(),this.value=0,a.w.util.initPartial(e,this)}toJson(e){return a.w.json.writeScalar(o.w.FLOAT,this.value,!0)}fromJson(e,t){try{this.value=a.w.json.readScalar(o.w.FLOAT,e)}catch(t){let e='cannot decode message google.protobuf.FloatValue from JSON"';throw t instanceof Error&&t.message.length>0&&(e+=`: ${t.message}`),Error(e)}return this}static fromBinary(e,t){return new i().fromBinary(e,t)}static fromJson(e,t){return new i().fromJson(e,t)}static fromJsonString(e,t){return new i().fromJsonString(e,t)}static equals(e,t){return a.w.util.equals(i,e,t)}}i.runtime=a.w,i.typeName="google.protobuf.FloatValue",i.fields=a.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),i.fieldWrapper={wrapField:e=>new i({value:e}),unwrapField:e=>e.value};class u extends n.v{constructor(e){super(),this.value=s.q.zero,a.w.util.initPartial(e,this)}toJson(e){return a.w.json.writeScalar(o.w.INT64,this.value,!0)}fromJson(e,t){try{this.value=a.w.json.readScalar(o.w.INT64,e)}catch(t){let e='cannot decode message google.protobuf.Int64Value from JSON"';throw t instanceof Error&&t.message.length>0&&(e+=`: ${t.message}`),Error(e)}return this}static fromBinary(e,t){return new u().fromBinary(e,t)}static fromJson(e,t){return new u().fromJson(e,t)}static fromJsonString(e,t){return new u().fromJsonString(e,t)}static equals(e,t){return a.w.util.equals(u,e,t)}}u.runtime=a.w,u.typeName="google.protobuf.Int64Value",u.fields=a.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),u.fieldWrapper={wrapField:e=>new u({value:e}),unwrapField:e=>e.value};class c extends n.v{constructor(e){super(),this.value=s.q.zero,a.w.util.initPartial(e,this)}toJson(e){return a.w.json.writeScalar(o.w.UINT64,this.value,!0)}fromJson(e,t){try{this.value=a.w.json.readScalar(o.w.UINT64,e)}catch(t){let e='cannot decode message google.protobuf.UInt64Value from JSON"';throw t instanceof Error&&t.message.length>0&&(e+=`: ${t.message}`),Error(e)}return this}static fromBinary(e,t){return new c().fromBinary(e,t)}static fromJson(e,t){return new c().fromJson(e,t)}static fromJsonString(e,t){return new c().fromJsonString(e,t)}static equals(e,t){return a.w.util.equals(c,e,t)}}c.runtime=a.w,c.typeName="google.protobuf.UInt64Value",c.fields=a.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),c.fieldWrapper={wrapField:e=>new c({value:e}),unwrapField:e=>e.value};class m extends n.v{constructor(e){super(),this.value=0,a.w.util.initPartial(e,this)}toJson(e){return a.w.json.writeScalar(o.w.INT32,this.value,!0)}fromJson(e,t){try{this.value=a.w.json.readScalar(o.w.INT32,e)}catch(t){let e='cannot decode message google.protobuf.Int32Value from JSON"';throw t instanceof Error&&t.message.length>0&&(e+=`: ${t.message}`),Error(e)}return this}static fromBinary(e,t){return new m().fromBinary(e,t)}static fromJson(e,t){return new m().fromJson(e,t)}static fromJsonString(e,t){return new m().fromJsonString(e,t)}static equals(e,t){return a.w.util.equals(m,e,t)}}m.runtime=a.w,m.typeName="google.protobuf.Int32Value",m.fields=a.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),m.fieldWrapper={wrapField:e=>new m({value:e}),unwrapField:e=>e.value};class f extends n.v{constructor(e){super(),this.value=0,a.w.util.initPartial(e,this)}toJson(e){return a.w.json.writeScalar(o.w.UINT32,this.value,!0)}fromJson(e,t){try{this.value=a.w.json.readScalar(o.w.UINT32,e)}catch(t){let e='cannot decode message google.protobuf.UInt32Value from JSON"';throw t instanceof Error&&t.message.length>0&&(e+=`: ${t.message}`),Error(e)}return this}static fromBinary(e,t){return new f().fromBinary(e,t)}static fromJson(e,t){return new f().fromJson(e,t)}static fromJsonString(e,t){return new f().fromJsonString(e,t)}static equals(e,t){return a.w.util.equals(f,e,t)}}f.runtime=a.w,f.typeName="google.protobuf.UInt32Value",f.fields=a.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),f.fieldWrapper={wrapField:e=>new f({value:e}),unwrapField:e=>e.value};class d extends n.v{constructor(e){super(),this.value=!1,a.w.util.initPartial(e,this)}toJson(e){return a.w.json.writeScalar(o.w.BOOL,this.value,!0)}fromJson(e,t){try{this.value=a.w.json.readScalar(o.w.BOOL,e)}catch(t){let e='cannot decode message google.protobuf.BoolValue from JSON"';throw t instanceof Error&&t.message.length>0&&(e+=`: ${t.message}`),Error(e)}return this}static fromBinary(e,t){return new d().fromBinary(e,t)}static fromJson(e,t){return new d().fromJson(e,t)}static fromJsonString(e,t){return new d().fromJsonString(e,t)}static equals(e,t){return a.w.util.equals(d,e,t)}}d.runtime=a.w,d.typeName="google.protobuf.BoolValue",d.fields=a.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),d.fieldWrapper={wrapField:e=>new d({value:e}),unwrapField:e=>e.value};class w extends n.v{constructor(e){super(),this.value="",a.w.util.initPartial(e,this)}toJson(e){return a.w.json.writeScalar(o.w.STRING,this.value,!0)}fromJson(e,t){try{this.value=a.w.json.readScalar(o.w.STRING,e)}catch(t){let e='cannot decode message google.protobuf.StringValue from JSON"';throw t instanceof Error&&t.message.length>0&&(e+=`: ${t.message}`),Error(e)}return this}static fromBinary(e,t){return new w().fromBinary(e,t)}static fromJson(e,t){return new w().fromJson(e,t)}static fromJsonString(e,t){return new w().fromJsonString(e,t)}static equals(e,t){return a.w.util.equals(w,e,t)}}w.runtime=a.w,w.typeName="google.protobuf.StringValue",w.fields=a.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),w.fieldWrapper={wrapField:e=>new w({value:e}),unwrapField:e=>e.value};class g extends n.v{constructor(e){super(),this.value=new Uint8Array(0),a.w.util.initPartial(e,this)}toJson(e){return a.w.json.writeScalar(o.w.BYTES,this.value,!0)}fromJson(e,t){try{this.value=a.w.json.readScalar(o.w.BYTES,e)}catch(t){let e='cannot decode message google.protobuf.BytesValue from JSON"';throw t instanceof Error&&t.message.length>0&&(e+=`: ${t.message}`),Error(e)}return this}static fromBinary(e,t){return new g().fromBinary(e,t)}static fromJson(e,t){return new g().fromJson(e,t)}static fromJsonString(e,t){return new g().fromJsonString(e,t)}static equals(e,t){return a.w.util.equals(g,e,t)}}g.runtime=a.w,g.typeName="google.protobuf.BytesValue",g.fields=a.w.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),g.fieldWrapper={wrapField:e=>new g({value:e}),unwrapField:e=>e.value}}},function(e){e.O(0,[416,113,262,971,23,744],function(){return e(e.s=9771)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/docs/config/index.html b/docs/config/index.html index fc8d80cc..cdd8f4c3 100644 --- a/docs/config/index.html +++ b/docs/config/index.html @@ -1 +1 @@ -Yuhaiin
\ No newline at end of file +Yuhaiin
\ No newline at end of file diff --git a/docs/config/index.txt b/docs/config/index.txt index 01dfb9da..3f063e0a 100644 --- a/docs/config/index.txt +++ b/docs/config/index.txt @@ -1,9 +1,9 @@ 2:I[6513,[],"ClientPageRoot"] -3:I[401,["416","static/chunks/416-4d6a7149d19549ef.js","113","static/chunks/113-b60843a818e136b2.js","485","static/chunks/485-38c7e07100bbbe79.js","466","static/chunks/466-e07d1c96277710d0.js","262","static/chunks/262-8af799d4809ee0d9.js","364","static/chunks/364-02d8eeedcc0a0587.js","672","static/chunks/672-9c1b1325410e168a.js","498","static/chunks/498-d1a7ca7b996930c2.js","688","static/chunks/688-72ad122320174a24.js","347","static/chunks/app/docs/config/page-6b98dd1cea46d30d.js"],"default"] +3:I[401,["416","static/chunks/416-4d6a7149d19549ef.js","113","static/chunks/113-b60843a818e136b2.js","485","static/chunks/485-38c7e07100bbbe79.js","466","static/chunks/466-e07d1c96277710d0.js","262","static/chunks/262-8af799d4809ee0d9.js","364","static/chunks/364-02d8eeedcc0a0587.js","672","static/chunks/672-9c1b1325410e168a.js","498","static/chunks/498-d1a7ca7b996930c2.js","688","static/chunks/688-72ad122320174a24.js","347","static/chunks/app/docs/config/page-c62d19ac53b4c733.js"],"default"] 4:I[9275,[],""] 5:I[1343,[],""] 6:I[2961,["113","static/chunks/113-b60843a818e136b2.js","466","static/chunks/466-e07d1c96277710d0.js","907","static/chunks/907-d461d604d4677210.js","185","static/chunks/app/layout-f41e36fb3888089b.js"],"default"] 7:{} -0:["aS9SB6NI2PksMxNI5IkyW",[[["",{"children":["docs",{"children":["config",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":["config",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}]],null],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","config","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":"$7"}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/d3df112486f97f47.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/8419bf7e20c871f2.css","precedence":"next","crossOrigin":"$undefined"}]],"$L8"]]]] +0:["X6aESpxNUXDPpgu0Cn1J-",[[["",{"children":["docs",{"children":["config",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":["config",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}]],null],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","config","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":"$7"}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/d3df112486f97f47.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/8419bf7e20c871f2.css","precedence":"next","crossOrigin":"$undefined"}]],"$L8"]]]] 8:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}]] 1:null diff --git a/docs/connections/index.html b/docs/connections/index.html index 16442d99..eea18b6d 100644 --- a/docs/connections/index.html +++ b/docs/connections/index.html @@ -1 +1 @@ -Yuhaiin
\ No newline at end of file +Yuhaiin
\ No newline at end of file diff --git a/docs/connections/index.txt b/docs/connections/index.txt index 3a47f4e6..cb2696eb 100644 --- a/docs/connections/index.txt +++ b/docs/connections/index.txt @@ -1,9 +1,9 @@ 2:I[6513,[],"ClientPageRoot"] -3:I[4305,["416","static/chunks/416-4d6a7149d19549ef.js","113","static/chunks/113-b60843a818e136b2.js","485","static/chunks/485-38c7e07100bbbe79.js","466","static/chunks/466-e07d1c96277710d0.js","262","static/chunks/262-8af799d4809ee0d9.js","364","static/chunks/364-02d8eeedcc0a0587.js","672","static/chunks/672-9c1b1325410e168a.js","650","static/chunks/650-6e16ce5198d2d53c.js","591","static/chunks/591-267391b33bcae163.js","427","static/chunks/427-c39f446fb38e37a3.js","688","static/chunks/688-72ad122320174a24.js","833","static/chunks/833-c99bf1fc955be929.js","831","static/chunks/app/docs/connections/page-2153a7c82f5e1344.js"],"default"] +3:I[4305,["416","static/chunks/416-4d6a7149d19549ef.js","113","static/chunks/113-b60843a818e136b2.js","485","static/chunks/485-38c7e07100bbbe79.js","466","static/chunks/466-e07d1c96277710d0.js","262","static/chunks/262-8af799d4809ee0d9.js","364","static/chunks/364-02d8eeedcc0a0587.js","672","static/chunks/672-9c1b1325410e168a.js","650","static/chunks/650-6e16ce5198d2d53c.js","591","static/chunks/591-267391b33bcae163.js","427","static/chunks/427-cf7cb1c085033b87.js","688","static/chunks/688-72ad122320174a24.js","833","static/chunks/833-c99bf1fc955be929.js","831","static/chunks/app/docs/connections/page-2153a7c82f5e1344.js"],"default"] 4:I[9275,[],""] 5:I[1343,[],""] 6:I[2961,["113","static/chunks/113-b60843a818e136b2.js","466","static/chunks/466-e07d1c96277710d0.js","907","static/chunks/907-d461d604d4677210.js","185","static/chunks/app/layout-f41e36fb3888089b.js"],"default"] 7:{} -0:["aS9SB6NI2PksMxNI5IkyW",[[["",{"children":["docs",{"children":["connections",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":["connections",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}]],null],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","connections","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":"$7"}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/d3df112486f97f47.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/8419bf7e20c871f2.css","precedence":"next","crossOrigin":"$undefined"}]],"$L8"]]]] +0:["X6aESpxNUXDPpgu0Cn1J-",[[["",{"children":["docs",{"children":["connections",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":["connections",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}]],null],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","connections","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":"$7"}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/d3df112486f97f47.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/8419bf7e20c871f2.css","precedence":"next","crossOrigin":"$undefined"}]],"$L8"]]]] 8:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}]] 1:null diff --git a/docs/group/index.html b/docs/group/index.html index 5aaf45bd..93dce081 100644 --- a/docs/group/index.html +++ b/docs/group/index.html @@ -1 +1 @@ -Yuhaiin
\ No newline at end of file +Yuhaiin
\ No newline at end of file diff --git a/docs/group/index.txt b/docs/group/index.txt index 4816ea3d..65970339 100644 --- a/docs/group/index.txt +++ b/docs/group/index.txt @@ -1,9 +1,9 @@ 2:I[6513,[],"ClientPageRoot"] -3:I[8096,["416","static/chunks/416-4d6a7149d19549ef.js","113","static/chunks/113-b60843a818e136b2.js","485","static/chunks/485-38c7e07100bbbe79.js","466","static/chunks/466-e07d1c96277710d0.js","262","static/chunks/262-8af799d4809ee0d9.js","364","static/chunks/364-02d8eeedcc0a0587.js","672","static/chunks/672-9c1b1325410e168a.js","650","static/chunks/650-6e16ce5198d2d53c.js","427","static/chunks/427-c39f446fb38e37a3.js","688","static/chunks/688-72ad122320174a24.js","833","static/chunks/833-c99bf1fc955be929.js","962","static/chunks/app/docs/group/page-853bca9e56de1378.js"],"default"] +3:I[8096,["416","static/chunks/416-4d6a7149d19549ef.js","113","static/chunks/113-b60843a818e136b2.js","485","static/chunks/485-38c7e07100bbbe79.js","466","static/chunks/466-e07d1c96277710d0.js","262","static/chunks/262-8af799d4809ee0d9.js","364","static/chunks/364-02d8eeedcc0a0587.js","672","static/chunks/672-9c1b1325410e168a.js","650","static/chunks/650-6e16ce5198d2d53c.js","427","static/chunks/427-cf7cb1c085033b87.js","688","static/chunks/688-72ad122320174a24.js","833","static/chunks/833-c99bf1fc955be929.js","962","static/chunks/app/docs/group/page-853bca9e56de1378.js"],"default"] 4:I[9275,[],""] 5:I[1343,[],""] 6:I[2961,["113","static/chunks/113-b60843a818e136b2.js","466","static/chunks/466-e07d1c96277710d0.js","907","static/chunks/907-d461d604d4677210.js","185","static/chunks/app/layout-f41e36fb3888089b.js"],"default"] 7:{} -0:["aS9SB6NI2PksMxNI5IkyW",[[["",{"children":["docs",{"children":["group",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":["group",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}]],null],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","group","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":"$7"}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/d3df112486f97f47.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/8419bf7e20c871f2.css","precedence":"next","crossOrigin":"$undefined"}]],"$L8"]]]] +0:["X6aESpxNUXDPpgu0Cn1J-",[[["",{"children":["docs",{"children":["group",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":["group",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}]],null],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","group","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":"$7"}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/d3df112486f97f47.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/8419bf7e20c871f2.css","precedence":"next","crossOrigin":"$undefined"}]],"$L8"]]]] 8:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}]] 1:null diff --git a/docs/subscribe/index.html b/docs/subscribe/index.html index 2bae3111..c60a8101 100644 --- a/docs/subscribe/index.html +++ b/docs/subscribe/index.html @@ -1 +1 @@ -Yuhaiin
\ No newline at end of file +Yuhaiin
\ No newline at end of file diff --git a/docs/subscribe/index.txt b/docs/subscribe/index.txt index 415205c2..185a6b49 100644 --- a/docs/subscribe/index.txt +++ b/docs/subscribe/index.txt @@ -1,9 +1,9 @@ 2:I[6513,[],"ClientPageRoot"] -3:I[9798,["416","static/chunks/416-4d6a7149d19549ef.js","113","static/chunks/113-b60843a818e136b2.js","485","static/chunks/485-38c7e07100bbbe79.js","466","static/chunks/466-e07d1c96277710d0.js","262","static/chunks/262-8af799d4809ee0d9.js","364","static/chunks/364-02d8eeedcc0a0587.js","427","static/chunks/427-c39f446fb38e37a3.js","129","static/chunks/app/docs/subscribe/page-28edf7d2c423df63.js"],"default"] +3:I[9798,["416","static/chunks/416-4d6a7149d19549ef.js","113","static/chunks/113-b60843a818e136b2.js","485","static/chunks/485-38c7e07100bbbe79.js","466","static/chunks/466-e07d1c96277710d0.js","262","static/chunks/262-8af799d4809ee0d9.js","364","static/chunks/364-02d8eeedcc0a0587.js","427","static/chunks/427-cf7cb1c085033b87.js","129","static/chunks/app/docs/subscribe/page-28edf7d2c423df63.js"],"default"] 4:I[9275,[],""] 5:I[1343,[],""] 6:I[2961,["113","static/chunks/113-b60843a818e136b2.js","466","static/chunks/466-e07d1c96277710d0.js","907","static/chunks/907-d461d604d4677210.js","185","static/chunks/app/layout-f41e36fb3888089b.js"],"default"] 7:{} -0:["aS9SB6NI2PksMxNI5IkyW",[[["",{"children":["docs",{"children":["subscribe",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":["subscribe",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}]],null],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","subscribe","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":"$7"}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/d3df112486f97f47.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/8419bf7e20c871f2.css","precedence":"next","crossOrigin":"$undefined"}]],"$L8"]]]] +0:["X6aESpxNUXDPpgu0Cn1J-",[[["",{"children":["docs",{"children":["subscribe",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":["subscribe",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}]],null],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","subscribe","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":"$7"}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/d3df112486f97f47.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/8419bf7e20c871f2.css","precedence":"next","crossOrigin":"$undefined"}]],"$L8"]]]] 8:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}]] 1:null diff --git a/docs/tag/index.html b/docs/tag/index.html index 5a1d0360..c3e97fbc 100644 --- a/docs/tag/index.html +++ b/docs/tag/index.html @@ -1 +1 @@ -Yuhaiin
\ No newline at end of file +Yuhaiin
\ No newline at end of file diff --git a/docs/tag/index.txt b/docs/tag/index.txt index 4ae2b11a..78d3c5d9 100644 --- a/docs/tag/index.txt +++ b/docs/tag/index.txt @@ -1,9 +1,9 @@ 2:I[6513,[],"ClientPageRoot"] -3:I[1813,["416","static/chunks/416-4d6a7149d19549ef.js","113","static/chunks/113-b60843a818e136b2.js","485","static/chunks/485-38c7e07100bbbe79.js","466","static/chunks/466-e07d1c96277710d0.js","262","static/chunks/262-8af799d4809ee0d9.js","364","static/chunks/364-02d8eeedcc0a0587.js","672","static/chunks/672-9c1b1325410e168a.js","650","static/chunks/650-6e16ce5198d2d53c.js","427","static/chunks/427-c39f446fb38e37a3.js","688","static/chunks/688-72ad122320174a24.js","833","static/chunks/833-c99bf1fc955be929.js","966","static/chunks/app/docs/tag/page-4ba6e81d576fe035.js"],"default"] +3:I[1813,["416","static/chunks/416-4d6a7149d19549ef.js","113","static/chunks/113-b60843a818e136b2.js","485","static/chunks/485-38c7e07100bbbe79.js","466","static/chunks/466-e07d1c96277710d0.js","262","static/chunks/262-8af799d4809ee0d9.js","364","static/chunks/364-02d8eeedcc0a0587.js","672","static/chunks/672-9c1b1325410e168a.js","650","static/chunks/650-6e16ce5198d2d53c.js","427","static/chunks/427-cf7cb1c085033b87.js","688","static/chunks/688-72ad122320174a24.js","833","static/chunks/833-c99bf1fc955be929.js","966","static/chunks/app/docs/tag/page-4ba6e81d576fe035.js"],"default"] 4:I[9275,[],""] 5:I[1343,[],""] 6:I[2961,["113","static/chunks/113-b60843a818e136b2.js","466","static/chunks/466-e07d1c96277710d0.js","907","static/chunks/907-d461d604d4677210.js","185","static/chunks/app/layout-f41e36fb3888089b.js"],"default"] 7:{} -0:["aS9SB6NI2PksMxNI5IkyW",[[["",{"children":["docs",{"children":["tag",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":["tag",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}]],null],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","tag","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":"$7"}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/d3df112486f97f47.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/8419bf7e20c871f2.css","precedence":"next","crossOrigin":"$undefined"}]],"$L8"]]]] +0:["X6aESpxNUXDPpgu0Cn1J-",[[["",{"children":["docs",{"children":["tag",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":["tag",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}]],null],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","tag","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":"$7"}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/d3df112486f97f47.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/8419bf7e20c871f2.css","precedence":"next","crossOrigin":"$undefined"}]],"$L8"]]]] 8:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}]] 1:null diff --git a/docs/webui/index.html b/docs/webui/index.html index a6651f1a..4d34faed 100644 --- a/docs/webui/index.html +++ b/docs/webui/index.html @@ -1 +1 @@ -Yuhaiin

Latency
\ No newline at end of file +Yuhaiin

Latency
\ No newline at end of file diff --git a/docs/webui/index.txt b/docs/webui/index.txt index 35ae9e52..03c0812c 100644 --- a/docs/webui/index.txt +++ b/docs/webui/index.txt @@ -1,9 +1,9 @@ 2:I[6513,[],"ClientPageRoot"] -3:I[6660,["416","static/chunks/416-4d6a7149d19549ef.js","113","static/chunks/113-b60843a818e136b2.js","262","static/chunks/262-8af799d4809ee0d9.js","214","static/chunks/app/docs/webui/page-2405f45520f40f0d.js"],"default"] +3:I[6660,["416","static/chunks/416-4d6a7149d19549ef.js","113","static/chunks/113-b60843a818e136b2.js","262","static/chunks/262-8af799d4809ee0d9.js","214","static/chunks/app/docs/webui/page-65a521370c615408.js"],"default"] 4:I[9275,[],""] 5:I[1343,[],""] 6:I[2961,["113","static/chunks/113-b60843a818e136b2.js","466","static/chunks/466-e07d1c96277710d0.js","907","static/chunks/907-d461d604d4677210.js","185","static/chunks/app/layout-f41e36fb3888089b.js"],"default"] 7:{} -0:["aS9SB6NI2PksMxNI5IkyW",[[["",{"children":["docs",{"children":["webui",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":["webui",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}]],null],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":"$7"}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/d3df112486f97f47.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/8419bf7e20c871f2.css","precedence":"next","crossOrigin":"$undefined"}]],"$L8"]]]] +0:["X6aESpxNUXDPpgu0Cn1J-",[[["",{"children":["docs",{"children":["webui",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",{"children":["docs",{"children":["webui",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}]],null],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children","webui","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","docs","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":null}],null]},[["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":"$7"}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/d3df112486f97f47.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/8419bf7e20c871f2.css","precedence":"next","crossOrigin":"$undefined"}]],"$L8"]]]] 8:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}]] 1:null diff --git a/index.html b/index.html index b1254c02..0aa6d51b 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Yuhaiin
\ No newline at end of file +Yuhaiin
\ No newline at end of file diff --git a/index.txt b/index.txt index 36df1669..822a3d1d 100644 --- a/index.txt +++ b/index.txt @@ -1,9 +1,9 @@ 2:I[6513,[],"ClientPageRoot"] -3:I[8745,["416","static/chunks/416-4d6a7149d19549ef.js","485","static/chunks/485-38c7e07100bbbe79.js","427","static/chunks/427-c39f446fb38e37a3.js","931","static/chunks/app/page-a5b3bf40ba40cb09.js"],"default"] +3:I[8745,["416","static/chunks/416-4d6a7149d19549ef.js","485","static/chunks/485-38c7e07100bbbe79.js","427","static/chunks/427-cf7cb1c085033b87.js","931","static/chunks/app/page-a5b3bf40ba40cb09.js"],"default"] 4:I[2961,["113","static/chunks/113-b60843a818e136b2.js","466","static/chunks/466-e07d1c96277710d0.js","907","static/chunks/907-d461d604d4677210.js","185","static/chunks/app/layout-f41e36fb3888089b.js"],"default"] 5:I[9275,[],""] 6:I[1343,[],""] 7:{} -0:["aS9SB6NI2PksMxNI5IkyW",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}]],null],null]},[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":"$7"}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/d3df112486f97f47.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/8419bf7e20c871f2.css","precedence":"next","crossOrigin":"$undefined"}]],"$L8"]]]] +0:["X6aESpxNUXDPpgu0Cn1J-",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}]],null],null]},[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"styles":null}],"params":"$7"}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/d3df112486f97f47.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/8419bf7e20c871f2.css","precedence":"next","crossOrigin":"$undefined"}]],"$L8"]]]] 8:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}]] 1:null