mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-10 18:07:51 +08:00
⛅ Sync 2026-11-09 13:12:57
This commit is contained in:
1 parent
6a55a50c97
commit
761af4dd32
134 files changed
+2858
-2639
No files matched your search
+3
-3
@@ -5,11 +5,11 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=honk
|
||||
PKG_VERSION:=2026.11.08~62b1390
|
||||
PKG_RELEASE:=33
|
||||
PKG_VERSION:=2026.11.09~6484888
|
||||
PKG_RELEASE:=34
|
||||
|
||||
HONK_SRC_URL:=https://github.com/daeuniverse/honk.git
|
||||
HONK_SRC_VERSION:=62b1390401d9b5eb00dfaddad3e11db4a2539fdf
|
||||
HONK_SRC_VERSION:=64848881b7304e250e7a25422f4f1d86a5975eca
|
||||
|
||||
PKG_LICENSE:=AGPL-3.0-only
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
@@ -339,10 +339,10 @@ const rules_type = [
|
||||
{
|
||||
label: _('Inbound'),
|
||||
types: [
|
||||
//['IN-PORT'],
|
||||
//['IN-TYPE'],
|
||||
['IN-PORT'],
|
||||
['IN-TYPE'],
|
||||
//['IN-USER'],
|
||||
//['IN-NAME'],
|
||||
['IN-NAME'],
|
||||
['REMATCH-NAME']
|
||||
]
|
||||
},
|
||||
@@ -1327,6 +1327,7 @@ function loadLabelValues(uciconfig, sectiontype, options = {}) {
|
||||
|
||||
switch (sectiontype) {
|
||||
case 'proxy_group':
|
||||
case 'inbound':
|
||||
case 'node':
|
||||
case 'provider':
|
||||
uci.sections(uciconfig, sectiontype, (res) => {
|
||||
@@ -1814,6 +1815,9 @@ function validateBase64Key(length, section_id, value) {
|
||||
if (value)
|
||||
if (value.length !== length || !value.match(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/) || value[length-1] !== '=')
|
||||
return _('Expecting: %s').format(_('valid base64 key with %d characters').format(length));
|
||||
else
|
||||
if (this.rmempty === false || (this.optional ?? true) !== false)
|
||||
return _('Expecting: %s').format(_('non-empty value'));
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -2115,25 +2119,25 @@ return baseclass.extend({
|
||||
handleGenKey,
|
||||
handleReload,
|
||||
handleRemoveIdles,
|
||||
textvalue2Value,
|
||||
textvalue2Value, // this
|
||||
// validate
|
||||
validateAuth,
|
||||
validateAuthUsername,
|
||||
validateAuthPassword,
|
||||
validateCommonPort,
|
||||
validateCommonPort, // this
|
||||
validateBytesize,
|
||||
validateTimeDuration,
|
||||
validateJson,
|
||||
validateUUID,
|
||||
validateUrl,
|
||||
validateHexstr,
|
||||
validateBase64Key,
|
||||
validateBase64Key, // this
|
||||
validateSha256Key,
|
||||
validateMTLSClientAuth,
|
||||
validatePresetIDs,
|
||||
validateShadowsocksPassword,
|
||||
validateMTLSClientAuth, // this
|
||||
validatePresetIDs, // this
|
||||
validateShadowsocksPassword, // this
|
||||
validateSudokuCustomTable,
|
||||
validateUniqueValue,
|
||||
validateUniqueValue, // this
|
||||
// file operations
|
||||
lsDir,
|
||||
readFile,
|
||||
|
||||
@@ -402,10 +402,19 @@ function renderListeners(s, uciconfig, isClient) {
|
||||
o.value('3', _('v3'));
|
||||
o.value('4', _('v4'));
|
||||
o.value('5', _('v5'));
|
||||
o.value('6', _('v6'));
|
||||
o.default = '4';
|
||||
o.depends('type', 'snell');
|
||||
o.modalonly = true;
|
||||
|
||||
o = s.taboption('field_general', form.ListValue, 'snell_mode', _('Traffic mode'));
|
||||
o.value('', _('Keep default'));
|
||||
o.value('default', _('Default'));
|
||||
o.value('unshaped', _('No obfuscation'));
|
||||
o.value('unsafe-raw', _('No encryption No obfuscation'));
|
||||
o.depends({type: 'snell', snell_version: /^(6)$/});
|
||||
o.modalonly = true;
|
||||
|
||||
/* VMess / VLESS fields */
|
||||
o = s.taboption('field_general', hm.GenValue, 'vmess_uuid', _('UUID'));
|
||||
o.rmempty = false;
|
||||
@@ -693,11 +702,20 @@ function renderListeners(s, uciconfig, isClient) {
|
||||
//o.value('kcp-tun', _('kcp-tun'));
|
||||
o.validate = function(section_id, value) {
|
||||
const type = this.section.getOption('type').formvalue(section_id);
|
||||
const snell_version = this.section.getOption('snell_version').formvalue(section_id);
|
||||
|
||||
if (value) {
|
||||
if (type === 'snell' && !['obfs', 'shadow-tls', 'restls', 'jls'].includes(value)) {
|
||||
return _('Expecting: Only support %s.').format(_('obfs-simple') +
|
||||
' / ' + _('ShadowTLS') +
|
||||
if (type === 'snell' && !['shadow-tls', 'restls', 'jls'].includes(value)) {
|
||||
let obfs_simple_supported = true;
|
||||
if (Number(snell_version) < 6) {
|
||||
if (value === 'obfs')
|
||||
return true;
|
||||
} else
|
||||
obfs_simple_supported = false;
|
||||
|
||||
return _('Expecting: Only support %s.').format(
|
||||
(obfs_simple_supported ? _('obfs-simple') + ' / ' : '') +
|
||||
_('ShadowTLS') +
|
||||
' / ' + _('Restls') +
|
||||
' / ' + _('JLS'));
|
||||
}
|
||||
|
||||
@@ -404,13 +404,23 @@ const parseRulesYaml = hm.parseYaml.extend({
|
||||
else
|
||||
[type, factor] = logical_payload[i].split(',');
|
||||
|
||||
if (type === 'RULE-SET')
|
||||
if (type === 'IN-TYPE') {
|
||||
factor = factor.toLowerCase(); // Multi-values are not supported in Factor ++
|
||||
//factor = factor.replace(/\/.*/, '').toLowerCase();
|
||||
} else if (type === 'IN-NAME')
|
||||
factor = this.calcID(hm.glossary["inbound"].field, factor);
|
||||
else if (type === 'RULE-SET')
|
||||
factor = this.calcID(hm.glossary["ruleset"].field, factor);
|
||||
|
||||
entry.setPayload(i, {type: type.toUpperCase(), factor: factor, deny: deny ? true : null});
|
||||
}
|
||||
else if (payload)
|
||||
if (tp === 'RULE-SET')
|
||||
if (tp === 'IN-TYPE') {
|
||||
entry.setPayload(0, {factor: payload.toLowerCase()}); // Multi-values are not supported in Factor ++
|
||||
// entry.setPayload(0, {factor: payload.replace(/\/.*/, '').toLowerCase()});
|
||||
} else if (tp === 'IN-NAME')
|
||||
entry.setPayload(0, {factor: this.calcID(hm.glossary["inbound"].field, payload)});
|
||||
else if (tp === 'RULE-SET')
|
||||
entry.setPayload(0, {factor: this.calcID(hm.glossary["ruleset"].field, payload)});
|
||||
else
|
||||
entry.setPayload(0, {factor: payload});
|
||||
@@ -429,7 +439,7 @@ const parseRulesYaml = hm.parseYaml.extend({
|
||||
|
||||
parseRules(line) {
|
||||
// parse rules
|
||||
// https://github.com/muink/mihomo/blob/ad730ae9744971dfaa75bda20cfc2ffe07eeb59d/config/config.go#L1090-L1118
|
||||
// https://github.com/muink/mihomo/blob/63bd52ec794b7051569b76ede2f6cdbf4c091fda/config/config.go#L1102-L1130
|
||||
let [tp, payload, target, params] = this.ParseRulePayload(line, true);
|
||||
if (!target)
|
||||
return null; // error: format invalid
|
||||
@@ -563,27 +573,6 @@ function renderPayload(s, total, uciconfig) {
|
||||
o.depends(Object.fromEntries([[prefix + 'type', /\bPROCESS\b/]]));
|
||||
initPayload(o, n, 'factor', uciconfig);
|
||||
|
||||
o = s.option(form.ListValue, prefix + 'rematchname', _('Factor') + ` ${n+1}`);
|
||||
if (n === 0)
|
||||
o.depends('type', 'REMATCH-NAME');
|
||||
o.depends(prefix + 'type', 'REMATCH-NAME');
|
||||
initPayload(o, n, 'factor', uciconfig);
|
||||
o.load = L.bind(function(n, key, uciconfig, section_id) {
|
||||
hm.loadLabel.call(this, [
|
||||
['', _('-- Please choose --')],
|
||||
...hm.loadLabelValues(this.config, 'rematch-name')
|
||||
], section_id);
|
||||
|
||||
return new RulesEntry(uci.get(uciconfig, section_id, 'entry')).getPayload(n)[key];
|
||||
}, o, n, 'factor', uciconfig)
|
||||
|
||||
o = s.option(form.Value, prefix + 'uint', _('Factor') + ` ${n+1}`);
|
||||
o.datatype = 'uinteger';
|
||||
if (n === 0)
|
||||
o.depends('type', 'UID');
|
||||
o.depends(prefix + 'type', 'UID');
|
||||
initPayload(o, n, 'factor', uciconfig);
|
||||
|
||||
o = s.option(form.Value, prefix + 'ip', _('Factor') + ` ${n+1}`);
|
||||
o.datatype = 'cidr';
|
||||
if (n === 0) {
|
||||
@@ -613,6 +602,63 @@ function renderPayload(s, total, uciconfig) {
|
||||
return result;
|
||||
}
|
||||
|
||||
o = s.option(form.MultiValue, prefix + 'intype', _('Factor') + ` ${n+1}`);
|
||||
hm.inbound_type.forEach((res) => {
|
||||
o.value.apply(o, res);
|
||||
})
|
||||
if (n === 0)
|
||||
o.depends('type', 'IN-TYPE');
|
||||
o.depends(prefix + 'type', 'IN-TYPE');
|
||||
initPayload(o, n, 'factor', uciconfig);
|
||||
o.load = L.bind(function(n, key, uciconfig, section_id) {
|
||||
return (new RulesEntry(uci.get(uciconfig, section_id, 'entry')).getPayload(n)[key] || '')
|
||||
.split('/');
|
||||
}, o, n, 'factor', uciconfig)
|
||||
o.onchange = function(ev, section_id, value) {
|
||||
let UIEl = this.section.getUIElement(section_id, 'entry');
|
||||
|
||||
let n = this.option.match(/^payload(\d+)_/)[1];
|
||||
let rule = new RulesEntry(UIEl.getValue()).setPayload(n, {factor: value.join('/')});
|
||||
|
||||
UIEl.node.previousSibling.innerText = rule.toString('mihomo');
|
||||
UIEl.setValue(rule.toString('json'));
|
||||
}
|
||||
|
||||
o = s.option(form.ListValue, prefix + 'inname', _('Factor') + ` ${n+1}`);
|
||||
if (n === 0)
|
||||
o.depends('type', 'IN-NAME');
|
||||
o.depends(prefix + 'type', 'IN-NAME');
|
||||
initPayload(o, n, 'factor', uciconfig);
|
||||
o.load = L.bind(function(n, key, uciconfig, section_id) {
|
||||
hm.loadLabel.call(this, [
|
||||
['', _('-- Please choose --')],
|
||||
...hm.loadLabelValues(this.config, 'inbound')
|
||||
], section_id);
|
||||
|
||||
return new RulesEntry(uci.get(uciconfig, section_id, 'entry')).getPayload(n)[key];
|
||||
}, o, n, 'factor', uciconfig)
|
||||
|
||||
o = s.option(form.ListValue, prefix + 'rematchname', _('Factor') + ` ${n+1}`);
|
||||
if (n === 0)
|
||||
o.depends('type', 'REMATCH-NAME');
|
||||
o.depends(prefix + 'type', 'REMATCH-NAME');
|
||||
initPayload(o, n, 'factor', uciconfig);
|
||||
o.load = L.bind(function(n, key, uciconfig, section_id) {
|
||||
hm.loadLabel.call(this, [
|
||||
['', _('-- Please choose --')],
|
||||
...hm.loadLabelValues(this.config, 'rematch-name')
|
||||
], section_id);
|
||||
|
||||
return new RulesEntry(uci.get(uciconfig, section_id, 'entry')).getPayload(n)[key];
|
||||
}, o, n, 'factor', uciconfig)
|
||||
|
||||
o = s.option(form.Value, prefix + 'uint', _('Factor') + ` ${n+1}`);
|
||||
o.datatype = 'uinteger';
|
||||
if (n === 0)
|
||||
o.depends('type', 'UID');
|
||||
o.depends(prefix + 'type', 'UID');
|
||||
initPayload(o, n, 'factor', uciconfig);
|
||||
|
||||
o = s.option(form.ListValue, prefix + 'l4', _('Factor') + ` ${n+1}`);
|
||||
o.value('udp', _('UDP'));
|
||||
o.value('tcp', _('TCP'));
|
||||
@@ -702,6 +748,8 @@ function renderPayload(s, total, uciconfig) {
|
||||
initDynamicPayload(o, n, 'factor', uciconfig);
|
||||
o.load = L.bind(function(n, key, uciconfig, section_id) {
|
||||
hm.loadLabel.call(this, [
|
||||
...hm.inbound_type.map(e => [e, _('IN-TYPE')]), // Multi-values are not supported
|
||||
...hm.loadLabelValues(this.config, 'inbound').map(e => [e, _('IN-NAME')]),
|
||||
...hm.loadLabelValues(this.config, 'rematch-name').map(e => [e, _('REMATCH-NAME')]),
|
||||
[['udp', _('UDP')], _('NETWORK')],
|
||||
[['tcp', _('TCP')], _('NETWORK')],
|
||||
@@ -1306,6 +1354,10 @@ return view.extend({
|
||||
'- SRC-IP-SUFFIX,192.168.1.201/8,DIRECT\n' +
|
||||
'- DST-PORT,80,DIRECT\n' +
|
||||
'- SRC-PORT,7777,DIRECT\n' +
|
||||
'- IN-PORT,7890/7893,GLOBAL\n' +
|
||||
'- IN-TYPE,SOCKS/HTTP,GLOBAL\n' +
|
||||
'- IN-NAME,ss,GLOBAL\n' +
|
||||
'- REMATCH-NAME,rematch1,GLOBAL\n' +
|
||||
'- PROCESS-PATH,/usr/bin/wget,auto\n' +
|
||||
'- PROCESS-PATH-WILDCARD,/usr/*/wget,GLOBAL\n' +
|
||||
'- PROCESS-PATH-REGEX,.*bin/wget,auto\n' +
|
||||
|
||||
@@ -517,13 +517,23 @@ return view.extend({
|
||||
so.value('3', _('v3'));
|
||||
so.value('4', _('v4'));
|
||||
so.value('5', _('v5'));
|
||||
so.value('6', _('v6'));
|
||||
so.default = '4';
|
||||
so.depends('type', 'snell');
|
||||
so.modalonly = true;
|
||||
|
||||
so = ss.taboption('field_general', form.Flag, 'snell_reuse', _('Connection reuse'));
|
||||
so.default = so.disabled;
|
||||
so.depends({type: 'snell', snell_version: /^(4|5)$/});
|
||||
so.depends({type: 'snell', snell_version: /^(4|5|6)$/});
|
||||
so.modalonly = true;
|
||||
|
||||
so = ss.taboption('field_general', form.ListValue, 'snell_mode', _('Traffic mode'),
|
||||
_('Must be consistent with the server.'));
|
||||
so.value('', _('Keep default'));
|
||||
so.value('default', _('Default'));
|
||||
so.value('unshaped', _('No obfuscation'));
|
||||
so.value('unsafe-raw', _('No encryption No obfuscation'));
|
||||
so.depends({type: 'snell', snell_version: /^(6)$/});
|
||||
so.modalonly = true;
|
||||
|
||||
/* VMess / VLESS fields */
|
||||
@@ -1254,7 +1264,7 @@ return view.extend({
|
||||
so = ss.taboption('field_general', form.Flag, 'udp', _('Force UDP'));
|
||||
so.default = so.disabled;
|
||||
so.depends({type: /^(rematch|direct|socks5|ss|mieru|vmess|vless|trojan|anytls|trusttunnel|zerotier|wireguard|tailscale|masque|easytier)$/});
|
||||
so.depends({type: 'snell', snell_version: /^(3|4|5)$/});
|
||||
so.depends({type: 'snell', snell_version: /^(3|4|5|6)$/});
|
||||
so.modalonly = true;
|
||||
|
||||
so = ss.taboption('field_general', form.Flag, 'uot', _('UoT'),
|
||||
@@ -1287,11 +1297,20 @@ return view.extend({
|
||||
//so.value('kcptun', _('kcptun'));
|
||||
so.validate = function(section_id, value) {
|
||||
const type = this.section.getOption('type').formvalue(section_id);
|
||||
const snell_version = this.section.getOption('snell_version').formvalue(section_id);
|
||||
|
||||
if (value) {
|
||||
if (type === 'snell' && !['obfs', 'shadow-tls', 'restls', 'jls'].includes(value)) {
|
||||
return _('Expecting: Only support %s.').format(_('obfs-simple') +
|
||||
' / ' + _('ShadowTLS') +
|
||||
if (type === 'snell' && !['shadow-tls', 'restls', 'jls'].includes(value)) {
|
||||
let obfs_simple_supported = true;
|
||||
if (Number(snell_version) < 6) {
|
||||
if (value === 'obfs')
|
||||
return true;
|
||||
} else
|
||||
obfs_simple_supported = false;
|
||||
|
||||
return _('Expecting: Only support %s.').format(
|
||||
(obfs_simple_supported ? _('obfs-simple') + ' / ' : '') +
|
||||
_('ShadowTLS') +
|
||||
' / ' + _('Restls') +
|
||||
' / ' + _('JLS'));
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -561,6 +561,7 @@ uci.foreach(uciconf, ucinode, (cfg) => {
|
||||
psk: cfg.snell_psk,
|
||||
version: strToInt(cfg.snell_version),
|
||||
reuse: strToBool(cfg.snell_reuse),
|
||||
mode: cfg.snell_mode,
|
||||
|
||||
/* VMess / VLESS */
|
||||
flow: cfg.vless_flow,
|
||||
|
||||
@@ -44,7 +44,7 @@ const methods = {
|
||||
args: { type: 'type', params: 'params' },
|
||||
call: function(req) {
|
||||
/* https://github.com/MetaCubeX/mihomo/blob/Alpha/component/generator/cmd.go */
|
||||
if (!(req.args?.type in ['uuid',
|
||||
if (!(req.args?.type in ['uuid', 'ss-password',
|
||||
'reality-keypair', 'wg-keypair', 'sudoku-keypair',
|
||||
'age-x25519', 'age-mlkem768-x25519', 'age-convert',
|
||||
'vless-mlkem768', 'vless-x25519',
|
||||
@@ -73,6 +73,8 @@ const methods = {
|
||||
for (let line = fd.read('line'); length(line); line = fd.read('line')) {
|
||||
if (type === 'uuid')
|
||||
result.uuid = trim(line);
|
||||
if (type === 'ss-password')
|
||||
result.password = trim(line);
|
||||
else if (type in ['reality-keypair', 'wg-keypair', 'sudoku-keypair']) {
|
||||
let priv = match(trim(line), /PrivateKey: (.*)/);
|
||||
if (priv)
|
||||
|
||||
@@ -249,13 +249,13 @@ export function parseListener(cfg) {
|
||||
} : null
|
||||
/*{
|
||||
}*/
|
||||
] : ((cfg.type in ['mieru', 'anytls', 'tuic', 'hysteria2']) ? {
|
||||
] : (cfg.type in ['mieru', 'anytls', 'tuic', 'hysteria2']) ? {
|
||||
/* Mieru / AnyTLS / Hysteria2 */
|
||||
...arrToObj([[cfg.username, cfg.password]]),
|
||||
|
||||
/* Tuic */
|
||||
...arrToObj([[cfg.uuid, cfg.password]])
|
||||
} : null),
|
||||
} : null,
|
||||
|
||||
/* Shadowsocks */
|
||||
cipher: cfg.shadowsocks_chipher,
|
||||
@@ -288,6 +288,7 @@ export function parseListener(cfg) {
|
||||
/* Snell */
|
||||
psk: cfg.snell_psk,
|
||||
version: cfg.snell_version,
|
||||
mode: cfg.snell_mode,
|
||||
|
||||
/* VMess / VLESS */
|
||||
decryption: cfg.vless_decryption === '1' ? parseVlessEncryption(cfg.vless_encryption_hmpayload, 'server') : null,
|
||||
|
||||
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luci-app-honk
|
||||
PKG_VERSION:=1.1.4
|
||||
PKG_RELEASE:=33
|
||||
PKG_RELEASE:=34
|
||||
|
||||
LUCI_TITLE:=LuCI support for honk
|
||||
LUCI_PKGARCH:=all
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as r}from"./vendor-react-64fcanlc.js";import{I as a}from"./index-CUHkLMAp.js";function o(o){return r.jsx(a,{...o,children:r.jsx("path",{fill:"currentColor",d:"M10 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m0 15.5a7 7 0 1 1 0-14 7 7 0 0 1 0 14m3.75-7.75h-3v-3a.75.75 0 0 0-1.5 0v3h-3a.75.75 0 0 0 0 1.5h3v3a.75.75 0 0 0 1.5 0v-3h3a.75.75 0 0 0 0-1.5"})})}export{o as A};
|
||||
import{j as r}from"./vendor-react-64fcanlc.js";import{I as a}from"./index-C06va4Yw.js";function o(o){return r.jsx(a,{...o,children:r.jsx("path",{fill:"currentColor",d:"M10 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m0 15.5a7 7 0 1 1 0-14 7 7 0 0 1 0 14m3.75-7.75h-3v-3a.75.75 0 0 0-1.5 0v3h-3a.75.75 0 0 0 0 1.5h3v3a.75.75 0 0 0 1.5 0v-3h3a.75.75 0 0 0 0-1.5"})})}export{o as A};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as e,r as s}from"./vendor-react-64fcanlc.js";import{fT as l,fU as n,fV as a,cz as c,dI as t,cB as i,bE as r,fh as o,cA as u,dL as d,fW as h,dM as p,cC as m,u as x,b7 as b,fX as j,by as f,cD as v,fY as y,cE as g,cF as C,fZ as N,cG as A,T as S,I as M,bk as k,eh as L,B as I}from"./index-CUHkLMAp.js";import{a as w,b as q}from"./ItemText-CnEXu0-f.js";const D=e=>e>12,H=({orientation:s="vertical"})=>e.jsx(l,{orientation:s,className:"vertical"===s?"rp-vrule":"rp-hrule"}),E=e=>s=>{if("all"===s)return;const l=[...s][0];null!=l&&e(String(l))};function P({item:s,children:l,onAction:n}){return e.jsxs(A,{id:s.id,className:"rp-item",textValue:s.label,onAction:n,children:[e.jsx(w,{}),e.jsx(q,{i:s,children:l})]})}function V({children:l,content:n,label:x,quiet:b,small:j,size:f,chevron:v=!0,isDisabled:y,appearance:g,placement:C="bottom end",count:N,onIntent:A}){const S=N?e.jsx("span",{className:"rp-count","aria-hidden":"true",children:N}):null,M=a(y),[k,L]=s.useState(!1),I=c(),w=t(f),q=s.useRef(null),D=e.jsxs(i,{ref:q,className:g?"rp-select":o({quiet:b,small:j,icon:!v}),"data-size":w,"aria-label":x,"aria-describedby":M?.id,isDisabled:y,onHoverStart:A,onFocus:A,children:[l,S,v&&e.jsx(r,{className:"rp-chev"})]});return e.jsxs(u,{children:[v&&!M?D:e.jsxs(d,{delay:400,isOpen:k,onOpenChange:L,children:[e.jsx(h,{children:e.jsx("span",{className:"rp-tipwrap",tabIndex:y?0:-1,"data-passive":y?void 0:"",onPointerDown:e=>{y&&"touch"===e.pointerType&&L(e=>!e)},children:D})}),e.jsx(p,{triggerRef:q,children:M?.text??x})]}),e.jsx(m,{className:"rp-popover rp-list-popover",placement:C,boundaryElement:I,children:n})]})}function $({label:s,labelledBy:l,sections:n,headers:a=!0,focusedByCaller:c,onAction:t,searchLabel:i,actions:r=[]}){const o="function"==typeof n?n():n,u=!!i&&D(z(o)),d=e.jsxs(v,{"aria-label":s,"aria-labelledby":l??"",className:u?"rp-menu-scroll":void 0,autoFocus:!c&&void 0,children:[o.map(s=>e.jsxs(g,{"aria-label":a&&!s.hideHeader?void 0:s.title,selectionMode:s.selectionMode??"single",selectedKeys:[`/choice-${s.value}`],onSelectionChange:s.onChange&&E(e=>s.onChange(e.slice(8))),children:[a&&!s.hideHeader&&e.jsx(C,{className:"rp-sec-h",children:s.title}),s.items.map(s=>e.jsx(P,{item:{...s,id:`/choice-${s.id}`},onAction:t&&(()=>t(s.id))},s.id))]},s.title)),r.length>0&&e.jsx(H,{orientation:"horizontal"}),r.map(s=>e.jsx(F,{...s},s.label))]});return u?e.jsx(N,{label:i,children:d}):d}const z=e=>e.reduce((e,s)=>e+s.items.length,0);function B(e,s){for(const l of e){const n=l.items.find(e=>e.id===l.value);if(n)return e.length>1&&!l.plain&&n.label!==l.title?s("ui.sectionChoice",{section:l.title,item:n.label}):n.label}return""}const F=({label:s,icon:l,onAction:n})=>e.jsxs(A,{className:"rp-item rp-subitem",textValue:s,onAction:n,shouldCloseOnSelect:!0,children:[e.jsx("span",{className:"ic",children:l}),e.jsx(S,{children:s})]}),O=({id:s,label:l,icon:n,sections:a})=>{const c=x();return e.jsxs(A,{id:s,className:"rp-item rp-subitem",textValue:l,children:[e.jsx("span",{className:"ic",children:n}),e.jsx(S,{children:l}),e.jsxs("span",{className:"desc",children:[B(a,c),e.jsx(r,{className:"rp-chev-end"})]})]})};function R({label:l,submenus:n,actions:a=[]}){const c="function"==typeof n?n():n,t=x(),o=b(j),[u,d]="rtl"===f().direction?["ArrowLeft","ArrowRight"]:["ArrowRight","ArrowLeft"],[{open:h,left:p},g]=s.useState({open:null,left:null}),C=s.useRef(null),N=s.useId(),A=e=>{C.current?.focus(),g({open:e,left:null==e?h:null})};if(s.useEffect(()=>{const e=C.current;if(!e||null==h&&null==p)return;const s=null==h?`[data-key="${CSS.escape(`/submenu-${p}`)}"]`:'[aria-checked="true"], [role="menuitem"]',l=requestAnimationFrame(()=>{document.activeElement===e&&e.querySelector(s)?.focus()});return()=>cancelAnimationFrame(l)},[h,p]),!o)return e.jsxs(v,{"aria-label":l,"aria-labelledby":"",children:[c.map(s=>"sections"in s?e.jsxs(y,{children:[e.jsx(O,{id:`/submenu-${s.label}`,...s}),e.jsx(m,{className:"rp-popover rp-list-popover",offset:-4,crossOffset:-9,children:e.jsx($,{...s,headers:s.sections.length>1})})]},s.label):e.jsx(F,{...s},s.label)),a.map(s=>e.jsx(F,{...s},s.label))]});const S=null==h?null:c.find(e=>e.label===h);if(S&&"sections"in S){const s=()=>A(null),l=e=>{e.key!==d&&"Escape"!==e.key||(e.preventDefault(),e.stopPropagation(),s())};return e.jsxs("div",{ref:C,className:"rp-drill",tabIndex:-1,onKeyDownCapture:l,children:[e.jsxs(i,{className:"rp-item rp-drill-back","aria-label":t("ui.back"),onPress:s,children:[e.jsx(r,{className:"rp-chev-start"}),e.jsx("span",{id:N,children:S.label})]}),e.jsx($,{...S,labelledBy:N,headers:S.sections.length>1,focusedByCaller:!0})]})}const M=e=>c.find(s=>`/submenu-${s.label}`===e&&"sections"in s)?.label??null;return e.jsx("div",{ref:C,className:"rp-drill",tabIndex:-1,onKeyDownCapture:e=>{const s=M(e.target.dataset.key);e.key===u&&null!=s&&(e.preventDefault(),A(s))},children:e.jsxs(v,{"aria-label":l,"aria-labelledby":"",autoFocus:null==p&&void 0,shouldCloseOnSelect:!1,onAction:e=>{const s=M(String(e));null!=s&&A(s)},cLine truncated
|
||||
import{j as e,r as s}from"./vendor-react-64fcanlc.js";import{fV as l,fW as n,fX as a,cA as c,dK as t,cC as i,bF as r,fj as o,cB as u,dN as d,fY as h,dO as p,cD as m,u as x,b8 as b,fZ as j,bz as f,cE as v,f_ as g,cF as y,cG as C,f$ as N,cH as A,T as S,I as M,bl as k,ej as L,B as w}from"./index-C06va4Yw.js";import{a as I,b as q}from"./ItemText-D6SGBgOi.js";const D=e=>e>12,H=({orientation:s="vertical"})=>e.jsx(l,{orientation:s,className:"vertical"===s?"rp-vrule":"rp-hrule"}),$=e=>s=>{if("all"===s)return;const l=[...s][0];null!=l&&e(String(l))};function F({item:s,children:l,onAction:n}){return e.jsxs(A,{id:s.id,className:"rp-item",textValue:s.label,onAction:n,children:[e.jsx(I,{}),e.jsx(q,{i:s,children:l})]})}function O({children:l,content:n,label:x,quiet:b,small:j,size:f,chevron:v=!0,isDisabled:g,appearance:y,placement:C="bottom end",count:N,onIntent:A}){const S=N?e.jsx("span",{className:"rp-count","aria-hidden":"true",children:N}):null,M=a(g),[k,L]=s.useState(!1),w=c(),I=t(f),q=s.useRef(null),D=e.jsxs(i,{ref:q,className:y?"rp-select":o({quiet:b,small:j,icon:!v}),"data-size":I,"aria-label":x,"aria-describedby":M?.id,isDisabled:g,onHoverStart:A,onFocus:A,children:[l,S,v&&e.jsx(r,{className:"rp-chev"})]});return e.jsxs(u,{children:[v&&!M?D:e.jsxs(d,{delay:400,isOpen:k,onOpenChange:L,children:[e.jsx(h,{children:e.jsx("span",{className:"rp-tipwrap",tabIndex:g?0:-1,"data-passive":g?void 0:"",onPointerDown:e=>{g&&"touch"===e.pointerType&&L(e=>!e)},children:D})}),e.jsx(p,{triggerRef:q,children:M?.text??x})]}),e.jsx(m,{className:"rp-popover rp-list-popover",placement:C,boundaryElement:w,children:n})]})}function P({label:s,labelledBy:l,sections:n,headers:a=!0,focusedByCaller:c,onAction:t,searchLabel:i,actions:r=[]}){const o="function"==typeof n?n():n,u=!!i&&D(V(o)),d=e.jsxs(v,{"aria-label":s,"aria-labelledby":l??"",className:u?"rp-menu-scroll":void 0,autoFocus:!c&&void 0,children:[o.map(s=>e.jsxs(y,{"aria-label":a&&!s.hideHeader?void 0:s.title,selectionMode:s.selectionMode??"single",selectedKeys:[`/choice-${s.value}`],onSelectionChange:s.onChange&&$(e=>s.onChange(e.slice(8))),children:[a&&!s.hideHeader&&e.jsx(C,{className:"rp-sec-h",children:s.title}),s.items.map(s=>e.jsx(F,{item:{...s,id:`/choice-${s.id}`},onAction:t&&(()=>t(s.id))},s.id))]},s.title)),r.length>0&&e.jsx(H,{orientation:"horizontal"}),r.map(s=>e.jsx(B,{...s},s.label))]});return u?e.jsx(N,{label:i,children:d}):d}const V=e=>e.reduce((e,s)=>e+s.items.length,0);function z(e,s){for(const l of e){const n=l.items.find(e=>e.id===l.value);if(n)return e.length>1&&!l.plain&&n.label!==l.title?s("ui.sectionChoice",{section:l.title,item:n.label}):n.label}return""}const B=({label:s,icon:l,onAction:n})=>e.jsxs(A,{className:"rp-item rp-subitem",textValue:s,onAction:n,shouldCloseOnSelect:!0,children:[e.jsx("span",{className:"ic",children:l}),e.jsx(S,{children:s})]}),E=({id:s,label:l,icon:n,sections:a})=>{const c=x();return e.jsxs(A,{id:s,className:"rp-item rp-subitem",textValue:l,children:[e.jsx("span",{className:"ic",children:n}),e.jsx(S,{children:l}),e.jsxs("span",{className:"desc",children:[z(a,c),e.jsx(r,{className:"rp-chev-end"})]})]})};function K({label:l,submenus:n,actions:a=[]}){const c="function"==typeof n?n():n,t=x(),o=b(j),[u,d]="rtl"===f().direction?["ArrowLeft","ArrowRight"]:["ArrowRight","ArrowLeft"],[{open:h,left:p},y]=s.useState({open:null,left:null}),C=s.useRef(null),N=s.useId(),A=e=>{C.current?.focus(),y({open:e,left:null==e?h:null})};if(s.useEffect(()=>{const e=C.current;if(!e||null==h&&null==p)return;const s=null==h?`[data-key="${CSS.escape(`/submenu-${p}`)}"]`:'[aria-checked="true"], [role="menuitem"]',l=requestAnimationFrame(()=>{document.activeElement===e&&e.querySelector(s)?.focus()});return()=>cancelAnimationFrame(l)},[h,p]),!o)return e.jsxs(v,{"aria-label":l,"aria-labelledby":"",children:[c.map(s=>"sections"in s?e.jsxs(g,{children:[e.jsx(E,{id:`/submenu-${s.label}`,...s}),e.jsx(m,{className:"rp-popover rp-list-popover",offset:-4,crossOffset:-9,children:e.jsx(P,{...s,headers:s.sections.length>1})})]},s.label):e.jsx(B,{...s},s.label)),a.map(s=>e.jsx(B,{...s},s.label))]});const S=null==h?null:c.find(e=>e.label===h);if(S&&"sections"in S){const s=()=>A(null),l=e=>{e.key!==d&&"Escape"!==e.key||(e.preventDefault(),e.stopPropagation(),s())};return e.jsxs("div",{ref:C,className:"rp-drill",tabIndex:-1,onKeyDownCapture:l,children:[e.jsxs(i,{className:"rp-item rp-drill-back","aria-label":t("ui.back"),onPress:s,children:[e.jsx(r,{className:"rp-chev-start"}),e.jsx("span",{id:N,children:S.label})]}),e.jsx(P,{...S,labelledBy:N,headers:S.sections.length>1,focusedByCaller:!0})]})}const M=e=>c.find(s=>`/submenu-${s.label}`===e&&"sections"in s)?.label??null;return e.jsx("div",{ref:C,className:"rp-drill",tabIndex:-1,onKeyDownCapture:e=>{const s=M(e.target.dataset.key);e.key===u&&null!=s&&(e.preventDefault(),A(s))},children:e.jsxs(v,{"aria-label":l,"aria-labelledby":"",autoFocus:null==p&&void 0,shouldCloseOnSelect:!1,onAction:e=>{const s=M(String(e));null!=s&&A(s)},cLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{u as a,g as s,gD as n,dV as o,gE as i}from"./index-CUHkLMAp.js";import{b as l,a_ as r,a$ as c,b0 as h,b1 as m,b2 as u,b3 as p,b4 as d,b5 as x,b6 as f}from"./activity-B3PmJo_X.js";import{G as M,C as g}from"./AreaCurve-DQSHOSpG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-BYMoo8M1.js";import"./logs-C6Kb44nw.js";import"./Select-BA0NS1_z.js";import"./ItemText-CnEXu0-f.js";import"./AppearanceControls-E-VPhjIz.js";import"./array-C0VuvQyb.js";const j=[30,60,120,300,600,900,1800,3600,7200,21600,43200,86400].map(e=>1e3*e);function y(t,a){const[s,n]=e.useState([]),o=e.useRef("");return e.useLayoutEffect(()=>{const e=[a,...t].join("\0");if(e===o.current)return;o.current=e;const s=document.createElement("span");s.className="rp-area-tick",Object.assign(s.style,{position:"absolute",top:"-20000px",whiteSpace:"pre"}),document.body.appendChild(s),n(t.map(e=>{s.textContent=e;const{width:t,height:a}=s.getBoundingClientRect();return{width:t,height:a}})),s.remove()},[t,a]),s}function b({label:b,series:v,timestamps:w,fmt:k,locale:C,height:D=150,baseline:$="zero",window:N,fill:S,bare:A=!1,inset:E=2}){const L=a(),T=l(),B=e.useId(),[F,I]=s(Math.round,120),{tip:P,showAt:z,hide:K}=r(),[O,R]=e.useState(null),W=O&&O.index<w.length?O.index:null,_=N?N.until-N.since:w.length?w[w.length-1]-w[0]:0,G=N?.since,H=N?.until,U=e.useMemo(()=>void 0!==G&&void 0!==H?function(e,t){const a=t-e,s=j.find(e=>a/e<=6)??j[j.length-1],n=s>=864e5?6e4*new Date(t).getTimezoneOffset():0,o=[];for(let i=Math.ceil((e-n)/s)*s+n;i<=t;i+=s)i-e>=.04*a&&t-i>=.04*a&&o.push(i);return{ticks:o,step:s}}(G,H):void 0,[G,H]),V=U?U.step<6e4:_<18e4,q=U?U.step>=864e5:_>1296e5,J=e.useMemo(()=>q?n(C):o(C,V),[C,V,q]),{yDomain:Q,yTicks:X}=e.useMemo(()=>{const e=v.flatMap(e=>e.values.filter(e=>null!==e));let t=0,a=(e=>{const t=Math.pow(10,Math.floor(Math.log10(e))),a=e/t;return([1,1.2,1.5,2,2.5,3,4,5,6,8,10].find(e=>a<=e)??10)*t})(1.08*Math.max(1,...e));if("auto"===$&&e.length){const s=Math.min(...e),n=Math.max(...e),o=(e=>{const t=Math.pow(10,Math.floor(Math.log10(Math.max(e,1e-9)))),a=e/t;return(a<=1?.2:a<=2?.5:a<=5?1:2)*t})(Math.max(n-s,.02*n,1));t=Math.max(0,Math.floor(s/o)*o-o),a=Math.ceil(n/o)*o+o}return{yDomain:[t,a],yTicks:"auto"===$?[t,(t+a)/2,a]:[a/2,a]}},[v,$]),Y=e.useMemo(()=>{const e=w.length-1;return U?U.ticks:[...new Set((V?[0,Math.round(e/2),e]:[0,Math.round(e/3),Math.round(2*e/3),e]).map(e=>w[e]))]},[U,V,w]),Z=e.useMemo(()=>void 0!==G&&void 0!==H?[G,H]:[Math.min(...w),Math.max(...w)],[G,H,w]),ee=I?.width??0,te=I?.height??D,ae=A?E:20,se=A?2:8,ne=te-(A?2:30),oe=ee-(A?E:64),ie=e.useMemo(()=>[Math.min(Z[0],...w),Math.max(Z[1],...w)],[Z,w]),le=e.useCallback(e=>c(e,ie,[ae,oe]),[ie,ae,oe]),re=e.useCallback(e=>c(e,Q,[ne,se]),[Q,ne,se]),ce=e.useMemo(()=>w.map(le),[w,le]),he=e.useMemo(()=>v.map(e=>w.map((t,a)=>null==e.values[a]?null:{x:ce[a],y:re(e.values[a])})),[v,w,ce,re]),me={x:ae,y:se,width:oe-ae,height:ne-se},ue=(e,t)=>R({index:e,y:t}),pe=()=>{R(null),K()};e.useLayoutEffect(()=>{null!==W&&v.some(e=>null!=e.values[W])?z({x:ce[W],y:O?.y??(se+ne)/2,width:ee,bounds:A&&F.current?m(F.current):me,label:i(C).format(w[W]),lines:h(v,W,k,L)}):K()});const de=u(w.length,ue,pe),xe=e.useMemo(()=>Y.map(e=>J.format(e)),[Y,J]),fe=e.useMemo(()=>X.map(k),[X,k]),Me=y(xe,C),ge=y(fe,C),je=U?p(Y.map(le),Me.map(e=>e.width),0,ee,16,!0):function(e,t,a){const s=a=>[e[a]-(t[a]??0)/2,e[a]+(t[a]??0)/2],n=e.length-1,o=[];let i=1/0;for(let l=n;l>=0;l--){const[t,r]=s(l);r+a>i||l>0&&l<n&&t<s(0)[1]+a||(o.unshift({index:l,position:e[l]}),i=t)}return o}(Y.map(le),Me.map(e=>e.width),8),ye=p(X.map(re),ge.map(e=>e.height),0,te,5,!1),be=[...new Set([...(A?X:ye.map(e=>X[e.index])).map(re),se,ne])];return t.jsx("div",{ref:F,style:{height:D,width:"100%",flex:S?"1 0 auto":void 0,position:"relative"},onPointerLeave:de.onPointerLeave,children:w.length>0&&I&&t.jsxs(t.Fragment,{children:[t.jsx(d,{tip:P}),t.jsxs("svg",{className:"rp-activity-surface",width:ee,height:te,viewBox:`0 0 ${ee} ${te}`,style:{display:"block"},role:"application","aria-label":b,tabIndex:0,onFocus:de.onFocus,onBlur:de.onBlur,onKeyDown:de.onKeyDown,onPointerMove:e=>{const{x:t,y:a}=x(e,e.currentTarget,{width:ee,height:te});if(t<ae||t>oe||a<se||a>ne)return void pe();const s=f(ce,t);ue(s,a)},children:[t.jsx("g",{className:"rp-area-grid",children:be.map(e=>t.jsx("line",{x1:ae,x2:oe,y1:e,y2:e,stroke:T["hl-med"],strokeDasharray:"2 4",fill:"none"},e))}),t.jsx("defs",{children:v.map((e,a)=>t.jsx(M,{id:B+a,color:e.color},e.label))}),v.map((e,a)=>t.jsx(g,{points:he[a],baseline:re(Math.max(0,Q[0])),color:e.color,id:B+a,strokeWidth:2},e.label)),null!==W&&t.jsx("path",{d:`M${ce[W]},${se}L${ce[W]},${ne}`,stroke:T.subtle,strokeDasharray:"3 3",fill:"none",pointerEvents:"none"}),!A&&t.jsxs(t.Fragment,{children:[t.jsx("g",{children:je.map(({index:e,position:a})=>t.jsx("text",{x:a,y:ne+8,className:"rp-area-tick",fill:T.subtle,textAnchor:"middle",children:t.jsx("tspan",{x:a,dy:"0.71em",children:xe[Line truncated
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{u as a,g as s,gE as n,dX as o,gF as i}from"./index-C06va4Yw.js";import{b as l,aZ as r,a_ as c,a$ as h,b0 as m,b1 as u,b2 as p,b3 as d,b4 as x,b5 as f}from"./activity-BoXvjA12.js";import{G as M,C as g}from"./AreaCurve-DQSHOSpG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-oXccX15o.js";import"./logs-BtAlqVqe.js";import"./Select-hQ95uOjm.js";import"./ItemText-D6SGBgOi.js";import"./AppearanceControls-CEVO9-aR.js";import"./array-C0VuvQyb.js";const j=[30,60,120,300,600,900,1800,3600,7200,21600,43200,86400].map(e=>1e3*e);function y(t,a){const[s,n]=e.useState([]),o=e.useRef("");return e.useLayoutEffect(()=>{const e=[a,...t].join("\0");if(e===o.current)return;o.current=e;const s=document.createElement("span");s.className="rp-area-tick",Object.assign(s.style,{position:"absolute",top:"-20000px",whiteSpace:"pre"}),document.body.appendChild(s),n(t.map(e=>{s.textContent=e;const{width:t,height:a}=s.getBoundingClientRect();return{width:t,height:a}})),s.remove()},[t,a]),s}function b({label:b,series:v,timestamps:w,fmt:k,locale:C,height:D=150,baseline:$="zero",window:N,fill:S,bare:A=!1,inset:E=2}){const F=a(),L=l(),T=e.useId(),[B,I]=s(Math.round,120),{tip:P,showAt:W,hide:z}=r(),[K,O]=e.useState(null),R=K&&K.index<w.length?K.index:null,_=N?N.until-N.since:w.length?w[w.length-1]-w[0]:0,G=N?.since,H=N?.until,X=e.useMemo(()=>void 0!==G&&void 0!==H?function(e,t){const a=t-e,s=j.find(e=>a/e<=6)??j[j.length-1],n=s>=864e5?6e4*new Date(t).getTimezoneOffset():0,o=[];for(let i=Math.ceil((e-n)/s)*s+n;i<=t;i+=s)i-e>=.04*a&&t-i>=.04*a&&o.push(i);return{ticks:o,step:s}}(G,H):void 0,[G,H]),Z=X?X.step<6e4:_<18e4,q=X?X.step>=864e5:_>1296e5,J=e.useMemo(()=>q?n(C):o(C,Z),[C,Z,q]),{yDomain:Q,yTicks:U}=e.useMemo(()=>{const e=v.flatMap(e=>e.values.filter(e=>null!==e));let t=0,a=(e=>{const t=Math.pow(10,Math.floor(Math.log10(e))),a=e/t;return([1,1.2,1.5,2,2.5,3,4,5,6,8,10].find(e=>a<=e)??10)*t})(1.08*Math.max(1,...e));if("auto"===$&&e.length){const s=Math.min(...e),n=Math.max(...e),o=(e=>{const t=Math.pow(10,Math.floor(Math.log10(Math.max(e,1e-9)))),a=e/t;return(a<=1?.2:a<=2?.5:a<=5?1:2)*t})(Math.max(n-s,.02*n,1));t=Math.max(0,Math.floor(s/o)*o-o),a=Math.ceil(n/o)*o+o}return{yDomain:[t,a],yTicks:"auto"===$?[t,(t+a)/2,a]:[a/2,a]}},[v,$]),V=e.useMemo(()=>{const e=w.length-1;return X?X.ticks:[...new Set((Z?[0,Math.round(e/2),e]:[0,Math.round(e/3),Math.round(2*e/3),e]).map(e=>w[e]))]},[X,Z,w]),Y=e.useMemo(()=>void 0!==G&&void 0!==H?[G,H]:[Math.min(...w),Math.max(...w)],[G,H,w]),ee=I?.width??0,te=I?.height??D,ae=A?E:20,se=A?2:8,ne=te-(A?2:30),oe=ee-(A?E:64),ie=e.useMemo(()=>[Math.min(Y[0],...w),Math.max(Y[1],...w)],[Y,w]),le=e.useCallback(e=>c(e,ie,[ae,oe]),[ie,ae,oe]),re=e.useCallback(e=>c(e,Q,[ne,se]),[Q,ne,se]),ce=e.useMemo(()=>w.map(le),[w,le]),he=e.useMemo(()=>v.map(e=>w.map((t,a)=>null==e.values[a]?null:{x:ce[a],y:re(e.values[a])})),[v,w,ce,re]),me={x:ae,y:se,width:oe-ae,height:ne-se},ue=(e,t)=>O({index:e,y:t}),pe=()=>{O(null),z()};e.useLayoutEffect(()=>{null!==R&&v.some(e=>null!=e.values[R])?W({x:ce[R],y:K?.y??(se+ne)/2,width:ee,bounds:A&&B.current?m(B.current):me,label:i(C).format(w[R]),lines:h(v,R,k,F)}):z()});const de=u(w.length,ue,pe),xe=e.useMemo(()=>V.map(e=>J.format(e)),[V,J]),fe=e.useMemo(()=>U.map(k),[U,k]),Me=y(xe,C),ge=y(fe,C),je=X?p(V.map(le),Me.map(e=>e.width),0,ee,16,!0):function(e,t,a){const s=a=>[e[a]-(t[a]??0)/2,e[a]+(t[a]??0)/2],n=e.length-1,o=[];let i=1/0;for(let l=n;l>=0;l--){const[t,r]=s(l);r+a>i||l>0&&l<n&&t<s(0)[1]+a||(o.unshift({index:l,position:e[l]}),i=t)}return o}(V.map(le),Me.map(e=>e.width),8),ye=p(U.map(re),ge.map(e=>e.height),0,te,5,!1),be=[...new Set([...(A?U:ye.map(e=>U[e.index])).map(re),se,ne])];return t.jsx("div",{ref:B,style:{height:D,width:"100%",flex:S?"1 0 auto":void 0,position:"relative"},onPointerLeave:de.onPointerLeave,children:w.length>0&&I&&t.jsxs(t.Fragment,{children:[t.jsx(d,{tip:P}),t.jsxs("svg",{className:"rp-activity-surface",width:ee,height:te,viewBox:`0 0 ${ee} ${te}`,style:{display:"block"},role:"application","aria-label":b,tabIndex:0,onFocus:de.onFocus,onBlur:de.onBlur,onKeyDown:de.onKeyDown,onPointerMove:e=>{const{x:t,y:a}=x(e,e.currentTarget,{width:ee,height:te});if(t<ae||t>oe||a<se||a>ne)return void pe();const s=f(ce,t);ue(s,a)},children:[t.jsx("g",{className:"rp-area-grid",children:be.map(e=>t.jsx("line",{x1:ae,x2:oe,y1:e,y2:e,stroke:L["hl-med"],strokeDasharray:"2 4",fill:"none"},e))}),t.jsx("defs",{children:v.map((e,a)=>t.jsx(M,{id:T+a,color:e.color},e.label))}),v.map((e,a)=>t.jsx(g,{points:he[a],baseline:re(Math.max(0,Q[0])),color:e.color,id:T+a,strokeWidth:2},e.label)),null!==R&&t.jsx("path",{d:`M${ce[R]},${se}L${ce[R]},${ne}`,stroke:L.subtle,strokeDasharray:"3 3",fill:"none",pointerEvents:"none"}),!A&&t.jsxs(t.Fragment,{children:[t.jsx("g",{children:je.map(({index:e,position:a})=>t.jsx("text",{x:a,y:ne+8,className:"rp-area-tick",fill:L.subtle,textAnchor:"middle",children:t.jsx("tspan",{x:a,dy:"0.71em",children:xe[Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as r,r as s}from"./vendor-react-64fcanlc.js";import{u as e}from"./index-CUHkLMAp.js";import{D as t}from"./logs-C6Kb44nw.js";function n({texts:n}){const o=e();return n?.length?r.jsx(t,{flush:!0,title:o("config.backendText"),children:n.map((e,t)=>r.jsxs(s.Fragment,{children:[t>0&&r.jsx("br",{}),r.jsx("code",{children:e})]},t))}):null}export{n as B};
|
||||
import{j as r,r as s}from"./vendor-react-64fcanlc.js";import{u as e}from"./index-C06va4Yw.js";import{D as t}from"./logs-BtAlqVqe.js";function n({texts:n}){const o=e();return n?.length?r.jsx(t,{flush:!0,title:o("config.backendText"),children:n.map((e,t)=>r.jsxs(s.Fragment,{children:[t>0&&r.jsx("br",{}),r.jsx("code",{children:e})]},t))}):null}export{n as B};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{a,$ as s}from"./GridList-CQPDUasC.js";import{T as i,cy as r,u as t,S as l,al as c}from"./index-CUHkLMAp.js";function n({label:a,items:i,selected:r,onSelect:n,loading:d,empty:o,children:m}){const p=t();return e.jsx(s,{className:"rp-cardview","aria-label":a,layout:"grid",items:i,dependencies:[m],selectionMode:"single",selectionBehavior:"replace",disallowEmptySelection:!0,selectedKeys:r?[r]:[],onSelectionChange:e=>{if("all"===e)return;const a=[...e][0];null!=a&&n(String(a))},renderEmptyState:()=>d?e.jsx(l,{shape:"cards",count:3,height:224,grid:!0,typical:!0}):e.jsx(c,{children:o??p("ui.empty")}),children:m})}function d({id:s,title:t,titleFull:l,meta:c,actions:n,children:d}){return e.jsxs(a,{id:s,textValue:t,className:r("rp-cardview-card"),children:[e.jsxs("div",{className:"rp-cardview-head",children:[e.jsx(i,{className:"rp-cardview-title",text:l,children:t}),n&&e.jsx("span",{className:"rp-cardview-actions",children:n})]}),c&&e.jsx("div",{className:"rp-cardview-meta",children:c}),d]})}export{d as C,n as a};
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{a,$ as s}from"./GridList-Dgo5IXUg.js";import{T as i,cz as r,u as t,S as l,al as c}from"./index-C06va4Yw.js";function n({label:a,items:i,selected:r,onSelect:n,loading:d,empty:o,children:m}){const p=t();return e.jsx(s,{className:"rp-cardview","aria-label":a,layout:"grid",items:i,dependencies:[m],selectionMode:"single",selectionBehavior:"replace",disallowEmptySelection:!0,selectedKeys:r?[r]:[],onSelectionChange:e=>{if("all"===e)return;const a=[...e][0];null!=a&&n(String(a))},renderEmptyState:()=>d?e.jsx(l,{shape:"cards",count:3,height:228,grid:!0,typical:!0}):e.jsx(c,{children:o??p("ui.empty")}),children:m})}function d({id:s,title:t,titleFull:l,meta:c,actions:n,children:d}){return e.jsxs(a,{id:s,textValue:t,className:r("rp-cardview-card"),children:[e.jsxs("div",{className:"rp-cardview-head",children:[e.jsx(i,{className:"rp-cardview-title",text:l,children:t}),n&&e.jsx("span",{className:"rp-cardview-actions",children:n})]}),c&&e.jsx("div",{className:"rp-cardview-meta",children:c}),d]})}export{d as C,n as a};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as s,j as e}from"./vendor-react-64fcanlc.js";import{g as a}from"./useGridSelectionCheckbox-CTBMGgmQ.js";import{C as i}from"./ItemText-CnEXu0-f.js";import{dw as r}from"./index-CUHkLMAp.js";function d({label:d,description:o,isSelected:l,onChange:c,isDisabled:n,slot:t}){const p=s.useId(),m=s.useId(),x=r({isDisabled:n});return e.jsxs(a,{className:"rp-radio rp-checkbox",slot:t,isSelected:l,onChange:c,isDisabled:x.isDisabled,"aria-labelledby":d?p:void 0,"aria-describedby":o?m:void 0,children:[e.jsx("span",{className:"rp-checkbox-mark",children:e.jsx(i,{})}),d&&e.jsxs("span",{className:"rp-radio-text",children:[e.jsx("span",{id:p,children:d}),o&&e.jsx("span",{id:m,className:"rp-note",children:o})]})]})}export{d as C};
|
||||
import{r as s,j as e}from"./vendor-react-64fcanlc.js";import{g as a}from"./useGridSelectionCheckbox-inhSeUkV.js";import{C as i}from"./ItemText-D6SGBgOi.js";import{dy as r}from"./index-C06va4Yw.js";function d({label:d,description:o,isSelected:l,onChange:c,isDisabled:n,slot:t}){const p=s.useId(),m=s.useId(),x=r({isDisabled:n});return e.jsxs(a,{className:"rp-radio rp-checkbox",slot:t,isSelected:l,onChange:c,isDisabled:x.isDisabled,"aria-labelledby":d?p:void 0,"aria-describedby":o?m:void 0,children:[e.jsx("span",{className:"rp-checkbox-mark",children:e.jsx(i,{})}),d&&e.jsxs("span",{className:"rp-radio-text",children:[e.jsx("span",{id:p,children:d}),o&&e.jsx("span",{id:m,className:"rp-note",children:o})]})]})}export{d as C};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as e,r as s}from"./vendor-react-64fcanlc.js";import{I as i,cK as l,cx as a,B as n,cn as r}from"./index-CUHkLMAp.js";import{C as c}from"./Checkbox-8Iqnc6T1.js";function d(s){return e.jsx(i,{...s,children:e.jsx("path",{fill:"currentColor",d:"M17.78 1.757C16.51.716 14.555.858 13.33 2.08L3.079 12.334c-.32.32-.559.717-.69 1.15l-1.384 4.584c-.08.265-.007.552.188.747.142.143.334.22.53.22q.11 0 .217-.032l4.582-1.384c.434-.13.832-.368 1.151-.688L18.028 6.575c.648-.647.993-1.545.948-2.46s-.482-1.775-1.195-2.358M2.846 17.163l.98-3.246q.042-.135.113-.257l2.41 2.409q-.123.07-.259.114zM16.966 5.516l-9.525 9.526-2.475-2.476 9.425-9.425c.386-.387.896-.586 1.39-.586.38 0 .752.119 1.05.362.392.321.621.772.646 1.272.025.494-.161.977-.51 1.327"})})}function o({children:s}){return e.jsx(r,{children:s})}function t({children:s,negate:i,onNegate:r,negateLabel:c,removeLabel:d,onRemove:t,isDisabled:b,removeDisabled:h}){return e.jsxs(l,{children:[s,e.jsxs(o,{children:[e.jsx(a,{isDisabled:b,isSelected:i,onChange:r,children:c}),e.jsx("span",{className:"rp-grow"}),e.jsx(n,{small:!0,isDisabled:b||h,onPress:t,children:d})]})]})}function b({label:i,hideLabel:l=!1,items:a,value:n,onChange:r,isDisabled:d}){const o=s.useId();return e.jsxs("div",{className:"rp-checkbox-set",role:"group","aria-labelledby":o,children:[e.jsx("span",{id:o,className:"rp-label",hidden:l,children:i}),e.jsx("div",{className:"rp-checkbox-options",children:a.map(s=>e.jsx(c,{label:s.label,description:s.description,isSelected:n.includes(s.id),isDisabled:d||s.isDisabled,onChange:e=>r(e?[...n,s.id]:n.filter(e=>e!==s.id))},s.id))})]})}export{b as C,d as E,t as a,o as b};
|
||||
import{j as e,r as s}from"./vendor-react-64fcanlc.js";import{I as i,cL as l,cy as a,B as r,co as n}from"./index-C06va4Yw.js";import{C as c}from"./Checkbox-CsFZSc5N.js";function d(s){return e.jsx(i,{...s,children:e.jsx("path",{fill:"currentColor",d:"M17.78 1.757C16.51.716 14.555.858 13.33 2.08L3.079 12.334c-.32.32-.559.717-.69 1.15l-1.384 4.584c-.08.265-.007.552.188.747.142.143.334.22.53.22q.11 0 .217-.032l4.582-1.384c.434-.13.832-.368 1.151-.688L18.028 6.575c.648-.647.993-1.545.948-2.46s-.482-1.775-1.195-2.358M2.846 17.163l.98-3.246q.042-.135.113-.257l2.41 2.409q-.123.07-.259.114zM16.966 5.516l-9.525 9.526-2.475-2.476 9.425-9.425c.386-.387.896-.586 1.39-.586.38 0 .752.119 1.05.362.392.321.621.772.646 1.272.025.494-.161.977-.51 1.327"})})}function o({children:s}){return e.jsx(n,{children:s})}function t({children:s,negate:i,onNegate:n,negateLabel:c,removeLabel:d,onRemove:t,isDisabled:b,removeDisabled:h}){return e.jsxs(l,{children:[s,e.jsxs(o,{children:[e.jsx(a,{isDisabled:b,isSelected:i,onChange:n,children:c}),e.jsx("span",{className:"rp-grow"}),e.jsx(r,{small:!0,isDisabled:b||h,onPress:t,children:d})]})]})}function b({label:i,hideLabel:l=!1,items:a,value:r,onChange:n,isDisabled:d}){const o=s.useId();return e.jsxs("div",{className:"rp-checkbox-set",role:"group","aria-labelledby":o,children:[e.jsx("span",{id:o,className:"rp-label",hidden:l,children:i}),e.jsx("div",{className:"rp-checkbox-options",children:a.map(s=>e.jsx(c,{label:s.label,description:s.description,isSelected:r.includes(s.id),isDisabled:d||s.isDisabled,onChange:e=>n(e?[...r,s.id]:r.filter(e=>e!==s.id))},s.id))})]})}export{b as C,d as E,t as a,o as b};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,j as r}from"./vendor-react-64fcanlc.js";import{bW as t,gO as o,bV as n,fy as a,bz as c,u as s,cn as i,dG as l,B as d,cD as p,cG as m}from"./index-CUHkLMAp.js";import{S as u,a as f,E as g,C as b,b as v,l as h,c as x,h as y,d as k,r as w,e as j,f as C,g as R,i as A,j as L,s as E,k as M,t as O,m as D,n as F,o as N,p as S,q as $,u as B,v as q,w as I,x as T,y as V,z as G,D as H,R as z,A as K,B as U,F as W,G as P,H as J,I as X,J as _,K as Q,L as Y}from"./vendor-editor-50h2cCk6.js";import{d as Z,s as ee}from"./daeTokens-BVtuNnWZ.js";import{s as re}from"./nodes-BYMoo8M1.js";import{M as te}from"./AppearanceControls-E-VPhjIz.js";import{n as oe,A as ne}from"./logs-C6Kb44nw.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./index-DUM-iwa2.js";import"./ItemText-CnEXu0-f.js";import"./Select-BA0NS1_z.js";const ae=u.define({name:"dae",languageData:{commentTokens:{line:"#"},closeBrackets:{brackets:["(","{","'",'"']}},startState:ee,token:Z}),ce=["global","subscription","node","group","dns","routing"].map(e=>({label:e,type:"keyword"})),se=n.map(e=>({label:e,type:"property",apply:e+": "})),ie=["domain","dip","sip","dport","sport","l4proto","ipversion","pname","mac","dscp","qname","qtype","upstream"].map(e=>({label:e,type:"function",apply:e+"("})),le=["geosite","geoip","suffix","full","keyword","regex"].map(e=>({label:e,type:"constant",apply:e+":"})),de=o.map(e=>({label:e,type:"constant"})),pe=t.map(e=>({label:e,type:"keyword"})),me=["asis","reject"].map(e=>({label:e,type:"keyword"})),ue=["accept","reject"].map(e=>({label:e,type:"keyword"})),fe=[{label:"fallback",type:"keyword",apply:"fallback: "},{label:"include",type:"keyword",apply:"include "}],ge=e=>e.map(e=>({label:e.name,apply:e.written,type:"variable"}));function be(e){return f({override:[r=>function(e,r){const t=e.matchBefore(/[\w.-]*/);if(!t)return null;const o=e.state.doc.lineAt(e.pos),n=o.text.slice(0,e.pos-o.from),a=/->\s*[\w.-]*$/.test(n)||/^\s*fallback:\s*[\w.-]*$/.test(n);if(t.from===t.to&&!e.explicit&&!a)return null;const c=e.state.doc.sliceString(0,e.pos),{blocks:s,tokens:i}=re(c),l=i.at(-1);if(l?.to===e.pos&&("quoted"===l.kind||"comment"===l.kind))return null;const d=[],p=r=>r.close===e.pos;for(let f=s.find(p);f;f=f.children.find(p))d.push(f.name);const m=d[0];let u;if(a){const{groups:e,upstreams:t}=r();u="dns"!==m?[...ge(e),...pe]:[...ge(t),...d.includes("response")?ue:me]}else if(/\b(domain|dip|sip|qname)\(\s*[\w.-]*$/.test(n))u=le;else if(void 0===m)u=ce.map(e=>({...e,apply:(r,t,o,n)=>{const a=e.label+" {\n \n}";r.dispatch({changes:{from:o,to:n,insert:a},selection:{anchor:o+e.label.length+4}})}}));else if("routing"===m||"dns"===m)u=[...ie,...fe];else if("global"===m)u=se;else{if("group"!==m)return null;u=/\bpolicy\s*:\s*[\w.-]*$/.test(n)?de:[...de.map(e=>({...e,apply:"policy: "+e.label})),{label:"filter",type:"property",apply:"filter: "}]}return{from:t.from,options:u,validFor:/^[\w.-]*$/}}(r,e)]})}function ve(e){let r=!1;const t=r=>(r.state.readOnly&&e(),!1);return g.domEventHandlers({keydown:(e,r)=>function(e){return"Backspace"===e.key||"Delete"===e.key||"Enter"===e.key||1===[...e.key].length&&!e.ctrlKey&&!e.metaKey}(e)&&t(r),paste:(e,r)=>t(r),cut:(e,r)=>t(r),pointerdown:e=>(r="touch"===e.pointerType,!1),click:(e,o)=>r&&t(o)})}const he=[["Completions","cm.completions"],["Find","cm.find"],["Replace","cm.replace"],["next","cm.next"],["previous","cm.previous"],["all","cm.all"],["match case","cm.matchCase"],["regexp","cm.regexp"],["by word","cm.byWord"],["replace","cm.replaceOne"],["replace all","cm.replaceAll"],["close","ui.close"],["Go to line","cm.gotoLine"],["go","cm.go"],["current match","cm.currentMatch"],["replaced $ matches","cm.replacedMatches"],["replaced match on line $","cm.replacedOnLine"],["on line","cm.onLine"],["Selection deleted","cm.selectionDeleted"],["Control character","cm.controlCharacter"]],xe=e=>v.phrases.of(Object.fromEntries(he.map(([r,t])=>[r,e(t)]))),ye=g.theme({"&":{backgroundColor:"var(--rp-base)",color:"var(--rp-text)",border:"1px solid var(--rp-hl-high)",borderRadius:"var(--rp-r-md)",fontSize:"var(--rp-text-sm)"},"&.cm-focused":{outline:"none",borderColor:"var(--rp-text)"},".cm-scroller":{fontFamily:"var(--rp-font-mono)",lineHeight:"var(--rp-line-body)",fontVariantLigatures:"none",borderRadius:"calc(var(--rp-r-md) - 1px)"},".cm-content":{padding:"var(--rp-space-2) 0",caretColor:"var(--rp-text)"},".cm-line":{padding:"0 var(--rp-space-3)"},".cm-gutters":{backgroundColor:"var(--rp-base)",color:"var(--rp-muted)",border:"none"},".cm-lineNumbers .cm-gutterElement":{padding:"0 var(--rp-space-2) 0 var(--rp-space-3)",minWidth:"40px"},".cm-activeLine, .cm-focusLine":{backgroundColor:"color-mix(in srgb, var(--rp-hl-med) 60%, transparent)"},".cm-activeLineGutter":{backgroundColor:"transparent",color:"var(--rp-text)"},".cm-selectionBackground, &.cm-focused .cm-selectionBackground, ::selection":{backgroundColor:"var(--rp-hl-high)"},".cm-cursor":{borderLeftColor:"var(--rp-text)"},".cm-matchingBracket":{backgroundColor:"color-mLine truncated
|
||||
import{r as e,j as r}from"./vendor-react-64fcanlc.js";import{bX as t,gP as o,bW as n,fA as a,bA as c,u as s,co as i,dI as l,B as d,cE as p,cH as m}from"./index-C06va4Yw.js";import{S as u,a as f,E as g,C as b,b as v,l as h,c as x,h as y,d as k,r as w,e as j,f as C,g as R,i as A,j as E,s as L,k as M,t as F,m as N,n as O,o as S,p as $,q as B,u as D,v as q,w as I,x as T,y as H,z as V,D as W,R as K,A as P,B as z,F as G,G as U,H as J,I as X,J as Z,K as _,L as Q}from"./vendor-editor-50h2cCk6.js";import{d as Y,s as ee}from"./daeTokens-BVtuNnWZ.js";import{s as re}from"./nodes-oXccX15o.js";import{M as te}from"./AppearanceControls-CEVO9-aR.js";import{n as oe,A as ne}from"./logs-BtAlqVqe.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./index-DUM-iwa2.js";import"./ItemText-D6SGBgOi.js";import"./Select-hQ95uOjm.js";const ae=u.define({name:"dae",languageData:{commentTokens:{line:"#"},closeBrackets:{brackets:["(","{","'",'"']}},startState:ee,token:Y}),ce=["global","subscription","node","group","dns","routing"].map(e=>({label:e,type:"keyword"})),se=n.map(e=>({label:e,type:"property",apply:e+": "})),ie=["domain","dip","sip","dport","sport","l4proto","ipversion","pname","mac","dscp","qname","qtype","upstream"].map(e=>({label:e,type:"function",apply:e+"("})),le=["geosite","geoip","suffix","full","keyword","regex"].map(e=>({label:e,type:"constant",apply:e+":"})),de=o.map(e=>({label:e,type:"constant"})),pe=t.map(e=>({label:e,type:"keyword"})),me=["asis","reject"].map(e=>({label:e,type:"keyword"})),ue=["accept","reject"].map(e=>({label:e,type:"keyword"})),fe=[{label:"fallback",type:"keyword",apply:"fallback: "},{label:"include",type:"keyword",apply:"include "}],ge=e=>e.map(e=>({label:e.name,apply:e.written,type:"variable"}));function be(e){return f({override:[r=>function(e,r){const t=e.matchBefore(/[\w.-]*/);if(!t)return null;const o=e.state.doc.lineAt(e.pos),n=o.text.slice(0,e.pos-o.from),a=/->\s*[\w.-]*$/.test(n)||/^\s*fallback:\s*[\w.-]*$/.test(n);if(t.from===t.to&&!e.explicit&&!a)return null;const c=e.state.doc.sliceString(0,e.pos),{blocks:s,tokens:i}=re(c),l=i.at(-1);if(l?.to===e.pos&&("quoted"===l.kind||"comment"===l.kind))return null;const d=[],p=r=>r.close===e.pos;for(let f=s.find(p);f;f=f.children.find(p))d.push(f.name);const m=d[0];let u;if(a){const{groups:e,upstreams:t}=r();u="dns"!==m?[...ge(e),...pe]:[...ge(t),...d.includes("response")?ue:me]}else if(/\b(domain|dip|sip|qname)\(\s*[\w.-]*$/.test(n))u=le;else if(void 0===m)u=ce.map(e=>({...e,apply:(r,t,o,n)=>{const a=e.label+" {\n \n}";r.dispatch({changes:{from:o,to:n,insert:a},selection:{anchor:o+e.label.length+4}})}}));else if("routing"===m||"dns"===m)u=[...ie,...fe];else if("global"===m)u=se;else{if("group"!==m)return null;u=/\bpolicy\s*:\s*[\w.-]*$/.test(n)?de:[...de.map(e=>({...e,apply:"policy: "+e.label})),{label:"filter",type:"property",apply:"filter: "}]}return{from:t.from,options:u,validFor:/^[\w.-]*$/}}(r,e)]})}function ve(e){let r=!1;const t=r=>(r.state.readOnly&&e(),!1);return g.domEventHandlers({keydown:(e,r)=>function(e){return"Backspace"===e.key||"Delete"===e.key||"Enter"===e.key||1===[...e.key].length&&!e.ctrlKey&&!e.metaKey}(e)&&t(r),paste:(e,r)=>t(r),cut:(e,r)=>t(r),pointerdown:e=>(r="touch"===e.pointerType,!1),click:(e,o)=>r&&t(o)})}const he=[["Completions","cm.completions"],["Find","cm.find"],["Replace","cm.replace"],["next","cm.next"],["previous","cm.previous"],["all","cm.all"],["match case","cm.matchCase"],["regexp","cm.regexp"],["by word","cm.byWord"],["replace","cm.replaceOne"],["replace all","cm.replaceAll"],["close","ui.close"],["Go to line","cm.gotoLine"],["go","cm.go"],["current match","cm.currentMatch"],["replaced $ matches","cm.replacedMatches"],["replaced match on line $","cm.replacedOnLine"],["on line","cm.onLine"],["Selection deleted","cm.selectionDeleted"],["Control character","cm.controlCharacter"]],xe=e=>v.phrases.of(Object.fromEntries(he.map(([r,t])=>[r,e(t)]))),ye=g.theme({"&":{backgroundColor:"var(--rp-base)",color:"var(--rp-text)",border:"1px solid var(--rp-hl-high)",borderRadius:"var(--rp-r-md)",fontSize:"var(--rp-text-sm)"},"&.cm-focused":{outline:"none",borderColor:"var(--rp-text)"},".cm-scroller":{fontFamily:"var(--rp-font-mono)",lineHeight:"var(--rp-line-body)",fontVariantLigatures:"none",borderRadius:"calc(var(--rp-r-md) - 1px)"},".cm-content":{padding:"var(--rp-space-2) 0",caretColor:"var(--rp-text)"},".cm-line":{padding:"0 var(--rp-space-3)"},".cm-gutters":{backgroundColor:"var(--rp-base)",color:"var(--rp-muted)",border:"none"},".cm-lineNumbers .cm-gutterElement":{padding:"0 var(--rp-space-2) 0 var(--rp-space-3)",minWidth:"40px"},".cm-activeLine, .cm-focusLine":{backgroundColor:"color-mix(in srgb, var(--rp-hl-med) 60%, transparent)"},".cm-activeLineGutter":{backgroundColor:"transparent",color:"var(--rp-text)"},".cm-selectionBackground, &.cm-focused .cm-selectionBackground, ::selection":{backgroundColor:"var(--rp-hl-high)"},".cm-cursor":{borderLeftColor:"var(--rp-text)"},".cm-matchingBracket":{backgroundColor:"color-mLine truncated
|
||||
+2
-2
@@ -1,2 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CodeEditor-DCw5LkC0.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-CUHkLMAp.js","./index-DhY2A0CV.css","./vendor-editor-50h2cCk6.js","./index-DUM-iwa2.js","./daeTokens-BVtuNnWZ.js","./nodes-BYMoo8M1.js","./AppearanceControls-E-VPhjIz.js","./ItemText-CnEXu0-f.js","./logs-C6Kb44nw.js","./Select-BA0NS1_z.js"])))=>i.map(i=>d[i]);
|
||||
import{r as e,j as n}from"./vendor-react-64fcanlc.js";import{h as i,u as s,as as a,at as r,r as t,t as o,F as l,ar as c,ch as d,w as u,cj as g,a3 as f,J as p,aQ as m,cf as h,cQ as b,dN as x,dO as v,a7 as j,a6 as y,af as w,aq as k,H as N,cP as S,v as C,A as D,aX as P,B as O,aG as T,E as _,bo as R,al as E,b9 as M,cK as H,m as A,C as F,c as L,bH as I,dP as q,bO as U,cn as W,bP as $,aD as K,dG as V,a as B,b as z,x as Q,z as G,cM as J,aJ as X,c4 as Y,aN as Z,p as ee,_ as ne,T as ie,dQ as se,dR as ae,dS as re}from"./index-CUHkLMAp.js";import{a as te,u as oe,x as le,c as ce,J as de,O as ue,B as ge,K as fe,D as pe,p as me,P as he,S as be,L as xe}from"./logs-C6Kb44nw.js";import{T as ve}from"./Tabs-DiTlqyjA.js";import{aN as je,a4 as ye,ac as we,aO as ke,z as Ne,aP as Se,aQ as Ce,aa as De,D as Pe,a as Oe,aR as Te}from"./activity-B3PmJo_X.js";import{s as _e,U as Re,S as Ee,g as Me,r as He,al as Ae,am as Fe,an as Le,ao as Ie,Q as qe,ap as Ue}from"./nodes-BYMoo8M1.js";import{s as We,c as $e,r as Ke,a as Ve,b as Be,d as ze,e as Qe,f as Ge,g as Je,h as Xe,v as Ye,i as Ze,j as en,k as nn,l as sn,m as an,n as rn,o as tn,w as on}from"./nav-Dn-_mMqu.js";import{u as ln,c as cn}from"./flows-DS-lcTPn.js";import{d as dn}from"./files-Dt8K7QfP.js";import{c as un}from"./limitHint-nHl9AqvH.js";import{D as gn}from"./Table-DX856nrS.js";import{T as fn}from"./TimeCell-N-r54xmV.js";import{N as pn,t as mn}from"./NumberField-C_bakFfF.js";import{A as hn}from"./AddCircle-D2cMd6zF.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BA0NS1_z.js";import"./ItemText-CnEXu0-f.js";import"./AppearanceControls-E-VPhjIz.js";import"./useGridSelectionCheckbox-CTBMGgmQ.js";import"./Virtualizer-UMC7L0o2.js";import"./Checkbox-8Iqnc6T1.js";function bn(e,n,s,a="main"){if(!s.daeText)return[];const{blocks:r,tokens:t}=_e(e),o=s.globalSettings;return r.flatMap(s=>{if(s.name===o?.name){const a=r.filter(e=>e.name===o.name).indexOf(s),l=Re(e,s,t);return l.filter(e=>1===l.filter(n=>n.name===e.name).length&&o.fields.some(n=>n.key===e.name)).map(r=>({kind:s.name,from:r.from,to:r.to,label:r.name,line:e.slice(0,r.from).split("\n").length,href:i("config",{tab:"global",source:n,section:String(a),field:r.name})}))}const l=We[s.name];return"subscription"===s.name?"main"!==a?[]:Ee(e).filter(e=>e.from>s.open&&e.to<=s.close).map(e=>({kind:s.name,from:e.from,to:e.to,label:e.tag,line:e.line,href:i("nodes",{editSubscriptionTag:e.tag})})):"dns"===s.name?s.children.filter(e=>"routing"===e.name).flatMap(e=>e.children.filter(e=>"request"===e.name||"response"===e.name).map(e=>({kind:s.name,from:e.from,to:e.to,label:e.name,line:e.line+1,href:l}))):l?[{kind:s.name,from:s.from,to:s.to,label:s.name,line:s.line+1,href:l}]:[]})}const xn=()=>{};const vn=new Map;function jn({go:n,query:i}){const h=s(),b=a(),x=r[b],v=t(),j=v.data?.resources,y=oe(o(j,"config",{whileLoading:!0})),w=function(n){const i=s(),a=te(n),r=e.useMemo(()=>{const e=we(a.error);return e?e.diagnostics??[]:null},[a.error]);return e.useEffect(()=>{if(a.error)if(r){const e=ke(r);p("negative",e?i("config.writeRestart",{n:e}):i("ui.writeInvalid",{n:r.filter(e=>"error"===e.level).length}))}else m(a.error,i,i("ui.writeFailed"))},[a.error,r,i]),{...a,diagnostics:r}}(y.refetch),k=e.useMemo(()=>new URLSearchParams(i),[i]),N=e.useMemo(()=>y.data?.sources??[],[y.data]),S=N.find(e=>"main"===e.kind)??null,C=N.find(e=>e.id===k.get("source"))??N[0]??null,D=C?.id??null,P=(e,s)=>n("config",u(i,{tab:"source",source:e,line:null===s?null:String(s)})),O=Number(k.get("line"))||null,T=y.data?.diagnostics??[],_=e.useMemo(()=>{const e=y.data?.diagnostics??[];return{error:e.filter(e=>"error"===e.level).length,warning:e.filter(e=>"warning"===e.level).length}},[y.data]),R=o(j,"config_validate",{whileLoading:!1})&&(j?.config_validate.modes??[]).includes("full"),E=!0===j?.config.writable,M=le(N),H=l().data,A=e.useMemo(()=>Me(H),[H]),F=$e(!!A.globalSettings,c(H),v.data),L=v.data&&un("config",v.data,H,h,b),I=C?Ke(C,E,M(C),A,h,L):null,q=!!C&&!I,[U,W]=e.useState(vn),[$,K]=e.useState(null),V=$??_.error,B=k.has("source")||y.data&&void 0===S?.content?"source":"modules",z=d("validate"===k.get("tab")?u(i,{tab:"source"}):i,F.map(e=>e.id),B),Q=C?{source:C,sources:N,open:P,diagnostics:T,canValidate:R&&("main"===C.kind||"include"===C.kind),canWrite:q,readOnly:I,isComplete:M,editor:w,focusLine:O,generation:y.data?.generation_id??"",focusDiagnostics:"validate"===k.get("tab"),diagnosticsChoice:U.get(C.id)??null,chooseDiagnostics:e=>W(n=>new Map(n).set(C.id,e)),reportErrors:K}:null,G=!0===j?.config.create&&!0===j.config.writable?{sources:N,refetch:y.refetch,open:e=>P(e,null)}:null;return{error:v.error??y.error,reload:()=>{v.refetch(),y.refetch()},loading:y.loading&&!y.data,ready:!!y.data,tabsReady:!!y.data||F.some(e=>"history"===e.id),metadata:y.data?Be(y.data.revision,h):[],redacted:!!y.data?.secrets_redacted,tabs:F.map(e=>({id:e.id,label:"source"===e.id&&V?h("ui.aside",{text:h(e.titleKey),note:f(V,x)}):h(e.titleKey)})),tab:z,setTab:e=>n("config",u(g(i,e,null),{fieLine truncated
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CodeEditor-9GVA7w36.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-C06va4Yw.js","./index-DdIDwpAM.css","./vendor-editor-50h2cCk6.js","./index-DUM-iwa2.js","./daeTokens-BVtuNnWZ.js","./nodes-oXccX15o.js","./AppearanceControls-CEVO9-aR.js","./ItemText-D6SGBgOi.js","./logs-BtAlqVqe.js","./Select-hQ95uOjm.js"])))=>i.map(i=>d[i]);
|
||||
import{r as e,j as n}from"./vendor-react-64fcanlc.js";import{h as i,u as s,as as a,at as r,r as t,t as o,F as l,ar as c,ci as d,w as u,ck as g,a3 as f,J as p,aQ as m,cg as h,cS as b,dP as x,dQ as v,a7 as j,a6 as y,af as w,aq as k,H as N,cR as S,v as C,A as D,aX as P,B as T,aG as O,E as R,bp as _,al as E,ba as M,cL as A,m as F,C as H,c as L,bI as I,dR as q,bP as W,co as $,bQ as U,aD as K,dI as V,a as B,b as z,x as Q,z as J,cN as G,aJ as X,c5 as Y,aN as Z,p as ee,_ as ne,T as ie,dS as se,dT as ae,dU as re}from"./index-C06va4Yw.js";import{a as te,u as oe,x as le,c as ce,J as de,O as ue,B as ge,K as fe,D as pe,p as me,P as he,S as be,L as xe}from"./logs-BtAlqVqe.js";import{T as ve}from"./Tabs-PDr10lJU.js";import{aM as je,a3 as ye,ab as we,aN as ke,z as Ne,aO as Se,aP as Ce,a9 as De,D as Pe,a as Te,aQ as Oe}from"./activity-BoXvjA12.js";import{s as Re,S as _e,R as Ee,g as Me,r as Ae,ak as Fe,al as He,am as Le,an as Ie,P as qe,ao as We}from"./nodes-oXccX15o.js";import{s as $e,c as Ue,r as Ke,a as Ve,b as Be,d as ze,e as Qe,f as Je,g as Ge,h as Xe,v as Ye,i as Ze,j as en,k as nn,l as sn,m as an,n as rn,o as tn,w as on}from"./nav-BvgMebTJ.js";import{u as ln,c as cn}from"./flows-C0jcpIhs.js";import{d as dn}from"./files-Dt8K7QfP.js";import{c as un}from"./limitHint-Cb7NYoro.js";import{D as gn}from"./Table-Cc5T3jJO.js";import{T as fn}from"./TimeCell-DSeESBN3.js";import{N as pn,t as mn}from"./NumberField-C8qnuOCX.js";import{A as hn}from"./AddCircle-6b-rL1eo.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-hQ95uOjm.js";import"./ItemText-D6SGBgOi.js";import"./AppearanceControls-CEVO9-aR.js";import"./useGridSelectionCheckbox-inhSeUkV.js";import"./Virtualizer-9R4wsZhf.js";import"./Checkbox-CsFZSc5N.js";function bn(e,n,s,a="main"){if(!s.daeText)return[];const{blocks:r,tokens:t}=Re(e),o=s.globalSettings;return r.flatMap(s=>{if(s.name===o?.name){const a=r.filter(e=>e.name===o.name).indexOf(s),l=_e(e,s,t);return l.filter(e=>1===l.filter(n=>n.name===e.name).length&&o.fields.some(n=>n.key===e.name)).map(r=>({kind:s.name,from:r.from,to:r.to,label:r.name,line:e.slice(0,r.from).split("\n").length,href:i("config",{tab:"global",source:n,section:String(a),field:r.name})}))}const l=$e[s.name];return"subscription"===s.name?"main"!==a?[]:Ee(e).filter(e=>e.from>s.open&&e.to<=s.close).map(e=>({kind:s.name,from:e.from,to:e.to,label:e.tag,line:e.line,href:i("nodes",{editSubscriptionTag:e.tag})})):"dns"===s.name?s.children.filter(e=>"routing"===e.name).flatMap(e=>e.children.filter(e=>"request"===e.name||"response"===e.name).map(e=>({kind:s.name,from:e.from,to:e.to,label:e.name,line:e.line+1,href:l}))):l?[{kind:s.name,from:s.from,to:s.to,label:s.name,line:s.line+1,href:l}]:[]})}const xn=()=>{};const vn=new Map;function jn({go:n,query:i}){const h=s(),b=a(),x=r[b],v=t(),j=v.data?.resources,y=oe(o(j,"config",{whileLoading:!0})),w=function(n){const i=s(),a=te(n),r=e.useMemo(()=>{const e=we(a.error);return e?e.diagnostics??[]:null},[a.error]);return e.useEffect(()=>{if(a.error)if(r){const e=ke(r);p("negative",e?i("config.writeRestart",{n:e}):i("ui.writeInvalid",{n:r.filter(e=>"error"===e.level).length}))}else m(a.error,i,i("ui.writeFailed"))},[a.error,r,i]),{...a,diagnostics:r}}(y.refetch),k=e.useMemo(()=>new URLSearchParams(i),[i]),N=e.useMemo(()=>y.data?.sources??[],[y.data]),S=N.find(e=>"main"===e.kind)??null,C=N.find(e=>e.id===k.get("source"))??N[0]??null,D=C?.id??null,P=(e,s)=>n("config",u(i,{tab:"source",source:e,line:null===s?null:String(s)})),T=Number(k.get("line"))||null,O=y.data?.diagnostics??[],R=e.useMemo(()=>{const e=y.data?.diagnostics??[];return{error:e.filter(e=>"error"===e.level).length,warning:e.filter(e=>"warning"===e.level).length}},[y.data]),_=o(j,"config_validate",{whileLoading:!1})&&(j?.config_validate.modes??[]).includes("full"),E=!0===j?.config.writable,M=le(N),A=l().data,F=e.useMemo(()=>Me(A),[A]),H=Ue(!!F.globalSettings,c(A),v.data),L=v.data&&un("config",v.data,A,h,b),I=C?Ke(C,E,M(C),F,h,L):null,q=!!C&&!I,[W,$]=e.useState(vn),[U,K]=e.useState(null),V=U??R.error,B=k.has("source")||y.data&&void 0===S?.content?"source":"modules",z=d("validate"===k.get("tab")?u(i,{tab:"source"}):i,H.map(e=>e.id),B),Q=C?{source:C,sources:N,open:P,diagnostics:O,canValidate:_&&("main"===C.kind||"include"===C.kind),canWrite:q,readOnly:I,isComplete:M,editor:w,focusLine:T,generation:y.data?.generation_id??"",focusDiagnostics:"validate"===k.get("tab"),diagnosticsChoice:W.get(C.id)??null,chooseDiagnostics:e=>$(n=>new Map(n).set(C.id,e)),reportErrors:K}:null,J=!0===j?.config.create&&!0===j.config.writable?{sources:N,refetch:y.refetch,open:e=>P(e,null)}:null;return{error:v.error??y.error,reload:()=>{v.refetch(),y.refetch()},loading:y.loading&&!y.data,ready:!!y.data,tabsReady:!!y.data||H.some(e=>"history"===e.id),metadata:y.data?Be(y.data.revision,h):[],redacted:!!y.data?.secrets_redacted,tabs:H.map(e=>({id:e.id,label:"source"===e.id&&V?h("ui.aside",{text:h(e.titleKey),note:f(V,x)}):h(e.titleKey)})),tab:z,setTab:e=>n("config",u(g(i,e,null),{fieLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,j as n}from"./vendor-react-64fcanlc.js";import{i as t,I as o,a as s}from"./ipLookup-CY9MTfz2.js";import{N as l,O as a}from"./NodePath-BtHMV14P.js";import{aW as i,u as r,at as c,as as u,a6 as d,o as p,aH as m,aN as h,c6 as b,C as g,E as f,a3 as w,ae as v,s as x,W as y,c7 as j,T as k,bZ as _,w as C,c8 as S,Z as A,c9 as L,ca as N,a4 as T,a7 as M,r as R,t as P,X as F,cb as O,ac as W,cc as U,an as q,O as D,cd as E,b7 as H,ce as I,b8 as V,cf as B,c0 as Q,cg as J,ch as K,ci as G,V as X,au as Z,cj as z,J as Y,ck as $,aX as ee,A as ne,cl as te,cm as oe,cn as se,bP as le,B as ae,co as ie,bF as re,aD as ce}from"./index-CUHkLMAp.js";import{R as ue,B as de,u as pe,h as me,o as he,g as be,c as ge,S as fe,p as we,L as ve,n as xe,K as ye}from"./logs-C6Kb44nw.js";import{C as je}from"./AppearanceControls-E-VPhjIz.js";import{T as ke}from"./Tabs-DiTlqyjA.js";import{b as _e,D as Ce,U as Se,F as Ae,S as Le,d as Ne,B as Te,L as Me,t as Re,r as Pe,f as Fe,g as Oe,p as We,o as Ue,k as qe,h as De}from"./activity-B3PmJo_X.js";import{S as Ee}from"./SearchSelect-Fy-2ASgN.js";import{D as He}from"./Table-DX856nrS.js";import{T as Ie}from"./TimeCell-N-r54xmV.js";import{Q as Ve,u as Be,R as Qe}from"./useQuickRule-Cd5z6aFL.js";import{u as Je}from"./outbounds-CUiHWeth.js";import{c as Ke,d as Ge,e as Xe}from"./files-Dt8K7QfP.js";import{w as Ze}from"./labels-D8xxfRTQ.js";import{u as ze}from"./flows-DS-lcTPn.js";import{r as Ye}from"./rule-D4-Og0AG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./LinkOut-B2JdPfjI.js";import"./Tag-4SaGY8GT.js";import"./Select-BA0NS1_z.js";import"./ItemText-CnEXu0-f.js";import"./nodes-BYMoo8M1.js";import"./useGridSelectionCheckbox-CTBMGgmQ.js";import"./SearchList-DMvmI1K7.js";import"./Virtualizer-UMC7L0o2.js";import"./Checkbox-8Iqnc6T1.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-D2cMd6zF.js";import"./BackendText-Dtw6qhij.js";const $e=[0,2,3,1,4,5,6,7],en=e.memo(function({records:t,outbounds:o,latency:s,latencyError:l,retryLatency:a,truncated:w,uncounted:v,onSelect:x,loading:y}){const j=r(),k=_e(),_=c[u()],C=e.useCallback(e=>d(e,_),[_]),S=e.useMemo(()=>function(e,n){const t=new Map;let o,s=0,l=-1n;for(const a of e){if(null===a.upload_bytes||null===a.download_bytes){s++;continue}const e={id:a.id,up:Number(a.upload_bytes),down:Number(a.download_bytes),name:a.domain||a.dst||a.id},n=t.get(a.outbound);n?n.push(e):t.set(a.outbound,[e]);const i=BigInt(a.upload_bytes)+BigInt(a.download_bytes);i>l&&(l=i,o={...e,outbound:a.outbound})}return{series:[...t].map(([e,n])=>({outbound:e,points:n})).sort((e,t)=>i(n)(e.outbound??"",t.outbound??"")),unknown:s,heaviest:o,placed:e.length-s}}(t,_),[t,_]),A=e.useMemo(()=>{const e=o.filter(e=>"block"!==e);return S.series.map(n=>{return{id:n.outbound??"",label:p(n.outbound,j),color:(t=n.outbound,"block"===t?k.negative:k.cat[$e[Math.max(0,e.indexOf(t))%$e.length]]),points:n.points.map(e=>({id:e.id,x:e.up,y:e.down,name:e.name,detail:j("conn.chart.point",{download:C(e.down),upload:C(e.up)})}))};var t})},[S,o,k,j,C]),L=S.heaviest?[{label:j("conn.chart.busiest"),icon:n.jsx(m,{}),tint:"c3",value:S.heaviest.name,caption:p(S.heaviest.outbound,j)},{label:j("ui.download"),value:C(S.heaviest.down),icon:n.jsx(Ce,{}),tint:"c1"},{label:j("ui.upload"),value:C(S.heaviest.up),icon:n.jsx(Se,{}),tint:"c4"}]:[];if(y)return n.jsx(h,{panel:!0,shape:b});const N=S.unknown?j("conn.chart.sampleUnknown",{n:t.length,unknown:S.unknown}):j("conn.chart.sample",{n:t.length});return n.jsxs("div",{className:"rp-chart-page",children:[n.jsx(Ae,{facts:L,lead:!0}),n.jsxs(g,{title:j("conn.chart.title"),help:v?{title:j("conn.chart.title"),text:j("ui.trafficUncounted")}:void 0,note:N,children:[w&&n.jsx("p",{className:"rp-note",children:j("conn.truncated")}),S.placed>0&&n.jsxs(n.Fragment,{children:[n.jsx(Le,{label:j("conn.chart.title"),series:A,fmt:C,onSelect:x,regions:{above:j("conn.chart.moreDown"),below:j("conn.chart.moreUp")}}),n.jsx(Ne,{series:A}),n.jsx("p",{className:"rp-note",children:j("conn.chart.hint")})]})]}),s?n.jsx(nn,{latency:s}):l&&n.jsx(g,{title:j("ui.nodeLatency"),children:n.jsx(f,{error:l,onRetry:a})})]})});function nn({latency:e}){const t=r(),o=_e(),s=e=>v(e,t),l=c[u()],a=n=>!e.chains||n?o.cat[0]:o.muted;return n.jsx(g,{title:t("ui.nodeLatency"),note:t("conn.latency.sample",{n:e.samples.length,missing:e.missing}),children:e.samples.length?n.jsxs(n.Fragment,{children:[n.jsx("p",{className:"rp-note",children:t("conn.latency.percentiles",{p50:s(e.p50),p90:s(e.p90)})}),null!==e.weightedP50&&n.jsx("p",{className:"rp-note",children:e.unplaced?t("conn.latency.weightedUnplaced",{p50:s(e.weightedP50),n:e.unplaced}):t("conn.latency.weighted",{p50:s(e.weightedP50)})}),n.jsx(Te,{label:t("ui.nodeLatency"),points:e.samples.map(e=>({id:e.node,nodeName:!0,value:e.value,color:a(e.connections>0),lines:[e.name,s(e.value),...e.connections?[t("conn.chart.sample",{n:e.connections})]:[]]})),fmt:s}),e.chains&&n.jsxs("div",{className:"rp-legend",children:[n.jsx(Me,{swatch:a(!0),laLine truncated
|
||||
import{r as e,j as n}from"./vendor-react-64fcanlc.js";import{i as t,I as o,a as s}from"./ipLookup-CdclczzV.js";import{N as l,O as a}from"./NodePath-DbG_-_A4.js";import{aW as i,u as r,at as c,as as u,a6 as d,o as p,aH as m,aN as h,c7 as b,C as g,E as f,a3 as w,ae as v,s as x,W as y,c8 as j,T as k,b_ as _,w as C,c9 as S,Z as A,ca as L,cb as N,a4 as T,a7 as M,r as R,t as O,X as P,cc as F,ac as W,cd as U,an as q,O as D,ce as E,b8 as H,cf as I,b9 as V,cg as Q,c1 as B,ch as G,ci as J,cj as K,V as X,au as Z,ck as z,J as Y,cl as $,aX as ee,A as ne,cm as te,cn as oe,co as se,bQ as le,B as ae,cp as ie,bG as re,aD as ce}from"./index-C06va4Yw.js";import{R as ue,B as de,u as pe,h as me,o as he,g as be,c as ge,S as fe,p as we,L as ve,n as xe,K as ye}from"./logs-BtAlqVqe.js";import{C as je}from"./AppearanceControls-CEVO9-aR.js";import{T as ke}from"./Tabs-PDr10lJU.js";import{b as _e,D as Ce,U as Se,F as Ae,S as Le,d as Ne,B as Te,L as Me,t as Re,r as Oe,f as Pe,g as Fe,p as We,o as Ue,k as qe,h as De}from"./activity-BoXvjA12.js";import{S as Ee}from"./SearchSelect-q5tbOYXk.js";import{D as He}from"./Table-Cc5T3jJO.js";import{T as Ie}from"./TimeCell-DSeESBN3.js";import{Q as Ve,u as Qe,R as Be}from"./useQuickRule-CCpuINzQ.js";import{u as Ge}from"./outbounds-ynHeqeCa.js";import{c as Je,d as Ke,e as Xe}from"./files-Dt8K7QfP.js";import{w as Ze}from"./labels-D8xxfRTQ.js";import{u as ze}from"./flows-C0jcpIhs.js";import{r as Ye}from"./rule-C_M_c6EN.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./LinkOut-BYZWxkzu.js";import"./Tag-D4suq1U_.js";import"./Select-hQ95uOjm.js";import"./ItemText-D6SGBgOi.js";import"./nodes-oXccX15o.js";import"./useGridSelectionCheckbox-inhSeUkV.js";import"./SearchList-LS4kpJXT.js";import"./Virtualizer-9R4wsZhf.js";import"./Checkbox-CsFZSc5N.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-6b-rL1eo.js";import"./BackendText-DK5RWFKi.js";const $e=[0,2,3,1,4,5,6,7],en=e.memo(function({records:t,outbounds:o,latency:s,latencyError:l,retryLatency:a,truncated:w,uncounted:v,onSelect:x,loading:y}){const j=r(),k=_e(),_=c[u()],C=e.useCallback(e=>d(e,_),[_]),S=e.useMemo(()=>function(e,n){const t=new Map;let o,s=0,l=-1n;for(const a of e){if(null===a.upload_bytes||null===a.download_bytes){s++;continue}const e={id:a.id,up:Number(a.upload_bytes),down:Number(a.download_bytes),name:a.domain||a.dst||a.id},n=t.get(a.outbound);n?n.push(e):t.set(a.outbound,[e]);const i=BigInt(a.upload_bytes)+BigInt(a.download_bytes);i>l&&(l=i,o={...e,outbound:a.outbound})}return{series:[...t].map(([e,n])=>({outbound:e,points:n})).sort((e,t)=>i(n)(e.outbound??"",t.outbound??"")),unknown:s,heaviest:o,placed:e.length-s}}(t,_),[t,_]),A=e.useMemo(()=>{const e=o.filter(e=>"block"!==e);return S.series.map(n=>{return{id:n.outbound??"",label:p(n.outbound,j),color:(t=n.outbound,"block"===t?k.negative:k.cat[$e[Math.max(0,e.indexOf(t))%$e.length]]),points:n.points.map(e=>({id:e.id,x:e.up,y:e.down,name:e.name,detail:j("conn.chart.point",{download:C(e.down),upload:C(e.up)})}))};var t})},[S,o,k,j,C]),L=S.heaviest?[{label:j("conn.chart.busiest"),icon:n.jsx(m,{}),tint:"c3",value:S.heaviest.name,caption:p(S.heaviest.outbound,j)},{label:j("ui.download"),value:C(S.heaviest.down),icon:n.jsx(Ce,{}),tint:"c1"},{label:j("ui.upload"),value:C(S.heaviest.up),icon:n.jsx(Se,{}),tint:"c4"}]:[];if(y)return n.jsx(h,{panel:!0,shape:b});const N=S.unknown?j("conn.chart.sampleUnknown",{n:t.length,unknown:S.unknown}):j("conn.chart.sample",{n:t.length});return n.jsxs("div",{className:"rp-chart-page",children:[n.jsx(Ae,{facts:L,lead:!0}),n.jsxs(g,{title:j("conn.chart.title"),help:v?{title:j("conn.chart.title"),text:j("ui.trafficUncounted")}:void 0,note:N,children:[w&&n.jsx("p",{className:"rp-note",children:j("conn.truncated")}),S.placed>0&&n.jsxs(n.Fragment,{children:[n.jsx(Le,{label:j("conn.chart.title"),series:A,fmt:C,onSelect:x,regions:{above:j("conn.chart.moreDown"),below:j("conn.chart.moreUp")}}),n.jsx(Ne,{series:A}),n.jsx("p",{className:"rp-note",children:j("conn.chart.hint")})]})]}),s?n.jsx(nn,{latency:s}):l&&n.jsx(g,{title:j("ui.nodeLatency"),children:n.jsx(f,{error:l,onRetry:a})})]})});function nn({latency:e}){const t=r(),o=_e(),s=e=>v(e,t),l=c[u()],a=n=>!e.chains||n?o.cat[0]:o.muted;return n.jsx(g,{title:t("ui.nodeLatency"),note:t("conn.latency.sample",{n:e.samples.length,missing:e.missing}),children:e.samples.length?n.jsxs(n.Fragment,{children:[n.jsx("p",{className:"rp-note",children:t("conn.latency.percentiles",{p50:s(e.p50),p90:s(e.p90)})}),null!==e.weightedP50&&n.jsx("p",{className:"rp-note",children:e.unplaced?t("conn.latency.weightedUnplaced",{p50:s(e.weightedP50),n:e.unplaced}):t("conn.latency.weighted",{p50:s(e.weightedP50)})}),n.jsx(Te,{label:t("ui.nodeLatency"),points:e.samples.map(e=>({id:e.node,nodeName:!0,value:e.value,color:a(e.connections>0),lines:[e.name,s(e.value),...e.connections?[t("conn.chart.sample",{n:e.connections})]:[]]})),fmt:s}),e.chains&&n.jsxs("div",{className:"rp-legend",children:[n.jsx(Me,{swatch:a(!0),laLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as c,j as r}from"./vendor-react-64fcanlc.js";import{u as s,dP as o,J as l,I as t}from"./index-CUHkLMAp.js";function a(){const r=s();return c.useCallback(async c=>{const s=await o(c);l(s?"positive":"negative",r(s?"ui.recordCopied":"ui.recordCopyFailed"))},[r])}function e(c){return r.jsxs(t,{...c,children:[r.jsx("path",{fill:"currentColor",d:"m11.75,18h-7.5c-1.24023,0-2.25-1.00977-2.25-2.25v-7.5c0-1.24023,1.00977-2.25,2.25-2.25.41406,0,.75.33594.75.75s-.33594.75-.75.75c-.41309,0-.75.33691-.75.75v7.5c0,.41309.33691.75.75.75h7.5c.41309,0,.75-.33691.75-.75,0-.41406.33594-.75.75-.75s.75.33594.75.75c0,1.24023-1.00977,2.25-2.25,2.25Z"}),r.jsx("path",{fill:"currentColor",d:"m6.75,5c-.41406,0-.75-.33594-.75-.75,0-1.24023,1.00977-2.25,2.25-2.25.41406,0,.75.33594.75.75s-.33594.75-.75.75c-.41309,0-.75.33691-.75.75,0,.41406-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m13,3.5h-2c-.41406,0-.75-.33594-.75-.75s.33594-.75.75-.75h2c.41406,0,.75.33594.75.75s-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m13,14h-2c-.41406,0-.75-.33594-.75-.75s.33594-.75.75-.75h2c.41406,0,.75.33594.75.75s-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m15.75,14c-.41406,0-.75-.33594-.75-.75s.33594-.75.75-.75c.41309,0,.75-.33691.75-.75,0-.41406.33594-.75.75-.75s.75.33594.75.75c0,1.24023-1.00977,2.25-2.25,2.25Z"}),r.jsx("path",{fill:"currentColor",d:"m17.25,5c-.41406,0-.75-.33594-.75-.75,0-.41309-.33691-.75-.75-.75-.41406,0-.75-.33594-.75-.75s.33594-.75.75-.75c1.24023,0,2.25,1.00977,2.25,2.25,0,.41406-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m17.25,9.75c-.41406,0-.75-.33594-.75-.75v-2c0-.41406.33594-.75.75-.75s.75.33594.75.75v2c0,.41406-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m6.75,9.75c-.41406,0-.75-.33594-.75-.75v-2c0-.41406.33594-.75.75-.75s.75.33594.75.75v2c0,.41406-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m8.25,14c-1.24023,0-2.25-1.00977-2.25-2.25,0-.41406.33594-.75.75-.75s.75.33594.75.75c0,.41309.33691.75.75.75.41406,0,.75.33594.75.75s-.33594.75-.75.75Z"})]})}export{e as C,a as u};
|
||||
import{r as c,j as r}from"./vendor-react-64fcanlc.js";import{u as s,dR as o,J as l,I as t}from"./index-C06va4Yw.js";function a(){const r=s();return c.useCallback(async c=>{const s=await o(c);l(s?"positive":"negative",r(s?"ui.recordCopied":"ui.recordCopyFailed"))},[r])}function e(c){return r.jsxs(t,{...c,children:[r.jsx("path",{fill:"currentColor",d:"m11.75,18h-7.5c-1.24023,0-2.25-1.00977-2.25-2.25v-7.5c0-1.24023,1.00977-2.25,2.25-2.25.41406,0,.75.33594.75.75s-.33594.75-.75.75c-.41309,0-.75.33691-.75.75v7.5c0,.41309.33691.75.75.75h7.5c.41309,0,.75-.33691.75-.75,0-.41406.33594-.75.75-.75s.75.33594.75.75c0,1.24023-1.00977,2.25-2.25,2.25Z"}),r.jsx("path",{fill:"currentColor",d:"m6.75,5c-.41406,0-.75-.33594-.75-.75,0-1.24023,1.00977-2.25,2.25-2.25.41406,0,.75.33594.75.75s-.33594.75-.75.75c-.41309,0-.75.33691-.75.75,0,.41406-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m13,3.5h-2c-.41406,0-.75-.33594-.75-.75s.33594-.75.75-.75h2c.41406,0,.75.33594.75.75s-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m13,14h-2c-.41406,0-.75-.33594-.75-.75s.33594-.75.75-.75h2c.41406,0,.75.33594.75.75s-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m15.75,14c-.41406,0-.75-.33594-.75-.75s.33594-.75.75-.75c.41309,0,.75-.33691.75-.75,0-.41406.33594-.75.75-.75s.75.33594.75.75c0,1.24023-1.00977,2.25-2.25,2.25Z"}),r.jsx("path",{fill:"currentColor",d:"m17.25,5c-.41406,0-.75-.33594-.75-.75,0-.41309-.33691-.75-.75-.75-.41406,0-.75-.33594-.75-.75s.33594-.75.75-.75c1.24023,0,2.25,1.00977,2.25,2.25,0,.41406-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m17.25,9.75c-.41406,0-.75-.33594-.75-.75v-2c0-.41406.33594-.75.75-.75s.75.33594.75.75v2c0,.41406-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m6.75,9.75c-.41406,0-.75-.33594-.75-.75v-2c0-.41406.33594-.75.75-.75s.75.33594.75.75v2c0,.41406-.33594.75-.75.75Z"}),r.jsx("path",{fill:"currentColor",d:"m8.25,14c-1.24023,0-2.25-1.00977-2.25-2.25,0-.41406.33594-.75.75-.75s.75.33594.75.75c0,.41309.33691.75.75.75.41406,0,.75.33594.75.75s-.33594.75-.75.75Z"})]})}export{e as C,a as u};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{an as e,b3 as l,Z as r,u as s,T as a}from"./index-CUHkLMAp.js";import{j as n}from"./vendor-react-64fcanlc.js";import{L as o}from"./logs-C6Kb44nw.js";const t={userspace_tcp:"flow.userspaceTcp",userspace_udp:"flow.userspaceUdp",kernel_direct:"flow.kernelDirect",kernel_block:"flow.kernelBlock",dns_intercept:"flow.dnsIntercept",kernel_bypass:"flow.kernelBypass"},c={full:"flow.full",partial:"flow.partialVisibility",none:"ui.none"};function p(s,a,n){const o=Object.entries(s.coverage).filter(([,e])=>"full"!==e),p=e(s.dropped_records),i=p?a("flow.dropped",{n:p}):null;return o.length||i?{summary:o.length?a("flow.coverageSummary",{n:o.length}):null,detail:l(n,o.map(([e,l])=>a("ui.valuePair",{label:r(t,e,a),value:r(c,l,a)}))),dropped:i}:null}function i({view:e}){const l=s();return n.jsxs("div",{className:"rp-cluster",role:"group","aria-label":l("flow.coverage"),children:[e.summary&&n.jsx(a,{text:e.detail,children:n.jsx(o,{small:!0,tone:"warn",children:e.summary})}),e.dropped&&n.jsx(o,{small:!0,tone:"warn",children:e.dropped})]})}export{i as C,p as c};
|
||||
import{an as e,b3 as l,Z as r,u as s,T as a}from"./index-C06va4Yw.js";import{j as n}from"./vendor-react-64fcanlc.js";import{L as o}from"./logs-BtAlqVqe.js";const t={userspace_tcp:"flow.userspaceTcp",userspace_udp:"flow.userspaceUdp",kernel_direct:"flow.kernelDirect",kernel_block:"flow.kernelBlock",dns_intercept:"flow.dnsIntercept",kernel_bypass:"flow.kernelBypass"},c={full:"flow.full",partial:"flow.partialVisibility",none:"ui.none"};function p(s,a,n){const o=Object.entries(s.coverage).filter(([,e])=>"full"!==e),p=e(s.dropped_records),i=p?a("flow.dropped",{n:p}):null;return o.length||i?{summary:o.length?a("flow.coverageSummary",{n:o.length}):null,detail:l(n,o.map(([e,l])=>a("ui.valuePair",{label:r(t,e,a),value:r(c,l,a)}))),dropped:i}:null}function i({view:e}){const l=s();return n.jsxs("div",{className:"rp-cluster",role:"group","aria-label":l("flow.coverage"),children:[e.summary&&n.jsx(a,{text:e.detail,children:n.jsx(o,{small:!0,tone:"warn",children:e.summary})}),e.dropped&&n.jsx(o,{small:!0,tone:"warn",children:e.dropped})]})}export{i as C,p as c};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as c}from"./vendor-react-64fcanlc.js";import{I as r}from"./index-CUHkLMAp.js";function l(l){return c.jsxs(r,{...l,children:[c.jsx("path",{fill:"currentColor",d:"M8.249 15.021c-.4 0-.733-.317-.748-.72l-.25-6.5c-.017-.414.307-.763.72-.779H8c.4 0 .733.317.748.72l.25 6.5c.017.414-.307.763-.72.778zM11.751 15.021h-.03c-.413-.016-.737-.365-.72-.779l.25-6.5c.015-.403.348-.72.748-.72h.03c.413.016.737.365.72.779l-.25 6.5c-.015.403-.348.72-.748.72"}),c.jsx("path",{fill:"currentColor",d:"M17 4h-3.5v-.75C13.5 2.01 12.49 1 11.25 1h-2.5C7.51 1 6.5 2.01 6.5 3.25V4H3c-.414 0-.75.336-.75.75s.336.75.75.75h.52l.422 10.342C3.99 17.052 4.98 18 6.19 18h7.62c1.211 0 2.2-.948 2.248-2.158L16.48 5.5H17c.414 0 .75-.336.75-.75S17.414 4 17 4m-9-.75c0-.413.337-.75.75-.75h2.5c.413 0 .75.337.75.75V4H8zm6.56 12.531c-.017.404-.346.719-.75.719H6.19c-.404 0-.733-.315-.75-.719L5.02 5.5h9.96z"})]})}export{l as D};
|
||||
import{j as c}from"./vendor-react-64fcanlc.js";import{I as r}from"./index-C06va4Yw.js";function l(l){return c.jsxs(r,{...l,children:[c.jsx("path",{fill:"currentColor",d:"M8.249 15.021c-.4 0-.733-.317-.748-.72l-.25-6.5c-.017-.414.307-.763.72-.779H8c.4 0 .733.317.748.72l.25 6.5c.017.414-.307.763-.72.778zM11.751 15.021h-.03c-.413-.016-.737-.365-.72-.779l.25-6.5c.015-.403.348-.72.748-.72h.03c.413.016.737.365.72.779l-.25 6.5c-.015.403-.348.72-.748.72"}),c.jsx("path",{fill:"currentColor",d:"M17 4h-3.5v-.75C13.5 2.01 12.49 1 11.25 1h-2.5C7.51 1 6.5 2.01 6.5 3.25V4H3c-.414 0-.75.336-.75.75s.336.75.75.75h.52l.422 10.342C3.99 17.052 4.98 18 6.19 18h7.62c1.211 0 2.2-.948 2.248-2.158L16.48 5.5H17c.414 0 .75-.336.75-.75S17.414 4 17 4m-9-.75c0-.413.337-.75.75-.75h2.5c.413 0 .75.337.75.75V4H8zm6.56 12.531c-.017.404-.346.719-.75.719H6.19c-.404 0-.733-.315-.75-.719L5.02 5.5h9.96z"})]})}export{l as D};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{cq as a,W as t,c0 as n,Z as r,ae as l,a7 as i,a3 as d,Y as c,an as o,A as u,u as m,af as h,r as p,cf as x,H as g,ch as y,t as f,w as b,h as j,cj as v,at as w,as as _,cr as N,cs as k,b7 as S,ce as C,J as T,cl as q,aX as M,ct as R,b$ as L,aF as A,al as F,E,cu as D,bl as P,cv as W,C as O,c as B,S as U,ak as H,T as K,bO as I,cw as $,cn as Q,bP as J,cx as V,B as X,cy as Y,aD as z,bF as G,co as Z}from"./index-CUHkLMAp.js";import{D as ee}from"./Delete-D-jw0Qv4.js";import{s as se,l as ae,b as te,m as ne,C as re,F as le,B as ie,L as de,W as ce,n as oe,q as ue,D as me}from"./activity-B3PmJo_X.js";import{i as he,I as pe,a as xe}from"./ipLookup-CY9MTfz2.js";import{u as ge,s as ye,k as fe,t as be,v as je,i as ve,S as we,j as _e,p as Ne,B as ke,K as Se,L as Ce,A as Te}from"./logs-C6Kb44nw.js";import{T as qe}from"./Tabs-DiTlqyjA.js";import{D as Me}from"./Table-DX856nrS.js";import{T as Re}from"./TimeCell-N-r54xmV.js";import{c as Le,d as Ae,e as Fe}from"./files-Dt8K7QfP.js";import{a as Ee}from"./rule-D4-Og0AG.js";import{d as De,u as Pe}from"./nodes-BYMoo8M1.js";import{u as We,R as Oe,Q as Be}from"./useQuickRule-Cd5z6aFL.js";/* empty css */import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-CnEXu0-f.js";import"./AppearanceControls-E-VPhjIz.js";import"./LinkOut-B2JdPfjI.js";import"./Select-BA0NS1_z.js";import"./useGridSelectionCheckbox-CTBMGgmQ.js";import"./Virtualizer-UMC7L0o2.js";import"./Checkbox-8Iqnc6T1.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-D2cMd6zF.js";import"./SearchSelect-Fy-2ASgN.js";import"./SearchList-DMvmI1K7.js";import"./BackendText-Dtw6qhij.js";import"./flows-DS-lcTPn.js";function Ue(e,s,a,n,r){return{domain:e,dip:null,sip:(r&&t(r))??null,outbound:null,matched:null,dns:{type:s,answers:Ee(a),upstream:n,query:{name:e,type:s}}}}const He=(e,s,a)=>({domain:null,dip:e,sip:null,outbound:null,matched:null,dns:{type:a,answers:[e],upstream:null,query:{name:s,type:a}}}),Ke={forced:"dns.route.forced","dns.routing":"dns.route.rules",default:"dns.route.default"};function Ie(e,s,a){return{fields:[[a("ui.state"),e.status],[a("ui.upstream"),e.upstream??"—"],[a("dns.routeSource"),r(Ke,e.route.source,a)],[a("dns.routeRule"),e.route.rule??"—"],[a("ui.elapsed"),l(e.elapsed_ms,a)]],answers:(e.answers??[]).map(e=>{const t=Ee([e])[0],r=t?n(t):void 0;return{data:e.data,name:(l=e.name,i=s,l.replace(/\.$/,"").toLowerCase()===i.replace(/\.$/,"").toLowerCase()?null:e.name),type:e.type,ttl:a("dns.ttl",{ttl:e.ttl}),lookup:r&&he(r)?r:null};var l,i}),cacheText:a(e.cached?"dns.hit":"dns.miss"),cacheTone:e.cached?void 0:"warn"}}function $e(e,s,a){return e?a instanceof u&&503===a.status?"unavailable":s?"ready":a?"error":"loading":"unlisted"}const Qe=[{id:"full",label:"rule.kind.domain"},{id:"suffix",label:"rule.kind.domainSuffix"},{id:"keyword",label:"rule.kind.domainKeyword"},{id:"regex",label:"dns.matchRegex"}],Je=e=>e.trim().toLowerCase().replace(/\.$/,"");function Ve(e,s){if(!s.trim())return()=>!0;if("regex"===e){const e=function(e){try{return new RegExp(e,"iu")}catch{return null}}(s);return e&&(s=>e.test(Je(s)))}if("keyword"===e){const e=s.trim().toLowerCase();return s=>Je(s).includes(e)}const a=Je(s),t="suffix"===e&&a.startsWith("."),n=t?a.slice(1):a;return n?"full"===e?e=>Je(e)===n:e=>{const s=Je(e);return s.endsWith("."+n)||!t&&s===n}:null}function Xe({go:s,query:t}){const n=m(),r=h(),l=p(),i=e.useMemo(()=>new URLSearchParams(t),[t]),[d,c]=e.useState(i.get("domain")??""),[o,u]=e.useState(i.get("type")??"A"),[w,_]=e.useState(!1);x(i.get("domain"),e=>c(e??"")),x(i.get("type"),e=>u(e??"A"));const[N,k]=e.useState(null),{busy:S,error:C,run:T}=g({rethrow:!0}),q=l.data?.resources,M=e.useMemo(()=>function(e,s,t,n,r,l){const i=s?.dns_query.record_types??[],d="all"===t?i.length>0:i.includes(t);return{types:i,choices:[...i.map(e=>({id:e,label:e})),{id:"all",label:l("dns.allTypes")}],disabled:r||!s?.dns_query.available||!d||!n.trim(),reason:!s||r?null:s.dns_query.available?d?null:l("all"===t?"dns.noTypes":"dns.typeUnsupported"):l("dns.queryUnavailable"),showCache:!!s?.dns_cache.available,cards:e?.results.map(s=>({id:s.type,title:`${e.domain} ${s.type}`,...Ie(s,e.domain,l),seed:Ue(e.domain,s.type,s.answers??[],s.upstream,null),answerSeeds:(s.answers??[]).map(a=>Ee([a]).length?{address:a.data,seed:He(a.data,e.domain,s.type)}:null)}))??[],tabs:a(s).map(e=>({id:e.id,label:l(e.titleKey)}))}}(N,q,o,d,!!S,n),[N,q,o,d,S,n]),R=M.tabs.map(e=>e.id),L=i.has("domain")||i.has("device"),A=R.includes("log")?L?"log":"stats":R.includes("query")?"query":R[0]??"query",F=y(t,R,A),E=f(q,"config",{whileLoading:!1}),D=ge("query"===F&&E&&f(q,"dns_query",{whileLoading:!1})),P=e.useMemo(()=>E?function(e,s){const a=[...new Set((e??[]).flatMap(e=>e.content?De(e.content).map(Pe):[]))];return a.length?[{id:"",label:s("dns.upstreamAuto")},...a.map(e=>({id:e,label:e}))]:[]}(D.data?.sources,n):[],[E,D.data,n]),[W,O]=e.useState(""),B=P.some(e=>e.id===W)?W:Line truncated
|
||||
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{cr as a,W as t,c1 as n,Z as r,ae as l,a7 as i,a3 as d,Y as c,an as o,A as u,u as m,af as p,r as h,cg as x,H as g,ci as y,t as f,w as b,h as j,ck as v,at as w,as as _,cs as N,ct as k,b8 as S,cf as C,J as T,cm as q,aX as R,cu as M,c0 as L,aF as A,al as F,E,cv as D,bm as P,cw as W,C as O,c as B,S as U,ak as H,T as K,bP as I,cx as $,co as Q,bQ as z,cy as G,B as J,cz as V,aD as X,bG as Y,cp as Z}from"./index-C06va4Yw.js";import{D as ee}from"./Delete-DqJAS65M.js";import{s as se,l as ae,b as te,m as ne,C as re,F as le,B as ie,L as de,W as ce,n as oe,q as ue,D as me}from"./activity-BoXvjA12.js";import{i as pe,I as he,a as xe}from"./ipLookup-CdclczzV.js";import{u as ge,s as ye,k as fe,t as be,v as je,i as ve,S as we,j as _e,p as Ne,B as ke,K as Se,L as Ce,A as Te}from"./logs-BtAlqVqe.js";import{T as qe}from"./Tabs-PDr10lJU.js";import{D as Re}from"./Table-Cc5T3jJO.js";import{T as Me}from"./TimeCell-DSeESBN3.js";import{c as Le,d as Ae,e as Fe}from"./files-Dt8K7QfP.js";import{a as Ee}from"./rule-C_M_c6EN.js";import{d as De,u as Pe}from"./nodes-oXccX15o.js";import{u as We,R as Oe,Q as Be}from"./useQuickRule-CCpuINzQ.js";/* empty css */import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-D6SGBgOi.js";import"./AppearanceControls-CEVO9-aR.js";import"./LinkOut-BYZWxkzu.js";import"./Select-hQ95uOjm.js";import"./useGridSelectionCheckbox-inhSeUkV.js";import"./Virtualizer-9R4wsZhf.js";import"./Checkbox-CsFZSc5N.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-6b-rL1eo.js";import"./SearchSelect-q5tbOYXk.js";import"./SearchList-LS4kpJXT.js";import"./BackendText-DK5RWFKi.js";import"./flows-C0jcpIhs.js";function Ue(e,s,a,n,r){return{domain:e,dip:null,sip:(r&&t(r))??null,outbound:null,matched:null,dns:{type:s,answers:Ee(a),upstream:n,query:{name:e,type:s}}}}const He=(e,s,a)=>({domain:null,dip:e,sip:null,outbound:null,matched:null,dns:{type:a,answers:[e],upstream:null,query:{name:s,type:a}}}),Ke={forced:"dns.route.forced","dns.routing":"dns.route.rules",default:"dns.route.default"};function Ie(e,s,a){return{fields:[[a("ui.state"),e.status],[a("ui.upstream"),e.upstream??"—"],[a("dns.routeSource"),r(Ke,e.route.source,a)],[a("dns.routeRule"),e.route.rule??"—"],[a("ui.elapsed"),l(e.elapsed_ms,a)]],answers:(e.answers??[]).map(e=>{const t=Ee([e])[0],r=t?n(t):void 0;return{data:e.data,name:(l=e.name,i=s,l.replace(/\.$/,"").toLowerCase()===i.replace(/\.$/,"").toLowerCase()?null:e.name),type:e.type,ttl:a("dns.ttl",{ttl:e.ttl}),lookup:r&&pe(r)?r:null};var l,i}),cacheText:a(e.cached?"dns.hit":"dns.miss"),cacheTone:e.cached?void 0:"warn"}}function $e(e,s,a){return e?a instanceof u&&503===a.status?"unavailable":s?"ready":a?"error":"loading":"unlisted"}const Qe=[{id:"full",label:"rule.kind.domain"},{id:"suffix",label:"rule.kind.domainSuffix"},{id:"keyword",label:"rule.kind.domainKeyword"},{id:"regex",label:"dns.matchRegex"}],ze=e=>e.trim().toLowerCase().replace(/\.$/,"");function Ge(e,s){if(!s.trim())return()=>!0;if("regex"===e){const e=function(e){try{return new RegExp(e,"iu")}catch{return null}}(s);return e&&(s=>e.test(ze(s)))}if("keyword"===e){const e=s.trim().toLowerCase();return s=>ze(s).includes(e)}const a=ze(s),t="suffix"===e&&a.startsWith("."),n=t?a.slice(1):a;return n?"full"===e?e=>ze(e)===n:e=>{const s=ze(e);return s.endsWith("."+n)||!t&&s===n}:null}function Je({go:s,query:t}){const n=m(),r=p(),l=h(),i=e.useMemo(()=>new URLSearchParams(t),[t]),[d,c]=e.useState(i.get("domain")??""),[o,u]=e.useState(i.get("type")??"A"),[w,_]=e.useState(!1);x(i.get("domain"),e=>c(e??"")),x(i.get("type"),e=>u(e??"A"));const[N,k]=e.useState(null),{busy:S,error:C,run:T}=g({rethrow:!0}),q=l.data?.resources,R=e.useMemo(()=>function(e,s,t,n,r,l){const i=s?.dns_query.record_types??[],d="all"===t?i.length>0:i.includes(t);return{types:i,choices:[...i.map(e=>({id:e,label:e})),{id:"all",label:l("dns.allTypes")}],disabled:r||!s?.dns_query.available||!d||!n.trim(),reason:!s||r?null:s.dns_query.available?d?null:l("all"===t?"dns.noTypes":"dns.typeUnsupported"):l("dns.queryUnavailable"),showCache:!!s?.dns_cache.available,cards:e?.results.map(s=>({id:s.type,title:`${e.domain} ${s.type}`,...Ie(s,e.domain,l),seed:Ue(e.domain,s.type,s.answers??[],s.upstream,null),answerSeeds:(s.answers??[]).map(a=>Ee([a]).length?{address:a.data,seed:He(a.data,e.domain,s.type)}:null)}))??[],tabs:a(s).map(e=>({id:e.id,label:l(e.titleKey)}))}}(N,q,o,d,!!S,n),[N,q,o,d,S,n]),M=R.tabs.map(e=>e.id),L=i.has("domain")||i.has("device"),A=M.includes("log")?L?"log":"stats":M.includes("query")?"query":M[0]??"query",F=y(t,M,A),E=f(q,"config",{whileLoading:!1}),D=ge("query"===F&&E&&f(q,"dns_query",{whileLoading:!1})),P=e.useMemo(()=>E?function(e,s){const a=[...new Set((e??[]).flatMap(e=>e.content?De(e.content).map(Pe):[]))];return a.length?[{id:"",label:s("dns.upstreamAuto")},...a.map(e=>({id:e,label:e}))]:[]}(D.data?.sources,n):[],[E,D.data,n]),[W,O]=e.useState(""),B=P.some(e=>e.id===W)?W:Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as n,j as t}from"./vendor-react-64fcanlc.js";import{u as e,g as r}from"./index-CUHkLMAp.js";import{a_ as o,b7 as a,b2 as i,b4 as l}from"./activity-B3PmJo_X.js";import{w as u,c,a as s}from"./array-C0VuvQyb.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-BYMoo8M1.js";import"./logs-C6Kb44nw.js";import"./Select-BA0NS1_z.js";import"./ItemText-CnEXu0-f.js";import"./AppearanceControls-E-VPhjIz.js";const f=Math.abs,h=Math.atan2,y=Math.cos,p=Math.max,d=Math.min,x=Math.sin,g=Math.sqrt,v=1e-12,m=Math.PI,M=m/2,A=2*m;function j(n){return n>=1?M:n<=-1?-M:Math.asin(n)}function w(n){return n.innerRadius}function b(n){return n.outerRadius}function P(n){return n.startAngle}function T(n){return n.endAngle}function R(n){return n&&n.padAngle}function L(n,t,e,r,o,a,i){var l=n-e,u=t-r,c=(i?a:-a)/g(l*l+u*u),s=c*u,f=-c*l,h=n+s,y=t+f,d=e+s,x=r+f,v=(h+d)/2,m=(y+x)/2,M=d-h,A=x-y,j=M*M+A*A,w=o-a,b=h*x-d*y,P=(A<0?-1:1)*g(p(0,w*w*j-b*b)),T=(b*A-M*P)/j,R=(-b*M-A*P)/j,L=(b*A+M*P)/j,I=(-b*M+A*P)/j,$=T-v,B=R-m,N=L-v,S=I-m;return $*$+B*B>N*N+S*S&&(T=L,R=I),{cx:T,cy:R,x01:-s,y01:-f,x11:T*(o/w-1),y11:R*(o/w-1)}}function I(){var n=w,t=b,e=c(0),r=null,o=P,a=T,i=R,l=null,s=u(p);function p(){var u,c,p,w=+n.apply(this,arguments),b=+t.apply(this,arguments),P=o.apply(this,arguments)-M,T=a.apply(this,arguments)-M,R=f(T-P),I=T>P;if(l||(l=u=s()),b<w&&(c=b,b=w,w=c),b>v)if(R>A-v)l.moveTo(b*y(P),b*x(P)),l.arc(0,0,b,P,T,!I),w>v&&(l.moveTo(w*y(T),w*x(T)),l.arc(0,0,w,T,P,I));else{var $,B,N=P,S=T,k=P,D=T,E=R,F=R,K=i.apply(this,arguments)/2,_=K>v&&(r?+r.apply(this,arguments):g(w*w+b*b)),q=d(f(b-w)/2,+e.apply(this,arguments)),C=q,H=q;if(_>v){var U=j(_/w*x(K)),V=j(_/b*x(K));(E-=2*U)>v?(k+=U*=I?1:-1,D-=U):(E=0,k=D=(P+T)/2),(F-=2*V)>v?(N+=V*=I?1:-1,S-=V):(F=0,N=S=(P+T)/2)}var z=b*y(N),G=b*x(N),J=w*y(D),O=w*x(D);if(q>v){var Q,W=b*y(S),X=b*x(S),Y=w*y(k),Z=w*x(k);if(R<m)if(Q=function(n,t,e,r,o,a,i,l){var u=e-n,c=r-t,s=i-o,f=l-a,h=f*u-s*c;if(!(h*h<v))return[n+(h=(s*(t-a)-f*(n-o))/h)*u,t+h*c]}(z,G,Y,Z,W,X,J,O)){var nn=z-Q[0],tn=G-Q[1],en=W-Q[0],rn=X-Q[1],on=1/x(((p=(nn*en+tn*rn)/(g(nn*nn+tn*tn)*g(en*en+rn*rn)))>1?0:p<-1?m:Math.acos(p))/2),an=g(Q[0]*Q[0]+Q[1]*Q[1]);C=d(q,(w-an)/(on-1)),H=d(q,(b-an)/(on+1))}else C=H=0}F>v?H>v?($=L(Y,Z,z,G,b,H,I),B=L(W,X,J,O,b,H,I),l.moveTo($.cx+$.x01,$.cy+$.y01),H<q?l.arc($.cx,$.cy,H,h($.y01,$.x01),h(B.y01,B.x01),!I):(l.arc($.cx,$.cy,H,h($.y01,$.x01),h($.y11,$.x11),!I),l.arc(0,0,b,h($.cy+$.y11,$.cx+$.x11),h(B.cy+B.y11,B.cx+B.x11),!I),l.arc(B.cx,B.cy,H,h(B.y11,B.x11),h(B.y01,B.x01),!I))):(l.moveTo(z,G),l.arc(0,0,b,N,S,!I)):l.moveTo(z,G),w>v&&E>v?C>v?($=L(J,O,W,X,w,-C,I),B=L(z,G,Y,Z,w,-C,I),l.lineTo($.cx+$.x01,$.cy+$.y01),C<q?l.arc($.cx,$.cy,C,h($.y01,$.x01),h(B.y01,B.x01),!I):(l.arc($.cx,$.cy,C,h($.y01,$.x01),h($.y11,$.x11),!I),l.arc(0,0,w,h($.cy+$.y11,$.cx+$.x11),h(B.cy+B.y11,B.cx+B.x11),I),l.arc(B.cx,B.cy,C,h(B.y11,B.x11),h(B.y01,B.x01),!I))):l.arc(0,0,w,D,k,I):l.lineTo(J,O)}else l.moveTo(0,0);if(l.closePath(),u)return l=null,u+""||null}return p.centroid=function(){var e=(+n.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-m/2;return[y(r)*e,x(r)*e]},p.innerRadius=function(t){return arguments.length?(n="function"==typeof t?t:c(+t),p):n},p.outerRadius=function(n){return arguments.length?(t="function"==typeof n?n:c(+n),p):t},p.cornerRadius=function(n){return arguments.length?(e="function"==typeof n?n:c(+n),p):e},p.padRadius=function(n){return arguments.length?(r=null==n?null:"function"==typeof n?n:c(+n),p):r},p.startAngle=function(n){return arguments.length?(o="function"==typeof n?n:c(+n),p):o},p.endAngle=function(n){return arguments.length?(a="function"==typeof n?n:c(+n),p):a},p.padAngle=function(n){return arguments.length?(i="function"==typeof n?n:c(+n),p):i},p.context=function(n){return arguments.length?(l=null==n?null:n,p):l},p}function $(n,t){return t<n?-1:t>n?1:t>=n?0:NaN}function B(n){return n}function N({label:u,rows:f}){const h=e(),[y,p]=r(Math.round,120),{tip:d,showAt:x,hide:g}=o(),[v,m]=n.useState(null),M=f.filter(n=>null!==n.value&&n.value>0),j=p?.width??0,w=p?.height??0,b=a(M.map(n=>n.value)),P=function(){var n=B,t=$,e=null,r=c(0),o=c(A),a=c(0);function i(i){var l,u,c,f,h,y=(i=s(i)).length,p=0,d=new Array(y),x=new Array(y),g=+r.apply(this,arguments),v=Math.min(A,Math.max(-A,o.apply(this,arguments)-g)),m=Math.min(Math.abs(v)/y,a.apply(this,arguments)),M=m*(v<0?-1:1);for(l=0;l<y;++l)(h=x[d[l]=l]=+n(i[l],l,i))>0&&(p+=h);for(null!=t?d.sort(function(n,e){return t(x[n],x[e])}):null!=e&&d.sort(function(n,t){return e(i[n],i[t])}),l=0,c=p?(v-y*M)/p:0;l<y;++l,g=f)u=d[l],f=g+((h=x[u])>0?h*c:0)+M,x[u]={data:i[u],index:l,value:h,startAngle:g,endAngle:f,padAngle:m};return x}return i.value=function(t){return arguments.length?(n="function"==typeof t?t:c(+t),i):n},i.sortValues=function(n){return arguments.length?(t=n,e=null,i):t},i.sort=function(n){return arguments.length?(e=n,t=null,i):e},i.startAngle=function(n){return arguments.length?(r="function"==typeof n?n:c(+nLine truncated
|
||||
import{r as n,j as t}from"./vendor-react-64fcanlc.js";import{u as e,g as r}from"./index-C06va4Yw.js";import{aZ as o,b6 as a,b1 as i,b3 as l}from"./activity-BoXvjA12.js";import{w as u,c,a as s}from"./array-C0VuvQyb.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-oXccX15o.js";import"./logs-BtAlqVqe.js";import"./Select-hQ95uOjm.js";import"./ItemText-D6SGBgOi.js";import"./AppearanceControls-CEVO9-aR.js";const f=Math.abs,h=Math.atan2,y=Math.cos,p=Math.max,d=Math.min,x=Math.sin,g=Math.sqrt,v=1e-12,m=Math.PI,M=m/2,A=2*m;function j(n){return n>=1?M:n<=-1?-M:Math.asin(n)}function b(n){return n.innerRadius}function w(n){return n.outerRadius}function P(n){return n.startAngle}function T(n){return n.endAngle}function R(n){return n&&n.padAngle}function L(n,t,e,r,o,a,i){var l=n-e,u=t-r,c=(i?a:-a)/g(l*l+u*u),s=c*u,f=-c*l,h=n+s,y=t+f,d=e+s,x=r+f,v=(h+d)/2,m=(y+x)/2,M=d-h,A=x-y,j=M*M+A*A,b=o-a,w=h*x-d*y,P=(A<0?-1:1)*g(p(0,b*b*j-w*w)),T=(w*A-M*P)/j,R=(-w*M-A*P)/j,L=(w*A+M*P)/j,I=(-w*M+A*P)/j,$=T-v,B=R-m,N=L-v,S=I-m;return $*$+B*B>N*N+S*S&&(T=L,R=I),{cx:T,cy:R,x01:-s,y01:-f,x11:T*(o/b-1),y11:R*(o/b-1)}}function I(){var n=b,t=w,e=c(0),r=null,o=P,a=T,i=R,l=null,s=u(p);function p(){var u,c,p,b=+n.apply(this,arguments),w=+t.apply(this,arguments),P=o.apply(this,arguments)-M,T=a.apply(this,arguments)-M,R=f(T-P),I=T>P;if(l||(l=u=s()),w<b&&(c=w,w=b,b=c),w>v)if(R>A-v)l.moveTo(w*y(P),w*x(P)),l.arc(0,0,w,P,T,!I),b>v&&(l.moveTo(b*y(T),b*x(T)),l.arc(0,0,b,T,P,I));else{var $,B,N=P,S=T,k=P,D=T,E=R,F=R,K=i.apply(this,arguments)/2,q=K>v&&(r?+r.apply(this,arguments):g(b*b+w*w)),C=d(f(w-b)/2,+e.apply(this,arguments)),H=C,V=C;if(q>v){var W=j(q/b*x(K)),Z=j(q/w*x(K));(E-=2*W)>v?(k+=W*=I?1:-1,D-=W):(E=0,k=D=(P+T)/2),(F-=2*Z)>v?(N+=Z*=I?1:-1,S-=Z):(F=0,N=S=(P+T)/2)}var _=w*y(N),z=w*x(N),G=b*y(D),J=b*x(D);if(C>v){var O,Q=w*y(S),U=w*x(S),X=b*y(k),Y=b*x(k);if(R<m)if(O=function(n,t,e,r,o,a,i,l){var u=e-n,c=r-t,s=i-o,f=l-a,h=f*u-s*c;if(!(h*h<v))return[n+(h=(s*(t-a)-f*(n-o))/h)*u,t+h*c]}(_,z,X,Y,Q,U,G,J)){var nn=_-O[0],tn=z-O[1],en=Q-O[0],rn=U-O[1],on=1/x(((p=(nn*en+tn*rn)/(g(nn*nn+tn*tn)*g(en*en+rn*rn)))>1?0:p<-1?m:Math.acos(p))/2),an=g(O[0]*O[0]+O[1]*O[1]);H=d(C,(b-an)/(on-1)),V=d(C,(w-an)/(on+1))}else H=V=0}F>v?V>v?($=L(X,Y,_,z,w,V,I),B=L(Q,U,G,J,w,V,I),l.moveTo($.cx+$.x01,$.cy+$.y01),V<C?l.arc($.cx,$.cy,V,h($.y01,$.x01),h(B.y01,B.x01),!I):(l.arc($.cx,$.cy,V,h($.y01,$.x01),h($.y11,$.x11),!I),l.arc(0,0,w,h($.cy+$.y11,$.cx+$.x11),h(B.cy+B.y11,B.cx+B.x11),!I),l.arc(B.cx,B.cy,V,h(B.y11,B.x11),h(B.y01,B.x01),!I))):(l.moveTo(_,z),l.arc(0,0,w,N,S,!I)):l.moveTo(_,z),b>v&&E>v?H>v?($=L(G,J,Q,U,b,-H,I),B=L(_,z,X,Y,b,-H,I),l.lineTo($.cx+$.x01,$.cy+$.y01),H<C?l.arc($.cx,$.cy,H,h($.y01,$.x01),h(B.y01,B.x01),!I):(l.arc($.cx,$.cy,H,h($.y01,$.x01),h($.y11,$.x11),!I),l.arc(0,0,b,h($.cy+$.y11,$.cx+$.x11),h(B.cy+B.y11,B.cx+B.x11),I),l.arc(B.cx,B.cy,H,h(B.y11,B.x11),h(B.y01,B.x01),!I))):l.arc(0,0,b,D,k,I):l.lineTo(G,J)}else l.moveTo(0,0);if(l.closePath(),u)return l=null,u+""||null}return p.centroid=function(){var e=(+n.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-m/2;return[y(r)*e,x(r)*e]},p.innerRadius=function(t){return arguments.length?(n="function"==typeof t?t:c(+t),p):n},p.outerRadius=function(n){return arguments.length?(t="function"==typeof n?n:c(+n),p):t},p.cornerRadius=function(n){return arguments.length?(e="function"==typeof n?n:c(+n),p):e},p.padRadius=function(n){return arguments.length?(r=null==n?null:"function"==typeof n?n:c(+n),p):r},p.startAngle=function(n){return arguments.length?(o="function"==typeof n?n:c(+n),p):o},p.endAngle=function(n){return arguments.length?(a="function"==typeof n?n:c(+n),p):a},p.padAngle=function(n){return arguments.length?(i="function"==typeof n?n:c(+n),p):i},p.context=function(n){return arguments.length?(l=null==n?null:n,p):l},p}function $(n,t){return t<n?-1:t>n?1:t>=n?0:NaN}function B(n){return n}function N({label:u,rows:f}){const h=e(),[y,p]=r(Math.round,120),{tip:d,showAt:x,hide:g}=o(),[v,m]=n.useState(null),M=f.filter(n=>null!==n.value&&n.value>0),j=p?.width??0,b=p?.height??0,w=a(M.map(n=>n.value)),P=function(){var n=B,t=$,e=null,r=c(0),o=c(A),a=c(0);function i(i){var l,u,c,f,h,y=(i=s(i)).length,p=0,d=new Array(y),x=new Array(y),g=+r.apply(this,arguments),v=Math.min(A,Math.max(-A,o.apply(this,arguments)-g)),m=Math.min(Math.abs(v)/y,a.apply(this,arguments)),M=m*(v<0?-1:1);for(l=0;l<y;++l)(h=x[d[l]=l]=+n(i[l],l,i))>0&&(p+=h);for(null!=t?d.sort(function(n,e){return t(x[n],x[e])}):null!=e&&d.sort(function(n,t){return e(i[n],i[t])}),l=0,c=p?(v-y*M)/p:0;l<y;++l,g=f)u=d[l],f=g+((h=x[u])>0?h*c:0)+M,x[u]={data:i[u],index:l,value:h,startAngle:g,endAngle:f,padAngle:m};return x}return i.value=function(t){return arguments.length?(n="function"==typeof t?t:c(+t),i):n},i.sortValues=function(n){return arguments.length?(t=n,e=null,i):t},i.sort=function(n){return arguments.length?(e=n,t=null,i):e},i.startAngle=function(n){return arguments.length?(r="function"==typeof n?n:c(+nLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,$ as t,a as r,j as n}from"./vendor-react-64fcanlc.js";import{e_ as o,gF as i,eP as a,eL as s,d6 as l,gG as d,gH as c,gI as p,eR as u,eM as g,eN as f,eO as m,e$ as h,fa as y,gJ as D,gK as v,fb as b,eW as w,gL as x,gm as T,ga as k,by as E,d3 as P,cX as K,fo as O,I as S,aJ as C,cB as I,fh as j,aF as A,bB as R,B as M,g as B,u as L,R as F,cx as $,r as z,dm as N,bT as V,cQ as H,dG as X,b9 as Y,m as U,gM as q,P as J,gN as G,J as _}from"./index-CUHkLMAp.js";import{b8 as W,b9 as Q,ba as Z,bb as ee,bc as te,bd as re,be as ne,bf as oe,bg as ie,bh as ae,bi as se,bj as le,bk as de,bl as ce,bm as pe,bn as ue,bo as ge,bp as fe,bq as me,br as he,bs as ye,bt as De,bu as ve,bv as be,bw as we,bx as xe,by as Te,bz as ke,bA as Ee,bB as Pe,bC as Ke,bD as Oe,bE as Se,bF as Ce,bG as Ie,bH as je,bI as Ae}from"./activity-B3PmJo_X.js";import{$ as Re,a as Me}from"./GridList-CQPDUasC.js";import{m as Be}from"./Select-BA0NS1_z.js";import{D as Le}from"./Delete-D-jw0Qv4.js";import{S as Fe,c as $e,$ as ze}from"./logs-C6Kb44nw.js";import{C as Ne}from"./AppearanceControls-E-VPhjIz.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-BYMoo8M1.js";import"./ItemText-CnEXu0-f.js";import"./useGridSelectionCheckbox-CTBMGgmQ.js";var Ve=function(e){return e[e.none=0]="none",e[e.cancel=0]="cancel",e[e.move=1]="move",e[e.copy=2]="copy",e[e.link=4]="link",e[e.all=7]="all",e}({});const He={...Ve,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},Xe=qe(He);Xe[7]="all";const Ye={none:"cancel",link:"link",copy:"copy",move:"move"},Ue=qe(Ye);function qe(e){let t={};for(let r in e)t[e[r]]=r;return t}const Je=new Set(["text/plain","text/uri-list","text/html"]),Ge="application/vnd.react-aria.items+json",_e="application/octet-stream",We=new WeakMap,Qe=Symbol();function Ze(e){let t=new Set;for(let r of e)for(let e of Object.keys(r))t.add(e);return t}function et(e){return e||(e="virtual"),"pointer"===e&&(e="virtual"),"virtual"===e&&"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(pointer: coarse)").matches&&(e="touch"),e}function tt(){return et(o())}function rt(){return et(i())}class nt{constructor(e){this.types=new Set;let t=!1;for(let r of e.items)r.type!==Ge&&("file"===r.kind&&(t=!0),r.type?this.types.add(r.type):this.types.add(_e));this.includesUnknownTypes=!t&&e.types.includes("Files")}has(e){if(Array.isArray(e))return e.some(e=>this.has(e));if(this.includesUnknownTypes||e===Qe&&this.types.has(_e)||"*/*"===e)return!0;if("string"==typeof e){if(e.endsWith("/*")){for(let t of this.types)if(t.startsWith(e.slice(0,-2)))return!0;return!1}return this.types.has(e)}return!1}}function ot(e){if(!e)throw new Error("No file provided");return{kind:"file",type:e.type||_e,name:e.name,getText:()=>{return"function"==typeof(t=e).text?t.text():new Promise((e,r)=>{let n=new FileReader;n.onload=()=>{e(n.result)},n.onerror=r,n.readAsText(t)});var t},getFile:()=>Promise.resolve(e)}}function it(e){return{kind:"directory",name:e.name,getEntries:()=>async function*(e){let t,r=e.createReader();do{t=await new Promise((e,t)=>{r.readEntries(e,t)});for(let e of t)if(e.isFile){let t=await at(e);yield ot(t)}else e.isDirectory&&(yield it(e))}while(t.length>0)}(e)}}function at(e){return new Promise((t,r)=>e.file(t,r))}let st,lt={draggingKeys:new Set};function dt(e){lt.dropCollectionRef=e}function ct(){lt={draggingKeys:new Set}}function pt(e){let{draggingCollectionRef:t,dropCollectionRef:r}=lt;return null!=t?.current&&t.current===(e?.current||r?.current)}function ut(e){st=e}let gt=Ve.none;function ft(e){gt=e}let mt=new Map,ht=new Map,yt=null,Dt=new Set;function vt(e){return mt.set(e.element,e),yt?.updateValidDropTargets(),()=>{mt.delete(e.element),yt?.updateValidDropTargets()}}function bt(){let[t,r]=e.useState(yt);return e.useEffect(()=>{let e=()=>r(yt);return Dt.add(e),()=>{Dt.delete(e)}},[]),t}function wt(){return!!yt}const xt=["pointerdown","pointermove","pointerenter","pointerleave","pointerover","pointerout","pointerup","mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","touchstart","touchmove","touchend","focusin","focusout"],Tt=["pointerup","mouseup","touchend"],kt={keyboard:"dragStartedKeyboard",touch:"dragStartedTouch",virtual:"dragStartedVirtual"};class Et{constructor(e,t){this.validDropTargets=[],this.currentDropTarget=null,this.currentDropItem=null,this.dropOperation=null,this.mutationObserver=null,this.restoreAriaHidden=null,this.isVirtualClick=!1,this.dragTarget=e,this.stringFormatter=t,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.cancelEvent=this.cancelEvent.bind(this),this.initialFocused=!1}setup(){document.addEventListener("keydown",this.onKeyDown,!0),document.addEventListener("keyup",this.onKeyUp,!0),window.addEventListener("focus",this.onFocus,!0),window.addEventListener("blur",this.onBlur,!0)Line truncated
|
||||
import{r as e,$ as t,a as r,j as n}from"./vendor-react-64fcanlc.js";import{f0 as o,gG as i,eR as a,eN as s,d8 as l,gH as d,gI as c,gJ as p,eT as u,eO as g,eP as f,eQ as m,f1 as h,fc as y,gK as D,gL as v,fd as b,eY as w,gM as x,go as T,gc as k,bz as E,d5 as P,cZ as K,fq as O,I as S,aJ as C,cC as I,fj as j,aF as A,bC as R,B as M,g as B,u as L,R as F,cy as $,r as z,dp as N,bU as V,cS as H,dI as Y,ba as X,m as U,gN as q,P as J,gO as G,J as W}from"./index-C06va4Yw.js";import{b7 as _,b8 as Z,b9 as Q,ba as ee,bb as te,bc as re,bd as ne,be as oe,bf as ie,bg as ae,bh as se,bi as le,bj as de,bk as ce,bl as pe,bm as ue,bn as ge,bo as fe,bp as me,bq as he,br as ye,bs as De,bt as ve,bu as be,bv as we,bw as xe,bx as Te,by as ke,bz as Ee,bA as Pe,bB as Ke,bC as Oe,bD as Se,bE as Ce,bF as Ie,bG as je,bH as Ae}from"./activity-BoXvjA12.js";import{$ as Re,a as Me}from"./GridList-Dgo5IXUg.js";import{m as Be}from"./Select-hQ95uOjm.js";import{D as Le}from"./Delete-DqJAS65M.js";import{S as Fe,c as $e,$ as ze}from"./logs-BtAlqVqe.js";import{C as Ne}from"./AppearanceControls-CEVO9-aR.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-oXccX15o.js";import"./ItemText-D6SGBgOi.js";import"./useGridSelectionCheckbox-inhSeUkV.js";var Ve=function(e){return e[e.none=0]="none",e[e.cancel=0]="cancel",e[e.move=1]="move",e[e.copy=2]="copy",e[e.link=4]="link",e[e.all=7]="all",e}({});const He={...Ve,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},Ye=qe(He);Ye[7]="all";const Xe={none:"cancel",link:"link",copy:"copy",move:"move"},Ue=qe(Xe);function qe(e){let t={};for(let r in e)t[e[r]]=r;return t}const Je=new Set(["text/plain","text/uri-list","text/html"]),Ge="application/vnd.react-aria.items+json",We="application/octet-stream",_e=new WeakMap,Ze=Symbol();function Qe(e){let t=new Set;for(let r of e)for(let e of Object.keys(r))t.add(e);return t}function et(e){return e||(e="virtual"),"pointer"===e&&(e="virtual"),"virtual"===e&&"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(pointer: coarse)").matches&&(e="touch"),e}function tt(){return et(o())}function rt(){return et(i())}class nt{constructor(e){this.types=new Set;let t=!1;for(let r of e.items)r.type!==Ge&&("file"===r.kind&&(t=!0),r.type?this.types.add(r.type):this.types.add(We));this.includesUnknownTypes=!t&&e.types.includes("Files")}has(e){if(Array.isArray(e))return e.some(e=>this.has(e));if(this.includesUnknownTypes||e===Ze&&this.types.has(We)||"*/*"===e)return!0;if("string"==typeof e){if(e.endsWith("/*")){for(let t of this.types)if(t.startsWith(e.slice(0,-2)))return!0;return!1}return this.types.has(e)}return!1}}function ot(e){if(!e)throw new Error("No file provided");return{kind:"file",type:e.type||We,name:e.name,getText:()=>{return"function"==typeof(t=e).text?t.text():new Promise((e,r)=>{let n=new FileReader;n.onload=()=>{e(n.result)},n.onerror=r,n.readAsText(t)});var t},getFile:()=>Promise.resolve(e)}}function it(e){return{kind:"directory",name:e.name,getEntries:()=>async function*(e){let t,r=e.createReader();do{t=await new Promise((e,t)=>{r.readEntries(e,t)});for(let e of t)if(e.isFile){let t=await at(e);yield ot(t)}else e.isDirectory&&(yield it(e))}while(t.length>0)}(e)}}function at(e){return new Promise((t,r)=>e.file(t,r))}let st,lt={draggingKeys:new Set};function dt(e){lt.dropCollectionRef=e}function ct(){lt={draggingKeys:new Set}}function pt(e){let{draggingCollectionRef:t,dropCollectionRef:r}=lt;return null!=t?.current&&t.current===(e?.current||r?.current)}function ut(e){st=e}let gt=Ve.none;function ft(e){gt=e}let mt=new Map,ht=new Map,yt=null,Dt=new Set;function vt(e){return mt.set(e.element,e),yt?.updateValidDropTargets(),()=>{mt.delete(e.element),yt?.updateValidDropTargets()}}function bt(){let[t,r]=e.useState(yt);return e.useEffect(()=>{let e=()=>r(yt);return Dt.add(e),()=>{Dt.delete(e)}},[]),t}function wt(){return!!yt}const xt=["pointerdown","pointermove","pointerenter","pointerleave","pointerover","pointerout","pointerup","mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","touchstart","touchmove","touchend","focusin","focusout"],Tt=["pointerup","mouseup","touchend"],kt={keyboard:"dragStartedKeyboard",touch:"dragStartedTouch",virtual:"dragStartedVirtual"};class Et{constructor(e,t){this.validDropTargets=[],this.currentDropTarget=null,this.currentDropItem=null,this.dropOperation=null,this.mutationObserver=null,this.restoreAriaHidden=null,this.isVirtualClick=!1,this.dragTarget=e,this.stringFormatter=t,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.cancelEvent=this.cancelEvent.bind(this),this.initialFocused=!1}setup(){document.addEventListener("keydown",this.onKeyDown,!0),document.addEventListener("keyup",this.onKeyUp,!0),window.addEventListener("focus",this.onFocus,!0),window.addEventListener("blur",this.onBlur,!0)Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{Z as s,a8 as n,aa as r,a7 as a,h as i,af as o,u as l,at as d,as as c,r as m,cf as u,ah as p,ai as v,dT as h,dU as j,T as f,aD as x,B as b,c as g,cn as w,E as k}from"./index-CUHkLMAp.js";import{e as y,Q as T,K as C,p as N,L as _}from"./logs-C6Kb44nw.js";import{D as S}from"./Table-DX856nrS.js";import{d as W,e as H}from"./files-Dt8K7QfP.js";import{j as R,D}from"./activity-B3PmJo_X.js";import{u as K,C as O}from"./Copy-CO66tox2.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BA0NS1_z.js";import"./ItemText-CnEXu0-f.js";import"./AppearanceControls-E-VPhjIz.js";import"./nodes-BYMoo8M1.js";import"./useGridSelectionCheckbox-CTBMGgmQ.js";import"./Virtualizer-UMC7L0o2.js";import"./Checkbox-8Iqnc6T1.js";const M={buffer_overflow:["event.gap.overflow","event.gapHelp.overflow"],evicted:["event.gap.evicted","event.gapHelp.evicted"]};function P(e,t){const s="flow.gap"===e.event&&Object.hasOwn(M,e.data.reason)?M[e.data.reason]:void 0;return s&&{title:t(s[0]),text:t(s[1])}}function q(e,t,s){const n=e=>e?[{id:"flow",label:t("event.viewFlow"),href:i("flows",{tab:"records",id:e})}]:[];switch(e.event){case"flow.updated":return n(e.data.resource_id);case"flow.gap":return[...n(e.data.resource_id),...s?.runtime_settings.available?[{id:"recording",label:t("ui.recordingSettings"),href:R}]:[]];case"generation.changed":return s?.config.available?[{id:"config",label:t("event.viewConfig"),href:i("config")}]:[];default:return[]}}const F=new WeakMap;function J(e,t,i,o,l,d,c,m,u=!1,p=()=>!1,v){const h="without-runtime"===t||m.includes(t)?t:"all",j=e.filter(e=>"all"===h||("without-runtime"===h?"runtime.updated"!==e.event:e.event===h)).slice(0,l);return{kind:h,rows:j.map(e=>function(e,t,i,o,l){const d=F.get(e);if(d&&d.locale===t&&d.resources===l)return d.row;const c=o?{key:"event.lostHistory"}:r(e,i),m={id:y(e),timestamp:a(e.data.observed_at,t),iso:e.data.observed_at,kind:e.event,kindText:s(n,e.event,i),summary:i(c.key,c.params),help:P(e,i),links:q(e,i,l),event:e};return F.set(e,{locale:t,resources:l,row:m}),m}(e,d,c,p(e),v)),kinds:[{id:"without-runtime",label:c("event.withoutRuntime")},{id:"all",label:c("event.allKinds")},...m.map(e=>({id:e,label:s(n,e,c)}))],status:u&&!1!==o?{tone:"err",text:c("event.disconnected")}:{tone:i?"ok":null===o?"muted":"warn",text:c(!1===o?"event.unavailable":i?"event.connected":null===o?"ui.loading":"event.reconnecting")},limitText:c("event.limit",{n:l}),shown:j}}function L(){const t=o(),s=l(),n=d[c()],r=m(),a=r.data?.resources,i=a?.events.kinds,[f,x]=e.useState("without-runtime"),b="all"!==f&&"runtime.updated"!==f&&i?.includes(f),g=T("without-runtime"!==f&&!b),w=e.useMemo(()=>J(g.events,f,g.connected,g.available,j,n,s,i??[],!!g.error,h,a),[g.events,f,g.connected,g.available,g.error,n,s,i,a]);return u(w.kind,x),{...w,setKind:x,cursor:g.cursor,error:g.error,retry:()=>{p().then(()=>v(t))},loading:!g.error&&!g.connected&&!1!==g.available&&!g.events.length,export:()=>{return W(H("doona-events","json"),(e=w.shown,JSON.stringify(e,null,2)+"\n"),"application/json");var e}}}function U(){const s=l(),n=L(),r=K(),a=e.useMemo(()=>[{id:"t",label:s("ui.time"),minWidth:212,grow:0,drop:1,render:e=>t.jsx(f,{className:"rp-code",text:e.iso,children:e.timestamp})},{id:"k",label:s("event.kind"),minWidth:224,drop:2,render:e=>t.jsx(f,{text:e.kind,children:e.kindText})},{id:"m",label:s("event.summary"),minWidth:176,isRowHeader:!0,render:e=>t.jsx(x,{fill:!0,help:e.help,children:t.jsx(f,{children:e.summary})})},{id:"actions",actions:!0,label:s("ui.actions"),hideLabel:!0,minWidth:64,grow:0,render:e=>t.jsx(b,{small:!0,quiet:!0,icon:!0,label:s("ui.copyRecord"),onPress:()=>{r((e=>JSON.stringify(e,null,2))(e.event))},children:t.jsx(O,{})})}],[s,r]),i=e.useCallback(e=>t.jsxs(t.Fragment,{children:[t.jsx(C,{inline:!0,items:[[s("ui.time"),e.timestamp],[s("event.kind"),e.kindText],[s("event.summary"),e.summary]]}),e.links.length>0&&t.jsx("div",{className:"rp-cluster",children:e.links.map(e=>t.jsx(g,{appearance:"button",href:e.href,children:e.label},e.id))})]}),[s]);return t.jsxs("div",{className:"rp-page",children:[t.jsxs(w,{page:!0,children:[t.jsx(N,{label:s("event.kind"),side:!0,value:n.kind,onChange:n.setKind,items:n.kinds}),t.jsx(_,{small:!0,tone:n.status.tone,children:n.status.text}),n.cursor&&t.jsx(f,{text:n.cursor,children:t.jsx("span",{className:"rp-label",children:s("event.cursor")})}),t.jsx("span",{className:"rp-label",children:n.limitText}),t.jsx("span",{className:"rp-grow"}),t.jsxs(b,{isDisabled:!n.rows.length,onPress:n.export,children:[t.jsx(D,{}),s("event.export")]})]}),n.error&&t.jsx(k,{error:n.error,onRetry:n.retry}),t.jsx(S,{label:s("nav.events"),stream:!0,flow:!0,loading:n.loading,rows:n.rows,empty:s("event.empty"),cols:a,detail:i})]})}export{U as Events};
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{Z as s,a8 as n,aa as r,a7 as a,h as i,af as o,u as l,at as d,as as c,r as m,cg as u,ah as p,ai as v,dV as h,dW as j,T as x,aD as f,B as g,c as b,co as w,E as k}from"./index-C06va4Yw.js";import{e as y,Q as T,K as C,p as N,L as W}from"./logs-BtAlqVqe.js";import{D as _}from"./Table-Cc5T3jJO.js";import{d as S,e as H}from"./files-Dt8K7QfP.js";import{j as R,D}from"./activity-BoXvjA12.js";import{u as K,C as O}from"./Copy-Dw2ag2LB.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-hQ95uOjm.js";import"./ItemText-D6SGBgOi.js";import"./AppearanceControls-CEVO9-aR.js";import"./nodes-oXccX15o.js";import"./useGridSelectionCheckbox-inhSeUkV.js";import"./Virtualizer-9R4wsZhf.js";import"./Checkbox-CsFZSc5N.js";const M={buffer_overflow:["event.gap.overflow","event.gapHelp.overflow"],evicted:["event.gap.evicted","event.gapHelp.evicted"]};function V(e,t){const s="flow.gap"===e.event&&Object.hasOwn(M,e.data.reason)?M[e.data.reason]:void 0;return s&&{title:t(s[0]),text:t(s[1])}}function F(e,t,s){const n=e=>e?[{id:"flow",label:t("event.viewFlow"),href:i("flows",{tab:"records",id:e})}]:[];switch(e.event){case"flow.updated":return n(e.data.resource_id);case"flow.gap":return[...n(e.data.resource_id),...s?.runtime_settings.available?[{id:"recording",label:t("ui.recordingSettings"),href:R}]:[]];case"generation.changed":return s?.config.available?[{id:"config",label:t("event.viewConfig"),href:i("config")}]:[];default:return[]}}const J=new WeakMap;function L(e,t,i,o,l,d,c,m,u=!1,p=()=>!1,v){const h="without-runtime"===t||m.includes(t)?t:"all",j=e.filter(e=>"all"===h||("without-runtime"===h?"runtime.updated"!==e.event:e.event===h)).slice(0,l);return{kind:h,rows:j.map(e=>function(e,t,i,o,l){const d=J.get(e);if(d&&d.locale===t&&d.resources===l)return d.row;const c=o?{key:"event.lostHistory"}:r(e,i),m={id:y(e),timestamp:a(e.data.observed_at,t),iso:e.data.observed_at,kind:e.event,kindText:s(n,e.event,i),summary:i(c.key,c.params),help:V(e,i),links:F(e,i,l),event:e};return J.set(e,{locale:t,resources:l,row:m}),m}(e,d,c,p(e),v)),kinds:[{id:"without-runtime",label:c("event.withoutRuntime")},{id:"all",label:c("event.allKinds")},...m.map(e=>({id:e,label:s(n,e,c)}))],status:u&&!1!==o?{tone:"err",text:c("event.disconnected")}:{tone:i?"ok":null===o?"muted":"warn",text:c(!1===o?"event.unavailable":i?"event.connected":null===o?"ui.loading":"event.reconnecting")},limitText:c("event.limit",{n:l}),shown:j}}function P(){const t=o(),s=l(),n=d[c()],r=m(),a=r.data?.resources,i=a?.events.kinds,[x,f]=e.useState("without-runtime"),g="all"!==x&&"runtime.updated"!==x&&i?.includes(x),b=T("without-runtime"!==x&&!g),w=e.useMemo(()=>L(b.events,x,b.connected,b.available,j,n,s,i??[],!!b.error,h,a),[b.events,x,b.connected,b.available,b.error,n,s,i,a]);return u(w.kind,f),{...w,setKind:f,cursor:b.cursor,error:b.error,retry:()=>{p().then(()=>v(t))},loading:!b.error&&!b.connected&&!1!==b.available&&!b.events.length,export:()=>{return S(H("doona-events","json"),(e=w.shown,JSON.stringify(e,null,2)+"\n"),"application/json");var e}}}function q(){const s=l(),n=P(),r=K(),a=e.useMemo(()=>[{id:"t",label:s("ui.time"),minWidth:212,grow:0,drop:1,render:e=>t.jsx(x,{className:"rp-code",text:e.iso,children:e.timestamp})},{id:"k",label:s("event.kind"),minWidth:224,drop:2,render:e=>t.jsx(x,{text:e.kind,children:e.kindText})},{id:"m",label:s("event.summary"),minWidth:176,isRowHeader:!0,render:e=>t.jsx(f,{fill:!0,help:e.help,children:t.jsx(x,{children:e.summary})})},{id:"actions",actions:!0,label:s("ui.actions"),hideLabel:!0,minWidth:64,grow:0,render:e=>t.jsx(g,{small:!0,quiet:!0,icon:!0,label:s("ui.copyRecord"),onPress:()=>{r((e=>JSON.stringify(e,null,2))(e.event))},children:t.jsx(O,{})})}],[s,r]),i=e.useCallback(e=>t.jsxs(t.Fragment,{children:[t.jsx(C,{inline:!0,items:[[s("ui.time"),e.timestamp],[s("event.kind"),e.kindText],[s("event.summary"),e.summary]]}),e.links.length>0&&t.jsx("div",{className:"rp-cluster",children:e.links.map(e=>t.jsx(b,{appearance:"button",href:e.href,children:e.label},e.id))})]}),[s]);return t.jsxs("div",{className:"rp-page",children:[t.jsxs(w,{page:!0,children:[t.jsx(N,{label:s("event.kind"),side:!0,value:n.kind,onChange:n.setKind,items:n.kinds}),t.jsx(W,{small:!0,tone:n.status.tone,children:n.status.text}),n.cursor&&t.jsx(x,{text:n.cursor,children:t.jsx("span",{className:"rp-label",children:s("event.cursor")})}),t.jsx("span",{className:"rp-label",children:n.limitText}),t.jsx("span",{className:"rp-grow"}),t.jsxs(g,{isDisabled:!n.rows.length,onPress:n.export,children:[t.jsx(D,{}),s("event.export")]})]}),n.error&&t.jsx(k,{error:n.error,onRetry:n.retry}),t.jsx(_,{label:s("nav.events"),stream:!0,flow:!0,loading:n.loading,rows:n.rows,empty:s("event.empty"),cols:a,detail:i})]})}export{q as Events};
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as a}from"./vendor-react-64fcanlc.js";import{u as s,as as t,cO as l,at as o,dJ as i,ba as n,B as r}from"./index-C06va4Yw.js";import{S as c}from"./SearchSelect-q5tbOYXk.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-hQ95uOjm.js";import"./ItemText-D6SGBgOi.js";import"./SearchList-LS4kpJXT.js";import"./Virtualizer-9R4wsZhf.js";function m({name:n,value:r,automaticFlag:m,onChange:d}){const f=s(),g=t(),p=e.useMemo(()=>l(o[g]),[g]),j=i(n),u=p.find(e=>e.flag===m),h=u?f("flags.detected",{region:u.label}):f("flags.automatic");return a.jsx("div",{className:"rp-list",children:a.jsx(c,{label:f("flags.region"),description:f(j?"flags.embedded":"flags.help"),isDisabled:j,searchLabel:f("flags.search"),value:j?"automatic":r,onChange:d,sections:[{id:"flags",items:[{id:"automatic",label:h,flag:m},{id:"none",label:f("flags.none"),flag:null},...p]}]})})}function d({name:e,onClose:t,...l}){const o=s();return a.jsxs(n,{narrow:!0,title:o("flags.edit"),isOpen:!0,onOpenChange:e=>{e||t()},footer:()=>a.jsx(r,{onPress:t,children:o("ui.close")}),children:[a.jsx("p",{className:"rp-note",children:e}),a.jsx(m,{name:e,...l})]})}export{m as FlagField,d as FlagPicker};
|
||||
@@ -1 +0,0 @@
|
||||
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{u as a,as as t,cN as l,at as o,dH as i,b9 as n,B as r}from"./index-CUHkLMAp.js";import{S as c}from"./SearchSelect-Fy-2ASgN.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BA0NS1_z.js";import"./ItemText-CnEXu0-f.js";import"./SearchList-DMvmI1K7.js";import"./Virtualizer-UMC7L0o2.js";function m({name:n,value:r,automaticFlag:m,onChange:d}){const f=a(),g=t(),p=e.useMemo(()=>l(o[g]),[g]),j=i(n),u=p.find(e=>e.flag===m),h=u?f("flags.detected",{region:u.label}):f("flags.automatic");return s.jsx("div",{className:"rp-list",children:s.jsx(c,{label:f("flags.region"),description:f(j?"flags.embedded":"flags.help"),isDisabled:j,searchLabel:f("flags.search"),value:j?"automatic":r,onChange:d,sections:[{id:"flags",items:[{id:"automatic",label:h,flag:m},{id:"none",label:f("flags.none"),flag:null},...p]}]})})}function d({name:e,onClose:t,...l}){const o=a();return s.jsxs(n,{narrow:!0,title:o("flags.edit"),isOpen:!0,onOpenChange:e=>{e||t()},footer:()=>s.jsx(r,{onPress:t,children:o("ui.close")}),children:[s.jsx("p",{className:"rp-note",children:e}),s.jsx(m,{name:e,...l})]})}export{m as FlagField,d as FlagPicker};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{N as n,O as a}from"./NodePath-BtHMV14P.js";import{l as o,q as s,B as r,c as l,g as i,K as d,R as u,S as c,p}from"./logs-C6Kb44nw.js";import{ac as m,W as f,a9 as g,Q as w,O as h,cp as b,ch as j,cj as x,w as v,c9 as y,Z as k,cb as _,cc as M,at as N,a7 as S,h as L,b3 as C,o as T,ae as P,a3 as R,u as F,as as O,j as H,B as q,N as E,bb as W,r as $,t as D,b7 as I,ce as A,b8 as B,cg as U,S as V,al as K,aN as Q,E as z,T as G,cn as J,aK as Z,c as X,bF as Y,C as ee}from"./index-CUHkLMAp.js";import{h as te,f as ne,i as ae,o as oe,j as se,r as re}from"./activity-B3PmJo_X.js";import{w as le}from"./labels-D8xxfRTQ.js";import{c as ie,C as de}from"./Coverage-BJRxyviT.js";import{T as ue}from"./Tabs-DiTlqyjA.js";import{s as ce,D as pe}from"./Table-DX856nrS.js";import{T as me}from"./TimeCell-N-r54xmV.js";import{a as fe,u as ge,b as we}from"./flows-DS-lcTPn.js";import{u as he}from"./outbounds-CUiHWeth.js";import{u as be,Q as je,R as xe}from"./useQuickRule-Cd5z6aFL.js";import{$ as ve}from"./GridList-CQPDUasC.js";import{$ as ye,a as ke}from"./Virtualizer-UMC7L0o2.js";import{C as _e}from"./CardView-N7n2PJ-s.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Tag-4SaGY8GT.js";import"./Select-BA0NS1_z.js";import"./ItemText-CnEXu0-f.js";import"./AppearanceControls-E-VPhjIz.js";import"./nodes-BYMoo8M1.js";import"./useGridSelectionCheckbox-CTBMGgmQ.js";import"./Checkbox-8Iqnc6T1.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-D2cMd6zF.js";import"./SearchSelect-Fy-2ASgN.js";import"./SearchList-DMvmI1K7.js";import"./BackendText-Dtw6qhij.js";import"./rule-D4-Og0AG.js";const Me=["client","rule","outbound","node"];function Ne(e,t){if(e.rule_id)return null!==e.rule_generation_id&&e.rule_generation_id===t?e.rule_id:e.rule_id+"\0"+e.rule_expression}function Se(e,t,n,a){switch(t){case"client":{const t=f(e.input?.src??void 0);return{label:t??"unknown",unknown:!t}}case"rule":return e.rule_expression?{label:e.rule_expression,unknown:!1,key:Ne(e,a)}:{label:"unknown",unknown:!0};case"outbound":return e.outbound?{label:e.outbound,unknown:!1}:{label:"unknown",unknown:!0};case"node":{if(m(e.outbound))return null;const t=e.chain.at(-1)??null;return t?{label:n.get(t)??t,unknown:!1,key:t}:{label:"unknown",unknown:!0}}}}const Le=(e,t)=>ne(e,t.unknown?"":t.key??t.label),Ce=e=>te(e,Me)?.kind,Te=new Map;function Pe(e,t,n){const a=Ce(t);return a?e.filter(e=>{const o=Se(e,a,Te,n?.generation_id);return null!==o&&Le(a,o)===t}):[]}function Re(e,t,n,a){const o=te(e,Me);if(!o||""===o.value)return a(null);const{kind:s,value:r}=o;return"rule"===s?r.includes("\0")?r.slice(r.indexOf("\0")+1):t.find(e=>e.rule_id===r)?.expression??r:"node"===s?n.get(r)??r:"client"===s?r:a(r)}function Fe(e,t,n,a,o="rule"){const s=(e=>new Map(e.map(e=>[e.id,e.name])))(n),r=new Map(t.map(e=>[e.id,e])),l=new Map(t.map(e=>[e.name,e])),i=new Map(n.map(e=>[e.id,e])),d=new Map,u=new Map,c=new Map,p=new Map,f=(e,t)=>{const n=e+">"+t;let a=p.get(n);return a||p.set(n,a={source:e,target:t,count:0}),a},b=(e,t,n=!1)=>{const a=Le("node",{key:e,label:t,unknown:n});let o=c.get(a);if(!o){const s=n?void 0:i.get(e),r=s&&w(s);c.set(a,o={id:a,label:t,count:0,unknown:n||void 0,latency:h(r),unavailable:"unavailable"===r?.state})}return o},j=(e,t=!1)=>{const n=Le("outbound",{label:e,unknown:t});let a=u.get(n);if(a)return a;const o=t?void 0:l.get(e),d=t?{groups:[],member:null}:g(e,o?.selection.tcp_member_id?"tcp":"udp",l,r,i),c=d.groups.map(e=>({name:e.name,kind:e.policy.kind,policy:e.policy.native})),p=d.member;return a={id:n,label:e,count:0,unknown:t||void 0,kind:t?"unknown":m(e)?e:c.length?"group":"unknown",groups:c,node:p&&b(p,s.get(p)??p).id},u.set(n,a),a.node&&f(n,a.node),a},x=(e,t,n=!1)=>{let a=d.get(e);return a||d.set(e,a={id:e,label:t,count:0,unknown:n||void 0,outbound:null,must:!1}),a};if("rule"===o)for(const m of a?.rules??[]){const e=x(Le("rule",{key:m.rule_id,label:m.expression}),m.expression);e.must=m.must,m.outbound&&(e.outbound=j(m.outbound).id,f(e.id,e.outbound))}const v=[o,"outbound","node"];for(const m of e){let e;for(const t of v){const n=Se(m,t,s,a?.generation_id);if(!n)break;const o="outbound"===t?j(n.label,n.unknown):"node"===t?b(n.key??n.label,n.label,n.unknown):x(Le(t,n),n.label,n.unknown);o.count++,e&&f(e.id,o.id).count++,e=o}}for(const m of t)j(m.name);const y=new Set([...d.values()].map(e=>e.outbound)),k=new Set([...u.values()].flatMap(e=>e.groups.slice(1).map(e=>e.name))),_=[...u.values()].filter(e=>e.count||y.has(e.id)||!k.has(e.label)),M=new Set(_.map(e=>e.id)),N=[...p.values()].filter(e=>M.has(e.source)||M.has(e.target)),S=new Set(N.map(e=>e.target));return{by:o,leaves:[...d.values()],outbounds:_,nodes:[...c.values()].filter(e=>S.has(e.id)),links:N}}const Oe=new WeakMap;function He(e){const t=Oe.get(e);if(t)return t;const n=new Map,a=new Map,o=new Map;for(const l of e.links){for(const[e,t]of[[n,l.source],[a,l.target]]){let n=e.get(t);n||e.set(t,n=[]),n.push(l)}(!o.has(l.source)||o.get(Line truncated
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{N as n,O as a}from"./NodePath-DbG_-_A4.js";import{l as o,q as s,B as r,c as l,g as i,K as d,R as u,S as c,p}from"./logs-BtAlqVqe.js";import{ac as m,W as f,a9 as g,Q as w,O as h,cq as b,ci as j,ck as x,w as v,ca as y,Z as k,cc as _,cd as M,at as N,a7 as S,h as L,b3 as C,o as T,ae as P,a3 as O,u as R,as as F,j as H,B as q,N as E,bc as W,r as $,t as D,b8 as I,cf as A,b9 as B,ch as U,S as V,al as K,aN as G,E as Q,T as z,co as J,aK as Z,c as X,bG as Y,C as ee}from"./index-C06va4Yw.js";import{h as te,f as ne,i as ae,o as oe,j as se,r as re}from"./activity-BoXvjA12.js";import{w as le}from"./labels-D8xxfRTQ.js";import{c as ie,C as de}from"./Coverage-CsDZglAg.js";import{T as ue}from"./Tabs-PDr10lJU.js";import{s as ce,D as pe}from"./Table-Cc5T3jJO.js";import{T as me}from"./TimeCell-DSeESBN3.js";import{a as fe,u as ge,b as we}from"./flows-C0jcpIhs.js";import{u as he}from"./outbounds-ynHeqeCa.js";import{u as be,Q as je,R as xe}from"./useQuickRule-CCpuINzQ.js";import{$ as ve}from"./GridList-Dgo5IXUg.js";import{$ as ye,a as ke}from"./Virtualizer-9R4wsZhf.js";import{C as _e}from"./CardView-jh7SJ_si.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Tag-D4suq1U_.js";import"./Select-hQ95uOjm.js";import"./ItemText-D6SGBgOi.js";import"./AppearanceControls-CEVO9-aR.js";import"./nodes-oXccX15o.js";import"./useGridSelectionCheckbox-inhSeUkV.js";import"./Checkbox-CsFZSc5N.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-6b-rL1eo.js";import"./SearchSelect-q5tbOYXk.js";import"./SearchList-LS4kpJXT.js";import"./BackendText-DK5RWFKi.js";import"./rule-C_M_c6EN.js";const Me=["client","rule","outbound","node"];function Ne(e,t){if(e.rule_id)return null!==e.rule_generation_id&&e.rule_generation_id===t?e.rule_id:e.rule_id+"\0"+e.rule_expression}function Se(e,t,n,a){switch(t){case"client":{const t=f(e.input?.src??void 0);return{label:t??"unknown",unknown:!t}}case"rule":return e.rule_expression?{label:e.rule_expression,unknown:!1,key:Ne(e,a)}:{label:"unknown",unknown:!0};case"outbound":return e.outbound?{label:e.outbound,unknown:!1}:{label:"unknown",unknown:!0};case"node":{if(m(e.outbound))return null;const t=e.chain.at(-1)??null;return t?{label:n.get(t)??t,unknown:!1,key:t}:{label:"unknown",unknown:!0}}}}const Le=(e,t)=>ne(e,t.unknown?"":t.key??t.label),Ce=e=>te(e,Me)?.kind,Te=new Map;function Pe(e,t,n){const a=Ce(t);return a?e.filter(e=>{const o=Se(e,a,Te,n?.generation_id);return null!==o&&Le(a,o)===t}):[]}function Oe(e,t,n,a){const o=te(e,Me);if(!o||""===o.value)return a(null);const{kind:s,value:r}=o;return"rule"===s?r.includes("\0")?r.slice(r.indexOf("\0")+1):t.find(e=>e.rule_id===r)?.expression??r:"node"===s?n.get(r)??r:"client"===s?r:a(r)}function Re(e,t,n,a,o="rule"){const s=(e=>new Map(e.map(e=>[e.id,e.name])))(n),r=new Map(t.map(e=>[e.id,e])),l=new Map(t.map(e=>[e.name,e])),i=new Map(n.map(e=>[e.id,e])),d=new Map,u=new Map,c=new Map,p=new Map,f=(e,t)=>{const n=e+">"+t;let a=p.get(n);return a||p.set(n,a={source:e,target:t,count:0}),a},b=(e,t,n=!1)=>{const a=Le("node",{key:e,label:t,unknown:n});let o=c.get(a);if(!o){const s=n?void 0:i.get(e),r=s&&w(s);c.set(a,o={id:a,label:t,count:0,unknown:n||void 0,latency:h(r),unavailable:"unavailable"===r?.state})}return o},j=(e,t=!1)=>{const n=Le("outbound",{label:e,unknown:t});let a=u.get(n);if(a)return a;const o=t?void 0:l.get(e),d=t?{groups:[],member:null}:g(e,o?.selection.tcp_member_id?"tcp":"udp",l,r,i),c=d.groups.map(e=>({name:e.name,kind:e.policy.kind,policy:e.policy.native})),p=d.member;return a={id:n,label:e,count:0,unknown:t||void 0,kind:t?"unknown":m(e)?e:c.length?"group":"unknown",groups:c,node:p&&b(p,s.get(p)??p).id},u.set(n,a),a.node&&f(n,a.node),a},x=(e,t,n=!1)=>{let a=d.get(e);return a||d.set(e,a={id:e,label:t,count:0,unknown:n||void 0,outbound:null,must:!1}),a};if("rule"===o)for(const m of a?.rules??[]){const e=x(Le("rule",{key:m.rule_id,label:m.expression}),m.expression);e.must=m.must,m.outbound&&(e.outbound=j(m.outbound).id,f(e.id,e.outbound))}const v=[o,"outbound","node"];for(const m of e){let e;for(const t of v){const n=Se(m,t,s,a?.generation_id);if(!n)break;const o="outbound"===t?j(n.label,n.unknown):"node"===t?b(n.key??n.label,n.label,n.unknown):x(Le(t,n),n.label,n.unknown);o.count++,e&&f(e.id,o.id).count++,e=o}}for(const m of t)j(m.name);const y=new Set([...d.values()].map(e=>e.outbound)),k=new Set([...u.values()].flatMap(e=>e.groups.slice(1).map(e=>e.name))),_=[...u.values()].filter(e=>e.count||y.has(e.id)||!k.has(e.label)),M=new Set(_.map(e=>e.id)),N=[...p.values()].filter(e=>M.has(e.source)||M.has(e.target)),S=new Set(N.map(e=>e.target));return{by:o,leaves:[...d.values()],outbounds:_,nodes:[...c.values()].filter(e=>S.has(e.id)),links:N}}const Fe=new WeakMap;function He(e){const t=Fe.get(e);if(t)return t;const n=new Map,a=new Map,o=new Map;for(const l of e.links){for(const[e,t]of[[n,l.source],[a,l.target]]){let n=e.get(t);n||e.set(t,n=[]),n.push(l)}(!o.has(l.source)||o.get(Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{f_ as e,d3 as t,cY as r,cX as o,by as a,g0 as i,ek as l,eY as n,eZ as s,eQ as d,eR as c,eS as u,d4 as p,eT as g,eV as f,eW as y,d6 as v,eU as h,eL as b,ep as m,g3 as k,dk as D,eu as w,dn as E,dm as P,f0 as M,dd as x,de as S,df as A,f8 as K,dh as C,ez as T,f2 as N,f4 as B,eq as I,f9 as R,d9 as F,er as V,eo as L,eK as H,f3 as U,f5 as z,dj as O,fe as $,ff as j,ey as G}from"./index-CUHkLMAp.js";import{a as W,$ as _,b as q,d as Y,e as Q,f as X}from"./useGridSelectionCheckbox-CTBMGgmQ.js";import{k as Z,f as J,e as ee,l as te,g as re,i as oe,h as ae}from"./Select-BA0NS1_z.js";import{r as ie,$ as le}from"./vendor-react-64fcanlc.js";const ne=new WeakMap;function se(e,t){let{id:r}=ne.get(e)??{};if(!r)throw new Error("Unknown list");return`${r}-${function(e){return"string"==typeof e?e.replace(/\s*/g,""):""+e}(t)}`}const de={ltr:"ArrowRight",rtl:"ArrowLeft"},ce={ltr:"ArrowLeft",rtl:"ArrowRight"};function ue(e,t,r){let{node:m,isVirtualized:k,focusMode:D="row",allowsArrowNavigation:w}=e,{direction:E}=a(),{onAction:P,linkBehavior:M,keyboardNavigationBehavior:x,shouldSelectOnPressUp:S}=ne.get(t),A=i(),K=ie.useRef(null),C=()=>{if(null!==r.current){if("child"===D){if(d(r.current)&&r.current!==c(u(r.current)))return;let e=p(r.current,{tabbable:!0}).firstChild();if(e)return g(e),void f(e,{containingElement:y(e)})}(null!=K.current&&m.key!==K.current||!d(r.current))&&g(r.current)}},T={},N=e.hasChildItems,B=t.selectionManager.isLink(m.key);if(null!=m&&"expandedKeys"in t){let e=t.collection.getChildren?.(m.key);N=N||[...e??[]].length>1,null==P&&!B&&"none"===t.selectionManager.selectionMode&&N&&(P=()=>t.toggleKey(m.key));let r=N?t.expandedKeys.has(m.key):void 0,o=1,a=m.index;if(m.level>=0&&null!=m?.parentKey){let e=t.collection.getItem(m.parentKey);if(e){let r=function(e,t){let r=t.getChildren?.(e.key),o=r?Array.from(r):[],a=o.length>0?o[0]:null,i=[];for(;a;)i.push(a),a=null!=a.nextKey?t.getItem(a.nextKey):null;return i}(e,t.collection);o=[...r].filter(e=>"item"===e.type).length,a>0&&"item"!==r[0].type&&(a-=1)}}else o=[...t.collection].filter(e=>0===e.level&&"item"===e.type).length;T={"aria-expanded":r,"aria-level":m.level+1,"aria-posinset":a+1,"aria-setsize":o}}let{itemProps:I,...R}=l({selectionManager:t.selectionManager,key:m.key,ref:r,isVirtualized:k,shouldSelectOnPressUp:e.shouldSelectOnPressUp||S,onAction:P||m.props?.onAction?n(m.props?.onAction,P?()=>P(m.key):void 0):void 0,focus:C,linkBehavior:M}),F=s(m.props),V=R.hasAction?F:{},L=o(I,V,{role:"row",onKeyDownCapture:"arrow"===x||w?e=>{let o=c(u(r.current));if(!b(e.currentTarget,v(e))||!r.current||!o)return;let a=p(r.current);if(a.currentNode=o,!pe(e,t,m,N,E,o,r.current,w))switch(e.key){case"ArrowLeft":if("arrow"===x){let t="rtl"===E?a.nextNode():a.previousNode();if(t)e.preventDefault(),e.stopPropagation(),g(t),f(t,{containingElement:y(r.current)});else if(e.preventDefault(),e.stopPropagation(),"rtl"===E)g(r.current),f(r.current,{containingElement:y(r.current)});else{a.currentNode=r.current;let e=ge(a);e&&(g(e),f(e,{containingElement:y(r.current)}))}}break;case"ArrowRight":if("arrow"===x){let t="rtl"===E?a.previousNode():a.nextNode();if(t)e.preventDefault(),e.stopPropagation(),g(t),f(t,{containingElement:y(r.current)});else if(e.preventDefault(),e.stopPropagation(),"ltr"===E)g(r.current),f(r.current,{containingElement:y(r.current)});else{a.currentNode=r.current;let e=ge(a);e&&(g(e),f(e,{containingElement:y(r.current)}))}}break;case"ArrowUp":case"ArrowDown":!e.altKey&&b(r.current,v(e))&&(e.stopPropagation(),e.preventDefault(),r.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}}:void 0,onFocus:e=>{K.current=m.key,v(e)===r.current?"child"===D&&e.relatedTarget&&b(r.current,e.relatedTarget)||requestAnimationFrame(()=>{"child"===D&&c(u(r.current))===r.current&&C()}):h()||t.selectionManager.setFocusedKey(m.key)},"aria-label":m["aria-label"]||m.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(m.key)?t.selectionManager.isSelected(m.key):void 0,"aria-disabled":t.selectionManager.isDisabled(m.key)||void 0,"aria-labelledby":A&&(m["aria-label"]||m.textValue)?`${se(t,m.key)} ${A}`:void 0,id:se(t,m.key)});"child"===D&&w&&"tab"===x&&(L.tabIndex=-1);let H=L.onKeyDown;if(L.onKeyDown=e=>{(e=>{let o=c(u(r.current));if(b(e.currentTarget,v(e))&&r.current&&o){if("tab"===x){if(v(e)!==r.current&&"Tab"!==e.key)return void e.stopPropagation();if(pe(e,t,m,N,E,o,r.current,w))return}if("Tab"===e.key&&"tab"===x){let t=p(r.current,{tabbable:!0});t.currentNode=o,(e.shiftKey?t.previousNode():t.nextNode())&&e.stopPropagation()}}})(e),e.isPropagationStopped()||H?.(e)},k){let{collection:e}=t,r=[...e];L["aria-rowindex"]=r.find(e=>"section"===e.type)?[...e.getKeys()].filter(t=>"section"!==e.getItem(t)?.type).findIndex(e=>e===m.key)+1:m.index+1}return{rowProps:{...o(L,T)},gridCellProps:{role:"gridcell","aria-colindex":1},descriptionProps:{id:A},...R}}function pe(e,t,r,o,a,i,l,n){if(!("expandedKeys"in t)||!n&&i!==l)return!1;if(e.key===de[a]&&t.selectLine truncated
|
||||
import{g0 as e,d5 as t,c_ as r,cZ as o,bz as a,g2 as i,em as l,e_ as n,e$ as s,eS as d,eT as c,eU as u,d6 as p,eV as g,eX as f,eY as y,d8 as v,eW as b,eN as h,er as m,g5 as k,dm as D,ew as w,dq as E,dp as P,f2 as M,df as x,dg as S,dh as A,fa as K,dj as C,eB as T,f4 as N,f6 as B,es as I,fb as V,db as F,et as R,eq as L,eM as H,f5 as U,f7 as z,dl as O,fg as $,fh as W,eA as _}from"./index-C06va4Yw.js";import{a as j,$ as G,b as q,d as X,e as Y,f as Z}from"./useGridSelectionCheckbox-inhSeUkV.js";import{k as J,f as Q,e as ee,l as te,g as re,i as oe,h as ae}from"./Select-hQ95uOjm.js";import{r as ie,$ as le}from"./vendor-react-64fcanlc.js";const ne=new WeakMap;function se(e,t){let{id:r}=ne.get(e)??{};if(!r)throw new Error("Unknown list");return`${r}-${function(e){return"string"==typeof e?e.replace(/\s*/g,""):""+e}(t)}`}const de={ltr:"ArrowRight",rtl:"ArrowLeft"},ce={ltr:"ArrowLeft",rtl:"ArrowRight"};function ue(e,t,r){let{node:m,isVirtualized:k,focusMode:D="row",allowsArrowNavigation:w}=e,{direction:E}=a(),{onAction:P,linkBehavior:M,keyboardNavigationBehavior:x,shouldSelectOnPressUp:S}=ne.get(t),A=i(),K=ie.useRef(null),C=()=>{if(null!==r.current){if("child"===D){if(d(r.current)&&r.current!==c(u(r.current)))return;let e=p(r.current,{tabbable:!0}).firstChild();if(e)return g(e),void f(e,{containingElement:y(e)})}(null!=K.current&&m.key!==K.current||!d(r.current))&&g(r.current)}},T={},N=e.hasChildItems,B=t.selectionManager.isLink(m.key);if(null!=m&&"expandedKeys"in t){let e=t.collection.getChildren?.(m.key);N=N||[...e??[]].length>1,null==P&&!B&&"none"===t.selectionManager.selectionMode&&N&&(P=()=>t.toggleKey(m.key));let r=N?t.expandedKeys.has(m.key):void 0,o=1,a=m.index;if(m.level>=0&&null!=m?.parentKey){let e=t.collection.getItem(m.parentKey);if(e){let r=function(e,t){let r=t.getChildren?.(e.key),o=r?Array.from(r):[],a=o.length>0?o[0]:null,i=[];for(;a;)i.push(a),a=null!=a.nextKey?t.getItem(a.nextKey):null;return i}(e,t.collection);o=[...r].filter(e=>"item"===e.type).length,a>0&&"item"!==r[0].type&&(a-=1)}}else o=[...t.collection].filter(e=>0===e.level&&"item"===e.type).length;T={"aria-expanded":r,"aria-level":m.level+1,"aria-posinset":a+1,"aria-setsize":o}}let{itemProps:I,...V}=l({selectionManager:t.selectionManager,key:m.key,ref:r,isVirtualized:k,shouldSelectOnPressUp:e.shouldSelectOnPressUp||S,onAction:P||m.props?.onAction?n(m.props?.onAction,P?()=>P(m.key):void 0):void 0,focus:C,linkBehavior:M}),F=s(m.props),R=V.hasAction?F:{},L=o(I,R,{role:"row",onKeyDownCapture:"arrow"===x||w?e=>{let o=c(u(r.current));if(!h(e.currentTarget,v(e))||!r.current||!o)return;let a=p(r.current);if(a.currentNode=o,!pe(e,t,m,N,E,o,r.current,w))switch(e.key){case"ArrowLeft":if("arrow"===x){let t="rtl"===E?a.nextNode():a.previousNode();if(t)e.preventDefault(),e.stopPropagation(),g(t),f(t,{containingElement:y(r.current)});else if(e.preventDefault(),e.stopPropagation(),"rtl"===E)g(r.current),f(r.current,{containingElement:y(r.current)});else{a.currentNode=r.current;let e=ge(a);e&&(g(e),f(e,{containingElement:y(r.current)}))}}break;case"ArrowRight":if("arrow"===x){let t="rtl"===E?a.previousNode():a.nextNode();if(t)e.preventDefault(),e.stopPropagation(),g(t),f(t,{containingElement:y(r.current)});else if(e.preventDefault(),e.stopPropagation(),"ltr"===E)g(r.current),f(r.current,{containingElement:y(r.current)});else{a.currentNode=r.current;let e=ge(a);e&&(g(e),f(e,{containingElement:y(r.current)}))}}break;case"ArrowUp":case"ArrowDown":!e.altKey&&h(r.current,v(e))&&(e.stopPropagation(),e.preventDefault(),r.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}}:void 0,onFocus:e=>{K.current=m.key,v(e)===r.current?"child"===D&&e.relatedTarget&&h(r.current,e.relatedTarget)||requestAnimationFrame(()=>{"child"===D&&c(u(r.current))===r.current&&C()}):b()||t.selectionManager.setFocusedKey(m.key)},"aria-label":m["aria-label"]||m.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(m.key)?t.selectionManager.isSelected(m.key):void 0,"aria-disabled":t.selectionManager.isDisabled(m.key)||void 0,"aria-labelledby":A&&(m["aria-label"]||m.textValue)?`${se(t,m.key)} ${A}`:void 0,id:se(t,m.key)});"child"===D&&w&&"tab"===x&&(L.tabIndex=-1);let H=L.onKeyDown;if(L.onKeyDown=e=>{(e=>{let o=c(u(r.current));if(h(e.currentTarget,v(e))&&r.current&&o){if("tab"===x){if(v(e)!==r.current&&"Tab"!==e.key)return void e.stopPropagation();if(pe(e,t,m,N,E,o,r.current,w))return}if("Tab"===e.key&&"tab"===x){let t=p(r.current,{tabbable:!0});t.currentNode=o,(e.shiftKey?t.previousNode():t.nextNode())&&e.stopPropagation()}}})(e),e.isPropagationStopped()||H?.(e)},k){let{collection:e}=t,r=[...e];L["aria-rowindex"]=r.find(e=>"section"===e.type)?[...e.getKeys()].filter(t=>"section"!==e.getItem(t)?.type).findIndex(e=>e===m.key)+1:m.index+1}return{rowProps:{...o(L,T)},gridCellProps:{role:"gridcell","aria-colindex":1},descriptionProps:{id:A},...V}}function pe(e,t,r,o,a,i,l,n){if(!("expandedKeys"in t)||!n&&i!==l)return!1;if(e.key===de[a]&&t.selectLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as s}from"./vendor-react-64fcanlc.js";import{I as e,cH as a,N as l,T as c}from"./index-CUHkLMAp.js";function r(a){return s.jsx(e,{...a,children:s.jsx("path",{fill:"currentColor",d:"M7.864 15.734c-.222 0-.433-.098-.576-.27l-3.747-4.497c-.266-.319-.222-.792.096-1.057.317-.265.79-.223 1.056.096l3.154 3.786 7.44-9.469c.255-.326.728-.382 1.052-.127.326.256.383.728.127 1.053L8.454 15.447c-.14.179-.352.284-.579.287z"})})}const t=()=>s.jsx(r,{className:"rp-check-mark"}),i=({i:e,cut:a,reserveFlag:r=!1})=>{const t="path"===a?e.label.lastIndexOf("/")+1:0;return s.jsxs("span",{className:"rp-il",children:[(e.flag||r&&void 0!==e.flag)&&s.jsx("span",{className:"rp-node-flag","data-flag":e.flag,"aria-hidden":"true"}),e.icon&&s.jsx("span",{className:"ic",children:e.icon}),e.nodeName?s.jsx(l,{name:e.label,cut:"start"===a?a:void 0}):t?s.jsxs(c,{className:"rp-path",text:e.label,children:[s.jsx("span",{className:"rp-truncate rp-truncate-start",children:s.jsx("bdi",{children:e.label.slice(0,t)})}),s.jsx("bdi",{children:e.label.slice(t)})]}):s.jsx(c,{cut:"start"===a?a:void 0,tooltipText:e.label,children:e.label})]})},n=({i:e,children:l})=>s.jsxs("span",{className:"rp-item-text",children:[s.jsx(a,{slot:"label",elementType:"span",children:s.jsx(i,{i:e,reserveFlag:!0})}),l??(e.desc&&s.jsx(a,{slot:"description",className:e.aside?"desc aside":"desc",children:e.desc}))]});export{r as C,i as I,t as a,n as b};
|
||||
import{j as s}from"./vendor-react-64fcanlc.js";import{I as e,cI as a,N as l,T as c}from"./index-C06va4Yw.js";function r(a){return s.jsx(e,{...a,children:s.jsx("path",{fill:"currentColor",d:"M7.864 15.734c-.222 0-.433-.098-.576-.27l-3.747-4.497c-.266-.319-.222-.792.096-1.057.317-.265.79-.223 1.056.096l3.154 3.786 7.44-9.469c.255-.326.728-.382 1.052-.127.326.256.383.728.127 1.053L8.454 15.447c-.14.179-.352.284-.579.287z"})})}const t=()=>s.jsx(r,{className:"rp-check-mark"}),i=({i:e,cut:a,reserveFlag:r=!1})=>{const t="path"===a?e.label.lastIndexOf("/")+1:0;return s.jsxs("span",{className:"rp-il",children:[(e.flag||r&&void 0!==e.flag)&&s.jsx("span",{className:"rp-node-flag","data-flag":e.flag,"aria-hidden":"true"}),e.icon&&s.jsx("span",{className:"ic",children:e.icon}),e.nodeName?s.jsx(l,{name:e.label,cut:"start"===a?a:void 0}):t?s.jsxs(c,{className:"rp-path",text:e.label,children:[s.jsx("span",{className:"rp-truncate rp-truncate-start",children:s.jsx("bdi",{children:e.label.slice(0,t)})}),s.jsx("bdi",{children:e.label.slice(t)})]}):s.jsx(c,{cut:"start"===a?a:void 0,tooltipText:e.label,children:e.label})]})},n=({i:e,children:l})=>s.jsxs("span",{className:"rp-item-text",children:[s.jsx(a,{slot:"label",elementType:"span",children:s.jsx(i,{i:e,reserveFlag:!0})}),l??(e.desc&&s.jsx(a,{slot:"description",className:e.aside?"desc aside":"desc",children:e.desc}))]});export{r as C,i as I,t as a,n as b};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as s}from"./vendor-react-64fcanlc.js";import{I as r,bb as e}from"./index-CUHkLMAp.js";function o({className:o,...t}){return s.jsx(r,{width:10,height:10,viewBox:"0 0 12 12",className:e("rp-link-out",o),...t,children:s.jsx("path",{fill:"currentColor",d:"m10.08887,1h-5.51074c-.50293,0-.91113.4082-.91113.91113s.4082.91113.91113.91113h3.31055L1.35547,9.35547c-.35645.35645-.35645.93262,0,1.28906.17773.17773.41113.2666.64453.2666s.4668-.08887.64453-.2666l6.5332-6.5332v3.31055c0,.50293.4082.91113.91113.91113s.91113-.4082.91113-.91113V1.91113c0-.50293-.4082-.91113-.91113-.91113Z"})})}export{o as L};
|
||||
import{j as s}from"./vendor-react-64fcanlc.js";import{I as r,bc as c}from"./index-C06va4Yw.js";function e({className:e,...o}){return s.jsx(r,{width:10,height:10,viewBox:"0 0 12 12",className:c("rp-link-out",e),...o,children:s.jsx("path",{fill:"currentColor",d:"m10.08887,1h-5.51074c-.50293,0-.91113.4082-.91113.91113s.4082.91113.91113.91113h3.31055L1.35547,9.35547c-.35645.35645-.35645.93262,0,1.28906.17773.17773.41113.2666.64453.2666s.4668-.08887.64453-.2666l6.5332-6.5332v3.31055c0,.50293.4082.91113.91113.91113s.91113-.4082.91113-.91113V1.91113c0-.50293-.4082-.91113-.91113-.91113Z"})})}export{e as L};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{u as n,as as r,bG as s,bH as o,A as a,bI as i,aX as l,bJ as c,bK as u,bL as d,bM as p,c as m,h as g,C as f,ba as h,E as x,bN as w,bO as k,bo as j,bP as y,B as b}from"./index-CUHkLMAp.js";import{D as v,s as T,d as S,a as N,o as E}from"./auth-hmN4lsTM.js";import{L as C}from"./LinkOut-B2JdPfjI.js";import{L,P as _,S as A}from"./AppearanceControls-E-VPhjIz.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-CnEXu0-f.js";const D=/^[A-Za-z0-9_.-]{1,64}$/;async function P(e,t){try{return T(await S(e,t))}catch(n){if(!function(e){return e instanceof SyntaxError||e instanceof a&&(404===e.status||401===e.status&&(!e.code||"authentication_required"===e.code))}(n))throw n;return n instanceof a&&404===n.status?await N(e,t)?"token":"no-api":"token"}}function q(e,t,n){try{const{profiles:r,activeId:s}=u(),o=function(e,t,n,r){return e.some(e=>e.id===t&&p(e.api)===p(n))?e.map(e=>e.id===t?{...e,token:r.trim()}:e):null}(r,e,t,n);if(!o)return"login.stale";d({profiles:o,activeId:s})}catch{return"settings.saveError"}return null}async function I(e,t,n,r){let s;try{s=await E(t,n,r)}catch(o){return function(e,t){if(!(e instanceof a))return null;if("invalid_credentials"===e.code)return{key:"login.invalidCredentials"};if("setup_required"===e.code)return{key:"login.needsSetup",switchTo:"setup"};if("setup_already_completed"===e.code)return{key:"login.alreadySetUp",switchTo:"login"};if("permission_denied"===e.code&&"setup"===t)return{key:"login.setupPeer"};if("rate_limited"===e.code){const t=e.retryAfter??60;return{key:"login.rateLimited",params:{n:t},wait:t}}return null}(o,n)??{error:o}}try{c(e,t,s.token)}catch{return{key:"settings.saveError"}}return null}function H(e,t){const{kind:n,failure:r,attempt:s,ended:o,rejected:a}=e;return"no-api"===n?null:null!==r?{tone:"negative",text:"string"==typeof r?r:t(r.key,r.params),focus:!0,id:s}:o?{tone:"informative",text:t("login.sessionEnded"),focus:!1,id:0}:a&&"token"===n?{tone:"negative",text:t("login.rejected"),focus:!1,id:0}:null}const R=e=>"string"!=typeof e&&"login.rateLimited"===e.key;function F(t,a,c,u,d){const p=n(),m=r(),[g]=e.useState(()=>s(t,a)),[f,h]=e.useState(null),x=d?"no-api":f,[w,k]=e.useState({attempt:0,error:null});e.useEffect(()=>{if(d)return;const e=new AbortController;return P(a,e.signal).then(e=>h(e),t=>{e.signal.aborted||k(e=>({...e,error:t instanceof Error?t:new Error(String(t))}))}),()=>e.abort()},[a,w.attempt,d]);const[j,y]=e.useState(""),b=i(a),[T,S]=e.useState(b?v.username:""),[N,E]=e.useState(b?v.password:""),[C,L]=e.useState(""),[_,A]=e.useState(!1),[F,M]=e.useState(!1),[U,O]=e.useState({}),[z,B]=e.useState(null),[G,J]=e.useState(0),[K,X]=e.useState(0),[Z,$]=e.useState(Date.now);e.useEffect(()=>{if(K<=Z)return;const e=setTimeout(()=>$(Date.now()),(K-Z)%1e3||1e3);return()=>clearTimeout(e)},[K,Z]);const Q=function(e,t){return Math.max(0,Math.ceil((e-t)/1e3))}(K,Z),V=(e,t)=>n=>{t(n),U[e]&&O(({[e]:t,...n})=>n)},W=async e=>{const n=function(e,t,n,r){const s={};t?D.test(t)||(s.username="login.badUsername"):s.username="login.usernameRequired";const o=[...n].length;return o?"setup"===e&&o<8?s.password="login.passwordShort":o>128||(new TextEncoder).encode(n).length>512?s.password="login.passwordLong":"setup"===e&&n!==r&&(s.confirm="login.mismatch"):s.password="login.passwordRequired",s}(e,T,N,C);if(O(n),Object.keys(n).length)return;M(!0);const r=await I(t,a,e,{username:T,password:N});if(r)if(M(!1),"error"in r)B(p("login.failed",{error:l(r.error,p)}));else{if(r.wait){const e=Date.now();$(e),X(e+1e3*r.wait)}r.switchTo&&(h(r.switchTo),L("")),B(r)}else location.reload()},Y="setup"===x||"login"===x,ee=e=>U[e]?p(U[e]):void 0;return{kind:x,discoveryError:w.error,retryDiscovery:()=>k(e=>({attempt:e.attempt+1,error:null})),title:p("no-api"===x?"login.noApiTitle":"setup"===x?"login.setupTitle":"token"===x?"login.title":"login.passwordTitle"),note:"no-api"===x?p("login.noApiNote"):p("setup"===x?"login.setupNote":"login"===x?"login.connectedTo":"login.note",{backend:c}),demoNote:b&&"login"===x?p("login.demoNote",v):null,alert:H({kind:x,failure:z&&!Q&&R(z)?null:z,attempt:G,ended:g,rejected:u},p),busy:F,token:j,setToken:y,username:T,setUsername:V("username",S),usernameError:ee("username"),password:N,setPassword:V("password",E),passwordError:ee("password"),confirm:C,setConfirm:V("confirm",L),confirmError:ee("confirm"),submit:()=>{F||Q||null===x||"no-api"===x||(B(null),J(e=>e+1),Y?W(x):(()=>{if(!j.trim())return;const e=q(t,a,j);e?B({key:e}):location.reload()})())},canSubmit:null!==x&&"no-api"!==x&&!Q&&(Y||!!j.trim()),submitText:Q?p("login.retryIn",{n:Q}):p("setup"===x?"login.create":"login"===x?"login.signIn":"login.submit"),secretType:_?"text":"password",toggle:()=>A(e=>!e),toggleText:p(Y?_?"login.hidePassword":"login.showPassword":_?"settings.hideToken":"settings.showToken"),guideHref:o(m),requirementsHref:o(m,"no-native-api")}}function M({profileId:e,api:r,backend:s,rejected:o,missingApi:a,lang:i,pickLang:l,dark:c,themeLLine truncated
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{u as n,as as r,bH as s,bI as o,A as a,bJ as i,aX as l,bK as c,bL as u,bM as d,bN as p,c as m,h as g,C as f,bb as h,E as x,bO as w,bP as k,bp as j,bQ as y,B as b}from"./index-C06va4Yw.js";import{D as v,s as T,d as S,a as N,o as E}from"./auth-DQ-HlQv0.js";import{L as C}from"./LinkOut-BYZWxkzu.js";import{L,P as _,S as A}from"./AppearanceControls-CEVO9-aR.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-D6SGBgOi.js";const D=/^[A-Za-z0-9_.-]{1,64}$/;async function P(e,t){try{return T(await S(e,t))}catch(n){if(!function(e){return e instanceof SyntaxError||e instanceof a&&(404===e.status||401===e.status&&(!e.code||"authentication_required"===e.code))}(n))throw n;return n instanceof a&&404===n.status?await N(e,t)?"token":"no-api":"token"}}function q(e,t,n){try{const{profiles:r,activeId:s}=u(),o=function(e,t,n,r){return e.some(e=>e.id===t&&p(e.api)===p(n))?e.map(e=>e.id===t?{...e,token:r.trim()}:e):null}(r,e,t,n);if(!o)return"login.stale";d({profiles:o,activeId:s})}catch{return"settings.saveError"}return null}async function I(e,t,n,r){let s;try{s=await E(t,n,r)}catch(o){return function(e,t){if(!(e instanceof a))return null;if("invalid_credentials"===e.code)return{key:"login.invalidCredentials"};if("setup_required"===e.code)return{key:"login.needsSetup",switchTo:"setup"};if("setup_already_completed"===e.code)return{key:"login.alreadySetUp",switchTo:"login"};if("permission_denied"===e.code&&"setup"===t)return{key:"login.setupPeer"};if("rate_limited"===e.code){const t=e.retryAfter??60;return{key:"login.rateLimited",params:{n:t},wait:t}}return null}(o,n)??{error:o}}try{c(e,t,s.token)}catch{return{key:"settings.saveError"}}return null}function H(e,t){const{kind:n,failure:r,attempt:s,ended:o,rejected:a}=e;return"no-api"===n?null:null!==r?{tone:"negative",text:"string"==typeof r?r:t(r.key,r.params),focus:!0,id:s}:o?{tone:"informative",text:t("login.sessionEnded"),focus:!1,id:0}:a&&"token"===n?{tone:"negative",text:t("login.rejected"),focus:!1,id:0}:null}const R=e=>"string"!=typeof e&&"login.rateLimited"===e.key;function F(t,a,c,u,d){const p=n(),m=r(),[g]=e.useState(()=>s(t,a)),[f,h]=e.useState(null),x=d?"no-api":f,[w,k]=e.useState({attempt:0,error:null});e.useEffect(()=>{if(d)return;const e=new AbortController;return P(a,e.signal).then(e=>h(e),t=>{e.signal.aborted||k(e=>({...e,error:t instanceof Error?t:new Error(String(t))}))}),()=>e.abort()},[a,w.attempt,d]);const[j,y]=e.useState(""),b=i(a),[T,S]=e.useState(b?v.username:""),[N,E]=e.useState(b?v.password:""),[C,L]=e.useState(""),[_,A]=e.useState(!1),[F,M]=e.useState(!1),[U,O]=e.useState({}),[z,B]=e.useState(null),[J,K]=e.useState(0),[Q,X]=e.useState(0),[Z,$]=e.useState(Date.now);e.useEffect(()=>{if(Q<=Z)return;const e=setTimeout(()=>$(Date.now()),(Q-Z)%1e3||1e3);return()=>clearTimeout(e)},[Q,Z]);const G=function(e,t){return Math.max(0,Math.ceil((e-t)/1e3))}(Q,Z),V=(e,t)=>n=>{t(n),U[e]&&O(({[e]:t,...n})=>n)},W=async e=>{const n=function(e,t,n,r){const s={};t?D.test(t)||(s.username="login.badUsername"):s.username="login.usernameRequired";const o=[...n].length;return o?"setup"===e&&o<8?s.password="login.passwordShort":o>128||(new TextEncoder).encode(n).length>512?s.password="login.passwordLong":"setup"===e&&n!==r&&(s.confirm="login.mismatch"):s.password="login.passwordRequired",s}(e,T,N,C);if(O(n),Object.keys(n).length)return;M(!0);const r=await I(t,a,e,{username:T,password:N});if(r)if(M(!1),"error"in r)B(p("login.failed",{error:l(r.error,p)}));else{if(r.wait){const e=Date.now();$(e),X(e+1e3*r.wait)}r.switchTo&&(h(r.switchTo),L("")),B(r)}else location.reload()},Y="setup"===x||"login"===x,ee=e=>U[e]?p(U[e]):void 0;return{kind:x,discoveryError:w.error,retryDiscovery:()=>k(e=>({attempt:e.attempt+1,error:null})),title:p("no-api"===x?"login.noApiTitle":"setup"===x?"login.setupTitle":"token"===x?"login.title":"login.passwordTitle"),note:"no-api"===x?p("login.noApiNote"):p("setup"===x?"login.setupNote":"login"===x?"login.connectedTo":"login.note",{backend:c}),demoNote:b&&"login"===x?p("login.demoNote",v):null,alert:H({kind:x,failure:z&&!G&&R(z)?null:z,attempt:J,ended:g,rejected:u},p),busy:F,token:j,setToken:y,username:T,setUsername:V("username",S),usernameError:ee("username"),password:N,setPassword:V("password",E),passwordError:ee("password"),confirm:C,setConfirm:V("confirm",L),confirmError:ee("confirm"),submit:()=>{F||G||null===x||"no-api"===x||(B(null),K(e=>e+1),Y?W(x):(()=>{if(!j.trim())return;const e=q(t,a,j);e?B({key:e}):location.reload()})())},canSubmit:null!==x&&"no-api"!==x&&!G&&(Y||!!j.trim()),submitText:G?p("login.retryIn",{n:G}):p("setup"===x?"login.create":"login"===x?"login.signIn":"login.submit"),secretType:_?"text":"password",toggle:()=>A(e=>!e),toggleText:p(Y?_?"login.hidePassword":"login.showPassword":_?"settings.hideToken":"settings.showToken"),guideHref:o(m),requirementsHref:o(m,"no-native-api")}}function M({profileId:e,api:r,backend:s,rejected:o,missingApi:a,lang:i,pickLang:l,dark:c,themeLLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{bR as r,u as s,at as l,as as a,dV as o,bY as n,B as i,cv as c,dW as d,C as g,dX as m,Z as u,a7 as p,r as h,F as f,cr as x,c1 as j,T as v,m as b,cn as w,bP as y,cx as M,a as N,b as C,E as T}from"./index-CUHkLMAp.js";import{aS as k,b as $,F as S,aT as R,D as P}from"./activity-B3PmJo_X.js";import{C as W}from"./ItemText-CnEXu0-f.js";import{T as A,U as O,L as F,K as L,p as D,A as q}from"./logs-C6Kb44nw.js";import{D as B}from"./Table-DX856nrS.js";import{d as E,e as H}from"./files-Dt8K7QfP.js";import{r as U}from"./recorder-BHyqDNp5.js";import{u as V,C as _}from"./Copy-CO66tox2.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-BYMoo8M1.js";import"./AppearanceControls-E-VPhjIz.js";import"./Select-BA0NS1_z.js";import"./useGridSelectionCheckbox-CTBMGgmQ.js";import"./Virtualizer-UMC7L0o2.js";import"./Checkbox-8Iqnc6T1.js";const J=new WeakMap;function z(e){let t=J.get(e);return void 0===t&&J.set(e,t=Date.parse(e.ts)),t}const G=[...r].reverse();function I({records:m,offered:u,minimum:p,setMinimum:h,waiting:f}){const x=s(),j=l[a()],v=$(),b=e.useMemo(()=>function(e,t,r,s=24){const l=r?G.indexOf(r):G.length-1,a=G.filter((e,r)=>t.includes(e)&&r<=l),o=e.map(z).filter(Number.isFinite);if(!o.length)return{rows:a.map(e=>({level:e,counts:[]})),buckets:[],width:0,busiest:null};const n=Math.min(...o),i=Math.max(...o),c=k(n,i,s),d=c.length>1?c[1]-c[0]:Math.max(i-n,6e4),g=new Map(a.map(e=>[e,new Array(c.length).fill(0)])),m=new Array(c.length).fill(0),u=new Array(c.length).fill(0);for(const x of e){const e=z(x),t=g.get(x.level);if(!t||!Number.isFinite(e))continue;const r=Math.min(c.length-1,Math.floor((e-c[0])/d));t[r]++,m[r]++,"error"===x.level&&u[r]++}const p=e=>e.reduce((t,r,s)=>r>e[t]?s:t,0),h=u.reduce((e,t)=>e+t,0),f=p(h?u:m);return{rows:a.map(e=>({level:e,counts:g.get(e)})),buckets:c,width:d,busiest:{start:c[f],count:h?u[f]:m[f],errors:h}}}(m,u,p),[m,u,p]),w=e.useMemo(()=>o(j),[j]),y=e.useCallback(e=>`${w.format(e)}–${w.format(e+b.width)}`,[w,b.width]),M=e.useMemo(()=>{const e=r.map(e=>{const r=x(n[e]);return[e,{text:r,label:t.jsxs(i,{quiet:!0,small:!0,className:e===p?"current":void 0,label:x(e===p?"log.chart.current":"log.chart.minimum",{level:r}),onPress:()=>h(e),children:[e===p&&t.jsx(W,{}),r]})}]});return new Map(e)},[p,h,x]),N=e.useMemo(()=>{const e={error:v.negative,warn:v.notice,info:v.info,debug:v.subtle,trace:v.muted},t=b.buckets.map(y);return{columns:b.buckets.map(e=>w.format(e)),rows:b.rows.map(r=>{const{text:s,label:l}=M.get(r.level);return{id:r.level,color:e[r.level],label:l,counts:r.counts,titles:r.counts.map((e,r)=>x("log.chart.cell",{time:t[r],level:s,n:e}))}})}},[b,y,w,M,v,x]);if(!m.length)return f?t.jsx(K,{heads:M,levels:b.rows.map(e=>e.level),time:w.format(0)}):null;const C=b.busiest,T=C?C.errors?[{label:x("log.chart.errors"),value:x("log.chart.count",{n:C.errors}),icon:t.jsx(c,{}),tone:"negative"},{label:x("log.chart.peakErrors"),icon:t.jsx(d,{}),tint:"c1",value:y(C.start),caption:x("log.chart.count",{n:C.count})}]:[{label:x("log.chart.errors"),value:x("log.chart.count",{n:0}),icon:t.jsx(c,{}),tint:"c5"},{label:x("log.chart.peak"),icon:t.jsx(d,{}),tint:"c1",value:y(C.start),caption:x("log.chart.count",{n:C.count})}]:[];return t.jsxs("div",{className:"rp-chart-page",children:[t.jsx(S,{facts:T}),t.jsx(g,{title:x("log.chart.title"),note:x("log.chart.sample",{n:m.length}),children:t.jsx(R,{label:x("log.chart.title"),columns:N.columns,rows:N.rows})})]})}function K({heads:e,levels:r,time:l}){const a=s(),o=[{label:a("log.chart.errors"),value:a("log.chart.count",{n:0}),icon:t.jsx(c,{}),tint:"c5"},{label:a("log.chart.peak"),icon:t.jsx(d,{}),tint:"c1",value:`${l}–${l}`,caption:a("log.chart.count",{n:0})}],n=r.map(t=>({id:t,color:"transparent",label:e.get(t).label,counts:[0],titles:[""]}));return t.jsxs("div",{className:"rp-chart-page",inert:!0,"aria-hidden":"true",children:[t.jsxs("div",{className:"rp-chart-hold",children:[t.jsx(S,{facts:o}),t.jsx(m,{})]}),t.jsxs("div",{className:"rp-chart-hold",children:[t.jsx(g,{title:a("log.chart.title"),note:a("log.chart.sample",{n:0}),children:t.jsx(R,{label:a("log.chart.title"),columns:[l],rows:n})}),t.jsx(m,{})]})]})}const X={trace:"muted",debug:"neutral",info:"info",warn:"warn",error:"err"},Y=new WeakMap;function Z(e,t,s,l,a,o=new Set,i){return{rows:e.flatMap(e=>{const t=function(e,t,r){const s=Y.get(e);if(s&&s.locale===t)return s.row;const l={id:e.id,timestamp:p(e.ts,t),iso:e.ts,levelText:u(n,e.level,r),tone:X[e.level],target:e.target,gap:!1,record:e,message:e.message+(e.fields?" "+Object.entries(e.fields).map(([e,t])=>`${e}=${"string"==typeof t?t:JSON.stringify(t)}`).join(" "):"")};return Y.set(e,{locale:t,row:l}),l}(e,l,a);return o.has(e)?[{...t,id:`gap ${e.id}`,timestamp:"",iso:"",levelText:"",target:"",gap:!0,message:a("log.gap")},t]:[t]}),levels:t.map(e=>{return{id:e,label:(t=e,i&&r.indexOf(t)<r.indexOf(i)?a("log.levelNotRecorded",{level:u(n,e,a)}):u(n,e,a))};var t}),recordedText:i?a("log.recorded"Line truncated
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{bS as r,u as s,at as l,as as a,dX as o,bZ as n,B as i,cw as c,dY as d,C as g,dZ as m,Z as u,a7 as p,r as h,F as f,cs as x,c2 as j,T as v,m as b,co as w,bQ as y,cy as M,a as N,b as C,E as T}from"./index-C06va4Yw.js";import{aR as k,b as S,F as $,aS as R,D as A}from"./activity-BoXvjA12.js";import{C as O}from"./ItemText-D6SGBgOi.js";import{T as W,U as P,L as F,K as L,p as D,A as B}from"./logs-BtAlqVqe.js";import{D as E}from"./Table-Cc5T3jJO.js";import{d as H,e as Z}from"./files-Dt8K7QfP.js";import{r as _}from"./recorder-BHyqDNp5.js";import{u as q,C as J}from"./Copy-Dw2ag2LB.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-oXccX15o.js";import"./AppearanceControls-CEVO9-aR.js";import"./Select-hQ95uOjm.js";import"./useGridSelectionCheckbox-inhSeUkV.js";import"./Virtualizer-9R4wsZhf.js";import"./Checkbox-CsFZSc5N.js";const U=new WeakMap;function V(e){let t=U.get(e);return void 0===t&&U.set(e,t=Date.parse(e.ts)),t}const X=[...r].reverse();function Y({records:m,offered:u,minimum:p,setMinimum:h,waiting:f}){const x=s(),j=l[a()],v=S(),b=e.useMemo(()=>function(e,t,r,s=24){const l=r?X.indexOf(r):X.length-1,a=X.filter((e,r)=>t.includes(e)&&r<=l),o=e.map(V).filter(Number.isFinite);if(!o.length)return{rows:a.map(e=>({level:e,counts:[]})),buckets:[],width:0,busiest:null};const n=Math.min(...o),i=Math.max(...o),c=k(n,i,s),d=c.length>1?c[1]-c[0]:Math.max(i-n,6e4),g=new Map(a.map(e=>[e,new Array(c.length).fill(0)])),m=new Array(c.length).fill(0),u=new Array(c.length).fill(0);for(const x of e){const e=V(x),t=g.get(x.level);if(!t||!Number.isFinite(e))continue;const r=Math.min(c.length-1,Math.floor((e-c[0])/d));t[r]++,m[r]++,"error"===x.level&&u[r]++}const p=e=>e.reduce((t,r,s)=>r>e[t]?s:t,0),h=u.reduce((e,t)=>e+t,0),f=p(h?u:m);return{rows:a.map(e=>({level:e,counts:g.get(e)})),buckets:c,width:d,busiest:{start:c[f],count:h?u[f]:m[f],errors:h}}}(m,u,p),[m,u,p]),w=e.useMemo(()=>o(j),[j]),y=e.useCallback(e=>`${w.format(e)}–${w.format(e+b.width)}`,[w,b.width]),M=e.useMemo(()=>{const e=r.map(e=>{const r=x(n[e]);return[e,{text:r,label:t.jsxs(i,{quiet:!0,small:!0,className:e===p?"current":void 0,label:x(e===p?"log.chart.current":"log.chart.minimum",{level:r}),onPress:()=>h(e),children:[e===p&&t.jsx(O,{}),r]})}]});return new Map(e)},[p,h,x]),N=e.useMemo(()=>{const e={error:v.negative,warn:v.notice,info:v.info,debug:v.subtle,trace:v.muted},t=b.buckets.map(y);return{columns:b.buckets.map(e=>w.format(e)),rows:b.rows.map(r=>{const{text:s,label:l}=M.get(r.level);return{id:r.level,color:e[r.level],label:l,counts:r.counts,titles:r.counts.map((e,r)=>x("log.chart.cell",{time:t[r],level:s,n:e}))}})}},[b,y,w,M,v,x]);if(!m.length)return f?t.jsx(z,{heads:M,levels:b.rows.map(e=>e.level),time:w.format(0)}):null;const C=b.busiest,T=C?C.errors?[{label:x("log.chart.errors"),value:x("log.chart.count",{n:C.errors}),icon:t.jsx(c,{}),tone:"negative"},{label:x("log.chart.peakErrors"),icon:t.jsx(d,{}),tint:"c1",value:y(C.start),caption:x("log.chart.count",{n:C.count})}]:[{label:x("log.chart.errors"),value:x("log.chart.count",{n:0}),icon:t.jsx(c,{}),tint:"c5"},{label:x("log.chart.peak"),icon:t.jsx(d,{}),tint:"c1",value:y(C.start),caption:x("log.chart.count",{n:C.count})}]:[];return t.jsxs("div",{className:"rp-chart-page",children:[t.jsx($,{facts:T}),t.jsx(g,{title:x("log.chart.title"),note:x("log.chart.sample",{n:m.length}),children:t.jsx(R,{label:x("log.chart.title"),columns:N.columns,rows:N.rows})})]})}function z({heads:e,levels:r,time:l}){const a=s(),o=[{label:a("log.chart.errors"),value:a("log.chart.count",{n:0}),icon:t.jsx(c,{}),tint:"c5"},{label:a("log.chart.peak"),icon:t.jsx(d,{}),tint:"c1",value:`${l}–${l}`,caption:a("log.chart.count",{n:0})}],n=r.map(t=>({id:t,color:"transparent",label:e.get(t).label,counts:[0],titles:[""]}));return t.jsxs("div",{className:"rp-chart-page",inert:!0,"aria-hidden":"true",children:[t.jsxs("div",{className:"rp-chart-hold",children:[t.jsx($,{facts:o}),t.jsx(m,{})]}),t.jsxs("div",{className:"rp-chart-hold",children:[t.jsx(g,{title:a("log.chart.title"),note:a("log.chart.sample",{n:0}),children:t.jsx(R,{label:a("log.chart.title"),columns:[l],rows:n})}),t.jsx(m,{})]})]})}const G={trace:"muted",debug:"neutral",info:"info",warn:"warn",error:"err"},I=new WeakMap;function K(e,t,s,l,a,o=new Set,i){return{rows:e.flatMap(e=>{const t=function(e,t,r){const s=I.get(e);if(s&&s.locale===t)return s.row;const l={id:e.id,timestamp:p(e.ts,t),iso:e.ts,levelText:u(n,e.level,r),tone:G[e.level],target:e.target,gap:!1,record:e,message:e.message+(e.fields?" "+Object.entries(e.fields).map(([e,t])=>`${e}=${"string"==typeof t?t:JSON.stringify(t)}`).join(" "):"")};return I.set(e,{locale:t,row:l}),l}(e,l,a);return o.has(e)?[{...t,id:`gap ${e.id}`,timestamp:"",iso:"",levelText:"",target:"",gap:!0,message:a("log.gap")},t]:[t]}),levels:t.map(e=>{return{id:e,label:(t=e,i&&r.indexOf(t)<r.indexOf(i)?a("log.levelNotRecorded",{level:u(n,e,a)}):u(n,e,a))};var t}),recordedText:i?a("log.recorded"Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{m as s,a,p as o,b as n,c as i}from"./Nodes-dSDkBdMR.js";import{u as r,bP as l,cn as t}from"./index-CUHkLMAp.js";import{N as d,t as m,n as p}from"./NumberField-C_bakFfF.js";import{p as u,D as c}from"./logs-C6Kb44nw.js";import{C as j}from"./Checkbox-8Iqnc6T1.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Tabs-DiTlqyjA.js";import"./useGridSelectionCheckbox-CTBMGgmQ.js";import"./Select-BA0NS1_z.js";import"./Table-DX856nrS.js";import"./Virtualizer-UMC7L0o2.js";import"./subscriptionEntries-JdG-Ijgl.js";import"./SearchList-DMvmI1K7.js";import"./ItemText-CnEXu0-f.js";import"./nodes-BYMoo8M1.js";import"./BackendText-Dtw6qhij.js";import"./activity-B3PmJo_X.js";import"./AppearanceControls-E-VPhjIz.js";import"./TimeCell-N-r54xmV.js";import"./CardView-N7n2PJ-s.js";import"./GridList-CQPDUasC.js";import"./Tag-4SaGY8GT.js";import"./FlagPicker-BI-GnHgk.js";import"./SearchSelect-Fy-2ASgN.js";import"./outbounds-CUiHWeth.js";import"./probe-Cuvc4PWQ.js";const h={username:"login.username",uuid:"nodes.manual.uuid",flow:"nodes.manual.flow",password:"login.password",method:"nodes.manual.method",security:"nodes.manual.security",sni:"nodes.manual.sni",insecure:"nodes.manual.insecure",pbk:"nodes.manual.publicKey",sid:"nodes.manual.shortId",type:"nodes.manual.transport",transportHost:"nodes.xhttp.host",path:"nodes.xhttp.path",mode:"nodes.xhttp.mode",serviceName:"nodes.manual.service",obfs:"nodes.manual.obfs","obfs-password":"nodes.manual.obfsPassword",congestion_control:"nodes.manual.congestion"},b={alpn:"ALPN",spx:"SpiderX",ech_config:"ECH config"};function x({draft:x,link:v,nameError:g,linkError:f,isDisabled:C,onChange:k}){const N=r(),D=s(x),w=e=>({id:e,label:""===e?N("ui.none"):e}),I=a(x),S=({key:s,options:a,flag:o,required:n,range:i})=>{const r="username"===s&&"socks5"!==x.protocol,t=h[r?"uuid":s]?N(h[r?"uuid":s]):b[s]??s;return a?e.jsx(u,{label:t,items:a.map(w),value:x[s]??a[0],isDisabled:C,onChange:e=>k(s,e)},s):o?e.jsx(j,{label:t,isSelected:!!x[s],isDisabled:C,onChange:e=>k(s,e?o:"")},s):i?e.jsx(d,{isRequired:n,isDisabled:C,label:t,value:p(x[s]??""),minValue:i[0],maxValue:i[1],step:1,error:x[s]&&D.includes(s)?N("nodes.manual.valueInvalid"):void 0,onChange:e=>k(s,m(e))},s):e.jsx(l,{isRequired:n,isDisabled:C,label:t,value:x[s]??"",spellCheck:!1,error:x[s]&&D.includes(s)?N(r?"nodes.manual.uuidInvalid":"nodes.manual.valueInvalid"):void 0,onChange:e=>k(s,e)},s)};return e.jsxs(e.Fragment,{children:[e.jsx(u,{label:N("ui.protocol"),items:o.map(e=>({id:e,label:n(e)})),value:x.protocol,isDisabled:C,onChange:e=>k("protocol",e)}),e.jsx(l,{isRequired:!0,isDisabled:C,label:N("ui.name"),value:x.name,error:g,onChange:e=>k("name",e)}),e.jsxs(t,{className:"top",children:[e.jsx(l,{isRequired:!0,isDisabled:C,label:N("nodes.manual.host"),value:x.host,spellCheck:!1,error:x.host&&D.includes("host")?N("nodes.manual.hostInvalid"):void 0,onChange:e=>k("host",e)}),e.jsx(d,{isRequired:!0,isDisabled:C,label:N("nodes.manual.port"),width:120,value:p(x.port),minValue:1,maxValue:65535,step:1,error:D.includes("port")?N("nodes.manual.portInvalid"):void 0,onChange:e=>k("port",m(e))})]}),i(x).map(S),I.length>0&&e.jsx(c,{title:N("nodes.manual.advanced"),children:e.jsx("div",{className:"rp-list",children:I.map(S)})}),v&&e.jsxs("div",{className:"rp-field",children:[e.jsx("span",{className:"rp-label",children:N("nodes.manual.generated")}),e.jsx("span",{className:"rp-code rp-node-link",children:v})]}),f&&e.jsx("p",{className:"rp-field-error",children:f})]})}export{x as ManualFields};
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{m as s,a,p as o,b as n,c as i}from"./Nodes-oYqjPYEh.js";import{u as r,bQ as l,co as t}from"./index-C06va4Yw.js";import{N as d,t as m,n as p}from"./NumberField-C8qnuOCX.js";import{p as u,D as c}from"./logs-BtAlqVqe.js";import{C as j}from"./Checkbox-CsFZSc5N.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Tabs-PDr10lJU.js";import"./useGridSelectionCheckbox-inhSeUkV.js";import"./Select-hQ95uOjm.js";import"./Table-Cc5T3jJO.js";import"./Virtualizer-9R4wsZhf.js";import"./subscriptionEntries-BusVyEOj.js";import"./SearchList-LS4kpJXT.js";import"./ItemText-D6SGBgOi.js";import"./nodes-oXccX15o.js";import"./BackendText-DK5RWFKi.js";import"./activity-BoXvjA12.js";import"./AppearanceControls-CEVO9-aR.js";import"./TimeCell-DSeESBN3.js";import"./CardView-jh7SJ_si.js";import"./GridList-Dgo5IXUg.js";import"./Tag-D4suq1U_.js";import"./FlagPicker-9QJIrYuT.js";import"./SearchSelect-q5tbOYXk.js";import"./outbounds-ynHeqeCa.js";import"./probe-y8tWllpS.js";const h={username:"login.username",uuid:"nodes.manual.uuid",flow:"nodes.manual.flow",password:"login.password",method:"nodes.manual.method",security:"nodes.manual.security",sni:"nodes.manual.sni",insecure:"nodes.manual.insecure",pbk:"nodes.manual.publicKey",sid:"nodes.manual.shortId",type:"nodes.manual.transport",transportHost:"nodes.xhttp.host",path:"nodes.xhttp.path",mode:"nodes.xhttp.mode",serviceName:"nodes.manual.service",obfs:"nodes.manual.obfs","obfs-password":"nodes.manual.obfsPassword",congestion_control:"nodes.manual.congestion"},b={alpn:"ALPN",spx:"SpiderX",ech_config:"ECH config"};function x({draft:x,link:v,nameError:g,linkError:f,isDisabled:C,onChange:k}){const N=r(),D=s(x),w=e=>({id:e,label:""===e?N("ui.none"):e}),I=a(x),S=({key:s,options:a,flag:o,required:n,range:i})=>{const r="username"===s&&"socks5"!==x.protocol,t=h[r?"uuid":s]?N(h[r?"uuid":s]):b[s]??s;return a?e.jsx(u,{label:t,items:a.map(w),value:x[s]??a[0],isDisabled:C,onChange:e=>k(s,e)},s):o?e.jsx(j,{label:t,isSelected:!!x[s],isDisabled:C,onChange:e=>k(s,e?o:"")},s):i?e.jsx(d,{isRequired:n,isDisabled:C,label:t,value:p(x[s]??""),minValue:i[0],maxValue:i[1],step:1,error:x[s]&&D.includes(s)?N("nodes.manual.valueInvalid"):void 0,onChange:e=>k(s,m(e))},s):e.jsx(l,{isRequired:n,isDisabled:C,label:t,value:x[s]??"",spellCheck:!1,error:x[s]&&D.includes(s)?N(r?"nodes.manual.uuidInvalid":"nodes.manual.valueInvalid"):void 0,onChange:e=>k(s,e)},s)};return e.jsxs(e.Fragment,{children:[e.jsx(u,{label:N("ui.protocol"),items:o.map(e=>({id:e,label:n(e)})),value:x.protocol,isDisabled:C,onChange:e=>k("protocol",e)}),e.jsx(l,{isRequired:!0,isDisabled:C,label:N("ui.name"),value:x.name,error:g,onChange:e=>k("name",e)}),e.jsxs(t,{className:"top",children:[e.jsx(l,{isRequired:!0,isDisabled:C,label:N("nodes.manual.host"),value:x.host,spellCheck:!1,error:x.host&&D.includes("host")?N("nodes.manual.hostInvalid"):void 0,onChange:e=>k("host",e)}),e.jsx(d,{isRequired:!0,isDisabled:C,label:N("nodes.manual.port"),width:120,value:p(x.port),minValue:1,maxValue:65535,step:1,error:D.includes("port")?N("nodes.manual.portInvalid"):void 0,onChange:e=>k("port",m(e))})]}),i(x).map(S),I.length>0&&e.jsx(c,{title:N("nodes.manual.advanced"),children:e.jsx("div",{className:"rp-list",children:I.map(S)})}),v&&e.jsxs("div",{className:"rp-field",children:[e.jsx("span",{className:"rp-label",children:N("nodes.manual.generated")}),e.jsx("span",{className:"rp-code rp-node-link",children:v})]}),f&&e.jsx("p",{className:"rp-field-error",children:f})]})}export{x as ManualFields};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{u as n,as as r,c as s,bH as t}from"./index-CUHkLMAp.js";import{d as a}from"./limitHint-nHl9AqvH.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-BYMoo8M1.js";function i({reason:i}){const o=n(),c=r(),l=a("mode",i,o,c);return l?e.jsxs(e.Fragment,{children:[e.jsx("p",{children:l.text}),l.setting&&e.jsx("p",{children:l.setting}),e.jsx(s,{external:!0,appearance:"link",href:l.link.href,children:l.link.text})]}):e.jsxs(e.Fragment,{children:[e.jsx("p",{children:o("act.modeReadOnlyReason")}),e.jsx("p",{children:o("act.modeReadOnlyAction")}),e.jsx(s,{external:!0,appearance:"link",href:t(c,"read-only"),children:o("act.readOnlyDocs")})]})}export{i as ModeReadOnlyHint};
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{u as n,as as r,c as s,bI as t}from"./index-C06va4Yw.js";import{d as a}from"./limitHint-Cb7NYoro.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-oXccX15o.js";function i({reason:i}){const o=n(),c=r(),l=a("mode",i,o,c);return l?e.jsxs(e.Fragment,{children:[e.jsx("p",{children:l.text}),l.setting&&e.jsx("p",{children:l.setting}),e.jsx(s,{external:!0,appearance:"link",href:l.link.href,children:l.link.text})]}):e.jsxs(e.Fragment,{children:[e.jsx("p",{children:o("act.modeReadOnlyReason")}),e.jsx("p",{children:o("act.modeReadOnlyAction")}),e.jsx(s,{external:!0,appearance:"link",href:t(c,"read-only"),children:o("act.readOnlyDocs")})]})}export{i as ModeReadOnlyHint};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{N as r,T as a}from"./index-CUHkLMAp.js";import{L as n}from"./Tag-4SaGY8GT.js";function s({label:r,href:a}){return a?e.jsx(n,{href:a,children:r}):r}function o({row:n}){const s=n.path??void 0;return n.nodeName?e.jsx(r,{name:n.node,className:"rp-chain",text:s}):e.jsx(a,{className:"rp-chain",text:s,children:n.node})}export{o as N,s as O};
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{N as r,T as a}from"./index-C06va4Yw.js";import{L as n}from"./Tag-D4suq1U_.js";function s({label:r,href:a}){return a?e.jsx(n,{href:a,children:r}):r}function o({row:n}){const s=n.path??void 0;return n.nodeName?e.jsx(r,{name:n.node,className:"rp-chain",text:s}):e.jsx(a,{className:"rp-chain",text:s,children:n.node})}export{o as N,s as O};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
.rp-textarea{height:auto;min-block-size:calc(3 * var(--rp-line-body) + 2 * var(--rp-space-2));resize:vertical;padding-block:var(--rp-space-2);color:inherit;font:inherit;outline:none}.rp-textarea[data-focus-visible]{outline:var(--rp-focus-width) solid var(--rp-focus-color);outline-offset:var(--rp-focus-offset)}
|
||||
.rp-textarea{height:auto;min-block-size:calc(3 * var(--rp-line-body) + 2 * var(--rp-space-2));resize:vertical;padding-block:var(--rp-space-2);color:inherit;font:inherit;outline:none}.rp-textarea[data-focus-visible]{outline:var(--rp-focus-width) solid var(--rp-focus-color);outline-offset:var(--rp-focus-offset)}.rp-cardview-meta:has(.rp-provider-kind){min-block-size:var(--rp-control-xs);align-items:center}
|
||||
@@ -1,2 +0,0 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./XhttpOptions-DeiAyCza.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-CUHkLMAp.js","./index-DhY2A0CV.css","./logs-C6Kb44nw.js","./Select-BA0NS1_z.js","./ItemText-CnEXu0-f.js","./AppearanceControls-E-VPhjIz.js","./nodes-BYMoo8M1.js","./Tabs-DiTlqyjA.js","./useGridSelectionCheckbox-CTBMGgmQ.js","./Table-DX856nrS.js","./Virtualizer-UMC7L0o2.js","./Checkbox-8Iqnc6T1.js","./subscriptionEntries-JdG-Ijgl.js","./SearchList-DMvmI1K7.js","./BackendText-Dtw6qhij.js","./activity-B3PmJo_X.js","./activity-CgcM8uHz.css","./TimeCell-N-r54xmV.js","./CardView-N7n2PJ-s.js","./GridList-CQPDUasC.js","./Tag-4SaGY8GT.js","./FlagPicker-BI-GnHgk.js","./SearchSelect-Fy-2ASgN.js","./outbounds-CUiHWeth.js","./probe-Cuvc4PWQ.js","./ManualFields-DHf-9v_o.js","./NumberField-C_bakFfF.js","./SubscriptionFields-CPXw0oPX.js"])))=>i.map(i=>d[i]);
|
||||
import{dw as e,dx as n,dp as s,dy as o,dz as t,cH as r,dA as a,cv as i,at as l,as as d,r as c,t as u,cs as p,ci as m,u as h,E as g,al as f,ae as v,cu as b,C as y,S as x,b3 as k,c as j,N as w,B as S,T as N,cw as P,cn as M,I as A,b7 as C,b8 as _,ax as R,dB as L,aK as T,dC as E,dD as O,a as F,b as G,bP as $,J as D,aQ as I,x as q,cl as B,cf as H,aW as z,h as J,aX as U,a3 as W,cP as Q,cQ as K,F as V,w as X,dE as Y,dF as Z,ag as ee,cj as ne,ch as se,D as oe,d as te,A as re,af as ae,y as ie,z as le,aD as de,dG as ce,b9 as ue,cM as pe,bO as me,cx as he,dt as ge,m as fe,p as ve,_ as be}from"./index-CUHkLMAp.js";import{j as ye,r as xe}from"./vendor-react-64fcanlc.js";import{T as ke}from"./Tabs-DiTlqyjA.js";import{D as je,c as we}from"./Table-DX856nrS.js";import{P as Se,d as Ne,u as Pe,S as Me}from"./subscriptionEntries-JdG-Ijgl.js";import{B as Ae}from"./BackendText-Dtw6qhij.js";import{g as Ce,c as _e,f as Re,S as Le,K as Te,n as Ee,B as Oe,L as Fe,A as Ge,p as $e,E as De,w as Ie,u as qe,F as Be,G as He,x as ze,r as Je}from"./logs-C6Kb44nw.js";import{ah as Ue,a3 as We,ai as Qe,aj as Ke,C as Ve,F as Xe,ak as Ye,al as Ze,am as en,an as nn,q as sn,ao as on,ap as tn,aq as rn,ar as an,as as ln,at as dn,au as cn,av as un,aw as pn,ax as mn,Y as hn,ay as gn,az as fn,aA as vn,aB as bn,aC as yn,aD as xn,aE as kn,aF as jn,aG as wn,aH as Sn,aI as Nn,aJ as Pn,aK as Mn,aL as An,T as Cn,aM as _n,V as Rn}from"./activity-B3PmJo_X.js";import{T as Ln}from"./TimeCell-N-r54xmV.js";import{C as Tn,a as En}from"./CardView-N7n2PJ-s.js";import{C as On,l as Fn}from"./AppearanceControls-E-VPhjIz.js";import{F as Gn,T as $n,L as Dn}from"./Tag-4SaGY8GT.js";import{FlagField as In}from"./FlagPicker-BI-GnHgk.js";import{S as qn}from"./SearchSelect-Fy-2ASgN.js";import{u as Bn}from"./outbounds-CUiHWeth.js";import{af as Hn,D as zn,ag as Jn,ah as Un,E as Wn,ai as Qn,aj as Kn,t as Vn,g as Xn,r as Yn,z as Zn,o as es,x as ns,A as ss,W as os,ak as ts}from"./nodes-BYMoo8M1.js";import{$ as rs}from"./SearchList-DMvmI1K7.js";import{b as as,p as is}from"./probe-Cuvc4PWQ.js";function ls(l){const{label:d,description:c,error:u,placeholder:p,necessityIndicator:m,...h}=e(l);return ye.jsxs(n,{...h,className:"rp-field",isInvalid:!!u,validationBehavior:"aria",children:[ye.jsxs(s,{className:"rp-label",children:[d,ye.jsx(o,{isRequired:h.isRequired,necessityIndicator:m})]}),ye.jsx(t,{className:"rp-input rp-textarea",rows:3,placeholder:p}),c&&ye.jsx(r,{slot:"description",className:"rp-label",children:c}),u&&ye.jsxs(a,{className:"rp-field-error",children:[ye.jsx(i,{}),u]})]})}function ds(e,n){return e.split("{names}").map((e,s)=>ye.jsxs(xe.Fragment,{children:[s>0&&n,e]},s))}function cs(e,n,s,o){const t=k(n,["",""]),r=e.slice(0,6).map((e,n)=>ye.jsxs(xe.Fragment,{children:[n>0&&t,ye.jsx(j,{appearance:"link",layout:"inline",href:o.get(e.id)??nn([e.id]),children:ye.jsx(w,{name:e.name})})]},e.id));if(e.length<=6)return r;const a=ye.jsx(j,{appearance:"link",layout:"inline",href:nn(e.map(e=>e.id)),children:s("nodes.latency.more",{n:e.length-6})});return s("nodes.latency.andMore",{names:"{names}",more:"{more}"}).split(/(\{names\}|\{more\})/).map((e,n)=>ye.jsx(xe.Fragment,{children:"{names}"===e?r:"{more}"===e?a:e},n))}const us=e=>[{label:e("nodes.latency.lowest"),icon:ye.jsx(b,{}),tint:"c2",value:"",caption:" "},{label:e("nodes.latency.highest"),icon:ye.jsx(Ve,{}),tint:"c4",value:"",caption:" "},{label:e("ui.unavailable"),icon:ye.jsx(i,{}),tint:"c5",value:""}];function ps(){const e=h(),n=d(),{nodes:s,by:o,setBy:t,view:r,hrefs:a}=function(){const e=l[d()],n=c().data?.resources,s=Ce(u(n,"nodes",{whileLoading:!0})),o=_e(u(n,"groups",{whileLoading:!1})),t=Re(u(n,"providers",{whileLoading:!0})),[r,a]=xe.useState("group"),i=p(),h=m(s.data,i),g=m(o.data,i),f=m(t.data,i),v=xe.useMemo(()=>Ue(h??[],g,r,e),[h,g,r,e]),b=xe.useMemo(()=>new Map((h??[]).map(e=>[e.id,We(e,f?.providers??[],!0)])),[h,f]);return{nodes:{...s,data:h},by:r,setBy:a,view:v,hrefs:b}}();if(s.error&&!s.data)return ye.jsx(g,{error:s.error,onRetry:s.refetch});const k=!s.data;if(s.data&&!s.data.length)return ye.jsx(f,{children:e("ui.empty")});const j=Qe(r),{measured:w,down:S}=Ke(r),N=w[0],P=w.at(-1),M=N&&P?[{label:e("nodes.latency.lowest"),icon:ye.jsx(b,{}),tint:"c2",value:N.name,nodeName:!0,valueRole:"name",caption:v(N.latest,e)},{label:e("nodes.latency.highest"),icon:ye.jsx(Ve,{}),tint:"c4",value:P.name,nodeName:!0,valueRole:"name",caption:v(P.latest,e)},{label:e("ui.unavailable"),value:e("nodes.latency.count",{n:S}),icon:ye.jsx(i,{}),tint:"c5",tone:S?"negative":void 0}]:[],A=s=>{const o=s.filter(e=>"unavailable"===e.state),t=s.filter(e=>"unmeasured"===e.state);return[...o.length?[ds(e("nodes.latency.unavailableList",{n:o.length,names:"{names}"}),cs(o,n,e,a))]:[],...t.length?[ds(e("nodes.latency.unmeasuredList",{n:t.length,names:"{names}"}),cs(t,n,e,a))]:[]]};return ye.jsxs("div",{className:"rp-chart-page",children:[ye.jsx(Xe,{facts:k?us(e):M,loading:k}),ye.jsx(y,{title:e("ui.nodeLatency"),note:s.data&&e("nodes.latency.sample",{Line truncated
|
||||
@@ -0,0 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./XhttpOptions-j6QnBUMz.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-C06va4Yw.js","./index-DdIDwpAM.css","./logs-BtAlqVqe.js","./Select-hQ95uOjm.js","./ItemText-D6SGBgOi.js","./AppearanceControls-CEVO9-aR.js","./nodes-oXccX15o.js","./Tabs-PDr10lJU.js","./useGridSelectionCheckbox-inhSeUkV.js","./Table-Cc5T3jJO.js","./Virtualizer-9R4wsZhf.js","./Checkbox-CsFZSc5N.js","./subscriptionEntries-BusVyEOj.js","./SearchList-LS4kpJXT.js","./BackendText-DK5RWFKi.js","./activity-BoXvjA12.js","./activity-CgcM8uHz.css","./TimeCell-DSeESBN3.js","./CardView-jh7SJ_si.js","./GridList-Dgo5IXUg.js","./Tag-D4suq1U_.js","./FlagPicker-9QJIrYuT.js","./SearchSelect-q5tbOYXk.js","./outbounds-ynHeqeCa.js","./probe-y8tWllpS.js","./ManualFields-CmbVQgLM.js","./NumberField-C8qnuOCX.js","./SubscriptionFields-DfTLDtXc.js"])))=>i.map(i=>d[i]);
|
||||
import{dy as e,dz as n,dr as s,dA as o,dB as t,cI as r,dC as a,cw as i,at as l,as as d,r as c,t as u,ct as p,cj as m,u as h,E as g,al as f,ae as v,cv as b,C as y,S as x,b3 as k,c as j,N as w,B as S,aD as N,T as P,cx as M,co as A,I as C,b8 as _,b9 as R,ax as L,dD as T,aK as E,dE as O,dF as F,a as G,b as $,bQ as D,J as I,aQ as q,x as B,cm as H,cg as z,aW as J,h as U,aX as Q,a3 as W,cR as K,cS as V,F as X,w as Y,dG as Z,dH as ee,ag as ne,ck as se,ci as oe,D as te,d as re,A as ae,af as ie,y as le,z as de,dI as ce,ba as ue,cN as pe,bP as me,cy as he,dv as ge,m as fe,p as ve,_ as be}from"./index-C06va4Yw.js";import{j as ye,r as xe}from"./vendor-react-64fcanlc.js";import{T as ke}from"./Tabs-PDr10lJU.js";import{D as je,c as we}from"./Table-Cc5T3jJO.js";import{P as Se,d as Ne,u as Pe,S as Me}from"./subscriptionEntries-BusVyEOj.js";import{B as Ae}from"./BackendText-DK5RWFKi.js";import{g as Ce,c as _e,f as Re,S as Le,K as Te,n as Ee,B as Oe,L as Fe,A as Ge,p as $e,E as De,w as Ie,u as qe,F as Be,G as He,x as ze,r as Je}from"./logs-BtAlqVqe.js";import{ag as Ue,a2 as Qe,ah as We,ai as Ke,C as Ve,F as Xe,aj as Ye,ak as Ze,al as en,am as nn,q as sn,an as on,ao as tn,ap as rn,aq as an,ar as ln,as as dn,at as cn,au as un,av as pn,aw as mn,X as hn,ax as gn,ay as fn,az as vn,aA as bn,aB as yn,aC as xn,aD as kn,aE as jn,aF as wn,aG as Sn,aH as Nn,aI as Pn,aJ as Mn,aK as An,Q as Cn,aL as _n,T as Rn}from"./activity-BoXvjA12.js";import{T as Ln}from"./TimeCell-DSeESBN3.js";import{C as Tn,a as En}from"./CardView-jh7SJ_si.js";import{C as On,l as Fn}from"./AppearanceControls-CEVO9-aR.js";import{F as Gn,T as $n,L as Dn}from"./Tag-D4suq1U_.js";import{FlagField as In}from"./FlagPicker-9QJIrYuT.js";import{S as qn}from"./SearchSelect-q5tbOYXk.js";import{u as Bn}from"./outbounds-ynHeqeCa.js";import{ae as Hn,C as zn,af as Jn,ag as Un,D as Qn,ah as Wn,ai as Kn,q as Vn,g as Xn,r as Yn,y as Zn,m as es,w as ns,z as ss,U as os,aj as ts}from"./nodes-oXccX15o.js";import{$ as rs}from"./SearchList-LS4kpJXT.js";import{b as as,p as is}from"./probe-y8tWllpS.js";function ls(l){const{label:d,description:c,error:u,placeholder:p,necessityIndicator:m,...h}=e(l);return ye.jsxs(n,{...h,className:"rp-field",isInvalid:!!u,validationBehavior:"aria",children:[ye.jsxs(s,{className:"rp-label",children:[d,ye.jsx(o,{isRequired:h.isRequired,necessityIndicator:m})]}),ye.jsx(t,{className:"rp-input rp-textarea",rows:3,placeholder:p}),c&&ye.jsx(r,{slot:"description",className:"rp-label",children:c}),u&&ye.jsxs(a,{className:"rp-field-error",children:[ye.jsx(i,{}),u]})]})}function ds(e,n){return e.split("{names}").map((e,s)=>ye.jsxs(xe.Fragment,{children:[s>0&&n,e]},s))}function cs(e,n,s,o){const t=k(n,["",""]),r=e.slice(0,6).map((e,n)=>ye.jsxs(xe.Fragment,{children:[n>0&&t,ye.jsx(j,{appearance:"link",layout:"inline",href:o.get(e.id)??nn([e.id]),children:ye.jsx(w,{name:e.name})})]},e.id));if(e.length<=6)return r;const a=ye.jsx(j,{appearance:"link",layout:"inline",href:nn(e.map(e=>e.id)),children:s("nodes.latency.more",{n:e.length-6})});return s("nodes.latency.andMore",{names:"{names}",more:"{more}"}).split(/(\{names\}|\{more\})/).map((e,n)=>ye.jsx(xe.Fragment,{children:"{names}"===e?r:"{more}"===e?a:e},n))}const us=e=>[{label:e("nodes.latency.lowest"),icon:ye.jsx(b,{}),tint:"c2",value:"",caption:" "},{label:e("nodes.latency.highest"),icon:ye.jsx(Ve,{}),tint:"c4",value:"",caption:" "},{label:e("ui.unavailable"),icon:ye.jsx(i,{}),tint:"c5",value:""}];function ps(){const e=h(),n=d(),{nodes:s,by:o,setBy:t,view:r,hrefs:a}=function(){const e=l[d()],n=c().data?.resources,s=Ce(u(n,"nodes",{whileLoading:!0})),o=_e(u(n,"groups",{whileLoading:!1})),t=Re(u(n,"providers",{whileLoading:!0})),[r,a]=xe.useState("group"),i=p(),h=m(s.data,i),g=m(o.data,i),f=m(t.data,i),v=xe.useMemo(()=>Ue(h??[],g,r,e),[h,g,r,e]),b=xe.useMemo(()=>new Map((h??[]).map(e=>[e.id,Qe(e,f?.providers??[],!0)])),[h,f]);return{nodes:{...s,data:h},by:r,setBy:a,view:v,hrefs:b}}();if(s.error&&!s.data)return ye.jsx(g,{error:s.error,onRetry:s.refetch});const k=!s.data;if(s.data&&!s.data.length)return ye.jsx(f,{children:e("ui.empty")});const j=We(r),{measured:w,down:S}=Ke(r),N=w[0],P=w.at(-1),M=N&&P?[{label:e("nodes.latency.lowest"),icon:ye.jsx(b,{}),tint:"c2",value:N.name,nodeName:!0,valueRole:"name",caption:v(N.latest,e)},{label:e("nodes.latency.highest"),icon:ye.jsx(Ve,{}),tint:"c4",value:P.name,nodeName:!0,valueRole:"name",caption:v(P.latest,e)},{label:e("ui.unavailable"),value:e("nodes.latency.count",{n:S}),icon:ye.jsx(i,{}),tint:"c5",tone:S?"negative":void 0}]:[],A=s=>{const o=s.filter(e=>"unavailable"===e.state),t=s.filter(e=>"unmeasured"===e.state);return[...o.length?[ds(e("nodes.latency.unavailableList",{n:o.length,names:"{names}"}),cs(o,n,e,a))]:[],...t.length?[ds(e("nodes.latency.unmeasuredList",{n:t.length,names:"{names}"}),cs(t,n,e,a))]:[]]};return ye.jsxs("div",{className:"rp-chart-page",children:[ye.jsx(Xe,{facts:k?us(e):M,loading:k}),ye.jsx(y,{title:e("ui.nodeLatency"),note:s.data&&e("nodes.latency.sample",{Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,a as t,$ as i,j as a}from"./vendor-react-64fcanlc.js";import{gh as s,e$ as n,gi as r,cX as l,d6 as o,fs as u,eM as c,eN as d,d2 as m,gj as p,eP as v,fo as h,d3 as f,g4 as b,gk as g,d1 as y,gl as N,eX as S,cY as x,gg as P,cZ as D,gm as w,fa as E,eR as V,fu as M,gn as F,d7 as R,d8 as I,d9 as C,da as B,db as O,by as T,dc as j,dl as L,dd as k,df as $,go as U,gp as A,dg as q,f8 as G,dh as K,di as W,de as z,I as H,dw as Y,u as Z,dI as _,dp as X,dy as J,gq as Q,cB as ee,bb as te,cH as ie,dA as ae,cv as se,gr as ne,gs as re}from"./index-CUHkLMAp.js";const le=new RegExp("^.*\\(.*\\).*$"),oe=["latn","arab","hanidec","deva","beng","fullwide"];class ue{constructor(e,t={}){this.locale=e,this.options=t}parse(e){return de(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,i){return de(this.locale,this.options,e).isValidPartialNumber(e,t,i)}getNumberingSystem(e){return de(this.locale,this.options,e).options.numberingSystem}}const ce=new Map;function de(e,t,i){let a=me(e,t);if(!e.includes("-nu-")&&!a.isValidPartialNumber(i))for(let s of oe)if(s!==a.options.numberingSystem){let a=me(e+(e.includes("-u-")?"-nu-":"-u-nu-")+s,t);if(a.isValidPartialNumber(i))return a}return a}function me(e,t){let i=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():""),a=ce.get(i);return a||(a=new pe(e,t),ce.set(i,a)),a}class pe{constructor(e,t={}){this.locale=e,1!==t.roundingIncrement&&null!=t.roundingIncrement&&(null==t.maximumFractionDigits&&null==t.minimumFractionDigits?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):null==t.maximumFractionDigits?t.maximumFractionDigits=t.minimumFractionDigits:null==t.minimumFractionDigits&&(t.minimumFractionDigits=t.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,i,a){let s=new Intl.NumberFormat(e,{...i,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:!0}),n=s.formatToParts(-10000.111),r=s.formatToParts(10000.111),l=he.map(e=>s.formatToParts(e)),o=l.map((e,t)=>{let i=e.find(e=>"unit"===e.type);return i&&!e.some(e=>"integer"===e.type||"fraction"===e.type)?{unit:i.value,value:he[t]}:null}).filter(e=>!!e),u=n.find(e=>"minusSign"===e.type)?.value??"-",c=r.find(e=>"plusSign"===e.type)?.value;c||"exceptZero"!==a?.signDisplay&&"always"!==a?.signDisplay||(c="+");let d=new Intl.NumberFormat(e,{...i,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001),m=d.find(e=>"decimal"===e.type)?.value,p=n.find(e=>"group"===e.type)?.value,v=n.filter(e=>!ve.has(e.type)).map(e=>be(e.value)),h=l.flatMap(e=>e.filter(e=>!ve.has(e.type)).map(e=>be(e.value))),f=[...new Set([...v,...h])].sort((e,t)=>t.length-e.length),b=0===f.length?new RegExp("\\p{White_Space}|\\p{Cf}","gu"):new RegExp(`${f.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),g=[...new Intl.NumberFormat(i.locale,{useGrouping:!1}).format(9876543210)].reverse(),y=new Map(g.map((e,t)=>[e,t])),N=new RegExp(`[${g.join("")}]`,"g");return{minusSign:u,plusSign:c,decimal:m,group:p,literals:b,numeral:N,numerals:g,index:e=>String(y.get(e)),noNumeralUnits:o}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}parse(e){let t=this.formatter.resolvedOptions().useGrouping,i=this.sanitize(e);if(!t&&this.symbols.group&&i.includes(this.symbols.group))return NaN;if(this.symbols.group&&(i=i.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(i=i.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(i=i.replace(this.symbols.minusSign,"-")),i=i.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=i.indexOf("-");i=i.replace("-",""),i=i.replace("+","");let t=i.indexOf(".");-1===t&&(t=i.length),i=i.replace(".",""),i=t-2==0?`0.${i}`:t-2==-1?`0.0${i}`:t-2==-2?"0.00":`${i.slice(0,t-2)}.${i.slice(t-2)}`,e>-1&&(i=`-${i}`)}let a=i?+i:NaN;if(isNaN(a))return NaN;if("percent"===this.options.style){let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new ue(this.locale,e).parse(new s(this.locale,e).format(a))}return"accounting"===this.options.currencySign&&le.test(e)&&(a*=-1),a}sanitize(e){let t=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(t=>t.unit===e)?this.symbols.noNumeralUnits.find(t=>t.unit===e).value.toString():(e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=fe(e,",",this.symbols.decimal),e=fe(e,String.fromCharCode(1548),this.symbols.decimal)),this.symbols.groLine truncated
|
||||
import{r as e,a as t,$ as i,j as a}from"./vendor-react-64fcanlc.js";import{gj as s,f1 as n,gk as r,cZ as l,d8 as o,fu as u,eO as c,eP as d,d4 as m,gl as p,eR as v,fq as h,d5 as f,g6 as b,gm as g,d3 as y,gn as N,eZ as S,c_ as x,gi as P,c$ as D,go as w,fc as E,eT as V,fw as M,gp as F,d9 as R,da as I,db as C,dc as B,dd as O,bz as T,de as j,dn as L,df as k,dh as $,gq as U,gr as q,di as A,fa as G,dj as K,dk as W,dg as z,I as H,dy as Z,u as _,dK as Y,dr as X,dA as J,gs as Q,cC as ee,bc as te,cI as ie,dC as ae,cw as se,gt as ne,gu as re}from"./index-C06va4Yw.js";const le=new RegExp("^.*\\(.*\\).*$"),oe=["latn","arab","hanidec","deva","beng","fullwide"];class ue{constructor(e,t={}){this.locale=e,this.options=t}parse(e){return de(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,i){return de(this.locale,this.options,e).isValidPartialNumber(e,t,i)}getNumberingSystem(e){return de(this.locale,this.options,e).options.numberingSystem}}const ce=new Map;function de(e,t,i){let a=me(e,t);if(!e.includes("-nu-")&&!a.isValidPartialNumber(i))for(let s of oe)if(s!==a.options.numberingSystem){let a=me(e+(e.includes("-u-")?"-nu-":"-u-nu-")+s,t);if(a.isValidPartialNumber(i))return a}return a}function me(e,t){let i=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():""),a=ce.get(i);return a||(a=new pe(e,t),ce.set(i,a)),a}class pe{constructor(e,t={}){this.locale=e,1!==t.roundingIncrement&&null!=t.roundingIncrement&&(null==t.maximumFractionDigits&&null==t.minimumFractionDigits?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):null==t.maximumFractionDigits?t.maximumFractionDigits=t.minimumFractionDigits:null==t.minimumFractionDigits&&(t.minimumFractionDigits=t.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,i,a){let s=new Intl.NumberFormat(e,{...i,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:!0}),n=s.formatToParts(-10000.111),r=s.formatToParts(10000.111),l=he.map(e=>s.formatToParts(e)),o=l.map((e,t)=>{let i=e.find(e=>"unit"===e.type);return i&&!e.some(e=>"integer"===e.type||"fraction"===e.type)?{unit:i.value,value:he[t]}:null}).filter(e=>!!e),u=n.find(e=>"minusSign"===e.type)?.value??"-",c=r.find(e=>"plusSign"===e.type)?.value;c||"exceptZero"!==a?.signDisplay&&"always"!==a?.signDisplay||(c="+");let d=new Intl.NumberFormat(e,{...i,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001),m=d.find(e=>"decimal"===e.type)?.value,p=n.find(e=>"group"===e.type)?.value,v=n.filter(e=>!ve.has(e.type)).map(e=>be(e.value)),h=l.flatMap(e=>e.filter(e=>!ve.has(e.type)).map(e=>be(e.value))),f=[...new Set([...v,...h])].sort((e,t)=>t.length-e.length),b=0===f.length?new RegExp("\\p{White_Space}|\\p{Cf}","gu"):new RegExp(`${f.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),g=[...new Intl.NumberFormat(i.locale,{useGrouping:!1}).format(9876543210)].reverse(),y=new Map(g.map((e,t)=>[e,t])),N=new RegExp(`[${g.join("")}]`,"g");return{minusSign:u,plusSign:c,decimal:m,group:p,literals:b,numeral:N,numerals:g,index:e=>String(y.get(e)),noNumeralUnits:o}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}parse(e){let t=this.formatter.resolvedOptions().useGrouping,i=this.sanitize(e);if(!t&&this.symbols.group&&i.includes(this.symbols.group))return NaN;if(this.symbols.group&&(i=i.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(i=i.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(i=i.replace(this.symbols.minusSign,"-")),i=i.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=i.indexOf("-");i=i.replace("-",""),i=i.replace("+","");let t=i.indexOf(".");-1===t&&(t=i.length),i=i.replace(".",""),i=t-2==0?`0.${i}`:t-2==-1?`0.0${i}`:t-2==-2?"0.00":`${i.slice(0,t-2)}.${i.slice(t-2)}`,e>-1&&(i=`-${i}`)}let a=i?+i:NaN;if(isNaN(a))return NaN;if("percent"===this.options.style){let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new ue(this.locale,e).parse(new s(this.locale,e).format(a))}return"accounting"===this.options.currencySign&&le.test(e)&&(a*=-1),a}sanitize(e){let t=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(t=>t.unit===e)?this.symbols.noNumeralUnits.find(t=>t.unit===e).value.toString():(e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=fe(e,",",this.symbols.decimal),e=fe(e,String.fromCharCode(1548),this.symbols.decimal)),this.symbols.groLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{an as a,Y as s,bH as i,D as o,a$ as n,b0 as r,b2 as l,a7 as d,a6 as c,ab as p,aZ as u,a2 as m,h as v,a3 as h,b3 as f,u as g,as as b,at as x,r as j,au as y,t as w,aw as k,av as _,F as N,c1 as S,E as R,aN as H,c2 as L,c as O,T as C,m as D,C as P,c3 as A,al as I,aD as F,aJ as V,S as U,c4 as W,P as B,B as T,c5 as M}from"./index-CUHkLMAp.js";import{d as q,e as E}from"./files-Dt8K7QfP.js";import{e as J,c as K,u as z,a as G,D as Q,R as X}from"./activity-B3PmJo_X.js";import{r as Y,l as Z,f as $,a as ee,b as te}from"./limitHint-nHl9AqvH.js";import{g as ae}from"./nodes-BYMoo8M1.js";import{D as se}from"./Table-DX856nrS.js";import{L as ie,K as oe,A as ne,B as re}from"./logs-C6Kb44nw.js";import{D as le}from"./DaeCode-DEjXqvav.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-CnEXu0-f.js";import"./AppearanceControls-E-VPhjIz.js";import"./useGridSelectionCheckbox-CTBMGgmQ.js";import"./Select-BA0NS1_z.js";import"./Virtualizer-UMC7L0o2.js";import"./Checkbox-8Iqnc6T1.js";import"./daeTokens-BVtuNnWZ.js";const de={connections:v("connections",{tab:"list"}),flows:v("flows",{tab:"records"}),routing_trace:v("rules",{tab:"trace"}),dns_query:v("dns",{tab:"query"}),dns_cache:v("dns",{tab:"cache"}),dns_log:v("dns",{tab:"log"}),events:v("events"),probes:v("nodes",{tab:"latency"}),traffic_history:v("activity",{card:"history"}),memory_history:v("activity",{card:"memory"}),runtime_outbounds:v("activity",{card:"outbounds"}),logs:v("logs"),providers:v("nodes"),rules:v("rules",{tab:"list"}),config:v("config"),config_validate:v("config",{tab:"validate"}),runtime_settings:v("settings",{card:"runtime"}),geodata:v("settings",{card:"geodata"})},ce={ebpf:"ov.v.ebpf",userspace:"ov.v.userspace",mock:"ov.v.mock",active:"ov.v.active",degraded:"ov.v.degraded",detached:"ov.v.detached",failed:"ov.v.failed",disabled:"ov.v.disabled",full:"ov.v.full",partial:"ov.v.partial",none:"ov.v.none",real:"ov.v.real",loaded:"ov.v.loaded",not_loaded:"ov.v.notLoaded",attached:"ov.v.attached",partially_attached:"ov.v.partiallyAttached",published:"ov.v.published",not_published:"ov.v.notPublished",healthy:"ov.v.healthy",ready:"ov.v.ready",error:"ov.v.error",unknown:"ov.v.unknown",ingress:"ov.v.ingress",egress:"ov.v.egress"};function pe(e,t){return ce[e]?t(ce[e]):e}function ue(e,t,a,s,i=!1,o=[]){const n=e.ebpf,r=n?.maps?.conn_state,l=(e,t)=>{const s=function(e,t,a){return"degraded"===e?{title:a("ov.v.degraded"),text:a(t?"ov.degradedHelp.runtime":"ov.degradedHelp.datapath")}:"unknown"===e?{title:a("ov.v.unknown"),text:a("ov.unknownHelp")}:void 0}(t,i,a);return s?{label:a(e),value:pe(t,a),help:s}:[a(e),pe(t,a)]},d=n?.maps?.state??"unknown",c=n&&function(e,t,a,s){if("unknown"!==e||!t.length)return;const i=new Intl.ListFormat(s,{type:"conjunction"}).format(t);return{title:a("ov.v.notVerified"),text:a("ov.notVerifiedHelp",{hooks:i})}}(n.hooks,o,a,s);return[l("ov.f.kind",e.kind),l("ov.f.state",e.state),..."partial"===e.visibility&&n?[]:[l("ov.f.visibility",e.visibility)],...n?[l("ov.f.backend",n.backend),l("ov.f.programs",n.programs),c?{label:a("ov.f.hooks"),value:a("ov.v.notVerified"),help:c}:l("ov.f.hooks",n.hooks),l("ov.f.routing",n.routing.state),l("ov.f.health",n.health),..."partial"===d&&r&&!r.occupancy_known?[[a("ov.f.maps"),a("ov.mapCapacity",{capacity:h(r.capacity,s)})]]:[l("ov.f.maps",d),[a("ov.f.connState"),r?.occupancy_known&&null!==r.occupancy?a("ui.fraction",{part:h(r.occupancy,s),whole:h(r.capacity,s)}):r?a("ov.occupancyUnknown",{capacity:h(r.capacity,s)}):t]]]:[]]}const me={service:"ov.v.cgroupService",shared:"ov.v.cgroupShared"},ve={service:"ov.cgroupHelp.service",shared:"ov.cgroupHelp.shared"};function he(e,t,s,i=[],o=!1){const n=e.cgroup?.scope,r=e=>{const t=a(e??null);return null===t?"—":h(t,s)},l=[["ov.f.rss",c(e.process?.rss_bytes??null,s)],["ov.f.cgroupCurrent",c(e.cgroup?.current_bytes??null,s)],["ov.f.cgroupLimit",o&&null===e.cgroup?.limit_bytes?t("ov.noLimit"):c(e.cgroup?.limit_bytes??null,s)],["ov.f.cgroupScope",n&&"unknown"!==n?t(me[n]):"—"],["ov.f.oomHigh",r(e.cgroup?.events?.high)],["ov.f.oom",r(e.cgroup?.events?.oom)],["ov.f.oomKill",r(e.cgroup?.events?.oom_kill)],["ov.f.ebpfBytes",c(e.kernel?.ebpf_bytes??null,s)]],d=[...i,..."unknown"===n?["ov.f.cgroupScope"]:[],...e.kernel?[]:["ov.f.ebpfBytes"]];return l.filter(([e])=>!d.includes(e)).map(([e,a])=>"ov.f.cgroupScope"===e&&n&&"unknown"!==n?{label:t(e),value:a,help:{title:t(e),text:t("ui.valuePair",{label:a,value:t(ve[n])})}}:[t(e),a])}const fe=new Set(["persistence_unavailable","state_cache_unavailable"]);const ge={probes:"ov.lim.h.probes",subscriptions:"ov.lim.h.subscriptions",reload:"ov.lim.h.reload",config_validate:"ov.lim.h.configValidate"};function be(e,t,a,s,o){const n=e.resources,r=ae(t),l=t=>r.reason(t,e,o),d=(e,t)=>({href:i(s,e),text:a(t),external:!0}),c=(e,t)=>({label:a("ov.lim.why"),text:a(e),links:t?[t]:[]}),p=e=>{const t=e.find(e=>void 0!==e),s=t&&ee[t.code];if(!s)return;const i=s.docs?[d(...s.docs)]:[],o=e.flatLine truncated
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{an as a,Y as s,bI as i,D as o,a$ as n,b0 as r,b2 as l,a7 as d,a6 as c,ab as p,aZ as u,a2 as m,h as v,a3 as h,b3 as f,u as g,as as b,at as x,r as j,au as y,t as w,aw as k,av as _,F as N,c2 as S,E as R,aN as H,c3 as L,c as O,T as C,m as D,C as I,c4 as P,al as A,aD as F,aJ as V,S as U,c5 as W,P as B,B as T,c6 as M}from"./index-C06va4Yw.js";import{d as q,e as E}from"./files-Dt8K7QfP.js";import{e as J,c as K,u as Y,a as Z,D as z,R as G}from"./activity-BoXvjA12.js";import{r as X,l as $,f as Q,a as ee,b as te}from"./limitHint-Cb7NYoro.js";import{g as ae}from"./nodes-oXccX15o.js";import{D as se}from"./Table-Cc5T3jJO.js";import{L as ie,K as oe,A as ne,B as re}from"./logs-BtAlqVqe.js";import{D as le}from"./DaeCode-DEjXqvav.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-D6SGBgOi.js";import"./AppearanceControls-CEVO9-aR.js";import"./useGridSelectionCheckbox-inhSeUkV.js";import"./Select-hQ95uOjm.js";import"./Virtualizer-9R4wsZhf.js";import"./Checkbox-CsFZSc5N.js";import"./daeTokens-BVtuNnWZ.js";const de={connections:v("connections",{tab:"list"}),flows:v("flows",{tab:"records"}),routing_trace:v("rules",{tab:"trace"}),dns_query:v("dns",{tab:"query"}),dns_cache:v("dns",{tab:"cache"}),dns_log:v("dns",{tab:"log"}),events:v("events"),probes:v("nodes",{tab:"latency"}),traffic_history:v("activity",{card:"history"}),memory_history:v("activity",{card:"memory"}),runtime_outbounds:v("activity",{card:"outbounds"}),logs:v("logs"),providers:v("nodes"),rules:v("rules",{tab:"list"}),config:v("config"),config_validate:v("config",{tab:"validate"}),runtime_settings:v("settings",{card:"runtime"}),geodata:v("settings",{card:"geodata"})},ce={ebpf:"ov.v.ebpf",userspace:"ov.v.userspace",mock:"ov.v.mock",active:"ov.v.active",degraded:"ov.v.degraded",detached:"ov.v.detached",failed:"ov.v.failed",disabled:"ov.v.disabled",full:"ov.v.full",partial:"ov.v.partial",none:"ov.v.none",real:"ov.v.real",loaded:"ov.v.loaded",not_loaded:"ov.v.notLoaded",attached:"ov.v.attached",partially_attached:"ov.v.partiallyAttached",published:"ov.v.published",not_published:"ov.v.notPublished",healthy:"ov.v.healthy",ready:"ov.v.ready",error:"ov.v.error",unknown:"ov.v.unknown",ingress:"ov.v.ingress",egress:"ov.v.egress"};function pe(e,t){return ce[e]?t(ce[e]):e}function ue(e,t,a,s,i=!1,o=[]){const n=e.ebpf,r=n?.maps?.conn_state,l=(e,t)=>{const s=function(e,t,a){return"degraded"===e?{title:a("ov.v.degraded"),text:a(t?"ov.degradedHelp.runtime":"ov.degradedHelp.datapath")}:"unknown"===e?{title:a("ov.v.unknown"),text:a("ov.unknownHelp")}:void 0}(t,i,a);return s?{label:a(e),value:pe(t,a),help:s}:[a(e),pe(t,a)]},d=n?.maps?.state??"unknown",c=n&&function(e,t,a,s){if("unknown"!==e||!t.length)return;const i=new Intl.ListFormat(s,{type:"conjunction"}).format(t);return{title:a("ov.v.notVerified"),text:a("ov.notVerifiedHelp",{hooks:i})}}(n.hooks,o,a,s);return[l("ov.f.kind",e.kind),l("ov.f.state",e.state),..."partial"===e.visibility&&n?[]:[l("ov.f.visibility",e.visibility)],...n?[l("ov.f.backend",n.backend),l("ov.f.programs",n.programs),c?{label:a("ov.f.hooks"),value:a("ov.v.notVerified"),help:c}:l("ov.f.hooks",n.hooks),l("ov.f.routing",n.routing.state),l("ov.f.health",n.health),..."partial"===d&&r&&!r.occupancy_known?[[a("ov.f.maps"),a("ov.mapCapacity",{capacity:h(r.capacity,s)})]]:[l("ov.f.maps",d),[a("ov.f.connState"),r?.occupancy_known&&null!==r.occupancy?a("ui.fraction",{part:h(r.occupancy,s),whole:h(r.capacity,s)}):r?a("ov.occupancyUnknown",{capacity:h(r.capacity,s)}):t]]]:[]]}const me={service:"ov.v.cgroupService",shared:"ov.v.cgroupShared"},ve={service:"ov.cgroupHelp.service",shared:"ov.cgroupHelp.shared"};function he(e,t,s,i=[],o=!1){const n=e.cgroup?.scope,r=e=>{const t=a(e??null);return null===t?"—":h(t,s)},l=[["ov.f.rss",c(e.process?.rss_bytes??null,s)],["ov.f.cgroupCurrent",c(e.cgroup?.current_bytes??null,s)],["ov.f.cgroupLimit",o&&null===e.cgroup?.limit_bytes?t("ov.noLimit"):c(e.cgroup?.limit_bytes??null,s)],["ov.f.cgroupScope",n&&"unknown"!==n?t(me[n]):"—"],["ov.f.oomHigh",r(e.cgroup?.events?.high)],["ov.f.oom",r(e.cgroup?.events?.oom)],["ov.f.oomKill",r(e.cgroup?.events?.oom_kill)],["ov.f.ebpfBytes",c(e.kernel?.ebpf_bytes??null,s)]],d=[...i,..."unknown"===n?["ov.f.cgroupScope"]:[],...e.kernel?[]:["ov.f.ebpfBytes"]];return l.filter(([e])=>!d.includes(e)).map(([e,a])=>"ov.f.cgroupScope"===e&&n&&"unknown"!==n?{label:t(e),value:a,help:{title:t(e),text:t("ui.valuePair",{label:a,value:t(ve[n])})}}:[t(e),a])}const fe=new Set(["persistence_unavailable","state_cache_unavailable"]);const ge={probes:"ov.lim.h.probes",subscriptions:"ov.lim.h.subscriptions",reload:"ov.lim.h.reload",config_validate:"ov.lim.h.configValidate"};function be(e,t,a,s,o){const n=e.resources,r=ae(t),l=t=>r.reason(t,e,o),d=(e,t)=>({href:i(s,e),text:a(t),external:!0}),c=(e,t)=>({label:a("ov.lim.why"),text:a(e),links:t?[t]:[]}),p=e=>{const t=e.find(e=>void 0!==e),s=t&&ee[t.code];if(!s)return;const i=s.docs?[d(...s.docs)]:[],o=e.flatLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{S as n,u as i,d as s,P as r}from"./subscriptionEntries-JdG-Ijgl.js";import{C as o,a as l,b as a,E as d}from"./CheckboxSet-CZH2lrzI.js";import{A as c}from"./AddCircle-D2cMd6zF.js";import{I as u,W as p,l as m,s as h,u as g,A as f,v as b,o as y,m as v,w as x,Y as j,X as k,S as w,V as S,r as N,G as _}from"./nodes-BYMoo8M1.js";import{by as M,u as C,h as I,I as O,N as E,w as D,aX as P,Z as L,cI as R,O as z,aY as T,b_ as $,cJ as A,b4 as F,aW as K,a3 as q,at as H,as as V,cB as G,bb as J,j as B,al as U,cn as X,bP as Q,cx as W,B as Y,aK as Z,bo as ee,c as te,cK as ne,b9 as ie,cL as se,cM as re,aG as oe,m as le,bO as ae,cd as de,af as ce,cN as ue,cO as pe,r as me,t as he,cP as ge,aT as fe,cQ as be,v as ye,J as ve,z as xe,ay as je,Q as ke,aF as we,cf as Se,s as Ne,cR as _e,cS as Me,x as Ce,y as Ie,E as Oe,cw as Ee,a as De,b as Pe,aN as Le,cT as Re,C as ze,T as Te,cU as $e,aD as Ae}from"./index-CUHkLMAp.js";import{T as Fe,a as Ke,L as qe}from"./Tag-4SaGY8GT.js";import{D as He}from"./DaeCode-DEjXqvav.js";import{N as Ve,p as Ge,D as Je,K as Be,g as Ue,f as Xe,u as Qe,c as We,w as Ye,x as Ze,m as et,y as tt,S as nt,L as it,B as st,n as rt}from"./logs-C6Kb44nw.js";import{C as ot}from"./AppearanceControls-E-VPhjIz.js";import{$ as lt}from"./SearchList-DMvmI1K7.js";import{v as at,i as dt,w as ct,x as ut,y as pt,z as mt,A as ht,E as gt,G as ft,H as bt,I as yt,J as vt,K as xt,M as jt,N as kt,O as wt,P as St,Q as Nt,T as _t,V as Mt,X as Ct,Y as It,Z as Ot,_ as Et,a as Dt,$ as Pt}from"./activity-B3PmJo_X.js";import{$ as Lt,a as Rt}from"./GridList-CQPDUasC.js";import{b as zt,c as Tt,d as $t,e as At,$ as Ft}from"./Virtualizer-UMC7L0o2.js";import{S as Kt}from"./SearchSelect-Fy-2ASgN.js";import{B as qt}from"./BackendText-Dtw6qhij.js";import{N as Ht,t as Vt,n as Gt}from"./NumberField-C_bakFfF.js";import{p as Jt,a as Bt}from"./probe-Cuvc4PWQ.js";import{f as Ut}from"./limitHint-nHl9AqvH.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BA0NS1_z.js";import"./ItemText-CnEXu0-f.js";import"./Checkbox-8Iqnc6T1.js";import"./useGridSelectionCheckbox-CTBMGgmQ.js";import"./daeTokens-BVtuNnWZ.js";const Xt={minItemSize:new Tt(200,200),maxItemSize:new Tt(1/0,1/0),preserveAspectRatio:!1,minSpace:new Tt(18,18),maxSpace:1/0,maxColumns:1/0,dropIndicatorThickness:2,loaderHeight:48};class Qt extends zt{shouldInvalidateLayoutOptions(e,t){return e.maxColumns!==t.maxColumns||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.preserveAspectRatio!==t.preserveAspectRatio||!(e.minItemSize||Xt.minItemSize).equals(t.minItemSize||Xt.minItemSize)||!(e.maxItemSize||Xt.maxItemSize).equals(t.maxItemSize||Xt.maxItemSize)||!(e.minSpace||Xt.minSpace).equals(t.minSpace||Xt.minSpace)||e.maxHorizontalSpace!==t.maxHorizontalSpace||e.loaderHeight!==t.loaderHeight||e.direction!==t.direction}update(e){let{minItemSize:t=Xt.minItemSize,maxItemSize:n=Xt.maxItemSize,preserveAspectRatio:i=Xt.preserveAspectRatio,minSpace:s=Xt.minSpace,maxHorizontalSpace:r=Xt.maxSpace,maxColumns:o=Xt.maxColumns,dropIndicatorThickness:l=Xt.dropIndicatorThickness,loaderHeight:a=Xt.loaderHeight,direction:d="ltr"}=e.layoutOptions||{};this.dropIndicatorThickness=l,this.direction=d;let c=this.virtualizer.size.width,u=Math.min(n.width,c),p=Number.isFinite(n.height)?n.height:Math.floor(t.height/t.width*u),m=Math.floor(c/(t.width+s.width)),h=Math.max(1,Math.min(o,m));this.numColumns=h;let g=c-s.width*Math.max(0,h),f=Math.floor(g/h);f=Math.max(t.width,Math.min(u,f));let b=(f-t.width)/Math.max(1,u-t.width),y=t.height+Math.floor((p-t.height)*b);y=Math.max(t.height,Math.min(p,y));let v=Math.min(Math.max(r,s.width),Math.floor((c-h*f)/(h+1)));this.gap=new Tt(v,s.height),this.margin=Math.floor((c-h*f-v*(h+1))/2);let x=this.virtualizer.collection,j=x.size,k=x.getLastKey();for(let O=0;O<2&&null!=k;O++){let e=x.getItem(k);if("skeleton"===e?.type){j++;break}k=x.getKeyBefore(k)}let w=Math.ceil(j/h),S=x[Symbol.iterator](),N=w>0?s.height:0,_=new Map,M=null,C=0;for(let O=0;O<w;O++){let t=0,n=[];for(let s=0;s<h;s++){let r=M||S.next().value;if(!r)break;if("loader"===r.type)continue;"skeleton"===r.type&&(M=r);let o=M?`${M.key}-${C++}`:r.key,l=this.layoutInfos.get(o),a=r;M&&(a=l&&l.content.key===o?l.content:{...M,key:o});let d=v+s*(f+v)+this.margin,c=y,u=!i;l&&u&&(c=l.rect.height,u=e.layoutOptionsChanged||e.sizeChanged||l.estimatedSize||l.content!==a);let p=new At(d,N,f,c),m=new $t(r.type,o,p);m.estimatedSize=u,m.allowOverflow=!0,m.content=a,_.set(o,m),n.push(m),t=Math.max(t,m.rect.height)}for(let e of n)e.rect.height=t;N+=t+s.height,M&&O===w-1&&N<this.virtualizer.size.height&&w++}let I=x.getItem(x.getLastKey());if("loader"===I?.type){(C>0||!I.props.isLoading)&&(a=0);let e=new At(v,N,c-2*v,a),t=new $t("loader",I.key,e);_.set(I.key,t),N=t.rect.maxY}this.layoutInfos=_,this.contentSize=new Tt(this.virtualizer.size.width,N)}getLayoutInfo(e){return this.layoutInfos.get(e)||null}getContentSize(){return this.contentSize}getVisibleLayoutInfos(e){let t=[];for(let nLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{S as n,u as i,d as s,P as r}from"./subscriptionEntries-BusVyEOj.js";import{C as o,a as l,b as a,E as c}from"./CheckboxSet-C1rY3UKa.js";import{A as d}from"./AddCircle-6b-rL1eo.js";import{H as u,U as p,l as m,s as h,u as g,z as f,t as b,m as y,v,W as x,V as j,n as k,R as w,T as S,r as N,F as _}from"./nodes-oXccX15o.js";import{bz as M,u as C,h as I,I as O,N as E,s as R,w as D,aX as P,Z as L,cJ as z,O as T,aY as $,b$ as F,cK as A,b3 as K,b5 as q,aW as H,a3 as V,at as G,as as J,cC as B,bc as U,j as W,al as Q,co as X,bQ as Y,cy as Z,B as ee,aK as te,bp as ne,c as ie,cL as se,ba as re,cM as oe,cN as le,aG as ae,m as ce,bP as de,ce as ue,af as pe,cO as me,cP as he,cQ as ge,Q as fe,r as be,t as ye,cR as ve,aT as xe,cS as je,v as ke,J as we,z as Se,ay as Ne,aF as _e,cg as Me,cT as Ce,cU as Ie,x as Oe,y as Ee,E as Re,cx as De,a as Pe,b as Le,aN as ze,cV as Te,C as $e,T as Fe,cW as Ae,aD as Ke}from"./index-C06va4Yw.js";import{T as qe,a as He,L as Ve}from"./Tag-D4suq1U_.js";import{D as Ge}from"./DaeCode-DEjXqvav.js";import{N as Je,p as Be,D as Ue,K as We,g as Qe,f as Xe,u as Ye,c as Ze,w as et,x as tt,m as nt,y as it,S as st,L as rt,B as ot,n as lt}from"./logs-BtAlqVqe.js";import{C as at}from"./AppearanceControls-CEVO9-aR.js";import{$ as ct}from"./SearchList-LS4kpJXT.js";import{v as dt,i as ut,w as pt,x as mt,y as ht,z as gt,A as ft,E as bt,G as yt,H as vt,I as xt,J as jt,K as kt,M as wt,N as St,O as Nt,P as _t,Q as Mt,T as Ct,V as It,X as Ot,Y as Et,Z as Rt,a as Dt,_ as Pt}from"./activity-BoXvjA12.js";import{$ as Lt,a as zt}from"./GridList-Dgo5IXUg.js";import{b as Tt,c as $t,d as Ft,e as At,$ as Kt}from"./Virtualizer-9R4wsZhf.js";import{S as qt}from"./SearchSelect-q5tbOYXk.js";import{B as Ht}from"./BackendText-DK5RWFKi.js";import{N as Vt,t as Gt,n as Jt}from"./NumberField-C8qnuOCX.js";import{c as Bt}from"./groupFilters-D2DpD7-F.js";import{p as Ut,a as Wt}from"./probe-y8tWllpS.js";import{f as Qt}from"./limitHint-Cb7NYoro.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-hQ95uOjm.js";import"./ItemText-D6SGBgOi.js";import"./Checkbox-CsFZSc5N.js";import"./useGridSelectionCheckbox-inhSeUkV.js";import"./daeTokens-BVtuNnWZ.js";const Xt={minItemSize:new $t(200,200),maxItemSize:new $t(1/0,1/0),preserveAspectRatio:!1,minSpace:new $t(18,18),maxSpace:1/0,maxColumns:1/0,dropIndicatorThickness:2,loaderHeight:48};class Yt extends Tt{shouldInvalidateLayoutOptions(e,t){return e.maxColumns!==t.maxColumns||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.preserveAspectRatio!==t.preserveAspectRatio||!(e.minItemSize||Xt.minItemSize).equals(t.minItemSize||Xt.minItemSize)||!(e.maxItemSize||Xt.maxItemSize).equals(t.maxItemSize||Xt.maxItemSize)||!(e.minSpace||Xt.minSpace).equals(t.minSpace||Xt.minSpace)||e.maxHorizontalSpace!==t.maxHorizontalSpace||e.loaderHeight!==t.loaderHeight||e.direction!==t.direction}update(e){let{minItemSize:t=Xt.minItemSize,maxItemSize:n=Xt.maxItemSize,preserveAspectRatio:i=Xt.preserveAspectRatio,minSpace:s=Xt.minSpace,maxHorizontalSpace:r=Xt.maxSpace,maxColumns:o=Xt.maxColumns,dropIndicatorThickness:l=Xt.dropIndicatorThickness,loaderHeight:a=Xt.loaderHeight,direction:c="ltr"}=e.layoutOptions||{};this.dropIndicatorThickness=l,this.direction=c;let d=this.virtualizer.size.width,u=Math.min(n.width,d),p=Number.isFinite(n.height)?n.height:Math.floor(t.height/t.width*u),m=Math.floor(d/(t.width+s.width)),h=Math.max(1,Math.min(o,m));this.numColumns=h;let g=d-s.width*Math.max(0,h),f=Math.floor(g/h);f=Math.max(t.width,Math.min(u,f));let b=(f-t.width)/Math.max(1,u-t.width),y=t.height+Math.floor((p-t.height)*b);y=Math.max(t.height,Math.min(p,y));let v=Math.min(Math.max(r,s.width),Math.floor((d-h*f)/(h+1)));this.gap=new $t(v,s.height),this.margin=Math.floor((d-h*f-v*(h+1))/2);let x=this.virtualizer.collection,j=x.size,k=x.getLastKey();for(let O=0;O<2&&null!=k;O++){let e=x.getItem(k);if("skeleton"===e?.type){j++;break}k=x.getKeyBefore(k)}let w=Math.ceil(j/h),S=x[Symbol.iterator](),N=w>0?s.height:0,_=new Map,M=null,C=0;for(let O=0;O<w;O++){let t=0,n=[];for(let s=0;s<h;s++){let r=M||S.next().value;if(!r)break;if("loader"===r.type)continue;"skeleton"===r.type&&(M=r);let o=M?`${M.key}-${C++}`:r.key,l=this.layoutInfos.get(o),a=r;M&&(a=l&&l.content.key===o?l.content:{...M,key:o});let c=v+s*(f+v)+this.margin,d=y,u=!i;l&&u&&(d=l.rect.height,u=e.layoutOptionsChanged||e.sizeChanged||l.estimatedSize||l.content!==a);let p=new At(c,N,f,d),m=new Ft(r.type,o,p);m.estimatedSize=u,m.allowOverflow=!0,m.content=a,_.set(o,m),n.push(m),t=Math.max(t,m.rect.height)}for(let e of n)e.rect.height=t;N+=t+s.height,M&&O===w-1&&N<this.virtualizer.size.height&&w++}let I=x.getItem(x.getLastKey());if("loader"===I?.type){(C>0||!I.props.isLoading)&&(a=0);let e=new At(v,N,d-2*v,a),t=new Ft("loader",I.key,e);_.set(I.key,t),N=t.rect.maxY}this.layoutInfos=_,this.contentSize=new $t(this.virtualizer.size.width,N)}getLayoutInfo(e){return this.layoutInfos.get(e)||null}getContentSize(){return this.coLine truncated
|
||||
@@ -0,0 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Trace-DBPbFVPm.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-C06va4Yw.js","./index-DdIDwpAM.css","./flows-C0jcpIhs.js","./logs-BtAlqVqe.js","./Select-hQ95uOjm.js","./ItemText-D6SGBgOi.js","./AppearanceControls-CEVO9-aR.js","./nodes-oXccX15o.js","./probe-y8tWllpS.js","./useQuickRule-CCpuINzQ.js","./DaeCode-DEjXqvav.js","./daeTokens-BVtuNnWZ.js","./AddCircle-6b-rL1eo.js","./SearchSelect-q5tbOYXk.js","./SearchList-LS4kpJXT.js","./Virtualizer-9R4wsZhf.js","./BackendText-DK5RWFKi.js","./activity-BoXvjA12.js","./activity-CgcM8uHz.css","./rule-C_M_c6EN.js","./NumberField-C8qnuOCX.js","./Table-Cc5T3jJO.js","./useGridSelectionCheckbox-inhSeUkV.js","./Checkbox-CsFZSc5N.js","./Tabs-PDr10lJU.js","./CheckboxSet-C1rY3UKa.js","./Coverage-CsDZglAg.js","./labels-D8xxfRTQ.js","./recorder-BHyqDNp5.js","./geodataUpdate-BQgn8VND.js","./LinkOut-BYZWxkzu.js","./geodata-CvcFemyc.js","./impact-B8feJDtJ.css"])))=>i.map(i=>d[i]);
|
||||
import{cX as e,cY as s,cZ as n,c_ as i,c$ as l,d0 as a,d1 as r,bz as t,d2 as o,d3 as d,d4 as u,d5 as c,d6 as p,d7 as m,d8 as f,d9 as g,da as h,db as b,dc as v,dd as x,de as k,df as y,dg as w,dh as j,di as S,dj as C,dk as N,dl as _,dm as D,$ as M,dn as P,dp as R,dq as q,aJ as H,dr as I,cI as O,aG as L,bc as E,cg as F,ds as A,ci as T,at as V,a3 as W,Z as $,Q as B,ae as U,b3 as Q,ac as G,o as J,h as K,t as z,dt as Y,a7 as Z,w as X,u as ee,aQ as se,cS as ne,J as ie,as as le,r as ae,c2 as re,aR as te,aS as oe,bI as de,F as ue,D as ce,A as pe,ah as me,C as fe,bp as ge,bP as he,cy as be,co as ve,B as xe,m as ke,cM as ye,cL as we,c as je,du as Se,bQ as Ce,dv as Ne,ba as _e,E as De,aN as Me,dw as Pe,dx as Re,bd as qe,aK as He,cx as Ie,aD as Oe,T as Le,ch as Ee,ck as Fe,L as Ae,p as Te,_ as Ve,ct as We}from"./index-C06va4Yw.js";import{r as $e,$ as Be,j as Ue}from"./vendor-react-64fcanlc.js";import{$ as Qe,a0 as Ge,a1 as Je,a2 as Ke,a3 as ze,a4 as Ye,a5 as Ze,a6 as Xe,a7 as es,a8 as ss,a9 as ns,aa as is,ab as ls,ac as as,ad as rs,s as ts,ae as os,af as ds}from"./activity-BoXvjA12.js";import{T as us}from"./Tabs-PDr10lJU.js";import{D as cs}from"./DaeCode-DEjXqvav.js";import{a as ps,c as ms,u as fs,z as gs,x as hs,g as bs,D as vs,L as xs,p as ks,S as ys,B as ws}from"./logs-BtAlqVqe.js";import{D as js}from"./Table-Cc5T3jJO.js";import{a as Ss,C as Cs,E as Ns}from"./CheckboxSet-C1rY3UKa.js";import{c as _s,C as Ds}from"./Coverage-CsDZglAg.js";import{B as Ms}from"./BackendText-DK5RWFKi.js";import{u as Ps,a as Rs,c as qs}from"./flows-C0jcpIhs.js";import{b as Hs,u as Is,Y as Os,f as Ls,c as Es,Z as Fs,l as As,s as Ts,e as Vs,_ as Ws,$ as $s,a0 as Bs,a1 as Us,a2 as Qs,a3 as Gs,r as Js,a4 as Ks,a5 as zs,a6 as Ys,a7 as Zs,i as Xs,a8 as en,a9 as sn,J as nn,aa as ln,g as an,ab as rn,ac as tn}from"./nodes-oXccX15o.js";import{w as on}from"./labels-D8xxfRTQ.js";import{d as dn,b as un,c as cn,e as pn,r as mn}from"./rule-C_M_c6EN.js";import{r as fn}from"./recorder-BHyqDNp5.js";import{g as gn,a as hn,b as bn}from"./geodataUpdate-BQgn8VND.js";import{C as vn}from"./Checkbox-CsFZSc5N.js";/* empty css */import{L as xn}from"./LinkOut-BYZWxkzu.js";import{S as kn}from"./SearchSelect-q5tbOYXk.js";import{m as yn,a as wn,b as jn}from"./geodata-CvcFemyc.js";const Sn=new WeakMap;let Cn=Math.round(1e10*Math.random()),Nn=0;const _n=$e.createContext(null),Dn=$e.createContext(null),Mn=$e.createContext(null),Pn=$e.forwardRef(function(e,s){[e,s]=b(e,s,_n);let{validationBehavior:l}=v(x)||{},a=e.validationBehavior??l??"native",r=function(e){let s=$e.useMemo(()=>e.name||`radio-group-${Cn}-${++Nn}`,[e.name]),[n,i]=g(e.value,e.defaultValue??null,e.onChange),[l]=$e.useState(n),[a,r]=$e.useState(null),t=h({...e,value:n}),o=t.displayValidation.isInvalid;return{...t,name:s,selectedValue:n,defaultSelectedValue:void 0!==e.value?l:e.defaultValue??null,setSelectedValue:s=>{e.isReadOnly||e.isDisabled||(i(s),t.commitValidation())},lastFocusedValue:a,setLastFocusedValue:r,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(o?"invalid":null),isInvalid:o}}({...e,validationBehavior:a}),[D,M]=k(!e["aria-label"]&&!e["aria-labelledby"]),{radioGroupProps:P,labelProps:R,descriptionProps:q,errorMessageProps:H,...I}=function(e,s){let{name:l,form:a,isReadOnly:r,isRequired:g,isDisabled:h,orientation:b="vertical",validationBehavior:v="aria"}=e,{direction:x}=t(),{isInvalid:k,validationErrors:y,validationDetails:w}=s.displayValidation,{labelProps:j,fieldProps:S,descriptionProps:C,errorMessageProps:N}=o({...e,labelElementType:"span",isInvalid:s.isInvalid,errorMessage:e.errorMessage||y}),_=i(e,{labelable:!0}),{focusWithinProps:D}=d({onBlurWithin(n){e.onBlur?.(n),s.selectedValue||s.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});function M(e,n){let i,l=p(n.currentTarget,{from:f(n),accept:e=>e instanceof m(e).HTMLInputElement&&"radio"===e.type});return"next"===e?(i=l.nextNode(),i||(l.currentNode=n.currentTarget,i=l.firstChild())):(i=l.previousNode(),i||(l.currentNode=n.currentTarget,i=l.lastChild())),!!i&&(i.focus(),s.setSelectedValue(i.value),!0)}let{keyboardProps:P}=u({shortcuts:{ArrowRight:e=>M("rtl"===x&&"vertical"!==b?"prev":"next",e),ArrowLeft:e=>M("rtl"===x&&"vertical"!==b?"next":"prev",e),ArrowDown:e=>M("next",e),ArrowUp:e=>M("prev",e)},allowRepeats:!0}),R=c(l);return Sn.set(s,{name:R,form:a,descriptionId:C.id,errorMessageId:N.id,validationBehavior:v}),{radioGroupProps:n(_,{role:"radiogroup",...P,"aria-invalid":s.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":r||void 0,"aria-required":g||void 0,"aria-disabled":h||void 0,"aria-orientation":b,...S,...D}),labelProps:j,descriptionProps:C,errorMessageProps:N,isInvalid:k,validationErrors:y,validationDetails:w}}({...e,label:M,validationBehavior:a},r),O=y({...e,values:{orientation:e.orientation||"vertical",isDisabled:r.isDisabled,isReadOnly:r.isReadOnly,isRequired:r.isRequired,isInvalid:r.Line truncated
|
||||
@@ -1,2 +0,0 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Trace-bE6wprsq.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-CUHkLMAp.js","./index-DhY2A0CV.css","./flows-DS-lcTPn.js","./logs-C6Kb44nw.js","./Select-BA0NS1_z.js","./ItemText-CnEXu0-f.js","./AppearanceControls-E-VPhjIz.js","./nodes-BYMoo8M1.js","./probe-Cuvc4PWQ.js","./useQuickRule-Cd5z6aFL.js","./DaeCode-DEjXqvav.js","./daeTokens-BVtuNnWZ.js","./AddCircle-D2cMd6zF.js","./SearchSelect-Fy-2ASgN.js","./SearchList-DMvmI1K7.js","./Virtualizer-UMC7L0o2.js","./BackendText-Dtw6qhij.js","./activity-B3PmJo_X.js","./activity-CgcM8uHz.css","./rule-D4-Og0AG.js","./NumberField-C_bakFfF.js","./Table-DX856nrS.js","./useGridSelectionCheckbox-CTBMGgmQ.js","./Checkbox-8Iqnc6T1.js","./Tabs-DiTlqyjA.js","./CheckboxSet-CZH2lrzI.js","./Coverage-BJRxyviT.js","./labels-D8xxfRTQ.js","./recorder-BHyqDNp5.js","./geodataUpdate-C1V3fVK8.js","./LinkOut-B2JdPfjI.js","./geodata-CvcFemyc.js","./impact-B8feJDtJ.css"])))=>i.map(i=>d[i]);
|
||||
import{cV as e,cW as s,cX as n,cY as i,cZ as l,c_ as a,c$ as r,by as t,d0 as o,d1 as d,d2 as u,d3 as c,d4 as p,d5 as m,d6 as f,d7 as g,d8 as h,d9 as b,da as v,db as x,dc as k,dd as y,de as w,df as j,dg as S,dh as C,di as _,dj as N,dk as D,$ as M,dl as P,dm as R,dn as q,aJ as H,dp as I,cH as O,aG as L,bb as E,cf as F,dq as A,ch as T,at as V,a3 as W,Z as $,Q as B,ae as U,b3 as Q,ac as G,o as K,h as J,t as Z,dr as z,a7 as X,w as Y,u as ee,aQ as se,cQ as ne,J as ie,as as le,r as ae,c1 as re,aR as te,aS as oe,bH as de,F as ue,D as ce,A as pe,ah as me,C as fe,bo as ge,bO as he,cx as be,cn as ve,B as xe,m as ke,cL as ye,cK as we,c as je,ds as Se,bP as Ce,dt as _e,b9 as Ne,E as De,aN as Me,du as Pe,dv as Re,bc as qe,aK as He,cw as Ie,aD as Oe,T as Le,cg as Ee,cj as Fe,L as Ae,p as Te,_ as Ve,cs as We}from"./index-CUHkLMAp.js";import{r as $e,$ as Be,j as Ue}from"./vendor-react-64fcanlc.js";import{a0 as Qe,a1 as Ge,a2 as Ke,a3 as Je,a4 as Ze,a5 as ze,a6 as Xe,a7 as Ye,a8 as es,a9 as ss,aa as ns,ab as is,ac as ls,ad as as,ae as rs,s as ts,af as os,ag as ds}from"./activity-B3PmJo_X.js";import{T as us}from"./Tabs-DiTlqyjA.js";import{D as cs}from"./DaeCode-DEjXqvav.js";import{a as ps,c as ms,u as fs,z as gs,x as hs,g as bs,D as vs,L as xs,p as ks,S as ys,B as ws}from"./logs-C6Kb44nw.js";import{D as js}from"./Table-DX856nrS.js";import{a as Ss,C as Cs,E as _s}from"./CheckboxSet-CZH2lrzI.js";import{c as Ns,C as Ds}from"./Coverage-BJRxyviT.js";import{B as Ms}from"./BackendText-Dtw6qhij.js";import{u as Ps,a as Rs,c as qs}from"./flows-DS-lcTPn.js";import{b as Hs,u as Is,Z as Os,f as Ls,c as Es,_ as Fs,l as As,s as Ts,e as Vs,$ as Ws,a0 as $s,a1 as Bs,a2 as Us,a3 as Qs,a4 as Gs,r as Ks,a5 as Js,a6 as Zs,a7 as zs,a8 as Xs,i as Ys,a9 as en,aa as sn,K as nn,ab as ln,g as an,ac as rn,ad as tn}from"./nodes-BYMoo8M1.js";import{w as on}from"./labels-D8xxfRTQ.js";import{d as dn,b as un,c as cn,e as pn,r as mn}from"./rule-D4-Og0AG.js";import{r as fn}from"./recorder-BHyqDNp5.js";import{g as gn,a as hn,b as bn}from"./geodataUpdate-C1V3fVK8.js";import{C as vn}from"./Checkbox-8Iqnc6T1.js";/* empty css */import{L as xn}from"./LinkOut-B2JdPfjI.js";import{S as kn}from"./SearchSelect-Fy-2ASgN.js";import{m as yn,a as wn,b as jn}from"./geodata-CvcFemyc.js";const Sn=new WeakMap;let Cn=Math.round(1e10*Math.random()),_n=0;const Nn=$e.createContext(null),Dn=$e.createContext(null),Mn=$e.createContext(null),Pn=$e.forwardRef(function(e,s){[e,s]=b(e,s,Nn);let{validationBehavior:l}=v(x)||{},a=e.validationBehavior??l??"native",r=function(e){let s=$e.useMemo(()=>e.name||`radio-group-${Cn}-${++_n}`,[e.name]),[n,i]=g(e.value,e.defaultValue??null,e.onChange),[l]=$e.useState(n),[a,r]=$e.useState(null),t=h({...e,value:n}),o=t.displayValidation.isInvalid;return{...t,name:s,selectedValue:n,defaultSelectedValue:void 0!==e.value?l:e.defaultValue??null,setSelectedValue:s=>{e.isReadOnly||e.isDisabled||(i(s),t.commitValidation())},lastFocusedValue:a,setLastFocusedValue:r,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(o?"invalid":null),isInvalid:o}}({...e,validationBehavior:a}),[D,M]=k(!e["aria-label"]&&!e["aria-labelledby"]),{radioGroupProps:P,labelProps:R,descriptionProps:q,errorMessageProps:H,...I}=function(e,s){let{name:l,form:a,isReadOnly:r,isRequired:g,isDisabled:h,orientation:b="vertical",validationBehavior:v="aria"}=e,{direction:x}=t(),{isInvalid:k,validationErrors:y,validationDetails:w}=s.displayValidation,{labelProps:j,fieldProps:S,descriptionProps:C,errorMessageProps:_}=o({...e,labelElementType:"span",isInvalid:s.isInvalid,errorMessage:e.errorMessage||y}),N=i(e,{labelable:!0}),{focusWithinProps:D}=d({onBlurWithin(n){e.onBlur?.(n),s.selectedValue||s.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});function M(e,n){let i,l=p(n.currentTarget,{from:f(n),accept:e=>e instanceof m(e).HTMLInputElement&&"radio"===e.type});return"next"===e?(i=l.nextNode(),i||(l.currentNode=n.currentTarget,i=l.firstChild())):(i=l.previousNode(),i||(l.currentNode=n.currentTarget,i=l.lastChild())),!!i&&(i.focus(),s.setSelectedValue(i.value),!0)}let{keyboardProps:P}=u({shortcuts:{ArrowRight:e=>M("rtl"===x&&"vertical"!==b?"prev":"next",e),ArrowLeft:e=>M("rtl"===x&&"vertical"!==b?"next":"prev",e),ArrowDown:e=>M("next",e),ArrowUp:e=>M("prev",e)},allowRepeats:!0}),R=c(l);return Sn.set(s,{name:R,form:a,descriptionId:C.id,errorMessageId:_.id,validationBehavior:v}),{radioGroupProps:n(N,{role:"radiogroup",...P,"aria-invalid":s.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":r||void 0,"aria-required":g||void 0,"aria-disabled":h||void 0,"aria-orientation":b,...S,...D}),labelProps:j,descriptionProps:C,errorMessageProps:_,isInvalid:k,validationErrors:y,validationDetails:w}}({...e,label:M,validationBehavior:a},r),O=y({...e,values:{orientation:e.orientation||"vertical",isDisabled:r.isDisabled,isReadOnly:r.isReadOnly,isRequired:r.isRequired,isInvalid:Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{dq as t,t as a,dF as i,cm as r,cp as n,cq as o,gx as l,w as d,gy as u,V as p,c8 as c,b3 as m,Z as g,a3 as f,at as h,gz as y,gA as b,gB as K,e0 as v,u as j,as as w,r as x,F as M,ar as $,gC as k,b9 as q,fj as L,cn as _,bP as C,B as S,aK as N,E as T,bN as I,al as P,cF as E}from"./index-CUHkLMAp.js";import{$ as F,d as R,a as A}from"./Select-BA0NS1_z.js";import{b as G}from"./ItemText-CnEXu0-f.js";import{h as O,g as V,c as Z,f as z,u as B}from"./logs-C6Kb44nw.js";import{u as D,c as H}from"./flows-DS-lcTPn.js";import{Z as Q,g as U}from"./nodes-BYMoo8M1.js";import{c as W,o as X,p as J,q as Y}from"./nav-Dn-_mMqu.js";import{e as ee,r as se,g as te,f as ae}from"./nav-C94cbBA2.js";import{aZ as ie,a3 as re,aX as ne}from"./activity-B3PmJo_X.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./AppearanceControls-E-VPhjIz.js";function oe(e){const s=t(e).map(e=>e.id);return[...s.includes("list")&&a(e,"rules",{whileLoading:!1})&&!0===e?.config.writable?[{id:"rules:add",titleKey:"rule.add",parentKey:"rule.listTitle",route:"rules",params:{tab:"list",view:"advanced"},aliases:["condition"]},{id:"rules:services",titleKey:"rule.service.add",parentKey:"rule.listTitle",route:"rules",params:{tab:"list",view:"simple",service:"add"},aliases:["Steam Telegram GitHub geosite"]},{id:"rules:modes",titleKey:"rule.template.mode",parentKey:"rule.listTitle",route:"rules",params:{tab:"list",view:"simple"},aliases:["template"]}]:[],...s.includes("dns")&&!0===e?.config.writable?[{id:"rules:dns-add",titleKey:"rule.add",parentKey:"rule.dnsTitle",route:"rules",params:{tab:"dns"},aliases:["dns condition"]}]:[]]}function le(e){return[...a(e,"providers",{whileLoading:!1})?[{id:"nodes:sources",titleKey:"nodes.providers",parentKey:"nav.nodes",route:"nodes",aliases:["subscription","subscriptions"],aliasKeys:["nodes.kind.subscription"]}]:[],...e?.providers.can_manage?[{id:"nodes:add-subscription",titleKey:"nodes.addProvider",parentKey:"nav.nodes",route:"nodes",params:{add:"subscription"},aliases:["subscription"]}]:[],...e?.nodes.can_manage&&i(e).length?[{id:"nodes:link",titleKey:"nodes.addNode",parentKey:"nav.nodes",route:"nodes",params:{tab:"list"},aliases:["share link","rename"]}]:[]]}const de=e=>a(e,"groups",{whileLoading:!1})&&!0===e?.config.writable?[{id:"policies:new",titleKey:"group.newGroup",parentKey:"nav.policies",route:"policies",params:{new:"1"},aliases:["group editor"]}]:[],ue=e=>e.trim().toLowerCase().replace(/\s+/g," "),pe=(e,s,t,a,i,r="",n)=>({hit:{id:s,label:t,description:a,route:i,query:r,...n&&{open:n}},keys:[...new Set(e.flatMap(e=>null==e?[]:[ue(e)]))]}),ce=(e,s,t,a,i)=>{const{route:r,query:n}=v(i);return pe(e,s,t,a,r,n)};function me(e,s,t){const a=[{title:e(s),parent:t&&e(t)}];for(const i of y)b(i.id)&&a.push({title:K(i.id,s),parent:t&&K(i.id,t)});return a.flatMap(({title:e,parent:s})=>s?[e,s+" "+e]:[e])}function ge(e,s){let t=3;for(const a of e){if(a===s)return 0;a.startsWith(s)?t=1:3===t&&a.includes(s)&&(t=2)}return t}function fe(s,b){const K=j(),v=w(),[q,L]=e.useState(""),_=x(),C=_.data?.resources,S=O(void 0,a(C,"connections",{whileLoading:!1})),N=V(a(C,"nodes",{whileLoading:!1})),T=Z(a(C,"groups",{whileLoading:!1})),I=z(a(C,"providers",{whileLoading:!1})),P=B(a(C,"config",{whileLoading:!1})),E=D(a(C,"rules",{whileLoading:!1})),F=H(a(C,"dns_rules",{whileLoading:!1})),R=[_,S,N,T,I,P,E,F],A=M().data,G=U(A),fe=!!G.globalSettings,he=$(A),[ye,be]=e.useState(0);e.useEffect(()=>{let e=!0;for(const s of y)k(s.id).then(()=>e&&be(e=>e+1),()=>{});return()=>{e=!1}},[]);const Ke=e.useMemo(()=>function(e,s,a,p){const c=s=>u(s,e,p),m=e?.resources,g=[...r().map(e=>({path:"connections",params:{tab:e.id},titleKey:e.titleKey})),...i(m).map(e=>({path:"nodes",params:{tab:e.id},titleKey:e.titleKey})),...n(m).map(e=>({path:"flows",params:{tab:e.id},titleKey:e.titleKey})),...t(m).map(e=>({path:"rules",params:{tab:e.id},titleKey:e.titleKey})),...o(m).map(e=>({path:"dns",params:{tab:e.id},titleKey:e.titleKey})),...W(a,p,e).map(e=>({path:"config",params:{tab:e.id},titleKey:e.titleKey,aliases:e.aliases})),...ee(m).map(e=>({path:"settings",params:{card:e.id},titleKey:e.titleKey,aliases:e.aliases}))],f=e=>l.find(s=>s.path===e).nav.titleKey;return[...l.filter(e=>e.nav&&c(e.path)).map(e=>pe(me(s,e.nav.titleKey),`page:${e.path}?`,s(e.nav.titleKey),void 0,e.path)),...g.filter(e=>c(e.path)).map(e=>{const t=d("",e.params);return pe([...me(s,e.titleKey,f(e.path)),...e.aliases??[]],`page:${e.path}?${t}`,s(e.titleKey),s(f(e.path)),e.path,t)})]}(_.data,K,fe,he),[_.data,K,fe,he,ye]),ve=e.useMemo(()=>function(e,s){const t=e?.resources,a=new Map(ee(t).map(e=>[e.id,e])),i=new Set(t?.runtime_settings.available?t.runtime_settings.fields??[]:[]),r=Object.entries(se).filter(([e])=>i.has(e)).map(([e,s])=>({id:e,labelKey:s,card:"runtime",aliases:void 0})),n=te(t);return[...ae.filter(e=>!e.sources||n),...r].flatMap(e=>{const t=a.get(e.card);return t?[pe([...me(s,e.labelKey),...e.aliases??[]],`setting:${e.id}`,s(e.labelKey)Line truncated
|
||||
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{ds as t,t as a,dH as i,cn as r,cq as n,cr as o,gy as l,w as d,gz as u,V as p,c9 as c,b3 as m,Z as g,a3 as f,at as h,gA as y,gB as b,gC as K,e2 as v,u as j,as as w,r as x,F as M,ar as $,gD as k,ba as q,fl as L,co as _,bQ as C,B as S,aK as T,E as N,bO as I,al as E,cG as G}from"./index-C06va4Yw.js";import{$ as O,d as P,a as R}from"./Select-hQ95uOjm.js";import{b as A}from"./ItemText-D6SGBgOi.js";import{h as D,g as H,c as Q,f as V,u as W}from"./logs-BtAlqVqe.js";import{u as z,c as B}from"./flows-C0jcpIhs.js";import{Y as F,g as Y}from"./nodes-oXccX15o.js";import{c as Z,o as J,p as U,q as X}from"./nav-BvgMebTJ.js";import{e as ee,r as se,g as te,f as ae}from"./nav-BEjkpsy8.js";import{aY as ie,a2 as re,aW as ne}from"./activity-BoXvjA12.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./AppearanceControls-CEVO9-aR.js";function oe(e){const s=t(e).map(e=>e.id);return[...s.includes("list")&&a(e,"rules",{whileLoading:!1})&&!0===e?.config.writable?[{id:"rules:add",titleKey:"rule.add",parentKey:"rule.listTitle",route:"rules",params:{tab:"list",view:"advanced"},aliases:["condition"]},{id:"rules:services",titleKey:"rule.service.add",parentKey:"rule.listTitle",route:"rules",params:{tab:"list",view:"simple",service:"add"},aliases:["Steam Telegram GitHub geosite"]},{id:"rules:modes",titleKey:"rule.template.mode",parentKey:"rule.listTitle",route:"rules",params:{tab:"list",view:"simple"},aliases:["template"]}]:[],...s.includes("dns")&&!0===e?.config.writable?[{id:"rules:dns-add",titleKey:"rule.add",parentKey:"rule.dnsTitle",route:"rules",params:{tab:"dns"},aliases:["dns condition"]}]:[]]}function le(e){return[...a(e,"providers",{whileLoading:!1})?[{id:"nodes:sources",titleKey:"nodes.providers",parentKey:"nav.nodes",route:"nodes",aliases:["subscription","subscriptions"],aliasKeys:["nodes.kind.subscription"]}]:[],...e?.providers.can_manage?[{id:"nodes:add-subscription",titleKey:"nodes.addProvider",parentKey:"nav.nodes",route:"nodes",params:{add:"subscription"},aliases:["subscription"]}]:[],...e?.nodes.can_manage&&i(e).length?[{id:"nodes:link",titleKey:"nodes.addNode",parentKey:"nav.nodes",route:"nodes",params:{tab:"list"},aliases:["share link","rename"]}]:[]]}const de=e=>a(e,"groups",{whileLoading:!1})&&!0===e?.config.writable?[{id:"policies:new",titleKey:"group.newGroup",parentKey:"nav.policies",route:"policies",params:{new:"1"},aliases:["group editor"]}]:[],ue=e=>e.trim().toLowerCase().replace(/\s+/g," "),pe=(e,s,t,a,i,r="",n)=>({hit:{id:s,label:t,description:a,route:i,query:r,...n&&{open:n}},keys:[...new Set(e.flatMap(e=>null==e?[]:[ue(e)]))]}),ce=(e,s,t,a,i)=>{const{route:r,query:n}=v(i);return pe(e,s,t,a,r,n)};function me(e,s,t){const a=[{title:e(s),parent:t&&e(t)}];for(const i of y)b(i.id)&&a.push({title:K(i.id,s),parent:t&&K(i.id,t)});return a.flatMap(({title:e,parent:s})=>s?[e,s+" "+e]:[e])}function ge(e,s){let t=3;for(const a of e){if(a===s)return 0;a.startsWith(s)?t=1:3===t&&a.includes(s)&&(t=2)}return t}function fe(s,b){const K=j(),v=w(),[q,L]=e.useState(""),_=x(),C=_.data?.resources,S=D(void 0,a(C,"connections",{whileLoading:!1})),T=H(a(C,"nodes",{whileLoading:!1})),N=Q(a(C,"groups",{whileLoading:!1})),I=V(a(C,"providers",{whileLoading:!1})),E=W(a(C,"config",{whileLoading:!1})),G=z(a(C,"rules",{whileLoading:!1})),O=B(a(C,"dns_rules",{whileLoading:!1})),P=[_,S,T,N,I,E,G,O],R=M().data,A=Y(R),fe=!!A.globalSettings,he=$(R),[ye,be]=e.useState(0);e.useEffect(()=>{let e=!0;for(const s of y)k(s.id).then(()=>e&&be(e=>e+1),()=>{});return()=>{e=!1}},[]);const Ke=e.useMemo(()=>function(e,s,a,p){const c=s=>u(s,e,p),m=e?.resources,g=[...r().map(e=>({path:"connections",params:{tab:e.id},titleKey:e.titleKey})),...i(m).map(e=>({path:"nodes",params:{tab:e.id},titleKey:e.titleKey})),...n(m).map(e=>({path:"flows",params:{tab:e.id},titleKey:e.titleKey})),...t(m).map(e=>({path:"rules",params:{tab:e.id},titleKey:e.titleKey})),...o(m).map(e=>({path:"dns",params:{tab:e.id},titleKey:e.titleKey})),...Z(a,p,e).map(e=>({path:"config",params:{tab:e.id},titleKey:e.titleKey,aliases:e.aliases})),...ee(m).map(e=>({path:"settings",params:{card:e.id},titleKey:e.titleKey,aliases:e.aliases}))],f=e=>l.find(s=>s.path===e).nav.titleKey;return[...l.filter(e=>e.nav&&c(e.path)).map(e=>pe(me(s,e.nav.titleKey),`page:${e.path}?`,s(e.nav.titleKey),void 0,e.path)),...g.filter(e=>c(e.path)).map(e=>{const t=d("",e.params);return pe([...me(s,e.titleKey,f(e.path)),...e.aliases??[]],`page:${e.path}?${t}`,s(e.titleKey),s(f(e.path)),e.path,t)})]}(_.data,K,fe,he),[_.data,K,fe,he,ye]),ve=e.useMemo(()=>function(e,s){const t=e?.resources,a=new Map(ee(t).map(e=>[e.id,e])),i=new Set(t?.runtime_settings.available?t.runtime_settings.fields??[]:[]),r=Object.entries(se).filter(([e])=>i.has(e)).map(([e,s])=>({id:e,labelKey:s,card:"runtime",aliases:void 0})),n=te(t);return[...ae.filter(e=>!e.sources||n),...r].flatMap(e=>{const t=a.get(e.card);return t?[pe([...me(s,e.labelKey),...e.aliases??[]],`setting:${e.id}`,s(e.labelKey)Line truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{r as e,j as a}from"./vendor-react-64fcanlc.js";import{eK as t,fi as r,fj as s,bP as l}from"./index-CUHkLMAp.js";import{$ as n,a as i}from"./Virtualizer-UMC7L0o2.js";function o(a){let r=t({usage:"search",...a}),s=e.useCallback((e,a)=>0===a.length||(e=e.normalize("NFC"),a=a.normalize("NFC"),0===r.compare(e.slice(0,a.length),a)),[r]),l=e.useCallback((e,a)=>0===a.length||(e=e.normalize("NFC"),a=a.normalize("NFC"),0===r.compare(e.slice(-a.length),a)),[r]),n=e.useCallback((e,a)=>{if(0===a.length)return!0;e=e.normalize("NFC");let t=0,s=(a=a.normalize("NFC")).length;for(;t+s<=e.length;t++){let l=e.slice(t,t+s);if(0===r.compare(a,l))return!0}return!1},[r]);return e.useMemo(()=>({startsWith:s,endsWith:l,contains:n}),[s,l,n])}function c({label:e,children:t}){const{contains:c}=o({sensitivity:"base"});return a.jsx(r,{value:null,children:a.jsxs(s,{filter:c,children:[a.jsx(l,{search:!0,label:e,autoFocus:!0,className:"rp-menu-search"}),a.jsx(n,{layout:i,layoutOptions:{estimatedRowHeight:32,estimatedHeadingHeight:26},children:t})]})})}const u=Object.freeze(Object.defineProperty({__proto__:null,SearchList:c},Symbol.toStringTag,{value:"Module"}));export{o as $,c as S,u as a};
|
||||
@@ -0,0 +1 @@
|
||||
import{r as e,j as a}from"./vendor-react-64fcanlc.js";import{eM as t,fk as r,fl as l,bQ as s}from"./index-C06va4Yw.js";import{$ as n,a as i}from"./Virtualizer-9R4wsZhf.js";function o(a){let r=t({usage:"search",...a}),l=e.useCallback((e,a)=>0===a.length||(e=e.normalize("NFC"),a=a.normalize("NFC"),0===r.compare(e.slice(0,a.length),a)),[r]),s=e.useCallback((e,a)=>0===a.length||(e=e.normalize("NFC"),a=a.normalize("NFC"),0===r.compare(e.slice(-a.length),a)),[r]),n=e.useCallback((e,a)=>{if(0===a.length)return!0;e=e.normalize("NFC");let t=0,l=(a=a.normalize("NFC")).length;for(;t+l<=e.length;t++){let s=e.slice(t,t+l);if(0===r.compare(a,s))return!0}return!1},[r]);return e.useMemo(()=>({startsWith:l,endsWith:s,contains:n}),[l,s,n])}function c({label:e,children:t}){const{contains:c}=o({sensitivity:"base"});return a.jsx(r,{value:null,children:a.jsxs(l,{filter:c,children:[a.jsx(s,{search:!0,label:e,autoFocus:!0,className:"rp-menu-search"}),a.jsx(n,{layout:i,layoutOptions:{estimatedRowHeight:32,estimatedHeadingHeight:26},children:t})]})})}const u=Object.freeze(Object.defineProperty({__proto__:null,SearchList:c},Symbol.toStringTag,{value:"Module"}));export{o as $,c as S,u as a};
|
||||
@@ -1 +0,0 @@
|
||||
import{r as s,j as e}from"./vendor-react-64fcanlc.js";import{dI as a,cz as l,dp as r,cB as i,bE as c,cH as t,cC as d,cF as n,bb as o}from"./index-CUHkLMAp.js";import{b as p,c as m,$ as j,d as x,a as h}from"./Select-BA0NS1_z.js";import{I as b,a as f,b as u}from"./ItemText-CnEXu0-f.js";import{S as N}from"./SearchList-DMvmI1K7.js";const v=s=>e.jsxs(h,{id:s.id,className:"rp-item",textValue:s.keywords?`${s.label} ${s.keywords}`:s.label,children:[e.jsx(f,{}),e.jsx(u,{i:s,children:s.desc&&e.jsx(t,{slot:"description",className:o("desc",s.tone),children:s.desc})})]},s.id);function S({label:h,searchLabel:f,sections:u,value:S,onChange:g,isDisabled:y,description:k,side:z,size:C}){const I=s.useRef(null),R=s.useRef(null),$=a(C),w=l(),D=u.flatMap(s=>s.items).find(s=>s.id===S);return e.jsxs(p,{className:o("rp-picker",z?"rp-cluster":"rp-field"),selectedKey:S,onSelectionChange:s=>{null!=s&&g(String(s))},isDisabled:y,children:[e.jsxs("div",{ref:I,className:z?"rp-cluster":"rp-field",children:[e.jsx(r,{className:z?"rp-label":"lbl",children:h}),e.jsxs(i,{ref:R,className:"rp-selectbtn","data-size":$,children:[e.jsx(m,{children:()=>D?e.jsx(b,{i:D}):S}),e.jsx(c,{})]})]}),k&&e.jsx(t,{slot:"description",className:"rp-label",children:k}),e.jsx(d,{className:"rp-popover rp-search-popover",placement:"bottom start",triggerRef:z?R:I,boundaryElement:w,children:e.jsx(N,{label:f,children:e.jsx(j,{className:"rp-menu-scroll rp-overlay-scroll",children:u.map(s=>s.title?e.jsxs(x,{id:s.id,children:[e.jsx(n,{className:"rp-sec-h",children:s.title}),s.items.map(v)]},s.id):s.items.map(v))})})})]})}export{S};
|
||||
@@ -0,0 +1 @@
|
||||
import{r as s,j as e}from"./vendor-react-64fcanlc.js";import{dK as a,cA as l,dr as r,cC as i,bF as c,cI as t,cD as d,cG as n,bc as o}from"./index-C06va4Yw.js";import{b as p,c as m,$ as j,d as x,a as h}from"./Select-hQ95uOjm.js";import{I as b,a as f,b as u}from"./ItemText-D6SGBgOi.js";import{S as N}from"./SearchList-LS4kpJXT.js";const v=s=>e.jsxs(h,{id:s.id,className:"rp-item",textValue:s.keywords?`${s.label} ${s.keywords}`:s.label,children:[e.jsx(f,{}),e.jsx(u,{i:s,children:s.desc&&e.jsx(t,{slot:"description",className:o("desc",s.tone),children:s.desc})})]},s.id);function S({label:h,searchLabel:f,sections:u,value:S,onChange:g,isDisabled:y,description:k,side:C,size:D}){const I=s.useRef(null),R=s.useRef(null),$=a(D),w=l(),z=u.flatMap(s=>s.items).find(s=>s.id===S);return e.jsxs(p,{className:o("rp-picker",C?"rp-cluster":"rp-field"),selectedKey:S,onSelectionChange:s=>{null!=s&&g(String(s))},isDisabled:y,children:[e.jsxs("div",{ref:I,className:C?"rp-cluster":"rp-field",children:[e.jsx(r,{className:C?"rp-label":"lbl",children:h}),e.jsxs(i,{ref:R,className:"rp-selectbtn","data-size":$,children:[e.jsx(m,{children:()=>z?e.jsx(b,{i:z}):S}),e.jsx(c,{})]})]}),k&&e.jsx(t,{slot:"description",className:"rp-label",children:k}),e.jsx(d,{className:"rp-popover rp-search-popover",placement:"bottom start",triggerRef:C?R:I,boundaryElement:w,children:e.jsx(N,{label:f,children:e.jsx(j,{className:"rp-menu-scroll rp-overlay-scroll",children:u.map(s=>s.title?e.jsxs(x,{id:s.id,children:[e.jsx(n,{className:"rp-sec-h",children:s.title}),s.items.map(v)]},s.id):s.items.map(v))})})})]})}export{S};
|
||||
@@ -1 +0,0 @@
|
||||
import{eM as e,cY as t,f_ as l,d1 as o,d3 as a,f$ as s,cX as i,g0 as r,g1 as n,ek as d,eY as c,dn as u,eU as p,el as g,eE as f,eH as y,eG as v,d9 as m,er as b,eo as h,f6 as D,g2 as P,ep as M,g3 as S,dk as K,d2 as k,g4 as E,dd as C,de as F,df as B,dh as x,eq as I,f9 as w,f2 as R,by as A,eK as V,eu as T,f3 as O,dm as U,f5 as z,g5 as L,g6 as H,dj as N,dc as q,g7 as W,fe as _,ff as j,ey as $,g8 as G,g9 as Z,d0 as Y,eL as J,ga as X,f0 as Q,cZ as ee,c_ as te,d6 as le,gb as oe,d7 as ae,d8 as se,es as ie,da as re,eN as ne,db as de,dl as ce,dg as ue,f8 as pe,gc as ge,gd as fe,di as ye}from"./index-CUHkLMAp.js";import{r as ve,$ as me}from"./vendor-react-64fcanlc.js";var be;be={"ar-AE":e,"bg-BG":e,"cs-CZ":e,"da-DK":e,"de-DE":e,"el-GR":e,"en-US":{selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"},"es-ES":e,"et-EE":e,"fi-FI":e,"fr-FR":e,"he-IL":e,"hr-HR":e,"hu-HU":e,"it-IT":e,"ja-JP":e,"ko-KR":e,"lt-LT":e,"lv-LV":e,"nb-NO":e,"nl-NL":e,"pl-PL":e,"pt-BR":e,"pt-PT":e,"ro-RO":e,"ru-RU":e,"sk-SK":e,"sl-SI":e,"sr-SP":e,"sv-SE":e,"tr-TR":e,"uk-UA":e,"zh-CN":{colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"},"zh-TW":{colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"}};const he=ve.createContext({}),De=ve.createContext(null),Pe=ve.forwardRef(function(e,t){let{render:l}=ve.useContext(De);return me.createElement(me.Fragment,null,l(e,t))});function Me(e,t){let l=e?.renderDropIndicator,o=e?.isVirtualDragging?.(),a=ve.useCallback(e=>{if(o||t?.isDropTarget(e))return l?l(e):me.createElement(Pe,{target:e})},[t?.target,o,l]);return e?.useDropIndicator?a:void 0}function Se(e,t,l){let o=e.focusedKey,a=null;if(t?.isVirtualDragging?.()&&"item"===l?.target?.type&&(a=l.target.key,"after"===l.target.dropPosition)){let e=l.collection.getKeyAfter(a),t=null;if(null!=e){let o=l.collection.getItem(a)?.level??0;for(;null!=e;){let a=l.collection.getItem(e);if(!a)break;if("item"===a.type){if((a.level??0)<=o)break;t=e,e=l.collection.getKeyAfter(e)}else e=l.collection.getKeyAfter(e)}}a=e??t??a}return ve.useMemo(()=>new Set([o,a].filter(e=>null!=e)),[o,a])}const Ke=new WeakMap;function ke(e,l,o){let{key:a}=e,s=Ke.get(l),f=e.isDisabled??l.selectionManager.isDisabled(a),y=e.isSelected??l.selectionManager.isSelected(a),v=e.shouldSelectOnPressUp??s?.shouldSelectOnPressUp,m=e.shouldFocusOnHover??s?.shouldFocusOnHover,b=e.shouldUseVirtualFocus??s?.shouldUseVirtualFocus,h=e.isVirtualized??s?.isVirtualized,D=r(),P=r(),M={role:"option","aria-disabled":f||void 0,"aria-selected":"none"!==l.selectionManager.selectionMode?y:void 0,"aria-label":e["aria-label"],"aria-labelledby":D,"aria-describedby":P},S=l.collection.getItem(a);if(h){let e=Number(S?.index);M["aria-posinset"]=Number.isNaN(e)?void 0:e+1,M["aria-setsize"]=n(l.collection)}let K=s?.onAction?()=>s?.onAction?.(a):void 0,k=function(e,t){let l=Ke.get(e);if(!l)throw new Error("Unknown list");return`${l.id}-option-${o=t,"string"==typeof o?o.replace(/\s*/g,""):""+o}`;var o}(l,a),{itemProps:E,isPressed:C,isFocused:F,hasAction:B,allowsSelection:x}=d({selectionManager:l.selectionManager,key:a,ref:o,shouldSelectOnPressUp:v,allowsDifferentPressOrigin:v&&m,isVirtualized:h,shouldUseVirtualFocus:b,isDisabled:f,onAction:K||S?.props?.onAction?c(S?.props?.onAction,K):void 0,linkBehavior:s?.linkBehavior,UNSTABLE_itemBehavior:s?.UNSTABLE_itemBehavior,id:k}),{hoverProps:I}=u({isDisabled:f||!m,onHoverStart(){p()||(l.selectionManager.setFocused(!0),l.selectionManager.setFocusedKey(a))}}),w=t(S?.props);delete w.id;let R=g(S?.props);return{optionProps:{...M,...i(w,E,I,R),id:k},labelProps:{id:D},descriptionProps:{id:P},isFocused:F,isFocusVisible:F&&l.selectionManager.isFocused&&p(),isSelected:y,isDisabled:f,isPressed:C,allowsSelection:x,hasAction:B}}class Ee{constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let l of e.childNodes)t(l)};for(let s of e)t(s);let l=null,o=0,a=0;for(let[s,i]of this.keyMap)l?(l.nextKey=s,i.prevKey=l.key):(this.firstKey=s,i.prevKey=void 0),"item"===i.type&&(i.index=o++),"section"!==i.type&&"item"!==i.type||a++,l=i,l.nextKey=void 0;this._size=a,this.lastKey=l?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return t?.childNodes||[]}}function Ce(e){let{filter:t,layoutDelegate:l}=e,o=f(e),a=ve.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=ve.Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{eO as e,c_ as t,g0 as l,d3 as o,d5 as a,g1 as s,cZ as i,g2 as r,g3 as n,em as d,e_ as c,dq as u,eW as p,en as g,eG as f,eJ as y,eI as v,db as m,et as b,eq as h,f8 as D,g4 as P,er as M,g5 as S,dm as K,d4 as k,g6 as E,df as C,dg as F,dh as B,dj as x,es as I,fb as w,f4 as R,bz as A,eM as V,ew as T,f5 as O,dp as z,f7 as U,g7 as L,g8 as H,dl as N,de as q,g9 as W,fg as _,fh as j,eA as $,ga as G,gb as Z,d2 as J,eN as Q,gc as X,f2 as Y,c$ as ee,d0 as te,d8 as le,gd as oe,d9 as ae,da as se,eu as ie,dc as re,eP as ne,dd as de,dn as ce,di as ue,fa as pe,ge,gf as fe,dk as ye}from"./index-C06va4Yw.js";import{r as ve,$ as me}from"./vendor-react-64fcanlc.js";var be;be={"ar-AE":e,"bg-BG":e,"cs-CZ":e,"da-DK":e,"de-DE":e,"el-GR":e,"en-US":{selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"},"es-ES":e,"et-EE":e,"fi-FI":e,"fr-FR":e,"he-IL":e,"hr-HR":e,"hu-HU":e,"it-IT":e,"ja-JP":e,"ko-KR":e,"lt-LT":e,"lv-LV":e,"nb-NO":e,"nl-NL":e,"pl-PL":e,"pt-BR":e,"pt-PT":e,"ro-RO":e,"ru-RU":e,"sk-SK":e,"sl-SI":e,"sr-SP":e,"sv-SE":e,"tr-TR":e,"uk-UA":e,"zh-CN":{colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"},"zh-TW":{colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"}};const he=ve.createContext({}),De=ve.createContext(null),Pe=ve.forwardRef(function(e,t){let{render:l}=ve.useContext(De);return me.createElement(me.Fragment,null,l(e,t))});function Me(e,t){let l=e?.renderDropIndicator,o=e?.isVirtualDragging?.(),a=ve.useCallback(e=>{if(o||t?.isDropTarget(e))return l?l(e):me.createElement(Pe,{target:e})},[t?.target,o,l]);return e?.useDropIndicator?a:void 0}function Se(e,t,l){let o=e.focusedKey,a=null;if(t?.isVirtualDragging?.()&&"item"===l?.target?.type&&(a=l.target.key,"after"===l.target.dropPosition)){let e=l.collection.getKeyAfter(a),t=null;if(null!=e){let o=l.collection.getItem(a)?.level??0;for(;null!=e;){let a=l.collection.getItem(e);if(!a)break;if("item"===a.type){if((a.level??0)<=o)break;t=e,e=l.collection.getKeyAfter(e)}else e=l.collection.getKeyAfter(e)}}a=e??t??a}return ve.useMemo(()=>new Set([o,a].filter(e=>null!=e)),[o,a])}const Ke=new WeakMap;function ke(e,l,o){let{key:a}=e,s=Ke.get(l),f=e.isDisabled??l.selectionManager.isDisabled(a),y=e.isSelected??l.selectionManager.isSelected(a),v=e.shouldSelectOnPressUp??s?.shouldSelectOnPressUp,m=e.shouldFocusOnHover??s?.shouldFocusOnHover,b=e.shouldUseVirtualFocus??s?.shouldUseVirtualFocus,h=e.isVirtualized??s?.isVirtualized,D=r(),P=r(),M={role:"option","aria-disabled":f||void 0,"aria-selected":"none"!==l.selectionManager.selectionMode?y:void 0,"aria-label":e["aria-label"],"aria-labelledby":D,"aria-describedby":P},S=l.collection.getItem(a);if(h){let e=Number(S?.index);M["aria-posinset"]=Number.isNaN(e)?void 0:e+1,M["aria-setsize"]=n(l.collection)}let K=s?.onAction?()=>s?.onAction?.(a):void 0,k=function(e,t){let l=Ke.get(e);if(!l)throw new Error("Unknown list");return`${l.id}-option-${o=t,"string"==typeof o?o.replace(/\s*/g,""):""+o}`;var o}(l,a),{itemProps:E,isPressed:C,isFocused:F,hasAction:B,allowsSelection:x}=d({selectionManager:l.selectionManager,key:a,ref:o,shouldSelectOnPressUp:v,allowsDifferentPressOrigin:v&&m,isVirtualized:h,shouldUseVirtualFocus:b,isDisabled:f,onAction:K||S?.props?.onAction?c(S?.props?.onAction,K):void 0,linkBehavior:s?.linkBehavior,UNSTABLE_itemBehavior:s?.UNSTABLE_itemBehavior,id:k}),{hoverProps:I}=u({isDisabled:f||!m,onHoverStart(){p()||(l.selectionManager.setFocused(!0),l.selectionManager.setFocusedKey(a))}}),w=t(S?.props);delete w.id;let R=g(S?.props);return{optionProps:{...M,...i(w,E,I,R),id:k},labelProps:{id:D},descriptionProps:{id:P},isFocused:F,isFocusVisible:F&&l.selectionManager.isFocused&&p(),isSelected:y,isDisabled:f,isPressed:C,allowsSelection:x,hasAction:B}}class Ee{constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let l of e.childNodes)t(l)};for(let s of e)t(s);let l=null,o=0,a=0;for(let[s,i]of this.keyMap)l?(l.nextKey=s,i.prevKey=l.key):(this.firstKey=s,i.prevKey=void 0),"item"===i.type&&(i.index=o++),"section"!==i.type&&"item"!==i.type||a++,l=i,l.nextKey=void 0;this._size=a,this.lastKey=l?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return t?.childNodes||[]}}function Ce(e){let{filter:t,layoutDelegate:l}=e,o=f(e),a=ve.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=ve.useCalLine truncated
|
||||
+2
-2
@@ -1,2 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./WallpaperSettings-CrxyWVw_.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-CUHkLMAp.js","./index-DhY2A0CV.css","./logs-C6Kb44nw.js","./Select-BA0NS1_z.js","./ItemText-CnEXu0-f.js","./AppearanceControls-E-VPhjIz.js","./nodes-BYMoo8M1.js","./wallpaper-CEC7gitM.js"])))=>i.map(i=>d[i]);
|
||||
import{cF as e,cH as s,bH as t,a6 as a,b3 as i,h as n,a3 as l,A as r,dY as o,dZ as d,u as c,d_ as g,d$ as u,cQ as p,dE as m,bM as f,bI as h,bT as b,J as v,bK as x,e0 as j,e1 as k,bL as y,e2 as N,s as w,e3 as _,e4 as C,r as S,F as P,ax as D,e5 as R,e6 as I,e7 as L,e8 as T,e9 as H,cl as U,at as E,as as F,c1 as q,t as M,bR as A,Z as O,bY as V,aQ as B,C as W,E as G,c as $,ak as z,S as K,bo as Y,a as J,cn as Q,b as Z,bO as X,cw as ee,dG as se,B as te,a$ as ae,D as ie,ea as ne,eb as le,cx as re,aG as oe,T as de,m as ce,bP as ge,bE as ue,ec as pe,ed as me,ee as fe,c4 as he,ef as be,eg as ve,eh as xe,_ as je,w as ke}from"./index-CUHkLMAp.js";import{j as ye,r as Ne,a as we}from"./vendor-react-64fcanlc.js";import{p as _e,L as Ce,z as Se,c as Pe,D as De,K as Re,H as Ie,X as Le,Y as Te,I as He}from"./logs-C6Kb44nw.js";import{T as Ue}from"./Tabs-DiTlqyjA.js";import{$ as Ee,d as Fe,a as qe}from"./Select-BA0NS1_z.js";import{C as Me}from"./ItemText-CnEXu0-f.js";import{d as Ae,c as Oe}from"./auth-hmN4lsTM.js";import{a as Ve,aR as Be,aU as We,aV as Ge,aW as $e}from"./activity-B3PmJo_X.js";import{g as ze}from"./nodes-BYMoo8M1.js";import{g as Ke,r as Ye,c as Je,s as Qe,a as Ze,b as Xe,d as es}from"./nav-C94cbBA2.js";import{N as ss,t as ts,n as as}from"./NumberField-C_bakFfF.js";import{D as is}from"./Table-DX856nrS.js";import{T as ns}from"./TimeCell-N-r54xmV.js";import{l as ls,a as rs,d as os,c as ds}from"./geodataUpdate-C1V3fVK8.js";import{a as cs,v as gs,m as us,b as ps,g as ms}from"./geodata-CvcFemyc.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./AppearanceControls-E-VPhjIz.js";import"./useGridSelectionCheckbox-CTBMGgmQ.js";import"./Virtualizer-UMC7L0o2.js";import"./Checkbox-8Iqnc6T1.js";function fs({swatch:e,look:s}){return ye.jsx("span",{className:"rp-swatch","data-look":s,"aria-hidden":"true",children:e.map((e,s)=>{const[t,a,i,n,l]=e.split(" ");return ye.jsx("span",{"data-dark":1===s||void 0,style:{"--sw-bg":t,"--sw-surface":a,"--sw-text":i,"--sw-accent":n,"--sw-positive":l},children:ye.jsx("i",{})},s)})})}function hs({label:t,sections:a,value:i,onChange:n,help:l}){const r=Ne.useId();return ye.jsxs("div",{className:"rp-select-boxes",children:[ye.jsx("span",{id:`${r}-label`,className:"rp-label",children:t}),ye.jsx(Ee,{className:"rp-select-grid",layout:"grid",selectionMode:"single",disallowEmptySelection:!0,selectedKeys:[i],onSelectionChange:e=>"all"!==e&&n(String([...e][0])),"aria-labelledby":`${r}-label`,"aria-describedby":l?`${r}-help`:void 0,children:a.map(({title:t,plain:a,items:i})=>{const n=i.length>1||i[0].label!==t;return ye.jsxs(Fe,{"aria-label":n?void 0:t,children:[n&&ye.jsx(e,{className:"rp-select-box-head",children:t}),i.map(e=>ye.jsxs(qe,{id:e.id,className:"rp-select-box",textValue:e.label,"aria-label":!n||a||e.label.includes(t)?e.label:`${t} ${e.label}`,children:[ye.jsx(fs,{swatch:e.swatch,look:e.look}),ye.jsx("span",{children:e.label}),e.desc&&ye.jsx(s,{slot:"description",className:"rp-label rp-truncate",children:e.desc}),ye.jsx(Me,{className:"rp-select-box-check"})]},e.id))]},t)})}),l&&ye.jsx("span",{id:`${r}-help`,className:"rp-label",children:l})]})}const bs={"rose-pine/main":["#faf4ed #fffaf3 #464261 #286983 #56949f","#191724 #1f1d2e #e0def4 #31748f #9ccfd8"],"rose-pine/moon":["#faf4ed #fffaf3 #464261 #286983 #56949f","#232136 #2a273f #e0def4 #3e8fb0 #9ccfd8"],"catppuccin/frappe":["#e6e9ef #eff1f5 #4c4f69 #1e66f5 #179299","#292c3c #303446 #c6d0f5 #8caaee #81c8be"],"catppuccin/macchiato":["#e6e9ef #eff1f5 #4c4f69 #1e66f5 #179299","#1e2030 #24273a #cad3f5 #8aadf4 #8bd5ca"],"catppuccin/mocha":["#e6e9ef #eff1f5 #4c4f69 #1e66f5 #179299","#181825 #1e1e2e #cdd6f4 #89b4fa #94e2d5"],"arco/arco":["#ffffff #ffffff #1d2129 #165dff #00b42a","#17171a #232324 rgba(255,255,255,0.9) #3c7eff #27c346"],"semi/semi":["#ffffff #ffffff #1c1f23 #0064fa #3bb346","#16161a #232429 #f9f9f9 #54a9ff #5dc264"],"glass/glass":["rgba(255,255,255,0.4) rgba(255,255,255,0.4) #000000 #007aff #34c759","rgba(30,30,34,0.5) rgba(30,30,34,0.5) #ffffff #0a84ff #30d158"],"glass/clear":["rgba(255,255,255,0.4) rgba(255,255,255,0.4) #000000 #007aff #34c759","rgba(30,30,34,0.5) rgba(30,30,34,0.5) #ffffff #0a84ff #30d158"],"glass/frosted":["rgba(255,255,255,0.6) rgba(255,255,255,0.6) #000000 #007aff #34c759","rgba(23,23,23,0.5) rgba(23,23,23,0.5) #ffffff #0a84ff #30d158"],"glass/tinted":["rgba(255,255,255,0.85) rgba(255,255,255,0.85) #000000 #007aff #34c759","rgba(36,36,40,0.85) rgba(36,36,40,0.85) #ffffff #0a84ff #30d158"],"nord/nord":["#e5e9f0 #eceff4 #2e3440 #5e81ac #8fbcbb","#2e3440 #3b4252 #eceff4 #81a1c1 #8fbcbb"],"kary/kary":["#e7f0f7 #f0f6fb #65758d #3778b7 #428226","#1a1a1a #242424 #cacaca #819dc2 #7da76f"],"antd/antd":["#f5f5f5 #ffffff rgba(0,0,0,0.88) #1677ff #52c41a","#000000 #141414 rgba(255,255,255,0.85) #1668dc #49aa19"],"qiangguo/qiangguo":["#fffaf6 #f8ebe5 #2b0a0a #b0121a #1d6322","#2a0000 #4a0004 #ffd700 #ff6b5b #b8f2a0"],"halloween/halloween":["#fdf6e9 #f7ecd8 #2a1a33 #a84300 #2f6b1f","#140e1c #1d1528 #f3e9dc #ff8c3a #a8d84e"]},Line truncated
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./WallpaperSettings-UQGzwYIT.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-C06va4Yw.js","./index-DdIDwpAM.css","./logs-BtAlqVqe.js","./Select-hQ95uOjm.js","./ItemText-D6SGBgOi.js","./AppearanceControls-CEVO9-aR.js","./nodes-oXccX15o.js","./wallpaper-CEC7gitM.js"])))=>i.map(i=>d[i]);
|
||||
import{cG as e,cI as s,bI as t,a6 as a,b3 as i,h as n,a3 as l,A as r,d_ as o,d$ as d,u as c,e0 as g,e1 as u,cS as p,dG as m,bN as f,bJ as h,bU as b,J as v,bL as x,e2 as j,e3 as k,bM as y,e4 as N,s as w,e5 as _,e6 as C,r as S,F as P,ax as D,e7 as I,e8 as R,e9 as L,ea as T,eb as U,cm as H,at as E,as as F,c2 as M,t as q,bS as A,Z as O,bZ as V,aQ as B,C as G,E as W,c as $,ak as z,S as K,bp as J,a as Y,co as Q,b as X,bP as Z,cx as ee,dI as se,B as te,a$ as ae,D as ie,ec as ne,ed as le,cy as re,aG as oe,T as de,m as ce,bQ as ge,bF as ue,ee as pe,ef as me,eg as fe,c5 as he,eh as be,ei as ve,ej as xe,_ as je,w as ke}from"./index-C06va4Yw.js";import{j as ye,r as Ne,a as we}from"./vendor-react-64fcanlc.js";import{p as _e,L as Ce,z as Se,c as Pe,D as De,K as Ie,H as Re,X as Le,Y as Te,I as Ue}from"./logs-BtAlqVqe.js";import{T as He}from"./Tabs-PDr10lJU.js";import{$ as Ee,d as Fe,a as Me}from"./Select-hQ95uOjm.js";import{C as qe}from"./ItemText-D6SGBgOi.js";import{d as Ae,c as Oe}from"./auth-DQ-HlQv0.js";import{a as Ve,aQ as Be,aT as Ge,aU as We,aV as $e}from"./activity-BoXvjA12.js";import{g as ze}from"./nodes-oXccX15o.js";import{g as Ke,r as Je,c as Ye,s as Qe,a as Xe,b as Ze,d as es}from"./nav-BEjkpsy8.js";import{N as ss,t as ts,n as as}from"./NumberField-C8qnuOCX.js";import{D as is}from"./Table-Cc5T3jJO.js";import{T as ns}from"./TimeCell-DSeESBN3.js";import{l as ls,a as rs,d as os,c as ds}from"./geodataUpdate-BQgn8VND.js";import{a as cs,v as gs,m as us,b as ps,g as ms}from"./geodata-CvcFemyc.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./AppearanceControls-CEVO9-aR.js";import"./useGridSelectionCheckbox-inhSeUkV.js";import"./Virtualizer-9R4wsZhf.js";import"./Checkbox-CsFZSc5N.js";function fs({swatch:e,look:s}){return ye.jsx("span",{className:"rp-swatch","data-look":s,"aria-hidden":"true",children:e.map((e,s)=>{const[t,a,i,n,l]=e.split(" ");return ye.jsx("span",{"data-dark":1===s||void 0,style:{"--sw-bg":t,"--sw-surface":a,"--sw-text":i,"--sw-accent":n,"--sw-positive":l},children:ye.jsx("i",{})},s)})})}function hs({label:t,sections:a,value:i,onChange:n,help:l}){const r=Ne.useId();return ye.jsxs("div",{className:"rp-select-boxes",children:[ye.jsx("span",{id:`${r}-label`,className:"rp-label",children:t}),ye.jsx(Ee,{className:"rp-select-grid",layout:"grid",selectionMode:"single",disallowEmptySelection:!0,selectedKeys:[i],onSelectionChange:e=>"all"!==e&&n(String([...e][0])),"aria-labelledby":`${r}-label`,"aria-describedby":l?`${r}-help`:void 0,children:a.map(({title:t,plain:a,items:i})=>{const n=i.length>1||i[0].label!==t;return ye.jsxs(Fe,{"aria-label":n?void 0:t,children:[n&&ye.jsx(e,{className:"rp-select-box-head",children:t}),i.map(e=>ye.jsxs(Me,{id:e.id,className:"rp-select-box",textValue:e.label,"aria-label":!n||a||e.label.includes(t)?e.label:`${t} ${e.label}`,children:[ye.jsx(fs,{swatch:e.swatch,look:e.look}),ye.jsx("span",{children:e.label}),e.desc&&ye.jsx(s,{slot:"description",className:"rp-label rp-truncate",children:e.desc}),ye.jsx(qe,{className:"rp-select-box-check"})]},e.id))]},t)})}),l&&ye.jsx("span",{id:`${r}-help`,className:"rp-label",children:l})]})}const bs={"rose-pine/main":["#faf4ed #fffaf3 #464261 #286983 #56949f","#191724 #1f1d2e #e0def4 #31748f #9ccfd8"],"rose-pine/moon":["#faf4ed #fffaf3 #464261 #286983 #56949f","#232136 #2a273f #e0def4 #3e8fb0 #9ccfd8"],"catppuccin/frappe":["#e6e9ef #eff1f5 #4c4f69 #1e66f5 #179299","#292c3c #303446 #c6d0f5 #8caaee #81c8be"],"catppuccin/macchiato":["#e6e9ef #eff1f5 #4c4f69 #1e66f5 #179299","#1e2030 #24273a #cad3f5 #8aadf4 #8bd5ca"],"catppuccin/mocha":["#e6e9ef #eff1f5 #4c4f69 #1e66f5 #179299","#181825 #1e1e2e #cdd6f4 #89b4fa #94e2d5"],"arco/arco":["#ffffff #ffffff #1d2129 #165dff #00b42a","#17171a #232324 rgba(255,255,255,0.9) #3c7eff #27c346"],"semi/semi":["#ffffff #ffffff #1c1f23 #0064fa #3bb346","#16161a #232429 #f9f9f9 #54a9ff #5dc264"],"glass/glass":["rgba(255,255,255,0.4) rgba(255,255,255,0.4) #000000 #007aff #34c759","rgba(30,30,34,0.5) rgba(30,30,34,0.5) #ffffff #0a84ff #30d158"],"glass/clear":["rgba(255,255,255,0.4) rgba(255,255,255,0.4) #000000 #007aff #34c759","rgba(30,30,34,0.5) rgba(30,30,34,0.5) #ffffff #0a84ff #30d158"],"glass/frosted":["rgba(255,255,255,0.6) rgba(255,255,255,0.6) #000000 #007aff #34c759","rgba(23,23,23,0.5) rgba(23,23,23,0.5) #ffffff #0a84ff #30d158"],"glass/tinted":["rgba(255,255,255,0.85) rgba(255,255,255,0.85) #000000 #007aff #34c759","rgba(36,36,40,0.85) rgba(36,36,40,0.85) #ffffff #0a84ff #30d158"],"nord/nord":["#e5e9f0 #eceff4 #2e3440 #5e81ac #8fbcbb","#2e3440 #3b4252 #eceff4 #81a1c1 #8fbcbb"],"kary/kary":["#e7f0f7 #f0f6fb #65758d #3778b7 #428226","#1a1a1a #242424 #cacaca #819dc2 #7da76f"],"antd/antd":["#f5f5f5 #ffffff rgba(0,0,0,0.88) #1677ff #52c41a","#000000 #141414 rgba(255,255,255,0.85) #1668dc #49aa19"],"qiangguo/qiangguo":["#fffaf6 #f8ebe5 #2b0a0a #b0121a #1d6322","#2a0000 #4a0004 #ffd700 #ff6b5b #b8f2a0"],"halloween/halloween":["#fdf6e9 #f7ecd8 #2a1a33 #a84300 #2f6b1f","#140e1c #1d1528 #f3e9dc #ff8c3a #a8d84e"]},Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{r as t,j as e}from"./vendor-react-64fcanlc.js";import{g as s,gF as i}from"./index-C06va4Yw.js";import{b as r,aZ as a,a_ as o,b0 as l,b3 as n,b4 as h,b5 as d}from"./activity-BoXvjA12.js";import{G as m,C as c}from"./AreaCurve-DQSHOSpG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-oXccX15o.js";import"./logs-BtAlqVqe.js";import"./Select-hQ95uOjm.js";import"./ItemText-D6SGBgOi.js";import"./AppearanceControls-CEVO9-aR.js";import"./array-C0VuvQyb.js";function u({values:u,timestamps:p,color:x,fmt:j,locale:y,height:g=32,floor:f=0,inset:b=0,lines:v}){const w=t.useId(),M=r(),[k,C]=t.useState(null),[A,W]=s(Math.round,120),{tip:$,showAt:F,hide:I}=a(),L=t.useMemo(()=>u.filter(t=>null!==t),[u]),P=L.length>1,S=t.useMemo(()=>[f>0?0:.85*Math.min(...L),Math.max(1.05*Math.max(...L)||1,f)],[L,f]),T=W?.width??0,_=(W?.height??g)-2,B=t.useMemo(()=>{const t=[Math.min(...p),Math.max(...p)];return p.map(e=>o(e,t,[b,Math.max(b,T-b)]))},[p,T,b]),D=t.useCallback(t=>o(t,S,[_,2]),[S,_]),E=t.useMemo(()=>u.map((t,e)=>null===t?null:{x:B[e],y:D(t)}),[u,B,D]);return t.useLayoutEffect(()=>{null!==k&&null!=u[k]&&j&&y&&A.current&&W?F({x:B[k],y:D(u[k]),width:W.width,bounds:l(A.current),label:i(y).format(p[k]),lines:v?.(k)??[j(u[k])]}):I()}),e.jsxs("div",{ref:A,style:{height:`var(--rp-spark-fill, ${g}px)`,width:"100%",position:"relative"},"aria-hidden":!!P||void 0,onPointerLeave:()=>C(null),children:[W&&!P&&e.jsx("svg",{"aria-hidden":!0,width:W.width,height:W.height,style:{display:"block",position:"absolute",inset:0},children:e.jsx("line",{x1:b,x2:W.width-b,y1:_,y2:_,stroke:M["hl-med"],strokeDasharray:"2 4"})}),P&&W&&e.jsxs(e.Fragment,{children:[e.jsx(n,{tip:$}),e.jsxs("svg",{className:"rp-activity-surface",width:W.width,height:W.height,viewBox:`0 0 ${W.width} ${W.height}`,style:{display:"block",position:"absolute",inset:0},onPointerMove:t=>{const e=h(t,t.currentTarget,W);C(e.x<0||e.x>W.width||e.y<2||e.y>W.height-2?null:d(B,e.x))},children:[e.jsx("defs",{children:e.jsx(m,{id:w,color:x})}),e.jsx(c,{points:E,baseline:D(Math.max(0,S[0])),color:x,id:w,strokeWidth:1.5}),null!==k&&null!=u[k]&&e.jsx("circle",{cx:B[k],cy:D(u[k]),r:4,fill:x,stroke:M.base,strokeWidth:2})]})]})]})}export{u as SparkPlot};
|
||||
@@ -1 +0,0 @@
|
||||
import{r as t,j as e}from"./vendor-react-64fcanlc.js";import{g as s,gE as i}from"./index-CUHkLMAp.js";import{b as r,a_ as a,a$ as o,b1 as l,b4 as n,b5 as h,b6 as d}from"./activity-B3PmJo_X.js";import{G as m,C as c}from"./AreaCurve-DQSHOSpG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-BYMoo8M1.js";import"./logs-C6Kb44nw.js";import"./Select-BA0NS1_z.js";import"./ItemText-CnEXu0-f.js";import"./AppearanceControls-E-VPhjIz.js";import"./array-C0VuvQyb.js";function u({values:u,timestamps:p,color:x,fmt:j,locale:g,height:y=32,floor:f=0,inset:b=0,lines:v}){const w=t.useId(),M=r(),[k,C]=t.useState(null),[$,A]=s(Math.round,120),{tip:E,showAt:I,hide:L}=a(),P=t.useMemo(()=>u.filter(t=>null!==t),[u]),S=P.length>1,T=t.useMemo(()=>[f>0?0:.85*Math.min(...P),Math.max(1.05*Math.max(...P)||1,f)],[P,f]),W=A?.width??0,_=(A?.height??y)-2,B=t.useMemo(()=>{const t=[Math.min(...p),Math.max(...p)];return p.map(e=>o(e,t,[b,Math.max(b,W-b)]))},[p,W,b]),D=t.useCallback(t=>o(t,T,[_,2]),[T,_]),F=t.useMemo(()=>u.map((t,e)=>null===t?null:{x:B[e],y:D(t)}),[u,B,D]);return t.useLayoutEffect(()=>{null!==k&&null!=u[k]&&j&&g&&$.current&&A?I({x:B[k],y:D(u[k]),width:A.width,bounds:l($.current),label:i(g).format(p[k]),lines:v?.(k)??[j(u[k])]}):L()}),e.jsxs("div",{ref:$,style:{height:`var(--rp-spark-fill, ${y}px)`,width:"100%",position:"relative"},"aria-hidden":!!S||void 0,onPointerLeave:()=>C(null),children:[A&&!S&&e.jsx("svg",{"aria-hidden":!0,width:A.width,height:A.height,style:{display:"block",position:"absolute",inset:0},children:e.jsx("line",{x1:b,x2:A.width-b,y1:_,y2:_,stroke:M["hl-med"],strokeDasharray:"2 4"})}),S&&A&&e.jsxs(e.Fragment,{children:[e.jsx(n,{tip:E}),e.jsxs("svg",{className:"rp-activity-surface",width:A.width,height:A.height,viewBox:`0 0 ${A.width} ${A.height}`,style:{display:"block",position:"absolute",inset:0},onPointerMove:t=>{const e=h(t,t.currentTarget,A);C(e.x<0||e.x>A.width||e.y<2||e.y>A.height-2?null:d(B,e.x))},children:[e.jsx("defs",{children:e.jsx(m,{id:w,color:x})}),e.jsx(c,{points:F,baseline:D(Math.max(0,T[0])),color:x,id:w,strokeWidth:1.5}),null!==k&&null!=u[k]&&e.jsx("circle",{cx:B[k],cy:D(u[k]),r:4,fill:x,stroke:M.base,strokeWidth:2})]})]})]})}export{u as SparkPlot};
|
||||
@@ -1 +0,0 @@
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{u as a,at as s,as as l,bP as r,cn as n,cx as t}from"./index-CUHkLMAp.js";import{N as i,t as o,n as d}from"./NumberField-C_bakFfF.js";import{p as c}from"./logs-C6Kb44nw.js";import{t as u}from"./nodes-BYMoo8M1.js";import{bJ as m,bK as p,bL as b,bM as g}from"./activity-B3PmJo_X.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BA0NS1_z.js";import"./ItemText-CnEXu0-f.js";import"./AppearanceControls-E-VPhjIz.js";function h({value:h,onChange:v,fields:j,isDisabled:x,nameError:C,agentError:f,intervalError:D,urlError:E,focusInterval:F}){const N=a(),k=s[l()],S=e=>v({...h,...e}),R=h.route||"routing",y=h.interval||(null==j.interval?"":String(j.interval)),A=m(y);return e.jsxs(e.Fragment,{children:[e.jsx(r,{isDisabled:x,label:N("ui.name"),value:h.name,placeholder:"sub-a",spellCheck:!1,error:C??void 0,onChange:e=>S({name:e})}),e.jsx(r,{isDisabled:x,label:N("nodes.url"),value:h.url,placeholder:"https://example.org/sub?token=…",description:N("nodes.urlScheme"),error:E??void 0,spellCheck:!1,onChange:e=>S({url:e}),onBlur:()=>{const e=u(h.url);e!==h.url&&S({url:e})}}),void 0!==j.interval&&e.jsxs(e.Fragment,{children:[e.jsx(c,{takeFocus:F,label:N("nodes.interval"),items:[...null===j.interval?[{id:"",label:"—"}]:[],...p(j.interval,k,N)],value:A?"typed":y,isDisabled:x,onChange:e=>S({interval:"typed"===e?g(y):e})}),A&&e.jsxs(n,{className:"top",children:[e.jsx(i,{isDisabled:x,label:N("nodes.intervalCount"),width:120,value:d(A.count),minValue:0,maxValue:Number.MAX_SAFE_INTEGER,step:1,error:D??void 0,onChange:e=>S({interval:b(o(e),A.unit)})}),e.jsx(c,{label:N("nodes.intervalUnit"),items:[{id:"m",label:N("nodes.minutes")},{id:"h",label:N("nodes.hours")}],value:A.unit,isDisabled:x,onChange:e=>S({interval:b(A.count,e)})})]})]}),j.agent&&e.jsx(r,{isDisabled:x,label:N("nodes.agent"),value:h.agent,placeholder:j.agent.fallback,description:j.agent.description,error:f??void 0,spellCheck:!1,onChange:e=>S({agent:e})}),void 0!==j.cache&&e.jsxs(e.Fragment,{children:[e.jsx(t,{isSelected:h.cache??j.cache,isDisabled:x,onChange:e=>S({cache:e}),children:N("nodes.cache")}),e.jsx("span",{className:"rp-label",children:N("nodes.cacheHelp")})]}),j.routes&&e.jsxs(e.Fragment,{children:[e.jsx(c,{label:N("settings.geodataRoute"),items:[{id:"routing",label:N("settings.geodataRouteRouting")},{id:"direct",label:N("settings.geodataRouteDirect")},...[...new Set([...j.routes,..."routing"===R||"direct"===R?[]:[R]])].map(e=>({id:e,label:e}))],value:R,isDisabled:x,onChange:e=>S({route:e})}),e.jsx("span",{className:"rp-label",children:N("nodes.routeHelp")})]})]})}export{h as SubscriptionFields};
|
||||
@@ -0,0 +1 @@
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{u as a,at as s,as as l,bQ as r,co as n,cy as t}from"./index-C06va4Yw.js";import{N as i,t as o,n as d}from"./NumberField-C8qnuOCX.js";import{p as c}from"./logs-BtAlqVqe.js";import{q as u}from"./nodes-oXccX15o.js";import{bI as m,bJ as p,bK as b,bL as h}from"./activity-BoXvjA12.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-hQ95uOjm.js";import"./ItemText-D6SGBgOi.js";import"./AppearanceControls-CEVO9-aR.js";function g({value:g,onChange:v,fields:j,isDisabled:x,nameError:C,agentError:f,intervalError:D,urlError:E,focusInterval:F}){const N=a(),k=s[l()],S=e=>v({...g,...e}),R=g.route||"routing",y=g.interval||(null==j.interval?"":String(j.interval)),I=m(y);return e.jsxs(e.Fragment,{children:[e.jsx(r,{isDisabled:x,label:N("ui.name"),value:g.name,placeholder:"sub-a",spellCheck:!1,error:C??void 0,onChange:e=>S({name:e})}),e.jsx(r,{isDisabled:x,label:N("nodes.url"),value:g.url,placeholder:"https://example.org/sub?token=…",description:N("nodes.urlScheme"),error:E??void 0,spellCheck:!1,onChange:e=>S({url:e}),onBlur:()=>{const e=u(g.url);e!==g.url&&S({url:e})}}),void 0!==j.interval&&e.jsxs(e.Fragment,{children:[e.jsx(c,{takeFocus:F,label:N("nodes.interval"),items:[...null===j.interval?[{id:"",label:"—"}]:[],...p(j.interval,k,N)],value:I?"typed":y,isDisabled:x,onChange:e=>S({interval:"typed"===e?h(y):e})}),I&&e.jsxs(n,{className:"top",children:[e.jsx(i,{isDisabled:x,label:N("nodes.intervalCount"),width:120,value:d(I.count),minValue:0,maxValue:Number.MAX_SAFE_INTEGER,step:1,error:D??void 0,onChange:e=>S({interval:b(o(e),I.unit)})}),e.jsx(c,{label:N("nodes.intervalUnit"),items:[{id:"m",label:N("nodes.minutes")},{id:"h",label:N("nodes.hours")}],value:I.unit,isDisabled:x,onChange:e=>S({interval:b(I.count,e)})})]})]}),j.agent&&e.jsx(r,{isDisabled:x,label:N("nodes.agent"),value:g.agent,placeholder:j.agent.fallback,description:j.agent.description,error:f??void 0,spellCheck:!1,onChange:e=>S({agent:e})}),void 0!==j.cache&&e.jsxs(e.Fragment,{children:[e.jsx(t,{isSelected:g.cache??j.cache,isDisabled:x,onChange:e=>S({cache:e}),children:N("nodes.cache")}),e.jsx("span",{className:"rp-label",children:N("nodes.cacheHelp")})]}),j.routes&&e.jsxs(e.Fragment,{children:[e.jsx(c,{label:N("settings.geodataRoute"),items:[{id:"routing",label:N("settings.geodataRouteRouting")},{id:"direct",label:N("settings.geodataRouteDirect")},...[...new Set([...j.routes,..."routing"===R||"direct"===R?[]:[R]])].map(e=>({id:e,label:e}))],value:R,isDisabled:x,onChange:e=>S({route:e})}),e.jsx("span",{className:"rp-label",children:N("nodes.routeHelp")})]})]})}export{g as SubscriptionFields};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,$ as t,b as l,j as n}from"./vendor-react-64fcanlc.js";import{eC as i,eD as o,eE as r,eF as s,eG as a,eH as d,d7 as c,eI as u,eJ as h,eK as y,by as f,en as p,d3 as g,cY as m,eL as b,d6 as w,cX as v,eM as x,eN as k,eO as C,eP as K,ek as I,d4 as S,eQ as M,eR as E,eS as R,eT as z,eU as D,eV as P,eW as N,cV as H,cW as W,eX as T,eY as A,em as F,eZ as V,d2 as L,e_ as B,e$ as j,f0 as O,d9 as $,eo as U,er as _,f1 as Y,f2 as q,dk as X,$ as G,eu as J,f3 as Z,dm as Q,dd as ee,df as te,f4 as le,f5 as ne,dj as ie,f6 as oe,f7 as re,dn as se,ep as ae,ez as de,de as ce,f8 as ue,eq as he,f9 as ye,fa as fe,fb as pe,fc as ge,fd as me,ew as be,fe as we,ff as ve,ey as xe,u as ke,j as Ce,b7 as Ke,b8 as Ie,fg as Se,al as Me,cB as Ee,aK as Re,aJ as ze,bE as De,bb as Pe,fh as Ne,T as He}from"./index-CUHkLMAp.js";import{a as We,$ as Te,b as Ae,c as Fe,d as Ve,e as Le,f as Be}from"./useGridSelectionCheckbox-CTBMGgmQ.js";import{f as je,g as Oe,h as $e,i as Ue,j as _e}from"./Select-BA0NS1_z.js";import{$ as Ye}from"./logs-C6Kb44nw.js";import{a as qe,c as Xe,e as Ge,d as Je,$ as Ze}from"./Virtualizer-UMC7L0o2.js";import{C as Qe}from"./Checkbox-8Iqnc6T1.js";class et{setup(e,t,l){this.delegate=e,this.state=t,this.direction=l}getDropTargetFromPoint(e,t,l){let n=this.delegate.getDropTargetFromPoint(e,t,l);return n&&"root"!==n.type?this.resolveDropTarget(n,e,t,l):n}resolveDropTarget(e,t,l,n){let i=this.pointerTracking,o=l-i.lastY,r=t-i.lastX,s=i.yDirection,a=i.xDirection;if(Math.abs(o)>5&&(s=o>0?"down":"up",i.yDirection=s,i.lastY=l),Math.abs(r)>10&&(a=r>0?"right":"left",i.xDirection=a,i.lastX=t),"before"===e.dropPosition){let t=this.state.collection.getKeyBefore(e.key);for(;null!=t;){let e=this.state.collection.getItem(t);if("item"===e?.type)break;t=e?.parentKey??null}if(null!=t){let l={type:"item",key:t,dropPosition:"after"};n(l)&&(e=l)}}let d,c=this.getPotentialTargets(e,n);return 0===c.length?{type:"root"}:(c.length>1?d=this.selectTarget(c,e,t,l,s,a):(d=c[0],i.boundaryContext=null),d)}getPotentialTargets(e,t){if("on"===e.dropPosition)return[e];let l=e,n=this.state.collection,i=n.getItem(l.key);for(;i&&"item"!==i?.type&&null!=i.nextKey;)l.key=i.nextKey,i=n.getItem(i.nextKey);let o=[l];if(i&&i.hasChildNodes&&this.state.expandedKeys.has(i.key)&&n.getChildren&&"after"===l.dropPosition){let e=null!=i.firstChildKey?n.getItem(i.firstChildKey):null;for(;e&&"item"!==e.type;)e=null!=e.nextKey?n.getItem(e.nextKey):null;if("item"===e?.type){const l={type:"item",key:e.key,dropPosition:"before"};return t(l)?[l]:[]}}if(null!=i?.nextKey)return[e];let r=i?.parentKey,s=[];for(;null!=r;){let e=n.getItem(r),l=null!=e?.nextKey?n.getItem(e.nextKey):null;if(!l||l.parentKey!==r){if("item"===e?.type){let e={type:"item",key:r,dropPosition:"after"};t(e)&&s.push(e)}if(l)break}r=e?.parentKey}if(s.length>0&&o.push(...s),1===o.length){let e=n.getKeyAfter(l.key),o=null!=e?n.getItem(e):null;if(null!=e&&o&&i&&null!=o.level&&null!=i.level&&o.level>i.level){let l={type:"item",key:e,dropPosition:"before"};if(t(l))return[l]}}return o.filter(t)}selectTarget(e,t,l,n,i,o){if(e.length<2)return e[0];let r=this.pointerTracking,s=this.state.collection.getItem(t.key),a=s?.parentKey;if(null==a)return e[0];if(!r.boundaryContext||r.boundaryContext.parentKey!==a){let t="up"===r.yDirection?e.length-1:0;r.boundaryContext={parentKey:a,preferredTargetIndex:t,lastSwitchY:n,lastSwitchX:l}}let d=r.boundaryContext,c=Math.abs(l-d.lastSwitchX);if(Math.abs(n-d.lastSwitchY)>5&&i){let t=d.preferredTargetIndex||0;"down"===i&&0===t?d.preferredTargetIndex=e.length-1:"up"===i&&t===e.length-1&&(d.preferredTargetIndex=0),r.xDirection=null}if(c>10&&o){let t=d.preferredTargetIndex||0;"left"===o?"ltr"===this.direction?t<e.length-1&&(d.preferredTargetIndex=t+1,d.lastSwitchX=l):t>0&&(d.preferredTargetIndex=t-1,d.lastSwitchX=l):"right"===o&&("ltr"===this.direction?t>0&&(d.preferredTargetIndex=t-1,d.lastSwitchX=l):t<e.length-1&&(d.preferredTargetIndex=t+1,d.lastSwitchX=l)),r.yDirection=null}return e[Math.max(0,Math.min(d.preferredTargetIndex||0,e.length-1))]}constructor(){this.delegate=null,this.state=null,this.direction="ltr",this.pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null}}}class tt{constructor(e){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=e?.columnCount,this.rows=[];let t=n=>{let i=this.keyMap.get(n.key);e.visitNode&&(n=e.visitNode(n)),this.keyMap.set(n.key,n);let o=new Set,r=null,s=!1;if("item"===n.type)for(let e of n.childNodes)if(void 0!==e.props?.colSpan){s=!0;break}for(let e of n.childNodes)"cell"===e.type&&s&&(e.colspan=e.props?.colSpan,e.colSpan=e.props?.colSpan,e.colIndex=r?(r.colIndex??r.index)+(r.colSpan??1):e.index),"cell"===e.type&&null==e.parentKey&&(e.parentKey=n.key),o.add(e.key),r?(r.nextKey=e.key,e.prevKey=r.key):e.prevKey=null,t(e),r=e;if(r&&(r.nextKey=null),i)for(let e of i.childNodes)o.has(e.key)||l(e)},l=e=>{this.keyMap.delete(e.key);for(let t of e.childNodes)this.keyMap.get(t.key)===t&&l(t)},n=null;for(let[i,o]of e.itemLine truncated
|
||||
import{r as e,$ as t,b as l,j as n}from"./vendor-react-64fcanlc.js";import{eE as i,eF as o,eG as r,eH as s,eI as a,eJ as d,d9 as c,eK as u,eL as h,eM as y,bz as f,ep as p,d5 as g,c_ as m,eN as b,d8 as w,cZ as v,eO as x,eP as k,eQ as C,eR as K,em as I,d6 as S,eS as M,eT as E,eU as R,eV as z,eW as D,eX as P,eY as N,cX as H,cY as W,eZ as T,e_ as A,eo as F,e$ as V,d4 as L,f0 as B,f1 as j,f2 as O,db as $,eq as U,et as _,f3 as Y,f4 as q,dm as X,$ as G,ew as J,f5 as Z,dp as Q,df as ee,dh as te,f6 as le,f7 as ne,dl as ie,f8 as oe,f9 as re,dq as se,er as ae,eB as de,dg as ce,fa as ue,es as he,fb as ye,fc as fe,fd as pe,fe as ge,ff as me,ey as be,fg as we,fh as ve,eA as xe,u as ke,j as Ce,b8 as Ke,b9 as Ie,fi as Se,al as Me,cC as Ee,aK as Re,aJ as ze,bF as De,bc as Pe,fj as Ne,T as He}from"./index-C06va4Yw.js";import{a as We,$ as Te,b as Ae,c as Fe,d as Ve,e as Le,f as Be}from"./useGridSelectionCheckbox-inhSeUkV.js";import{f as je,g as Oe,h as $e,i as Ue,j as _e}from"./Select-hQ95uOjm.js";import{$ as Ye}from"./logs-BtAlqVqe.js";import{a as qe,c as Xe,e as Ge,d as Je,$ as Ze}from"./Virtualizer-9R4wsZhf.js";import{C as Qe}from"./Checkbox-CsFZSc5N.js";class et{setup(e,t,l){this.delegate=e,this.state=t,this.direction=l}getDropTargetFromPoint(e,t,l){let n=this.delegate.getDropTargetFromPoint(e,t,l);return n&&"root"!==n.type?this.resolveDropTarget(n,e,t,l):n}resolveDropTarget(e,t,l,n){let i=this.pointerTracking,o=l-i.lastY,r=t-i.lastX,s=i.yDirection,a=i.xDirection;if(Math.abs(o)>5&&(s=o>0?"down":"up",i.yDirection=s,i.lastY=l),Math.abs(r)>10&&(a=r>0?"right":"left",i.xDirection=a,i.lastX=t),"before"===e.dropPosition){let t=this.state.collection.getKeyBefore(e.key);for(;null!=t;){let e=this.state.collection.getItem(t);if("item"===e?.type)break;t=e?.parentKey??null}if(null!=t){let l={type:"item",key:t,dropPosition:"after"};n(l)&&(e=l)}}let d,c=this.getPotentialTargets(e,n);return 0===c.length?{type:"root"}:(c.length>1?d=this.selectTarget(c,e,t,l,s,a):(d=c[0],i.boundaryContext=null),d)}getPotentialTargets(e,t){if("on"===e.dropPosition)return[e];let l=e,n=this.state.collection,i=n.getItem(l.key);for(;i&&"item"!==i?.type&&null!=i.nextKey;)l.key=i.nextKey,i=n.getItem(i.nextKey);let o=[l];if(i&&i.hasChildNodes&&this.state.expandedKeys.has(i.key)&&n.getChildren&&"after"===l.dropPosition){let e=null!=i.firstChildKey?n.getItem(i.firstChildKey):null;for(;e&&"item"!==e.type;)e=null!=e.nextKey?n.getItem(e.nextKey):null;if("item"===e?.type){const l={type:"item",key:e.key,dropPosition:"before"};return t(l)?[l]:[]}}if(null!=i?.nextKey)return[e];let r=i?.parentKey,s=[];for(;null!=r;){let e=n.getItem(r),l=null!=e?.nextKey?n.getItem(e.nextKey):null;if(!l||l.parentKey!==r){if("item"===e?.type){let e={type:"item",key:r,dropPosition:"after"};t(e)&&s.push(e)}if(l)break}r=e?.parentKey}if(s.length>0&&o.push(...s),1===o.length){let e=n.getKeyAfter(l.key),o=null!=e?n.getItem(e):null;if(null!=e&&o&&i&&null!=o.level&&null!=i.level&&o.level>i.level){let l={type:"item",key:e,dropPosition:"before"};if(t(l))return[l]}}return o.filter(t)}selectTarget(e,t,l,n,i,o){if(e.length<2)return e[0];let r=this.pointerTracking,s=this.state.collection.getItem(t.key),a=s?.parentKey;if(null==a)return e[0];if(!r.boundaryContext||r.boundaryContext.parentKey!==a){let t="up"===r.yDirection?e.length-1:0;r.boundaryContext={parentKey:a,preferredTargetIndex:t,lastSwitchY:n,lastSwitchX:l}}let d=r.boundaryContext,c=Math.abs(l-d.lastSwitchX);if(Math.abs(n-d.lastSwitchY)>5&&i){let t=d.preferredTargetIndex||0;"down"===i&&0===t?d.preferredTargetIndex=e.length-1:"up"===i&&t===e.length-1&&(d.preferredTargetIndex=0),r.xDirection=null}if(c>10&&o){let t=d.preferredTargetIndex||0;"left"===o?"ltr"===this.direction?t<e.length-1&&(d.preferredTargetIndex=t+1,d.lastSwitchX=l):t>0&&(d.preferredTargetIndex=t-1,d.lastSwitchX=l):"right"===o&&("ltr"===this.direction?t>0&&(d.preferredTargetIndex=t-1,d.lastSwitchX=l):t<e.length-1&&(d.preferredTargetIndex=t+1,d.lastSwitchX=l)),r.yDirection=null}return e[Math.max(0,Math.min(d.preferredTargetIndex||0,e.length-1))]}constructor(){this.delegate=null,this.state=null,this.direction="ltr",this.pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null}}}class tt{constructor(e){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=e?.columnCount,this.rows=[];let t=n=>{let i=this.keyMap.get(n.key);e.visitNode&&(n=e.visitNode(n)),this.keyMap.set(n.key,n);let o=new Set,r=null,s=!1;if("item"===n.type)for(let e of n.childNodes)if(void 0!==e.props?.colSpan){s=!0;break}for(let e of n.childNodes)"cell"===e.type&&s&&(e.colspan=e.props?.colSpan,e.colSpan=e.props?.colSpan,e.colIndex=r?(r.colIndex??r.index)+(r.colSpan??1):e.index),"cell"===e.type&&null==e.parentKey&&(e.parentKey=n.key),o.add(e.key),r?(r.nextKey=e.key,e.prevKey=r.key):e.prevKey=null,t(e),r=e;if(r&&(r.nextKey=null),i)for(let e of i.childNodes)o.has(e.key)||l(e)},l=e=>{this.keyMap.delete(e.key);for(let t of e.childNodes)this.keyMap.get(t.key)===t&&l(t)},n=null;for(let[i,o]of e.itemLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,$ as t,j as s}from"./vendor-react-64fcanlc.js";import{ek as i,cY as l,el as a,cW as n,cX as o,em as r,by as d,en as c,d3 as u,d7 as b,eo as h,ep as f,dk as p,dm as y,dn as v,dd as g,de as m,eq as K,d9 as S,er as x,es as P,et as D,eu as C,da as E,dj as w,ev as F,ew as M,df as k,ex as I,ey as N,ez as j,bg as R,eA as H,cn as L,eB as V}from"./index-CUHkLMAp.js";import{$ as A}from"./useGridSelectionCheckbox-CTBMGgmQ.js";import{e as T}from"./Select-BA0NS1_z.js";const z=new WeakMap;function B(e,t,s){if(!e)return"";return"string"==typeof t&&(t=t.replace(/\s+/g,"")),`${z.get(e)}-${s}-${t}`}class O{constructor(e,t,s,i=new Set){this.collection=e,this.flipDirection="rtl"===t,this.disabledKeys=i,this.tabDirection="horizontal"===s}getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){return this.disabledKeys.has(e)||!!this.collection.getItem(e)?.props?.isDisabled}getFirstKey(){let e=this.collection.getFirstKey();return null!=e&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return null!=e&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do{t=this.collection.getKeyAfter(t),null==t&&(t=this.collection.getFirstKey())}while(null!=t&&this.isDisabled(t)&&t!==e);return t}getPreviousKey(e){let t=e;do{t=this.collection.getKeyBefore(t),null==t&&(t=this.collection.getLastKey())}while(null!=t&&this.isDisabled(t)&&t!==e);return t}}function $(t){let s=function(t){let[s,i]=b(t.selectedKey,t.defaultSelectedKey??null,t.onSelectionChange),l=e.useMemo(()=>null!=s?[s]:[],[s]),{collection:a,disabledKeys:n,selectionManager:o}=T({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:l,onSelectionChange:e=>{if("all"===e)return;let l=e.values().next().value??null;l===s&&t.onSelectionChange&&t.onSelectionChange(l),i(l)}}),r=null!=s?a.getItem(s):null;return{collection:a,disabledKeys:n,selectionManager:o,selectedKey:s,setSelectedKey:i,selectedItem:r}}({...t,onSelectionChange:t.onSelectionChange?e=>{null!=e&&t.onSelectionChange?.(e)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:t.defaultSelectedKey??W(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set)??void 0}),{selectionManager:i,collection:l,selectedKey:a}=s,n=e.useRef(a);return e.useEffect(()=>{let e=a;null!=t.selectedKey||!i.isEmpty&&null!=e&&l.getItem(e)||(e=W(l,s.disabledKeys),null!=e&&i.setSelectedKeys([e])),(null!=e&&null==i.focusedKey||!i.isFocused&&e!==n.current)&&i.setFocusedKey(e),n.current=e}),{...s,isDisabled:t.isDisabled||!1}}function W(e,t){let s=null;if(e){for(s=e.getFirstKey();null!=s&&(t.has(s)||e.getItem(s)?.props?.isDisabled)&&s!==e.getLastKey();)s=e.getKeyAfter(s);null!=s&&(t.has(s)||e.getItem(s)?.props?.isDisabled)&&s===e.getLastKey()&&(s=e.getFirstKey())}return s}const U=e.createContext(null),q=e.createContext(null),G=e.forwardRef(function(s,i){[s,i]=S(s,i,U);let{children:l,orientation:a="horizontal"}=s;return l=e.useMemo(()=>"function"==typeof l?l({orientation:a,defaultChildren:null}):l,[l,a]),t.createElement(x,{content:l},e=>t.createElement(X,{props:s,collection:e,tabsRef:i}))});function X({props:s,tabsRef:i,collection:a}){let{orientation:n="horizontal"}=s,r=$({...s,collection:a,children:void 0}),{focusProps:d,isFocused:c,isFocusVisible:u}=y({within:!0}),b=e.useMemo(()=>({orientation:n,isFocusWithin:c,isFocusVisible:u}),[n,c,u]),h=g({...s,defaultClassName:"react-aria-Tabs",values:b}),f=l(s,{global:!0});return t.createElement(m.div,{...o(f,h,d),ref:i,slot:s.slot||void 0,"data-focused":c||void 0,"data-orientation":n,"data-focus-visible":u||void 0,"data-disabled":r.isDisabled||void 0},t.createElement(k,{values:[[U,s],[q,r]]},h.children))}const Y=e.forwardRef(function(s,i){return e.useContext(q)?t.createElement(J,{props:s,forwardedRef:i}):t.createElement(h,s)});function J({props:s,forwardedRef:i}){let a=e.useContext(q),{CollectionRoot:n}=e.useContext(C),{orientation:b="horizontal",keyboardActivation:h="automatic"}=E(U),f=p(i),{tabListProps:y}=function(t,s,i){let{orientation:l="horizontal",keyboardActivation:a="automatic"}=t,{collection:n,selectionManager:b,disabledKeys:h}=s,{direction:f}=d(),p=e.useMemo(()=>new O(n,f,l,h),[n,h,l,f]),{collectionProps:y}=c({ref:i,selectionManager:b,keyboardDelegate:p,selectOnFocus:"automatic"===a,disallowEmptySelection:!0,scrollRef:i,linkBehavior:"selection"}),v=u();z.set(s,v);let g=r({...t,id:v});return{tabListProps:{...o(y,g),role:"tablist","aria-orientation":l,tabIndex:void 0}}}({...s,orientation:b,keyboardActivation:h},a,f),v=g({...s,children:null,defaultClassName:"react-aria-TabList",values:{orientation:b,state:a}}),K=l(s,{global:!0});return delete K.id,t.createElement(m.div,{...o(K,v,y),ref:f,"data-orientation":b||void 0},t.createElement(Line truncated
|
||||
import{r as e,$ as t,j as s}from"./vendor-react-64fcanlc.js";import{em as i,c_ as l,en as a,cY as n,cZ as o,eo as r,bz as d,ep as c,d5 as u,d9 as b,eq as h,er as f,dm as p,dp as y,dq as v,df as g,dg as m,es as K,db as S,et as x,eu as P,ev as D,ew as C,dc as E,dl as w,ex as F,ey as M,dh as I,ez as N,eA as k,eB as j,bh as R,eC as H,co as L,eD as V}from"./index-C06va4Yw.js";import{$ as z}from"./useGridSelectionCheckbox-inhSeUkV.js";import{e as A}from"./Select-hQ95uOjm.js";const T=new WeakMap;function B(e,t,s){if(!e)return"";return"string"==typeof t&&(t=t.replace(/\s+/g,"")),`${T.get(e)}-${s}-${t}`}class O{constructor(e,t,s,i=new Set){this.collection=e,this.flipDirection="rtl"===t,this.disabledKeys=i,this.tabDirection="horizontal"===s}getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){return this.disabledKeys.has(e)||!!this.collection.getItem(e)?.props?.isDisabled}getFirstKey(){let e=this.collection.getFirstKey();return null!=e&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return null!=e&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do{t=this.collection.getKeyAfter(t),null==t&&(t=this.collection.getFirstKey())}while(null!=t&&this.isDisabled(t)&&t!==e);return t}getPreviousKey(e){let t=e;do{t=this.collection.getKeyBefore(t),null==t&&(t=this.collection.getLastKey())}while(null!=t&&this.isDisabled(t)&&t!==e);return t}}function $(t){let s=function(t){let[s,i]=b(t.selectedKey,t.defaultSelectedKey??null,t.onSelectionChange),l=e.useMemo(()=>null!=s?[s]:[],[s]),{collection:a,disabledKeys:n,selectionManager:o}=A({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:l,onSelectionChange:e=>{if("all"===e)return;let l=e.values().next().value??null;l===s&&t.onSelectionChange&&t.onSelectionChange(l),i(l)}}),r=null!=s?a.getItem(s):null;return{collection:a,disabledKeys:n,selectionManager:o,selectedKey:s,setSelectedKey:i,selectedItem:r}}({...t,onSelectionChange:t.onSelectionChange?e=>{null!=e&&t.onSelectionChange?.(e)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:t.defaultSelectedKey??W(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set)??void 0}),{selectionManager:i,collection:l,selectedKey:a}=s,n=e.useRef(a);return e.useEffect(()=>{let e=a;null!=t.selectedKey||!i.isEmpty&&null!=e&&l.getItem(e)||(e=W(l,s.disabledKeys),null!=e&&i.setSelectedKeys([e])),(null!=e&&null==i.focusedKey||!i.isFocused&&e!==n.current)&&i.setFocusedKey(e),n.current=e}),{...s,isDisabled:t.isDisabled||!1}}function W(e,t){let s=null;if(e){for(s=e.getFirstKey();null!=s&&(t.has(s)||e.getItem(s)?.props?.isDisabled)&&s!==e.getLastKey();)s=e.getKeyAfter(s);null!=s&&(t.has(s)||e.getItem(s)?.props?.isDisabled)&&s===e.getLastKey()&&(s=e.getFirstKey())}return s}const q=e.createContext(null),U=e.createContext(null),G=e.forwardRef(function(s,i){[s,i]=S(s,i,q);let{children:l,orientation:a="horizontal"}=s;return l=e.useMemo(()=>"function"==typeof l?l({orientation:a,defaultChildren:null}):l,[l,a]),t.createElement(x,{content:l},e=>t.createElement(Y,{props:s,collection:e,tabsRef:i}))});function Y({props:s,tabsRef:i,collection:a}){let{orientation:n="horizontal"}=s,r=$({...s,collection:a,children:void 0}),{focusProps:d,isFocused:c,isFocusVisible:u}=y({within:!0}),b=e.useMemo(()=>({orientation:n,isFocusWithin:c,isFocusVisible:u}),[n,c,u]),h=g({...s,defaultClassName:"react-aria-Tabs",values:b}),f=l(s,{global:!0});return t.createElement(m.div,{...o(f,h,d),ref:i,slot:s.slot||void 0,"data-focused":c||void 0,"data-orientation":n,"data-focus-visible":u||void 0,"data-disabled":r.isDisabled||void 0},t.createElement(I,{values:[[q,s],[U,r]]},h.children))}const Z=e.forwardRef(function(s,i){return e.useContext(U)?t.createElement(_,{props:s,forwardedRef:i}):t.createElement(h,s)});function _({props:s,forwardedRef:i}){let a=e.useContext(U),{CollectionRoot:n}=e.useContext(C),{orientation:b="horizontal",keyboardActivation:h="automatic"}=E(q),f=p(i),{tabListProps:y}=function(t,s,i){let{orientation:l="horizontal",keyboardActivation:a="automatic"}=t,{collection:n,selectionManager:b,disabledKeys:h}=s,{direction:f}=d(),p=e.useMemo(()=>new O(n,f,l,h),[n,h,l,f]),{collectionProps:y}=c({ref:i,selectionManager:b,keyboardDelegate:p,selectOnFocus:"automatic"===a,disallowEmptySelection:!0,scrollRef:i,linkBehavior:"selection"}),v=u();T.set(s,v);let g=r({...t,id:v});return{tabListProps:{...o(y,g),role:"tablist","aria-orientation":l,tabIndex:void 0}}}({...s,orientation:b,keyboardActivation:h},a,f),v=g({...s,children:null,defaultClassName:"react-aria-TabList",values:{orientation:b,state:a}}),K=l(s,{global:!0});return delete K.id,t.createElement(m.div,{...o(K,v,y),ref:f,"data-orientation":b||void 0},t.createElement(Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,j as n,a as t}from"./vendor-react-64fcanlc.js";import{as as r,b3 as s,c as a,dL as l,cB as c,dM as o,bb as u}from"./index-CUHkLMAp.js";function i({children:e,tone:t,action:r}){return n.jsxs("span",{className:u("rp-tag",t),children:[n.jsx("span",{className:"rp-tag-label",children:e}),r]})}function g({label:e,children:t}){return n.jsx("div",{className:"rp-tags",role:"group","aria-label":e,children:t})}function h({href:e,children:t}){return n.jsx(a,{href:e,className:"rp-tag rp-tag-link",children:n.jsx("span",{className:"rp-tag-label",children:t})})}function d({count:t,label:r,names:s}){const[a,u]=e.useState(!1);return n.jsxs(l,{delay:400,isOpen:a,onOpenChange:u,shouldCloseOnPress:!1,children:[n.jsx(c,{className:"rp-tag rp-tag-more","aria-label":r,onPress:e=>u(n=>"touch"!==e.pointerType||!n),children:n.jsxs("span",{className:"rp-tag-label",children:["+",t]})}),n.jsx(o,{children:s})]})}const p=(e,n)=>function(e,n,t,r){const s=e=>e<=t+.01,a=[0];for(const c of e)a.push(a[a.length-1]+c+r);if(s(a[e.length]-r))return e.length;let l=e.length-1;for(;l>0&&!s(a[l]+n(e.length-l));)l--;return l}(e.tags,n=>e.more[String(n).length-1],n,e.gap);function f(e,n,t){const r=[...e.children].map(e=>e.getBoundingClientRect().width);return{key:n,tags:r.slice(0,t),more:r.slice(t),gap:Number.parseFloat(getComputedStyle(e).columnGap)||0}}const m=new Map;let b=null;function j(e){const n=e.filter(e=>null!==e);n.length&&t.flushSync(()=>n.forEach(e=>e()))}function x({count:e}){return n.jsx("button",{type:"button",className:"rp-tag rp-tag-more",tabIndex:-1,"aria-hidden":"true",children:n.jsxs("span",{className:"rp-tag-label",children:["+",e]})})}function y({label:t,items:a,more:l}){const c=r(),o=e.useRef(null),u=e.useRef(null),i=e.useRef(new Set),g=`${c}\n${a.map(e=>e.label).join("\n")}`,[y,N]=e.useState({key:g,count:null,probe:!0}),w=y.key===g?y.count:null;e.useLayoutEffect(()=>{const e=o.current;if(y.probe||null!==w||!e?.getClientRects().length)return;const n=f(e,g,a.length);u.current=n,N({key:g,count:p(n,e.getBoundingClientRect().width)})},[y,g,w,a.length]),e.useLayoutEffect(()=>{const e=o.current;if(!e)return;const n=()=>N({key:g,count:null});m.set(e,{remeasure:n,read:()=>{if(!e.getClientRects().length)return null;if(y.probe){const n=f(e,g,a.length);u.current=n;const t=p(n,e.getBoundingClientRect().width);return()=>N({key:g,count:t})}const t=u.current,r=[...e.children].filter(e=>!e.classList.contains("rp-tag-more"));if(t?.key!==g||r.some((e,n)=>Math.abs(e.getBoundingClientRect().width-t.tags[n])>.5))return n;const s=p(t,e.getBoundingClientRect().width);return s===w?null:()=>N({key:g,count:s})}});const t=(b||(b=new ResizeObserver(e=>{j([...new Set(e.map(e=>e.target.closest(".rp-tags[data-fit]")))].map(e=>(e&&m.get(e)?.read())??null))}),document.fonts?.addEventListener("loadingdone",()=>j([...m.values()].map(e=>e.remeasure)))),b),r=new Set([e,...e.children]);for(const s of i.current)r.has(s)||t.unobserve(s);for(const s of r)i.current.has(s)||t.observe(s);i.current=r}),e.useLayoutEffect(()=>{const e=o.current,n=i;return()=>{e&&m.delete(e);for(const e of n.current)b?.unobserve(e);n.current=new Set}},[]);const R=null===w?0:a.length-w,k=R>0?s(c,a.map(e=>e.label)):"",C=null===w&&a.length?Array.from({length:String(a.length).length},(e,n)=>10**(n+1)-1):[];return n.jsxs("div",{ref:o,className:"rp-tags",role:"group","aria-label":t,"data-fit":"",children:[a.slice(0,w??a.length).map(e=>y.probe?n.jsx("span",{className:"rp-tag rp-tag-link","aria-hidden":"true",children:n.jsx("span",{className:"rp-tag-label",children:e.label})},e.id):n.jsx(h,{href:e.href,children:e.label},e.id)),C.map(e=>n.jsx(x,{count:e},e)),R>0&&n.jsx(d,{count:R,label:l(R),names:k})]})}export{y as F,h as L,g as T,i as a};
|
||||
import{r as e,j as n,a as t}from"./vendor-react-64fcanlc.js";import{as as r,b3 as s,c as a,dN as l,cC as c,dO as o,bc as u}from"./index-C06va4Yw.js";function i({children:e,tone:t,action:r}){return n.jsxs("span",{className:u("rp-tag",t),children:[n.jsx("span",{className:"rp-tag-label",children:e}),r]})}function g({label:e,children:t}){return n.jsx("div",{className:"rp-tags",role:"group","aria-label":e,children:t})}function h({href:e,children:t}){return n.jsx(a,{href:e,className:"rp-tag rp-tag-link",children:n.jsx("span",{className:"rp-tag-label",children:t})})}function d({count:t,label:r,names:s}){const[a,u]=e.useState(!1);return n.jsxs(l,{delay:400,isOpen:a,onOpenChange:u,shouldCloseOnPress:!1,children:[n.jsx(c,{className:"rp-tag rp-tag-more","aria-label":r,onPress:e=>u(n=>"touch"!==e.pointerType||!n),children:n.jsxs("span",{className:"rp-tag-label",children:["+",t]})}),n.jsx(o,{children:s})]})}const p=(e,n)=>function(e,n,t,r){const s=e=>e<=t+.01,a=[0];for(const c of e)a.push(a[a.length-1]+c+r);if(s(a[e.length]-r))return e.length;let l=e.length-1;for(;l>0&&!s(a[l]+n(e.length-l));)l--;return l}(e.tags,n=>e.more[String(n).length-1],n,e.gap);function f(e,n,t){const r=[...e.children].map(e=>e.getBoundingClientRect().width);return{key:n,tags:r.slice(0,t),more:r.slice(t),gap:Number.parseFloat(getComputedStyle(e).columnGap)||0}}const m=new Map;let b=null;function j(e){const n=e.filter(e=>null!==e);n.length&&t.flushSync(()=>n.forEach(e=>e()))}function x({count:e}){return n.jsx("button",{type:"button",className:"rp-tag rp-tag-more",tabIndex:-1,"aria-hidden":"true",children:n.jsxs("span",{className:"rp-tag-label",children:["+",e]})})}function y({label:t,items:a,more:l}){const c=r(),o=e.useRef(null),u=e.useRef(null),i=e.useRef(new Set),g=`${c}\n${a.map(e=>e.label).join("\n")}`,[y,N]=e.useState({key:g,count:null,probe:!0}),w=y.key===g?y.count:null;e.useLayoutEffect(()=>{const e=o.current;if(y.probe||null!==w||!e?.getClientRects().length)return;const n=f(e,g,a.length);u.current=n,N({key:g,count:p(n,e.getBoundingClientRect().width)})},[y,g,w,a.length]),e.useLayoutEffect(()=>{const e=o.current;if(!e)return;const n=()=>N({key:g,count:null});m.set(e,{remeasure:n,read:()=>{if(!e.getClientRects().length)return null;if(y.probe){const n=f(e,g,a.length);u.current=n;const t=p(n,e.getBoundingClientRect().width);return()=>N({key:g,count:t})}const t=u.current,r=[...e.children].filter(e=>!e.classList.contains("rp-tag-more"));if(t?.key!==g||r.some((e,n)=>Math.abs(e.getBoundingClientRect().width-t.tags[n])>.5))return n;const s=p(t,e.getBoundingClientRect().width);return s===w?null:()=>N({key:g,count:s})}});const t=(b||(b=new ResizeObserver(e=>{j([...new Set(e.map(e=>e.target.closest(".rp-tags[data-fit]")))].map(e=>(e&&m.get(e)?.read())??null))}),document.fonts?.addEventListener("loadingdone",()=>j([...m.values()].map(e=>e.remeasure)))),b),r=new Set([e,...e.children]);for(const s of i.current)r.has(s)||t.unobserve(s);for(const s of r)i.current.has(s)||t.observe(s);i.current=r}),e.useLayoutEffect(()=>{const e=o.current,n=i;return()=>{e&&m.delete(e);for(const e of n.current)b?.unobserve(e);n.current=new Set}},[]);const C=null===w?0:a.length-w,R=C>0?s(c,a.map(e=>e.label)):"",k=null===w&&a.length?Array.from({length:String(a.length).length},(e,n)=>10**(n+1)-1):[];return n.jsxs("div",{ref:o,className:"rp-tags",role:"group","aria-label":t,"data-fit":"",children:[a.slice(0,w??a.length).map(e=>y.probe?n.jsx("span",{className:"rp-tag rp-tag-link","aria-hidden":"true",children:n.jsx("span",{className:"rp-tag-label",children:e.label})},e.id):n.jsx(h,{href:e.href,children:e.label},e.id)),k.map(e=>n.jsx(x,{count:e},e)),C>0&&n.jsx(d,{count:C,label:l(C),names:R})]})}export{y as F,h as L,g as T,i as a};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as a}from"./vendor-react-64fcanlc.js";import{at as s,as as t,eb as r,T as e,ea as o,a7 as n}from"./index-CUHkLMAp.js";function i({at:i}){const c=s[t()],d=r();return a.jsx(e,{text:i?n(i,c):void 0,children:o(i,c,d)})}export{i as T};
|
||||
import{j as a}from"./vendor-react-64fcanlc.js";import{at as s,as as t,ed as r,T as e,ec as o,a7 as n}from"./index-C06va4Yw.js";function i({at:i}){const c=s[t()],d=r();return a.jsx(e,{text:i?n(i,c):void 0,children:o(i,c,d)})}export{i as T};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,j as r}from"./vendor-react-64fcanlc.js";import{c0 as s,u as a,as as i,af as l,r as t,t as o,H as n,J as d,cl as u,ac as m,a9 as p,aQ as c,bO as j,cw as h,cn as b,bP as v,B as x,cy as f,al as _,T as k,C as y,c as g}from"./index-CUHkLMAp.js";import{u as w,r as N}from"./flows-DS-lcTPn.js";import{c as C,g as q,E as M,f as A,s as L,R as S,L as D,p as T,D as R,K as V}from"./logs-C6Kb44nw.js";import{e as E,t as P,c as F,n as I,d as O,q as Q,a as H,b as W}from"./Rules-Hq71-PZg.js";import{b as $,p as B}from"./probe-Cuvc4PWQ.js";import{u as U,R as z}from"./useQuickRule-Cd5z6aFL.js";import{r as G}from"./activity-B3PmJo_X.js";import{N as J,t as K,n as X}from"./NumberField-C_bakFfF.js";import{D as Y}from"./Table-DX856nrS.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BA0NS1_z.js";import"./ItemText-CnEXu0-f.js";import"./AppearanceControls-E-VPhjIz.js";import"./nodes-BYMoo8M1.js";import"./Tabs-DiTlqyjA.js";import"./useGridSelectionCheckbox-CTBMGgmQ.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./CheckboxSet-CZH2lrzI.js";import"./Checkbox-8Iqnc6T1.js";import"./Coverage-BJRxyviT.js";import"./BackendText-Dtw6qhij.js";import"./labels-D8xxfRTQ.js";import"./rule-D4-Og0AG.js";import"./recorder-BHyqDNp5.js";import"./geodataUpdate-C1V3fVK8.js";/* empty css */import"./LinkOut-B2JdPfjI.js";import"./SearchSelect-Fy-2ASgN.js";import"./SearchList-DMvmI1K7.js";import"./Virtualizer-UMC7L0o2.js";import"./geodata-CvcFemyc.js";import"./AddCircle-D2cMd6zF.js";const Z=e=>/^\d+$/.test(e)&&Number(e)>=1&&Number(e)<=65535,ee={none:"rule.resolveNone",live:"rule.resolveLive",query:"rule.resolveQuery"};function re({form:r,setForm:j,advanced:h,setAdvanced:b,touched:v},x){const f=a(),_=i(),k=l(),y=t(),g=y.data?.resources,S=C(o(g,"groups",{whileLoading:!1})),D=q(o(g,"nodes",{whileLoading:!1})),T=w(o(g,"rules",{whileLoading:!1})),R=M(D.refetch),{choices:V}=R,z=U(x),J=e.useMemo(()=>new Map(S.data?.map(e=>[e.name,e])??[]),[S.data]),K=e.useMemo(()=>new Map(S.data?.map(e=>[e.id,e])??[]),[S.data]),X=e.useMemo(()=>new Map(D.data?.map(e=>[e.id,e])??[]),[D.data]),Y=e.useMemo(()=>new Map(T.data?.rules.map(e=>[e.rule_id,e])??[]),[T.data]),[re,se]=e.useState(null),ae=o(g,"providers",{whileLoading:!1}),ie=A(!!re&&ae),le=o(g,"groups",{whileLoading:!1}),{busy:te,error:oe,run:ne}=n(),de=oe??y.error,ue=e.useEffectEvent(e=>d("negative",f("rule.traceFailed"),u(e,f)));e.useEffect(()=>{de&&ue(de)},[de]);const me=r.domain.trim()||r.dst_ip.trim()?r.dst_ip.trim()&&!s(r.dst_ip)?{field:"dst_ip",key:"ui.invalidIp"}:Z(r.dst_port)?r.src_ip.trim()&&!s(r.src_ip)?{field:"src_ip",key:"ui.invalidIp"}:r.src_port.trim()&&!Z(r.src_port)?{field:"src_port",key:"rule.invalidPort"}:!r.dscp.trim()||(pe=r.dscp,/^\d+$/.test(pe)&&Number(pe)>=0&&Number(pe)<=63)?r.mark.trim()&&!(e=>/^(\d+|0x[\da-f]+)$/i.test(e.trim())&&Number(e.trim())<=4294967295)(r.mark)?{field:"mark",key:"rule.invalidMark"}:"live"!==r.resolve&&"query"!==r.resolve||r.domain.trim()?"live"!==r.resolve&&"query"!==r.resolve||!r.dst_ip.trim()?null:{field:"dst_ip",key:"rule.invalidLive"}:{field:"domain",key:"rule.invalidLive"}:{field:"dscp",key:"rule.invalidDscp"}:{field:"dst_port",key:"rule.invalidPort"}:{field:"domain",key:"rule.invalidTarget"};var pe;const ce=v?me:null,je=y.data?.resources.routing_trace,he=je?.resolve_modes??[],be=y.data?.resources.dns_query,ve=be?.record_types,xe=e.useMemo(()=>(ve??[]).filter(e=>"A"===e||"AAAA"===e),[ve]),fe=be?.limits?.max_types_per_request??1,_e=[...he,...!he.includes("live")&&he.includes("none")&&be?.available&&xe.length?["query"]:[]],ke=!1!==je?.available,ye=""!==r.domain.trim()&&!r.dst_ip.trim(),ge=r.resolve??(ye&&_e.includes("live")?"live":ye&&_e.includes("query")?"query":"none"),we=!me&&ke&&_e.includes(ge),Ne=e.useCallback(async()=>{if(te||!we)return;const e=function(e){const r=e=>s(e),a={network:e.network,dst_port:Number(e.dst_port),...e.domain.trim()?{domain:e.domain.trim()}:{dst_ip:r(e.dst_ip)}};return e.domain.trim()&&e.dst_ip.trim()&&(a.dst_ip=r(e.dst_ip)),e.src_ip.trim()&&(a.src_ip=r(e.src_ip)),e.src_port.trim()&&(a.src_port=Number(e.src_port)),a.pname=e.pname.trim(),e.dscp.trim()&&(a.dscp=Number(e.dscp)),e.mark.trim()&&(a.mark=Number(e.mark.trim())),a}(r),a=await ne("trace",r=>N({...k,dnsQuery:(e,s)=>L(k.dnsQuery,e,s,fe,r)},{input:e,resolve:ge,recordTypes:xe},r));se(a?{run:a,input:e}:null)},[k,te,we,r,ge,xe,fe,ne]),Ce=T.data?.generation_id,qe=e.useMemo(()=>re?.run.traces.flatMap(e=>e.evaluations.map(r=>({evaluation:r,traced:e.generation_id,current:Ce===e.generation_id}))).map(({evaluation:e,traced:r,current:s},a)=>{const i=e.rules.find(e=>"matched"===e.result),l="determinate"!==e.decision&&!e.outbound&&s?(i&&Y.get(i.rule_id)?.outbound)??null:null,t=e.outbound??l,o=t&&!m(t)?p(t,re.input.network,J,K,X):null,n=E(e,a,re.input.domain??void 0,l,o,!!o?.node&&V(o.node).length>0,R.busy,f,_);return{...n,rows:n.rows.map(e=>({...e,href:G(e.id,s&&Y.has(e.id))})),links:F(o,le,ae?ie.data?.providers:[],f),seed:P(re.input,e,r)}})??[],Line truncated
|
||||
import{r as e,j as r}from"./vendor-react-64fcanlc.js";import{c1 as s,u as a,as as i,af as l,r as t,t as o,H as n,J as d,cm as u,ac as m,a9 as p,aQ as c,bP as j,cx as h,co as b,bQ as v,B as x,cz as f,al as _,T as k,C as y,c as g}from"./index-C06va4Yw.js";import{u as N,r as w}from"./flows-C0jcpIhs.js";import{c as C,g as q,E as M,f as A,s as L,R as S,L as D,p as T,D as P,K as V}from"./logs-BtAlqVqe.js";import{e as E,t as R,c as F,n as I,d as Q,q as O,a as H,b as W}from"./Rules-DAeSUjlv.js";import{b as $,p as z}from"./probe-y8tWllpS.js";import{u as B,R as U}from"./useQuickRule-CCpuINzQ.js";import{r as G}from"./activity-BoXvjA12.js";import{N as J,t as K,n as X}from"./NumberField-C8qnuOCX.js";import{D as Y}from"./Table-Cc5T3jJO.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-hQ95uOjm.js";import"./ItemText-D6SGBgOi.js";import"./AppearanceControls-CEVO9-aR.js";import"./nodes-oXccX15o.js";import"./Tabs-PDr10lJU.js";import"./useGridSelectionCheckbox-inhSeUkV.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./CheckboxSet-C1rY3UKa.js";import"./Checkbox-CsFZSc5N.js";import"./Coverage-CsDZglAg.js";import"./BackendText-DK5RWFKi.js";import"./labels-D8xxfRTQ.js";import"./rule-C_M_c6EN.js";import"./recorder-BHyqDNp5.js";import"./geodataUpdate-BQgn8VND.js";/* empty css */import"./LinkOut-BYZWxkzu.js";import"./SearchSelect-q5tbOYXk.js";import"./SearchList-LS4kpJXT.js";import"./Virtualizer-9R4wsZhf.js";import"./geodata-CvcFemyc.js";import"./AddCircle-6b-rL1eo.js";const Z=e=>/^\d+$/.test(e)&&Number(e)>=1&&Number(e)<=65535,ee={none:"rule.resolveNone",live:"rule.resolveLive",query:"rule.resolveQuery"};function re({form:r,setForm:j,advanced:h,setAdvanced:b,touched:v},x){const f=a(),_=i(),k=l(),y=t(),g=y.data?.resources,S=C(o(g,"groups",{whileLoading:!1})),D=q(o(g,"nodes",{whileLoading:!1})),T=N(o(g,"rules",{whileLoading:!1})),P=M(D.refetch),{choices:V}=P,U=B(x),J=e.useMemo(()=>new Map(S.data?.map(e=>[e.name,e])??[]),[S.data]),K=e.useMemo(()=>new Map(S.data?.map(e=>[e.id,e])??[]),[S.data]),X=e.useMemo(()=>new Map(D.data?.map(e=>[e.id,e])??[]),[D.data]),Y=e.useMemo(()=>new Map(T.data?.rules.map(e=>[e.rule_id,e])??[]),[T.data]),[re,se]=e.useState(null),ae=o(g,"providers",{whileLoading:!1}),ie=A(!!re&&ae),le=o(g,"groups",{whileLoading:!1}),{busy:te,error:oe,run:ne}=n(),de=oe??y.error,ue=e.useEffectEvent(e=>d("negative",f("rule.traceFailed"),u(e,f)));e.useEffect(()=>{de&&ue(de)},[de]);const me=r.domain.trim()||r.dst_ip.trim()?r.dst_ip.trim()&&!s(r.dst_ip)?{field:"dst_ip",key:"ui.invalidIp"}:Z(r.dst_port)?r.src_ip.trim()&&!s(r.src_ip)?{field:"src_ip",key:"ui.invalidIp"}:r.src_port.trim()&&!Z(r.src_port)?{field:"src_port",key:"rule.invalidPort"}:!r.dscp.trim()||(pe=r.dscp,/^\d+$/.test(pe)&&Number(pe)>=0&&Number(pe)<=63)?r.mark.trim()&&!(e=>/^(\d+|0x[\da-f]+)$/i.test(e.trim())&&Number(e.trim())<=4294967295)(r.mark)?{field:"mark",key:"rule.invalidMark"}:"live"!==r.resolve&&"query"!==r.resolve||r.domain.trim()?"live"!==r.resolve&&"query"!==r.resolve||!r.dst_ip.trim()?null:{field:"dst_ip",key:"rule.invalidLive"}:{field:"domain",key:"rule.invalidLive"}:{field:"dscp",key:"rule.invalidDscp"}:{field:"dst_port",key:"rule.invalidPort"}:{field:"domain",key:"rule.invalidTarget"};var pe;const ce=v?me:null,je=y.data?.resources.routing_trace,he=je?.resolve_modes??[],be=y.data?.resources.dns_query,ve=be?.record_types,xe=e.useMemo(()=>(ve??[]).filter(e=>"A"===e||"AAAA"===e),[ve]),fe=be?.limits?.max_types_per_request??1,_e=[...he,...!he.includes("live")&&he.includes("none")&&be?.available&&xe.length?["query"]:[]],ke=!1!==je?.available,ye=""!==r.domain.trim()&&!r.dst_ip.trim(),ge=r.resolve??(ye&&_e.includes("live")?"live":ye&&_e.includes("query")?"query":"none"),Ne=!me&&ke&&_e.includes(ge),we=e.useCallback(async()=>{if(te||!Ne)return;const e=function(e){const r=e=>s(e),a={network:e.network,dst_port:Number(e.dst_port),...e.domain.trim()?{domain:e.domain.trim()}:{dst_ip:r(e.dst_ip)}};return e.domain.trim()&&e.dst_ip.trim()&&(a.dst_ip=r(e.dst_ip)),e.src_ip.trim()&&(a.src_ip=r(e.src_ip)),e.src_port.trim()&&(a.src_port=Number(e.src_port)),a.pname=e.pname.trim(),e.dscp.trim()&&(a.dscp=Number(e.dscp)),e.mark.trim()&&(a.mark=Number(e.mark.trim())),a}(r),a=await ne("trace",r=>w({...k,dnsQuery:(e,s)=>L(k.dnsQuery,e,s,fe,r)},{input:e,resolve:ge,recordTypes:xe},r));se(a?{run:a,input:e}:null)},[k,te,Ne,r,ge,xe,fe,ne]),Ce=T.data?.generation_id,qe=e.useMemo(()=>re?.run.traces.flatMap(e=>e.evaluations.map(r=>({evaluation:r,traced:e.generation_id,current:Ce===e.generation_id}))).map(({evaluation:e,traced:r,current:s},a)=>{const i=e.rules.find(e=>"matched"===e.result),l="determinate"!==e.decision&&!e.outbound&&s?(i&&Y.get(i.rule_id)?.outbound)??null:null,t=e.outbound??l,o=t&&!m(t)?p(t,re.input.network,J,K,X):null,n=E(e,a,re.input.domain??void 0,l,o,!!o?.node&&V(o.node).length>0,P.busy,f,_);return{...n,rows:n.rows.map(e=>({...e,href:G(e.id,s&&Y.has(e.id))})),links:F(o,le,ae?ie.data?.providers:[],f),seed:R(re.input,e,r)}})??[],Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{eF as t,by as e,d6 as i,eL as n,fk as s,fl as o,eS as r,e$ as l,fa as a,fc as h,fm as d,eu as u,fn as c}from"./index-CUHkLMAp.js";import{r as y,$ as g,a as f}from"./vendor-react-64fcanlc.js";class p{constructor(t=0,e=0){this.x=t,this.y=e}copy(){return new p(this.x,this.y)}equals(t){return this.x===t.x&&this.y===t.y}isOrigin(){return 0===this.x&&0===this.y}}class w{constructor(t=0,e=0,i=0,n=0){this.x=t,this.y=e,this.width=i,this.height=n}get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new p(this.x,this.y)}get topRight(){return new p(this.maxX,this.y)}get bottomLeft(){return new p(this.x,this.maxY)}get bottomRight(){return new p(this.maxX,this.maxY)}intersects(t){return this.area>0&&t.area>0&&this.x<=t.x+t.width&&t.x<=this.x+this.width&&this.y<=t.y+t.height&&t.y<=this.y+this.height}containsRect(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.maxX&&this.maxY>=t.maxY}containsPoint(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.x&&this.maxY>=t.y}getCornerInRect(t){for(let e of["topLeft","topRight","bottomLeft","bottomRight"])if(t.containsPoint(this[e]))return e;return null}equals(t){return t.x===this.x&&t.y===this.y&&t.width===this.width&&t.height===this.height}pointEquals(t){return this.x===t.x&&this.y===t.y}sizeEquals(t){return this.width===t.width&&this.height===t.height}union(t){let e=Math.min(this.x,t.x),i=Math.min(this.y,t.y),n=Math.max(this.maxX,t.maxX)-e,s=Math.max(this.maxY,t.maxY)-i;return new w(e,i,n,s)}intersection(t){if(!this.intersects(t))return new w(0,0,0,0);let e=Math.max(this.x,t.x),i=Math.max(this.y,t.y);return new w(e,i,Math.min(this.maxX,t.maxX)-e,Math.min(this.maxY,t.maxY)-i)}copy(){return new w(this.x,this.y,this.width,this.height)}}class z{constructor(t=0,e=0){this.width=Math.max(t,0),this.height=Math.max(e,0)}copy(){return new z(this.width,this.height)}equals(t){return this.width===t.width&&this.height===t.height}get area(){return this.width*this.height}}let v=0;class m{constructor(t,e){this.virtualizer=t,this.key=++v,this.viewType=e,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}getReusableView(t){let e=this.reusableViews.get(t);return e&&e.length>0?e.shift():new b(this.virtualizer,this,t)}reuseChild(t){t.prepareForReuse();let e=this.reusableViews.get(t.viewType);e||(e=[],this.reusableViews.set(t.viewType,e)),e.push(t)}}class S extends m{constructor(t){super(t,"root")}}class b extends m{constructor(t,e,i){super(t,i),this.parent=e}}class x{setVisibleRect(t){let e=performance.now()-this.startTime;e<500&&(t.x!==this.visibleRect.x&&e>0&&(this.velocity.x=(t.x-this.visibleRect.x)/e),t.y!==this.visibleRect.y&&e>0&&(this.velocity.y=(t.y-this.visibleRect.y)/e)),this.startTime=performance.now(),this.visibleRect=t}getOverscannedRect(){let t=this.visibleRect.copy(),e=this.visibleRect.height/3;t.height+=e,this.velocity.y<0&&(t.y-=e);let i=this.visibleRect.width/3;return t.width+=i,this.velocity.x<0&&(t.x-=i),t}constructor(){this.startTime=0,this.velocity=new p(0,0),this.visibleRect=new w}}function I(t){return"x"===t?"width":"height"}function R(t,e,i,n,s){if("start"===i)return t[n]<=s;let o=I(n);return e[o]-(t[n]+t[o])<=s}function C(t,e,i,n,s,o,r,l,a,h){let d=t=>"x"===e?new w(t,a.y,a.width,a.height):new w(a.x,t,a.width,a.height);if(i){let t=function(t,e,i,n,s){let o=i(t.key);if(!o)return null;let r=o.rect[t.corner][e]-n[e]-t.offset;if(0===r)return null;let l=n[e]+r,a=I(e),h=Math.max(0,s[a]-n[a]),d=Math.max(0,Math.min(h,l));return d!==n[e]?d:null}(i,e,l,a,h);if(null!=t)return d(t)}if(n&&!s&&(!o||r>0)){let i=d(function(t,e,i,n){if("start"===t)return 0;let s=I(e);return Math.max(0,i[s]-n[s])}(t,e,h,a));return i.equals(a)?null:i}return null}class k{reset(){this.hasSnappedToEdge=!1,this.hadEstimatedVisibleItems=!1,this.wasNearAnchorEdge=!1}captureBeforeLayout(t,e,i){return t?function(t,e,i,n,s=()=>!0){let o=I(e),r=null;for(let[l,a]of n){if(!a||!s(a))continue;let n=a.rect.intersection(i)[o];if(a.rect.area>0&&n>=4){let n=a.rect.getCornerInRect(i)??"topLeft",s=a.rect[n][e]-i[e];(!r||("end"===t?s<r.offset:s>r.offset))&&(r={key:l,corner:n,offset:s})}}return r}(t.edge,t.axis,i,e,t.isAnchorable):null}resolveAfterLayout(t){let{anchorInfo:e,anchor:i,postLayoutInfos:n,previousVisibleRect:s,previousContentSize:o,contentSize:r,itemSizeChanged:l,isScrolling:a,getLayoutInfo:h}=t;if(!e)return null;let d=this.hadEstimatedVisibleItems,u=this.wasNearAnchorEdge,c=!1;for(let z of n.values())if(z.estimatedSize){c=!0;break}if(this.hadEstimatedVisibleItems=c,d||(this.wasNearAnchorEdge=R(s,o,e.edge,e.axis,e.threshold)),0===s.area)return null;let y="x"===e.axis?"width":"height",g=r[y]-o[y],f=!this.hasSnappedToEdge;if(this.hasSnappedToEdge=!0,!f&&0===g&&!l)return null;let p=f||d&&u||R(s,o,e.edge,e.axis,e.threshold);d||(this.wasNearAnchorEdge=p);let w=f||d&&u?null:i;return C(e.edge,e.axis,w,p,a,l,g,h,sLine truncated
|
||||
import{eH as t,bz as e,d8 as i,eN as n,fm as s,fn as o,eU as r,f1 as l,fc as a,fe as h,fo as d,ew as u,fp as c}from"./index-C06va4Yw.js";import{r as y,$ as g,a as f}from"./vendor-react-64fcanlc.js";class p{constructor(t=0,e=0){this.x=t,this.y=e}copy(){return new p(this.x,this.y)}equals(t){return this.x===t.x&&this.y===t.y}isOrigin(){return 0===this.x&&0===this.y}}class w{constructor(t=0,e=0,i=0,n=0){this.x=t,this.y=e,this.width=i,this.height=n}get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new p(this.x,this.y)}get topRight(){return new p(this.maxX,this.y)}get bottomLeft(){return new p(this.x,this.maxY)}get bottomRight(){return new p(this.maxX,this.maxY)}intersects(t){return this.area>0&&t.area>0&&this.x<=t.x+t.width&&t.x<=this.x+this.width&&this.y<=t.y+t.height&&t.y<=this.y+this.height}containsRect(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.maxX&&this.maxY>=t.maxY}containsPoint(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.x&&this.maxY>=t.y}getCornerInRect(t){for(let e of["topLeft","topRight","bottomLeft","bottomRight"])if(t.containsPoint(this[e]))return e;return null}equals(t){return t.x===this.x&&t.y===this.y&&t.width===this.width&&t.height===this.height}pointEquals(t){return this.x===t.x&&this.y===t.y}sizeEquals(t){return this.width===t.width&&this.height===t.height}union(t){let e=Math.min(this.x,t.x),i=Math.min(this.y,t.y),n=Math.max(this.maxX,t.maxX)-e,s=Math.max(this.maxY,t.maxY)-i;return new w(e,i,n,s)}intersection(t){if(!this.intersects(t))return new w(0,0,0,0);let e=Math.max(this.x,t.x),i=Math.max(this.y,t.y);return new w(e,i,Math.min(this.maxX,t.maxX)-e,Math.min(this.maxY,t.maxY)-i)}copy(){return new w(this.x,this.y,this.width,this.height)}}class z{constructor(t=0,e=0){this.width=Math.max(t,0),this.height=Math.max(e,0)}copy(){return new z(this.width,this.height)}equals(t){return this.width===t.width&&this.height===t.height}get area(){return this.width*this.height}}let v=0;class m{constructor(t,e){this.virtualizer=t,this.key=++v,this.viewType=e,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}getReusableView(t){let e=this.reusableViews.get(t);return e&&e.length>0?e.shift():new b(this.virtualizer,this,t)}reuseChild(t){t.prepareForReuse();let e=this.reusableViews.get(t.viewType);e||(e=[],this.reusableViews.set(t.viewType,e)),e.push(t)}}class S extends m{constructor(t){super(t,"root")}}class b extends m{constructor(t,e,i){super(t,i),this.parent=e}}class x{setVisibleRect(t){let e=performance.now()-this.startTime;e<500&&(t.x!==this.visibleRect.x&&e>0&&(this.velocity.x=(t.x-this.visibleRect.x)/e),t.y!==this.visibleRect.y&&e>0&&(this.velocity.y=(t.y-this.visibleRect.y)/e)),this.startTime=performance.now(),this.visibleRect=t}getOverscannedRect(){let t=this.visibleRect.copy(),e=this.visibleRect.height/3;t.height+=e,this.velocity.y<0&&(t.y-=e);let i=this.visibleRect.width/3;return t.width+=i,this.velocity.x<0&&(t.x-=i),t}constructor(){this.startTime=0,this.velocity=new p(0,0),this.visibleRect=new w}}function I(t){return"x"===t?"width":"height"}function R(t,e,i,n,s){if("start"===i)return t[n]<=s;let o=I(n);return e[o]-(t[n]+t[o])<=s}function C(t,e,i,n,s,o,r,l,a,h){let d=t=>"x"===e?new w(t,a.y,a.width,a.height):new w(a.x,t,a.width,a.height);if(i){let t=function(t,e,i,n,s){let o=i(t.key);if(!o)return null;let r=o.rect[t.corner][e]-n[e]-t.offset;if(0===r)return null;let l=n[e]+r,a=I(e),h=Math.max(0,s[a]-n[a]),d=Math.max(0,Math.min(h,l));return d!==n[e]?d:null}(i,e,l,a,h);if(null!=t)return d(t)}if(n&&!s&&(!o||r>0)){let i=d(function(t,e,i,n){if("start"===t)return 0;let s=I(e);return Math.max(0,i[s]-n[s])}(t,e,h,a));return i.equals(a)?null:i}return null}class k{reset(){this.hasSnappedToEdge=!1,this.hadEstimatedVisibleItems=!1,this.wasNearAnchorEdge=!1}captureBeforeLayout(t,e,i){return t?function(t,e,i,n,s=()=>!0){let o=I(e),r=null;for(let[l,a]of n){if(!a||!s(a))continue;let n=a.rect.intersection(i)[o];if(a.rect.area>0&&n>=4){let n=a.rect.getCornerInRect(i)??"topLeft",s=a.rect[n][e]-i[e];(!r||("end"===t?s<r.offset:s>r.offset))&&(r={key:l,corner:n,offset:s})}}return r}(t.edge,t.axis,i,e,t.isAnchorable):null}resolveAfterLayout(t){let{anchorInfo:e,anchor:i,postLayoutInfos:n,previousVisibleRect:s,previousContentSize:o,contentSize:r,itemSizeChanged:l,isScrolling:a,getLayoutInfo:h}=t;if(!e)return null;let d=this.hadEstimatedVisibleItems,u=this.wasNearAnchorEdge,c=!1;for(let z of n.values())if(z.estimatedSize){c=!0;break}if(this.hadEstimatedVisibleItems=c,d||(this.wasNearAnchorEdge=R(s,o,e.edge,e.axis,e.threshold)),0===s.area)return null;let y="x"===e.axis?"width":"height",g=r[y]-o[y],f=!this.hasSnappedToEdge;if(this.hasSnappedToEdge=!0,!f&&0===g&&!l)return null;let p=f||d&&u||R(s,o,e.edge,e.axis,e.threshold);d||(this.wasNearAnchorEdge=p);let w=f||d&&u?null:i;return C(e.edge,e.axis,w,p,a,l,g,h,sLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,$ as t,j as a}from"./vendor-react-64fcanlc.js";import{f$ as n,by as r,fo as l,fu as s,ga as i,cX as o,gP as u,d2 as c,cW as d,cZ as m,d6 as g,gn as h,d7 as p,d9 as b,gk as f,dc as v,dd as w,cY as y,df as T,dg as x,de as P,dn as D,da as j,dm as C,aJ as V,dk as M,gQ as S,gs as E,B as F,dI as R,dp as N,u as k,gR as I,bo as H,cx as K}from"./index-CUHkLMAp.js";import{$ as z}from"./logs-C6Kb44nw.js";import{u as B,s as L,M as O,w as $,D as A}from"./wallpaper-CEC7gitM.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BA0NS1_z.js";import"./ItemText-CnEXu0-f.js";import"./AppearanceControls-E-VPhjIz.js";import"./nodes-BYMoo8M1.js";const X=new WeakMap;function Y(e,t){let a=X.get(e);if(!a)throw new Error("Unknown slider state");return`${a.id}-${t}`}const G=0,U=100,W=1;function q(t){const{isDisabled:a=!1,minValue:n=G,maxValue:r=U,numberFormatter:l,step:i=W,orientation:o="horizontal"}=t;let u=e.useMemo(()=>{let e=(r-n)/10;return e=h(e,0,e+i,i),Math.max(e,i)},[i,r,n]),c=e.useCallback(e=>e?.map((t,a)=>{let l=0===a?n:e[a-1],s=a===e.length-1?r:e[a+1];return h(t,l,s,i)}),[n,r,i]),d=e.useMemo(()=>c(Q(t.value)),[t.value,c]),m=e.useMemo(()=>c(Q(t.defaultValue)??[n]),[t.defaultValue,n,c]),g=Z(t.value,t.defaultValue,t.onChange),b=Z(t.value,t.defaultValue,t.onChangeEnd);const[f,v]=p(d,m,g);let[w]=e.useState(f);const[y,T]=e.useState(new Array(f.length).fill(!1)),x=e.useRef(new Array(f.length).fill(!0)),[P,D]=e.useState(void 0),j=e.useRef(f),C=e.useRef(y);function V(e){return(e-n)/(r-n)}function M(e){return 0===e?n:f[e-1]}function S(e){return e===f.length-1?r:f[e+1]}function E(e){return x.current[e]}function F(e,t){if(a||!E(e))return;const n=M(e),r=S(e);t=h(t,n,r,i);let l=J(j.current,e,t);var s;s=l,j.current=s,v(s)}let R=e.useRef(null);function N(e=f){switch("number"==typeof e&&(e=[e]),e.length){case 0:return"";case 1:return l.format(e[0]);case 2:return l.formatRange(e[0],e[1]);default:{let t=e.map(e=>l.format(e)),a=R.current;return a&&a.resolvedOptions().locale===l.resolvedOptions().locale||(a=R.current=new Intl.ListFormat(l.resolvedOptions().locale,{type:"unit"})),a.format(t)}}}function k(e){return s((t=e*(r-n)+n,Math.round((t-n)/i)*i+n),n,r);var t}return{values:f,defaultValues:void 0!==t.defaultValue?m:w,getThumbValue:e=>f[e],setThumbValue:F,setThumbPercent:function(e,t){F(e,k(t))},isThumbDragging:e=>y[e],setThumbDragging:function(e,t){if(a||!E(e))return;t&&(j.current=f);const n=C.current[e];var r;C.current=J(C.current,e,t),r=C.current,C.current=r,T(r),b&&n&&!C.current.some(Boolean)&&b(j.current)},focusedThumb:P,setFocusedThumb:D,getThumbPercent:e=>V(f[e]),getValuePercent:V,getThumbValueLabel:e=>N(f[e]),getFormattedValue:N,getThumbMinValue:M,getThumbMaxValue:S,getPercentValue:k,isThumbEditable:E,setThumbEditable:function(e,t){x.current[e]=t},incrementThumb:function(e,t=1){let a=Math.max(t,i);F(e,h(f[e]+a,n,r,i))},decrementThumb:function(e,t=1){let a=Math.max(t,i);F(e,h(f[e]-a,n,r,i))},step:i,pageSize:u,orientation:o,isDisabled:a}}function J(e,t,a){return e[t]===a?e:[...e.slice(0,t),a,...e.slice(t+1)]}function Q(e){if(null!=e)return Array.isArray(e)?e:[e]}function Z(e,t,a){return n=>{a?.("number"==typeof e||"number"==typeof t?n[0]:n)}}const _=e.createContext(null),ee=e.createContext(null),te=e.createContext(null),ae=e.createContext(null),ne=e.forwardRef(function(a,u){[a,u]=b(a,u,_);let c=e.useRef(null),d=f(a.formatOptions),m=q({...a,numberFormatter:d}),[g,h]=v(!a["aria-label"]&&!a["aria-labelledby"]),{groupProps:p,trackProps:D,labelProps:j,outputProps:C}=function(t,a,u){let{labelProps:c,fieldProps:d}=n(t),m="vertical"===t.orientation;X.set(a,{id:c.id??d.id,"aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]});let{direction:g}=r(),{addGlobalListener:h,removeGlobalListener:p}=l();const b=e.useRef(null),f="rtl"===g,v=e.useRef(null),{moveProps:w}=z({onMoveStart(){v.current=null},onMove({deltaX:e,deltaY:t}){if(!u.current)return;let{height:n,width:r}=u.current.getBoundingClientRect(),l=m?n:r;null==v.current&&null!=b.current&&(v.current=a.getThumbPercent(b.current)*l);let i=m?t:e;if((m||f)&&(i=-i),v.current+=i,null!=b.current&&u.current){const e=s(v.current/l,0,1);a.setThumbPercent(b.current,e)}},onMoveEnd(){null!=b.current&&(a.setThumbDragging(b.current,!1),b.current=null)}});let y=e.useRef(void 0),T=(e,n,r,l)=>{if(u.current&&!t.isDisabled&&a.values.every((e,t)=>!a.isThumbDragging(t))){let{height:t,width:s,top:i,left:o}=u.current.getBoundingClientRect(),c=((m?l:r)-(m?i:o))/(m?t:s);("rtl"===g||m)&&(c=1-c);let d,p=a.getPercentValue(c),f=a.values.findIndex(e=>p-e<0);if(0===f)d=f;else if(-1===f)d=a.values.length-1;else{let e=a.values[f-1],t=a.values[f];d=Math.abs(e-p)<Math.abs(t-p)?f-1:f}d>=0&&a.isThumbEditable(d)?(e.preventDefault(),b.current=d,a.setFocusedThumb(d),y.current=n,a.setThumbDragging(b.current,!0),a.setThumbValue(d,p),h(window,"mouseup",x,!1),h(window,"touchend",x,!1),h(window,"pointerup",x,!1)):b.current=null}},x=e=>{(e.pointerId??e.changedTouches?.[0].identifier)===y.current&&(null!Line truncated
|
||||
import{r as e,$ as t,j as a}from"./vendor-react-64fcanlc.js";import{g1 as n,bz as r,fq as l,fw as s,gc as i,cZ as o,gQ as u,d4 as c,cY as d,c$ as m,d8 as g,gp as p,d9 as h,db as b,gm as f,de as v,df as w,c_ as y,dh as T,di as x,dg as P,dq as D,dc as j,dp as C,aJ as V,dm as M,gR as S,gu as E,B as F,dK as R,dr as N,u as k,gS as I,bp as H,cy as K}from"./index-C06va4Yw.js";import{$ as z}from"./logs-BtAlqVqe.js";import{u as B,s as L,M as O,w as $,D as A}from"./wallpaper-CEC7gitM.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-hQ95uOjm.js";import"./ItemText-D6SGBgOi.js";import"./AppearanceControls-CEVO9-aR.js";import"./nodes-oXccX15o.js";const Y=new WeakMap;function X(e,t){let a=Y.get(e);if(!a)throw new Error("Unknown slider state");return`${a.id}-${t}`}const q=0,G=100,U=1;function W(t){const{isDisabled:a=!1,minValue:n=q,maxValue:r=G,numberFormatter:l,step:i=U,orientation:o="horizontal"}=t;let u=e.useMemo(()=>{let e=(r-n)/10;return e=p(e,0,e+i,i),Math.max(e,i)},[i,r,n]),c=e.useCallback(e=>e?.map((t,a)=>{let l=0===a?n:e[a-1],s=a===e.length-1?r:e[a+1];return p(t,l,s,i)}),[n,r,i]),d=e.useMemo(()=>c(J(t.value)),[t.value,c]),m=e.useMemo(()=>c(J(t.defaultValue)??[n]),[t.defaultValue,n,c]),g=Q(t.value,t.defaultValue,t.onChange),b=Q(t.value,t.defaultValue,t.onChangeEnd);const[f,v]=h(d,m,g);let[w]=e.useState(f);const[y,T]=e.useState(new Array(f.length).fill(!1)),x=e.useRef(new Array(f.length).fill(!0)),[P,D]=e.useState(void 0),j=e.useRef(f),C=e.useRef(y);function V(e){return(e-n)/(r-n)}function M(e){return 0===e?n:f[e-1]}function S(e){return e===f.length-1?r:f[e+1]}function E(e){return x.current[e]}function F(e,t){if(a||!E(e))return;const n=M(e),r=S(e);t=p(t,n,r,i);let l=_(j.current,e,t);var s;s=l,j.current=s,v(s)}let R=e.useRef(null);function N(e=f){switch("number"==typeof e&&(e=[e]),e.length){case 0:return"";case 1:return l.format(e[0]);case 2:return l.formatRange(e[0],e[1]);default:{let t=e.map(e=>l.format(e)),a=R.current;return a&&a.resolvedOptions().locale===l.resolvedOptions().locale||(a=R.current=new Intl.ListFormat(l.resolvedOptions().locale,{type:"unit"})),a.format(t)}}}function k(e){return s((t=e*(r-n)+n,Math.round((t-n)/i)*i+n),n,r);var t}return{values:f,defaultValues:void 0!==t.defaultValue?m:w,getThumbValue:e=>f[e],setThumbValue:F,setThumbPercent:function(e,t){F(e,k(t))},isThumbDragging:e=>y[e],setThumbDragging:function(e,t){if(a||!E(e))return;t&&(j.current=f);const n=C.current[e];var r;C.current=_(C.current,e,t),r=C.current,C.current=r,T(r),b&&n&&!C.current.some(Boolean)&&b(j.current)},focusedThumb:P,setFocusedThumb:D,getThumbPercent:e=>V(f[e]),getValuePercent:V,getThumbValueLabel:e=>N(f[e]),getFormattedValue:N,getThumbMinValue:M,getThumbMaxValue:S,getPercentValue:k,isThumbEditable:E,setThumbEditable:function(e,t){x.current[e]=t},incrementThumb:function(e,t=1){let a=Math.max(t,i);F(e,p(f[e]+a,n,r,i))},decrementThumb:function(e,t=1){let a=Math.max(t,i);F(e,p(f[e]-a,n,r,i))},step:i,pageSize:u,orientation:o,isDisabled:a}}function _(e,t,a){return e[t]===a?e:[...e.slice(0,t),a,...e.slice(t+1)]}function J(e){if(null!=e)return Array.isArray(e)?e:[e]}function Q(e,t,a){return n=>{a?.("number"==typeof e||"number"==typeof t?n[0]:n)}}const Z=e.createContext(null),ee=e.createContext(null),te=e.createContext(null),ae=e.createContext(null),ne=e.forwardRef(function(a,u){[a,u]=b(a,u,Z);let c=e.useRef(null),d=f(a.formatOptions),m=W({...a,numberFormatter:d}),[g,p]=v(!a["aria-label"]&&!a["aria-labelledby"]),{groupProps:h,trackProps:D,labelProps:j,outputProps:C}=function(t,a,u){let{labelProps:c,fieldProps:d}=n(t),m="vertical"===t.orientation;Y.set(a,{id:c.id??d.id,"aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]});let{direction:g}=r(),{addGlobalListener:p,removeGlobalListener:h}=l();const b=e.useRef(null),f="rtl"===g,v=e.useRef(null),{moveProps:w}=z({onMoveStart(){v.current=null},onMove({deltaX:e,deltaY:t}){if(!u.current)return;let{height:n,width:r}=u.current.getBoundingClientRect(),l=m?n:r;null==v.current&&null!=b.current&&(v.current=a.getThumbPercent(b.current)*l);let i=m?t:e;if((m||f)&&(i=-i),v.current+=i,null!=b.current&&u.current){const e=s(v.current/l,0,1);a.setThumbPercent(b.current,e)}},onMoveEnd(){null!=b.current&&(a.setThumbDragging(b.current,!1),b.current=null)}});let y=e.useRef(void 0),T=(e,n,r,l)=>{if(u.current&&!t.isDisabled&&a.values.every((e,t)=>!a.isThumbDragging(t))){let{height:t,width:s,top:i,left:o}=u.current.getBoundingClientRect(),c=((m?l:r)-(m?i:o))/(m?t:s);("rtl"===g||m)&&(c=1-c);let d,h=a.getPercentValue(c),f=a.values.findIndex(e=>h-e<0);if(0===f)d=f;else if(-1===f)d=a.values.length-1;else{let e=a.values[f-1],t=a.values[f];d=Math.abs(e-h)<Math.abs(t-h)?f-1:f}d>=0&&a.isThumbEditable(d)?(e.preventDefault(),b.current=d,a.setFocusedThumb(d),y.current=n,a.setThumbDragging(b.current,!0),a.setThumbValue(d,h),p(window,"mouseup",x,!1),p(window,"touchend",x,!1),p(window,"pointerup",x,!1)):b.current=null}},x=e=>{(e.pointerId??e.changedTouches?.[0].identifier)===y.current&&(null!Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{u as s,cn as a,bP as o,cx as l}from"./index-CUHkLMAp.js";import{D as t,p as d}from"./logs-C6Kb44nw.js";import{x as n}from"./Nodes-dSDkBdMR.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-BA0NS1_z.js";import"./ItemText-CnEXu0-f.js";import"./AppearanceControls-E-VPhjIz.js";import"./nodes-BYMoo8M1.js";import"./Tabs-DiTlqyjA.js";import"./useGridSelectionCheckbox-CTBMGgmQ.js";import"./Table-DX856nrS.js";import"./Virtualizer-UMC7L0o2.js";import"./Checkbox-8Iqnc6T1.js";import"./subscriptionEntries-JdG-Ijgl.js";import"./SearchList-DMvmI1K7.js";import"./BackendText-Dtw6qhij.js";import"./activity-B3PmJo_X.js";import"./TimeCell-N-r54xmV.js";import"./CardView-N7n2PJ-s.js";import"./GridList-CQPDUasC.js";import"./Tag-4SaGY8GT.js";import"./FlagPicker-BI-GnHgk.js";import"./SearchSelect-Fy-2ASgN.js";import"./outbounds-CUiHWeth.js";import"./probe-Cuvc4PWQ.js";function i({fields:i,duplicates:r,onChange:p,isDisabled:h}){const c=s(),x=e=>p({download:e}),m=i.mode||"auto",j=(e,s,a)=>{const o=[...i.headers];o[e]=[s,a],p({headers:o.filter(([e,s])=>e||s)})};return e.jsxs(t,{title:c("nodes.xhttp.title"),flush:!0,compact:!0,children:[e.jsx("span",{className:"rp-label",children:c("nodes.xhttp.help")}),e.jsx(d,{label:c("nodes.xhttp.mode"),items:[...new Set([...n,m])].map(e=>({id:e,label:e})),value:m,isDisabled:h,onChange:e=>e!==m&&p({mode:e})}),e.jsxs(a,{className:"top",children:[e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.path"),value:i.path,placeholder:"/",spellCheck:!1,onChange:e=>p({path:e})}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.host"),value:i.host,spellCheck:!1,onChange:e=>p({host:e})})]}),[...i.headers,["",""]].map(([s,l],t)=>e.jsxs(a,{className:"top",children:[e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.headerName",{n:t+1}),value:s,spellCheck:!1,error:r.has(t)?c("nodes.xhttp.headerDuplicate"):void 0,onChange:e=>j(t,e,l)}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.headerValue",{n:t+1}),value:l,spellCheck:!1,onChange:e=>j(t,s,e)})]},t)),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.padding"),value:i.xPaddingBytes,placeholder:"100-1000",onChange:e=>p({xPaddingBytes:e})}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.postBytes"),value:i.scMaxEachPostBytes,placeholder:"1000000",onChange:e=>p({scMaxEachPostBytes:e})}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.postInterval"),value:i.scMinPostsIntervalMs,placeholder:"30",onChange:e=>p({scMinPostsIntervalMs:e})}),e.jsx(l,{isSelected:i.noGRPCHeader,isDisabled:h,onChange:e=>p({noGRPCHeader:e}),children:c("nodes.xhttp.noGrpcHeader")}),e.jsx(l,{isSelected:!!i.download,isDisabled:h,description:c("nodes.xhttp.downloadHelp"),onChange:e=>p({download:e?{address:"",port:"443",serverName:"",path:"",host:""}:null}),children:c("nodes.xhttp.download")}),i.download&&e.jsxs(e.Fragment,{children:[e.jsxs(a,{className:"top",children:[e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.downloadAddress"),value:i.download.address,spellCheck:!1,onChange:e=>x({address:e})}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.downloadPort"),value:i.download.port,width:96,onChange:e=>x({port:e})})]}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.downloadServerName"),value:i.download.serverName,spellCheck:!1,onChange:e=>x({serverName:e})}),e.jsxs(a,{className:"top",children:[e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.downloadPath"),value:i.download.path,placeholder:"/",spellCheck:!1,onChange:e=>x({path:e})}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.downloadHost"),value:i.download.host,spellCheck:!1,onChange:e=>x({host:e})})]})]})]})}export{i as XhttpOptions};
|
||||
import{j as e}from"./vendor-react-64fcanlc.js";import{u as s,co as a,bQ as o,cy as l}from"./index-C06va4Yw.js";import{D as t,p as d}from"./logs-BtAlqVqe.js";import{x as n}from"./Nodes-oYqjPYEh.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-hQ95uOjm.js";import"./ItemText-D6SGBgOi.js";import"./AppearanceControls-CEVO9-aR.js";import"./nodes-oXccX15o.js";import"./Tabs-PDr10lJU.js";import"./useGridSelectionCheckbox-inhSeUkV.js";import"./Table-Cc5T3jJO.js";import"./Virtualizer-9R4wsZhf.js";import"./Checkbox-CsFZSc5N.js";import"./subscriptionEntries-BusVyEOj.js";import"./SearchList-LS4kpJXT.js";import"./BackendText-DK5RWFKi.js";import"./activity-BoXvjA12.js";import"./TimeCell-DSeESBN3.js";import"./CardView-jh7SJ_si.js";import"./GridList-Dgo5IXUg.js";import"./Tag-D4suq1U_.js";import"./FlagPicker-9QJIrYuT.js";import"./SearchSelect-q5tbOYXk.js";import"./outbounds-ynHeqeCa.js";import"./probe-y8tWllpS.js";function i({fields:i,duplicates:r,onChange:p,isDisabled:h}){const c=s(),m=e=>p({download:e}),x=i.mode||"auto",j=(e,s,a)=>{const o=[...i.headers];o[e]=[s,a],p({headers:o.filter(([e,s])=>e||s)})};return e.jsxs(t,{title:c("nodes.xhttp.title"),flush:!0,compact:!0,children:[e.jsx("span",{className:"rp-label",children:c("nodes.xhttp.help")}),e.jsx(d,{label:c("nodes.xhttp.mode"),items:[...new Set([...n,x])].map(e=>({id:e,label:e})),value:x,isDisabled:h,onChange:e=>e!==x&&p({mode:e})}),e.jsxs(a,{className:"top",children:[e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.path"),value:i.path,placeholder:"/",spellCheck:!1,onChange:e=>p({path:e})}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.host"),value:i.host,spellCheck:!1,onChange:e=>p({host:e})})]}),[...i.headers,["",""]].map(([s,l],t)=>e.jsxs(a,{className:"top",children:[e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.headerName",{n:t+1}),value:s,spellCheck:!1,error:r.has(t)?c("nodes.xhttp.headerDuplicate"):void 0,onChange:e=>j(t,e,l)}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.headerValue",{n:t+1}),value:l,spellCheck:!1,onChange:e=>j(t,s,e)})]},t)),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.padding"),value:i.xPaddingBytes,placeholder:"100-1000",onChange:e=>p({xPaddingBytes:e})}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.postBytes"),value:i.scMaxEachPostBytes,placeholder:"1000000",onChange:e=>p({scMaxEachPostBytes:e})}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.postInterval"),value:i.scMinPostsIntervalMs,placeholder:"30",onChange:e=>p({scMinPostsIntervalMs:e})}),e.jsx(l,{isSelected:i.noGRPCHeader,isDisabled:h,onChange:e=>p({noGRPCHeader:e}),children:c("nodes.xhttp.noGrpcHeader")}),e.jsx(l,{isSelected:!!i.download,isDisabled:h,description:c("nodes.xhttp.downloadHelp"),onChange:e=>p({download:e?{address:"",port:"443",serverName:"",path:"",host:""}:null}),children:c("nodes.xhttp.download")}),i.download&&e.jsxs(e.Fragment,{children:[e.jsxs(a,{className:"top",children:[e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.downloadAddress"),value:i.download.address,spellCheck:!1,onChange:e=>m({address:e})}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.downloadPort"),value:i.download.port,width:96,onChange:e=>m({port:e})})]}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.downloadServerName"),value:i.download.serverName,spellCheck:!1,onChange:e=>m({serverName:e})}),e.jsxs(a,{className:"top",children:[e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.downloadPath"),value:i.download.path,placeholder:"/",spellCheck:!1,onChange:e=>m({path:e})}),e.jsx(o,{isDisabled:h,label:c("nodes.xhttp.downloadHost"),value:i.download.host,spellCheck:!1,onChange:e=>m({host:e})})]})]})]})}export{i as XhttpOptions};
|
||||
@@ -1,2 +0,0 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AreaChart-Ci1Uh0tf.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-CUHkLMAp.js","./index-DhY2A0CV.css","./AreaCurve-DQSHOSpG.js","./array-C0VuvQyb.js","./nodes-BYMoo8M1.js","./logs-C6Kb44nw.js","./Select-BA0NS1_z.js","./ItemText-CnEXu0-f.js","./AppearanceControls-E-VPhjIz.js","./Sparkline-CGmJj9ao.js","./Donut-CaWe91EB.js","./ModeReadOnlyHint-DXD7rshf.js","./limitHint-nHl9AqvH.js","./Editors-DF8AauI-.js","./GridList-CQPDUasC.js","./useGridSelectionCheckbox-CTBMGgmQ.js","./Delete-D-jw0Qv4.js","./Editors-rPgk_VZK.css","./index-CevJ0lw3.js","./geodata-CvcFemyc.js","./auth-DucfFvIi.js","./auth-hmN4lsTM.js"])))=>i.map(i=>d[i]);
|
||||
import{r as e,a as t,j as n}from"./vendor-react-64fcanlc.js";import{d as s,h as a,n as r,o as i,w as o,$ as l,s as c,R as d,S as u,a as m,b as p,I as h,L as f,u as g,c as b,_ as x,e as v,f as y,N as j,T as w,g as k,i as M,j as N,k as _,B as S,E as C,C as E,l as L,P as z,m as P,p as R,q as O,r as A,t as q,v as I,A as T,x as D,y as H,z as F,D as $,F as B,G as V,H as W,J as G,K as U,M as K,O as J,Q as X,U as Y,V as Z,W as Q,X as ee,Y as te,Z as ne,a0 as se,a1 as ae,a2 as re,a3 as ie,a4 as oe,a5 as le,a6 as ce,a7 as de,a8 as ue,a9 as me,aa as pe,ab as he,ac as fe,ad as ge,ae as be,af as xe,ag as ve,ah as ye,ai as je,aj as we,ak as ke,al as Me,am as Ne,an as _e,ao as Se,ap as Ce,aq as Ee,ar as Le,as as ze,at as Pe,au as Re,av as Oe,aw as Ae,ax as qe,ay as Ie,az as Te,aA as De,aB as He,aC as Fe,aD as $e,aE as Be,aF as Ve,aG as We,aH as Ge,aI as Ue,aJ as Ke,aK as Je,aL as Xe,aM as Ye,aN as Ze,aO as Qe,aP as et,aQ as tt,aR as nt,aS as st,aT as at,aU as rt,aV as it,aW as ot,aX as lt,aY as ct,aZ as dt,a_ as ut,a$ as mt,b0 as pt,b1 as ht,b2 as ft,b3 as gt,b4 as bt,b5 as xt,b6 as vt,b7 as yt,b8 as jt,b9 as wt,ba as kt,bb as Mt,bc as Nt,bd as _t,be as St,bf as Ct,bg as Et,bh as Lt,bi as zt,bj as Pt,bk as Rt,bl as Ot,bm as At,bn as qt,bo as It,bp as Tt,bq as Dt,br as Ht,bs as Ft,bt as $t,bu as Bt,bv as Vt,bw as Wt,bx as Gt,by as Ut,bz as Kt,bA as Jt,bB as Xt,bC as Yt,bD as Zt,bE as Qt,bF as en}from"./index-CUHkLMAp.js";import{r as tn,d as nn,u as sn,c as an,s as rn,a as on,b as ln,e as cn,f as dn,g as un,h as mn,i as pn,j as hn,k as fn,l as gn,n as bn,m as xn,o as vn,p as yn,q as jn,t as wn,v as kn,w as Mn,x as Nn,y as _n,z as Sn,A as Cn,B as En,C as Ln,D as zn,E as Pn,F as Rn,G as On,H as An,I as qn}from"./nodes-BYMoo8M1.js";import{W as In,S as Tn,L as Dn,u as Hn,a as Fn,b as $n,c as Bn,e as Vn,l as Wn,d as Gn,f as Un,g as Kn,h as Jn,V as Xn,B as Yn,i as Zn,C as Qn,r as es,K as ts,D as ns,M as ss,$ as as,j as rs,k as is,m as os,n as ls}from"./logs-C6Kb44nw.js";import{I as cs,C as ds}from"./ItemText-CnEXu0-f.js";import{C as us,u as ms,D as ps,L as hs,P as fs,S as gs,T as bs,a as xs,b as vs}from"./AppearanceControls-E-VPhjIz.js";const ys={"missing-offline-dependency":"config.diagnostic.offlineMissing","offline-dependency-denied":"config.diagnostic.offlineDenied","invalid-offline-dependency":"config.diagnostic.offlineInvalid","unreadable-offline-dependency":"config.diagnostic.offlineUnreadable"},js=e=>Object.hasOwn(ys,e);function ws(e,t,n){return js(e.code)?{summary:t("config.diagnostic.offline",{reason:t(ys[e.code]),which:n?t("config.diagnostic.offlineGeodata",{files:n}):t("config.diagnostic.offlineUsual")})}:s(e,t)}const ks=e=>[...new Set(e.flatMap(({item:e,message:t})=>e.message&&!t.includes(e.message)?[e.message]:[]))],Ms=(e,t,n)=>{const s=e.flatMap(e=>{const s=e.id===t?.id?t.content:e.content;return void 0===s?[]:n(s)});return[...new Map(s.map(({name:e,written:t})=>[t,{name:e,written:t}])).values()]},Ns=(e,t)=>Ms(e,t,tn),_s=(e,t)=>Ms(e,t,e=>nn(e).map(e=>({name:sn(e),written:e}))),Ss=e=>"<redacted>"===e.path||""===e.path,Cs=e=>Ss(e)?"main"===e.kind?"config.dae":`${e.kind}-${e.id.slice(0,8)}.dae`:e.path.split("/").pop()||"config.dae";function Es(e,t){const n=e.find(e=>"main"===e.kind);if(!n)return null;const s=[n,...e.filter(e=>"include"===e.kind&&!Ss(e))];return t&&!s.some(e=>e.id===t.id)?null:s.map(e=>({id:e.id,...Ss(e)?{}:{path:e.path},content:e.id===t?.id?t.content:e.content}))}const Ls=e=>e.filter(e=>"error"===e.level&&"restart-required"===e.code).map(e=>({key:/\b[a-z][a-z0-9_]*(?:\.[a-z0-9_]+)+\b/.exec(e.message)?.[0]??(e.message||null),sourceId:e.source_id,line:e.line})),zs=e=>Ls(e).length,Ps={main:"config.kind.main",include:"config.kind.include",subscription:"nodes.kind.subscription",generated:"config.kind.generated"},Rs=(e,t)=>`${e}:${t}`;function Os(e,t){const n=e.indexOf(":"),s=e.slice(0,n);return n>0&&t.includes(s)?{kind:s,value:e.slice(n+1)}:null}const As=(e,t)=>t&&e?a("rules",{tab:"list",rule:e}):void 0,qs=(e,t,n=!1)=>a("nodes",{provider:r(e,t),q:e.name,node:n?e.id??null:null});function Is(e,t){const n=e?.find(e=>e.name===t)?.id;return n?o("",{group:n}):""}function Ts(e,t,n){const s=t?.find(t=>t.name===e);return s?{label:s.name,href:a("policies",{group:s.id})}:{label:i(e,n),href:null}}const Ds=["network","domain","dst_ip","dst_port","src_ip","src_port","pname"],Hs=e=>o("",{tab:"trace",...Object.fromEntries(Ds.map(t=>[t,e[t]||null]))});function Fs(e){const t=new URLSearchParams(e),n=e=>t.get(e)??"";return n("domain")||n("dst_ip")?{network:"udp"===n("network")?"udp":"tcp",domain:n("domain"),dst_ip:n("dst_ip"),dst_port:n("dst_port"),src_ip:n("src_ip"),src_port:n("src_port"),pname:n("pname")}:null}const $s=a("settings",{card:"runtime"});function Bs(e,t=an){return e?Os(e,t):null}function Vs(e,t){const n=e.filter(e=>"main"===e.kind||"include"===e.kind);for(const s of n){const e=rn(s.content).blocks.find(e=>e.name===t);if(e)return a("config",{tab:"source",source:s.id,line:String(e.line+1)})}return a("config",{taLine truncated
|
||||
@@ -0,0 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AreaChart-B0HmHYXx.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-C06va4Yw.js","./index-DdIDwpAM.css","./AreaCurve-DQSHOSpG.js","./array-C0VuvQyb.js","./nodes-oXccX15o.js","./logs-BtAlqVqe.js","./Select-hQ95uOjm.js","./ItemText-D6SGBgOi.js","./AppearanceControls-CEVO9-aR.js","./Sparkline-Bn_AHmiF.js","./Donut-D4QPrxiw.js","./ModeReadOnlyHint-D3IWP6gj.js","./limitHint-Cb7NYoro.js","./Editors-BlMhsZNx.js","./GridList-Dgo5IXUg.js","./useGridSelectionCheckbox-inhSeUkV.js","./Delete-DqJAS65M.js","./Editors-rPgk_VZK.css","./index-r_PqDIOh.js","./groupFilters-D2DpD7-F.js","./geodata-CvcFemyc.js","./auth-6JyCJBV2.js","./auth-DQ-HlQv0.js"])))=>i.map(i=>d[i]);
|
||||
import{r as e,a as t,j as n}from"./vendor-react-64fcanlc.js";import{d as s,h as a,n as r,o as i,w as o,$ as l,s as c,R as d,S as u,a as m,b as p,I as h,L as f,u as g,c as b,_ as x,e as v,f as y,N as j,T as w,g as k,i as M,j as N,k as _,B as S,E as C,C as E,l as L,P as z,m as P,p as R,q as O,r as A,t as q,v as I,A as T,x as D,y as H,z as F,D as $,F as B,G as V,H as W,J as G,K as U,M as K,O as J,Q as X,U as Y,V as Z,W as Q,X as ee,Y as te,Z as ne,a0 as se,a1 as ae,a2 as re,a3 as ie,a4 as oe,a5 as le,a6 as ce,a7 as de,a8 as ue,a9 as me,aa as pe,ab as he,ac as fe,ad as ge,ae as be,af as xe,ag as ve,ah as ye,ai as je,aj as we,ak as ke,al as Me,am as Ne,an as _e,ao as Se,ap as Ce,aq as Ee,ar as Le,as as ze,at as Pe,au as Re,av as Oe,aw as Ae,ax as qe,ay as Ie,az as Te,aA as De,aB as He,aC as Fe,aD as $e,aE as Be,aF as Ve,aG as We,aH as Ge,aI as Ue,aJ as Ke,aK as Je,aL as Xe,aM as Ye,aN as Ze,aO as Qe,aP as et,aQ as tt,aR as nt,aS as st,aT as at,aU as rt,aV as it,aW as ot,aX as lt,aY as ct,aZ as dt,a_ as ut,a$ as mt,b0 as pt,b1 as ht,b2 as ft,b3 as gt,b4 as bt,b5 as xt,b6 as vt,b7 as yt,b8 as jt,b9 as wt,ba as kt,bb as Mt,bc as Nt,bd as _t,be as St,bf as Ct,bg as Et,bh as Lt,bi as zt,bj as Pt,bk as Rt,bl as Ot,bm as At,bn as qt,bo as It,bp as Tt,bq as Dt,br as Ht,bs as Ft,bt as $t,bu as Bt,bv as Vt,bw as Wt,bx as Gt,by as Ut,bz as Kt,bA as Jt,bB as Xt,bC as Yt,bD as Zt,bE as Qt,bF as en,bG as tn}from"./index-C06va4Yw.js";import{r as nn,d as sn,u as an,c as rn,s as on,a as ln,b as cn,e as dn,f as un,g as mn,h as pn,i as hn,j as fn,k as gn,l as bn,n as xn,m as vn,o as yn,p as jn,q as wn,t as kn,v as Mn,w as Nn,x as _n,y as Sn,z as Cn,A as En,B as Ln,C as zn,D as Pn,E as Rn,F as On,G as An,H as qn}from"./nodes-oXccX15o.js";import{W as In,S as Tn,L as Dn,u as Hn,a as Fn,b as $n,c as Bn,e as Vn,l as Wn,d as Gn,f as Un,g as Kn,h as Jn,V as Xn,B as Yn,i as Zn,C as Qn,r as es,K as ts,D as ns,M as ss,$ as as,j as rs,k as is,m as os,n as ls}from"./logs-BtAlqVqe.js";import{I as cs,C as ds}from"./ItemText-D6SGBgOi.js";import{C as us,u as ms,D as ps,L as hs,P as fs,S as gs,T as bs,a as xs,b as vs}from"./AppearanceControls-CEVO9-aR.js";const ys={"missing-offline-dependency":"config.diagnostic.offlineMissing","offline-dependency-denied":"config.diagnostic.offlineDenied","invalid-offline-dependency":"config.diagnostic.offlineInvalid","unreadable-offline-dependency":"config.diagnostic.offlineUnreadable"},js=e=>Object.hasOwn(ys,e);function ws(e,t,n){return js(e.code)?{summary:t("config.diagnostic.offline",{reason:t(ys[e.code]),which:n?t("config.diagnostic.offlineGeodata",{files:n}):t("config.diagnostic.offlineUsual")})}:s(e,t)}const ks=e=>[...new Set(e.flatMap(({item:e,message:t})=>e.message&&!t.includes(e.message)?[e.message]:[]))],Ms=(e,t,n)=>{const s=e.flatMap(e=>{const s=e.id===t?.id?t.content:e.content;return void 0===s?[]:n(s)});return[...new Map(s.map(({name:e,written:t})=>[t,{name:e,written:t}])).values()]},Ns=(e,t)=>Ms(e,t,nn),_s=(e,t)=>Ms(e,t,e=>sn(e).map(e=>({name:an(e),written:e}))),Ss=e=>"<redacted>"===e.path||""===e.path,Cs=e=>Ss(e)?"main"===e.kind?"config.dae":`${e.kind}-${e.id.slice(0,8)}.dae`:e.path.split("/").pop()||"config.dae";function Es(e,t){const n=e.find(e=>"main"===e.kind);if(!n)return null;const s=[n,...e.filter(e=>"include"===e.kind&&!Ss(e))];return t&&!s.some(e=>e.id===t.id)?null:s.map(e=>({id:e.id,...Ss(e)?{}:{path:e.path},content:e.id===t?.id?t.content:e.content}))}const Ls=e=>e.filter(e=>"error"===e.level&&"restart-required"===e.code).map(e=>({key:/\b[a-z][a-z0-9_]*(?:\.[a-z0-9_]+)+\b/.exec(e.message)?.[0]??(e.message||null),sourceId:e.source_id,line:e.line})),zs=e=>Ls(e).length,Ps={main:"config.kind.main",include:"config.kind.include",subscription:"nodes.kind.subscription",generated:"config.kind.generated"},Rs=(e,t)=>`${e}:${t}`;function Os(e,t){const n=e.indexOf(":"),s=e.slice(0,n);return n>0&&t.includes(s)?{kind:s,value:e.slice(n+1)}:null}const As=(e,t)=>t&&e?a("rules",{tab:"list",rule:e}):void 0,qs=(e,t,n=!1)=>a("nodes",{provider:r(e,t),q:e.name,node:n?e.id??null:null});function Is(e,t){const n=e?.find(e=>e.name===t)?.id;return n?o("",{group:n}):""}function Ts(e,t,n){const s=t?.find(t=>t.name===e);return s?{label:s.name,href:a("policies",{group:s.id})}:{label:i(e,n),href:null}}const Ds=["network","domain","dst_ip","dst_port","src_ip","src_port","pname"],Hs=e=>o("",{tab:"trace",...Object.fromEntries(Ds.map(t=>[t,e[t]||null]))});function Fs(e){const t=new URLSearchParams(e),n=e=>t.get(e)??"";return n("domain")||n("dst_ip")?{network:"udp"===n("network")?"udp":"tcp",domain:n("domain"),dst_ip:n("dst_ip"),dst_port:n("dst_port"),src_ip:n("src_ip"),src_port:n("src_port"),pname:n("pname")}:null}const $s=a("settings",{card:"runtime"});function Bs(e,t=rn){return e?Os(e,t):null}function Vs(e,t){const n=e.filter(e=>"main"===e.kind||"include"===e.kind);for(const s of n){const e=on(s.content).blocks.find(e=>e.name===t);if(e)return a("config",{tab:"source",source:s.id,line:String(e.line+1)})}return a("config",{tLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
:root[data-family=antd]{--rp-base:#f5f5f5;--rp-surface:#fff;--rp-overlay:#0000000f;--rp-muted:#00000040;--rp-subtle:#00000073;--rp-text:#000000e0;--rp-love:#ff4d4f;--rp-gold:#faad14;--rp-rose:#fa8c16;--rp-pine:#1677ff;--rp-foam:#52c41a;--rp-iris:#722ed1;--rp-c1:#5b8ff9;--rp-c2:#5ad8a6;--rp-c3:#5d7092;--rp-c4:#f6bd16;--rp-c5:#6f5ef9;--rp-c6:#6dc8ec;--rp-c7:#945fb9;--rp-c8:#ff9845;--rp-hl-low:#f0f0f0;--rp-hl-med:#d9d9d9;--rp-hl-high:#00000026;--rp-on-accent:var(--rp-text);--rp-on-text:#fff;--rp-line:#f0f0f0;--rp-shadow:0 1px 2px #00000008, 0 1px 6px -1px #00000005, 0 2px 4px #00000005;--rp-accent-text:var(--rp-text);--rp-negative-text:var(--rp-text);--rp-notice-text:var(--rp-text);--rp-positive-text:var(--rp-text);--rp-info-text:var(--rp-text);--rp-subtle-text:var(--rp-text)}:root[data-family=antd][data-scheme=dark]{--rp-base:#000;--rp-surface:#141414;--rp-overlay:#ffffff14;--rp-muted:#ffffff40;--rp-subtle:#ffffff73;--rp-text:#ffffffd9;--rp-love:#dc4446;--rp-gold:#d89614;--rp-rose:#d87a16;--rp-pine:#1668dc;--rp-foam:#49aa19;--rp-iris:#642ab5;--rp-c1:#5b8ff9;--rp-c2:#5ad8a6;--rp-c3:#5d7092;--rp-c4:#f6bd16;--rp-c5:#e86452;--rp-c6:#6dc8ec;--rp-c7:#945fb9;--rp-c8:#ff9845;--rp-hl-low:#303030;--rp-hl-med:#424242;--rp-hl-high:#ffffff2e;--rp-on-accent:#fff;--rp-on-positive:var(--rp-base);--rp-on-negative:var(--rp-base);--rp-on-notice:var(--rp-base);--rp-on-text:#141414;--rp-line:#303030;--rp-shadow:0 1px 2px #00000008, 0 1px 6px -1px #00000005, 0 2px 4px #00000005;--rp-notice-text:var(--rp-notice);--rp-positive-text:var(--rp-positive)}
|
||||
@@ -0,0 +1 @@
|
||||
:root[data-family=arco]{--rp-base:#fff;--rp-surface:#fff;--rp-overlay:#f2f3f5;--rp-muted:#c9cdd4;--rp-subtle:#86909c;--rp-text:#1d2129;--rp-love:#f53f3f;--rp-gold:#f7ba1e;--rp-rose:#ff7d00;--rp-pine:#165dff;--rp-foam:#00b42a;--rp-iris:#722ed1;--rp-c1:#4080ff;--rp-c2:#4cd263;--rp-c3:#a871e3;--rp-c4:#ff7d00;--rp-c5:#14c9c9;--rp-c6:#f979b7;--rp-c7:#f7ba1e;--rp-c8:#9fdb1d;--rp-hl-low:#f2f3f5;--rp-hl-med:#e5e6eb;--rp-hl-high:#c9cdd4;--rp-on-accent:#fff;--rp-on-text:#fff;--rp-line:#e5e6eb;--rp-shadow:0 2px 5px #0000001a;--rp-negative-text:var(--rp-text);--rp-notice-text:var(--rp-text);--rp-positive-text:var(--rp-text);--rp-accent-tile-text:var(--rp-text);--rp-info-tile-text:var(--rp-text);--rp-subtle-text:var(--rp-text)}:root[data-family=arco][data-scheme=dark]{--rp-base:#17171a;--rp-surface:#232324;--rp-overlay:#ffffff14;--rp-muted:#ffffff4d;--rp-subtle:#ffffff80;--rp-text:#ffffffe6;--rp-love:#f76965;--rp-gold:#f9cc44;--rp-rose:#ff9626;--rp-pine:#3c7eff;--rp-foam:#27c346;--rp-iris:#8e51da;--rp-c1:#306fff;--rp-c2:#129a37;--rp-c3:#5a25b0;--rp-c4:#ff9626;--rp-c5:#3fd4cf;--rp-c6:#cb2b88;--rp-c7:#f9cc44;--rp-c8:#b8e24b;--rp-hl-low:#ffffff14;--rp-hl-med:#333335;--rp-hl-high:#ffffff29;--rp-on-accent:var(--rp-base);--rp-on-notice:var(--rp-on-accent);--rp-on-text:#17171a;--rp-line:#333335;--rp-shadow:0 2px 5px #0000001a;--rp-accent-text:var(--rp-text);--rp-negative-text:var(--rp-negative);--rp-notice-text:var(--rp-notice);--rp-positive-text:var(--rp-positive);--rp-info-text:var(--rp-text);--rp-negative-tile-text:var(--rp-text)}
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{D as e}from"./auth-hmN4lsTM.js";import{A as t,bT as o}from"./index-CUHkLMAp.js";import"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";const r="demo-session-";function n(){return{mode:"password",setup_required:!1}}const s={auth_setup:"/api/v1/auth/setup",auth_login:"/api/v1/auth/login"};function a(n,s){if("setup"===n)throw new t(409,"setup_already_completed","Setup already completed");if(s.username!==e.username||s.password!==e.password)throw new t(401,"invalid_credentials","Invalid credentials");return{token:r+o(),expires_at:new Date(Date.now()+432e5).toISOString()}}function i(e){return!!e?.startsWith(r)}function u(e){return{...e,discovery:async t=>{const o=await e.discovery(t);return"status"in o?{...o,links:{...o.links,...s,auth_logout:"/api/v1/auth/logout"},auth:{mode:"password",setup_required:!1,anonymous_loopback:!1}}:o}}}function d(e){const o=()=>Promise.reject(new t(401,"authentication_required","Authentication required")),r=async e=>(e?.throwIfAborted(),{name:"daeuniverse/native",api_major:1,links:{...s},auth:{mode:"password",setup_required:!1}});return new Proxy(e,{get:(e,t,n)=>"discovery"===t?r:"function"==typeof Reflect.get(e,t,n)?o:void 0})}export{n as mockDiscovery,a as mockOpenSession,i as mockSessionValid,d as refuseWithoutSession,u as withPasswordAuth};
|
||||
import{D as e}from"./auth-DQ-HlQv0.js";import{A as t,bU as o}from"./index-C06va4Yw.js";import"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";const r="demo-session-";function n(){return{mode:"password",setup_required:!1}}const s={auth_setup:"/api/v1/auth/setup",auth_login:"/api/v1/auth/login"};function a(n,s){if("setup"===n)throw new t(409,"setup_already_completed","Setup already completed");if(s.username!==e.username||s.password!==e.password)throw new t(401,"invalid_credentials","Invalid credentials");return{token:r+o(),expires_at:new Date(Date.now()+432e5).toISOString()}}function i(e){return!!e?.startsWith(r)}function u(e){return{...e,discovery:async t=>{const o=await e.discovery(t);return"status"in o?{...o,links:{...o.links,...s,auth_logout:"/api/v1/auth/logout"},auth:{mode:"password",setup_required:!1,anonymous_loopback:!1}}:o}}}function d(e){const o=()=>Promise.reject(new t(401,"authentication_required","Authentication required")),r=async e=>(e?.throwIfAborted(),{name:"daeuniverse/native",api_major:1,links:{...s},auth:{mode:"password",setup_required:!1}});return new Proxy(e,{get:(e,t,n)=>"discovery"===t?r:"function"==typeof Reflect.get(e,t,n)?o:void 0})}export{n as mockDiscovery,a as mockOpenSession,i as mockSessionValid,d as refuseWithoutSession,u as withPasswordAuth};
|
||||
+2
-2
@@ -1,2 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./auth-DucfFvIi.js","./index-CUHkLMAp.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-DhY2A0CV.css"])))=>i.map(i=>d[i]);
|
||||
import{bI as a,ei as t,ej as o,v as n,_ as e}from"./index-CUHkLMAp.js";const i=(a,t)=>new URL(a.replace(/\/+$/,"")+t,globalThis.location?.href),s=()=>e(()=>import("./auth-DucfFvIi.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),c={username:"demo",password:"demo"},r=["dae/honk-native"];async function p(e,c){if(a(e))return(await s()).mockDiscovery();const p=await t(i(e,"/api"),{headers:{Accept:"application/json"},cache:"no-store",signal:c});if(!p.ok)throw await o(p);const u=await p.json();if(void 0!==u.name&&r.includes(u.name))throw new n("login.engineOutdated");return u.auth}async function u(a,o){const n=await t(i(a,"/api/v1/capabilities"),{headers:{Accept:"application/json"},cache:"no-store",signal:o});return n.body?.cancel().catch(()=>{}),404!==n.status}function h(a){return"password"!==a.mode?"token":a.setup_required?"setup":"login"}async function d(n,e,c,r){if(a(n))return(await s()).mockOpenSession(e,c);const p=await t(i(n,`/api/v1/auth/${e}`),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(c),cache:"no-store",signal:r},"setup"===e);if(!p.ok)throw await o(p,"POST");return p.json()}async function l(n,e,s){if(a(n))return;const c=await t(i(n,"/api/v1/auth/logout"),{method:"POST",headers:{Accept:"application/json",Authorization:"Bearer "+e},cache:"no-store",signal:s});if(!c.ok&&401!==c.status)throw await o(c,"POST");c.body?.cancel().catch(()=>{})}export{c as D,u as a,l as c,p as d,d as o,h as s};
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./auth-6JyCJBV2.js","./index-C06va4Yw.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-DdIDwpAM.css"])))=>i.map(i=>d[i]);
|
||||
import{bJ as a,ek as t,el as o,v as n,_ as e}from"./index-C06va4Yw.js";const i=(a,t)=>new URL(a.replace(/\/+$/,"")+t,globalThis.location?.href),s=()=>e(()=>import("./auth-6JyCJBV2.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),c={username:"demo",password:"demo"},r=["dae/honk-native"];async function p(e,c){if(a(e))return(await s()).mockDiscovery();const p=await t(i(e,"/api"),{headers:{Accept:"application/json"},cache:"no-store",signal:c});if(!p.ok)throw await o(p);const u=await p.json();if(void 0!==u.name&&r.includes(u.name))throw new n("login.engineOutdated");return u.auth}async function u(a,o){const n=await t(i(a,"/api/v1/capabilities"),{headers:{Accept:"application/json"},cache:"no-store",signal:o});return n.body?.cancel().catch(()=>{}),404!==n.status}function h(a){return"password"!==a.mode?"token":a.setup_required?"setup":"login"}async function d(n,e,c,r){if(a(n))return(await s()).mockOpenSession(e,c);const p=await t(i(n,`/api/v1/auth/${e}`),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(c),cache:"no-store",signal:r},"setup"===e);if(!p.ok)throw await o(p,"POST");return p.json()}async function l(n,e,s){if(a(n))return;const c=await t(i(n,"/api/v1/auth/logout"),{method:"POST",headers:{Accept:"application/json",Authorization:"Bearer "+e},cache:"no-store",signal:s});if(!c.ok&&401!==c.status)throw await o(c,"POST");c.body?.cancel().catch(()=>{})}export{c as D,u as a,l as c,p as d,d as o,h as s};
|
||||
@@ -0,0 +1 @@
|
||||
:root[data-family=catppuccin]{--rp-base:#e6e9ef;--rp-surface:#eff1f5;--rp-overlay:#dce0e8;--rp-muted:#9ca0b0;--rp-subtle:#6c6f85;--rp-text:#4c4f69;--rp-love:#d20f39;--rp-gold:#df8e1d;--rp-rose:#fe640b;--rp-pine:#1e66f5;--rp-foam:#179299;--rp-iris:#8839ef;--rp-c1:#1e66f5;--rp-c2:#179299;--rp-c3:#8839ef;--rp-c4:#fe640b;--rp-c5:#40a02b;--rp-c6:#ea76cb;--rp-c7:#df8e1d;--rp-c8:#d20f39;--rp-hl-low:#dce0e8;--rp-hl-med:#ccd0da;--rp-hl-high:#bcc0cc;--rp-shadow:0 1px 2px #4c4f691a;--rp-on-accent:#fff;--rp-accent-text:var(--rp-text);--rp-negative-text:var(--rp-text);--rp-notice-text:var(--rp-text);--rp-positive-text:var(--rp-text);--rp-info-text:var(--rp-text);--rp-subtle-text:var(--rp-text)}:root[data-family=catppuccin][data-scheme=dark],:root[data-flavour=mocha][data-scheme=dark]{--rp-base:#181825;--rp-surface:#1e1e2e;--rp-overlay:#313244;--rp-muted:#6c7086;--rp-subtle:#a6adc8;--rp-text:#cdd6f4;--rp-love:#f38ba8;--rp-gold:#f9e2af;--rp-rose:#fab387;--rp-pine:#89b4fa;--rp-foam:#94e2d5;--rp-iris:#cba6f7;--rp-c1:#89b4fa;--rp-c2:#94e2d5;--rp-c3:#cba6f7;--rp-c4:#fab387;--rp-c5:#a6e3a1;--rp-c6:#f5c2e7;--rp-c7:#f9e2af;--rp-c8:#f38ba8;--rp-hl-low:#313244;--rp-hl-med:#45475a;--rp-hl-high:#585b70;--rp-shadow:0 1px 2px #00000059;--rp-on-accent:var(--rp-surface);--rp-on-notice:var(--rp-on-accent);--rp-accent-text:var(--rp-accent);--rp-negative-text:var(--rp-negative);--rp-notice-text:var(--rp-notice);--rp-positive-text:var(--rp-positive);--rp-info-text:var(--rp-info);--rp-negative-tile-text:var(--rp-text);--rp-subtle-text:var(--rp-subtle)}:root[data-flavour=frappe][data-scheme=dark]{--rp-base:#292c3c;--rp-surface:#303446;--rp-overlay:#414559;--rp-muted:#737994;--rp-subtle:#a5adce;--rp-text:#c6d0f5;--rp-love:#e78284;--rp-gold:#e5c890;--rp-rose:#ef9f76;--rp-pine:#8caaee;--rp-foam:#81c8be;--rp-iris:#ca9ee6;--rp-c1:#8caaee;--rp-c2:#81c8be;--rp-c3:#ca9ee6;--rp-c4:#ef9f76;--rp-c5:#a6d189;--rp-c6:#f4b8e4;--rp-c7:#e5c890;--rp-c8:#e78284;--rp-hl-low:#414559;--rp-hl-med:#51576d;--rp-hl-high:#626880;--rp-shadow:0 1px 2px #0000004d;--rp-accent-tile-text:var(--rp-text);--rp-positive-tile-text:var(--rp-text);--rp-info-tile-text:var(--rp-text);--rp-subtle-text:var(--rp-text)}:root[data-flavour=macchiato][data-scheme=dark]{--rp-base:#1e2030;--rp-surface:#24273a;--rp-overlay:#363a4f;--rp-muted:#6e738d;--rp-subtle:#a5adcb;--rp-text:#cad3f5;--rp-love:#ed8796;--rp-gold:#eed49f;--rp-rose:#f5a97f;--rp-pine:#8aadf4;--rp-foam:#8bd5ca;--rp-iris:#c6a0f6;--rp-c1:#8aadf4;--rp-c2:#8bd5ca;--rp-c3:#c6a0f6;--rp-c4:#f5a97f;--rp-c5:#a6da95;--rp-c6:#f5bde6;--rp-c7:#eed49f;--rp-c8:#ed8796;--rp-hl-low:#363a4f;--rp-hl-med:#494d64;--rp-hl-high:#5b6078;--rp-shadow:0 1px 2px #00000059;--rp-accent-tile-text:var(--rp-text);--rp-info-tile-text:var(--rp-text);--rp-subtle-text:var(--rp-text)}
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{af as e,fD as n,r as t,fE as r,fG as s,ay as a,fF as o,dr as i,fR as l}from"./index-CUHkLMAp.js";async function u(e,{input:n,resolve:t,recordTypes:r},s){if("query"!==t)return{traces:[await e.routingTrace({input:n,resolve:t},s)],query:null};const a=await e.dnsQuery(n.domain,r,s),o=[...new Set(["A","AAAA"].flatMap(e=>a.results.filter(n=>n.type===e).map(i).find(Boolean)??[]))],u=[];for(const i of o.length?o:[null])u.push(await e.routingTrace({input:i?{...n,dst_ip:i}:n,resolve:"none"},s));if(u.some(e=>e.instance_id!==u[0].instance_id||e.generation_id!==u[0].generation_id))throw l(409,"snapshot_unavailable","The routing generation changed during simulation; retry the query","ui.errGenerationChanged");return{traces:u,query:a}}function c({connection_id:i,network:l="all",state:u="all"}={},c=!0,f=!1){const d=e(),{data:w,error:p}=t(),y=r(w,w?.resources.flows.max_page_size);return n({key:["flows",{connection_id:i,network:l,state:u,limit:y}],every:a.lists,fetch:e=>o(n=>d.flows({network:l,state:u,connection_id:i,cursor:n,limit:y,detail:"full"},e),(e,n)=>e?(e.flows.push(...n.flows),e):{...n,flows:[...n.flows]})},{...s(w,p,c),paused:f})}function f(t){const r=e();return n({key:["flow",{id:t}],fetch:e=>t?r.flow(t,e):Promise.resolve(null),acceptEvent:e=>"flow.updated"!==e.event||e.data.resource_id===t},{enabled:null!==t})}function d(t=!0){const r=e();return n({key:["rules"],every:0,fetch:e=>r.rules(e)},{enabled:t})}function w(t=!0){const r=e();return n({key:["dnsRules"],every:0,fetch:e=>r.dnsRules(e)},{enabled:t})}export{c as a,f as b,w as c,u as r,d as u};
|
||||
import{af as e,fF as n,r as t,fG as r,fI as s,ay as a,fH as o,dt as i,fT as l}from"./index-C06va4Yw.js";async function u(e,{input:n,resolve:t,recordTypes:r},s){if("query"!==t)return{traces:[await e.routingTrace({input:n,resolve:t},s)],query:null};const a=await e.dnsQuery(n.domain,r,s),o=[...new Set(["A","AAAA"].flatMap(e=>a.results.filter(n=>n.type===e).map(i).find(Boolean)??[]))],u=[];for(const i of o.length?o:[null])u.push(await e.routingTrace({input:i?{...n,dst_ip:i}:n,resolve:"none"},s));if(u.some(e=>e.instance_id!==u[0].instance_id||e.generation_id!==u[0].generation_id))throw l(409,"snapshot_unavailable","The routing generation changed during simulation; retry the query","ui.errGenerationChanged");return{traces:u,query:a}}function c({connection_id:i,network:l="all",state:u="all"}={},c=!0,f=!1){const d=e(),{data:w,error:p}=t(),y=r(w,w?.resources.flows.max_page_size);return n({key:["flows",{connection_id:i,network:l,state:u,limit:y}],every:a.lists,fetch:e=>o(n=>d.flows({network:l,state:u,connection_id:i,cursor:n,limit:y,detail:"full"},e),(e,n)=>e?(e.flows.push(...n.flows),e):{...n,flows:[...n.flows]})},{...s(w,p,c),paused:f})}function f(t){const r=e();return n({key:["flow",{id:t}],fetch:e=>t?r.flow(t,e):Promise.resolve(null),acceptEvent:e=>"flow.updated"!==e.event||e.data.resource_id===t},{enabled:null!==t})}function d(t=!0){const r=e();return n({key:["rules"],every:0,fetch:e=>r.rules(e)},{enabled:t})}function w(t=!0){const r=e();return n({key:["dnsRules"],every:0,fetch:e=>r.dnsRules(e)},{enabled:t})}export{c as a,f as b,w as c,u as r,d as u};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{J as e,aQ as t,bH as a}from"./index-CUHkLMAp.js";import"./vendor-react-64fcanlc.js";import{s}from"./nodes-BYMoo8M1.js";function o(e){const{tokens:t}=s(e),a=a=>t[a]?e.slice(t[a].from,t[a].to):"",o=new Set(t.flatMap((e,t)=>"text"===e.kind&&e.parens>0&&":"===a(t+1)&&["(",","].includes(a(t-1))?[a(t)]:[]));return["geosite","geoip"].filter(e=>o.has(e))}function n(e,t,a){const s=t?.available?t.assets??[]:null,o=e=>a?.assets.some(t=>t.kind===e&&"0"===t.size_bytes)??!1,n=e&&s?e.filter(e=>!s.includes(e)||o(e)):(s??[]).filter(o),i=!!t?.can_update&&!!e?.length&&!!s&&e.every(e=>s.includes(e));return{missing:n.map(e=>`${e}.dat`),repair:i}}const i=new Set(["asset_too_large","asset_validation_failed","geodata_update_failed","replacement_failed","directory_sync_failed"]),d=e=>i.has(e);function r(e,t,s,o){const{code:n,details:i}=e??{};if("permission_denied"===n||"capability_not_supported"===n){const e="geodata"===t,n=s(e?"settings.geodata":"ov.lim.geodataSettings");return{href:a(o,e?"req-geodata-update":"req-geodata-settings"),text:s("ov.lim.docsFor",{feature:n}),external:!0}}return"geodata"===t&&(d(n)||d(i?.stage))?{href:a(o,"geodata-update"),text:s("ov.lim.docsGeodataUpdate"),external:!0}:null}const l=e=>e?{label:e.text,onAction:()=>{window.open(e.href,"_blank","noopener")}}:void 0,c=(a,s,o)=>a.then(t=>(t&&e("positive",s("settings.geodataUpdated")),!!t),e=>(t(e,s,s("settings.geodataFailed"),l(r(e,"geodata",s,o))),!1));export{c as a,o as b,r as c,l as d,n as g,d as l};
|
||||
import{J as e,aQ as t,bI as a}from"./index-C06va4Yw.js";import"./vendor-react-64fcanlc.js";import{s}from"./nodes-oXccX15o.js";function o(e){const{tokens:t}=s(e),a=a=>t[a]?e.slice(t[a].from,t[a].to):"",o=new Set(t.flatMap((e,t)=>"text"===e.kind&&e.parens>0&&":"===a(t+1)&&["(",","].includes(a(t-1))?[a(t)]:[]));return["geosite","geoip"].filter(e=>o.has(e))}function n(e,t,a){const s=t?.available?t.assets??[]:null,o=e=>a?.assets.some(t=>t.kind===e&&"0"===t.size_bytes)??!1,n=e&&s?e.filter(e=>!s.includes(e)||o(e)):(s??[]).filter(o),i=!!t?.can_update&&!!e?.length&&!!s&&e.every(e=>s.includes(e));return{missing:n.map(e=>`${e}.dat`),repair:i}}const i=new Set(["asset_too_large","asset_validation_failed","geodata_update_failed","replacement_failed","directory_sync_failed"]),d=e=>i.has(e);function r(e,t,s,o){const{code:n,details:i}=e??{};if("permission_denied"===n||"capability_not_supported"===n){const e="geodata"===t,n=s(e?"settings.geodata":"ov.lim.geodataSettings");return{href:a(o,e?"req-geodata-update":"req-geodata-settings"),text:s("ov.lim.docsFor",{feature:n}),external:!0}}return"geodata"===t&&(d(n)||d(i?.stage))?{href:a(o,"geodata-update"),text:s("ov.lim.docsGeodataUpdate"),external:!0}:null}const l=e=>e?{label:e.text,onAction:()=>{window.open(e.href,"_blank","noopener")}}:void 0,c=(a,s,o)=>a.then(t=>(t&&e("positive",s("settings.geodataUpdated")),!!t),e=>(t(e,s,s("settings.geodataFailed"),l(r(e,"geodata",s,o))),!1));export{c as a,o as b,r as c,l as d,n as g,d as l};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{l as s}from"./paletteSheet-Vc0PGoNW.js";import{l as r}from"./wallpaper-CEC7gitM.js";import"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";const e=""+new URL("glass-piYllnzE.css",import.meta.url).href,t=()=>s("glass",e);r();export{t as linkStylesheet};
|
||||
import{l as s}from"./paletteSheet-Vc0PGoNW.js";import{l as r}from"./wallpaper-CEC7gitM.js";import"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";const e=""+new URL("glass-piYllnzE.css",import.meta.url).href,o=()=>s("glass",e);r();export{o as linkStylesheet};
|
||||
@@ -0,0 +1 @@
|
||||
import{X as e,u as a}from"./nodes-oXccX15o.js";import{ac as t}from"./index-C06va4Yw.js";const n=String.raw`\p{Alphabetic}\p{M}\p{Nd}\p{Pc}\p{Join_Control}`,i={d:String.raw`\p{Nd}`,D:String.raw`\P{Nd}`,s:String.raw`\p{White_Space}`,S:String.raw`\P{White_Space}`,w:`[${n}]`,W:`[^${n}]`},[r,o,s,c]=[`(?<=[${n}])`,`(?<![${n}])`,`(?=[${n}])`,`(?![${n}])`],l={b:`(?:${r}${c}|${o}${s})`,B:`(?:${r}${s}|${o}${c})`,start:`${o}${s}`,end:`${r}${c}`,"start-half":o,"end-half":c};l["<"]=l.start,l[">"]=l.end;const u={alnum:"0-9A-Za-z",alpha:"A-Za-z",ascii:String.raw`\x00-\x7F`,blank:String.raw`\t `,cntrl:String.raw`\x00-\x1F\x7F`,digit:"0-9",graph:"!-~",lower:"a-z",print:" -~",punct:String.raw`!-\/:-@\[-\`\{-~`,space:String.raw`\t\n\v\f\r `,upper:"A-Z",word:"0-9A-Za-z_",xdigit:"0-9A-Fa-f"},_={a:7,f:12,t:9,n:10,r:13,v:11},h=e=>/^[\w -]*$/.test(e)?e.replace(/[ _-]/g,"").toLowerCase():"",g=e=>new Map(e.split(/\s+/).map(e=>[h(e),e])),p=g("ASCII ASCII_Hex_Digit Alphabetic Any Assigned Bidi_Control Bidi_Mirrored Case_Ignorable Cased Changes_When_Casefolded\n Changes_When_Casemapped Changes_When_Lowercased Changes_When_Titlecased Changes_When_Uppercased Dash Default_Ignorable_Code_Point Deprecated Diacritic Emoji\n Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extended_Pictographic Extender Grapheme_Base Grapheme_Extend Hex_Digit\n IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideographic Join_Control Logical_Order_Exception Lowercase Math Noncharacter_Code_Point\n Pattern_Syntax Pattern_White_Space Quotation_Mark Radical Regional_Indicator Sentence_Terminal Soft_Dotted Terminal_Punctuation Unified_Ideograph Uppercase\n Variation_Selector White_Space XID_Continue XID_Start"),d=g("C Other Cc Control Cf Format Cn Unassigned Co Private_Use L Letter LC Cased_Letter Ll Lowercase_Letter Lm Modifier_Letter Lo\n Other_Letter Lt Titlecase_Letter Lu Uppercase_Letter M Mark Mc Spacing_Mark Me Enclosing_Mark Mn Nonspacing_Mark N Number Nd Decimal_Number Nl Letter_Number\n No Other_Number P Punctuation Pc Connector_Punctuation Pd Dash_Punctuation Pe Close_Punctuation Pf Final_Punctuation Pi Initial_Punctuation Po\n Other_Punctuation Ps Open_Punctuation S Symbol Sc Currency_Symbol Sk Modifier_Symbol Sm Math_Symbol So Other_Symbol Z Separator Zl Line_Separator Zp\n Paragraph_Separator Zs Space_Separator"),f=g("Adlam Ahom Anatolian_Hieroglyphs Arabic Armenian Avestan Balinese Bamum Bassa_Vah Batak Bengali Bhaiksuki Bopomofo Brahmi Braille\n Buginese Buhid Canadian_Aboriginal Carian Caucasian_Albanian Chakma Cham Cherokee Chorasmian Common Coptic Cuneiform Cypriot Cypro_Minoan Cyrillic Deseret\n Devanagari Dives_Akuru Dogra Duployan Egyptian_Hieroglyphs Elbasan Elymaic Ethiopic Garay Georgian Glagolitic Gothic Grantha Greek Gujarati Gunjala_Gondi\n Gurmukhi Gurung_Khema Han Hangul Hanifi_Rohingya Hanunoo Hatran Hebrew Hiragana Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian\n Javanese Kaithi Kannada Katakana Kawi Kayah_Li Kharoshthi Khitan_Small_Script Khmer Khojki Khudawadi Kirat_Rai Lao Latin Lepcha Limbu Linear_A Linear_B Lisu\n Lycian Lydian Mahajani Makasar Malayalam Mandaic Manichaean Marchen Masaram_Gondi Medefaidrin Meetei_Mayek Mende_Kikakui Meroitic_Cursive\n Meroitic_Hieroglyphs Miao Modi Mongolian Mro Multani Myanmar Nabataean Nag_Mundari Nandinagari New_Tai_Lue Newa Nko Nushu Nyiakeng_Puachue_Hmong Ogham\n Ol_Chiki Ol_Onal Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_Sogdian Old_South_Arabian Old_Turkic Old_Uyghur Oriya Osage Osmanya\n Pahawh_Hmong Palmyrene Pau_Cin_Hau Phags_Pa Phoenician Psalter_Pahlavi Rejang Runic Samaritan Saurashtra Sharada Shavian Siddham SignWriting Sinhala Sogdian\n Sora_Sompeng Soyombo Sundanese Sunuwar Syloti_Nagri Syriac Tagalog Tagbanwa Tai_Le Tai_Tham Tai_Viet Takri Tamil Tangsa Tangut Telugu Thaana Thai Tibetan\n Tifinagh Tirhuta Todhri Toto Tulu_Tigalari Ugaritic Vai Vithkuqi Wancho Warang_Citi Yezidi Yi Zanabazar_Square"),m={script:["Script",f],sc:["Script",f],scriptextensions:["Script_Extensions",f],scx:["Script_Extensions",f],generalcategory:["General_Category",d],gc:["General_Category",d]};class S extends Error{}function x(){throw new S}const C=(e,a)=>Object.hasOwn(e,a)?e[a]:void 0;function P(e,a){const t=/^(.*?)(!=|[=:])(.*)$/.exec(e),n=h(t?t[3]:e);let i=p.get(n)??d.get(n)??(f.has(n)?`Script=${f.get(n)}`:void 0);if(t){const[e,r]=C(m,h(t[1]))??x();i=`${e}=${r.get(n)??x()}`,"!="===t[2]&&(a=!a)}return`\\${a?"P":"p"}{${i??x()}}`}function $(e,a){const t=String.fromCodePoint(e);return e<32||127===e?`\\u{${e.toString(16)}}`:(a?/[\\\][{}()/|\-^$.*+?&!#%,:;<=>@`~]/:/[\\^$.*+?()[\]{}|/]/).test(t)?`\\${t}`:t}function b(e){let a=e;const t=new Set;for(let i=/^\(\?([ims]+)\)/.exec(a);i;i=/^\(\?([ims]+)\)/.exec(a)){if(new Set(i[1]).size!==i[1].length)return null;for(const e of i[1])t.add(e);a=a.slice(i[0].length)}const n=[...a];let r=0,o=0;const s=(e=0)=>n[r+e],c=()=>n[r++]??x(),h=e=>n.slice(r,r+e.length).jLine truncated
|
||||
+2
-2
@@ -1,2 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./fonts-C5_wsAqZ.css","./fonts-sc-Dyn9aW84.css","./fonts-tc-D9rvq3k7.css","./SearchList-DMvmI1K7.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./Virtualizer-UMC7L0o2.js","./index-CevJ0lw3.js","./nodes-BYMoo8M1.js","./geodata-CvcFemyc.js","./auth-DucfFvIi.js","./auth-hmN4lsTM.js","./SearchDialog-VfSZ0gQR.js","./Select-BA0NS1_z.js","./ItemText-CnEXu0-f.js","./logs-C6Kb44nw.js","./AppearanceControls-E-VPhjIz.js","./flows-DS-lcTPn.js","./nav-Dn-_mMqu.js","./activity-B3PmJo_X.js","./activity-CgcM8uHz.css","./nav-C94cbBA2.js","./Overview-DS2qv84b.js","./files-Dt8K7QfP.js","./limitHint-nHl9AqvH.js","./Table-DX856nrS.js","./useGridSelectionCheckbox-CTBMGgmQ.js","./Checkbox-8Iqnc6T1.js","./DaeCode-DEjXqvav.js","./daeTokens-BVtuNnWZ.js","./Connections-6ME7y64q.js","./ipLookup-CY9MTfz2.js","./LinkOut-B2JdPfjI.js","./ipLookup-BYorpVJi.css","./NodePath-BtHMV14P.js","./Tag-4SaGY8GT.js","./Tabs-DiTlqyjA.js","./SearchSelect-Fy-2ASgN.js","./TimeCell-N-r54xmV.js","./useQuickRule-Cd5z6aFL.js","./AddCircle-D2cMd6zF.js","./BackendText-Dtw6qhij.js","./rule-D4-Og0AG.js","./outbounds-CUiHWeth.js","./labels-D8xxfRTQ.js","./Flows-sA9EQ0Nt.js","./Coverage-BJRxyviT.js","./GridList-CQPDUasC.js","./CardView-N7n2PJ-s.js","./Flows-BekA1vQh.css","./Dns-BoEQQlrw.js","./Delete-D-jw0Qv4.js","./Dns-CsAXSf3H.css","./impact-B8feJDtJ.css","./Policies-BGgc6lxy.js","./subscriptionEntries-JdG-Ijgl.js","./CheckboxSet-CZH2lrzI.js","./NumberField-C_bakFfF.js","./probe-Cuvc4PWQ.js","./Rules-Hq71-PZg.js","./recorder-BHyqDNp5.js","./geodataUpdate-C1V3fVK8.js","./Nodes-dSDkBdMR.js","./FlagPicker-BI-GnHgk.js","./Nodes-Dz09mbUJ.css","./Config-DqTXXH6g.js","./Events-C4f8u4ie.js","./Copy-CO66tox2.js","./Logs-BusGYLIA.js","./Settings-B6Ds1-yl.js","./Settings-BVpmQMTB.css","./glass-D8tYX8mi.js","./paletteSheet-Vc0PGoNW.js","./wallpaper-CEC7gitM.js","./halloween-Dfny7j3b.js","./Login-CQ8wv6QO.js"])))=>i.map(i=>d[i]);
|
||||
import{$ as e,r as t,c as n,s as r,a as i,b as o,j as s,d as a}from"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const l={},c=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=function(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e}))))};const i=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),s=o?.nonce||o?.getAttribute("nonce");r=e(t.map(e=>{if(e=function(e,t){return new URL(e,t).href}(e,n),e in l)return;l[e]=!0;const t=e.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(!!n)for(let n=i.length-1;n>=0;n--){const r=i[n];if(r.href===e&&(!t||"stylesheet"===r.rel))return}else if(document.querySelector(`link[href="${e}"]${r}`))return;const o=document.createElement("link");return o.rel=t?"stylesheet":"modulepreload",t||(o.as="script"),o.crossOrigin="",o.href=e,s&&o.setAttribute("nonce",s),document.head.appendChild(o),t?new Promise((t,n)=>{o.addEventListener("load",t),o.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${e}`)))}):void 0}))}function i(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(const e of t||[])"rejected"===e.status&&i(e.reason);return e().catch(i)})};function u(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}const d="undefined"!=typeof document?e.useLayoutEffect:()=>{},f={prefix:String(Math.round(1e10*Math.random())),current:0},p=e.createContext(f),h=e.createContext(!1);let m=new WeakMap;const g="function"==typeof e.useId?function(n){let r=e.useId(),[i]=t.useState(w());return n||`${i?"react-aria":`react-aria${f.prefix}`}-${r}`}:function(n){let r=t.useContext(p),i=function(n=!1){let r=t.useContext(p),i=t.useRef(null);if(null===i.current&&!n){let t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(t){let e=m.get(t);null==e?m.set(t,{id:r.current,state:t.memoizedState}):t.memoizedState!==e.state&&(r.current=e.id,m.delete(t))}i.current=++r.current}return i.current}(!!n),o=`react-aria${r.prefix}`;return n||`${o}-${i}`};function y(){return!1}function v(){return!0}function b(e){return()=>{}}function w(){return"function"==typeof e.useSyncExternalStore?e.useSyncExternalStore(b,y,v):t.useContext(h)}let E,x=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),k=new Map;"undefined"!=typeof FinalizationRegistry&&(E=new FinalizationRegistry(e=>{k.delete(e)}));let C=new WeakMap;function S(e){let[n,r]=t.useState(e),i=t.useRef(null),o=g(n),s=t.useRef(null),a=C.get(s);if(E&&a!==o&&(null!=a&&E.unregister(s),E.register(s,o,s),C.set(s,o)),x){const e=k.get(o);e&&!e.includes(i)?e.push(i):k.set(o,[i])}return d(()=>{let e=o;return()=>{E&&(E.unregister(s),C.delete(s)),k.delete(e)}},[o]),t.useEffect(()=>{let e=i.current;return e&&r(e),()=>{e&&(i.current=null)}}),o}function P(e,t){if(e===t)return e;let n=k.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=k.get(t);return r?(r.forEach(t=>t.current=e),e):t}function T(e=[]){let n=S(),[r,i]=function(e){let[n,r]=t.useState(e),i=t.useRef(n),o=t.useRef(null),s=t.useRef(()=>{if(!o.current)return;let e=o.current.next();e.done?o.current=null:i.current===e.value?s.current():r(e.value)});d(()=>{i.current=n,o.current&&s.current()});let a=t.useCallback(e=>{o.current=e(i.current),s.current()},[s]);return[n,a]}(n),o=t.useCallback(()=>{i(function*(){yield n,yield document.getElementById(n)?n:void 0})},[n,i]);return d(o,[n,o,...e]),r}function R(...e){return 1===e.length&&e[0]?e[0]:t=>{let n=!1;const r=e.map(e=>{const r=N(e,t);return n||="function"==typeof r,r});if(n)return()=>{r.forEach((t,n)=>{"function"==typeof t?t():N(e[n],null)})}}}function N(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function M(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let i=e[r];for(let e in i){let r=t[e],o=i[e];"function"==typeof r&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=u(r,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof r||"string"!=typeof o?"id"===e&&r&&o?t.id=P(r,o):"ref"===e&&r&&o?t.ref=R(r,o):t[e]=void 0!==o?o:r:t[e]=n(r,o)}}return t}function L(e){const n=t.useRef(null),r=t.useRLine truncated
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./fonts-C5_wsAqZ.css","./fonts-sc-Dyn9aW84.css","./fonts-tc-D9rvq3k7.css","./SearchList-LS4kpJXT.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./Virtualizer-9R4wsZhf.js","./index-r_PqDIOh.js","./nodes-oXccX15o.js","./groupFilters-D2DpD7-F.js","./geodata-CvcFemyc.js","./auth-6JyCJBV2.js","./auth-DQ-HlQv0.js","./SearchDialog-B9DM3vJ5.js","./Select-hQ95uOjm.js","./ItemText-D6SGBgOi.js","./logs-BtAlqVqe.js","./AppearanceControls-CEVO9-aR.js","./flows-C0jcpIhs.js","./nav-BvgMebTJ.js","./activity-BoXvjA12.js","./activity-CgcM8uHz.css","./nav-BEjkpsy8.js","./Overview-Cj-FUrIA.js","./files-Dt8K7QfP.js","./limitHint-Cb7NYoro.js","./Table-Cc5T3jJO.js","./useGridSelectionCheckbox-inhSeUkV.js","./Checkbox-CsFZSc5N.js","./DaeCode-DEjXqvav.js","./daeTokens-BVtuNnWZ.js","./Connections-BPMOPt05.js","./ipLookup-CdclczzV.js","./LinkOut-BYZWxkzu.js","./ipLookup-BYorpVJi.css","./NodePath-DbG_-_A4.js","./Tag-D4suq1U_.js","./Tabs-PDr10lJU.js","./SearchSelect-q5tbOYXk.js","./TimeCell-DSeESBN3.js","./useQuickRule-CCpuINzQ.js","./AddCircle-6b-rL1eo.js","./BackendText-DK5RWFKi.js","./rule-C_M_c6EN.js","./outbounds-ynHeqeCa.js","./labels-D8xxfRTQ.js","./Flows-CN4scPGP.js","./Coverage-CsDZglAg.js","./GridList-Dgo5IXUg.js","./CardView-jh7SJ_si.js","./Flows-BekA1vQh.css","./Dns-fSskIZZh.js","./Delete-DqJAS65M.js","./Dns-CsAXSf3H.css","./impact-B8feJDtJ.css","./Policies-CXlyfzr3.js","./subscriptionEntries-BusVyEOj.js","./CheckboxSet-C1rY3UKa.js","./NumberField-C8qnuOCX.js","./probe-y8tWllpS.js","./Rules-DAeSUjlv.js","./recorder-BHyqDNp5.js","./geodataUpdate-BQgn8VND.js","./Nodes-oYqjPYEh.js","./FlagPicker-9QJIrYuT.js","./Nodes-CM_U6MZ3.css","./Config-DPN1ciCe.js","./Events-DwM4OJI7.js","./Copy-Dw2ag2LB.js","./Logs-B5y3FE3n.js","./Settings-zm4J70HT.js","./Settings-BVpmQMTB.css","./paletteSheets-Bf5fGVE_.js","./paletteSheet-Vc0PGoNW.js","./glass-BcMm4w7K.js","./wallpaper-CEC7gitM.js","./halloween-Dfny7j3b.js","./Login-Df-pKhHQ.js"])))=>i.map(i=>d[i]);
|
||||
import{$ as e,r as t,c as n,s as r,a as i,b as o,j as s,d as a}from"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const l={},c=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=function(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e}))))};const i=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),s=o?.nonce||o?.getAttribute("nonce");r=e(t.map(e=>{if(e=function(e,t){return new URL(e,t).href}(e,n),e in l)return;l[e]=!0;const t=e.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(!!n)for(let n=i.length-1;n>=0;n--){const r=i[n];if(r.href===e&&(!t||"stylesheet"===r.rel))return}else if(document.querySelector(`link[href="${e}"]${r}`))return;const o=document.createElement("link");return o.rel=t?"stylesheet":"modulepreload",t||(o.as="script"),o.crossOrigin="",o.href=e,s&&o.setAttribute("nonce",s),document.head.appendChild(o),t?new Promise((t,n)=>{o.addEventListener("load",t),o.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${e}`)))}):void 0}))}function i(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(const e of t||[])"rejected"===e.status&&i(e.reason);return e().catch(i)})};function u(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}const d="undefined"!=typeof document?e.useLayoutEffect:()=>{},f={prefix:String(Math.round(1e10*Math.random())),current:0},p=e.createContext(f),h=e.createContext(!1);let m=new WeakMap;const g="function"==typeof e.useId?function(n){let r=e.useId(),[i]=t.useState(w());return n||`${i?"react-aria":`react-aria${f.prefix}`}-${r}`}:function(n){let r=t.useContext(p),i=function(n=!1){let r=t.useContext(p),i=t.useRef(null);if(null===i.current&&!n){let t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;if(t){let e=m.get(t);null==e?m.set(t,{id:r.current,state:t.memoizedState}):t.memoizedState!==e.state&&(r.current=e.id,m.delete(t))}i.current=++r.current}return i.current}(!!n),o=`react-aria${r.prefix}`;return n||`${o}-${i}`};function y(){return!1}function v(){return!0}function b(e){return()=>{}}function w(){return"function"==typeof e.useSyncExternalStore?e.useSyncExternalStore(b,y,v):t.useContext(h)}let E,x=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),k=new Map;"undefined"!=typeof FinalizationRegistry&&(E=new FinalizationRegistry(e=>{k.delete(e)}));let C=new WeakMap;function S(e){let[n,r]=t.useState(e),i=t.useRef(null),o=g(n),s=t.useRef(null),a=C.get(s);if(E&&a!==o&&(null!=a&&E.unregister(s),E.register(s,o,s),C.set(s,o)),x){const e=k.get(o);e&&!e.includes(i)?e.push(i):k.set(o,[i])}return d(()=>{let e=o;return()=>{E&&(E.unregister(s),C.delete(s)),k.delete(e)}},[o]),t.useEffect(()=>{let e=i.current;return e&&r(e),()=>{e&&(i.current=null)}}),o}function P(e,t){if(e===t)return e;let n=k.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=k.get(t);return r?(r.forEach(t=>t.current=e),e):t}function T(e=[]){let n=S(),[r,i]=function(e){let[n,r]=t.useState(e),i=t.useRef(n),o=t.useRef(null),s=t.useRef(()=>{if(!o.current)return;let e=o.current.next();e.done?o.current=null:i.current===e.value?s.current():r(e.value)});d(()=>{i.current=n,o.current&&s.current()});let a=t.useCallback(e=>{o.current=e(i.current),s.current()},[s]);return[n,a]}(n),o=t.useCallback(()=>{i(function*(){yield n,yield document.getElementById(n)?n:void 0})},[n,i]);return d(o,[n,o,...e]),r}function R(...e){return 1===e.length&&e[0]?e[0]:t=>{let n=!1;const r=e.map(e=>{const r=N(e,t);return n||="function"==typeof r,r});if(n)return()=>{r.forEach((t,n)=>{"function"==typeof t?t():N(e[n],null)})}}}function N(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function M(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let i=e[r];for(let e in i){let r=t[e],o=i[e];"function"==typeof r&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=u(r,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof r||"string"!=typeof o?"id"===e&&r&&o?t.id=P(r,o):"ref"===e&&r&&o?t.ref=R(r,o):t[e]=void 0!==o?o:r:t[e]=n(r,o)}}return t}function L(e){const n=t.useRef(null),r=t.useRLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{bQ as e,bR as t,A as n,bS as o,bT as r,bU as a,bV as i,bW as s,bX as l,bY as d,bZ as c,W as u,aV as p,b_ as _,aU as m,b$ as f,c0 as g}from"./index-CUHkLMAp.js";import{J as h,K as b,s as w,u as v,L as y,M as k,N as x,O as S,P as I,d as A,r as q,Q as N,R as M,S as $,T as O,n as D,U as C,G as R,V as j,W as E,g as T,z as L,X as P}from"./nodes-BYMoo8M1.js";import{d as z,v as U,g as G}from"./geodata-CvcFemyc.js";import{mockSessionValid as F,withPasswordAuth as H,refuseWithoutSession as J}from"./auth-DucfFvIi.js";import"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./auth-hmN4lsTM.js";const W=Date.now(),B=e=>new Date(W-1e3*e).toISOString(),V=e=>new Date(W+1e3*e).toISOString(),Q=B(0),X="mock-instance-1",K="40",Y={"x-honk":{config_export:{available:!0},config_import:{available:!0,replace_required:!0},config_revisions:{available:!0,can_activate:!0,max_revisions:50}}},Z={extensions:Y,observed_at:Q,profiles:["base","full_transparency"],limits:{max_request_target_bytes:4096,max_header_bytes:16384,max_json_body_bytes:65536},resources:{...Y,runtime:{available:!0},runtime_memory:{available:!0,metrics:["process.rss_bytes","cgroup.current_bytes","cgroup.limit_bytes","cgroup.events.high","cgroup.events.oom","cgroup.events.oom_kill","kernel.ebpf_bytes"]},datapath:{available:!0,kinds:["ebpf"],details:["attachments","maps"]},runtime_outbounds:{available:!0},traffic_history:{available:!0,max_window_seconds:604800,max_points:360},memory_history:{available:!0,max_window_seconds:604800,max_points:720},nodes:{available:!0,can_manage:!0},providers:{available:!0,can_refresh:!0,can_manage:!0,create_options:{update_interval:86400,user_agent:"honk/0.1.0",cache:!0},max_page_size:1e3},geodata:{available:!0,can_update:!0,assets:["geosite","geoip"],configurable_sources:!0,checksum:"sha256sum",max_urls:4,interval_hours:{min:1,max:168,default:24},lifecycle:{file_values:"start",overrides_persist:!0}},rules:{available:!0,max_rules:4096},config:{available:!0,writable:!0,create:!0,max_bytes:1048576,max_sources:32},config_validate:{available:!0,modes:["syntax","full"],max_bytes:1048576,max_sources:32},logs:{available:!0,levels:[...t],filters:["level","target"],retention_seconds:86400,min_buffered_records:64,max_buffered_records:4096},dns_log:{available:!0,min_records:64,max_records:2048,max_page_size:500},dns_rules:{available:!0,max_rules:1024},runtime_settings:{available:!0,fields:["log.level","log.buffered_records","dns_log.max_records","flows.max_flows","flows.retention_seconds","record_flows","record_logs","record_dns_log","geodata"]},groups:{available:!0,config_patch:!0,selection:!0,max_patch_operations:32},probes:{available:!0,targets:["node","group"],kinds:["tcp_connect","http","dns"],transports:["tcp","udp"],ip_versions:["ipv4","ipv6"],limits:{max_members_per_job:64,max_results_per_job:256,max_active_jobs:4,max_queued_jobs:16,max_concurrent_per_target:1,job_timeout_ms:3e4,per_principal_requests_per_minute:60,global_requests_per_minute:120}},connections:{available:!0,can_close:!0,max_bulk_close:200},flows:{available:!0,recording:"auto",scopes:["userspace_tcp","userspace_udp","kernel_direct","kernel_block","dns_intercept","kernel_bypass"],min_flows:64,max_flows:4096,max_steps_per_flow:64,retention_seconds:300,snapshot_ttl_seconds:60,max_page_size:1e3},routing_trace:{available:!0,resolve_modes:["none","live"],max_addresses:16,max_rule_steps:128,timeout_ms:5e3,per_principal_requests_per_minute:60,global_requests_per_minute:120},events:{available:!0,kinds:[...e],retention_seconds:300,max_buffered_events:1024,max_clients:16,heartbeat_seconds:15},dns_query:{available:!0,record_types:["A","AAAA","HTTPS"],limits:{max_types_per_request:8,query_timeout_ms:5e3,max_response_bytes:65536,per_principal_requests_per_minute:60,global_requests_per_minute:120}},dns_cache:{available:!0,read:!0,delete_entry:!0,delete_name:!0,flush:!0,entry_kinds:["positive","negative"]},operations:{available:!0,retention_seconds:300},reload:{available:!0},suspend:{available:!0},resume:{available:!0}}},ee={...Z.resources};delete ee["x-honk"];const te={...Z,extensions:{},profiles:["base"],resources:{...ee,groups:{...Z.resources.groups,config_patch:!1},runtime_outbounds:{available:!1},traffic_history:{available:!1},memory_history:{available:!1},logs:{available:!1},dns_log:{available:!1},dns_rules:{available:!1},runtime_settings:{available:!1},geodata:{available:!1},rules:{available:!1},nodes:{available:!0,can_manage:!1},providers:{available:!0,can_refresh:!1,can_manage:!1,max_page_size:1e3},config:{available:!1,create:!1},config_validate:{available:!1},flows:{...Z.resources.flows,available:!1},routing_trace:{...Z.resources.routing_trace,available:!1},events:{...Z.resources.events,available:!1}}},ne={...Z,extensions:{},profiles:["base"],resources:{...Object.fromEntries(Object.keys(ee).map(e=>[e,{available:!1}])),runtime:{available:!0},connections:{available:!0,can_close:!1,max_bulk_close:1e3},config:{available:!1,create:!1}}},oe=h("regions").filterLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
@font-face{font-family:Twemoji Country Flags;src:url(./TwemojiCountryFlags-Bymva2JV.woff2)format("woff2");font-display:swap;unicode-range:U+1F1E6-1F1FF,U+1F3F4,U+E0061-E007A,U+E007F}:root{--rp-node-flag-edge:drop-shadow(0 0 .5px #00000059)}:root[data-scheme=dark]{--rp-node-flag-edge:none}.rp-truncate.rp-node-name{display:inline-block}.rp-node-flag{filter:var(--rp-node-flag-edge);-webkit-user-select:none;user-select:none;margin-inline-end:var(--rp-space-1);display:inline-block}.rp-node-flag:before{content:attr(data-flag)}.rp-il:has(>.rp-node-flag){gap:var(--rp-space-1)}.rp-il>.rp-node-flag{flex-shrink:0;inline-size:1.25em;margin-inline-end:0}:root,:root[data-family=rose-pine]{--rp-base:#faf4ed;--rp-surface:#fffaf3;--rp-overlay:#f2e9e1;--rp-muted:#9893a5;--rp-subtle:#797593;--rp-text:#464261;--rp-love:#b4637a;--rp-gold:#ea9d34;--rp-rose:#d7827e;--rp-pine:#286983;--rp-foam:#56949f;--rp-iris:#907aa9;--rp-c1:var(--rp-pine);--rp-c2:var(--rp-foam);--rp-c3:var(--rp-iris);--rp-c4:var(--rp-gold);--rp-c5:var(--rp-rose);--rp-c6:var(--rp-love);--rp-c7:var(--rp-pine);--rp-c8:var(--rp-foam);--rp-hl-low:#f4ede8;--rp-hl-med:#dfdad9;--rp-hl-high:#cecacd;--rp-shadow:0 1px 2px #57527914}:root[data-family=rose-pine]{--rp-negative-text:var(--rp-text);--rp-notice-text:var(--rp-text);--rp-positive-text:var(--rp-text);--rp-accent-tile-text:var(--rp-text);--rp-info-tile-text:var(--rp-text);--rp-subtle-text:var(--rp-text)}:root[data-family=rose-pine][data-scheme=dark],:root[data-flavour=moon][data-scheme=dark]{--rp-base:#232136;--rp-surface:#2a273f;--rp-overlay:#393552;--rp-muted:#6e6a86;--rp-subtle:#908caa;--rp-text:#e0def4;--rp-love:#eb6f92;--rp-gold:#f6c177;--rp-rose:#ea9a97;--rp-pine:#3e8fb0;--rp-foam:#9ccfd8;--rp-iris:#c4a7e7;--rp-c1:var(--rp-pine);--rp-c2:var(--rp-foam);--rp-c3:var(--rp-iris);--rp-c4:var(--rp-gold);--rp-c5:var(--rp-rose);--rp-c6:var(--rp-love);--rp-c7:var(--rp-pine);--rp-c8:var(--rp-foam);--rp-hl-low:#2a283e;--rp-hl-med:#44415a;--rp-hl-high:#56526e;--rp-shadow:0 1px 2px #0000004d;--rp-line:var(--rp-hl-med);--rp-fill:var(--rp-hl-med);--rp-on-accent:#191724;--rp-on-notice:var(--rp-on-accent);--rp-accent-text:var(--rp-text);--rp-negative-text:var(--rp-negative);--rp-notice-text:var(--rp-notice);--rp-positive-text:var(--rp-positive);--rp-info-text:var(--rp-text);--rp-negative-tile-text:var(--rp-text)}:root[data-flavour=main][data-scheme=dark]{--rp-base:#191724;--rp-surface:#1f1d2e;--rp-overlay:#26233a;--rp-muted:#6e6a86;--rp-subtle:#908caa;--rp-text:#e0def4;--rp-love:#eb6f92;--rp-gold:#f6c177;--rp-rose:#ebbcba;--rp-pine:#31748f;--rp-foam:#9ccfd8;--rp-iris:#c4a7e7;--rp-c1:var(--rp-pine);--rp-c2:var(--rp-foam);--rp-c3:var(--rp-iris);--rp-c4:var(--rp-gold);--rp-c5:var(--rp-rose);--rp-c6:var(--rp-love);--rp-c7:var(--rp-pine);--rp-c8:var(--rp-foam);--rp-hl-low:#21202e;--rp-hl-med:#403d52;--rp-hl-high:#524f67;--rp-shadow:0 1px 2px #00000059;--rp-on-accent:#fff;--rp-on-positive:var(--rp-base);--rp-on-negative:var(--rp-base);--rp-on-notice:var(--rp-base);--rp-negative-tile-text:var(--rp-negative)}:root{-webkit-tap-highlight-color:transparent;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--rp-shadow-lg:0 8px 24px #0000001f;--rp-underlay:#00000052;--rp-elevated:0 4px 12px #00000014, 0 2px 6px #0000000a, 0 0 2px #0000001f;--rp-popover-border:transparent;--rp-on-accent:var(--rp-surface);--rp-on-positive:var(--rp-on-accent);--rp-on-negative:var(--rp-on-accent);--rp-on-notice:var(--rp-on-accent);--rp-on-toast:var(--rp-on-accent);--rp-on-text:var(--rp-surface);--rp-accent:var(--rp-pine);--rp-accent-text:var(--rp-accent);--rp-negative:var(--rp-love);--rp-positive:var(--rp-foam);--rp-notice:var(--rp-gold);--rp-info:var(--rp-pine);--rp-negative-text:var(--rp-negative);--rp-notice-text:var(--rp-notice);--rp-positive-text:var(--rp-positive);--rp-info-text:var(--rp-info);--rp-accent-tile-text:var(--rp-accent-text);--rp-negative-tile-text:var(--rp-negative-text);--rp-notice-tile-text:var(--rp-notice-text);--rp-positive-tile-text:var(--rp-positive-text);--rp-info-tile-text:var(--rp-info-text);--rp-subtle-text:var(--rp-subtle);--rp-line:var(--rp-hl-low);--rp-fill:var(--rp-hl-low);--rp-ease:cubic-bezier(.45, 0, .4, 1);--rp-ease-in:cubic-bezier(.5, 0, 1, 1);--rp-ease-out:cubic-bezier(0, 0, .4, 1);--rp-r-xs:3px;--rp-r-sm:6px;--rp-r-md:8px;--rp-r-lg:10px;--rp-r-xl:16px;--rp-r-2xl:20px;--rp-r-pill:999px;--rp-text-2xs:11px;--rp-text-xs:12px;--rp-text-sm:13px;--rp-text-md:14px;--rp-text-lg:16px;--rp-text-xl:18px;--rp-text-2xl:20px;--rp-text-3xl:22px;--rp-text-4xl:24px;--rp-text-5xl:28px;--rp-value-line:28px;--rp-space-half:2px;--rp-space-1:4px;--rp-space-1h:6px;--rp-space-2:8px;--rp-space-2h:10px;--rp-space-3:12px;--rp-space-4:16px;--rp-space-5:20px;--rp-space-6:24px;--rp-space-8:32px;--rp-space-10:40px;--rp-space-12:48px;--rp-space-16:64px;--rp-font-mono:"Twemoji Country Flags", ui-monospace, "SF Mono", Menlo, Consolas, "JetBrains Mono", "Fira Code", "DejaVu Sans Mono", "Liberation Mono", "Noto Sans Mono", monospace;--rLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
@font-face{font-family:Twemoji Country Flags;src:url(./TwemojiCountryFlags-Bymva2JV.woff2)format("woff2");font-display:swap;unicode-range:U+1F1E6-1F1FF,U+1F3F4,U+E0061-E007A,U+E007F}:root{--rp-node-flag-edge:drop-shadow(0 0 .5px #00000059)}:root[data-scheme=dark]{--rp-node-flag-edge:none}.rp-truncate.rp-node-name{display:inline-block}.rp-node-flag{filter:var(--rp-node-flag-edge);-webkit-user-select:none;user-select:none;margin-inline-end:var(--rp-space-1);display:inline-block}.rp-node-flag:before{content:attr(data-flag)}.rp-il:has(>.rp-node-flag){gap:var(--rp-space-1)}.rp-il>.rp-node-flag{flex-shrink:0;inline-size:1.25em;margin-inline-end:0}:root,:root[data-family=rose-pine]{--rp-base:#faf4ed;--rp-surface:#fffaf3;--rp-overlay:#f2e9e1;--rp-muted:#9893a5;--rp-subtle:#797593;--rp-text:#464261;--rp-love:#b4637a;--rp-gold:#ea9d34;--rp-rose:#d7827e;--rp-pine:#286983;--rp-foam:#56949f;--rp-iris:#907aa9;--rp-c1:var(--rp-pine);--rp-c2:var(--rp-foam);--rp-c3:var(--rp-iris);--rp-c4:var(--rp-gold);--rp-c5:var(--rp-rose);--rp-c6:var(--rp-love);--rp-c7:var(--rp-pine);--rp-c8:var(--rp-foam);--rp-hl-low:#f4ede8;--rp-hl-med:#dfdad9;--rp-hl-high:#cecacd;--rp-shadow:0 1px 2px #57527914}:root[data-family=rose-pine]{--rp-negative-text:var(--rp-text);--rp-notice-text:var(--rp-text);--rp-positive-text:var(--rp-text);--rp-accent-tile-text:var(--rp-text);--rp-info-tile-text:var(--rp-text);--rp-subtle-text:var(--rp-text)}:root[data-family=rose-pine][data-scheme=dark],:root[data-flavour=moon][data-scheme=dark]{--rp-base:#232136;--rp-surface:#2a273f;--rp-overlay:#393552;--rp-muted:#6e6a86;--rp-subtle:#908caa;--rp-text:#e0def4;--rp-love:#eb6f92;--rp-gold:#f6c177;--rp-rose:#ea9a97;--rp-pine:#3e8fb0;--rp-foam:#9ccfd8;--rp-iris:#c4a7e7;--rp-c1:var(--rp-pine);--rp-c2:var(--rp-foam);--rp-c3:var(--rp-iris);--rp-c4:var(--rp-gold);--rp-c5:var(--rp-rose);--rp-c6:var(--rp-love);--rp-c7:var(--rp-pine);--rp-c8:var(--rp-foam);--rp-hl-low:#2a283e;--rp-hl-med:#44415a;--rp-hl-high:#56526e;--rp-shadow:0 1px 2px #0000004d;--rp-line:var(--rp-hl-med);--rp-fill:var(--rp-hl-med);--rp-on-accent:#191724;--rp-on-notice:var(--rp-on-accent);--rp-accent-text:var(--rp-text);--rp-negative-text:var(--rp-negative);--rp-notice-text:var(--rp-notice);--rp-positive-text:var(--rp-positive);--rp-info-text:var(--rp-text);--rp-negative-tile-text:var(--rp-text)}:root[data-flavour=main][data-scheme=dark]{--rp-base:#191724;--rp-surface:#1f1d2e;--rp-overlay:#26233a;--rp-muted:#6e6a86;--rp-subtle:#908caa;--rp-text:#e0def4;--rp-love:#eb6f92;--rp-gold:#f6c177;--rp-rose:#ebbcba;--rp-pine:#31748f;--rp-foam:#9ccfd8;--rp-iris:#c4a7e7;--rp-c1:var(--rp-pine);--rp-c2:var(--rp-foam);--rp-c3:var(--rp-iris);--rp-c4:var(--rp-gold);--rp-c5:var(--rp-rose);--rp-c6:var(--rp-love);--rp-c7:var(--rp-pine);--rp-c8:var(--rp-foam);--rp-hl-low:#21202e;--rp-hl-med:#403d52;--rp-hl-high:#524f67;--rp-shadow:0 1px 2px #00000059;--rp-on-accent:#fff;--rp-on-positive:var(--rp-base);--rp-on-negative:var(--rp-base);--rp-on-notice:var(--rp-base);--rp-negative-tile-text:var(--rp-negative)}:root[data-family=catppuccin]{--rp-base:#e6e9ef;--rp-surface:#eff1f5;--rp-overlay:#dce0e8;--rp-muted:#9ca0b0;--rp-subtle:#6c6f85;--rp-text:#4c4f69;--rp-love:#d20f39;--rp-gold:#df8e1d;--rp-rose:#fe640b;--rp-pine:#1e66f5;--rp-foam:#179299;--rp-iris:#8839ef;--rp-c1:#1e66f5;--rp-c2:#179299;--rp-c3:#8839ef;--rp-c4:#fe640b;--rp-c5:#40a02b;--rp-c6:#ea76cb;--rp-c7:#df8e1d;--rp-c8:#d20f39;--rp-hl-low:#dce0e8;--rp-hl-med:#ccd0da;--rp-hl-high:#bcc0cc;--rp-shadow:0 1px 2px #4c4f691a;--rp-on-accent:#fff;--rp-accent-text:var(--rp-text);--rp-negative-text:var(--rp-text);--rp-notice-text:var(--rp-text);--rp-positive-text:var(--rp-text);--rp-info-text:var(--rp-text);--rp-subtle-text:var(--rp-text)}:root[data-family=catppuccin][data-scheme=dark],:root[data-flavour=mocha][data-scheme=dark]{--rp-base:#181825;--rp-surface:#1e1e2e;--rp-overlay:#313244;--rp-muted:#6c7086;--rp-subtle:#a6adc8;--rp-text:#cdd6f4;--rp-love:#f38ba8;--rp-gold:#f9e2af;--rp-rose:#fab387;--rp-pine:#89b4fa;--rp-foam:#94e2d5;--rp-iris:#cba6f7;--rp-c1:#89b4fa;--rp-c2:#94e2d5;--rp-c3:#cba6f7;--rp-c4:#fab387;--rp-c5:#a6e3a1;--rp-c6:#f5c2e7;--rp-c7:#f9e2af;--rp-c8:#f38ba8;--rp-hl-low:#313244;--rp-hl-med:#45475a;--rp-hl-high:#585b70;--rp-shadow:0 1px 2px #00000059;--rp-on-accent:var(--rp-surface);--rp-on-notice:var(--rp-on-accent);--rp-accent-text:var(--rp-accent);--rp-negative-text:var(--rp-negative);--rp-notice-text:var(--rp-notice);--rp-positive-text:var(--rp-positive);--rp-info-text:var(--rp-info);--rp-negative-tile-text:var(--rp-text);--rp-subtle-text:var(--rp-subtle)}:root[data-flavour=frappe][data-scheme=dark]{--rp-base:#292c3c;--rp-surface:#303446;--rp-overlay:#414559;--rp-muted:#737994;--rp-subtle:#a5adce;--rp-text:#c6d0f5;--rp-love:#e78284;--rp-gold:#e5c890;--rp-rose:#ef9f76;--rp-pine:#8caaee;--rp-foam:#81c8be;--rp-iris:#ca9ee6;--rp-c1:#8caaee;--rp-c2:#81c8be;--rp-c3:#ca9ee6;--rp-c4:#ef9f76;--rp-c5:#a6d189;--rp-c6:#f4b8e4;--rp-c7:#e5c890;--rp-c8:#e78284;--rp-hl-low:#414559;--Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{bR as e,bS as t,A as n,bT as o,bU as r,bV as a,bW as i,bX as s,bY as l,bZ as d,b_ as c,W as u,aV as p,b$ as _,aU as m,c0 as f,c1 as g}from"./index-C06va4Yw.js";import{I as h,J as b,s as w,u as v,K as y,L as k,M as x,N as S,O as I,d as A,r as q,P as N,Q as M,R as $,n as O,S as D,F as C,T as R,U as j,g as E,y as T,V as P}from"./nodes-oXccX15o.js";import{g as L}from"./groupFilters-D2DpD7-F.js";import{d as z,v as U,g as G}from"./geodata-CvcFemyc.js";import{mockSessionValid as F,withPasswordAuth as H,refuseWithoutSession as J}from"./auth-6JyCJBV2.js";import"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./auth-DQ-HlQv0.js";const B=Date.now(),W=e=>new Date(B-1e3*e).toISOString(),V=e=>new Date(B+1e3*e).toISOString(),Q=W(0),X="mock-instance-1",K="40",Y={"x-honk":{config_export:{available:!0},config_import:{available:!0,replace_required:!0},config_revisions:{available:!0,can_activate:!0,max_revisions:50}}},Z={extensions:Y,observed_at:Q,profiles:["base","full_transparency"],limits:{max_request_target_bytes:4096,max_header_bytes:16384,max_json_body_bytes:65536},resources:{...Y,runtime:{available:!0},runtime_memory:{available:!0,metrics:["process.rss_bytes","cgroup.current_bytes","cgroup.limit_bytes","cgroup.events.high","cgroup.events.oom","cgroup.events.oom_kill","kernel.ebpf_bytes"]},datapath:{available:!0,kinds:["ebpf"],details:["attachments","maps"]},runtime_outbounds:{available:!0},traffic_history:{available:!0,max_window_seconds:604800,max_points:360},memory_history:{available:!0,max_window_seconds:604800,max_points:720},nodes:{available:!0,can_manage:!0},providers:{available:!0,can_refresh:!0,can_manage:!0,create_options:{update_interval:86400,user_agent:"honk/0.1.0",cache:!0},max_page_size:1e3},geodata:{available:!0,can_update:!0,assets:["geosite","geoip"],configurable_sources:!0,checksum:"sha256sum",max_urls:4,interval_hours:{min:1,max:168,default:24},lifecycle:{file_values:"start",overrides_persist:!0}},rules:{available:!0,max_rules:4096},config:{available:!0,writable:!0,create:!0,max_bytes:1048576,max_sources:32},config_validate:{available:!0,modes:["syntax","full"],max_bytes:1048576,max_sources:32},logs:{available:!0,levels:[...t],filters:["level","target"],retention_seconds:86400,min_buffered_records:64,max_buffered_records:4096},dns_log:{available:!0,min_records:64,max_records:2048,max_page_size:500},dns_rules:{available:!0,max_rules:1024},runtime_settings:{available:!0,fields:["log.level","log.buffered_records","dns_log.max_records","flows.max_flows","flows.retention_seconds","record_flows","record_logs","record_dns_log","geodata"]},groups:{available:!0,config_patch:!0,selection:!0,max_patch_operations:32},probes:{available:!0,targets:["node","group"],kinds:["tcp_connect","http","dns"],transports:["tcp","udp"],ip_versions:["ipv4","ipv6"],limits:{max_members_per_job:64,max_results_per_job:256,max_active_jobs:4,max_queued_jobs:16,max_concurrent_per_target:1,job_timeout_ms:3e4,per_principal_requests_per_minute:60,global_requests_per_minute:120}},connections:{available:!0,can_close:!0,max_bulk_close:200},flows:{available:!0,recording:"auto",scopes:["userspace_tcp","userspace_udp","kernel_direct","kernel_block","dns_intercept","kernel_bypass"],min_flows:64,max_flows:4096,max_steps_per_flow:64,retention_seconds:300,snapshot_ttl_seconds:60,max_page_size:1e3},routing_trace:{available:!0,resolve_modes:["none","live"],max_addresses:16,max_rule_steps:128,timeout_ms:5e3,per_principal_requests_per_minute:60,global_requests_per_minute:120},events:{available:!0,kinds:[...e],retention_seconds:300,max_buffered_events:1024,max_clients:16,heartbeat_seconds:15},dns_query:{available:!0,record_types:["A","AAAA","HTTPS"],limits:{max_types_per_request:8,query_timeout_ms:5e3,max_response_bytes:65536,per_principal_requests_per_minute:60,global_requests_per_minute:120}},dns_cache:{available:!0,read:!0,delete_entry:!0,delete_name:!0,flush:!0,entry_kinds:["positive","negative"]},operations:{available:!0,retention_seconds:300},reload:{available:!0},suspend:{available:!0},resume:{available:!0}}},ee={...Z.resources};delete ee["x-honk"];const te={...Z,extensions:{},profiles:["base"],resources:{...ee,groups:{...Z.resources.groups,config_patch:!1},runtime_outbounds:{available:!1},traffic_history:{available:!1},memory_history:{available:!1},logs:{available:!1},dns_log:{available:!1},dns_rules:{available:!1},runtime_settings:{available:!1},geodata:{available:!1},rules:{available:!1},nodes:{available:!0,can_manage:!1},providers:{available:!0,can_refresh:!1,can_manage:!1,max_page_size:1e3},config:{available:!1,create:!1},config_validate:{available:!1},flows:{...Z.resources.flows,available:!1},routing_trace:{...Z.resources.routing_trace,available:!1},events:{...Z.resources.events,available:!1}}},ne={...Z,extensions:{},profiles:["base"],resources:{...Object.fromEntries(Object.keys(ee).map(e=>[e,{available:!1}])),runtime:{available:!0},connections:{available:!0,can_close:!1,max_bulk_close:1e3},config:{availablLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as s}from"./vendor-react-64fcanlc.js";import{u as e,cz as a,cA as i,cB as n,cC as r,cD as t,cE as p,cF as o,cG as c,cH as l,c0 as m}from"./index-CUHkLMAp.js";import{L as h}from"./LinkOut-B2JdPfjI.js";function f({ip:m,address:f,sites:d}){const u=e(),j=u("ip.lookupTitle",{ip:m}),x=a();return s.jsxs(i,{children:[s.jsxs(n,{className:"rp-link rp-ip-lookup","data-layout":"inline",children:[f,s.jsx(h,{})]}),s.jsx(r,{className:"rp-popover rp-list-popover rp-ip-lookup-menu",placement:"bottom start",boundaryElement:x,children:s.jsx(t,{children:s.jsxs(p,{children:[s.jsxs(o,{className:"rp-sec-h rp-ip-lookup-head",children:[j,s.jsx("span",{className:"desc",children:u("ip.lookupNote")})]}),d.map(e=>s.jsxs(c,{id:e.name,href:e.href,target:"_blank",rel:"noreferrer",className:"rp-item plain",textValue:e.name,children:[s.jsx("span",{className:"rp-item-text",children:s.jsx(l,{slot:"label",children:e.name})}),s.jsx(h,{})]},e.name))]})})})]})}function d(s){let e=m(s);if(!e)return!1;const a=e.match(/^::ffff:([\da-f]+):([\da-f]+)$/);if(a){const s=65536*parseInt(a[1],16)+parseInt(a[2],16);e=[s>>>24,s>>>16&255,s>>>8&255,255&s].join(".")}if(e.includes(":")){const s=parseInt(e.split(":")[0]||"0",16);return"::"!==e&&"::1"!==e&&64512!=(65024&s)&&65152!=(65472&s)&&!!(65280&~s)}const[i,n]=e.split(".").map(Number);return!(!(0!==i&&10!==i&&127!==i&&i<224)||100===i&&n>=64&&n<=127||169===i&&254===n||172===i&&n>=16&&n<=31||192===i&&168===n)}function u(s){const e=m(s);return[{name:"ipinfo.io",href:`https://ipinfo.io/${e}`},{name:"ipapi.is",href:`https://ipapi.is/?q=${e}`},{name:"ip-api.com",href:`https://ip-api.com/#${e}`},{name:"bgp.he.net",href:`https://bgp.he.net/ip/${e}`}]}export{f as I,u as a,d as i};
|
||||
import{j as s}from"./vendor-react-64fcanlc.js";import{u as e,cA as a,cB as i,cC as n,cD as r,cE as t,cF as p,cG as o,cH as c,cI as l,c1 as m}from"./index-C06va4Yw.js";import{L as h}from"./LinkOut-BYZWxkzu.js";function f({ip:m,address:f,sites:d}){const u=e(),j=u("ip.lookupTitle",{ip:m}),x=a();return s.jsxs(i,{children:[s.jsxs(n,{className:"rp-link rp-ip-lookup","data-layout":"inline",children:[f,s.jsx(h,{})]}),s.jsx(r,{className:"rp-popover rp-list-popover rp-ip-lookup-menu",placement:"bottom start",boundaryElement:x,children:s.jsx(t,{children:s.jsxs(p,{children:[s.jsxs(o,{className:"rp-sec-h rp-ip-lookup-head",children:[j,s.jsx("span",{className:"desc",children:u("ip.lookupNote")})]}),d.map(e=>s.jsxs(c,{id:e.name,href:e.href,target:"_blank",rel:"noreferrer",className:"rp-item plain",textValue:e.name,children:[s.jsx("span",{className:"rp-item-text",children:s.jsx(l,{slot:"label",children:e.name})}),s.jsx(h,{})]},e.name))]})})})]})}function d(s){let e=m(s);if(!e)return!1;const a=e.match(/^::ffff:([\da-f]+):([\da-f]+)$/);if(a){const s=65536*parseInt(a[1],16)+parseInt(a[2],16);e=[s>>>24,s>>>16&255,s>>>8&255,255&s].join(".")}if(e.includes(":")){const s=parseInt(e.split(":")[0]||"0",16);return"::"!==e&&"::1"!==e&&64512!=(65024&s)&&65152!=(65472&s)&&!!(65280&~s)}const[i,n]=e.split(".").map(Number);return!(!(0!==i&&10!==i&&127!==i&&i<224)||100===i&&n>=64&&n<=127||169===i&&254===n||172===i&&n>=16&&n<=31||192===i&&168===n)}function u(s){const e=m(s);return[{name:"ipinfo.io",href:`https://ipinfo.io/${e}`},{name:"ipapi.is",href:`https://ipapi.is/?q=${e}`},{name:"ip-api.com",href:`https://ip-api.com/#${e}`},{name:"bgp.he.net",href:`https://bgp.he.net/ip/${e}`}]}export{f as I,u as a,d as i};
|
||||
@@ -0,0 +1 @@
|
||||
:root[data-family=kary]{--rp-base:#e7f0f7;--rp-surface:#f0f6fb;--rp-overlay:#cff0f9;--rp-muted:#9ba6b5;--rp-subtle:#738197;--rp-text:#65758d;--rp-love:#c94824;--rp-gold:#a56416;--rp-rose:#00bbec;--rp-pine:#3778b7;--rp-foam:#428226;--rp-iris:#b052a1;--rp-c1:var(--rp-pine);--rp-c2:var(--rp-foam);--rp-c3:var(--rp-iris);--rp-c4:var(--rp-gold);--rp-c5:var(--rp-rose);--rp-c6:var(--rp-love);--rp-c7:var(--rp-pine);--rp-c8:var(--rp-foam);--rp-hl-low:#e7f0f7;--rp-hl-med:#cff0f9;--rp-hl-high:#cdd6e0;--rp-shadow:0 1px 2px #65758d1a;--rp-line:var(--rp-hl-high);--rp-fill:var(--rp-hl-high);--rp-on-accent:#fff;--rp-accent-text:var(--rp-text);--rp-info-text:var(--rp-text);--rp-subtle-text:var(--rp-text)}:root[data-family=kary][data-scheme=dark]{--rp-base:#1a1a1a;--rp-surface:#242424;--rp-overlay:#474747;--rp-muted:#888;--rp-subtle:#909090;--rp-text:#cacaca;--rp-love:#d38569;--rp-gold:#bc9550;--rp-rose:#00bbec;--rp-pine:#819dc2;--rp-foam:#7da76f;--rp-iris:#b98eb2;--rp-c1:var(--rp-pine);--rp-c2:var(--rp-foam);--rp-c3:var(--rp-iris);--rp-c4:var(--rp-gold);--rp-c5:var(--rp-rose);--rp-c6:var(--rp-love);--rp-c7:var(--rp-pine);--rp-c8:var(--rp-foam);--rp-hl-low:#242424;--rp-hl-med:#133853;--rp-hl-high:#474747;--rp-shadow:0 1px 2px #0000004d;--rp-on-accent:var(--rp-surface);--rp-accent-text:var(--rp-accent);--rp-info-text:var(--rp-info);--rp-accent-tile-text:var(--rp-text);--rp-negative-tile-text:var(--rp-text);--rp-notice-tile-text:var(--rp-text);--rp-positive-tile-text:var(--rp-text);--rp-info-tile-text:var(--rp-text)}
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{g as e}from"./nodes-BYMoo8M1.js";import{b3 as o,bH as t}from"./index-CUHkLMAp.js";const r={connections:"nav.connections",flows:"flow.records",routing_trace:"ov.r.routingTrace",dns_query:"ov.r.dnsQuery",dns_cache:"ov.r.dnsCache",dns_log:"ov.r.dnsLog",events:"nav.events",probes:"ov.r.probes",traffic_history:"ov.r.trafficHistory",memory_history:"ov.r.memoryHistory",runtime_outbounds:"ov.r.outbounds",logs:"nav.logs",providers:"nodes.providers",rules:"rule.listTitle",config:"nav.config",config_validate:"ov.r.configValidate",runtime_settings:"settings.runtime",geodata:"settings.geodata"},s={connections:[r.connections,"req-connections"],flows:[r.flows,"req-flows"],routing_trace:[r.routing_trace,"req-routing-trace"],dns_query:[r.dns_query,"req-dns-query"],dns_cache:[r.dns_cache,"req-dns-cache"],dns_log:[r.dns_log,"req-dns-log"],events:[r.events,"req-events"],probes:[r.probes,"req-probes"],traffic_history:[r.traffic_history,"req-traffic-history"],memory_history:[r.memory_history,"req-traffic-history"],runtime_outbounds:[r.runtime_outbounds,"req-runtime-status"],logs:[r.logs,"req-logs"],providers:[r.providers,"req-nodes"],rules:[r.rules,"req-rules"],config:[r.config,"req-config-edit"],config_validate:[r.config_validate,"req-validation"],runtime_settings:[r.runtime_settings,"req-runtime-options"],geodata:[r.geodata,"req-geodata"],dns_rules:["ov.r.dnsRules","req-rules"],reload:["ov.r.reload","req-reload-suspend"],suspend:["ov.r.suspend","req-reload-suspend"],resume:["ov.r.resume","req-reload-suspend"],manage:["ov.lim.manage","req-nodes"],subscriptions:["ov.lim.subscriptions","req-subscription-refresh"],close:["ov.lim.close","req-connections"],create:["ov.lim.create","req-config-edit"],validate_full:["ov.lim.validateFull","req-validation"],global_settings:["ov.lim.globalSettings","req-config-edit"],mode:["ov.lim.mode","req-config-edit"],rule_edit:["ov.lim.ruleEdit","req-rules"],export:["ov.lim.export","req-revisions"],import:["ov.lim.import","req-revisions"],revisions:["ov.lim.revisions","req-revisions"],restore:["ov.lim.restore","req-revisions"],group_edit:["ov.lim.groupEdit","req-group-edit"],selection:["ov.lim.selection","req-group-selection"],trace_live:["ov.lim.traceLive","req-routing-trace"],dns_cache_read:["ov.lim.dnsCacheRead","req-dns-cache"],dns_cache_delete:["ov.lim.dnsCacheDelete","req-dns-cache"],dns_cache_flush:["ov.lim.dnsCacheFlush","req-dns-cache"],geodata_settings:["ov.lim.geodataSettings","req-geodata-settings"]},i={"config-unloaded":{text:"ov.lim.configMissing"},"writes-off":{text:"ov.lim.configWrite",docs:["read-only","ov.lim.docsReadOnly"]},"main-file-read-only":{text:"ov.lim.mainReadOnly",docs:["read-only","ov.lim.docsReadOnly"]},"recorder-off":{text:"ov.lim.recordOff"},"no-download-urls":{text:"ov.lim.geoNoStateDb",docs:["state-db","ov.lim.docsStateDb"]},"geodata-mismatch":{text:"ov.lim.geoUnreadable"},"starting-or-stopping":{text:"ov.lim.notRunningReason"},"start-flag":{text:"ov.lim.startFlag"},"state-db-closed":{text:"ov.lim.stateDbClosed",docs:["state-db","ov.lim.docsStateDb"]}},n=(e,o)=>e(i[o.code].text,"start-flag"===o.code?{flag:o.flag,credential:o.credentials.join(e("ui.listOr"))}:"state-db-closed"===o.code?{key:o.writeSwitch}:void 0);function a(e,o,r,i){const n="geodata"===r&&"geodata-mismatch"!==i?"req-geodata-update":s[r][1];return{href:t(o,n),text:e("ov.lim.docsFor",{feature:e(s[r][0])}),external:!0}}const d=(o,t,r,s,i,n)=>l(o,e(r).reason(o,t,n),s,i);function l(e,t,r,s){if(!t||!i[t.code])return;const d="settings"in t?t.settings.map(e=>e.key):[];return{text:n(r,t),setting:d.length>0?o(s,d):void 0,link:a(r,s,e,t.code)}}export{i as a,n as b,d as c,l as d,a as f,s as l,r};
|
||||
import{g as e}from"./nodes-oXccX15o.js";import{b3 as o,bI as t}from"./index-C06va4Yw.js";const r={connections:"nav.connections",flows:"flow.records",routing_trace:"ov.r.routingTrace",dns_query:"ov.r.dnsQuery",dns_cache:"ov.r.dnsCache",dns_log:"ov.r.dnsLog",events:"nav.events",probes:"ov.r.probes",traffic_history:"ov.r.trafficHistory",memory_history:"ov.r.memoryHistory",runtime_outbounds:"ov.r.outbounds",logs:"nav.logs",providers:"nodes.providers",rules:"rule.listTitle",config:"nav.config",config_validate:"ov.r.configValidate",runtime_settings:"settings.runtime",geodata:"settings.geodata"},s={connections:[r.connections,"req-connections"],flows:[r.flows,"req-flows"],routing_trace:[r.routing_trace,"req-routing-trace"],dns_query:[r.dns_query,"req-dns-query"],dns_cache:[r.dns_cache,"req-dns-cache"],dns_log:[r.dns_log,"req-dns-log"],events:[r.events,"req-events"],probes:[r.probes,"req-probes"],traffic_history:[r.traffic_history,"req-traffic-history"],memory_history:[r.memory_history,"req-traffic-history"],runtime_outbounds:[r.runtime_outbounds,"req-runtime-status"],logs:[r.logs,"req-logs"],providers:[r.providers,"req-nodes"],rules:[r.rules,"req-rules"],config:[r.config,"req-config-edit"],config_validate:[r.config_validate,"req-validation"],runtime_settings:[r.runtime_settings,"req-runtime-options"],geodata:[r.geodata,"req-geodata"],dns_rules:["ov.r.dnsRules","req-rules"],reload:["ov.r.reload","req-reload-suspend"],suspend:["ov.r.suspend","req-reload-suspend"],resume:["ov.r.resume","req-reload-suspend"],manage:["ov.lim.manage","req-nodes"],subscriptions:["ov.lim.subscriptions","req-subscription-refresh"],close:["ov.lim.close","req-connections"],create:["ov.lim.create","req-config-edit"],validate_full:["ov.lim.validateFull","req-validation"],global_settings:["ov.lim.globalSettings","req-config-edit"],mode:["ov.lim.mode","req-config-edit"],rule_edit:["ov.lim.ruleEdit","req-rules"],export:["ov.lim.export","req-revisions"],import:["ov.lim.import","req-revisions"],revisions:["ov.lim.revisions","req-revisions"],restore:["ov.lim.restore","req-revisions"],group_edit:["ov.lim.groupEdit","req-group-edit"],selection:["ov.lim.selection","req-group-selection"],trace_live:["ov.lim.traceLive","req-routing-trace"],dns_cache_read:["ov.lim.dnsCacheRead","req-dns-cache"],dns_cache_delete:["ov.lim.dnsCacheDelete","req-dns-cache"],dns_cache_flush:["ov.lim.dnsCacheFlush","req-dns-cache"],geodata_settings:["ov.lim.geodataSettings","req-geodata-settings"]},i={"config-unloaded":{text:"ov.lim.configMissing"},"writes-off":{text:"ov.lim.configWrite",docs:["read-only","ov.lim.docsReadOnly"]},"main-file-read-only":{text:"ov.lim.mainReadOnly",docs:["read-only","ov.lim.docsReadOnly"]},"recorder-off":{text:"ov.lim.recordOff"},"no-download-urls":{text:"ov.lim.geoNoStateDb",docs:["state-db","ov.lim.docsStateDb"]},"geodata-mismatch":{text:"ov.lim.geoUnreadable"},"starting-or-stopping":{text:"ov.lim.notRunningReason"},"start-flag":{text:"ov.lim.startFlag"},"state-db-closed":{text:"ov.lim.stateDbClosed",docs:["state-db","ov.lim.docsStateDb"]}},n=(e,o)=>e(i[o.code].text,"start-flag"===o.code?{flag:o.flag,credential:o.credentials.join(e("ui.listOr"))}:"state-db-closed"===o.code?{key:o.writeSwitch}:void 0);function a(e,o,r,i){const n="geodata"===r&&"geodata-mismatch"!==i?"req-geodata-update":s[r][1];return{href:t(o,n),text:e("ov.lim.docsFor",{feature:e(s[r][0])}),external:!0}}const d=(o,t,r,s,i,n)=>l(o,e(r).reason(o,t,n),s,i);function l(e,t,r,s){if(!t||!i[t.code])return;const d="settings"in t?t.settings.map(e=>e.key):[];return{text:n(r,t),setting:d.length>0?o(s,d):void 0,link:a(r,s,e,t.code)}}export{i as a,n as b,d as c,l as d,a as f,s as l,r};
|
||||
@@ -0,0 +1 @@
|
||||
const e=JSON.parse('{"act.active":"Active connections","act.cgroup":"cgroup used","act.chooseRoutingMode":"Choose a routing mode","act.cpu":"CPU usage","act.cpuHelp":"The share of one CPU core that the process uses. A value above 100% means it uses more than one core.","act.d7":"7 d","act.devices":"Devices","act.domains":"Domains","act.emptyHistory":"No history samples yet","act.global":"Global outbound","act.globalMissing":"Global mode needs an outbound","act.groupFollow":"Automatic","act.groupPickHelp":"By default, this card follows the group with the most connections; choosing a group changes only this card.","act.h1":"1 h","act.h24":"24 h","act.h6":"6 h","act.historyRange":"History range","act.issues":"Notifications","act.limited":{"one":"{n} feature is off","other":"{n} features are off"},"act.live":"Live","act.m10":"10 min","act.memory":"Memory","act.modeApplied":"Outbound mode written to the configuration and reloaded: {mode}","act.modeConfirm":"Apply {mode} mode?","act.modeDirectHelp":"All traffic will connect directly without proxying.","act.modeGlobalHelp":"All traffic will use the selected outbound group.","act.modeInterleaved":"An ordinary rule comes before a must rule in the routing block. Move the must rules to the top of the routing block, then change the outbound mode.","act.modeNoRouting":"The main configuration has no routing section","act.modeReadOnly":"Read-only","act.modeUnavailable":"Not provided by this backend","act.modeWhyReadOnly":"Why is the mode read-only?","act.noConnections":"This backend does not provide connections","act.noHistory":"This backend does not provide history","act.noIssues":"No issues require attention","act.noOutbounds":"This backend does not provide outbound counters","act.noRoutingMode":"No routing rules configured","act.noSubscriptions":"No subscriptions yet","act.noticeGap":"{reason}, records dropped since recording started: {n}","act.noticeRepeat":{"one":"{n} time","other":"{n} times"},"act.outUsage":"Outbound downloads","act.rankingEmpty":"No connections to rank","act.rankingScope":"Ranked by download totals for visible connections. Shares use all visible data.","act.rankingTruncated":"The connection list is truncated. Rankings cover only the retrieved data.","act.rss":"Resident memory","act.sampling":"Sampling","act.setup.checkConnection":"Check connection","act.setup.chooseRules":"Choose rules","act.setup.complete":"Complete","act.setup.connection":"Check the connection","act.setup.connectionHint":"Measure the selected node.","act.setup.dismiss":"Dismiss","act.setup.incomplete":"Incomplete","act.setup.nodes":"Add a subscription or nodes","act.setup.nodesHint":"Import proxy nodes.","act.setup.rules":"Choose routing rules","act.setup.rulesHint":"Select a routing template.","act.setup.title":"Getting started","act.since":"Since {time}","act.topDevices":"Top traffic","act.truncated":"Truncated","act.viewAll":"View all","act.viewDetails":"View details","config.atFile":"{file} line {line}: {message}","config.diagnostic.offline":"{reason} {which}","config.diagnostic.offlineDenied":"A file the configuration needs cannot be read: permission denied.","config.diagnostic.offlineGeodata":"Missing or unusable: {files}.","config.diagnostic.offlineInvalid":"A file the configuration needs is damaged or in the wrong format.","config.diagnostic.offlineMissing":"A file the configuration needs was not found.","config.diagnostic.offlineUnreadable":"A file the configuration needs cannot be read.","config.diagnostic.offlineUsual":"Usually this is geoip.dat or geosite.dat, which routing and DNS rules with geoip: or geosite: need, or a subscription or node file the configuration names.","config.kind.generated":"Generated","config.kind.include":"Include","config.kind.main":"Main","config.save":"Apply","config.writeRestart":{"one":"{n} setting takes effect only after a restart; nothing written","other":"{n} settings take effect only after a restart; nothing written"},"dashboard.allGroups":"All groups","dashboard.allRows":"All rows","dashboard.automaticWidth":"Auto","dashboard.connectionNetworks":"Connections by network","dashboard.connectionOutbounds":"Connections by outbound","dashboard.dnsAnswers":"DNS query outcomes","dashboard.dnsSample":"Latest {n} queries","dashboard.edit":"Edit dashboard","dashboard.form.area":"Area chart","dashboard.form.donut":"Donut","dashboard.form.dots":"Dot plot","dashboard.form.facts":"Status facts","dashboard.form.kv":"Key-value list","dashboard.form.ranked":"Ranked list","dashboard.form.sparkline":"Sparkline","dashboard.form.waffle":"Waffle","dashboard.height":"Height","dashboard.height.short":"Short","dashboard.height.standard":"Standard","dashboard.height.tall":"Tall","dashboard.noConnections":"No connections","dashboard.noGroups":"No policy groups","dashboard.noNodes":"No nodes","dashboard.noQueries":"No queries","dashboard.noRoom":"Too wide for this space","dashboard.noSources":"No sources","dashboard.other":"Other","dashboard.policyGroups":"CurLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
const e=JSON.parse('{"act.active":"Active connections","act.cgroup":"cgroup used","act.chooseRoutingMode":"Choose a routing mode","act.cpu":"CPU usage","act.cpuHelp":"The share of one CPU core that the process uses. A value above 100% means it uses more than one core.","act.d7":"7 d","act.devices":"Devices","act.domains":"Domains","act.emptyHistory":"No history samples yet","act.global":"Global outbound","act.globalMissing":"Global mode needs an outbound","act.groupFollow":"Automatic","act.groupPickHelp":"By default, this card follows the group with the most connections; choosing a group changes only this card.","act.h1":"1 h","act.h24":"24 h","act.h6":"6 h","act.historyRange":"History range","act.issues":"Notifications","act.limited":{"one":"{n} feature is off","other":"{n} features are off"},"act.live":"Live","act.m10":"10 min","act.memory":"Memory","act.modeApplied":"Outbound mode written to the configuration and reloaded: {mode}","act.modeConfirm":"Apply {mode} mode?","act.modeDirectHelp":"All traffic will connect directly without proxying.","act.modeGlobalHelp":"All traffic will use the selected outbound group.","act.modeInterleaved":"An ordinary rule comes before a must rule in the routing block. Move the must rules to the top of the routing block, then change the outbound mode.","act.modeNoRouting":"The main configuration has no routing section","act.modeReadOnly":"Read-only","act.modeUnavailable":"Not provided by this backend","act.modeWhyReadOnly":"Why is the mode read-only?","act.noConnections":"This backend does not provide connections","act.noHistory":"This backend does not provide history","act.noIssues":"No issues require attention","act.noOutbounds":"This backend does not provide outbound counters","act.noRoutingMode":"No routing rules configured","act.noSubscriptions":"No subscriptions yet","act.noticeGap":"{reason}, records dropped since recording started: {n}","act.noticeRepeat":{"one":"{n} time","other":"{n} times"},"act.outUsage":"Outbound downloads","act.rankingEmpty":"No connections to rank","act.rankingScope":"Ranked by download totals for visible connections. Shares use all visible data.","act.rankingTruncated":"The connection list is truncated. Rankings cover only the retrieved data.","act.rss":"Resident memory","act.sampling":"Sampling","act.setup.checkConnection":"Check connection","act.setup.chooseRules":"Choose rules","act.setup.complete":"Complete","act.setup.connection":"Check the connection","act.setup.connectionHint":"Measure the selected node.","act.setup.dismiss":"Dismiss","act.setup.incomplete":"Incomplete","act.setup.nodes":"Add a subscription or nodes","act.setup.nodesHint":"Import proxy nodes.","act.setup.rules":"Choose routing rules","act.setup.rulesHint":"Select a routing template.","act.setup.title":"Getting started","act.since":"Since {time}","act.topDevices":"Top traffic","act.truncated":"Truncated","act.viewAll":"View all","act.viewDetails":"View details","config.atFile":"{file} line {line}: {message}","config.diagnostic.offline":"{reason} {which}","config.diagnostic.offlineDenied":"A file the configuration needs cannot be read: permission denied.","config.diagnostic.offlineGeodata":"Missing or unusable: {files}.","config.diagnostic.offlineInvalid":"A file the configuration needs is damaged or in the wrong format.","config.diagnostic.offlineMissing":"A file the configuration needs was not found.","config.diagnostic.offlineUnreadable":"A file the configuration needs cannot be read.","config.diagnostic.offlineUsual":"Usually this is geoip.dat or geosite.dat, which routing and DNS rules with geoip: or geosite: need, or a subscription or node file the configuration names.","config.kind.generated":"Generated","config.kind.include":"Include","config.kind.main":"Main","config.save":"Apply","config.writeRestart":{"one":"{n} setting takes effect only after a restart; nothing written","other":"{n} settings take effect only after a restart; nothing written"},"dashboard.allGroups":"All groups","dashboard.allRows":"All rows","dashboard.automaticWidth":"Auto","dashboard.connectionNetworks":"Connections by network","dashboard.connectionOutbounds":"Connections by outbound","dashboard.dnsAnswers":"DNS query outcomes","dashboard.dnsSample":"Latest {n} queries","dashboard.edit":"Edit dashboard","dashboard.form.area":"Area chart","dashboard.form.donut":"Donut","dashboard.form.dots":"Dot plot","dashboard.form.facts":"Status facts","dashboard.form.kv":"Key-value list","dashboard.form.ranked":"Ranked list","dashboard.form.sparkline":"Sparkline","dashboard.form.waffle":"Waffle","dashboard.height":"Height","dashboard.height.short":"Short","dashboard.height.standard":"Standard","dashboard.height.tall":"Tall","dashboard.noConnections":"No connections","dashboard.noGroups":"No policy groups","dashboard.noNodes":"No nodes","dashboard.noQueries":"No queries","dashboard.noRoom":"Too wide for this space","dashboard.noSources":"No sources","dashboard.other":"Other","dashboard.policyGroups":"CurLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
const e=JSON.parse('{"about.contract":"Contract commit","about.credits":"Fonts Noto Sans TC/SC (OFL); icons Adobe Spectrum (Apache-2.0); palettes from Rosé Pine, Catppuccin, Nord, Kary Pro Colors, Ant Design, Arco Design and Semi Design.","about.duck":"Pet me","about.license":"License","about.privacy":"doona talks only to the backend you connect it to. It collects no data and sends nothing anywhere else.","about.quack":"Honk!","about.tagline":"Web UI for {engine}","about.title":"About doona","act.latency":"Latency","act.mode":"Outbound mode","act.traffic":"Traffic","config.changedMeanwhile":"The configuration changed or another write was still in progress, so nothing was written. Refresh and try again","config.diagnostic.bareCondition":"Condition has no function call; it will never match","config.diagnostic.braceWithoutSection":"Closing brace without an open section","config.diagnostic.includeNotFound":"Include \\"{path}\\" cannot be resolved","config.diagnostic.notARule":"Expected \\"<condition> -> <outbound>\\", \\"include <file>\\" or \\"fallback: <outbound>\\"","config.diagnostic.notASetting":"Expected \\"<key>: <value>\\"","config.diagnostic.sectionNotClosed":"Section \\"{name}\\" is never closed","config.diagnostic.sourceNotIncluded":"No include pattern matches {path}; nothing was written","config.diagnostic.unknownKey":"Unknown global setting \\"{name}\\"","config.diagnostic.unknownOutbound":"No group named \\"{name}\\"","config.diagnostic.unknownSection":"Unknown section \\"{name}\\"","config.discard":"Discard changes","config.discardHelp":"Leaving discards these unsaved changes: {drafts}.","config.discardTitle":"Discard changes not applied?","config.diskAhead":"The file on disk is not the running configuration, so nothing was written. Reload honk to apply the file, or restart honk if it changes a setting that needs a restart","config.draftOther":"Other changes","config.global.allow_insecure":"Allow insecure TLS","config.global.auto_config_kernel_parameter":"Configure kernel parameters","config.global.bandwidth_max_rx":"Download bandwidth limit","config.global.bandwidth_max_tx":"Upload bandwidth limit","config.global.bootstrap_resolver":"Bootstrap resolver","config.global.check_interval":"Check interval","config.global.check_tolerance":"Switch tolerance","config.global.data_dir":"Data directory","config.global.dial_mode":"Dial mode","config.global.disable_waiting_network":"Skip waiting for network","config.global.fallback_resolver":"Fallback resolver","config.global.lan_interface":"LAN interfaces","config.global.log_file":"Log file","config.global.log_level":"Log level","config.global.max_concurrent_dials":"Concurrent dial limit","config.global.mptcp":"Multipath TCP","config.global.nfqueue_enable":"Enable NFQUEUE","config.global.pprof_port":"Profiling port","config.global.preconnect_node_count":"Preconnected nodes","config.global.sniffing_timeout":"Sniffing timeout","config.global.so_mark_from_dae":"Socket mark","config.global.store_subscribe":"Store subscriptions","config.global.tcp_check_http_method":"TCP check HTTP method","config.global.tcp_check_url":"TCP check URLs","config.global.tls_fragment":"TLS fragmentation","config.global.tls_fragment_interval":"TLS fragment interval","config.global.tls_fragment_length":"TLS fragment length","config.global.tls_implementation":"TLS implementation","config.global.tproxy_port":"Transparent proxy port","config.global.tproxy_port_protect":"Protect transparent proxy port","config.global.udp_check_dns":"UDP check DNS servers","config.global.udp_warm_node_count":"UDP warm-up nodes","config.global.utls_imitate":"uTLS fingerprint","config.global.wan_interface":"WAN interfaces","config.incomplete":"The text is incomplete or redacted; it cannot be edited here","config.newSourceAbsolute":"Use a path relative to the main configuration\'s directory","config.newSourceControl":"The path cannot contain control characters","config.newSourceExtension":"The file name must end in .dae","config.newSourceNameControl":"The name cannot contain control characters","config.newSourceNameSlash":"The name cannot contain /","config.newSourceSegments":"Path segments cannot be empty, . or ..","config.readOnly":"Read-only","config.tabGlobal":"Global settings","config.tabHistory":"Backups and revisions","config.tabModules":"Modules","config.tabSource":"Config files","config.tooLarge":"The configuration is larger than the backend accepts. Limit: {limit} bytes","config.unquotable":"Cannot write this value losslessly as a single-quoted string: it contains an apostrophe, line break, or trailing backslash.","conn.state.active":"Active","conn.state.blocked":"Blocked","conn.state.closed":"Closed","conn.state.dialing":"Dialing","conn.state.failed":"Failed","conn.state.observed":"Observed","conn.state.routing":"Routing","conn.state.unknown":"Unknown","conn.tab.list":"List","dns.log":"Resolution log","dns.query":"Query","dns.tab.stats":"Statistics","event.flow":"{resourceId}, revision: {revision}Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
const e=JSON.parse('{"about.contract":"Contract commit","about.credits":"Fonts Noto Sans TC/SC (OFL); icons Adobe Spectrum (Apache-2.0); palettes from Rosé Pine, Catppuccin, Nord, Kary Pro Colors, Ant Design, Arco Design and Semi Design.","about.duck":"Pet me","about.license":"License","about.privacy":"doona talks only to the backend you connect it to. It collects no data and sends nothing anywhere else.","about.quack":"Honk!","about.tagline":"Web UI for {engine}","about.title":"About doona","act.latency":"Latency","act.mode":"Outbound mode","act.traffic":"Traffic","config.changedMeanwhile":"The configuration changed or another write was still in progress, so nothing was written. Refresh and try again","config.diagnostic.bareCondition":"Condition has no function call; it will never match","config.diagnostic.braceWithoutSection":"Closing brace without an open section","config.diagnostic.includeNotFound":"Include \\"{path}\\" cannot be resolved","config.diagnostic.notARule":"Expected \\"<condition> -> <outbound>\\", \\"include <file>\\" or \\"fallback: <outbound>\\"","config.diagnostic.notASetting":"Expected \\"<key>: <value>\\"","config.diagnostic.sectionNotClosed":"Section \\"{name}\\" is never closed","config.diagnostic.sourceNotIncluded":"No include pattern matches {path}; nothing was written","config.diagnostic.unknownKey":"Unknown global setting \\"{name}\\"","config.diagnostic.unknownOutbound":"No group named \\"{name}\\"","config.diagnostic.unknownSection":"Unknown section \\"{name}\\"","config.discard":"Discard changes","config.discardHelp":"Leaving discards these unsaved changes: {drafts}.","config.discardTitle":"Discard changes not applied?","config.diskAhead":"The file on disk is not the running configuration, so nothing was written. Reload honk to apply the file, or restart honk if it changes a setting that needs a restart","config.draftOther":"Other changes","config.global.allow_insecure":"Allow insecure TLS","config.global.auto_config_kernel_parameter":"Configure kernel parameters","config.global.bandwidth_max_rx":"Download bandwidth limit","config.global.bandwidth_max_tx":"Upload bandwidth limit","config.global.bootstrap_resolver":"Bootstrap resolver","config.global.check_interval":"Check interval","config.global.check_tolerance":"Switch tolerance","config.global.data_dir":"Data directory","config.global.dial_mode":"Dial mode","config.global.disable_waiting_network":"Skip waiting for network","config.global.fallback_resolver":"Fallback resolver","config.global.lan_interface":"LAN interfaces","config.global.log_file":"Log file","config.global.log_level":"Log level","config.global.max_concurrent_dials":"Concurrent dial limit","config.global.mptcp":"Multipath TCP","config.global.nfqueue_enable":"Enable NFQUEUE","config.global.pprof_port":"Profiling port","config.global.preconnect_node_count":"Preconnected nodes","config.global.sniffing_timeout":"Sniffing timeout","config.global.so_mark_from_dae":"Socket mark","config.global.store_subscribe":"Store subscriptions","config.global.tcp_check_http_method":"TCP check HTTP method","config.global.tcp_check_url":"TCP check URLs","config.global.tls_fragment":"TLS fragmentation","config.global.tls_fragment_interval":"TLS fragment interval","config.global.tls_fragment_length":"TLS fragment length","config.global.tls_implementation":"TLS implementation","config.global.tproxy_port":"Transparent proxy port","config.global.tproxy_port_protect":"Protect transparent proxy port","config.global.udp_check_dns":"UDP check DNS servers","config.global.udp_warm_node_count":"UDP warm-up nodes","config.global.utls_imitate":"uTLS fingerprint","config.global.wan_interface":"WAN interfaces","config.incomplete":"The text is incomplete or redacted; it cannot be edited here","config.newSourceAbsolute":"Use a path relative to the main configuration\'s directory","config.newSourceControl":"The path cannot contain control characters","config.newSourceExtension":"The file name must end in .dae","config.newSourceNameControl":"The name cannot contain control characters","config.newSourceNameSlash":"The name cannot contain /","config.newSourceSegments":"Path segments cannot be empty, . or ..","config.readOnly":"Read-only","config.tabGlobal":"Global settings","config.tabHistory":"Backups and revisions","config.tabModules":"Modules","config.tabSource":"Config files","config.tooLarge":"The configuration is larger than the backend accepts. Limit: {limit} bytes","config.unquotable":"Cannot write this value losslessly as a single-quoted string: it contains an apostrophe, line break, or trailing backslash.","conn.state.active":"Active","conn.state.blocked":"Blocked","conn.state.closed":"Closed","conn.state.dialing":"Dialing","conn.state.failed":"Failed","conn.state.observed":"Observed","conn.state.routing":"Routing","conn.state.unknown":"Unknown","conn.tab.list":"List","dns.log":"Resolution log","dns.query":"Query","dns.tab.stats":"Statistics","event.flow":"{resourceId}, revision: {revision}Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
const e=JSON.parse('{"act.modeReadOnlyAction":"Make the main file writable by honk and keep native_api in its own include file.","act.modeReadOnlyReason":"honk requires configuration writes and authenticated control. It marks the main config file read-only if it contains a secret field or nested block in native_api or clash_api, or an active listener secret.","act.readOnlyDocs":"Read-only config files","cm.all":"All","cm.byWord":"By word","cm.commands":"Editing commands","cm.completions":"Completions","cm.controlCharacter":"Control character","cm.currentMatch":"Current match","cm.find":"Find","cm.findReplace":"Find and replace","cm.go":"Go","cm.gotoLine":"Go to line","cm.matchCase":"Match case","cm.next":"Next","cm.onLine":"On line","cm.previous":"Previous","cm.redo":"Redo","cm.regexp":"Regexp","cm.replace":"Replace","cm.replaceAll":"Replace all","cm.replaceOne":"Replace","cm.replacedMatches":"Matches replaced: $","cm.replacedOnLine":"Replaced match on line $","cm.selectionDeleted":"Selection deleted","cm.toggleComment":"Toggle comment","cm.undo":"Undo","config.acceptedDiagnostics":"Diagnostics kept for the accepted configuration (generation {generation})","config.atLine":"Line {line}: {message}","config.backendDetail":"{text}. Backend message: {message}","config.backendText":"Details","config.backup.export":"Export configuration","config.backup.exportFailed":"Export failed: {error}","config.backup.exportHelp":"Exports accepted configuration. Listener secrets are omitted; other credentials may remain. Review before sharing.","config.backup.import":"Import server files","config.backup.importHelp":"Reads the file tree specified by -c at startup, validates it, replaces the database configuration and applies it immediately. This does not upload a local file.","config.backup.importTitle":"Replace configuration from server files?","config.backup.imported":"Server configuration imported","config.changedOnDisk":"The file changed on disk while you were editing; applying would replace that change.","config.clean":"No diagnostics","config.diagnostic.downloadGeodata":"Download geodata","config.diagnostic.geodataDocs":"How to install geodata","config.diagnostics":"Diagnostics","config.draftBackend":"Backend profile","config.draftConfig":"Config file","config.draftDiagnostics":"Current draft diagnostics","config.draftGroup":"Group","config.draftNode":"Node","config.draftPending":"Current draft has not been validated.","config.draftRule":"Rule","config.draftRuntime":"Runtime overrides","config.editNote":"Click the text to edit.","config.editNoteValidate":"Click the text to edit; validate before applying.","config.editor":"Editor","config.errors":{"one":"{n} error","other":"{n} errors"},"config.export":"Download source file","config.exportWarning":"Exports preserve the displayed file bytes and may contain credentials. Review them before sharing.","config.fileDiagnostics":"Current config file diagnostics","config.forms":"Setting forms","config.generatedNote":"The engine generates this file and overwrites it when it regenerates, so it can only be viewed here. To change it, change the configuration that produces it.","config.globalChoice":"A number, or {choices}","config.globalDuplicate":"This field occurs more than once. Resolve duplicate entries in Config files.","config.globalGroup.bandwidth":"Bandwidth and preconnection","config.globalGroup.checks":"Node checks","config.globalGroup.dialing":"Dialing and TLS","config.globalGroup.interfaces":"Interfaces and ports","config.globalGroup.logging":"Logging","config.globalGroup.storage":"Data storage","config.globalInvalid":"Enter a value of the specified type and range.","config.globalList":"Separate with commas","config.globalNote":"Changes are written to the config file and applied by reload. Process settings may require a restart. Empty fields keep the engine defaults.","config.globalRange":"Range: 0–{max}","config.globalSave":"Write and reload","config.globalSaved":"Global settings written and configuration reloaded","config.globalUnits":"Units: {units}","config.globalUnset":"Not set","config.incompleteNote":"The text shown is incomplete, or its SHA-256 differs from the value the backend reports, so it cannot be edited here. Edit the file on the host.","config.incompleteSource":"Incomplete","config.invalid":{"one":"Validation found {n} error","other":"Validation found {n} errors"},"config.jumpToLine":"Go to line {line}","config.keepChanges":"Keep changes","config.level":"Level","config.level.error":"Error","config.level.info":"Info","config.level.warning":"Warning","config.levelErrors":"Errors {n}","config.levelInfo":"Info {n}","config.levelWarnings":"Warnings {n}","config.loadedAt":"Loaded: {time}","config.moduleAbsent":"Section not configured; add it to {file}.","config.moduleAbsentReadOnly":"Section not configured.","config.moduleDnsRequests":{"one":"{n} request rule","other":"{n} request rules"},"config.moduleDnsResponses":{"one":"{n} response rule","other":"{n} respoLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
const e=JSON.parse('{"act.modeReadOnlyAction":"Make the main file writable by honk and keep native_api in its own include file.","act.modeReadOnlyReason":"honk requires configuration writes and authenticated control. It marks the main config file read-only if it contains a secret field or nested block in native_api or clash_api, or an active listener secret.","act.readOnlyDocs":"Read-only config files","cm.all":"All","cm.byWord":"By word","cm.commands":"Editing commands","cm.completions":"Completions","cm.controlCharacter":"Control character","cm.currentMatch":"Current match","cm.find":"Find","cm.findReplace":"Find and replace","cm.go":"Go","cm.gotoLine":"Go to line","cm.matchCase":"Match case","cm.next":"Next","cm.onLine":"On line","cm.previous":"Previous","cm.redo":"Redo","cm.regexp":"Regexp","cm.replace":"Replace","cm.replaceAll":"Replace all","cm.replaceOne":"Replace","cm.replacedMatches":"Matches replaced: $","cm.replacedOnLine":"Replaced match on line $","cm.selectionDeleted":"Selection deleted","cm.toggleComment":"Toggle comment","cm.undo":"Undo","config.acceptedDiagnostics":"Diagnostics kept for the accepted configuration (generation {generation})","config.atLine":"Line {line}: {message}","config.backendDetail":"{text}. Backend message: {message}","config.backendText":"Details","config.backup.export":"Export configuration","config.backup.exportFailed":"Export failed: {error}","config.backup.exportHelp":"Exports accepted configuration. Listener secrets are omitted; other credentials may remain. Review before sharing.","config.backup.import":"Import server files","config.backup.importHelp":"Reads the file tree specified by -c at startup, validates it, replaces the database configuration and applies it immediately. This does not upload a local file.","config.backup.importTitle":"Replace configuration from server files?","config.backup.imported":"Server configuration imported","config.changedOnDisk":"The file changed on disk while you were editing; applying would replace that change.","config.clean":"No diagnostics","config.diagnostic.downloadGeodata":"Download geodata","config.diagnostic.geodataDocs":"How to install geodata","config.diagnostics":"Diagnostics","config.draftBackend":"Backend profile","config.draftConfig":"Config file","config.draftDiagnostics":"Current draft diagnostics","config.draftGroup":"Group","config.draftNode":"Node","config.draftPending":"Current draft has not been validated.","config.draftRule":"Rule","config.draftRuntime":"Runtime overrides","config.editNote":"Click the text to edit.","config.editNoteValidate":"Click the text to edit; validate before applying.","config.editor":"Editor","config.errors":{"one":"{n} error","other":"{n} errors"},"config.export":"Download source file","config.exportWarning":"Exports preserve the displayed file bytes and may contain credentials. Review them before sharing.","config.fileDiagnostics":"Current config file diagnostics","config.forms":"Setting forms","config.generatedNote":"The engine generates this file and overwrites it when it regenerates, so it can only be viewed here. To change it, change the configuration that produces it.","config.globalChoice":"A number, or {choices}","config.globalDuplicate":"This field occurs more than once. Resolve duplicate entries in Config files.","config.globalGroup.bandwidth":"Bandwidth and preconnection","config.globalGroup.checks":"Node checks","config.globalGroup.dialing":"Dialing and TLS","config.globalGroup.interfaces":"Interfaces and ports","config.globalGroup.logging":"Logging","config.globalGroup.storage":"Data storage","config.globalInvalid":"Enter a value of the specified type and range.","config.globalList":"Separate with commas","config.globalNote":"Changes are written to the config file and applied by reload. Process settings may require a restart. Empty fields keep the engine defaults.","config.globalRange":"Range: 0–{max}","config.globalSave":"Write and reload","config.globalSaved":"Global settings written and configuration reloaded","config.globalUnits":"Units: {units}","config.globalUnset":"Not set","config.incompleteNote":"The text shown is incomplete, or its SHA-256 differs from the value the backend reports, so it cannot be edited here. Edit the file on the host.","config.incompleteSource":"Incomplete","config.invalid":{"one":"Validation found {n} error","other":"Validation found {n} errors"},"config.jumpToLine":"Go to line {line}","config.keepChanges":"Keep changes","config.level":"Level","config.level.error":"Error","config.level.info":"Info","config.level.warning":"Warning","config.levelErrors":"Errors {n}","config.levelInfo":"Info {n}","config.levelWarnings":"Warnings {n}","config.loadedAt":"Loaded: {time}","config.moduleAbsent":"Section not configured; add it to {file}.","config.moduleAbsentReadOnly":"Section not configured.","config.moduleDnsRequests":{"one":"{n} request rule","other":"{n} request rules"},"config.moduleDnsResponses":{"one":"{n} response rule","other":"{n} respoLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
const e=JSON.parse('{"act.active":"活动连接","act.cgroup":"cgroup 已用","act.chooseRoutingMode":"选择分流方式","act.cpu":"CPU 使用率","act.cpuHelp":"进程占用单个 CPU 核心的百分比。超过 100% 表示使用了一个以上的核心。","act.d7":"7 天","act.devices":"设备","act.domains":"域名","act.emptyHistory":"暂无历史样本","act.global":"全局出站","act.globalMissing":"全局模式须指定出站","act.groupFollow":"自动","act.groupPickHelp":"默认跟随连接最多的策略组,选择组只会更改此卡片。","act.h1":"1 小时","act.h24":"24 小时","act.h6":"6 小时","act.historyRange":"历史范围","act.issues":"通知与问题","act.limited":"{n} 项功能未开启","act.live":"实时","act.m10":"10 分钟","act.memory":"内存","act.modeApplied":"出站模式已写入配置并重载:{mode}","act.modeConfirm":"应用{mode}模式?","act.modeDirectHelp":"所有流量将直接连接,不经代理。","act.modeGlobalHelp":"所有流量将使用选定的出站组。","act.modeInterleaved":"routing 区段有普通规则排在 must 规则前面。请先把 must 规则移到 routing 区段最前面,再切换出站模式。","act.modeNoRouting":"主配置未包含 routing 区段","act.modeReadOnly":"只读","act.modeUnavailable":"此后端不提供","act.modeWhyReadOnly":"查看只读原因","act.noConnections":"此后端不提供连接","act.noHistory":"此后端不提供历史数据","act.noIssues":"当前没有需要处理的问题","act.noOutbounds":"此后端不提供出站统计","act.noRoutingMode":"尚未配置分流规则","act.noSubscriptions":"尚无订阅","act.noticeGap":"{reason},本次记录期间累计丢弃:{n}","act.noticeRepeat":"重复 {n} 次","act.outUsage":"出站下载量","act.rankingEmpty":"当前没有可排行的连接","act.rankingScope":"按当前可见连接的下载量排序,占比以全部可见数据计算。","act.rankingTruncated":"连接列表已截断,排行仅涵盖已获取的数据。","act.rss":"常驻内存","act.sampling":"采样中","act.setup.checkConnection":"检查连接","act.setup.chooseRules":"选择规则","act.setup.complete":"已完成","act.setup.connection":"检查连接","act.setup.connectionHint":"测试当前节点延迟。","act.setup.dismiss":"不再显示","act.setup.incomplete":"未完成","act.setup.nodes":"添加订阅或节点","act.setup.nodesHint":"导入代理节点。","act.setup.rules":"选择路由规则","act.setup.rulesHint":"选择路由模板。","act.setup.title":"开始使用","act.since":"自 {time} 起","act.topDevices":"流量排行","act.truncated":"已截断","act.viewAll":"查看全部","act.viewDetails":"查看详情","config.atFile":"{file} 第 {line} 行:{message}","config.diagnostic.offline":"{reason}{which}","config.diagnostic.offlineDenied":"无权读取配置所需的文件。","config.diagnostic.offlineGeodata":"缺失或不可用:{files}。","config.diagnostic.offlineInvalid":"配置所需的文件已损坏或格式不正确。","config.diagnostic.offlineMissing":"找不到配置所需的文件。","config.diagnostic.offlineUnreadable":"无法读取配置所需的文件。","config.diagnostic.offlineUsual":"通常是路由或 DNS 规则使用 geoip: 或 geosite: 时所需的 geoip.dat、geosite.dat,也可能是配置引用的订阅或节点文件。","config.kind.generated":"引擎生成","config.kind.include":"引入文件","config.kind.main":"主配置","config.save":"应用","config.writeRestart":"{n} 项设置需重启才会生效,未写入","dashboard.allGroups":"所有策略组","dashboard.allRows":"全部行","dashboard.automaticWidth":"自动","dashboard.connectionNetworks":"各协议连接数","dashboard.connectionOutbounds":"各出站连接数","dashboard.dnsAnswers":"DNS 查询结果","dashboard.dnsSample":"最近 {n} 条查询","dashboard.edit":"编辑仪表盘","dashboard.form.area":"面积图","dashboard.form.donut":"环形图","dashboard.form.dots":"点图","dashboard.form.facts":"状态概览","dashboard.form.kv":"键值列表","dashboard.form.ranked":"排行列表","dashboard.form.sparkline":"迷你折线图","dashboard.form.waffle":"方格图","dashboard.height":"高度","dashboard.height.short":"矮","dashboard.height.standard":"标准","dashboard.height.tall":"高","dashboard.noConnections":"没有连接","dashboard.noGroups":"没有策略组","dashboard.noNodes":"没有节点","dashboard.noQueries":"没有查询","dashboard.noRoom":"卡片宽于此空位,无法放入","dashboard.noSources":"没有来源","dashboard.other":"其他","dashboard.policyGroups":"策略组当前节点","dashboard.preset":"{width},{height}","dashboard.providerBudget":"订阅额度","dashboard.remaining":"此行尚余 {space}","dashboard.resizeHeight":"调整高度","dashboard.resizeWidth":"调整宽度","dashboard.rows":"{n} 行","dashboard.sourceHealth":"来源状态","dashboard.wide":"全宽","dashboard.width":"宽度","dns.chart.median":"中位Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
const e=JSON.parse('{"act.active":"活动连接","act.cgroup":"cgroup 已用","act.chooseRoutingMode":"选择分流方式","act.cpu":"CPU 使用率","act.cpuHelp":"进程占用单个 CPU 核心的百分比。超过 100% 表示使用了一个以上的核心。","act.d7":"7 天","act.devices":"设备","act.domains":"域名","act.emptyHistory":"暂无历史样本","act.global":"全局出站","act.globalMissing":"全局模式须指定出站","act.groupFollow":"自动","act.groupPickHelp":"默认跟随连接最多的策略组,选择组只会更改此卡片。","act.h1":"1 小时","act.h24":"24 小时","act.h6":"6 小时","act.historyRange":"历史范围","act.issues":"通知与问题","act.limited":"{n} 项功能未开启","act.live":"实时","act.m10":"10 分钟","act.memory":"内存","act.modeApplied":"出站模式已写入配置并重载:{mode}","act.modeConfirm":"应用{mode}模式?","act.modeDirectHelp":"所有流量将直接连接,不经代理。","act.modeGlobalHelp":"所有流量将使用选定的出站组。","act.modeInterleaved":"routing 区段有普通规则排在 must 规则前面。请先把 must 规则移到 routing 区段最前面,再切换出站模式。","act.modeNoRouting":"主配置未包含 routing 区段","act.modeReadOnly":"只读","act.modeUnavailable":"此后端不提供","act.modeWhyReadOnly":"查看只读原因","act.noConnections":"此后端不提供连接","act.noHistory":"此后端不提供历史数据","act.noIssues":"当前没有需要处理的问题","act.noOutbounds":"此后端不提供出站统计","act.noRoutingMode":"尚未配置分流规则","act.noSubscriptions":"尚无订阅","act.noticeGap":"{reason},本次记录期间累计丢弃:{n}","act.noticeRepeat":"重复 {n} 次","act.outUsage":"出站下载量","act.rankingEmpty":"当前没有可排行的连接","act.rankingScope":"按当前可见连接的下载量排序,占比以全部可见数据计算。","act.rankingTruncated":"连接列表已截断,排行仅涵盖已获取的数据。","act.rss":"常驻内存","act.sampling":"采样中","act.setup.checkConnection":"检查连接","act.setup.chooseRules":"选择规则","act.setup.complete":"已完成","act.setup.connection":"检查连接","act.setup.connectionHint":"测试当前节点延迟。","act.setup.dismiss":"不再显示","act.setup.incomplete":"未完成","act.setup.nodes":"添加订阅或节点","act.setup.nodesHint":"导入代理节点。","act.setup.rules":"选择路由规则","act.setup.rulesHint":"选择路由模板。","act.setup.title":"开始使用","act.since":"自 {time} 起","act.topDevices":"流量排行","act.truncated":"已截断","act.viewAll":"查看全部","act.viewDetails":"查看详情","config.atFile":"{file} 第 {line} 行:{message}","config.diagnostic.offline":"{reason}{which}","config.diagnostic.offlineDenied":"无权读取配置所需的文件。","config.diagnostic.offlineGeodata":"缺失或不可用:{files}。","config.diagnostic.offlineInvalid":"配置所需的文件已损坏或格式不正确。","config.diagnostic.offlineMissing":"找不到配置所需的文件。","config.diagnostic.offlineUnreadable":"无法读取配置所需的文件。","config.diagnostic.offlineUsual":"通常是路由或 DNS 规则使用 geoip: 或 geosite: 时所需的 geoip.dat、geosite.dat,也可能是配置引用的订阅或节点文件。","config.kind.generated":"引擎生成","config.kind.include":"引入文件","config.kind.main":"主配置","config.save":"应用","config.writeRestart":"{n} 项设置需重启才会生效,未写入","dashboard.allGroups":"所有策略组","dashboard.allRows":"全部行","dashboard.automaticWidth":"自动","dashboard.connectionNetworks":"各协议连接数","dashboard.connectionOutbounds":"各出站连接数","dashboard.dnsAnswers":"DNS 查询结果","dashboard.dnsSample":"最近 {n} 条查询","dashboard.edit":"编辑仪表盘","dashboard.form.area":"面积图","dashboard.form.donut":"环形图","dashboard.form.dots":"点图","dashboard.form.facts":"状态概览","dashboard.form.kv":"键值列表","dashboard.form.ranked":"排行列表","dashboard.form.sparkline":"迷你折线图","dashboard.form.waffle":"方格图","dashboard.height":"高度","dashboard.height.short":"矮","dashboard.height.standard":"标准","dashboard.height.tall":"高","dashboard.noConnections":"没有连接","dashboard.noGroups":"没有策略组","dashboard.noNodes":"没有节点","dashboard.noQueries":"没有查询","dashboard.noRoom":"卡片宽于此空位,无法放入","dashboard.noSources":"没有来源","dashboard.other":"其他","dashboard.policyGroups":"策略组当前节点","dashboard.preset":"{width},{height}","dashboard.providerBudget":"订阅额度","dashboard.remaining":"此行尚余 {space}","dashboard.resizeHeight":"调整高度","dashboard.resizeWidth":"调整宽度","dashboard.rows":"{n} 行","dashboard.sourceHealth":"来源状态","dashboard.wide":"全宽","dashboard.width":"宽度","dns.chart.median":"中位Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
const e=JSON.parse('{"about.contract":"契约提交","about.credits":"字体 Noto Sans TC/SC(OFL);图标 Adobe Spectrum(Apache-2.0);配色来自 Rosé Pine、Catppuccin、Nord、Kary Pro Colors、Ant Design、Arco Design 与 Semi Design。","about.duck":"摸摸我","about.license":"许可证","about.privacy":"doona 只与你连接的后端通信,不收集数据,也不发送到其他地方。","about.quack":"嘎!","about.tagline":"{engine} 的 Web 界面","about.title":"关于 doona","act.latency":"延迟","act.mode":"出站模式","act.traffic":"流量","config.changedMeanwhile":"配置已被更改或另一次写入尚未完成,因此未写入。请刷新后重试","config.diagnostic.bareCondition":"条件中没有函数调用,因此永远不会匹配","config.diagnostic.braceWithoutSection":"右大括号没有对应的区段开头","config.diagnostic.includeNotFound":"无法解析引入文件“{path}”","config.diagnostic.notARule":"规则格式:<condition> -> <outbound>、include <file> 或 fallback: <outbound>","config.diagnostic.notASetting":"设置格式:<key>: <value>","config.diagnostic.sectionNotClosed":"区段“{name}”缺少右大括号","config.diagnostic.sourceNotIncluded":"没有 include 路径模式匹配 {path},未写入文件","config.diagnostic.unknownKey":"未知的全局设置“{name}”","config.diagnostic.unknownOutbound":"找不到名为“{name}”的组","config.diagnostic.unknownSection":"未知的区段“{name}”","config.discard":"放弃修改","config.discardHelp":"离开后,以下项目的未保存修改将丢失:{drafts}。","config.discardTitle":"放弃未应用的修改?","config.diskAhead":"磁盘上的文件与运行中的配置不同,因此未写入。请重载 honk 以应用该文件;若文件更改了需重启的设置,请重启 honk","config.draftOther":"其他修改","config.global.allow_insecure":"允许不安全的 TLS","config.global.auto_config_kernel_parameter":"自动配置内核参数","config.global.bandwidth_max_rx":"下载带宽上限","config.global.bandwidth_max_tx":"上传带宽上限","config.global.bootstrap_resolver":"引导解析器","config.global.check_interval":"检查间隔","config.global.check_tolerance":"切换容差","config.global.data_dir":"数据目录","config.global.dial_mode":"拨号模式","config.global.disable_waiting_network":"不等待网络就绪","config.global.fallback_resolver":"备用解析器","config.global.lan_interface":"LAN 接口","config.global.log_file":"日志文件","config.global.log_level":"日志级别","config.global.max_concurrent_dials":"并发拨号上限","config.global.mptcp":"多路径 TCP","config.global.nfqueue_enable":"启用 NFQUEUE","config.global.pprof_port":"性能分析端口","config.global.preconnect_node_count":"预连接节点数","config.global.sniffing_timeout":"嗅探超时","config.global.so_mark_from_dae":"Socket 标记","config.global.store_subscribe":"保存订阅内容","config.global.tcp_check_http_method":"TCP 检查 HTTP 方法","config.global.tcp_check_url":"TCP 检查 URL","config.global.tls_fragment":"TLS 分片","config.global.tls_fragment_interval":"TLS 分片间隔","config.global.tls_fragment_length":"TLS 分片长度","config.global.tls_implementation":"TLS 实现","config.global.tproxy_port":"透明代理端口","config.global.tproxy_port_protect":"保护透明代理端口","config.global.udp_check_dns":"UDP 检查 DNS 服务器","config.global.udp_warm_node_count":"UDP 预热节点数","config.global.utls_imitate":"uTLS 指纹","config.global.wan_interface":"WAN 接口","config.incomplete":"内容不完整或已脱敏,不能在此编辑","config.newSourceAbsolute":"请使用相对于主配置目录的路径","config.newSourceControl":"路径不能包含控制字符","config.newSourceExtension":"文件名须以 .dae 结尾","config.newSourceNameControl":"名称不能包含控制字符","config.newSourceNameSlash":"名称不能包含 /","config.newSourceSegments":"路径不能包含空段、. 或 ..","config.readOnly":"只读","config.tabGlobal":"全局设置","config.tabHistory":"备份与修订","config.tabModules":"模块","config.tabSource":"配置文件","config.tooLarge":"配置超过后端可接受的大小。上限:{limit} 字节","config.unquotable":"无法写入:值含单引号、换行或结尾反斜线,无法无损转为单引号字符串。","conn.state.active":"进行中","conn.state.blocked":"已屏蔽","conn.state.closed":"已关闭","conn.state.dialing":"拨号中","conn.state.failed":"失败","conn.state.observed":"观测中","conn.state.routing":"路由中","conn.state.unknown":"未知","conn.tab.list":"列表","dns.log":"解析记录","dns.query":"查询","dns.tab.stats":"统计","event.flow":"{resourceId},修订:{revision}","event.gap":"{resourceId},原因:{reason},本次记录期间累计丢弃:{n}","event.gap.evicted":"移出保留记录","event.gap.overflow":"记录已达保留上限","Line truncated
|
||||
@@ -1 +0,0 @@
|
||||
const e=JSON.parse('{"about.contract":"契约提交","about.credits":"字体 Noto Sans TC/SC(OFL);图标 Adobe Spectrum(Apache-2.0);配色来自 Rosé Pine、Catppuccin、Nord、Kary Pro Colors、Ant Design、Arco Design 与 Semi Design。","about.duck":"摸摸我","about.license":"许可证","about.privacy":"doona 只与你连接的后端通信,不收集数据,也不发送到其他地方。","about.quack":"嘎!","about.tagline":"{engine} 的 Web 界面","about.title":"关于 doona","act.latency":"延迟","act.mode":"出站模式","act.traffic":"流量","config.changedMeanwhile":"配置已被更改或另一次写入尚未完成,因此未写入。请刷新后重试","config.diagnostic.bareCondition":"条件中没有函数调用,因此永远不会匹配","config.diagnostic.braceWithoutSection":"右大括号没有对应的区段开头","config.diagnostic.includeNotFound":"无法解析引入文件“{path}”","config.diagnostic.notARule":"规则格式:<condition> -> <outbound>、include <file> 或 fallback: <outbound>","config.diagnostic.notASetting":"设置格式:<key>: <value>","config.diagnostic.sectionNotClosed":"区段“{name}”缺少右大括号","config.diagnostic.sourceNotIncluded":"没有 include 路径模式匹配 {path},未写入文件","config.diagnostic.unknownKey":"未知的全局设置“{name}”","config.diagnostic.unknownOutbound":"找不到名为“{name}”的组","config.diagnostic.unknownSection":"未知的区段“{name}”","config.discard":"放弃修改","config.discardHelp":"离开后,以下项目的未保存修改将丢失:{drafts}。","config.discardTitle":"放弃未应用的修改?","config.diskAhead":"磁盘上的文件与运行中的配置不同,因此未写入。请重载 honk 以应用该文件;若文件更改了需重启的设置,请重启 honk","config.draftOther":"其他修改","config.global.allow_insecure":"允许不安全的 TLS","config.global.auto_config_kernel_parameter":"自动配置内核参数","config.global.bandwidth_max_rx":"下载带宽上限","config.global.bandwidth_max_tx":"上传带宽上限","config.global.bootstrap_resolver":"引导解析器","config.global.check_interval":"检查间隔","config.global.check_tolerance":"切换容差","config.global.data_dir":"数据目录","config.global.dial_mode":"拨号模式","config.global.disable_waiting_network":"不等待网络就绪","config.global.fallback_resolver":"备用解析器","config.global.lan_interface":"LAN 接口","config.global.log_file":"日志文件","config.global.log_level":"日志级别","config.global.max_concurrent_dials":"并发拨号上限","config.global.mptcp":"多路径 TCP","config.global.nfqueue_enable":"启用 NFQUEUE","config.global.pprof_port":"性能分析端口","config.global.preconnect_node_count":"预连接节点数","config.global.sniffing_timeout":"嗅探超时","config.global.so_mark_from_dae":"Socket 标记","config.global.store_subscribe":"保存订阅内容","config.global.tcp_check_http_method":"TCP 检查 HTTP 方法","config.global.tcp_check_url":"TCP 检查 URL","config.global.tls_fragment":"TLS 分片","config.global.tls_fragment_interval":"TLS 分片间隔","config.global.tls_fragment_length":"TLS 分片长度","config.global.tls_implementation":"TLS 实现","config.global.tproxy_port":"透明代理端口","config.global.tproxy_port_protect":"保护透明代理端口","config.global.udp_check_dns":"UDP 检查 DNS 服务器","config.global.udp_warm_node_count":"UDP 预热节点数","config.global.utls_imitate":"uTLS 指纹","config.global.wan_interface":"WAN 接口","config.incomplete":"内容不完整或已脱敏,不能在此编辑","config.newSourceAbsolute":"请使用相对于主配置目录的路径","config.newSourceControl":"路径不能包含控制字符","config.newSourceExtension":"文件名须以 .dae 结尾","config.newSourceNameControl":"名称不能包含控制字符","config.newSourceNameSlash":"名称不能包含 /","config.newSourceSegments":"路径不能包含空段、. 或 ..","config.readOnly":"只读","config.tabGlobal":"全局设置","config.tabHistory":"备份与修订","config.tabModules":"模块","config.tabSource":"配置文件","config.tooLarge":"配置超过后端可接受的大小。上限:{limit} 字节","config.unquotable":"无法写入:值含单引号、换行或结尾反斜线,无法无损转为单引号字符串。","conn.state.active":"进行中","conn.state.blocked":"已屏蔽","conn.state.closed":"已关闭","conn.state.dialing":"拨号中","conn.state.failed":"失败","conn.state.observed":"观测中","conn.state.routing":"路由中","conn.state.unknown":"未知","conn.tab.list":"列表","dns.log":"解析记录","dns.query":"查询","dns.tab.stats":"统计","event.flow":"{resourceId},修订:{revision}","event.gap":"{resourceId},原因:{reason},本次记录期间累计丢弃:{n}","event.gap.evicted":"移出保留记录","event.gap.overflow":"记录已达保留上限","Line truncated
|
||||
@@ -1 +0,0 @@
|
||||
const e=JSON.parse('{"act.modeReadOnlyAction":"请确认 honk 对主配置文件有写入权限,并将 native_api 设置放在独立的 include 文件。","act.modeReadOnlyReason":"honk 须允许配置写入,且控制端已设置身份验证。主配置若含 native_api 或 clash_api 的密钥字段或嵌套区块,会标记为只读。配置含当前的监听密钥时也一样。","act.readOnlyDocs":"只读的配置文件","cm.all":"全部","cm.byWord":"整词","cm.commands":"编辑命令","cm.completions":"补全建议","cm.controlCharacter":"控制字符","cm.currentMatch":"当前匹配项","cm.find":"查找","cm.findReplace":"查找和替换","cm.go":"跳转","cm.gotoLine":"跳转到行","cm.matchCase":"区分大小写","cm.next":"下一个","cm.onLine":"行号","cm.previous":"上一个","cm.redo":"重做","cm.regexp":"正则表达式","cm.replace":"替换","cm.replaceAll":"全部替换","cm.replaceOne":"替换","cm.replacedMatches":"已替换 $ 处","cm.replacedOnLine":"已替换第 $ 行的匹配项","cm.selectionDeleted":"已删除选区","cm.toggleComment":"切换注释","cm.undo":"撤销","config.acceptedDiagnostics":"生效配置(世代 {generation})保留的诊断","config.atLine":"第 {line} 行:{message}","config.backendDetail":"{text}。后端消息:{message}","config.backendText":"详细","config.backup.export":"导出配置","config.backup.exportFailed":"无法导出:{error}","config.backup.exportHelp":"导出已接受的配置。不含 listener secrets,但可能保留其他凭据;分享前请检查。","config.backup.import":"导入服务器文件","config.backup.importHelp":"重新读取启动时 -c 指定的文件树,验证后替换数据库配置并立即应用。此操作不会上传本地文件。","config.backup.importTitle":"用服务器文件替换配置?","config.backup.imported":"已导入服务器配置","config.changedOnDisk":"编辑期间磁盘上的文件已更改,应用会覆盖该更改。","config.clean":"没有诊断","config.diagnostic.downloadGeodata":"下载地理数据","config.diagnostic.geodataDocs":"如何安装地理数据","config.diagnostics":"诊断","config.draftBackend":"后端配置","config.draftConfig":"配置文件","config.draftDiagnostics":"当前草稿的诊断","config.draftGroup":"组","config.draftNode":"节点","config.draftPending":"当前草稿尚未验证。","config.draftRule":"规则","config.draftRuntime":"运行时覆盖","config.editNote":"点击内容即可编辑。","config.editNoteValidate":"点击内容即可编辑,应用前可先校验。","config.editor":"编辑器","config.errors":"{n} 个错误","config.export":"下载源文件","config.exportWarning":"导出文件保留显示的原始文本,可能包含凭据;分享前请检查内容。","config.fileDiagnostics":"当前配置文件的诊断","config.forms":"设置表单","config.generatedNote":"此文件由引擎生成,重新生成时会覆盖,只能在此查看。要更改内容,请修改生成它的配置。","config.globalChoice":"数字或 {choices}","config.globalDuplicate":"此字段重复出现。请在配置文件中移除重复项。","config.globalGroup.bandwidth":"带宽与预连接","config.globalGroup.checks":"节点检查","config.globalGroup.dialing":"拨号与 TLS","config.globalGroup.interfaces":"接口与端口","config.globalGroup.logging":"日志","config.globalGroup.storage":"数据存储","config.globalInvalid":"请输入符合类型和范围的值。","config.globalList":"以逗号分隔","config.globalNote":"更改会写入配置文件并重新加载。进程设置可能需要重启。未设置的字段使用引擎默认值。","config.globalRange":"范围:0–{max}","config.globalSave":"写入并重新加载","config.globalSaved":"已写入全局设置并重新加载配置","config.globalUnits":"单位:{units}","config.globalUnset":"未设置","config.incompleteNote":"显示的内容不完整,或 SHA-256 与后端回报的值不符,无法在此编辑。请在主机上编辑。","config.incompleteSource":"内容不完整","config.invalid":"校验发现 {n} 个错误","config.jumpToLine":"跳转到第 {line} 行","config.keepChanges":"保留修改","config.level":"级别","config.level.error":"错误","config.level.info":"提示","config.level.warning":"警告","config.levelErrors":"错误 {n}","config.levelInfo":"提示 {n}","config.levelWarnings":"警告 {n}","config.loadedAt":"加载时间:{time}","config.moduleAbsent":"未设置此区段;可加入 {file}。","config.moduleAbsentReadOnly":"未设置此区段。","config.moduleDnsRequests":"{n} 条 request 规则","config.moduleDnsResponses":"{n} 条 response 规则","config.moduleDnsUpstreams":"{n} 个上游","config.moduleGroups":"{n} 个组","config.moduleNodes":"{n} 个节点","config.moduleOpen":"打开页面","config.moduleRules":"{n} 条规则","config.moduleSettings":"{n} 项设置","config.moduleSubscriptions":"{n} 个订阅","config.newSource":"新Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
const e=JSON.parse('{"act.modeReadOnlyAction":"请确认 honk 对主配置文件有写入权限,并将 native_api 设置放在独立的 include 文件。","act.modeReadOnlyReason":"honk 须允许配置写入,且控制端已设置身份验证。主配置若含 native_api 或 clash_api 的密钥字段或嵌套区块,会标记为只读。配置含当前的监听密钥时也一样。","act.readOnlyDocs":"只读的配置文件","cm.all":"全部","cm.byWord":"整词","cm.commands":"编辑命令","cm.completions":"补全建议","cm.controlCharacter":"控制字符","cm.currentMatch":"当前匹配项","cm.find":"查找","cm.findReplace":"查找和替换","cm.go":"跳转","cm.gotoLine":"跳转到行","cm.matchCase":"区分大小写","cm.next":"下一个","cm.onLine":"行号","cm.previous":"上一个","cm.redo":"重做","cm.regexp":"正则表达式","cm.replace":"替换","cm.replaceAll":"全部替换","cm.replaceOne":"替换","cm.replacedMatches":"已替换 $ 处","cm.replacedOnLine":"已替换第 $ 行的匹配项","cm.selectionDeleted":"已删除选区","cm.toggleComment":"切换注释","cm.undo":"撤销","config.acceptedDiagnostics":"生效配置(世代 {generation})保留的诊断","config.atLine":"第 {line} 行:{message}","config.backendDetail":"{text}。后端消息:{message}","config.backendText":"详细","config.backup.export":"导出配置","config.backup.exportFailed":"无法导出:{error}","config.backup.exportHelp":"导出已接受的配置。不含 listener secrets,但可能保留其他凭据;分享前请检查。","config.backup.import":"导入服务器文件","config.backup.importHelp":"重新读取启动时 -c 指定的文件树,验证后替换数据库配置并立即应用。此操作不会上传本地文件。","config.backup.importTitle":"用服务器文件替换配置?","config.backup.imported":"已导入服务器配置","config.changedOnDisk":"编辑期间磁盘上的文件已更改,应用会覆盖该更改。","config.clean":"没有诊断","config.diagnostic.downloadGeodata":"下载地理数据","config.diagnostic.geodataDocs":"如何安装地理数据","config.diagnostics":"诊断","config.draftBackend":"后端配置","config.draftConfig":"配置文件","config.draftDiagnostics":"当前草稿的诊断","config.draftGroup":"组","config.draftNode":"节点","config.draftPending":"当前草稿尚未验证。","config.draftRule":"规则","config.draftRuntime":"运行时覆盖","config.editNote":"点击内容即可编辑。","config.editNoteValidate":"点击内容即可编辑,应用前可先校验。","config.editor":"编辑器","config.errors":"{n} 个错误","config.export":"下载源文件","config.exportWarning":"导出文件保留显示的原始文本,可能包含凭据;分享前请检查内容。","config.fileDiagnostics":"当前配置文件的诊断","config.forms":"设置表单","config.generatedNote":"此文件由引擎生成,重新生成时会覆盖,只能在此查看。要更改内容,请修改生成它的配置。","config.globalChoice":"数字或 {choices}","config.globalDuplicate":"此字段重复出现。请在配置文件中移除重复项。","config.globalGroup.bandwidth":"带宽与预连接","config.globalGroup.checks":"节点检查","config.globalGroup.dialing":"拨号与 TLS","config.globalGroup.interfaces":"接口与端口","config.globalGroup.logging":"日志","config.globalGroup.storage":"数据存储","config.globalInvalid":"请输入符合类型和范围的值。","config.globalList":"以逗号分隔","config.globalNote":"更改会写入配置文件并重新加载。进程设置可能需要重启。未设置的字段使用引擎默认值。","config.globalRange":"范围:0–{max}","config.globalSave":"写入并重新加载","config.globalSaved":"已写入全局设置并重新加载配置","config.globalUnits":"单位:{units}","config.globalUnset":"未设置","config.incompleteNote":"显示的内容不完整,或 SHA-256 与后端回报的值不符,无法在此编辑。请在主机上编辑。","config.incompleteSource":"内容不完整","config.invalid":"校验发现 {n} 个错误","config.jumpToLine":"跳转到第 {line} 行","config.keepChanges":"保留修改","config.level":"级别","config.level.error":"错误","config.level.info":"提示","config.level.warning":"警告","config.levelErrors":"错误 {n}","config.levelInfo":"提示 {n}","config.levelWarnings":"警告 {n}","config.loadedAt":"加载时间:{time}","config.moduleAbsent":"未设置此区段;可加入 {file}。","config.moduleAbsentReadOnly":"未设置此区段。","config.moduleDnsRequests":"{n} 条 request 规则","config.moduleDnsResponses":"{n} 条 response 规则","config.moduleDnsUpstreams":"{n} 个上游","config.moduleGroups":"{n} 个组","config.moduleNodes":"{n} 个节点","config.moduleOpen":"打开页面","config.moduleRules":"{n} 条规则","config.moduleSettings":"{n} 项设置","config.moduleSubscriptions":"{n} 个订阅","config.newSource":"新Line truncated
|
||||
Loaded 100 of 134 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user