🚀 Sync 2026-10-28 01:43:31

This commit is contained in:
github-actions[bot] committed 2026-10-28 01:43:31 +08:00
1 parent e646593c56
commit d42296f292
162 files changed
+356 -233

No files matched your search

@@ -1,4 +1,4 @@
Licence text shared by 19 packages (MIT)
Licence text shared by 16 packages (MIT)
========================================================================
@codemirror/autocomplete 6.20.3 (MIT) — LICENSE
Copyright (C) 2018-2021 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
@@ -18,18 +18,12 @@ Licence text shared by 19 packages (MIT)
Copyright (C) 2018 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
@lezer/highlight 1.2.5 (MIT) — LICENSE
Copyright (C) 2018 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
@lezer/lr 1.4.10 (MIT) — LICENSE
Copyright (C) 2018 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
@marijn/find-cluster-break 1.0.4 (MIT) — LICENSE
Copyright (C) 2024 by Marijn Haverbeke <marijn@haverbeke.berlin>
aria-hidden 1.2.6 (MIT) — LICENSE
Copyright (c) 2017 Anton Korzunov
clsx 2.1.1 (MIT) — license
Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
openapi-fetch 0.17.0 (MIT) — LICENSE
Copyright (c) 2023 Drew Powers
openapi-typescript-helpers 0.1.0 (MIT) — LICENSE
Copyright (c) 2023 Drew Powers
react 19.3.0 (MIT) — LICENSE
Copyright (c) Meta Platforms, Inc. and affiliates.
react-dom 19.3.0 (MIT) — LICENSE
@@ -161,18 +155,12 @@ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Licence text shared by 8 packages (Apache-2.0)
Licence text shared by 5 packages (Apache-2.0)
========================================================================
@internationalized/date 3.12.4 (Apache-2.0) — LICENSE
Copyright 2019 Adobe
@internationalized/number 3.6.8 (Apache-2.0) — LICENSE
Copyright 2019 Adobe
@internationalized/string 3.2.10 (Apache-2.0) — LICENSE
Copyright 2019 Adobe
@react-types/shared 3.36.1 (Apache-2.0) — LICENSE
Copyright 2019 Adobe
@swc/helpers 0.5.23 (Apache-2.0) — LICENSE
Copyright 2024 SWC contributors.
react-aria 3.52.1 (Apache-2.0) — LICENSE
Copyright 2019 Adobe
react-aria-components 1.21.1 (Apache-2.0) — LICENSE
@@ -655,21 +643,6 @@ The above copyright notice and this permission notice shall be included in all c
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tslib 2.8.1 (0BSD) — LICENSE.txt
========================================================================
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
vite 6.4.3 (MIT) — LICENSE.md
========================================================================
Only helper code that Vite writes into the build ships: the module preload polyfill, the preload helper for dynamic imports and the CommonJS interop helper of @rollup/plugin-commonjs, which Vite bundles.
@@ -737,8 +710,3 @@ Repository: rollup/plugins
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> THE SOFTWARE.
Packages without a licence file
========================================================================
client-only 0.0.1 (MIT)
@@ -1 +1 @@
import{j as r}from"./vendor-react-64fcanlc.js";import{I as a}from"./index-BpMcZry4.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-DkZLaQoO.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 @@
import{r as e,$ as s,j as l}from"./vendor-react-64fcanlc.js";import{cH as a,cG as n,cJ as c,cI as t,fP as i,dU as r,fQ as o,cW as d,c$ as u,d9 as p,d8 as b,c_ as h,eR as m,ct as f,fR as x,b7 as j,fS as v,fT as g,ck as C,bw as y,cj as N,dm as k,fU as P,dn as S,cl as A,u as M,b4 as D,fV as w,bp as I,cm as L,fW as q,cn as H,co as $,fn as F,fX as V,cp as R,T as E,I as O,bg as T,B as z,dQ as B}from"./index-BpMcZry4.js";import{a as K,b as Q}from"./ItemText-CcW62_Lb.js";const U=e.createContext(null),W=e.forwardRef(function(e,l){[e,l]=d(e,l,U);let m=e.href&&!e.isDisabled?"a":"span",{linkProps:f,isPressed:x}=function(e,s){let{elementType:l="a",onPress:d,onPressStart:u,onPressEnd:p,onPressChange:b,onClick:h,isDisabled:m,...f}=e,x={};"a"!==l&&(x={role:"link",tabIndex:m?void 0:0});let{focusableProps:j}=a(e,s),{pressProps:v,isPressed:g}=n({onPress:d,onPressStart:u,onPressEnd:p,onPressChange:b,onClick:h,isDisabled:m,ref:s}),C=c(f,{labelable:!0}),y=t(j,v),N=i(),k=r(e);return{isPressed:g,linkProps:t(C,k,{...y,...x,"aria-disabled":m||void 0,"aria-current":e["aria-current"],onClick:s=>{v.onClick?.(s),o(s,N,e.href,e.routerOptions)}})}}({...e,elementType:m},l),j=u[m],{hoverProps:v,isHovered:g}=p(e),{focusProps:C,isFocused:y,isFocusVisible:N}=b(),k=h({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:x,isHovered:g,isFocused:y,isFocusVisible:N}}),P=c(e,{global:!0});return delete P.onClick,s.createElement(j,{ref:l,slot:e.slot||void 0,...t(P,k,f,v,C),"data-focused":y||void 0,"data-hovered":g||void 0,"data-pressed":x||void 0,"data-focus-visible":N||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},k.children)});function _({external:e,layout:s,appearance:a,label:n,className:c,quiet:t,secondary:i,small:r,icon:o,accent:d,negative:u,size:p,...b}){const h="button"===a?m({quiet:t,secondary:i,small:r,icon:o,accent:d,negative:u}):`rp-${a}`,v=f(p);return l.jsx(W,{target:e?"_blank":void 0,rel:e?"noreferrer":void 0,"aria-label":n,"data-layout":s,"data-size":v,...b,className:a?x(c,e=>j(h,e)):c})}const G=e=>e>12,J=e=>s=>{if("all"===s)return;const l=[...s][0];null!=l&&e(String(l))};function X({item:e,children:s,onAction:a}){return l.jsxs(R,{id:e.id,className:"rp-item",textValue:e.label,onAction:a,children:[l.jsx(K,{}),l.jsx(Q,{i:e,children:s})]})}function Y({children:s,content:a,label:n,quiet:c,small:t,size:i,chevron:r=!0,isDisabled:o,appearance:d,placement:u="bottom end",count:p,onIntent:b}){const h=p?l.jsx("span",{className:"rp-count","aria-hidden":"true",children:p}):null,x=g(o),[j,v]=e.useState(!1),M=f(i),D=e.useRef(null),w=l.jsxs(C,{ref:D,className:d?"rp-select":m({quiet:c,small:t,icon:!r}),"data-size":M,"aria-label":n,"aria-describedby":x?.id,isDisabled:o,onHoverStart:b,onFocus:b,children:[s,h,r&&l.jsx(y,{className:"rp-chev"})]});return l.jsxs(N,{children:[r&&!x?w:l.jsxs(k,{delay:400,isOpen:j,onOpenChange:v,children:[l.jsx(P,{children:l.jsx("span",{className:"rp-tipwrap",tabIndex:o?0:-1,"data-passive":o?void 0:"",onPointerDown:e=>{o&&"touch"===e.pointerType&&v(e=>!e)},children:w})}),l.jsx(S,{triggerRef:D,children:x?.text??n})]}),l.jsx(A,{className:"rp-popover rp-list-popover",placement:u,children:a})]})}function Z({label:e,labelledBy:s,sections:a,headers:n=!0,focusedByCaller:c,onAction:t,searchLabel:i,actions:r=[]}){const o="function"==typeof a?a():a,d=!!i&&G(ee(o)),u=l.jsxs(L,{"aria-label":e,"aria-labelledby":s??"",className:d?"rp-menu-scroll":void 0,autoFocus:!c&&void 0,children:[o.map(e=>l.jsxs(H,{"aria-label":n&&!e.hideHeader?void 0:e.title,selectionMode:e.selectionMode??"single",selectedKeys:[`/choice-${e.value}`],onSelectionChange:e.onChange&&J(s=>e.onChange(s.slice(8))),children:[n&&!e.hideHeader&&l.jsx($,{className:"rp-sec-h",children:e.title}),e.items.map(e=>l.jsx(X,{item:{...e,id:`/choice-${e.id}`},onAction:t&&(()=>t(e.id))},e.id))]},e.title)),r.length>0&&l.jsx(F,{className:"rp-hrule"}),r.map(e=>l.jsx(le,{...e},e.label))]});return d?l.jsx(V,{label:i,children:u}):u}const ee=e=>e.reduce((e,s)=>e+s.items.length,0);function se(e,s){for(const l of e){const a=l.items.find(e=>e.id===l.value);if(a)return e.length>1&&!l.plain&&a.label!==l.title?s("ui.sectionChoice",{section:l.title,item:a.label}):a.label}return""}const le=({label:e,icon:s,onAction:a})=>l.jsxs(R,{className:"rp-item rp-subitem",textValue:e,onAction:a,shouldCloseOnSelect:!0,children:[l.jsx("span",{className:"ic",children:s}),l.jsx(E,{children:e})]}),ae=({id:e,label:s,icon:a,sections:n})=>{const c=M();return l.jsxs(R,{id:e,className:"rp-item rp-subitem",textValue:s,children:[l.jsx("span",{className:"ic",children:a}),l.jsx(E,{children:s}),l.jsxs("span",{className:"desc",children:[se(n,c),l.jsx(y,{className:"rp-chev-end"})]})]})};function ne({label:s,submenus:a,actions:n=[]}){const c="function"==typeof a?a():a,t=M(),i=D(w),[r,o]="rtl"===I().direction?["ArrowLeft","ArrowRight"]:["ArrowRight","ArrowLeft"],[{open:d,left:u},p]=e.useState({open:null,left:null}),b=e.useRef(null),hLine truncated
import{r as e,$ as s,j as l}from"./vendor-react-64fcanlc.js";import{cG as a,cF as n,cI as c,cH as t,e$ as i,dY as r,f0 as o,cV as d,c_ as u,d8 as p,d7 as b,cZ as h,eU as m,cs as f,f1 as x,b4 as j,f2 as v,f3 as g,cj as C,bv as y,ci as N,dq as k,f4 as P,dr as S,ck as A,u as M,b1 as D,f5 as q,bp as I,cl as L,f6 as w,cm as H,cn as $,f7 as F,f8 as V,co as E,T as O,I as z,be as R,B as T,dU as B}from"./index-DkZLaQoO.js";import{a as K,b as U}from"./ItemText-M_HsyHL5.js";const _=e.createContext(null),G=e.forwardRef(function(e,l){[e,l]=d(e,l,_);let m=e.href&&!e.isDisabled?"a":"span",{linkProps:f,isPressed:x}=function(e,s){let{elementType:l="a",onPress:d,onPressStart:u,onPressEnd:p,onPressChange:b,onClick:h,isDisabled:m,...f}=e,x={};"a"!==l&&(x={role:"link",tabIndex:m?void 0:0});let{focusableProps:j}=a(e,s),{pressProps:v,isPressed:g}=n({onPress:d,onPressStart:u,onPressEnd:p,onPressChange:b,onClick:h,isDisabled:m,ref:s}),C=c(f,{labelable:!0}),y=t(j,v),N=i(),k=r(e);return{isPressed:g,linkProps:t(C,k,{...y,...x,"aria-disabled":m||void 0,"aria-current":e["aria-current"],onClick:s=>{v.onClick?.(s),o(s,N,e.href,e.routerOptions)}})}}({...e,elementType:m},l),j=u[m],{hoverProps:v,isHovered:g}=p(e),{focusProps:C,isFocused:y,isFocusVisible:N}=b(),k=h({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:x,isHovered:g,isFocused:y,isFocusVisible:N}}),P=c(e,{global:!0});return delete P.onClick,s.createElement(j,{ref:l,slot:e.slot||void 0,...t(P,k,f,v,C),"data-focused":y||void 0,"data-hovered":g||void 0,"data-pressed":x||void 0,"data-focus-visible":N||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},k.children)});function Y({external:e,layout:s,appearance:a,label:n,className:c,quiet:t,secondary:i,small:r,icon:o,accent:d,negative:u,size:p,...b}){const h="button"===a?m({quiet:t,secondary:i,small:r,icon:o,accent:d,negative:u}):`rp-${a}`,v=f(p);return l.jsx(G,{target:e?"_blank":void 0,rel:e?"noreferrer":void 0,"aria-label":n,"data-layout":s,"data-size":v,...b,className:a?x(c,e=>j(h,e)):c})}const Z=e=>e>12,J=e=>s=>{if("all"===s)return;const l=[...s][0];null!=l&&e(String(l))};function Q({item:e,children:s,onAction:a}){return l.jsxs(E,{id:e.id,className:"rp-item",textValue:e.label,onAction:a,children:[l.jsx(K,{}),l.jsx(U,{i:e,children:s})]})}function W({children:s,content:a,label:n,quiet:c,small:t,size:i,chevron:r=!0,isDisabled:o,appearance:d,placement:u="bottom end",count:p,onIntent:b}){const h=p?l.jsx("span",{className:"rp-count","aria-hidden":"true",children:p}):null,x=g(o),[j,v]=e.useState(!1),M=f(i),D=e.useRef(null),q=l.jsxs(C,{ref:D,className:d?"rp-select":m({quiet:c,small:t,icon:!r}),"data-size":M,"aria-label":n,"aria-describedby":x?.id,isDisabled:o,onHoverStart:b,onFocus:b,children:[s,h,r&&l.jsx(y,{className:"rp-chev"})]});return l.jsxs(N,{children:[r&&!x?q:l.jsxs(k,{delay:400,isOpen:j,onOpenChange:v,children:[l.jsx(P,{children:l.jsx("span",{className:"rp-tipwrap",tabIndex:o?0:-1,"data-passive":o?void 0:"",onPointerDown:e=>{o&&"touch"===e.pointerType&&v(e=>!e)},children:q})}),l.jsx(S,{triggerRef:D,children:x?.text??n})]}),l.jsx(A,{className:"rp-popover rp-list-popover",placement:u,children:a})]})}function X({label:e,labelledBy:s,sections:a,headers:n=!0,focusedByCaller:c,onAction:t,searchLabel:i,actions:r=[]}){const o="function"==typeof a?a():a,d=!!i&&Z(ee(o)),u=l.jsxs(L,{"aria-label":e,"aria-labelledby":s??"",className:d?"rp-menu-scroll":void 0,autoFocus:!c&&void 0,children:[o.map(e=>l.jsxs(H,{"aria-label":n&&!e.hideHeader?void 0:e.title,selectionMode:e.selectionMode??"single",selectedKeys:[`/choice-${e.value}`],onSelectionChange:e.onChange&&J(s=>e.onChange(s.slice(8))),children:[n&&!e.hideHeader&&l.jsx($,{className:"rp-sec-h",children:e.title}),e.items.map(e=>l.jsx(Q,{item:{...e,id:`/choice-${e.id}`},onAction:t&&(()=>t(e.id))},e.id))]},e.title)),r.length>0&&l.jsx(F,{className:"rp-hrule"}),r.map(e=>l.jsx(le,{...e},e.label))]});return d?l.jsx(V,{label:i,children:u}):u}const ee=e=>e.reduce((e,s)=>e+s.items.length,0);function se(e,s){for(const l of e){const a=l.items.find(e=>e.id===l.value);if(a)return e.length>1&&!l.plain&&a.label!==l.title?s("ui.sectionChoice",{section:l.title,item:a.label}):a.label}return""}const le=({label:e,icon:s,onAction:a})=>l.jsxs(E,{className:"rp-item rp-subitem",textValue:e,onAction:a,shouldCloseOnSelect:!0,children:[l.jsx("span",{className:"ic",children:s}),l.jsx(O,{children:e})]}),ae=({id:e,label:s,icon:a,sections:n})=>{const c=M();return l.jsxs(E,{id:e,className:"rp-item rp-subitem",textValue:s,children:[l.jsx("span",{className:"ic",children:a}),l.jsx(O,{children:s}),l.jsxs("span",{className:"desc",children:[se(n,c),l.jsx(y,{className:"rp-chev-end"})]})]})};function ne({label:s,submenus:a,actions:n=[]}){const c="function"==typeof a?a():a,t=M(),i=D(q),[r,o]="rtl"===I().direction?["ArrowLeft","ArrowRight"]:["ArrowRight","ArrowLeft"],[{open:d,left:u},p]=e.useState({open:null,left:null}),b=e.useRef(null),hLine truncated
@@ -1 +0,0 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{u as a,f as s,fY as n,dv as o,fZ as l}from"./index-BpMcZry4.js";import{a as i,aS as r,aT as c,aU as u,aV as h,aW as m,aX as p,aY as d,aZ as x}from"./activity-SP7tP5Sc.js";import{G as f,C as M}from"./AreaCurve-DQSHOSpG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-9cDj613b.js";import"./AppearanceControls-_LKvZPhT.js";import"./ItemText-CcW62_Lb.js";import"./logs-CSLBu0fr.js";import"./Select-DfNHOkHm.js";import"./array-C0VuvQyb.js";const g=[30,60,120,300,600,900,1800,3600,7200,21600,43200,86400].map(e=>1e3*e);function j(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 y({label:y,series:v,timestamps:b,fmt:w,locale:k,height:C=150,baseline:D="zero",window:S,fill:N,bare:T=!1,inset:$=2}){const A=a(),L=i(),B=e.useId(),[E,F]=s(Math.round,120),{tip:P,showAt:I,hide:K}=r(),[W,z]=e.useState(null),O=W&&W.index<b.length?W.index:null,R=S?S.until-S.since:b.length?b[b.length-1]-b[0]:0,Y=S?.since,Z=S?.until,G=e.useMemo(()=>void 0!==Y&&void 0!==Z?function(e,t){const a=t-e,s=g.find(e=>a/e<=6)??g[g.length-1],n=s>=864e5?6e4*new Date(t).getTimezoneOffset():0,o=[];for(let l=Math.ceil((e-n)/s)*s+n;l<=t;l+=s)l-e>=.04*a&&t-l>=.04*a&&o.push(l);return{ticks:o,step:s}}(Y,Z):void 0,[Y,Z]),H=G?G.step<6e4:R<18e4,U=G?G.step>=864e5:R>1296e5,V=e.useMemo(()=>U?n(k):o(k,H),[k,H,U]),{yDomain:X,yTicks:_}=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"===D&&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"===D?[t,(t+a)/2,a]:[a/2,a]}},[v,D]),q=e.useMemo(()=>{const e=b.length-1;return G?G.ticks:[...new Set((H?[0,Math.round(e/2),e]:[0,Math.round(e/3),Math.round(2*e/3),e]).map(e=>b[e]))]},[G,H,b]),J=e.useMemo(()=>void 0!==Y&&void 0!==Z?[Y,Z]:[Math.min(...b),Math.max(...b)],[Y,Z,b]),Q=F?.width??0,ee=F?.height??C,te=T?$:20,ae=T?2:8,se=ee-(T?2:30),ne=Q-(T?$:64),oe=e.useMemo(()=>[Math.min(J[0],...b),Math.max(J[1],...b)],[J,b]),le=e.useCallback(e=>c(e,oe,[te,ne]),[oe,te,ne]),ie=e.useCallback(e=>c(e,X,[se,ae]),[X,se,ae]),re=e.useMemo(()=>b.map(le),[b,le]),ce=e.useMemo(()=>v.map(e=>b.map((t,a)=>null==e.values[a]?null:{x:re[a],y:ie(e.values[a])})),[v,b,re,ie]),ue={x:te,y:ae,width:ne-te,height:se-ae},he=(e,t)=>z({index:e,y:t}),me=()=>{z(null),K()};e.useLayoutEffect(()=>{null!==O&&v.some(e=>null!=e.values[O])?I({x:re[O],y:W?.y??(ae+se)/2,width:Q,bounds:T&&E.current?u(E.current):ue,label:l(k).format(b[O]),lines:v.filter(e=>null!=e.values[O]).sort((e,t)=>e.label<t.label?-1:e.label>t.label?1:0).map(e=>A("ui.valuePair",{label:e.label,value:w(e.values[O])}))}):K()});const pe=h(b.length,he,me),de=e.useMemo(()=>q.map(e=>V.format(e)),[q,V]),xe=e.useMemo(()=>_.map(w),[_,w]),fe=j(de,k),Me=j(xe,k),ge=G?m(q.map(le),fe.map(e=>e.width),0,Q,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 l=1/0;for(let i=n;i>=0;i--){const[t,r]=s(i);r+a>l||i>0&&i<n&&t<s(0)[1]+a||(o.unshift({index:i,position:e[i]}),l=t)}return o}(q.map(le),fe.map(e=>e.width),8),je=m(_.map(ie),Me.map(e=>e.height),0,ee,5,!1),ye=[...new Set([...(T?_:je.map(e=>_[e.index])).map(ie),ae,se])];return t.jsx("div",{ref:E,style:{height:C,width:"100%",flex:N?"1 0 auto":void 0,position:"relative"},onPointerLeave:pe.onPointerLeave,children:b.length>0&&F&&t.jsxs(t.Fragment,{children:[t.jsx(p,{tip:P}),t.jsxs("svg",{className:"rp-activity-surface",width:Q,height:ee,viewBox:`0 0 ${Q} ${ee}`,style:{display:"block"},role:"application","aria-label":y,tabIndex:0,onFocus:pe.onFocus,onBlur:pe.onBlur,onKeyDown:pe.onKeyDown,onPointerMove:e=>{const{x:t,y:a}=d(e,e.currentTarget,{width:Q,height:ee});if(t<te||t>ne||a<ae||a>se)return void me();const s=x(re,t);he(s,a)},children:[t.jsx("g",{className:"rp-area-grid",children:ye.map(e=>t.jsx("line",{x1:te,x2:ne,y1:e,y2:e,stroke:L["hl-med"],strokeDasharray:"2 4",fill:"none"},e))}),t.jsx("defs",{children:v.map((e,a)=>t.jsx(f,{id:B+a,color:e.color},e.label))}),v.map((e,a)=>t.jsx(M,{points:ce[a],baseline:ie(Math.max(0,X[0])),color:e.color,id:B+a,strokeWidth:2},e.label)),null!==O&&t.jsx("path",{d:`M${re[O]},${ae}L${re[O]},${se}`,stroke:L.subtle,strokeDasharray:"3 3",fill:"none",pointerEvents:"none"}),!T&&t.jsxs(t.Fragment,{children:[t.jsx("g",{children:ge.map(({index:e,position:a})=>t.jsx("text",{x:Line truncated
@@ -0,0 +1 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{u as a,f as s,ge as n,dy as o,gf as i}from"./index-DkZLaQoO.js";import{a as l,aV as r,aW as c,aX as h,aY as m,aZ as u,a_ as p,a$ as d,b0 as x,b1 as f}from"./activity-DwYuxZaT.js";import{G as M,C as g}from"./AreaCurve-DQSHOSpG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-zKvLj1EG.js";import"./AppearanceControls-5nB_BQSG.js";import"./ItemText-M_HsyHL5.js";import"./logs-DniNK6NG.js";import"./Select-B1IhE7cv.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 v({label:v,series:b,timestamps:w,fmt:k,locale:C,height:D=150,baseline:$="zero",window:N,fill:S,bare:A=!1,inset:L=2}){const T=a(),B=l(),E=e.useId(),[F,I]=s(Math.round,120),{tip:P,showAt:R,hide:W}=r(),[z,K]=e.useState(null),O=z&&z.index<w.length?z.index:null,_=N?N.until-N.since:w.length?w[w.length-1]-w[0]:0,G=N?.since,H=N?.until,V=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]),X=V?V.step<6e4:_<18e4,Y=V?V.step>=864e5:_>1296e5,Z=e.useMemo(()=>Y?n(C):o(C,X),[C,X,Y]),{yDomain:q,yTicks:J}=e.useMemo(()=>{const e=b.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]}},[b,$]),Q=e.useMemo(()=>{const e=w.length-1;return V?V.ticks:[...new Set((X?[0,Math.round(e/2),e]:[0,Math.round(e/3),Math.round(2*e/3),e]).map(e=>w[e]))]},[V,X,w]),U=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?L:20,se=A?2:8,ne=te-(A?2:30),oe=ee-(A?L:64),ie=e.useMemo(()=>[Math.min(U[0],...w),Math.max(U[1],...w)],[U,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(()=>b.map(e=>w.map((t,a)=>null==e.values[a]?null:{x:ce[a],y:re(e.values[a])})),[b,w,ce,re]),me={x:ae,y:se,width:oe-ae,height:ne-se},ue=(e,t)=>K({index:e,y:t}),pe=()=>{K(null),W()};e.useLayoutEffect(()=>{null!==O&&b.some(e=>null!=e.values[O])?R({x:ce[O],y:z?.y??(se+ne)/2,width:ee,bounds:A&&F.current?m(F.current):me,label:i(C).format(w[O]),lines:h(b,O,k,T)}):W()});const de=u(w.length,ue,pe),xe=e.useMemo(()=>Q.map(e=>Z.format(e)),[Q,Z]),fe=e.useMemo(()=>J.map(k),[J,k]),Me=y(xe,C),ge=y(fe,C),je=V?p(Q.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}(Q.map(le),Me.map(e=>e.width),8),ye=p(J.map(re),ge.map(e=>e.height),0,te,5,!1),ve=[...new Set([...(A?J:ye.map(e=>J[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":v,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:ve.map(e=>t.jsx("line",{x1:ae,x2:oe,y1:e,y2:e,stroke:B["hl-med"],strokeDasharray:"2 4",fill:"none"},e))}),t.jsx("defs",{children:b.map((e,a)=>t.jsx(M,{id:E+a,color:e.color},e.label))}),b.map((e,a)=>t.jsx(g,{points:he[a],baseline:re(Math.max(0,q[0])),color:e.color,id:E+a,strokeWidth:2},e.label)),null!==O&&t.jsx("path",{d:`M${ce[O]},${se}L${ce[O]},${ne}`,stroke:B.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:B.subtle,textAnchor:"middle",children:t.jsx("tspan",{x:a,dy:"0.71em",children:xe[Line truncated
@@ -0,0 +1 @@
import{j as e}from"./vendor-react-64fcanlc.js";import{a,$ as s}from"./GridList-CC4w_Iq3.js";import{T as i,ch as r,u as t,S as l,af as c}from"./index-DkZLaQoO.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}):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 +0,0 @@
import{eu as e,f_ as t,cI as i,ff as a,cV as s,f$ as l,g0 as n,eh as r,ei as o,ek as d,eK as c,cR as u,et as m,ej as f,cQ as v,cW as p,cX as g,cY as b,d5 as h,d6 as R,d7 as I,d8 as M,d9 as P,c_ as y,cJ as S,c$ as C,aD as V}from"./index-BpMcZry4.js";import{r as $,$ as x}from"./vendor-react-64fcanlc.js";function D(t,i){const a=$.useRef(!0),s=$.useRef(null);let l=e(t);$.useEffect(()=>(a.current=!0,()=>{a.current=!1}),[]),$.useEffect(()=>{let e=s.current;a.current?a.current=!1:e&&!i.some((t,i)=>!Object.is(t,e[i]))||l(),s.current=i},i)}function E(e,a,s){let{labelProps:l,inputProps:n,descriptionProps:r,errorMessageProps:o,isSelected:d,isPressed:c,isDisabled:u,isReadOnly:m,isInvalid:f,validationErrors:v,validationDetails:p}=t(e,a,s),{isIndeterminate:g}=e;return $.useEffect(()=>{s.current&&(s.current.indeterminate=!!g)}),{labelProps:i(l,$.useMemo(()=>({onMouseDown:e=>e.preventDefault()}),[])),inputProps:n,descriptionProps:r,errorMessageProps:o,isSelected:d,isPressed:c,isDisabled:u,isReadOnly:m,isInvalid:f,validationErrors:v,validationDetails:p}}const k=new WeakMap;var B;function O(e,t){let{getRowText:i=e=>t.collection.getTextValue?.(e)??t.collection.getItem(e)?.textValue}=e,a=o((s=B)&&s.__esModule?s.default:s,"@react-aria/grid");var s;let l=t.selectionManager.rawSelection,n=$.useRef(l),r=$.useCallback(()=>{if(!t.selectionManager.isFocused||l===n.current)return void(n.current=l);let e=F(l,n.current),s=F(n.current,l),r="replace"===t.selectionManager.selectionBehavior,o=[];if(1===t.selectionManager.selectedKeys.size&&r){let e=t.selectionManager.selectedKeys.keys().next().value;if(null!=e&&t.collection.getItem(e)){let t=i(e);t&&o.push(a.format("selectedItem",{item:t}))}}else if(1===e.size&&0===s.size){let t=e.keys().next().value;if(null!=t){let e=i(t);e&&o.push(a.format("selectedItem",{item:e}))}}else if(1===s.size&&0===e.size){let e=s.keys().next().value;if(null!=e&&t.collection.getItem(e)){let t=i(e);t&&o.push(a.format("deselectedItem",{item:t}))}}"multiple"===t.selectionManager.selectionMode&&(0===o.length||"all"===l||l.size>1||"all"===n.current||n.current?.size>1)&&o.push("all"===l?a.format("selectedAll"):a.format("selectedCount",{count:l.size})),o.length>0&&d(o.join(" ")),n.current=l},[l,t.selectionManager.selectedKeys,t.selectionManager.isFocused,t.selectionManager.selectionBehavior,t.selectionManager.selectionMode,t.collection,i,a]);D(()=>{if(!t.selectionManager.isFocused){let e=requestAnimationFrame(r);return()=>cancelAnimationFrame(e)}r()},[l,t.selectionManager.isFocused])}function F(e,t){let i=new Set;if("all"===e||"all"===t)return i;for(let a of e.keys())t.has(a)||i.add(a);return i}function w(e,t){let i=t?.isDisabled,[a,s]=$.useState(!1);return c(()=>{if(e?.current&&!i){let t=()=>{if(e.current){let t=u(e.current,{tabbable:!0});s(!!t.nextNode())}};t();let i=new MutationObserver(t);return i.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{i.disconnect()}}}),!i&&a}function T(e){let t=o((i=B)&&i.__esModule?i.default:i,"@react-aria/grid");var i;let a=m(),s=("pointer"===a||"virtual"===a||null==a)&&"undefined"!=typeof window&&"ontouchstart"in window,l=$.useMemo(()=>{let i,a=e.selectionManager.selectionMode,l=e.selectionManager.selectionBehavior;return s&&(i=t.format("longPressToSelect")),"replace"===l&&"none"!==a&&e.hasItemActions?i:void 0},[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,s]);return f(l)}function A(e,t){let{key:i}=e,a=t.selectionManager,s=v(),l=!t.selectionManager.canSelectItem(i),n=t.selectionManager.isSelected(i);var r;return{checkboxProps:{id:s,"aria-label":o((r=B)&&r.__esModule?r.default:r,"@react-aria/grid").format("select"),isSelected:n,isDisabled:l,onChange:()=>a.toggleSelection(i)}}}B={"ar-AE":r,"bg-BG":r,"cs-CZ":r,"da-DK":r,"de-DE":r,"el-GR":r,"en-US":{deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."},"es-ES":r,"et-EE":r,"fi-FI":r,"fr-FR":r,"he-IL":r,"hr-HR":r,"hu-HU":r,"it-IT":r,"ja-JP":r,"ko-KR":r,"lt-LT":r,"lv-LV":r,"nb-NO":r,"nl-NL":r,"pl-PL":r,"pt-BR":r,"pt-PT":r,"ro-RO":r,"ru-RU":r,"sk-SK":r,"sl-SI":r,"sr-SP":r,"sv-SE":r,"tr-TR":r,"uk-UA":r,"zh-CN":{deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`},"zh-TW":{deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>Line truncated
@@ -1 +0,0 @@
import{r as e,j as r}from"./vendor-react-64fcanlc.js";import{bN as t,gp as o,bM as n,fh as a,bq as c,u as s,dk as i,B as l,cm as d,cp as p}from"./index-BpMcZry4.js";import{S as m,a as u,E as f,C as g,b,l as v,c as h,h as x,d as y,r as k,e as w,f as C,g as j,i as R,j as A,s as E,k as L,t as M,m as N,n as F,o as O,p as S,q as $,u as q,v as B,w as D,x as I,y as T,z as H,D as K,R as V,A as z,B as G,F as U,G as W,H as P,I as J,J as _,K as Q,L as X}from"./vendor-editor-BRV-W12m.js";import{d as Y,s as Z}from"./daeTokens-BVtuNnWZ.js";import{s as ee}from"./nodes-9cDj613b.js";import{M as re}from"./AppearanceControls-_LKvZPhT.js";import{A as te,n as oe}from"./logs-CSLBu0fr.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./index-DUM-iwa2.js";import"./ItemText-CcW62_Lb.js";import"./Select-DfNHOkHm.js";const ne=m.define({name:"dae",languageData:{commentTokens:{line:"#"},closeBrackets:{brackets:["(","{","'",'"']}},startState:Z,token:Y}),ae=["global","subscription","node","group","dns","routing"].map(e=>({label:e,type:"keyword"})),ce=n.map(e=>({label:e,type:"property",apply:e+": "})),se=["domain","dip","sip","dport","sport","l4proto","ipversion","pname","mac","dscp","qname","qtype","upstream"].map(e=>({label:e,type:"function",apply:e+"("})),ie=["geosite","geoip","suffix","full","keyword","regex"].map(e=>({label:e,type:"constant",apply:e+":"})),le=o.map(e=>({label:e,type:"constant"})),de=t.map(e=>({label:e,type:"keyword"})),pe=[{label:"fallback",type:"keyword",apply:"fallback: "},{label:"include",type:"keyword",apply:"include "}];function me(e){return u({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}=ee(c),l=i.at(-1);if(l?.to===e.pos&&("quoted"===l.kind||"comment"===l.kind))return null;const d=s.find(r=>r.close===e.pos)?.name;let p;if(a)p=[...r().map(e=>({label:e.name,apply:e.written,type:"variable"})),...de];else if(/\b(domain|dip|sip|qname)\(\s*[\w.-]*$/.test(n))p=ie;else if(void 0===d)p=ae.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"===d||"dns"===d)p=[...se,...pe];else if("global"===d)p=ce;else{if("group"!==d)return null;p=/\bpolicy\s*:\s*[\w.-]*$/.test(n)?le:[...le.map(e=>({...e,apply:"policy: "+e.label})),{label:"filter",type:"property",apply:"filter: "}]}return{from:t.from,options:p,validFor:/^[\w.-]*$/}}(r,e)]})}function ue(e){let r=!1;const t=r=>(r.state.readOnly&&e(),!1);return f.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 fe=[["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"]],ge=e=>b.phrases.of(Object.fromEntries(fe.map(([r,t])=>[r,e(t)]))),be=f.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-mix(in srgb, var(--rp-accent) 20%, transparent)",outline:"none"},".cm-selectionMatch":{backgroundColor:"color-mix(in srgb, var(--rp-notice) 25%, transparent)"},".cm-gutter-lint":{width:"12px"},".cm-gutter-lint .cm-gutterElement":{padding:"0"},".cm-lint-marker":{width:"8px",height:"8px",mLine truncated
@@ -0,0 +1 @@
import{r as e,j as r}from"./vendor-react-64fcanlc.js";import{bM as t,gp as o,bL as n,fj as a,bq as c,u as s,dn as i,B as l,cl as d,co as p}from"./index-DkZLaQoO.js";import{S as m,a as u,E as f,C as g,b,l as v,c as h,h as x,d as y,r as k,e as w,f as j,g as C,i as R,j as A,s as L,k as E,t as M,m as N,n as F,o as O,p as S,q as $,u as q,v as B,w as D,x as T,y as I,z as H,D as V,R as K,A as z,B as G,F as U,G as W,H as P,I as J,J as _,K as Q,L as X}from"./vendor-editor-BRV-W12m.js";import{d as Y,s as Z}from"./daeTokens-BVtuNnWZ.js";import{s as ee}from"./nodes-zKvLj1EG.js";import{M as re}from"./AppearanceControls-5nB_BQSG.js";import{A as te,o as oe}from"./logs-DniNK6NG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./index-DUM-iwa2.js";import"./ItemText-M_HsyHL5.js";import"./Select-B1IhE7cv.js";const ne=m.define({name:"dae",languageData:{commentTokens:{line:"#"},closeBrackets:{brackets:["(","{","'",'"']}},startState:Z,token:Y}),ae=["global","subscription","node","group","dns","routing"].map(e=>({label:e,type:"keyword"})),ce=n.map(e=>({label:e,type:"property",apply:e+": "})),se=["domain","dip","sip","dport","sport","l4proto","ipversion","pname","mac","dscp","qname","qtype","upstream"].map(e=>({label:e,type:"function",apply:e+"("})),ie=["geosite","geoip","suffix","full","keyword","regex"].map(e=>({label:e,type:"constant",apply:e+":"})),le=o.map(e=>({label:e,type:"constant"})),de=t.map(e=>({label:e,type:"keyword"})),pe=["asis","reject"].map(e=>({label:e,type:"keyword"})),me=["accept","reject"].map(e=>({label:e,type:"keyword"})),ue=[{label:"fallback",type:"keyword",apply:"fallback: "},{label:"include",type:"keyword",apply:"include "}],fe=e=>e.map(e=>({label:e.name,apply:e.written,type:"variable"}));function ge(e){return u({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}=ee(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?[...fe(e),...de]:[...fe(t),...d.includes("response")?me:pe]}else if(/\b(domain|dip|sip|qname)\(\s*[\w.-]*$/.test(n))u=ie;else if(void 0===m)u=ae.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=[...se,...ue];else if("global"===m)u=ce;else{if("group"!==m)return null;u=/\bpolicy\s*:\s*[\w.-]*$/.test(n)?le:[...le.map(e=>({...e,apply:"policy: "+e.label})),{label:"filter",type:"property",apply:"filter: "}]}return{from:t.from,options:u,validFor:/^[\w.-]*$/}}(r,e)]})}function be(e){let r=!1;const t=r=>(r.state.readOnly&&e(),!1);return f.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 ve=[["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"]],he=e=>b.phrases.of(Object.fromEntries(ve.map(([r,t])=>[r,e(t)]))),xe=f.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-mix(in srgb, varLine truncated
@@ -1 +0,0 @@
import{r as s,j as e}from"./vendor-react-64fcanlc.js";import{$ as a}from"./Checkbox-BiXT27lL.js";import{C as r}from"./ItemText-CcW62_Lb.js";import{df as i,I as l,cw as n,ch as c,B as d}from"./index-BpMcZry4.js";function o({label:l,description:n,isSelected:c,onChange:d,isDisabled:o}){const t=s.useId(),h=s.useId(),x=i({isDisabled:o});return e.jsxs(a,{className:"rp-radio rp-checkbox",isSelected:c,onChange:d,isDisabled:x.isDisabled,"aria-labelledby":t,"aria-describedby":n?h:void 0,children:[e.jsx("span",{className:"rp-checkbox-mark",children:e.jsx(r,{})}),e.jsxs("span",{className:"rp-radio-text",children:[e.jsx("span",{id:t,children:l}),n&&e.jsx("span",{id:h,className:"rp-note",children:n})]})]})}function t(s){return e.jsx(l,{...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 h({children:s}){return e.jsx("div",{className:"rp-toolbar",children:s})}function x({children:s,negate:a,onNegate:r,negateLabel:i,removeLabel:l,onRemove:o,isDisabled:t,removeDisabled:x}){return e.jsxs(n,{children:[s,e.jsxs(h,{children:[e.jsx(c,{isDisabled:t,isSelected:a,onChange:r,children:i}),e.jsx("span",{className:"rp-grow"}),e.jsx(d,{small:!0,isDisabled:t||x,onPress:o,children:l})]})]})}export{o as C,t as E,x as a,h as b};
@@ -0,0 +1 @@
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{$ as a}from"./useGridSelectionCheckbox-BJpzXB14.js";import{C as r}from"./ItemText-M_HsyHL5.js";import{de as i,I as l,cv as n,cg as c,B as d}from"./index-DkZLaQoO.js";function o({label:l,description:n,isSelected:c,onChange:d,isDisabled:o}){const t=e.useId(),x=e.useId(),b=i({isDisabled:o});return s.jsxs(a,{className:"rp-radio rp-checkbox",isSelected:c,onChange:d,isDisabled:b.isDisabled,"aria-labelledby":t,"aria-describedby":n?x:void 0,children:[s.jsx("span",{className:"rp-checkbox-mark",children:s.jsx(r,{})}),s.jsxs("span",{className:"rp-radio-text",children:[s.jsx("span",{id:t,children:l}),n&&s.jsx("span",{id:x,className:"rp-note",children:n})]})]})}function t(e){return s.jsx(l,{...e,children:s.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 x({children:e}){return s.jsx("div",{className:"rp-toolbar",children:e})}function b({children:e,negate:a,onNegate:r,negateLabel:i,removeLabel:l,onRemove:o,isDisabled:t,removeDisabled:b}){return s.jsxs(n,{children:[e,s.jsxs(x,{children:[s.jsx(c,{isDisabled:t,isSelected:a,onChange:r,children:i}),s.jsx("span",{className:"rp-grow"}),s.jsx(d,{small:!0,isDisabled:t||b,onPress:o,children:l})]})]})}export{o as C,t as E,b as a,x as b};
@@ -1,2 +0,0 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CodeEditor-BRSeqxyF.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-BpMcZry4.js","./index--6K0oddI.css","./vendor-editor-BRV-W12m.js","./index-DUM-iwa2.js","./daeTokens-BVtuNnWZ.js","./nodes-9cDj613b.js","./AppearanceControls-_LKvZPhT.js","./ItemText-CcW62_Lb.js","./logs-CSLBu0fr.js","./Select-DfNHOkHm.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,al as a,l as r,q as t,r as o,x as l,c4 as c,w as d,c6 as u,Y as g,A as f,aK as p,c2 as m,cC as h,dp as b,dq as x,a1 as v,a0 as j,a9 as y,bO as w,z as k,cB as N,dr as S,t as D,aM as C,aV as T,B as O,aA as P,E as _,bk as R,ax as E,af as M,b5 as A,cw as F,aL as L,C as I,m as H,ds as $,bF as q,bG as K,dk as V,a as W,b as U,v as B,aN as z,cy as G,p as J,aD as Q,aG as X,de as Y,_ as Z,av as ee,T as ne}from"./index-BpMcZry4.js";import{a as ie,u as se,w as ae,e as re,c as te,H as oe,I as le,K as ce,D as de,L as ue,J as ge,S as fe}from"./logs-CSLBu0fr.js";import{T as pe}from"./Tabs-DHvnlDOn.js";import{T as me}from"./Toolbar-CG16bAGF.js";import{aH as he,a2 as be,aa as xe,aI as ve,y as je,aJ as ye,a8 as we,D as ke}from"./activity-SP7tP5Sc.js";import{s as Ne,N as Se,O as De,r as Ce,ag as Te,ah as Oe,ai as Pe,aj as _e,K as Re,ak as Ee}from"./nodes-9cDj613b.js";import{s as Me,c as Ae,r as Fe,a as Le,b as Ie,d as He,e as $e,f as qe,g as Ke,h as Ve,v as We,i as Ue,j as Be,k as ze,l as Ge,m as Je,n as Qe,o as Xe,w as Ye}from"./nav-DSMpjA0M.js";import{u as Ze,c as en}from"./flows-4vf3kCNL.js";import{d as nn}from"./files-Dt8K7QfP.js";import{D as sn}from"./Table-B9wBdFJO.js";import{T as an}from"./TimeCell-DFg9wUP4.js";import{L as rn}from"./AppearanceControls-_LKvZPhT.js";import{N as tn,t as on}from"./NumberField-DIugwoyR.js";import{A as ln}from"./AddCircle-net7vCQK.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-DfNHOkHm.js";import"./ItemText-CcW62_Lb.js";import"./Checkbox-BiXT27lL.js";import"./Virtualizer-D4o4sanH.js";function cn(e,n,s,a="main"){if(!s.daeText)return[];const{blocks:r,tokens:t}=Ne(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=Se(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=Me[s.name];return"subscription"===s.name?"main"!==a?[]:De(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 dn=()=>{};const un=new Map;function gn({go:n,query:i}){const m=s(),h=a[r()],b=t(),x=b.data?.resources,v=se(o(x,"config",{whileLoading:!0})),j=function(n){const i=s(),a=ie(n),r=e.useMemo(()=>{const e=xe(a.error);return e?e.diagnostics??[]:null},[a.error]);return e.useEffect(()=>{if(a.error)if(r){const e=ve(r);f("negative",e?i("config.writeRestart",{n:e}):i("ui.writeInvalid",{n:r.filter(e=>"error"===e.level).length}))}else p(a.error,i,i("ui.writeFailed"))},[a.error,r,i]),{...a,diagnostics:r}}(v.refetch),y=e.useMemo(()=>new URLSearchParams(i),[i]),w=e.useMemo(()=>v.data?.sources??[],[v.data]),k=w.find(e=>"main"===e.kind)??null,N=w.find(e=>e.id===y.get("source"))??w[0]??null,S=N?.id??null,D=(e,s)=>n("config",d(i,{tab:"source",source:e,line:null===s?null:String(s)})),C=Number(y.get("line"))||null,T=v.data?.diagnostics??[],O=e.useMemo(()=>{const e=v.data?.diagnostics??[];return{error:e.filter(e=>"error"===e.level).length,warning:e.filter(e=>"warning"===e.level).length}},[v.data]),P=o(x,"config_validate",{whileLoading:!1})&&(x?.config_validate.modes??[]).includes("full"),_=!0===x?.config.writable,R=ae(w),E=l().data,M=e.useMemo(()=>re(E),[E]),A=Ae(!!M.globalSettings,b.data),F=N?Fe(N,_,R(N),M,m):null,L=!!N&&!F,[I,H]=e.useState(un),[$,q]=e.useState(null),K=$??O.error,V=y.has("source")||void 0===k?.content?"source":"modules",W=c("validate"===y.get("tab")?d(i,{tab:"source"}):i,A.map(e=>e.id),V),U=N?{source:N,sources:w,open:D,diagnostics:T,canValidate:P&&("main"===N.kind||"include"===N.kind),canWrite:L,readOnly:F,isComplete:R,editor:j,focusLine:C,generation:v.data?.generation_id??"",focusDiagnostics:"validate"===y.get("tab"),diagnosticsChoice:I.get(N.id)??null,chooseDiagnostics:e=>H(n=>new Map(n).set(N.id,e)),reportErrors:q}:null,B=!0===x?.config.create&&!0===x.config.writable?{sources:w,refetch:v.refetch,open:e=>D(e,null)}:null;return{error:b.error??v.error,reload:()=>{b.refetch(),v.refetch()},loading:v.loading&&!v.data,ready:!!v.data,tabsReady:!!v.data||A.some(e=>"history"===e.id),metadata:v.data?Ie(v.data.revision,m):[],redacted:!!v.data?.secrets_redacted,tabs:A.map(e=>({id:e.id,label:"source"===e.id&&K?m("ui.aside",{text:m(e.titleKey),note:g(K,h)}):m(e.titleKey)})),tab:W,setTab:e=>n("config",d(u(i,e,null),{field:null})),selectedId:S??"",select:e=>n("config",d(i,{source:e,line:null})),sourceProps:U,newSourceProps:B,modulesProps:v.data?{config:v.data}:null,sourceModel:N?{...LeLine truncated
@@ -0,0 +1,2 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CodeEditor-CigpeREG.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-DkZLaQoO.js","./index-OR7DFCdG.css","./vendor-editor-BRV-W12m.js","./index-DUM-iwa2.js","./daeTokens-BVtuNnWZ.js","./nodes-zKvLj1EG.js","./AppearanceControls-5nB_BQSG.js","./ItemText-M_HsyHL5.js","./logs-DniNK6NG.js","./Select-B1IhE7cv.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,al as a,l as r,q as t,r as o,x as l,c3 as c,w as d,c5 as u,Y as g,A as f,aI as p,c1 as m,cB as h,ds as b,dt as x,a1 as v,a0 as j,a9 as y,bN as w,z as k,cA as N,du as S,t as C,aJ as D,aS as P,B as T,ay as O,E as _,bi as R,af as E,b2 as M,cv as A,p as F,C as H,m as L,dv as I,bE as q,bF as $,av as K,dn as W,a as B,b as U,v as V,aK as z,cx as J,aB as Q,aE as G,dd as X,_ as Y,T as Z}from"./index-DkZLaQoO.js";import{a as ee,u as ne,y as ie,c as se,O as ae,P as re,B as te,K as oe,D as le,q as ce,Q as de,S as ue,L as ge}from"./logs-DniNK6NG.js";import{T as fe}from"./Tabs-Ba8gYhNB.js";import{T as pe}from"./Toolbar-Br0J4-YM.js";import{aH as me,a2 as he,aa as be,aI as xe,y as ve,aJ as je,aK as ye,a8 as we,D as ke}from"./activity-DwYuxZaT.js";import{s as Ne,P as Se,N as Ce,e as De,r as Pe,ah as Te,ai as Oe,aj as _e,ak as Re,L as Ee,al as Me}from"./nodes-zKvLj1EG.js";import{s as Ae,c as Fe,r as He,a as Le,b as Ie,d as qe,e as $e,f as Ke,g as We,h as Be,v as Ue,i as Ve,j as ze,k as Je,l as Qe,m as Ge,n as Xe,o as Ye,w as Ze}from"./nav-BXcfcRvQ.js";import{u as en,c as nn}from"./flows-Bh9kBRHT.js";import{d as sn}from"./files-Dt8K7QfP.js";import{D as an}from"./Table-DMzu4x5t.js";import{T as rn}from"./TimeCell-xHoiaHia.js";import{L as tn}from"./AppearanceControls-5nB_BQSG.js";import{N as on,t as ln}from"./NumberField-CN_dFkWR.js";import{A as cn}from"./AddCircle-Bl7yHPBv.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-B1IhE7cv.js";import"./ItemText-M_HsyHL5.js";import"./useGridSelectionCheckbox-BJpzXB14.js";import"./Virtualizer-BUkJzK8u.js";function dn(e,n,s,a="main"){if(!s.daeText)return[];const{blocks:r,tokens:t}=Ne(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=Se(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=Ae[s.name];return"subscription"===s.name?"main"!==a?[]:Ce(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 un=()=>{};const gn=new Map;function fn({go:n,query:i}){const m=s(),h=a[r()],b=t(),x=b.data?.resources,v=ne(o(x,"config",{whileLoading:!0})),j=function(n){const i=s(),a=ee(n),r=e.useMemo(()=>{const e=be(a.error);return e?e.diagnostics??[]:null},[a.error]);return e.useEffect(()=>{if(a.error)if(r){const e=xe(r);f("negative",e?i("config.writeRestart",{n:e}):i("ui.writeInvalid",{n:r.filter(e=>"error"===e.level).length}))}else p(a.error,i,i("ui.writeFailed"))},[a.error,r,i]),{...a,diagnostics:r}}(v.refetch),y=e.useMemo(()=>new URLSearchParams(i),[i]),w=e.useMemo(()=>v.data?.sources??[],[v.data]),k=w.find(e=>"main"===e.kind)??null,N=w.find(e=>e.id===y.get("source"))??w[0]??null,S=N?.id??null,C=(e,s)=>n("config",d(i,{tab:"source",source:e,line:null===s?null:String(s)})),D=Number(y.get("line"))||null,P=v.data?.diagnostics??[],T=e.useMemo(()=>{const e=v.data?.diagnostics??[];return{error:e.filter(e=>"error"===e.level).length,warning:e.filter(e=>"warning"===e.level).length}},[v.data]),O=o(x,"config_validate",{whileLoading:!1})&&(x?.config_validate.modes??[]).includes("full"),_=!0===x?.config.writable,R=ie(w),E=l().data,M=e.useMemo(()=>De(E),[E]),A=Fe(!!M.globalSettings,b.data),F=N?He(N,_,R(N),M,m):null,H=!!N&&!F,[L,I]=e.useState(gn),[q,$]=e.useState(null),K=q??T.error,W=y.has("source")||void 0===k?.content?"source":"modules",B=c("validate"===y.get("tab")?d(i,{tab:"source"}):i,A.map(e=>e.id),W),U=N?{source:N,sources:w,open:C,diagnostics:P,canValidate:O&&("main"===N.kind||"include"===N.kind),canWrite:H,readOnly:F,isComplete:R,editor:j,focusLine:D,generation:v.data?.generation_id??"",focusDiagnostics:"validate"===y.get("tab"),diagnosticsChoice:L.get(N.id)??null,chooseDiagnostics:e=>I(n=>new Map(n).set(N.id,e)),reportErrors:$}:null,V=!0===x?.config.create&&!0===x.config.writable?{sources:w,refetch:v.refetch,open:e=>C(e,null)}:null;return{error:b.error??v.error,reload:()=>{b.refetch(),v.refetch()},loading:v.loading&&!v.data,ready:!!v.data,tabsReady:!!v.data||A.some(e=>"history"===e.id),metadata:v.data?Ie(v.data.revision,m):[],redacted:!!v.data?.secrets_redacted,tabs:A.map(e=>({id:e.id,label:"source"===e.id&&K?m("ui.aside",{text:m(e.titleKey),note:g(K,h)}):m(e.titleKey)})),tab:B,setTab:e=>n("config",d(u(i,e,null),{field:null})),selectedId:S??"",select:e=>n("config",d(i,{source:e,line:null})),sourceProps:U,newSourceProps:V,modulesProps:v.data?{config:v.data}:nuLine truncated
@@ -0,0 +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-BJsoFuhR.js";import{N as l,O as a}from"./NodePath-Gfq-By42.js";import{aR as i,u as r,al as c,l as u,a0 as d,o as p,az as m,C as b,E as h,Y as g,a8 as f,s as w,M as v,bV as y,T as x,bW as j,w as _,bX as k,U as S,bY as C,bZ as A,Z as L,a1 as N,q as T,r as R,O as M,b_ as O,a6 as P,b$ as F,ah as q,G as U,c0 as W,b1 as D,c1 as E,bR as I,c2 as V,c3 as H,c4 as Q,K as B,am as K,c5 as G,A as J,c6 as Y,aS as Z,b6 as z,c7 as X,aJ as $,c8 as ee,bF as ne,B as te,c9 as oe,bw as se,av as le}from"./index-DkZLaQoO.js";import{R as ae,B as ie,u as re,h as ce,p as ue,g as de,c as pe,S as me,q as be,L as he,o as ge,K as fe}from"./logs-DniNK6NG.js";import{C as we}from"./AppearanceControls-5nB_BQSG.js";import{T as ve}from"./Tabs-Ba8gYhNB.js";import{T as ye}from"./Toolbar-Br0J4-YM.js";import{a as xe,D as je,U as _e,F as ke,S as Se,c as Ce,B as Ae,L as Le,t as Ne,d as Te,f as Re,g as Me,p as Oe,o as Pe,k as Fe,h as qe}from"./activity-DwYuxZaT.js";import{S as Ue}from"./SearchSelect-CgvsaAJS.js";import{D as We}from"./Table-DMzu4x5t.js";import{T as De}from"./TimeCell-xHoiaHia.js";import{Q as Ee,u as Ie,R as Ve}from"./useQuickRule-Row9eJav.js";import{u as He}from"./outbounds-C-QT9t_b.js";import{c as Qe,d as Be,e as Ke}from"./files-Dt8K7QfP.js";import{w as Ge}from"./labels-D8xxfRTQ.js";import{u as Je}from"./flows-Bh9kBRHT.js";import{r as Ye}from"./rule-CaRkSdGM.js";import{c as Ze}from"./nav-BO8viH9G.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./LinkOut-qIg2xTwZ.js";import"./Tag-BJayNrqV.js";import"./Select-B1IhE7cv.js";import"./ItemText-M_HsyHL5.js";import"./nodes-zKvLj1EG.js";import"./useGridSelectionCheckbox-BJpzXB14.js";import"./SearchList-Dzx-0VF7.js";import"./Virtualizer-BUkJzK8u.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-Bl7yHPBv.js";const ze=[0,2,3,1,4,5,6,7],Xe=e.memo(function({records:t,outbounds:o,latency:s,latencyError:l,retryLatency:a,truncated:g,uncounted:f,onSelect:w}){const v=r(),y=xe(),x=c[u()],j=e.useCallback(e=>d(e,x),[x]),_=e.useMemo(()=>function(e,n){const t=new Map;let o=0;for(const i of e){if(null===i.upload_bytes||null===i.download_bytes){o++;continue}const e={id:i.id,up:Number(i.upload_bytes),down:Number(i.download_bytes),name:i.domain||i.dst||i.id},n=t.get(i.outbound);n?n.push(e):t.set(i.outbound,[e])}const s=[...t].map(([e,n])=>({outbound:e,points:n})).sort((e,t)=>i(n)(e.outbound??"",t.outbound??""));let l,a=-1n;for(const i of e){if(null===i.upload_bytes||null===i.download_bytes)continue;const e=BigInt(i.upload_bytes)+BigInt(i.download_bytes);e>a&&(a=e,l={id:i.id,up:Number(i.upload_bytes),down:Number(i.download_bytes),name:i.domain||i.dst||i.id,outbound:i.outbound})}return{series:s,unknown:o,heaviest:l,placed:e.length-o}}(t,x),[t,x]),k=e.useMemo(()=>{const e=o.filter(e=>"block"!==e);return _.series.map(n=>{return{id:n.outbound??"",label:p(n.outbound,v),color:(t=n.outbound,"block"===t?y.negative:y.cat[ze[Math.max(0,e.indexOf(t))%ze.length]]),points:n.points.map(e=>({id:e.id,x:e.up,y:e.down,name:e.name,detail:v("conn.chart.point",{download:j(e.down),upload:j(e.up)})}))};var t})},[_,o,y,v,j]),S=_.heaviest?[{label:v("conn.chart.busiest"),icon:n.jsx(m,{}),tint:"c3",value:_.heaviest.name,caption:p(_.heaviest.outbound,v)},{label:v("ui.download"),value:j(_.heaviest.down),icon:n.jsx(je,{}),tint:"c1"},{label:v("ui.upload"),value:j(_.heaviest.up),icon:n.jsx(_e,{}),tint:"c4"}]:[],C=_.unknown?v("conn.chart.sampleUnknown",{n:t.length,unknown:_.unknown}):v("conn.chart.sample",{n:t.length});return n.jsxs("div",{className:"rp-chart-page",children:[n.jsx(ke,{facts:S,lead:!0}),n.jsxs(b,{title:v("conn.chart.title"),help:f?{title:v("conn.chart.title"),text:v("ui.trafficUncounted")}:void 0,note:C,children:[g&&n.jsx("p",{className:"rp-note",children:v("conn.truncated")}),_.placed>0&&n.jsxs(n.Fragment,{children:[n.jsx(Se,{label:v("conn.chart.title"),series:k,fmt:j,onSelect:w,regions:{above:v("conn.chart.moreDown"),below:v("conn.chart.moreUp")}}),n.jsx(Ce,{series:k}),n.jsx("p",{className:"rp-note",children:v("conn.chart.hint")})]})]}),s?n.jsx($e,{latency:s}):l&&n.jsx(b,{title:v("ui.nodeLatency"),children:n.jsx(h,{error:l,onRetry:a})})]})});function $e({latency:e}){const t=r(),o=xe(),s=e=>f(e,t),l=c[u()],a=n=>!e.chains||n?o.cat[0]:o.muted;return n.jsx(b,{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(Ae,{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.connectionsLine truncated
@@ -1 +0,0 @@
import{r as e,j as n}from"./vendor-react-64fcanlc.js";import{i as t,I as o,a as s}from"./ipLookup-jJz7YASo.js";import{O as l}from"./OutboundTag-EsmwFTLz.js";import{aU as a,u as i,al as r,l as c,a0 as u,o as d,aB as p,C as m,E as b,Y as h,a8 as g,s as f,M as w,bW as v,ax as y,N as x,T as j,bX as _,w as k,bY as C,U as S,bZ as A,b_ as L,Z as N,a1 as T,q as M,r as R,O,b$ as P,a6 as F,c0 as U,ah as W,G as q,c1 as D,b4 as E,c2 as I,bS as V,c3 as H,c4 as Q,c5 as B,K,am as G,c6 as J,A as Y,c7 as Z,aV as X,b9 as $,c8 as z,aM as ee,c9 as ne,bG as te,B as oe,ca as se,bx as le,av as ae,p as ie}from"./index-BpMcZry4.js";import{R as re,u as ce,i as ue,o as de,h as pe,c as me,S as be,L as he,n as ge,K as fe}from"./logs-CSLBu0fr.js";import{C as we}from"./AppearanceControls-_LKvZPhT.js";import{T as ve}from"./Tabs-DHvnlDOn.js";import{T as ye}from"./Toolbar-CG16bAGF.js";import{a as xe,D as je,U as _e,F as ke,S as Ce,c as Se,B as Ae,L as Le,t as Ne,d as Te,f as Me,g as Re,p as Oe,o as Pe,k as Fe,h as Ue}from"./activity-SP7tP5Sc.js";import{S as We}from"./SearchSelect-FeisYm3Z.js";import{D as qe}from"./Table-B9wBdFJO.js";import{T as De}from"./TimeCell-DFg9wUP4.js";import{Q as Ee,u as Ie,R as Ve}from"./useQuickRule-DnICQncm.js";import{u as He}from"./outbounds-BWBv2v0q.js";import{c as Qe,d as Be,e as Ke}from"./files-Dt8K7QfP.js";import{w as Ge}from"./labels-D8xxfRTQ.js";import{u as Je}from"./flows-4vf3kCNL.js";import{r as Ye}from"./rule-C-7UBgmI.js";import{c as Ze}from"./nav-BO8viH9G.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./LinkOut-Bzsd9jX9.js";import"./Tag-DnsbMsos.js";import"./Select-DfNHOkHm.js";import"./ItemText-CcW62_Lb.js";import"./nodes-9cDj613b.js";import"./Checkbox-BiXT27lL.js";import"./SearchList-DnHiclH-.js";import"./Virtualizer-D4o4sanH.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-net7vCQK.js";const Xe=[0,2,3,1,4,5,6,7],$e=e.memo(function({records:t,outbounds:o,latency:s,latencyError:l,retryLatency:h,truncated:g,uncounted:f,onSelect:w}){const v=i(),y=xe(),x=r[c()],j=e.useCallback(e=>u(e,x),[x]),_=e.useMemo(()=>function(e,n){const t=new Map;let o=0;for(const a of e){if(null===a.upload_bytes||null===a.download_bytes){o++;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 s=[...t].map(([e,n])=>({outbound:e,points:n})).sort((e,t)=>a(n)(e.outbound??"",t.outbound??""));let l,i=-1n;for(const a of e){if(null===a.upload_bytes||null===a.download_bytes)continue;const e=BigInt(a.upload_bytes)+BigInt(a.download_bytes);e>i&&(i=e,l={id:a.id,up:Number(a.upload_bytes),down:Number(a.download_bytes),name:a.domain||a.dst||a.id,outbound:a.outbound})}return{series:s,unknown:o,heaviest:l,placed:e.length-o}}(t,x),[t,x]),k=e.useMemo(()=>{const e=o.filter(e=>"block"!==e);return _.series.map(n=>{return{id:n.outbound??"",label:d(n.outbound,v),color:(t=n.outbound,"block"===t?y.negative:y.cat[Xe[Math.max(0,e.indexOf(t))%Xe.length]]),points:n.points.map(e=>({id:e.id,x:e.up,y:e.down,name:e.name,detail:v("conn.chart.point",{download:j(e.down),upload:j(e.up)})}))};var t})},[_,o,y,v,j]),C=_.heaviest?[{label:v("conn.chart.busiest"),icon:n.jsx(p,{}),tint:"c3",value:_.heaviest.name,caption:d(_.heaviest.outbound,v)},{label:v("ui.download"),value:j(_.heaviest.down),icon:n.jsx(je,{}),tint:"c1"},{label:v("ui.upload"),value:j(_.heaviest.up),icon:n.jsx(_e,{}),tint:"c4"}]:[],S=_.unknown?v("conn.chart.sampleUnknown",{n:t.length,unknown:_.unknown}):v("conn.chart.sample",{n:t.length});return n.jsxs("div",{className:"rp-chart-page",children:[n.jsx(ke,{facts:C,lead:!0}),n.jsxs(m,{title:v("conn.chart.title"),help:f?{title:v("conn.chart.title"),text:v("ui.trafficUncounted")}:void 0,note:S,children:[g&&n.jsx("p",{className:"rp-note",children:v("conn.truncated")}),_.placed>0&&n.jsxs(n.Fragment,{children:[n.jsx(Ce,{label:v("conn.chart.title"),series:k,fmt:j,onSelect:w,regions:{above:v("conn.chart.moreDown"),below:v("conn.chart.moreUp")}}),n.jsx(Se,{series:k}),n.jsx("p",{className:"rp-note",children:v("conn.chart.hint")})]})]}),s?n.jsx(ze,{latency:s}):l&&n.jsx(m,{title:v("ui.nodeLatency"),children:n.jsx(b,{error:l,onRetry:h})})]})});function ze({latency:e}){const t=i(),o=xe(),s=e=>g(e,t),l=r[c()],a=n=>!e.chains||n?o.cat[0]:o.muted;return n.jsx(m,{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(Ae,{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.cLine truncated
@@ -1 +1 @@
import{r as c,j as r}from"./vendor-react-64fcanlc.js";import{u as s,ds as o,A as l,I as t}from"./index-BpMcZry4.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,dv as o,A as l,I as t}from"./index-DkZLaQoO.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};
@@ -0,0 +1 @@
import{ah as e,ak as l,U as r,u as s,T as a}from"./index-DkZLaQoO.js";import{j as n}from"./vendor-react-64fcanlc.js";import{L as o}from"./logs-DniNK6NG.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 +0,0 @@
import{ah as e,ak as l,U as r,u as a,T as s,p as n}from"./index-BpMcZry4.js";import{j as o}from"./vendor-react-64fcanlc.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"},p={full:"flow.full",partial:"flow.partialVisibility",none:"ui.none"};function c(a,s,n){const o=Object.entries(a.coverage).filter(([,e])=>"full"!==e),c=e(a.dropped_records),i=c?s("flow.dropped",{n:c}):null;return o.length||i?{summary:o.length?s("flow.coverageSummary",{n:o.length}):null,detail:l(n,o.map(([e,l])=>s("ui.valuePair",{label:r(t,e,s),value:r(p,l,s)}))),dropped:i}:null}function i({view:e}){const l=a();return o.jsxs("div",{className:"rp-cluster",role:"group","aria-label":l("flow.coverage"),children:[e.summary&&o.jsx(s,{text:e.detail,children:o.jsx(n,{small:!0,tone:"warn",children:e.summary})}),e.dropped&&o.jsx(n,{small:!0,tone:"warn",children:e.dropped})]})}export{i as C,c};
@@ -1 +1 @@
import{j as c}from"./vendor-react-64fcanlc.js";import{I as r}from"./index-BpMcZry4.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-DkZLaQoO.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 +0,0 @@
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{M as a,bS as t,U as n,a8 as r,a1 as l,Y as i,Q as d,ah as o,aM as c,u,a9 as m,q as h,c2 as p,z as x,c4 as g,r as y,w as f,h as b,c6 as j,al as v,l as w,cb as _,cc as N,b4 as k,c8 as S,A as T,c9 as C,aV as q,cd as M,bR as R,az as L,af as A,E as F,ce as E,bh as D,cf as P,C as W,S as O,ae as U,ay as H,T as B,bu as K,bF as I,cg as $,bG as Q,ch as z,B as J,ci as V,ax as Y,p as G,av as X,bx as Z,ca as ee}from"./index-BpMcZry4.js";import{D as se}from"./Delete-Cfg0qtTJ.js";import{s as ae,l as te,a as ne,m as re,C as le,F as ie,B as de,L as oe,W as ce,n as ue,q as me,D as he}from"./activity-SP7tP5Sc.js";import{i as pe,I as xe,a as ge}from"./ipLookup-jJz7YASo.js";import{u as ye,q as fe,k as be,s as je,t as ve,S as we,L as _e,K as Ne,A as ke}from"./logs-CSLBu0fr.js";import{T as Se}from"./Tabs-DHvnlDOn.js";import{T as Te}from"./Toolbar-CG16bAGF.js";import{D as Ce}from"./Table-B9wBdFJO.js";import{T as qe}from"./TimeCell-DFg9wUP4.js";import{c as Me,d as Re,e as Le}from"./files-Dt8K7QfP.js";import{d as Ae}from"./nav-Br4EizUw.js";import{a as Fe}from"./rule-C-7UBgmI.js";import{J as Ee,u as De}from"./nodes-9cDj613b.js";import{u as Pe,R as We,Q as Oe}from"./useQuickRule-DnICQncm.js";import{L as Ue}from"./AppearanceControls-_LKvZPhT.js";/* empty css */import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-CcW62_Lb.js";import"./LinkOut-Bzsd9jX9.js";import"./Select-DfNHOkHm.js";import"./Checkbox-BiXT27lL.js";import"./Virtualizer-D4o4sanH.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-net7vCQK.js";import"./SearchSelect-FeisYm3Z.js";import"./SearchList-DnHiclH-.js";import"./flows-4vf3kCNL.js";function He(e,s,t,n,r){return{domain:e,dip:null,sip:(r&&a(r))??null,outbound:null,matched:null,dns:{type:s,answers:Fe(t),upstream:n,query:{name:e,type:s}}}}const Be=(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"),n(Ke,e.route.source,a)],[a("dns.routeRule"),e.route.rule??"—"],[a("ui.elapsed"),r(e.elapsed_ms,a)]],answers:(e.answers??[]).map(e=>{const n=Fe([e])[0],r=n?t(n):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 c&&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 Je(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 Ve({go:s,query:a}){const t=u(),n=m(),r=h(),l=e.useMemo(()=>new URLSearchParams(a),[a]),[i,d]=e.useState(l.get("domain")??""),[o,c]=e.useState(l.get("type")??"A"),[v,w]=e.useState(!1);p(l.get("domain"),e=>d(e??"")),p(l.get("type"),e=>c(e??"A"));const[_,N]=e.useState(null),{busy:k,error:S,run:T}=x({rethrow:!0}),C=r.data?.resources,q=e.useMemo(()=>function(e,s,a,t,n,r){const l=s?.dns_query.record_types??[],i="all"===a?l.length>0:l.includes(a);return{types:l,choices:[...l.map(e=>({id:e,label:e})),{id:"all",label:r("dns.allTypes")}],disabled:n||!s?.dns_query.available||!i||!t.trim(),reason:!s||n?null:s.dns_query.available?i?null:r("all"===a?"dns.noTypes":"dns.typeUnsupported"):r("dns.queryUnavailable"),showCache:!!s?.dns_cache.available,cards:e?.results.map(s=>({id:s.type,title:`${e.domain} ${s.type}`,...Ie(s,e.domain,r),seed:He(e.domain,s.type,s.answers??[],s.upstream,null),answerSeeds:(s.answers??[]).map(a=>Fe([a]).length?{address:a.data,seed:Be(a.data,e.domain,s.type)}:null)}))??[],tabs:Ae(s).map(e=>({id:e.id,label:r(e.titleKey)}))}}(_,C,o,i,!!k,t),[_,C,o,i,k,t]),M=q.tabs.map(e=>e.id),R=l.has("domain")||l.has("device"),L=M.includes("log")?R?"log":"stats":M.includes("query")?"query":M[0]??"query",A=g(a,M,L),F=y(C,"config",{whileLoading:!1}),E=ye("query"===A&&F&&y(C,"dns_query",{whileLoading:!1})),D=e.useMemo(()=>F?function(e,s){const a=[...new Set((e??[]).flatMap(e=>e.content?Ee(e.content).map(De):[]))];return a.length?[{id:"",label:s("dns.upstreamAuto")},...a.map(e=>({id:e,label:e}))]:[]}(E.data?.sources,t):[],[F,E.data,t]),[P,W]=e.useState(""),O=D.some(e=>e.id===P)?P:"";E.dataLine truncated
@@ -0,0 +1 @@
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{M as a,bR as t,U as n,a8 as r,a1 as l,Y as i,Q as d,ah as o,aJ as c,u,a9 as m,q as h,c1 as p,z as x,c3 as g,r as y,w as f,h as b,c5 as j,al as v,l as w,ca as _,cb as N,b1 as S,c7 as k,A as T,c8 as q,aS as C,cc as R,bQ as M,ax as L,af as A,E as F,cd as E,bf as D,ce as P,C as W,S as O,ae as U,T as B,bE as H,cf as K,bF as I,cg as Q,B as $,ch as z,av as J,bw as Y,c9 as G}from"./index-DkZLaQoO.js";import{D as V}from"./Delete-HQ5S6-JZ.js";import{s as X,l as Z,a as ee,m as se,C as ae,F as te,B as ne,L as re,W as le,n as ie,q as de,D as oe}from"./activity-DwYuxZaT.js";import{i as ce,I as ue,a as me}from"./ipLookup-BJsoFuhR.js";import{u as he,t as pe,m as xe,v as ge,w as ye,i as fe,S as be,k as je,q as ve,B as we,K as _e,L as Ne,A as Se}from"./logs-DniNK6NG.js";import{T as ke}from"./Tabs-Ba8gYhNB.js";import{T as Te}from"./Toolbar-Br0J4-YM.js";import{D as qe}from"./Table-DMzu4x5t.js";import{T as Ce}from"./TimeCell-xHoiaHia.js";import{c as Re,d as Me,e as Le}from"./files-Dt8K7QfP.js";import{d as Ae}from"./nav-BYHXS5Ks.js";import{a as Fe}from"./rule-CaRkSdGM.js";import{d as Ee,u as De}from"./nodes-zKvLj1EG.js";import{u as Pe,R as We,Q as Oe}from"./useQuickRule-Row9eJav.js";import{L as Ue}from"./AppearanceControls-5nB_BQSG.js";/* empty css */import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-M_HsyHL5.js";import"./LinkOut-qIg2xTwZ.js";import"./Select-B1IhE7cv.js";import"./useGridSelectionCheckbox-BJpzXB14.js";import"./Virtualizer-BUkJzK8u.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-Bl7yHPBv.js";import"./SearchSelect-CgvsaAJS.js";import"./SearchList-Dzx-0VF7.js";import"./flows-Bh9kBRHT.js";function Be(e,s,t,n,r){return{domain:e,dip:null,sip:(r&&a(r))??null,outbound:null,matched:null,dns:{type:s,answers:Fe(t),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"),n(Ke,e.route.source,a)],[a("dns.routeRule"),e.route.rule??"—"],[a("ui.elapsed"),r(e.elapsed_ms,a)]],answers:(e.answers??[]).map(e=>{const n=Fe([e])[0],r=n?t(n):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&&ce(r)?r:null};var l,i}),cacheText:a(e.cached?"dns.hit":"dns.miss"),cacheTone:e.cached?void 0:"warn"}}function Qe(e,s,a){return e?a instanceof c&&503===a.status?"unavailable":s?"ready":a?"error":"loading":"unlisted"}const $e=[{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 Je(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 Ye({go:s,query:a}){const t=u(),n=m(),r=h(),l=e.useMemo(()=>new URLSearchParams(a),[a]),[i,d]=e.useState(l.get("domain")??""),[o,c]=e.useState(l.get("type")??"A"),[v,w]=e.useState(!1);p(l.get("domain"),e=>d(e??"")),p(l.get("type"),e=>c(e??"A"));const[_,N]=e.useState(null),{busy:S,error:k,run:T}=x({rethrow:!0}),q=r.data?.resources,C=e.useMemo(()=>function(e,s,a,t,n,r){const l=s?.dns_query.record_types??[],i="all"===a?l.length>0:l.includes(a);return{types:l,choices:[...l.map(e=>({id:e,label:e})),{id:"all",label:r("dns.allTypes")}],disabled:n||!s?.dns_query.available||!i||!t.trim(),reason:!s||n?null:s.dns_query.available?i?null:r("all"===a?"dns.noTypes":"dns.typeUnsupported"):r("dns.queryUnavailable"),showCache:!!s?.dns_cache.available,cards:e?.results.map(s=>({id:s.type,title:`${e.domain} ${s.type}`,...Ie(s,e.domain,r),seed:Be(e.domain,s.type,s.answers??[],s.upstream,null),answerSeeds:(s.answers??[]).map(a=>Fe([a]).length?{address:a.data,seed:He(a.data,e.domain,s.type)}:null)}))??[],tabs:Ae(s).map(e=>({id:e.id,label:r(e.titleKey)}))}}(_,q,o,i,!!S,t),[_,q,o,i,S,t]),R=C.tabs.map(e=>e.id),M=l.has("domain")||l.has("device"),L=R.includes("log")?M?"log":"stats":R.includes("query")?"query":R[0]??"query",A=g(a,R,L),F=y(q,"config",{whileLoading:!1}),E=he("query"===A&&F&&y(q,"dns_query",{whileLoading:!1})),D=e.useMemo(()=>F?function(e,s){const a=[...new Set((e??[]).flatMap(e=>e.content?Ee(e.content).map(De):[]))];return a.length?[{id:"",label:s("dns.upstreamAuto")},...a.map(e=>({id:e,label:e}))]:[]}(E.data?.sources,t):[],[F,E.data,t]),[P,W]=e.useState(""),O=D.some(e=>e.id===PLine truncated
@@ -1 +1 @@
import{r as n,j as t}from"./vendor-react-64fcanlc.js";import{u as e,f as r}from"./index-BpMcZry4.js";import{aS as o,b0 as a,aV as i,aX as l}from"./activity-SP7tP5Sc.js";import{w as u,c,a as s}from"./array-C0VuvQyb.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-9cDj613b.js";import"./AppearanceControls-_LKvZPhT.js";import"./ItemText-CcW62_Lb.js";import"./logs-CSLBu0fr.js";import"./Select-DfNHOkHm.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,S=T-v,$=R-m,B=L-v,K=I-m;return S*S+$*$>B*B+K*K&&(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 S,$,B=P,K=T,N=P,k=T,D=R,E=R,F=i.apply(this,arguments)/2,V=F>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>v){var X=j(V/w*x(F)),_=j(V/b*x(F));(D-=2*X)>v?(N+=X*=I?1:-1,k-=X):(D=0,N=k=(P+T)/2),(E-=2*_)>v?(B+=_*=I?1:-1,K-=_):(E=0,B=K=(P+T)/2)}var z=b*y(B),G=b*x(B),J=w*y(k),O=w*x(k);if(q>v){var Q,U=b*y(K),W=b*x(K),Y=w*y(N),Z=w*x(N);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,U,W,J,O)){var nn=z-Q[0],tn=G-Q[1],en=U-Q[0],rn=W-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}E>v?H>v?(S=L(Y,Z,z,G,b,H,I),$=L(U,W,J,O,b,H,I),l.moveTo(S.cx+S.x01,S.cy+S.y01),H<q?l.arc(S.cx,S.cy,H,h(S.y01,S.x01),h($.y01,$.x01),!I):(l.arc(S.cx,S.cy,H,h(S.y01,S.x01),h(S.y11,S.x11),!I),l.arc(0,0,b,h(S.cy+S.y11,S.cx+S.x11),h($.cy+$.y11,$.cx+$.x11),!I),l.arc($.cx,$.cy,H,h($.y11,$.x11),h($.y01,$.x01),!I))):(l.moveTo(z,G),l.arc(0,0,b,B,K,!I)):l.moveTo(z,G),w>v&&D>v?C>v?(S=L(J,O,U,W,w,-C,I),$=L(z,G,Y,Z,w,-C,I),l.lineTo(S.cx+S.x01,S.cy+S.y01),C<q?l.arc(S.cx,S.cy,C,h(S.y01,S.x01),h($.y01,$.x01),!I):(l.arc(S.cx,S.cy,C,h(S.y01,S.x01),h(S.y11,S.x11),!I),l.arc(0,0,w,h(S.cy+S.y11,S.cx+S.x11),h($.cy+$.y11,$.cx+$.x11),I),l.arc($.cx,$.cy,C,h($.y11,$.x11),h($.y01,$.x01),!I))):l.arc(0,0,w,k,N,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 S(n,t){return t<n?-1:t>n?1:t>=n?0:NaN}function $(n){return n}function B({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=$,t=S,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,f as r}from"./index-DkZLaQoO.js";import{aV as o,b2 as a,aZ as i,a$ as l}from"./activity-DwYuxZaT.js";import{w as u,c,a as s}from"./array-C0VuvQyb.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-zKvLj1EG.js";import"./AppearanceControls-5nB_BQSG.js";import"./ItemText-M_HsyHL5.js";import"./logs-DniNK6NG.js";import"./Select-B1IhE7cv.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 R(n){return n.endAngle}function T(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)),R=(b*A-M*P)/j,T=(-b*M-A*P)/j,L=(b*A+M*P)/j,$=(-b*M+A*P)/j,I=R-v,B=T-m,N=L-v,S=$-m;return I*I+B*B>N*N+S*S&&(R=L,T=$),{cx:R,cy:T,x01:-s,y01:-f,x11:R*(o/w-1),y11:T*(o/w-1)}}function $(){var n=w,t=b,e=c(0),r=null,o=P,a=R,i=T,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,R=a.apply(this,arguments)-M,T=f(R-P),$=R>P;if(l||(l=u=s()),b<w&&(c=b,b=w,w=c),b>v)if(T>A-v)l.moveTo(b*y(P),b*x(P)),l.arc(0,0,b,P,R,!$),w>v&&(l.moveTo(w*y(R),w*x(R)),l.arc(0,0,w,R,P,$));else{var I,B,N=P,S=R,k=P,D=R,E=T,F=T,K=i.apply(this,arguments)/2,V=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>v){var Z=j(V/w*x(K)),_=j(V/b*x(K));(E-=2*Z)>v?(k+=Z*=$?1:-1,D-=Z):(E=0,k=D=(P+R)/2),(F-=2*_)>v?(N+=_*=$?1:-1,S-=_):(F=0,N=S=(P+R)/2)}var z=b*y(N),G=b*x(N),J=w*y(D),O=w*x(D);if(q>v){var Q,U=b*y(S),W=b*x(S),X=w*y(k),Y=w*x(k);if(T<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,X,Y,U,W,J,O)){var nn=z-Q[0],tn=G-Q[1],en=U-Q[0],rn=W-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?(I=L(X,Y,z,G,b,H,$),B=L(U,W,J,O,b,H,$),l.moveTo(I.cx+I.x01,I.cy+I.y01),H<q?l.arc(I.cx,I.cy,H,h(I.y01,I.x01),h(B.y01,B.x01),!$):(l.arc(I.cx,I.cy,H,h(I.y01,I.x01),h(I.y11,I.x11),!$),l.arc(0,0,b,h(I.cy+I.y11,I.cx+I.x11),h(B.cy+B.y11,B.cx+B.x11),!$),l.arc(B.cx,B.cy,H,h(B.y11,B.x11),h(B.y01,B.x01),!$))):(l.moveTo(z,G),l.arc(0,0,b,N,S,!$)):l.moveTo(z,G),w>v&&E>v?C>v?(I=L(J,O,U,W,w,-C,$),B=L(z,G,X,Y,w,-C,$),l.lineTo(I.cx+I.x01,I.cy+I.y01),C<q?l.arc(I.cx,I.cy,C,h(I.y01,I.x01),h(B.y01,B.x01),!$):(l.arc(I.cx,I.cy,C,h(I.y01,I.x01),h(I.y11,I.x11),!$),l.arc(0,0,w,h(I.cy+I.y11,I.cx+I.x11),h(B.cy+B.y11,B.cx+B.x11),$),l.arc(B.cx,B.cy,C,h(B.y11,B.x11),h(B.y01,B.x01),!$))):l.arc(0,0,w,D,k,$):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 I(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=I,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
@@ -0,0 +1 @@
import{r as e,$ as t,a as r,j as n}from"./vendor-react-64fcanlc.js";import{eB as o,gg as i,eq as a,em as s,cS as l,gh as d,gi as c,gj as p,es as u,en as g,eo as f,ep as m,eC as h,eN as y,gk as D,gl as v,eO as b,ex as w,gm as x,f$ as T,fP as k,bp as E,cP as P,cH as K,f9 as O,b4 as S,aB as C,cj as I,eU as j,ax as A,bs as R,B as M,f as B,u as L,R as F,cg as $,q as N,d7 as z,bJ as V,cB as H,dn as X,b2 as Y,p as q,gn as U,P as J,go as _,A as G}from"./index-DkZLaQoO.js";import{b3 as W,b4 as Q,b5 as Z,b6 as ee,b7 as te,b8 as re,b9 as ne,ba as oe,bb as ie,bc as ae,bd as se,be as le,bf as de,bg as ce,bh as pe,bi as ue,bj as ge,bk as fe,bl as me,bm as he,bn as ye,bo as De,bp as ve,bq as be,br as we,bs as xe,bt as Te,bu as ke,bv as Ee,bw as Pe,bx as Ke,by as Oe,bz as Se,bA as Ce,bB as Ie,bC as je,bD as Ae}from"./activity-DwYuxZaT.js";import{$ as Re,a as Me}from"./GridList-CC4w_Iq3.js";import{m as Be}from"./Select-B1IhE7cv.js";import{D as Le}from"./Delete-HQ5S6-JZ.js";import{S as Fe,c as $e,$ as Ne}from"./logs-DniNK6NG.js";import{C as ze}from"./AppearanceControls-5nB_BQSG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-zKvLj1EG.js";import"./ItemText-M_HsyHL5.js";import"./useGridSelectionCheckbox-BJpzXB14.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=Ue(He);Xe[7]="all";const Ye={none:"cancel",link:"link",copy:"copy",move:"move"},qe=Ue(Ye);function Ue(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"]),_e="application/vnd.react-aria.items+json",Ge="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!==_e&&("file"===r.kind&&(t=!0),r.type?this.types.add(r.type):this.types.add(Ge));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(Ge)||"*/*"===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||Ge,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,!0Line truncated
@@ -1 +0,0 @@
import{r as e,$ as t,a as r,j as n}from"./vendor-react-64fcanlc.js";import{et as o,gg as i,ek as a,eg as s,cT as l,gh as d,gi as c,gj as p,em as u,eh as g,ei as f,fa as m,ej as h,g6 as y,gk as D,eu as v,eK as b,gl as w,gm as x,eL as T,er as k,fF as E,bp as P,cQ as K,cI as O,b7 as S,aD as C,ck as I,eR as j,az as A,bs as R,B as M,f as B,u as L,R as F,ch as $,q as z,d8 as N,bK as V,cC as X,dk as Y,b5 as H,aL as q,gn as U,P as J,go as _,A as W}from"./index-BpMcZry4.js";import{b1 as G,b2 as Q,b3 as Z,b4 as ee,b5 as te,b6 as re,b7 as ne,b8 as oe,b9 as ie,ba as ae,bb as se,bc as le,bd as de,be as ce,bf as pe,bg as ue,bh as ge,bi as fe,bj as me,bk as he,bl as ye,bm as De,bn as ve,bo as be,bp as we,bq as xe,br as Te,bs as ke,bt as Ee,bu as Pe,bv as Ke,bw as Oe,bx as Se,by as Ce,bz as Ie,bA as je,bB as Ae}from"./activity-SP7tP5Sc.js";import{$ as Re,a as Me}from"./GridList-CZtL3cpM.js";import{m as Be}from"./Select-DfNHOkHm.js";import{D as Le}from"./Delete-Cfg0qtTJ.js";import{S as Fe,c as $e,$ as ze}from"./logs-CSLBu0fr.js";import{C as Ne}from"./AppearanceControls-_LKvZPhT.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-9cDj613b.js";import"./ItemText-CcW62_Lb.js";import"./Checkbox-BiXT27lL.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 Xe={...Ve,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},Ye=Ue(Xe);Ye[7]="all";const He={none:"cancel",link:"link",copy:"copy",move:"move"},qe=Ue(He);function Ue(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"]),_e="application/vnd.react-aria.items+json",We="application/octet-stream",Ge=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!==_e&&("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===Qe&&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),document.addELine truncated
@@ -1 +0,0 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{U as n,a2 as s,a4 as r,a1 as a,h as i,a9 as o,u as l,al as d,l as c,q as m,c2 as u,ab as p,ac as v,dt as h,du as j,T as f,av as x,B as b,p as w,E as g}from"./index-BpMcZry4.js";import{L as k}from"./AppearanceControls-_LKvZPhT.js";import{d as y,O as T,K as N,L as C}from"./logs-CSLBu0fr.js";import{T as H}from"./Toolbar-CG16bAGF.js";import{D as _}from"./Table-B9wBdFJO.js";import{d as K,e as O}from"./files-Dt8K7QfP.js";import{j as R,D as S}from"./activity-SP7tP5Sc.js";import{u as W,C as L}from"./Copy-Bp9aWYUl.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-CcW62_Lb.js";import"./Select-DfNHOkHm.js";import"./nodes-9cDj613b.js";import"./Checkbox-BiXT27lL.js";import"./Virtualizer-D4o4sanH.js";const M={buffer_overflow:["event.gap.overflow","event.gapHelp.overflow"],evicted:["event.gap.evicted","event.gapHelp.evicted"]};function D(e,t){const n="flow.gap"===e.event&&Object.hasOwn(M,e.data.reason)?M[e.data.reason]:void 0;return n&&{title:t(n[0]),text:t(n[1])}}function q(e,t){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),{id:"recording",label:t("ui.recordingSettings"),href:R}];case"generation.changed":return[{id:"config",label:t("event.viewConfig"),href:i("config")}];default:return[]}}const F=new WeakMap;function I(e,t,i,o,l,d,c,m,u=!1,p=()=>!1){const v="without-runtime"===t||m.includes(t)?t:"all",h=e.filter(e=>"all"===v||("without-runtime"===v?"runtime.updated"!==e.event:e.event===v)).slice(0,l);return{kind:v,rows:h.map(e=>function(e,t,i,o){const l=F.get(e);if(l&&l.locale===t)return l.row;const d=o?{key:"event.lostHistory"}:r(e,i),c={id:y(e),timestamp:a(e.data.observed_at,t),iso:e.data.observed_at,kind:e.event,kindText:n(s,e.event,i),summary:i(d.key,d.params),help:D(e,i),links:q(e,i),event:e};return F.set(e,{locale:t,row:c}),c}(e,d,c,p(e))),kinds:[{id:"without-runtime",label:c("event.withoutRuntime")},{id:"all",label:c("event.allKinds")},...m.map(e=>({id:e,label:n(s,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:h}}function J(){const t=o(),n=l(),s=d[c()],r=m(),a=r.data?.resources.events.kinds,[i,f]=e.useState("without-runtime"),x="all"!==i&&"runtime.updated"!==i&&a?.includes(i),b=T("without-runtime"!==i&&!x),w=e.useMemo(()=>I(b.events,i,b.connected,b.available,j,s,n,a??[],!!b.error,h),[b.events,i,b.connected,b.available,b.error,s,n,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 K(O("doona-events","json"),(e=w.shown,JSON.stringify(e,null,2)+"\n"),"application/json");var e}}}function P(){const n=l(),s=J(),r=W(),a=e.useMemo(()=>[{id:"t",label:n("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:n("event.kind"),minWidth:224,drop:2,render:e=>t.jsx(f,{text:e.kind,children:e.kindText})},{id:"m",label:n("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:n("ui.actions"),hideLabel:!0,minWidth:64,grow:0,render:e=>t.jsx(b,{small:!0,quiet:!0,icon:!0,label:n("ui.copyRecord"),onPress:()=>{r((e=>JSON.stringify(e,null,2))(e.event))},children:t.jsx(L,{})})}],[n,r]),i=e.useCallback(e=>t.jsxs(t.Fragment,{children:[t.jsx(N,{inline:!0,items:[[n("ui.time"),e.timestamp],[n("event.kind"),e.kindText],[n("event.summary"),e.summary]]}),e.links.length>0&&t.jsx("div",{className:"rp-cluster",children:e.links.map(e=>t.jsx(k,{appearance:"button",href:e.href,children:e.label},e.id))})]}),[n]);return t.jsxs("div",{className:"rp-page",children:[t.jsxs(H,{page:!0,children:[t.jsx(C,{label:n("event.kind"),side:!0,value:s.kind,onChange:s.setKind,items:s.kinds}),t.jsx(w,{small:!0,tone:s.status.tone,children:s.status.text}),s.cursor&&t.jsx(f,{text:s.cursor,children:t.jsx("span",{className:"rp-label",children:n("event.cursor")})}),t.jsx("span",{className:"rp-label",children:s.limitText}),t.jsx("span",{className:"rp-grow"}),t.jsxs(b,{isDisabled:!s.rows.length,onPress:s.export,children:[t.jsx(S,{}),n("event.export")]})]}),s.error&&t.jsx(g,{error:s.error,onRetry:s.retry}),t.jsx(_,{label:n("nav.events"),stream:!0,flow:!0,loading:s.loading,rows:s.rows,empty:n("event.empty"),cols:a,detail:i})]})}export{P as Events};
@@ -0,0 +1 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{U as s,a2 as n,a4 as r,a1 as a,h as i,a9 as o,u as l,al as d,l as c,q as m,c1 as u,ab as p,ac as v,dw as h,dx as j,T as f,av as x,B as b,E as g}from"./index-DkZLaQoO.js";import{L as w}from"./AppearanceControls-5nB_BQSG.js";import{e as k,T as y,K as T,q as N,L as C}from"./logs-DniNK6NG.js";import{T as S}from"./Toolbar-Br0J4-YM.js";import{D as _}from"./Table-DMzu4x5t.js";import{d as H,e as O}from"./files-Dt8K7QfP.js";import{j as R,D as W}from"./activity-DwYuxZaT.js";import{u as q,C as K}from"./Copy-xLJK18ri.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-M_HsyHL5.js";import"./Select-B1IhE7cv.js";import"./nodes-zKvLj1EG.js";import"./useGridSelectionCheckbox-BJpzXB14.js";import"./Virtualizer-BUkJzK8u.js";const D={buffer_overflow:["event.gap.overflow","event.gapHelp.overflow"],evicted:["event.gap.evicted","event.gapHelp.evicted"]};function L(e,t){const s="flow.gap"===e.event&&Object.hasOwn(D,e.data.reason)?D[e.data.reason]:void 0;return s&&{title:t(s[0]),text:t(s[1])}}function M(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:k(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:L(e,i),links:M(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 P(){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=y("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 H(O("doona-events","json"),(e=w.shown,JSON.stringify(e,null,2)+"\n"),"application/json");var e}}}function z(){const s=l(),n=P(),r=q(),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(K,{})})}],[s,r]),i=e.useCallback(e=>t.jsxs(t.Fragment,{children:[t.jsx(T,{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(w,{appearance:"button",href:e.href,children:e.label},e.id))})]}),[s]);return t.jsxs("div",{className:"rp-page",children:[t.jsxs(S,{page:!0,children:[t.jsx(N,{label:s("event.kind"),side:!0,value:n.kind,onChange:n.setKind,items:n.kinds}),t.jsx(C,{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(W,{}),s("event.export")]})]}),n.error&&t.jsx(g,{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{z as Events};
@@ -1 +1 @@
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{u as a,l,cz as o,al as t,dl as i,b5 as n,B as r}from"./index-BpMcZry4.js";import{S as c}from"./SearchSelect-FeisYm3Z.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-DfNHOkHm.js";import"./ItemText-CcW62_Lb.js";import"./SearchList-DnHiclH-.js";import"./Virtualizer-D4o4sanH.js";function m({name:n,value:r,automaticFlag:m,onChange:d}){const f=a(),g=l(),p=e.useMemo(()=>o(t[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:l,...o}){const t=a();return s.jsxs(n,{narrow:!0,title:t("flags.edit"),isOpen:!0,onOpenChange:e=>{e||l()},footer:()=>s.jsx(r,{onPress:l,children:t("ui.close")}),children:[s.jsx("p",{className:"rp-note",children:e}),s.jsx(m,{name:e,...o})]})}export{m as FlagField,d as FlagPicker};
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{u as a,l,cy as o,al as t,dp as i,b2 as n,B as r}from"./index-DkZLaQoO.js";import{S as c}from"./SearchSelect-CgvsaAJS.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-B1IhE7cv.js";import"./ItemText-M_HsyHL5.js";import"./SearchList-Dzx-0VF7.js";import"./Virtualizer-BUkJzK8u.js";function m({name:n,value:r,automaticFlag:m,onChange:d}){const f=a(),g=l(),p=e.useMemo(()=>o(t[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:l,...o}){const t=a();return s.jsxs(n,{narrow:!0,title:t("flags.edit"),isOpen:!0,onOpenChange:e=>{e||l()},footer:()=>s.jsx(r,{onPress:l,children:t("ui.close")}),children:[s.jsx("p",{className:"rp-note",children:e}),s.jsx(m,{name:e,...o})]})}export{m as FlagField,d as FlagPicker};
@@ -1 +1 @@
.rp-topology{min-width:0;overflow:hidden}.rp-tree{gap:var(--rp-space-2);overscroll-behavior-x:contain;flex-direction:column;min-width:0;display:flex;overflow-x:auto}.rp-tree-hint{color:var(--rp-subtle);font-size:var(--rp-text-xs);line-height:16px;display:none}@media (width<=599.98px){.rp-tree-hint{display:block}}.rp-tree-captions{height:16px;position:relative}.rp-tree-captions>.rp-label{text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;position:absolute;top:0}.rp-tree-canvas{position:relative}.rp-tree-links{pointer-events:none;fill:none;stroke:var(--rp-muted);stroke-linecap:round;position:absolute;inset:0;overflow:visible}.rp-tree-links path{opacity:.55;transition:opacity var(--rp-duration) var(--rp-ease)}.rp-tree-links path[data-kind=direct]{stroke:var(--rp-positive)}.rp-tree-links path[data-kind=block]{stroke:var(--rp-negative)}.rp-tree-links path[data-kind=group]{stroke:var(--rp-iris)}.rp-tree-links path[data-kind=node]{stroke:var(--rp-accent)}.rp-tree-links path[data-state=active]{opacity:1}.rp-tree-links path[data-state=dim]{opacity:.1}.rp-tree-tile{box-sizing:border-box;align-items:center;gap:var(--rp-space-2);height:36px;padding:0 var(--rp-space-2h);border-radius:var(--rp-r-md);background:var(--rp-overlay);color:var(--rp-text);font:inherit;font-size:var(--rp-text-sm);text-align:start;cursor:pointer;border:2px solid #0000;line-height:16px;display:flex;position:absolute}.rp-tree-tile.dim{opacity:.35}.rp-tree-tile[data-hovered]{background:var(--rp-hl-med)}.rp-tree-tile[data-selected]{border-color:var(--rp-accent);background:var(--rp-selected)}.rp-tree-tile[data-focus-visible]{outline:var(--rp-focus-width) solid var(--rp-focus-color);outline-offset:calc(-1 * var(--rp-focus-width));border-color:#0000}.rp-tree-tile .l{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.rp-tree-tile[data-stage=rule] .l{font-family:var(--rp-font-mono);font-size:var(--rp-text-xs);font-variant-ligatures:none}.rp-tree-tile .s{font-size:var(--rp-text-xs);color:var(--rp-subtle);margin-inline-start:var(--rp-space-2)}.rp-tree-tile .s.ok{color:var(--rp-positive-text)}.rp-tree-tile .s.warn{color:var(--rp-notice-text)}.rp-tree-tile .s.err{color:var(--rp-negative-text)}.rp-tree-tile .c{font-variant-numeric:tabular-nums;color:var(--rp-subtle);flex:none;font-weight:700}
.rp-topology{min-width:0;overflow:hidden}.rp-tree{gap:var(--rp-space-2);overscroll-behavior-x:contain;flex-direction:column;min-width:0;display:flex;overflow-x:auto}.rp-tree-hint{color:var(--rp-subtle);font-size:var(--rp-text-xs);line-height:16px;display:none}@media (width<=599.98px){.rp-tree-hint{display:block}}.rp-tree-captions{height:16px;position:relative}.rp-tree-captions>.rp-label{text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;position:absolute;top:0}.rp-tree-canvas{position:relative}.rp-tree-links{pointer-events:none;fill:none;stroke:var(--rp-muted);stroke-linecap:round;position:absolute;inset:0;overflow:visible}.rp-tree-links path{opacity:.55;transition:opacity var(--rp-duration) var(--rp-ease)}.rp-tree-links path[data-kind=direct]{stroke:var(--rp-positive)}.rp-tree-links path[data-kind=block]{stroke:var(--rp-negative)}.rp-tree-links path[data-kind=group]{stroke:var(--rp-iris)}.rp-tree-links path[data-kind=node]{stroke:var(--rp-accent)}.rp-tree-links path[data-state=active]{opacity:1}.rp-tree-links path[data-state=dim]{opacity:.1}.rp-tree-tile{box-sizing:border-box;align-items:center;gap:var(--rp-space-2);height:36px;padding:0 var(--rp-space-2h);border-radius:var(--rp-r-md);background:var(--rp-overlay);color:var(--rp-text);font:inherit;font-size:var(--rp-text-sm);text-align:start;cursor:pointer;border:2px solid #0000;line-height:16px;display:flex;position:absolute}.rp-tree-tile.dim{opacity:.35}.rp-tree-tile[data-hovered]{background:var(--rp-hl-med)}.rp-tree-tile[data-selected]{border-color:var(--rp-accent);background:var(--rp-selected)}.rp-tree-tile[data-focus-visible]{outline:var(--rp-focus-width) solid var(--rp-focus-color);outline-offset:calc(-1 * var(--rp-focus-width));border-color:#0000}.rp-tree-tile .l{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.rp-tree-tile[data-stage=rule] .l{font-family:var(--rp-font-mono);font-size:var(--rp-text-xs);font-variant-ligatures:none}.rp-tree-tile .s{font-size:var(--rp-text-xs);color:var(--rp-subtle);margin-inline-start:var(--rp-space-2)}.rp-tree-tile .s.ok{color:var(--rp-positive-text)}.rp-tree-tile .s.warn{color:var(--rp-notice-text)}.rp-tree-tile .s.err{color:var(--rp-negative-text)}.rp-tree-tile .c{font-variant-numeric:tabular-nums;color:var(--rp-subtle);flex:none;font-weight:700}.rp-cell-wrap>.rp-rule{row-gap:var(--rp-space-1);flex-wrap:wrap}.rp-cell-wrap>.rp-rule>.rp-truncate{white-space:normal;overflow-wrap:anywhere}.rp-table-cards{overscroll-behavior:contain;outline:none;overflow:auto}.rp-table-cards .rp-cardview-card[data-focus-visible]{outline-offset:calc(var(--rp-focus-width) * -1)}.rp-table-cards .rp-truncate{white-space:normal;overflow-wrap:anywhere}.rp-table-cards :is(.rp-rule,.rp-chain){flex-wrap:wrap}.rp-table-cards .rp-rule>span{white-space:normal}
@@ -0,0 +1 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{N as n,O as a}from"./NodePath-Gfq-By42.js";import{l as o,s,B as r,c as l,g as i,K as d,R as u,S as c,q as p}from"./logs-DniNK6NG.js";import{a6 as m,M as f,a3 as g,H as w,G as h,c3 as b,c5 as j,w as v,bY as x,U as y,b_ as k,b$ as _,al as M,a1 as S,h as N,ak as L,o as C,a8 as T,Y as P,u as R,l as O,i as F,B as H,N as q,b4 as E,q as $,r as W,b1 as D,c7 as I,b6 as A,c2 as B,S as U,af as V,aE as G,E as K,T as Q,aC as Y,bw as z,C as J}from"./index-DkZLaQoO.js";import{h as X,f as Z,i as ee,o as te,j as ne,d as ae}from"./activity-DwYuxZaT.js";import{w as oe}from"./labels-D8xxfRTQ.js";import{c as se,C as re}from"./Coverage-C9wHHZbt.js";import{f as le}from"./nav-C5gqT-qo.js";import{L as ie}from"./AppearanceControls-5nB_BQSG.js";import{T as de}from"./Tabs-Ba8gYhNB.js";import{T as ue}from"./Toolbar-Br0J4-YM.js";import{s as ce,D as pe}from"./Table-DMzu4x5t.js";import{T as me}from"./TimeCell-xHoiaHia.js";import{a as fe,u as ge,b as we}from"./flows-Bh9kBRHT.js";import{u as he}from"./outbounds-C-QT9t_b.js";import{u as be,Q as je,R as ve}from"./useQuickRule-Row9eJav.js";import{$ as xe}from"./GridList-CC4w_Iq3.js";import{$ as ye,a as ke}from"./Virtualizer-BUkJzK8u.js";import{C as _e}from"./CardView-Cz1YW93e.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Tag-BJayNrqV.js";import"./Select-B1IhE7cv.js";import"./ItemText-M_HsyHL5.js";import"./nodes-zKvLj1EG.js";import"./useGridSelectionCheckbox-BJpzXB14.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-Bl7yHPBv.js";import"./SearchSelect-CgvsaAJS.js";import"./SearchList-Dzx-0VF7.js";import"./rule-CaRkSdGM.js";const Me=["client","rule","outbound","node"];function Se(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 Ne(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:Se(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)=>Z(e,t.unknown?"":t.key??t.label),Ce=e=>X(e,Me)?.kind,Te=new Map;function Pe(e,t,n){const a=Ce(t);return a?e.filter(e=>{const o=Ne(e,a,Te,n?.generation_id);return null!==o&&Le(a,o)===t}):[]}function Re(e,t,n,a){const o=X(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 Oe(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},v=(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=v(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 x=[o,"outbound","node"];for(const m of e){let e;for(const t of x){const n=Ne(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):v(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)),S=[...p.values()].filter(e=>M.has(e.source)||M.has(e.target)),N=new Set(S.map(e=>e.target));return{by:o,leaves:[...d.values()],outbounds:_,nodes:[...c.values()].filter(e=>N.has(e.id)),links:S}}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(lLine truncated
@@ -1 +0,0 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{O as n}from"./OutboundTag-EsmwFTLz.js";import{l as a,p as o,c as s,h as r,R as l,S as i,L as d,K as u}from"./logs-CSLBu0fr.js";import{a6 as c,M as p,a3 as m,H as f,G as g,c4 as w,c6 as h,w as b,bZ as v,U as j,b$ as x,c0 as y,al as k,a1 as _,h as M,ak as N,o as L,a8 as S,Y as T,u as C,l as P,i as F,B as O,N as R,b7 as E,ax as H,q,r as W,b4 as $,c8 as I,c3 as D,aG as A,E as U,T as B,aE as J,bx as K,S as Q,af as G,C as V}from"./index-BpMcZry4.js";import{h as Y,f as z,i as X,o as Z,j as ee,d as te}from"./activity-SP7tP5Sc.js";import{w as ne}from"./labels-D8xxfRTQ.js";import{c as ae,C as oe}from"./Coverage-Cw68fF9k.js";import{f as se}from"./nav-DTGZlsmE.js";import{L as re}from"./AppearanceControls-_LKvZPhT.js";import{T as le}from"./Tabs-DHvnlDOn.js";import{T as ie}from"./Toolbar-CG16bAGF.js";import{D as de}from"./Table-B9wBdFJO.js";import{T as ue}from"./TimeCell-DFg9wUP4.js";import{a as ce,u as pe,b as me}from"./flows-4vf3kCNL.js";import{u as fe}from"./outbounds-BWBv2v0q.js";import{u as ge,Q as we,R as he}from"./useQuickRule-DnICQncm.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Tag-DnsbMsos.js";import"./Select-DfNHOkHm.js";import"./ItemText-CcW62_Lb.js";import"./nodes-9cDj613b.js";import"./Checkbox-BiXT27lL.js";import"./Virtualizer-D4o4sanH.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./AddCircle-net7vCQK.js";import"./SearchSelect-FeisYm3Z.js";import"./SearchList-DnHiclH-.js";import"./rule-C-7UBgmI.js";const be=["client","rule","outbound","node"];function ve(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 je(e,t,n,a){switch(t){case"client":{const t=p(e.input?.src??void 0);return{label:t??"unknown",unknown:!t}}case"rule":return e.rule_expression?{label:e.rule_expression,unknown:!1,key:ve(e,a)}:{label:"unknown",unknown:!0};case"outbound":return e.outbound?{label:e.outbound,unknown:!1}:{label:"unknown",unknown:!0};case"node":{if(c(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 xe=(e,t)=>z(e,t.unknown?"":t.key??t.label),ye=e=>Y(e,be)?.kind,ke=new Map;function _e(e,t,n){const a=ye(t);return a?e.filter(e=>{const o=je(e,a,ke,n?.generation_id);return null!==o&&xe(a,o)===t}):[]}function Me(e,t,n,a){const o=Y(e,be);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 Ne(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,p=new Map,w=new Map,h=(e,t)=>{const n=e+">"+t;let a=w.get(n);return a||w.set(n,a={source:e,target:t,count:0}),a},b=(e,t,n=!1)=>{const a=xe("node",{key:e,label:t,unknown:n});let o=p.get(a);if(!o){const s=n?void 0:i.get(e),r=s&&f(s);p.set(a,o={id:a,label:t,count:0,unknown:n||void 0,latency:g(r),unavailable:"unavailable"===r?.state})}return o},v=(e,t=!1)=>{const n=xe("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}:m(e,o?.selection.tcp_member_id?"tcp":"udp",l,r,i),p=d.groups.map(e=>({name:e.name,kind:e.policy.kind,policy:e.policy.native})),f=d.member;return a={id:n,label:e,count:0,unknown:t||void 0,kind:t?"unknown":c(e)?e:p.length?"group":"unknown",groups:p,node:f&&b(f,s.get(f)??f).id},u.set(n,a),a.node&&h(n,a.node),a},j=(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 c of a?.rules??[]){const e=j(xe("rule",{key:c.rule_id,label:c.expression}),c.expression);e.must=c.must,c.outbound&&(e.outbound=v(c.outbound).id,h(e.id,e.outbound))}const x=[o,"outbound","node"];for(const c of e){let e;for(const t of x){const n=je(c,t,s,a?.generation_id);if(!n)break;const o="outbound"===t?v(n.label,n.unknown):"node"===t?b(n.key??n.label,n.label,n.unknown):j(xe(t,n),n.label,n.unknown);o.count++,e&&h(e.id,o.id).count++,e=o}}for(const c of t)v(c.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=[...w.values()].filter(e=>M.has(e.source)||M.has(e.target)),L=new Set(N.map(e=>e.target));return{by:o,leaves:[...d.values()],outbounds:_,nodes:[...p.values()].filter(e=>L.has(e.id)),links:N}}const Le=new WeakMap;function Se(e){const t=Le.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(l.source).count<l.count)&&o.set(l.source,l)}const s=new Map;for(const l of[...e.leaves,...e.outbounds]){const e=("groups"in l?l.node:l.outbound)??oLine truncated
@@ -0,0 +1 @@
import{fD as e,cP as t,cI as r,cH as o,bp as a,fF as i,dX as l,ez as n,eA as s,er as c,es as d,et as u,cQ as p,eu as g,ew as f,ex as y,cS as v,ev as b,em as h,e0 as m,fI as k,d4 as D,e5 as w,d8 as E,d7 as P,eD as M,cZ as x,c_ as S,c$ as A,eL as K,d1 as C,ea as T,eF as I,eH as N,e1 as B,eM as F,cV as R,e2 as V,d$ as H,el as L,eG as z,eI as O,d3 as U,eR as $,eS as G,e9 as _}from"./index-DkZLaQoO.js";import{b as j,a as W,c as q,e as Q,f as X,g as Z}from"./useGridSelectionCheckbox-BJpzXB14.js";import{k as J,f as Y,e as ee,l as te,g as re,i as oe,h as ae}from"./Select-B1IhE7cv.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 ce={ltr:"ArrowRight",rtl:"ArrowLeft"},de={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(c(r.current)&&r.current!==d(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||!c(r.current))&&g(r.current)}},T={},I=e.hasChildItems,N=t.selectionManager.isLink(m.key);if(null!=m&&"expandedKeys"in t){let e=t.collection.getChildren?.(m.key);I=I||[...e??[]].length>1,null==P&&!N&&"none"===t.selectionManager.selectionMode&&I&&(P=()=>t.toggleKey(m.key));let r=I?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:B,...F}=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}),R=s(m.props),V=F.hasAction?R:{},H=o(B,V,{role:"row",onKeyDownCapture:"arrow"===x||w?e=>{let o=d(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,I,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&&d(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&&(H.tabIndex=-1);let L=H.onKeyDown;if(H.onKeyDown=e=>{(e=>{let o=d(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,I,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()||L?.(e)},k){let{collection:e}=t,r=[...e];H["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(H,T)},gridCellProps:{role:"gridcell","aria-colindex":1},descriptionProps:{id:A},...F}}function pe(e,t,r,o,a,i,l,n){if(!("expandedKeys"in t)||!n&&i!==l)return!1;if(e.key===ce[a]&&t.selectLine truncated
@@ -1 +0,0 @@
import{fz as e,cQ as t,cJ as r,cI as o,bp as a,fB as i,dT as l,ew as n,ex as s,el as d,em as c,en as u,cR as p,eo as g,eq as f,er as y,cT as v,ep as b,eg as h,dY as m,fH as k,d5 as D,e1 as w,d9 as E,d8 as P,ev as M,c_ as x,c$ as S,d0 as A,eI as K,d2 as C,e6 as T,eC as B,eE as N,dZ as I,eJ as F,cW as R,d_ as L,dX as V,ef as H,eD as O,eF as z,d4 as U,eO as $,eP as _,e5 as W}from"./index-BpMcZry4.js";import{b as j,a as G,c as q,e as J,f as Q,g as X}from"./Checkbox-BiXT27lL.js";import{k as Y,f as Z,e as ee,l as te,g as re,i as oe,h as ae}from"./Select-DfNHOkHm.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={},B=e.hasChildItems,N=t.selectionManager.isLink(m.key);if(null!=m&&"expandedKeys"in t){let e=t.collection.getChildren?.(m.key);B=B||[...e??[]].length>1,null==P&&!N&&"none"===t.selectionManager.selectionMode&&B&&(P=()=>t.toggleKey(m.key));let r=B?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,...F}=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}),R=s(m.props),L=F.hasAction?R:{},V=o(I,L,{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,B,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&&(V.tabIndex=-1);let H=V.onKeyDown;if(V.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,B,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];V["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(V,T)},gridCellProps:{role:"gridcell","aria-colindex":1},descriptionProps:{id:A},...F}}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.selectionManager.focusLine truncated
@@ -1 +1 @@
import{j as s}from"./vendor-react-64fcanlc.js";import{I as e,cq as a,N as l,T as c}from"./index-BpMcZry4.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,cp as a,N as l,T as c}from"./index-DkZLaQoO.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 @@
import{j as s}from"./vendor-react-64fcanlc.js";import{b7 as r}from"./index-BpMcZry4.js";function e({className:e,...o}){return s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:10,viewBox:"0 0 12 12","aria-hidden":"true",focusable:"false",className:r("rp-icon 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};
import{j as s}from"./vendor-react-64fcanlc.js";import{b4 as r}from"./index-DkZLaQoO.js";function e({className:e,...o}){return s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:10,viewBox:"0 0 12 12","aria-hidden":"true",focusable:"false",className:r("rp-icon 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 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{u as n,l as r,by as s,m as o,aM as a,bz as i,aV as l,bA as c,bB as u,bC as d,bD as p,h as m,C as g,b6 as f,E as h,bE as x,bF as k,bk as w,bG as j,B as y}from"./index-BpMcZry4.js";import{D as b,s as v,d as T,a as S,o as E}from"./auth-BJk40oQc.js";import{L as N,a as C,P as D,S as L}from"./AppearanceControls-_LKvZPhT.js";import{L as _}from"./LinkOut-Bzsd9jX9.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-CcW62_Lb.js";const A=/^[A-Za-z0-9_.-]{1,64}$/;async function q(e,t){try{return v(await T(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 S(e,t)?"token":"no-api":"token"}}function P(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 R(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 F=e=>"string"!=typeof e&&"login.rateLimited"===e.key;function H(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,[k,w]=e.useState({attempt:0,error:null});e.useEffect(()=>{if(d)return;const e=new AbortController;return q(a,e.signal).then(e=>h(e),t=>{e.signal.aborted||w(e=>({...e,error:t instanceof Error?t:new Error(String(t))}))}),()=>e.abort()},[a,k.attempt,d]);const[j,y]=e.useState(""),v=i(a),[T,S]=e.useState(v?b.username:""),[E,N]=e.useState(v?b.password:""),[C,D]=e.useState(""),[L,_]=e.useState(!1),[H,U]=e.useState(!1),[M,z]=e.useState({}),[B,O]=e.useState(null),[G,V]=e.useState(0),[Z,$]=e.useState(0),[J,K]=e.useState(Date.now);e.useEffect(()=>{if(Z<=J)return;const e=setTimeout(()=>K(Date.now()),(Z-J)%1e3||1e3);return()=>clearTimeout(e)},[Z,J]);const Q=function(e,t){return Math.max(0,Math.ceil((e-t)/1e3))}(Z,J),W=(e,t)=>n=>{t(n),M[e]&&z(({[e]:t,...n})=>n)},X=async e=>{const n=function(e,t,n,r){const s={};t?A.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,E,C);if(z(n),Object.keys(n).length)return;U(!0);const r=await I(t,a,e,{username:T,password:E});if(r)if(U(!1),"error"in r)O(p("login.failed",{error:l(r.error,p)}));else{if(r.wait){const e=Date.now();K(e),$(e+1e3*r.wait)}r.switchTo&&(h(r.switchTo),D("")),O(r)}else location.reload()},Y="setup"===x||"login"===x,ee=e=>M[e]?p(M[e]):void 0;return{kind:x,discoveryError:k.error,retryDiscovery:()=>w(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:v&&"login"===x?p("login.demoNote",b):null,alert:R({kind:x,failure:B&&!Q&&F(B)?null:B,attempt:G,ended:g,rejected:u},p),busy:H,token:j,setToken:y,username:T,setUsername:W("username",S),usernameError:ee("username"),password:E,setPassword:W("password",N),passwordError:ee("password"),confirm:C,setConfirm:W("confirm",D),confirmError:ee("confirm"),submit:()=>{H||Q||null===x||"no-api"===x||(O(null),V(e=>e+1),Y?X(x):(()=>{if(!j.trim())return;const e=P(t,a,j);e?O({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:L?"text":"password",toggle:()=>_(e=>!e),toggleText:p(Y?L?"login.hidePassword":"login.showPassword":L?"settings.hideToken":"settings.showToken"),guideHref:o(m),requirementsHref:o(m,"no-native-api")}}function U({profileId:e,api:r,backend:s,rejected:o,missingApi:a,lang:i,pickLang:l,dark:c,thLine truncated
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{u as n,l as r,bx as s,m as o,aJ as a,by as i,aS as l,bz as c,bA as u,bB as d,bC as p,h as m,C as g,b3 as f,E as h,bD as x,bE as w,bi as k,bF as j,B as y}from"./index-DkZLaQoO.js";import{D as b,s as v,d as T,a as S,o as E}from"./auth-C9L8giMi.js";import{L as N,a as C,P as D,S as L}from"./AppearanceControls-5nB_BQSG.js";import{L as _}from"./LinkOut-qIg2xTwZ.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-M_HsyHL5.js";const A=/^[A-Za-z0-9_.-]{1,64}$/;async function q(e,t){try{return v(await T(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 S(e,t)?"token":"no-api":"token"}}function P(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 R(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 F=e=>"string"!=typeof e&&"login.rateLimited"===e.key;function H(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 q(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(""),v=i(a),[T,S]=e.useState(v?b.username:""),[E,N]=e.useState(v?b.password:""),[C,D]=e.useState(""),[L,_]=e.useState(!1),[H,U]=e.useState(!1),[z,B]=e.useState({}),[J,M]=e.useState(null),[O,K]=e.useState(0),[Z,$]=e.useState(0),[G,Q]=e.useState(Date.now);e.useEffect(()=>{if(Z<=G)return;const e=setTimeout(()=>Q(Date.now()),(Z-G)%1e3||1e3);return()=>clearTimeout(e)},[Z,G]);const V=function(e,t){return Math.max(0,Math.ceil((e-t)/1e3))}(Z,G),W=(e,t)=>n=>{t(n),z[e]&&B(({[e]:t,...n})=>n)},X=async e=>{const n=function(e,t,n,r){const s={};t?A.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,E,C);if(B(n),Object.keys(n).length)return;U(!0);const r=await I(t,a,e,{username:T,password:E});if(r)if(U(!1),"error"in r)M(p("login.failed",{error:l(r.error,p)}));else{if(r.wait){const e=Date.now();Q(e),$(e+1e3*r.wait)}r.switchTo&&(h(r.switchTo),D("")),M(r)}else location.reload()},Y="setup"===x||"login"===x,ee=e=>z[e]?p(z[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:v&&"login"===x?p("login.demoNote",b):null,alert:R({kind:x,failure:J&&!V&&F(J)?null:J,attempt:O,ended:g,rejected:u},p),busy:H,token:j,setToken:y,username:T,setUsername:W("username",S),usernameError:ee("username"),password:E,setPassword:W("password",N),passwordError:ee("password"),confirm:C,setConfirm:W("confirm",D),confirmError:ee("confirm"),submit:()=>{H||V||null===x||"no-api"===x||(M(null),K(e=>e+1),Y?X(x):(()=>{if(!j.trim())return;const e=P(t,a,j);e?M({key:e}):location.reload()})())},canSubmit:null!==x&&"no-api"!==x&&!V&&(Y||!!j.trim()),submitText:V?p("login.retryIn",{n:V}):p("setup"===x?"login.create":"login"===x?"login.signIn":"login.submit"),secretType:L?"text":"password",toggle:()=>_(e=>!e),toggleText:p(Y?L?"login.hidePassword":"login.showPassword":L?"settings.hideToken":"settings.showToken"),guideHref:o(m),requirementsHref:o(m,"no-native-api")}}function U({profileId:e,api:r,backend:s,rejected:o,missingApi:a,lang:i,pickLang:l,dark:c,thLine truncated
@@ -1 +0,0 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{bI as r,u as s,al as a,l,dv as o,bP as n,B as i,cf as c,dw as d,C as g,dx as m,U as u,a1 as p,q as h,x as f,cb as x,bT as v,T as j,p as b,bG as w,ch as y,E as M}from"./index-BpMcZry4.js";import{aK as T,a as N,F as k,aL as C,D as $}from"./activity-SP7tP5Sc.js";import{C as R}from"./ItemText-CcW62_Lb.js";import{P as S,Q as A,K as L,L as O,A as P}from"./logs-CSLBu0fr.js";import{T as W}from"./Toolbar-CG16bAGF.js";import{D}from"./Table-B9wBdFJO.js";import{d as F,e as q}from"./files-Dt8K7QfP.js";import{r as B}from"./recorder-BHyqDNp5.js";import{u as E,C as H}from"./Copy-Bp9aWYUl.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-9cDj613b.js";import"./AppearanceControls-_LKvZPhT.js";import"./Select-DfNHOkHm.js";import"./Checkbox-BiXT27lL.js";import"./Virtualizer-D4o4sanH.js";const I=new WeakMap;function K(e){let t=I.get(e);return void 0===t&&I.set(e,t=Date.parse(e.ts)),t}const _=[...r].reverse();function J({records:m,offered:u,minimum:p,setMinimum:h,waiting:f}){const x=s(),v=a[l()],j=N(),b=e.useMemo(()=>function(e,t,r,s=24){const a=r?_.indexOf(r):_.length-1,l=_.filter((e,r)=>t.includes(e)&&r<=a),o=e.map(K).filter(Number.isFinite);if(!o.length)return{rows:l.map(e=>({level:e,counts:[]})),buckets:[],width:0,busiest:null};const n=Math.min(...o),i=Math.max(...o),c=T(n,i,s),d=c.length>1?c[1]-c[0]:Math.max(i-n,6e4),g=new Map(l.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=K(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:l.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(v),[v]),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(R,{}),r]})}]});return new Map(e)},[p,h,x]),$=e.useMemo(()=>{const e={error:j.negative,warn:j.notice,info:j.info,debug:j.subtle,trace:j.muted},t=b.buckets.map(y);return{columns:b.buckets.map(e=>w.format(e)),rows:b.rows.map(r=>{const{text:s,label:a}=M.get(r.level);return{id:r.level,color:e[r.level],label:a,counts:r.counts,titles:r.counts.map((e,r)=>x("log.chart.cell",{time:t[r],level:s,n:e}))}})}},[b,y,w,M,j,x]);if(!m.length)return f?t.jsx(U,{heads:M,levels:b.rows.map(e=>e.level),time:w.format(0)}):null;const S=b.busiest,A=S?S.errors?[{label:x("log.chart.errors"),value:x("log.chart.count",{n:S.errors}),icon:t.jsx(c,{}),tone:"negative"},{label:x("log.chart.peakErrors"),icon:t.jsx(d,{}),tint:"c1",value:y(S.start),caption:x("log.chart.count",{n:S.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(S.start),caption:x("log.chart.count",{n:S.count})}]:[];return t.jsxs("div",{className:"rp-chart-page",children:[t.jsx(k,{facts:A}),t.jsx(g,{title:x("log.chart.title"),note:x("log.chart.sample",{n:m.length}),children:t.jsx(C,{label:x("log.chart.title"),columns:$.columns,rows:$.rows})})]})}function U({heads:e,levels:r,time:a}){const l=s(),o=[{label:l("log.chart.errors"),value:l("log.chart.count",{n:0}),icon:t.jsx(c,{}),tint:"c5"},{label:l("log.chart.peak"),icon:t.jsx(d,{}),tint:"c1",value:`${a}–${a}`,caption:l("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(k,{facts:o}),t.jsx(m,{})]}),t.jsxs("div",{className:"rp-chart-hold",children:[t.jsx(g,{title:l("log.chart.title"),note:l("log.chart.sample",{n:0}),children:t.jsx(C,{label:l("log.chart.title"),columns:[a],rows:n})}),t.jsx(m,{})]})]})}const z={trace:"muted",debug:"neutral",info:"info",warn:"warn",error:"err"},G=new WeakMap;function Q(e,t,s,a,l,o=new Set,i){return{rows:e.flatMap(e=>{const t=function(e,t,r){const s=G.get(e);if(s&&s.locale===t)return s.row;const a={id:e.id,timestamp:p(e.ts,t),iso:e.ts,levelText:u(n,e.level,r),tone:z[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 G.set(e,{locale:t,row:a}),a}(e,a,l);return o.has(e)?[{...t,id:`gap ${e.id}`,timestamp:"",iso:"",levelText:"",target:"",gap:!0,message:l("log.gap")},t]:[t]}),levels:t.map(e=>{return{id:e,label:(t=e,i&&r.indexOf(t)<r.indexOf(i)?l("log.levelNotRecorded",{level:u(n,e,l)}):u(n,e,l))};var t}),recordedText:i?l("log.recorded",{level:u(n,i,l)}):null,exportBase:`${s||"engLine truncated
@@ -0,0 +1 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{bH as r,u as s,al as l,l as a,dy as o,bO as n,B as i,ce as c,dz as d,C as g,dA as m,U as u,a1 as p,q as h,x as f,ca as x,bS as v,T as j,p as b,bF as w,cg as y,E as M}from"./index-DkZLaQoO.js";import{aL as N,a as C,F as T,aM as k,D as S}from"./activity-DwYuxZaT.js";import{C as $}from"./ItemText-M_HsyHL5.js";import{U as O,X as A,L as R,K as L,q as W,A as F}from"./logs-DniNK6NG.js";import{T as q}from"./Toolbar-Br0J4-YM.js";import{D}from"./Table-DMzu4x5t.js";import{d as P,e as H}from"./files-Dt8K7QfP.js";import{r as B}from"./recorder-BHyqDNp5.js";import{u as E,C as U}from"./Copy-xLJK18ri.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-zKvLj1EG.js";import"./AppearanceControls-5nB_BQSG.js";import"./Select-B1IhE7cv.js";import"./useGridSelectionCheckbox-BJpzXB14.js";import"./Virtualizer-BUkJzK8u.js";const _=new WeakMap;function z(e){let t=_.get(e);return void 0===t&&_.set(e,t=Date.parse(e.ts)),t}const J=[...r].reverse();function X({records:m,offered:u,minimum:p,setMinimum:h,waiting:f}){const x=s(),v=l[a()],j=C(),b=e.useMemo(()=>function(e,t,r,s=24){const l=r?J.indexOf(r):J.length-1,a=J.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=N(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(v),[v]),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($,{}),r]})}]});return new Map(e)},[p,h,x]),S=e.useMemo(()=>{const e={error:j.negative,warn:j.notice,info:j.info,debug:j.subtle,trace:j.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,j,x]);if(!m.length)return f?t.jsx(G,{heads:M,levels:b.rows.map(e=>e.level),time:w.format(0)}):null;const O=b.busiest,A=O?O.errors?[{label:x("log.chart.errors"),value:x("log.chart.count",{n:O.errors}),icon:t.jsx(c,{}),tone:"negative"},{label:x("log.chart.peakErrors"),icon:t.jsx(d,{}),tint:"c1",value:y(O.start),caption:x("log.chart.count",{n:O.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(O.start),caption:x("log.chart.count",{n:O.count})}]:[];return t.jsxs("div",{className:"rp-chart-page",children:[t.jsx(T,{facts:A}),t.jsx(g,{title:x("log.chart.title"),note:x("log.chart.sample",{n:m.length}),children:t.jsx(k,{label:x("log.chart.title"),columns:S.columns,rows:S.rows})})]})}function G({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(T,{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(k,{label:a("log.chart.title"),columns:[l],rows:n})}),t.jsx(m,{})]})]})}const I={trace:"muted",debug:"neutral",info:"info",warn:"warn",error:"err"},K=new WeakMap;function Q(e,t,s,l,a,o=new Set,i){return{rows:e.flatMap(e=>{const t=function(e,t,r){const s=K.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:I[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 K.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",{level:u(n,i,a)}Line truncated
@@ -0,0 +1 @@
import{j as e}from"./vendor-react-64fcanlc.js";import{N as r,T as a}from"./index-DkZLaQoO.js";import{L as n}from"./Tag-BJayNrqV.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,2 +0,0 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./XhttpOptions-CZ9pFI3y.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-BpMcZry4.js","./index--6K0oddI.css","./logs-CSLBu0fr.js","./Select-DfNHOkHm.js","./ItemText-CcW62_Lb.js","./AppearanceControls-_LKvZPhT.js","./nodes-9cDj613b.js","./Toolbar-CG16bAGF.js","./Tabs-DHvnlDOn.js","./Checkbox-BiXT27lL.js","./activity-SP7tP5Sc.js","./activity-Db7VRWAG.css","./TimeCell-DFg9wUP4.js","./GridList-CZtL3cpM.js","./ProbeOptionsDialog-DFlcv-Ro.js","./Table-B9wBdFJO.js","./Virtualizer-D4o4sanH.js","./Tag-DnsbMsos.js","./FlagPicker-xvDaGCKr.js","./SearchSelect-FeisYm3Z.js","./SearchList-DnHiclH-.js","./outbounds-BWBv2v0q.js","./probe-NjjZcqcD.js","./nav-Cr9xMfh-.js","./SubscriptionFields-BL4cB4Hn.js","./NumberField-DIugwoyR.js"])))=>i.map(i=>d[i]);
import{T as e,ci as n,u as a,S as s,af as r,al as o,l as t,q as i,r as l,cc as d,c5 as c,E as u,a8 as m,ce as p,cf as g,C as h,ak as v,N as b,B as f,ax as y,p as x,cg as j,I as k,b4 as w,ap as N,dg as S,aE as P,a as M,b as A,bG as C,dh as O,di as L,b9 as T,A as G,aK as R,v as F,c9 as _,c2 as E,aU as D,h as q,aV as I,Y as B,cB as H,cC as $,x as Q,w as J,dj as U,aa as V,c6 as W,c4 as z,aO as K,d as X,cD as Y,aN as Z,av as ee,dk as ne,b5 as ae,cy as se,bF as re,ch as oe,dd as te,aL as ie,_ as le}from"./index-BpMcZry4.js";import{j as de,r as ce}from"./vendor-react-64fcanlc.js";import{L as ue,C as me,l as pe}from"./AppearanceControls-_LKvZPhT.js";import{T as ge}from"./Tabs-DHvnlDOn.js";import{h as he,c as ve,g as be,S as fe,K as ye,n as xe,A as je,L as ke,z as we,v as Ne,u as Se,B as Pe,E as Me,e as Ae,w as Ce}from"./logs-CSLBu0fr.js";import{ad as Oe,a1 as Le,ae as Te,af as Ge,C as Re,F as Fe,ag as _e,ah as Ee,ai as De,aj as qe,q as Ie,ak as Be,al as He,am as $e,an as Qe,ao as Je,ap as Ue,aq as Ve,ar as We,V as ze,as as Ke,at as Xe,au as Ye,av as Ze,aw as en,ax as nn,ay as an,az as sn,aA as rn,aB as on,aC as tn,aD as ln,aE as dn,aF as cn,aG as un,Q as mn}from"./activity-SP7tP5Sc.js";import{T as pn}from"./Toolbar-CG16bAGF.js";import{T as gn}from"./TimeCell-DFg9wUP4.js";import{a as hn,$ as vn}from"./GridList-CZtL3cpM.js";import{P as bn}from"./ProbeOptionsDialog-DFlcv-Ro.js";import{D as fn,c as yn}from"./Table-B9wBdFJO.js";import{F as xn,T as jn,L as kn}from"./Tag-DnsbMsos.js";import{FlagField as wn}from"./FlagPicker-xvDaGCKr.js";import{S as Nn}from"./SearchSelect-FeisYm3Z.js";import{u as Sn}from"./outbounds-BWBv2v0q.js";import{aa as Pn,y as Mn,ab as An,ac as Cn,A as On,ad as Ln,ae as Tn,m as Gn,O as Rn,r as Fn,v as _n,l as En,q as Dn,R as qn,af as In}from"./nodes-9cDj613b.js";import{$ as Bn}from"./SearchList-DnHiclH-.js";import{a as Hn,p as $n}from"./probe-NjjZcqcD.js";import{n as Qn}from"./nav-Cr9xMfh-.js";function Jn({label:e,items:n,selected:o,onSelect:t,loading:i,empty:l,children:d}){const c=a();return de.jsx(vn,{className:"rp-cardview","aria-label":e,layout:"grid",items:n,dependencies:[d],selectionMode:"single",selectionBehavior:"replace",disallowEmptySelection:!0,selectedKeys:o?[o]:[],onSelectionChange:e=>{if("all"===e)return;const n=[...e][0];null!=n&&t(String(n))},renderEmptyState:()=>i?de.jsx(s,{shape:"cards",count:3,height:224,grid:!0}):de.jsx(r,{children:l??c("ui.empty")}),children:d})}function Un({id:a,title:s,titleFull:r,meta:o,actions:t,children:i}){return de.jsxs(hn,{id:a,textValue:s,className:n("rp-cardview-card"),children:[de.jsxs("div",{className:"rp-cardview-head",children:[de.jsx(e,{className:"rp-cardview-title",text:r,children:s}),t&&de.jsx("span",{className:"rp-cardview-actions",children:t})]}),o&&de.jsx("div",{className:"rp-cardview-meta",children:o}),i]})}function Vn(e,n){return e.split("{names}").map((e,a)=>de.jsxs(ce.Fragment,{children:[a>0&&n,e]},a))}function Wn(e,n,a,s){const r=v(n,["",""]),o=e.slice(0,6).map((e,n)=>de.jsxs(ce.Fragment,{children:[n>0&&r,de.jsx(ue,{appearance:"link",layout:"inline",href:s.get(e.id)??qe([e.id]),children:de.jsx(b,{name:e.name})})]},e.id));if(e.length<=6)return o;const t=de.jsx(ue,{appearance:"link",layout:"inline",href:qe(e.map(e=>e.id)),children:a("nodes.latency.more",{n:e.length-6})});return a("nodes.latency.andMore",{names:"{names}",more:"{more}"}).split(/(\{names\}|\{more\})/).map((e,n)=>de.jsx(ce.Fragment,{children:"{names}"===e?o:"{more}"===e?t:e},n))}const zn=e=>[{label:e("nodes.latency.lowest"),icon:de.jsx(p,{}),tint:"c2",value:"",caption:" "},{label:e("nodes.latency.highest"),icon:de.jsx(Re,{}),tint:"c4",value:"",caption:" "},{label:e("ui.unavailable"),icon:de.jsx(g,{}),tint:"c5",value:""}];function Kn(){const e=a(),n=t(),{nodes:v,by:b,setBy:f,view:y,hrefs:x}=function(){const e=o[t()],n=i().data?.resources,a=he(l(n,"nodes",{whileLoading:!0})),s=ve(l(n,"groups",{whileLoading:!1})),r=be(l(n,"providers",{whileLoading:!0})),[u,m]=ce.useState("group"),p=d(),g=c(a.data,p),h=c(s.data,p),v=c(r.data,p),b=ce.useMemo(()=>Oe(g??[],h,u,e),[g,h,u,e]),f=ce.useMemo(()=>new Map((g??[]).map(e=>[e.id,Le(e,v?.providers??[],!0)])),[g,v]);return{nodes:{...a,data:g},by:u,setBy:m,view:b,hrefs:f}}();if(v.error&&!v.data)return de.jsx(u,{error:v.error,onRetry:v.refetch});const j=!v.data;if(v.data&&!v.data.length)return de.jsx(r,{children:e("ui.empty")});const k=Te(y),{measured:w,down:N}=Ge(y),S=w[0],P=w.at(-1),M=S&&P?[{label:e("nodes.latency.lowest"),icon:de.jsx(p,{}),tint:"c2",value:S.name,nodeName:!0,valueRole:"name",caption:m(S.latest,e)},{label:e("nodes.latency.highest"),icon:de.jsx(Re,{}),tint:"c4",value:P.name,nodeName:!0,valueRole:"name",caption:m(P.latest,e)},{label:e("ui.unavailable"),value:e("nodes.latency.count",{n:N}),icon:de.jsx(g,{}),tint:"c5",tone:N?"negative":void 0}]:[],A=a=>{const s=a.filter(e=>"unavailable"===e.state),r=a.filter(e=>"unmeasured"===e.state);return[...s.length?[Vn(e("nodes.latency.unavailableList",{n:s.length,names:"{names}"}),Wn(s,n,e,x))]Line truncated
@@ -0,0 +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)}
@@ -0,0 +1,2 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./XhttpOptions-scgNhwKR.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-DkZLaQoO.js","./index-OR7DFCdG.css","./logs-DniNK6NG.js","./Select-B1IhE7cv.js","./ItemText-M_HsyHL5.js","./AppearanceControls-5nB_BQSG.js","./nodes-zKvLj1EG.js","./Toolbar-Br0J4-YM.js","./Tabs-Ba8gYhNB.js","./useGridSelectionCheckbox-BJpzXB14.js","./Table-DMzu4x5t.js","./Virtualizer-BUkJzK8u.js","./activity-DwYuxZaT.js","./activity-Db7VRWAG.css","./TimeCell-xHoiaHia.js","./CardView-Cz1YW93e.js","./GridList-CC4w_Iq3.js","./ProbeOptionsDialog-CbXH9b0U.js","./Tag-BJayNrqV.js","./FlagPicker-ewb3VJnn.js","./SearchSelect-CgvsaAJS.js","./SearchList-Dzx-0VF7.js","./outbounds-C-QT9t_b.js","./probe-P4V7qZUr.js","./nav-BpCoFZ5Q.js","./SubscriptionFields-Ba8FbY5-.js","./NumberField-CN_dFkWR.js"])))=>i.map(i=>d[i]);
import{de as e,df as n,d9 as a,dg as s,dh as r,cp as o,di as t,ce as i,al as l,l as d,q as c,r as u,cb as m,c4 as p,u as h,E as g,af as b,a8 as v,cd as f,C as y,S as x,ak as j,N as k,B as w,T as S,cf as N,I as P,b1 as M,ap as A,dj as C,aC as L,dk as R,dl as T,a as O,b as G,bF as F,b6 as _,A as E,aI as I,v as q,c8 as D,c1 as B,aR as H,h as $,aS as J,Y as Q,cA as U,cB as W,x as z,w as K,dm as V,aa as X,c5 as Y,c3 as Z,aL as ee,d as ne,aJ as ae,cC as se,aK as re,av as oe,dn as te,b2 as ie,cx as le,bE as de,cg as ce,dc as ue,p as me,_ as pe}from"./index-DkZLaQoO.js";import{j as he,r as ge}from"./vendor-react-64fcanlc.js";import{L as be,C as ve,l as fe}from"./AppearanceControls-5nB_BQSG.js";import{T as ye}from"./Tabs-Ba8gYhNB.js";import{D as xe,c as je}from"./Table-DMzu4x5t.js";import{g as ke,c as we,f as Se,S as Ne,K as Pe,o as Me,B as Ae,L as Ce,A as Le,q as Re,F as Te,x as Oe,u as Ge,G as Fe,H as _e,y as Ee}from"./logs-DniNK6NG.js";import{ad as Ie,a1 as qe,ae as De,af as Be,C as He,F as $e,ag as Je,ah as Qe,ai as Ue,aj as We,q as ze,ak as Ke,al as Ve,am as Xe,an as Ye,ao as Ze,ap as en,aq as nn,ar as an,as as sn,at as rn,V as on,au as tn,av as ln,aw as dn,ax as cn,ay as un,az as mn,aA as pn,aB as hn,aC as gn,aD as bn,aE as vn,aF as fn,aG as yn,Q as xn}from"./activity-DwYuxZaT.js";import{T as jn}from"./Toolbar-Br0J4-YM.js";import{T as kn}from"./TimeCell-xHoiaHia.js";import{C as wn,a as Sn}from"./CardView-Cz1YW93e.js";import{P as Nn}from"./ProbeOptionsDialog-CbXH9b0U.js";import{F as Pn,T as Mn,L as An}from"./Tag-BJayNrqV.js";import{FlagField as Cn}from"./FlagPicker-ewb3VJnn.js";import{S as Ln}from"./SearchSelect-CgvsaAJS.js";import{u as Rn}from"./outbounds-C-QT9t_b.js";import{ab as Tn,B as On,ac as Gn,ad as Fn,C as _n,ae as En,af as In,q as qn,e as Dn,N as Bn,r as Hn,x as $n,o as Jn,v as Qn,S as Un,ag as Wn}from"./nodes-zKvLj1EG.js";import{$ as zn}from"./SearchList-Dzx-0VF7.js";import{b as Kn,p as Vn}from"./probe-P4V7qZUr.js";import{n as Xn}from"./nav-BpCoFZ5Q.js";function Yn(l){const{label:d,description:c,error:u,placeholder:m,necessityIndicator:p,...h}=e(l);return he.jsxs(n,{...h,className:"rp-field",isInvalid:!!u,validationBehavior:"aria",children:[he.jsxs(a,{className:"rp-label",children:[d,he.jsx(s,{isRequired:h.isRequired,necessityIndicator:p})]}),he.jsx(r,{className:"rp-input rp-textarea",rows:3,placeholder:m}),c&&he.jsx(o,{slot:"description",className:"rp-label",children:c}),u&&he.jsxs(t,{className:"rp-field-error",children:[he.jsx(i,{}),u]})]})}function Zn(e,n){return e.split("{names}").map((e,a)=>he.jsxs(ge.Fragment,{children:[a>0&&n,e]},a))}function ea(e,n,a,s){const r=j(n,["",""]),o=e.slice(0,6).map((e,n)=>he.jsxs(ge.Fragment,{children:[n>0&&r,he.jsx(be,{appearance:"link",layout:"inline",href:s.get(e.id)??We([e.id]),children:he.jsx(k,{name:e.name})})]},e.id));if(e.length<=6)return o;const t=he.jsx(be,{appearance:"link",layout:"inline",href:We(e.map(e=>e.id)),children:a("nodes.latency.more",{n:e.length-6})});return a("nodes.latency.andMore",{names:"{names}",more:"{more}"}).split(/(\{names\}|\{more\})/).map((e,n)=>he.jsx(ge.Fragment,{children:"{names}"===e?o:"{more}"===e?t:e},n))}const na=e=>[{label:e("nodes.latency.lowest"),icon:he.jsx(f,{}),tint:"c2",value:"",caption:" "},{label:e("nodes.latency.highest"),icon:he.jsx(He,{}),tint:"c4",value:"",caption:" "},{label:e("ui.unavailable"),icon:he.jsx(i,{}),tint:"c5",value:""}];function aa(){const e=h(),n=d(),{nodes:a,by:s,setBy:r,view:o,hrefs:t}=function(){const e=l[d()],n=c().data?.resources,a=ke(u(n,"nodes",{whileLoading:!0})),s=we(u(n,"groups",{whileLoading:!1})),r=Se(u(n,"providers",{whileLoading:!0})),[o,t]=ge.useState("group"),i=m(),h=p(a.data,i),g=p(s.data,i),b=p(r.data,i),v=ge.useMemo(()=>Ie(h??[],g,o,e),[h,g,o,e]),f=ge.useMemo(()=>new Map((h??[]).map(e=>[e.id,qe(e,b?.providers??[],!0)])),[h,b]);return{nodes:{...a,data:h},by:o,setBy:t,view:v,hrefs:f}}();if(a.error&&!a.data)return he.jsx(g,{error:a.error,onRetry:a.refetch});const j=!a.data;if(a.data&&!a.data.length)return he.jsx(b,{children:e("ui.empty")});const k=De(o),{measured:w,down:S}=Be(o),N=w[0],P=w.at(-1),M=N&&P?[{label:e("nodes.latency.lowest"),icon:he.jsx(f,{}),tint:"c2",value:N.name,nodeName:!0,valueRole:"name",caption:v(N.latest,e)},{label:e("nodes.latency.highest"),icon:he.jsx(He,{}),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:he.jsx(i,{}),tint:"c5",tone:S?"negative":void 0}]:[],A=a=>{const s=a.filter(e=>"unavailable"===e.state),r=a.filter(e=>"unmeasured"===e.state);return[...s.length?[Zn(e("nodes.latency.unavailableList",{n:s.length,names:"{names}"}),ea(s,n,e,t))]:[],...r.length?[Zn(e("nodes.latency.unmeasuredList",{n:r.length,names:"{names}"}),ea(r,n,e,t))]:[]]};return he.jsxs("div",{className:"rp-chart-page",children:[he.jsx($e,{facts:j?na(e):M,loading:j}),he.jsx(y,{title:e("ui.nodeLatency"),note:a.data&&e("nodes.latency.sample",{n:a.data.length}),aside:he.jsx(Ne,{label:e("nodes.latenLine truncated
@@ -0,0 +1 @@
import{r as e,a as t,$ as i,j as a}from"./vendor-react-64fcanlc.js";import{fW as s,eC as n,fX as r,cH as l,cS as o,fd as u,en as c,eo as d,cO as m,fY as p,eq as v,f9 as f,cP as h,fJ as b,fZ as g,cN as y,f_ as N,ey as S,cI as x,fV as P,cJ as D,f$ as w,eN as E,es as V,ff as M,g0 as F,cT as R,cU as I,cV as C,cW as B,cX as O,bp as T,cY as j,d6 as L,cZ as k,c$ as $,g1 as U,g2 as q,d0 as A,eL as W,d1 as G,d2 as K,c_ as z,I as H,de as _,u as Y,cs as Z,d9 as X,dg as J,g3 as Q,cj as ee,b4 as te,cp as ie,di as ae,ce as se,g4 as ne}from"./index-DkZLaQoO.js";const re=new RegExp("^.*\\(.*\\).*$"),le=["latn","arab","hanidec","deva","beng","fullwide"];class oe{constructor(e,t={}){this.locale=e,this.options=t}parse(e){return ce(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,i){return ce(this.locale,this.options,e).isValidPartialNumber(e,t,i)}getNumberingSystem(e){return ce(this.locale,this.options,e).options.numberingSystem}}const ue=new Map;function ce(e,t,i){let a=de(e,t);if(!e.includes("-nu-")&&!a.isValidPartialNumber(i))for(let s of le)if(s!==a.options.numberingSystem){let a=de(e+(e.includes("-u-")?"-nu-":"-u-nu-")+s,t);if(a.isValidPartialNumber(i))return a}return a}function de(e,t){let i=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():""),a=ue.get(i);return a||(a=new me(e,t),ue.set(i,a)),a}class me{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=ve.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:ve[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=>!pe.has(e.type)).map(e=>he(e.value)),f=l.flatMap(e=>e.filter(e=>!pe.has(e.type)).map(e=>he(e.value))),h=[...new Set([...v,...f])].sort((e,t)=>t.length-e.length),b=0===h.length?new RegExp("\\p{White_Space}|\\p{Cf}","gu"):new RegExp(`${h.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 oe(this.locale,e).parse(new s(this.locale,e).format(a))}return"accounting"===this.options.currencySign&&re.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.group&&t&&(eLine truncated
@@ -1 +0,0 @@
import{r as e,a as t,$ as i,j as a}from"./vendor-react-64fcanlc.js";import{g1 as s,eh as n,eu as r,g2 as l,cI as o,cT as u,fe as c,ei as d,cP as m,g3 as p,ek as v,fa as h,cQ as f,fI as b,g4 as g,cO as y,g5 as N,es as S,cJ as x,g0 as P,cK as D,g6 as w,eK as E,em as V,g7 as M,g8 as F,cU as R,cV as I,cW as C,cX as B,cY as O,bp as T,cZ as j,d7 as L,c_ as k,d0 as $,g9 as U,ga as q,d1 as A,eI as K,d2 as G,d3 as W,c$ as z,I as H,df as _,u as Y,ct as Z,da as X,fg as J,gb as Q,ck as ee,b7 as te,cq as ie,gc as ae,cf as se,gd as ne}from"./index-BpMcZry4.js";const re=new RegExp("^.*\\(.*\\).*$"),le=["latn","arab","hanidec","deva","beng","fullwide"];class oe{constructor(e,t={}){this.locale=e,this.options=t}parse(e){return ce(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,i){return ce(this.locale,this.options,e).isValidPartialNumber(e,t,i)}getNumberingSystem(e){return ce(this.locale,this.options,e).options.numberingSystem}}const ue=new Map;function ce(e,t,i){let a=de(e,t);if(!e.includes("-nu-")&&!a.isValidPartialNumber(i))for(let s of le)if(s!==a.options.numberingSystem){let a=de(e+(e.includes("-u-")?"-nu-":"-u-nu-")+s,t);if(a.isValidPartialNumber(i))return a}return a}function de(e,t){let i=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():""),a=ue.get(i);return a||(a=new me(e,t),ue.set(i,a)),a}class me{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=ve.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:ve[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=>!pe.has(e.type)).map(e=>fe(e.value)),h=l.flatMap(e=>e.filter(e=>!pe.has(e.type)).map(e=>fe(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 oe(this.locale,e).parse(new s(this.locale,e).format(a))}return"accounting"===this.options.currencySign&&re.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=he(e,",",this.symbols.decimal),e=he(e,String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&t&&(eLine truncated
@@ -1 +0,0 @@
import{j as r}from"./vendor-react-64fcanlc.js";import"./index-BpMcZry4.js";import{L as e}from"./Tag-DnsbMsos.js";function o({label:o,href:s}){return s?r.jsx(e,{href:s,children:o}):o}export{o as O};
@@ -1 +0,0 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{ah as a,Q as s,aO as r,aZ as o,a_ as i,b0 as n,a1 as l,a0 as c,a5 as d,aX as p,X as u,h as v,Y as m,u as h,l as f,al as g,q as x,am as b,r as j,ao as y,an as w,x as k,bT as _,p as N,E as H,T as S,C as L,ax as R,bU as A,af as C,av as I,aD as V,S as D,P as E,B as P,bV as W}from"./index-BpMcZry4.js";import{d as B,e as F}from"./files-Dt8K7QfP.js";import{r as q,e as M,u as O,b as T,D as K,R as U}from"./activity-SP7tP5Sc.js";import{e as J,K as X,A as z}from"./logs-CSLBu0fr.js";import{L as Q}from"./AppearanceControls-_LKvZPhT.js";import{D as Y,t as Z}from"./Table-B9wBdFJO.js";import{D as G}from"./DaeCode-DEjXqvav.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-9cDj613b.js";import"./ItemText-CcW62_Lb.js";import"./Select-DfNHOkHm.js";import"./Checkbox-BiXT27lL.js";import"./Virtualizer-D4o4sanH.js";import"./daeTokens-BVtuNnWZ.js";const $={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"),memory_history:v("activity"),runtime_outbounds:v("activity"),logs:v("logs"),providers:v("nodes"),rules:v("rules",{tab:"list"}),config:v("config"),config_validate:v("config",{tab:"source",panel:"diagnostics"}),runtime_settings:v("settings",{card:"runtime"}),geodata:v("settings",{card:"geodata"})},ee={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 te(e,t){return ee[e]?t(ee[e]):e}function ae(e,t,a,s,r=!1,o=[]){const i=e.ebpf,n=i?.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,r,a);return s?{label:a(e),value:te(t,a),help:s}:[a(e),te(t,a)]},c=i?.maps?.state??"unknown",d=i&&function(e,t,a,s){if("unknown"!==e||!t.length)return;const r=new Intl.ListFormat(s,{type:"conjunction"}).format(t);return{title:a("ov.v.notVerified"),text:a("ov.notVerifiedHelp",{hooks:r})}}(i.hooks,o,a,s);return[l("ov.f.kind",e.kind),l("ov.f.state",e.state),..."partial"===e.visibility&&i?[]:[l("ov.f.visibility",e.visibility)],...i?[l("ov.f.backend",i.backend),l("ov.f.programs",i.programs),d?{label:a("ov.f.hooks"),value:a("ov.v.notVerified"),help:d}:l("ov.f.hooks",i.hooks),l("ov.f.routing",i.routing.state),l("ov.f.health",i.health),..."partial"===c&&n&&!n.occupancy_known?[[a("ov.f.maps"),a("ov.mapCapacity",{capacity:m(n.capacity,s)})]]:[l("ov.f.maps",c),[a("ov.f.connState"),n?.occupancy_known&&null!==n.occupancy?a("ui.fraction",{part:m(n.occupancy,s),whole:m(n.capacity,s)}):n?a("ov.occupancyUnknown",{capacity:m(n.capacity,s)}):t]]]:[]]}const se={service:"ov.v.cgroupService",shared:"ov.v.cgroupShared"},re={service:"ov.cgroupHelp.service",shared:"ov.cgroupHelp.shared"};function oe(e,t,s,r=[],o=!1){const i=e.cgroup?.scope,n=e=>{const t=a(e??null);return null===t?"—":m(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",i&&"unknown"!==i?t(se[i]):"—"],["ov.f.oomHigh",n(e.cgroup?.events?.high)],["ov.f.oom",n(e.cgroup?.events?.oom)],["ov.f.oomKill",n(e.cgroup?.events?.oom_kill)],["ov.f.ebpfBytes",c(e.kernel?.ebpf_bytes??null,s)]],d=[...r,..."unknown"===i?["ov.f.cgroupScope"]:[],...e.kernel?[]:["ov.f.ebpfBytes"]];return l.filter(([e])=>!d.includes(e)).map(([e,a])=>"ov.f.cgroupScope"===e&&i&&"unknown"!==i?{label:t(e),value:a,help:{title:t(e),text:t("ui.valuePair",{label:a,value:t(re[i])})}}:[t(e),a])}const ie={status:"overview-status",limits:"overview-limits",datapath:"overview-datapath"};function ne(t=""){const v=h(),N=f(),H=g[N],S=x(),L=S.data?.resources,R=b(j(L,"runtime",{whileLoading:!1})),A=y(j(L,"datapath",{whileLoading:!1})),C=w(j(L,"runtime_memory",{whileLoading:!1})),I=k(),V=_(j(L,"runtime_settings",{whileLoading:!1})),D=O(R.data,S.data,R.refetch),[E,P]=e.useState(!1),W=e.useMemo(()=>({capabilities:S.data,runtime:R.data,version:I.data,memory:C.data,datapath:A.data}),[S.data,R.data,I.data,C.data,A.data]),K=e.useMemo(()=>S.data?T(S.data,I.data,v,N,V.data?.recording):[],[S.data,I.data,v,N,V.data?.recording]),U=K.length>0,X=!!A.data,z=S.loading||R.loading||I.loading||C.loading||A.loadiLine truncated
@@ -0,0 +1 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{ah as a,Q as s,aL as o,aW as r,aX as i,aZ as n,a1 as l,a0 as c,a5 as d,aU as p,X as u,h as v,Y as m,u as h,l as f,al as g,q as x,am as b,r as j,ao as y,an as w,x as k,bS as _,E as N,T as S,p as H,C as L,bT as R,af as C,av as A,aB as B,S as I,P,B as W,bU as D}from"./index-DkZLaQoO.js";import{d as E,e as T}from"./files-Dt8K7QfP.js";import{r as V,e as F,u as O,b as q,D as M,R as U}from"./activity-DwYuxZaT.js";import{e as K}from"./nodes-zKvLj1EG.js";import{L as Q}from"./AppearanceControls-5nB_BQSG.js";import{D as X,t as z}from"./Table-DMzu4x5t.js";import{L as G,K as J,A as Y,B as Z}from"./logs-DniNK6NG.js";import{D as $}from"./DaeCode-DEjXqvav.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./ItemText-M_HsyHL5.js";import"./useGridSelectionCheckbox-BJpzXB14.js";import"./Select-B1IhE7cv.js";import"./Virtualizer-BUkJzK8u.js";import"./daeTokens-BVtuNnWZ.js";const ee={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"),memory_history:v("activity"),runtime_outbounds:v("activity"),logs:v("logs"),providers:v("nodes"),rules:v("rules",{tab:"list"}),config:v("config"),config_validate:v("config",{tab:"source",panel:"diagnostics"}),runtime_settings:v("settings",{card:"runtime"}),geodata:v("settings",{card:"geodata"})},te={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 ae(e,t){return te[e]?t(te[e]):e}function se(e,t,a,s,o=!1,r=[]){const i=e.ebpf,n=i?.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,o,a);return s?{label:a(e),value:ae(t,a),help:s}:[a(e),ae(t,a)]},c=i?.maps?.state??"unknown",d=i&&function(e,t,a,s){if("unknown"!==e||!t.length)return;const o=new Intl.ListFormat(s,{type:"conjunction"}).format(t);return{title:a("ov.v.notVerified"),text:a("ov.notVerifiedHelp",{hooks:o})}}(i.hooks,r,a,s);return[l("ov.f.kind",e.kind),l("ov.f.state",e.state),..."partial"===e.visibility&&i?[]:[l("ov.f.visibility",e.visibility)],...i?[l("ov.f.backend",i.backend),l("ov.f.programs",i.programs),d?{label:a("ov.f.hooks"),value:a("ov.v.notVerified"),help:d}:l("ov.f.hooks",i.hooks),l("ov.f.routing",i.routing.state),l("ov.f.health",i.health),..."partial"===c&&n&&!n.occupancy_known?[[a("ov.f.maps"),a("ov.mapCapacity",{capacity:m(n.capacity,s)})]]:[l("ov.f.maps",c),[a("ov.f.connState"),n?.occupancy_known&&null!==n.occupancy?a("ui.fraction",{part:m(n.occupancy,s),whole:m(n.capacity,s)}):n?a("ov.occupancyUnknown",{capacity:m(n.capacity,s)}):t]]]:[]]}const oe={service:"ov.v.cgroupService",shared:"ov.v.cgroupShared"},re={service:"ov.cgroupHelp.service",shared:"ov.cgroupHelp.shared"};function ie(e,t,s,o=[],r=!1){const i=e.cgroup?.scope,n=e=>{const t=a(e??null);return null===t?"—":m(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",r&&null===e.cgroup?.limit_bytes?t("ov.noLimit"):c(e.cgroup?.limit_bytes??null,s)],["ov.f.cgroupScope",i&&"unknown"!==i?t(oe[i]):"—"],["ov.f.oomHigh",n(e.cgroup?.events?.high)],["ov.f.oom",n(e.cgroup?.events?.oom)],["ov.f.oomKill",n(e.cgroup?.events?.oom_kill)],["ov.f.ebpfBytes",c(e.kernel?.ebpf_bytes??null,s)]],d=[...o,..."unknown"===i?["ov.f.cgroupScope"]:[],...e.kernel?[]:["ov.f.ebpfBytes"]];return l.filter(([e])=>!d.includes(e)).map(([e,a])=>"ov.f.cgroupScope"===e&&i&&"unknown"!==i?{label:t(e),value:a,help:{title:t(e),text:t("ui.valuePair",{label:a,value:t(re[i])})}}:[t(e),a])}const ne={status:"overview-status",limits:"overview-limits",datapath:"overview-datapath"};function le(t=""){const v=h(),N=f(),S=g[N],H=x(),L=H.data?.resources,R=b(j(L,"runtime",{whileLoading:!1})),C=y(j(L,"datapath",{whileLoading:!1})),A=w(j(L,"runtime_memory",{whileLoading:!1})),B=k(),I=_(j(L,"runtime_settings",{whileLoading:!1})),P=O(R.data,H.data,R.refetch),[W,D]=e.useState(null),M=e.useMemo(()=>({capabilities:H.data,runtime:R.data,version:B.data,memory:A.data,datapath:C.data}),[H.data,R.data,B.data,A.data,C.data]),U=e.useMemo(()=>H.data?q(H.data,B.data,v,N,I.data?.recording):[],[H.data,B.data,v,N,I.data?.recording]),Q=U.length>0,X=!!C.data,z=H.loading||R.loading||B.loLine truncated
@@ -1 +0,0 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{P as n}from"./ProbeOptionsDialog-DFlcv-Ro.js";import{C as i,a as s,b as r,E as l}from"./ConditionRow-BLWAZu2-.js";import{A as o}from"./AddCircle-net7vCQK.js";import{T as a,R as d,j as c,s as u,u as p,w as m,l as h,k as g,U as f,V as b,S as y,O as v,Q as x,r as j,P as k}from"./nodes-9cDj613b.js";import{bp as w,u as S,h as N,I as C,N as M,w as _,aV as I,cr as E,U as D,G as O,aW as P,bQ as L,cs as R,b1 as z,aU as T,Y as $,al as K,l as q,ck as A,b7 as F,i as H,af as V,bG as G,ch as B,ct as U,cu as J,bw as Q,cl as Y,cv as W,B as X,aE as Z,bk as ee,cw as te,b5 as ne,cx as ie,cy as se,aA as re,bF as le,c1 as oe,a9 as ae,cz as de,cA as ce,q as ue,r as pe,cB as me,cC as he,aR as ge,t as fe,A as be,aN as ye,aq as ve,H as xe,az as je,c2 as ke,v as we,cD as Se,E as Ne,cg as Ce,aG as Me,cE as _e,C as Ie,p as Ee,T as De,cF as Oe,ax as Pe,av as Le,b as Re,a as ze}from"./index-BpMcZry4.js";import{T as Te,a as $e,L as Ke}from"./Tag-DnsbMsos.js";import{D as qe}from"./DaeCode-DEjXqvav.js";import{N as Ae,L as Fe,D as He,K as Ve,h as Ge,g as Be,u as Ue,c as Je,v as Qe,w as Ye,m as We,x as Xe,S as Ze,n as et}from"./logs-CSLBu0fr.js";import{T as tt}from"./Toolbar-CG16bAGF.js";import{C as nt,L as it}from"./AppearanceControls-_LKvZPhT.js";import{$ as st,S as rt}from"./SearchList-DnHiclH-.js";import{i as lt,v as ot,w as at,x as dt,y as ct,z as ut,A as pt,E as mt,G as ht,H as gt,I as ft,J as bt,K as yt,M as vt,N as xt,O as jt,P as kt,Q as wt,T as St,V as Nt,X as Ct,Y as Mt,Z as _t}from"./activity-SP7tP5Sc.js";import{$ as It,a as Et}from"./GridList-CZtL3cpM.js";import{$ as Dt,a as Ot,b as Pt,c as Lt,d as Rt}from"./Virtualizer-D4o4sanH.js";import{$ as zt,a as Tt}from"./Select-DfNHOkHm.js";import{a as $t,b as Kt}from"./ItemText-CcW62_Lb.js";import{S as qt}from"./SearchSelect-FeisYm3Z.js";import{N as At,t as Ft,n as Ht}from"./NumberField-DIugwoyR.js";import{p as Vt}from"./probe-NjjZcqcD.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Checkbox-BiXT27lL.js";import"./daeTokens-BVtuNnWZ.js";const Gt={minItemSize:new Ot(200,200),maxItemSize:new Ot(1/0,1/0),preserveAspectRatio:!1,minSpace:new Ot(18,18),maxSpace:1/0,maxColumns:1/0,dropIndicatorThickness:2,loaderHeight:48};class Bt extends Dt{shouldInvalidateLayoutOptions(e,t){return e.maxColumns!==t.maxColumns||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.preserveAspectRatio!==t.preserveAspectRatio||!(e.minItemSize||Gt.minItemSize).equals(t.minItemSize||Gt.minItemSize)||!(e.maxItemSize||Gt.maxItemSize).equals(t.maxItemSize||Gt.maxItemSize)||!(e.minSpace||Gt.minSpace).equals(t.minSpace||Gt.minSpace)||e.maxHorizontalSpace!==t.maxHorizontalSpace||e.loaderHeight!==t.loaderHeight||e.direction!==t.direction}update(e){let{minItemSize:t=Gt.minItemSize,maxItemSize:n=Gt.maxItemSize,preserveAspectRatio:i=Gt.preserveAspectRatio,minSpace:s=Gt.minSpace,maxHorizontalSpace:r=Gt.maxSpace,maxColumns:l=Gt.maxColumns,dropIndicatorThickness:o=Gt.dropIndicatorThickness,loaderHeight:a=Gt.loaderHeight,direction:d="ltr"}=e.layoutOptions||{};this.dropIndicatorThickness=o,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(l,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 Ot(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 E=0;E<2&&null!=k;E++){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,C=new Map,M=null,_=0;for(let E=0;E<w;E++){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 l=M?`${M.key}-${_++}`:r.key,o=this.layoutInfos.get(l),a=r;M&&(a=o&&o.content.key===l?o.content:{...M,key:l});let d=v+s*(f+v)+this.margin,c=y,u=!i;o&&u&&(c=o.rect.height,u=e.layoutOptionsChanged||e.sizeChanged||o.estimatedSize||o.content!==a);let p=new Lt(d,N,f,c),m=new Pt(r.type,l,p);m.estimatedSize=u,m.allowOverflow=!0,m.content=a,C.set(l,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&&E===w-1&&N<this.virtualizer.size.height&&w++}let I=x.getItem(x.getLastKey());if("loader"===I?.type){(_>0||!I.props.isLoading)&&(a=0);let e=new Lt(v,N,c-2*v,a),t=new Pt("loader",I.key,e);C.set(I.key,t),N=t.rect.maxY}this.layoutInfos=C,this.contentSize=new Ot(this.virtualizer.size.width,N)}getLayoutInfo(e){return this.layoutInfos.get(e)||null}getContentSize(){return this.contentSize}getVisibleLayoutInfos(e){let t=[];for(let n of this.layoutInfos.values())(n.rect.intersects(e)||this.virtualizer.isPersistedKey(n.key)||"loader"===n.tLine truncated
@@ -0,0 +1 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{P as n}from"./ProbeOptionsDialog-CbXH9b0U.js";import{C as i,a as s,b as r,E as l}from"./ConditionRow-FRqe5mV9.js";import{A as o}from"./AddCircle-Bl7yHPBv.js";import{U as a,S as d,l as c,s as u,u as p,y as m,o as h,m as g,V as f,W as b,T as y,N as v,R as x,r as j,Q as k}from"./nodes-zKvLj1EG.js";import{bp as w,u as S,h as N,I as C,N as _,w as M,aS as I,cq as E,U as D,G as O,aT as P,bP as L,cr as R,a_ as z,aR as T,Y as $,al as q,l as K,cj as A,b4 as F,i as H,af as V,bF as G,cg as B,cs as J,ct as U,bv as Y,ck as Q,cu as X,B as W,aC as Z,bi as ee,cv as te,b2 as ne,cw as ie,cx as se,ay as re,p as le,bE as oe,c0 as ae,a9 as de,cy as ce,cz as ue,q as pe,r as me,cA as he,aO as ge,cB as fe,t as be,A as ye,aK as ve,aq as xe,H as je,ax as ke,c1 as we,v as Se,cC as Ne,E as Ce,cf as _e,aE as Me,cD as Ie,C as Ee,T as De,cE as Oe,av as Pe,b as Le,a as Re}from"./index-DkZLaQoO.js";import{T as ze,a as Te,L as $e}from"./Tag-BJayNrqV.js";import{D as qe}from"./DaeCode-DEjXqvav.js";import{N as Ke,q as Ae,D as Fe,K as He,g as Ve,f as Ge,u as Be,c as Je,x as Ue,y as Ye,n as Qe,z as Xe,S as We,L as Ze,B as et,o as tt}from"./logs-DniNK6NG.js";import{T as nt}from"./Toolbar-Br0J4-YM.js";import{C as it,L as st}from"./AppearanceControls-5nB_BQSG.js";import{$ as rt,S as lt}from"./SearchList-Dzx-0VF7.js";import{i as ot,v as at,w as dt,x as ct,y as ut,z as pt,A as mt,E as ht,G as gt,H as ft,I as bt,J as yt,K as vt,M as xt,N as jt,O as kt,P as wt,Q as St,T as Nt,V as Ct,X as _t,Y as Mt,Z as It}from"./activity-DwYuxZaT.js";import{$ as Et,a as Dt}from"./GridList-CC4w_Iq3.js";import{b as Ot,c as Pt,d as Lt,e as Rt,$ as zt}from"./Virtualizer-BUkJzK8u.js";import{$ as Tt,a as $t}from"./Select-B1IhE7cv.js";import{a as qt,b as Kt}from"./ItemText-M_HsyHL5.js";import{S as At}from"./SearchSelect-CgvsaAJS.js";import{N as Ft,t as Ht,n as Vt}from"./NumberField-CN_dFkWR.js";import{p as Gt,a as Bt}from"./probe-P4V7qZUr.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./useGridSelectionCheckbox-BJpzXB14.js";import"./daeTokens-BVtuNnWZ.js";const Jt={minItemSize:new Pt(200,200),maxItemSize:new Pt(1/0,1/0),preserveAspectRatio:!1,minSpace:new Pt(18,18),maxSpace:1/0,maxColumns:1/0,dropIndicatorThickness:2,loaderHeight:48};class Ut extends Ot{shouldInvalidateLayoutOptions(e,t){return e.maxColumns!==t.maxColumns||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.preserveAspectRatio!==t.preserveAspectRatio||!(e.minItemSize||Jt.minItemSize).equals(t.minItemSize||Jt.minItemSize)||!(e.maxItemSize||Jt.maxItemSize).equals(t.maxItemSize||Jt.maxItemSize)||!(e.minSpace||Jt.minSpace).equals(t.minSpace||Jt.minSpace)||e.maxHorizontalSpace!==t.maxHorizontalSpace||e.loaderHeight!==t.loaderHeight||e.direction!==t.direction}update(e){let{minItemSize:t=Jt.minItemSize,maxItemSize:n=Jt.maxItemSize,preserveAspectRatio:i=Jt.preserveAspectRatio,minSpace:s=Jt.minSpace,maxHorizontalSpace:r=Jt.maxSpace,maxColumns:l=Jt.maxColumns,dropIndicatorThickness:o=Jt.dropIndicatorThickness,loaderHeight:a=Jt.loaderHeight,direction:d="ltr"}=e.layoutOptions||{};this.dropIndicatorThickness=o,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(l,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 Pt(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 E=0;E<2&&null!=k;E++){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,C=new Map,_=null,M=0;for(let E=0;E<w;E++){let t=0,n=[];for(let s=0;s<h;s++){let r=_||S.next().value;if(!r)break;if("loader"===r.type)continue;"skeleton"===r.type&&(_=r);let l=_?`${_.key}-${M++}`:r.key,o=this.layoutInfos.get(l),a=r;_&&(a=o&&o.content.key===l?o.content:{..._,key:l});let d=v+s*(f+v)+this.margin,c=y,u=!i;o&&u&&(c=o.rect.height,u=e.layoutOptionsChanged||e.sizeChanged||o.estimatedSize||o.content!==a);let p=new Rt(d,N,f,c),m=new Lt(r.type,l,p);m.estimatedSize=u,m.allowOverflow=!0,m.content=a,C.set(l,m),n.push(m),t=Math.max(t,m.rect.height)}for(let e of n)e.rect.height=t;N+=t+s.height,_&&E===w-1&&N<this.virtualizer.size.height&&w++}let I=x.getItem(x.getLastKey());if("loader"===I?.type){(M>0||!I.props.isLoading)&&(a=0);let e=new Rt(v,N,c-2*v,a),t=new Lt("loader",I.key,e);C.set(I.key,t),N=t.rect.maxY}this.layoutInfos=C,this.contentSize=new Pt(this.virtualizer.size.width,N)}getLayoutInfo(e){return this.layoutInfos.get(e)||null}getContentSize(){return this.contentSize}getVisibleLayoutInfos(e){let t=[];for(let n of this.layoutInfos.values())(n.rect.intersects(e)||this.virtualizer.isPersLine truncated
@@ -0,0 +1 @@
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{u as o,b2 as i,cw as c,cg as a,B as n}from"./index-DkZLaQoO.js";import{I as r,J as t,q as l}from"./logs-DniNK6NG.js";function d({model:d}){const m=o(),h=e.useId(),p=r(),[u,b]=e.useState(t(d.choices,p.choice)?.id??""),[j,x]=e.useState(p.cold),[g,f]=e.useState(p.leaves),v=d.busy||!d.choices.some(e=>e.id===u);return s.jsx(i,{narrow:!0,isOpen:!0,onOpenChange:e=>!e&&d.close(),title:m("probe.title"),description:d.name,footer:()=>s.jsxs(s.Fragment,{children:[s.jsx(n,{onPress:d.close,children:m("ui.cancel")}),s.jsx(n,{accent:!0,type:"submit",form:h,isDisabled:v,children:m("probe.submit")})]}),children:s.jsxs(c,{id:h,onSubmit:e=>{e.preventDefault(),v||d.submit({...p,choice:u,cold:j,leaves:g})},children:[s.jsx(l,{label:m("probe.kind"),value:u,onChange:b,items:d.choices.map(e=>({id:e.id,label:m(e.label)}))}),s.jsx(a,{isSelected:j,onChange:x,children:m("probe.cold")}),d.group&&s.jsx(a,{isSelected:g,onChange:f,children:m("probe.leaves")})]})})}export{d as P};
@@ -1 +0,0 @@
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{u as o,b5 as i,cx as c,ch as a,B as n}from"./index-BpMcZry4.js";import{F as r,G as t,L as l}from"./logs-CSLBu0fr.js";function d({model:d}){const h=o(),m=e.useId(),p=r(),[u,b]=e.useState(t(d.choices,p.choice)?.id??""),[j,x]=e.useState(p.cold),[f,g]=e.useState(p.leaves),v=d.busy||!d.choices.some(e=>e.id===u);return s.jsx(i,{narrow:!0,isOpen:!0,onOpenChange:e=>!e&&d.close(),title:h("probe.title"),description:d.name,footer:()=>s.jsxs(s.Fragment,{children:[s.jsx(n,{onPress:d.close,children:h("ui.cancel")}),s.jsx(n,{accent:!0,type:"submit",form:m,isDisabled:v,children:h("probe.submit")})]}),children:s.jsxs(c,{id:m,onSubmit:e=>{e.preventDefault(),v||d.submit({...p,choice:u,cold:j,leaves:f})},children:[s.jsx(l,{label:h("probe.kind"),value:u,onChange:b,items:d.choices.map(e=>({id:e.id,label:h(e.label)}))}),s.jsx(a,{isSelected:j,onChange:x,children:h("probe.cold")}),d.group&&s.jsx(a,{isSelected:f,onChange:g,children:h("probe.leaves")})]})})}export{d as P};
@@ -1,2 +0,0 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Trace-BxFFDxXZ.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-BpMcZry4.js","./index--6K0oddI.css","./flows-4vf3kCNL.js","./logs-CSLBu0fr.js","./Select-DfNHOkHm.js","./ItemText-CcW62_Lb.js","./AppearanceControls-_LKvZPhT.js","./nodes-9cDj613b.js","./probe-NjjZcqcD.js","./useQuickRule-DnICQncm.js","./DaeCode-DEjXqvav.js","./daeTokens-BVtuNnWZ.js","./AddCircle-net7vCQK.js","./SearchSelect-FeisYm3Z.js","./SearchList-DnHiclH-.js","./Virtualizer-D4o4sanH.js","./Toolbar-CG16bAGF.js","./rule-C-7UBgmI.js","./activity-SP7tP5Sc.js","./activity-Db7VRWAG.css","./NumberField-DIugwoyR.js","./Table-B9wBdFJO.js","./Checkbox-BiXT27lL.js","./Tabs-DHvnlDOn.js","./ConditionRow-BLWAZu2-.js","./Coverage-Cw68fF9k.js","./labels-D8xxfRTQ.js","./nav-Dx6RnOEO.js","./recorder-BHyqDNp5.js","./geodataUpdate-D9C47k_Z.js","./LinkOut-Bzsd9jX9.js","./impact-B8feJDtJ.css"])))=>i.map(i=>d[i]);
import{cG as e,cH as n,cI as s,cJ as i,cK as l,cL as a,cM as r,bp as t,cN as o,cO as d,cP as u,cQ as c,cR as p,cS as m,cT as f,cU as b,cV as h,cW as g,cX as v,cY as x,cZ as k,c_ as y,c$ as w,d0 as j,d1 as S,d2 as _,d3 as C,d4 as N,d5 as D,d6 as M,d7 as P,d8 as R,d9 as I,aD as H,da as q,cq as O,aA as E,b7 as L,c2 as A,c4 as T,al as F,Y as W,U as V,H as B,a8 as $,ak as U,a6 as Q,o as G,h as J,r as K,db as Y,a1 as X,w as Z,u as z,aK as ee,cC as ne,A as se,l as ie,q as le,bT as ae,aP as re,aQ as te,m as oe,x as de,aO as ue,aM as ce,ab as pe,C as me,bk as fe,bF as be,ch as he,B as ge,aL as ve,cx as xe,cw as ke,p as ye,dc as we,bG as je,dd as Se,E as _e,cE as Ce,ax as Ne,b8 as De,aE as Me,cg as Pe,av as Re,T as Ie,c3 as He,c6 as qe,L as Oe,aG as Ee,de as Le,_ as Ae}from"./index-BpMcZry4.js";import{r as Te,$ as Fe,j as We}from"./vendor-react-64fcanlc.js";import{_ as Ve,$ as Be,a0 as $e,a1 as Ue,a2 as Qe,a3 as Ge,a4 as Je,a5 as Ke,a6 as Ye,a7 as Xe,a8 as Ze,a9 as ze,aa as en,ab as nn,ac as sn,s as ln}from"./activity-SP7tP5Sc.js";import{T as an}from"./Tabs-DHvnlDOn.js";import{D as rn}from"./DaeCode-DEjXqvav.js";import{L as tn}from"./AppearanceControls-_LKvZPhT.js";import{a as on,c as dn,u as un,y as cn,e as pn,w as mn,h as fn,D as bn,L as hn,S as gn}from"./logs-CSLBu0fr.js";import{T as vn}from"./Toolbar-CG16bAGF.js";import{D as xn}from"./Table-B9wBdFJO.js";import{C as kn,a as yn,E as wn}from"./ConditionRow-BLWAZu2-.js";import{c as jn,C as Sn}from"./Coverage-Cw68fF9k.js";import{d as _n,b as Cn,c as Nn,e as Dn,B as Mn}from"./rule-C-7UBgmI.js";import{u as Pn,a as Rn,c as In}from"./flows-4vf3kCNL.js";import{W as Hn,s as qn,u as On,b as En,X as Ln,Y as An,f as Tn,c as Fn,Z as Wn,j as Vn,e as Bn,_ as $n,$ as Un,a0 as Qn,a1 as Gn,a2 as Jn,a3 as Kn,r as Yn,a4 as Xn,a5 as Zn,a6 as zn,a7 as es,d as ns,D as ss,a8 as is}from"./nodes-9cDj613b.js";import{w as ls}from"./labels-D8xxfRTQ.js";import{r as as}from"./nav-Dx6RnOEO.js";import{r as rs}from"./recorder-BHyqDNp5.js";import{g as ts,a as os,b as ds}from"./geodataUpdate-D9C47k_Z.js";/* empty css */import{L as us}from"./LinkOut-Bzsd9jX9.js";import{S as cs}from"./SearchSelect-FeisYm3Z.js";const ps=new WeakMap;let ms=Math.round(1e10*Math.random()),fs=0;const bs=Te.createContext(null),hs=Te.createContext(null),gs=Te.createContext(null),vs=Te.forwardRef(function(e,n){[e,n]=g(e,n,bs);let{validationBehavior:l}=v(x)||{},a=e.validationBehavior??l??"native",r=function(e){let n=Te.useMemo(()=>e.name||`radio-group-${ms}-${++fs}`,[e.name]),[s,i]=b(e.value,e.defaultValue??null,e.onChange),[l]=Te.useState(s),[a,r]=Te.useState(null),t=h({...e,value:s}),o=t.displayValidation.isInvalid;return{...t,name:n,selectedValue:s,defaultSelectedValue:void 0!==e.value?l:e.defaultValue??null,setSelectedValue:n=>{e.isReadOnly||e.isDisabled||(i(n),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:I,errorMessageProps:H,...q}=function(e,n){let{name:l,form:a,isReadOnly:r,isRequired:b,isDisabled:h,orientation:g="vertical",validationBehavior:v="aria"}=e,{direction:x}=t(),{isInvalid:k,validationErrors:y,validationDetails:w}=n.displayValidation,{labelProps:j,fieldProps:S,descriptionProps:_,errorMessageProps:C}=o({...e,labelElementType:"span",isInvalid:n.isInvalid,errorMessage:e.errorMessage||y}),N=i(e,{labelable:!0}),{focusWithinProps:D}=d({onBlurWithin(s){e.onBlur?.(s),n.selectedValue||n.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});function M(e,s){let i,l=p(s.currentTarget,{from:f(s),accept:e=>e instanceof m(e).HTMLInputElement&&"radio"===e.type});return"next"===e?(i=l.nextNode(),i||(l.currentNode=s.currentTarget,i=l.firstChild())):(i=l.previousNode(),i||(l.currentNode=s.currentTarget,i=l.lastChild())),!!i&&(i.focus(),n.setSelectedValue(i.value),!0)}let{keyboardProps:P}=u({shortcuts:{ArrowRight:e=>M("rtl"===x&&"vertical"!==g?"prev":"next",e),ArrowLeft:e=>M("rtl"===x&&"vertical"!==g?"next":"prev",e),ArrowDown:e=>M("next",e),ArrowUp:e=>M("prev",e)},allowRepeats:!0}),R=c(l);return ps.set(n,{name:R,form:a,descriptionId:_.id,errorMessageId:C.id,validationBehavior:v}),{radioGroupProps:s(N,{role:"radiogroup",...P,"aria-invalid":n.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":r||void 0,"aria-required":b||void 0,"aria-disabled":h||void 0,"aria-orientation":g,...S,...D}),labelProps:j,descriptionProps:_,errorMessageProps:C,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.isInvalid,state:r},defaultClassName:"react-aria-RadioGroup"}),E=i(e,{global:!0});return Fe.createElemeLine truncated
@@ -0,0 +1,2 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Trace-Dvmwxvpm.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-DkZLaQoO.js","./index-OR7DFCdG.css","./flows-Bh9kBRHT.js","./logs-DniNK6NG.js","./Select-B1IhE7cv.js","./ItemText-M_HsyHL5.js","./AppearanceControls-5nB_BQSG.js","./nodes-zKvLj1EG.js","./probe-P4V7qZUr.js","./useQuickRule-Row9eJav.js","./DaeCode-DEjXqvav.js","./daeTokens-BVtuNnWZ.js","./AddCircle-Bl7yHPBv.js","./SearchSelect-CgvsaAJS.js","./SearchList-Dzx-0VF7.js","./Virtualizer-BUkJzK8u.js","./Toolbar-Br0J4-YM.js","./rule-CaRkSdGM.js","./activity-DwYuxZaT.js","./activity-Db7VRWAG.css","./NumberField-CN_dFkWR.js","./Table-DMzu4x5t.js","./useGridSelectionCheckbox-BJpzXB14.js","./Tabs-Ba8gYhNB.js","./ConditionRow-FRqe5mV9.js","./Coverage-C9wHHZbt.js","./labels-D8xxfRTQ.js","./nav-CE1PQnEs.js","./recorder-BHyqDNp5.js","./geodataUpdate-Nz09dXaJ.js","./LinkOut-qIg2xTwZ.js","./impact-B8feJDtJ.css"])))=>i.map(i=>d[i]);
import{cF as e,cG as n,cH as s,cI as i,cJ as l,cK as a,cL as r,bp as t,cM as o,cN as d,cO as u,cP as c,cQ as p,cR as m,cS as f,cT as b,cU as h,cV as g,cW as v,cX as x,cY as k,cZ as y,c_ as w,c$ as j,d0 as S,d1 as _,d2 as C,d3 as N,d4 as D,d5 as M,d6 as P,d7 as R,d8 as H,aB as I,d9 as q,cp as O,ay as E,b4 as L,c1 as F,c3 as T,al as A,Y as V,U as W,H as B,a8 as $,ak as U,a6 as Q,o as G,h as J,r as K,da as Y,a1 as X,w as Z,u as z,aI as ee,cB as ne,A as se,l as ie,q as le,bS as ae,aM as re,aN as te,m as oe,x as de,aL as ue,aJ as ce,ab as pe,C as me,bi as fe,bE as be,cg as he,B as ge,p as ve,cw as xe,cv as ke,db as ye,bF as we,dc as je,E as Se,cD as _e,b5 as Ce,aC as Ne,cf as De,av as Me,T as Pe,c2 as Re,c5 as He,L as Ie,aE as qe,dd as Oe,_ as Ee,cb as Le}from"./index-DkZLaQoO.js";import{r as Fe,$ as Te,j as Ae}from"./vendor-react-64fcanlc.js";import{_ as Ve,$ as We,a0 as Be,a1 as $e,a2 as Ue,a3 as Qe,a4 as Ge,a5 as Je,a6 as Ke,a7 as Ye,a8 as Xe,a9 as Ze,aa as ze,ab as en,ac as nn,s as sn}from"./activity-DwYuxZaT.js";import{T as ln}from"./Tabs-Ba8gYhNB.js";import{D as an}from"./DaeCode-DEjXqvav.js";import{L as rn}from"./AppearanceControls-5nB_BQSG.js";import{a as tn,c as on,u as dn,E as un,y as cn,g as pn,D as mn,L as fn,q as bn,S as hn,B as gn}from"./logs-DniNK6NG.js";import{T as vn}from"./Toolbar-Br0J4-YM.js";import{D as xn}from"./Table-DMzu4x5t.js";import{C as kn,a as yn,E as wn}from"./ConditionRow-FRqe5mV9.js";import{c as jn,C as Sn}from"./Coverage-C9wHHZbt.js";import{d as _n,b as Cn,c as Nn,e as Dn,B as Mn}from"./rule-CaRkSdGM.js";import{u as Pn,a as Rn,c as Hn}from"./flows-Bh9kBRHT.js";import{X as In,s as qn,u as On,f as En,Y as Ln,Z as Fn,j as Tn,c as An,_ as Vn,l as Wn,g as Bn,$ as $n,a0 as Un,a1 as Qn,a2 as Gn,a3 as Jn,a4 as Kn,r as Yn,a5 as Xn,a6 as Zn,a7 as zn,a8 as es,a as ns,F as ss,a9 as is,e as ls}from"./nodes-zKvLj1EG.js";import{w as as}from"./labels-D8xxfRTQ.js";import{r as rs}from"./nav-CE1PQnEs.js";import{r as ts}from"./recorder-BHyqDNp5.js";import{g as os,a as ds,b as us}from"./geodataUpdate-Nz09dXaJ.js";/* empty css */import{L as cs}from"./LinkOut-qIg2xTwZ.js";import{S as ps}from"./SearchSelect-CgvsaAJS.js";const ms=new WeakMap;let fs=Math.round(1e10*Math.random()),bs=0;const hs=Fe.createContext(null),gs=Fe.createContext(null),vs=Fe.createContext(null),xs=Fe.forwardRef(function(e,n){[e,n]=g(e,n,hs);let{validationBehavior:l}=v(x)||{},a=e.validationBehavior??l??"native",r=function(e){let n=Fe.useMemo(()=>e.name||`radio-group-${fs}-${++bs}`,[e.name]),[s,i]=b(e.value,e.defaultValue??null,e.onChange),[l]=Fe.useState(s),[a,r]=Fe.useState(null),t=h({...e,value:s}),o=t.displayValidation.isInvalid;return{...t,name:n,selectedValue:s,defaultSelectedValue:void 0!==e.value?l:e.defaultValue??null,setSelectedValue:n=>{e.isReadOnly||e.isDisabled||(i(n),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:H,errorMessageProps:I,...q}=function(e,n){let{name:l,form:a,isReadOnly:r,isRequired:b,isDisabled:h,orientation:g="vertical",validationBehavior:v="aria"}=e,{direction:x}=t(),{isInvalid:k,validationErrors:y,validationDetails:w}=n.displayValidation,{labelProps:j,fieldProps:S,descriptionProps:_,errorMessageProps:C}=o({...e,labelElementType:"span",isInvalid:n.isInvalid,errorMessage:e.errorMessage||y}),N=i(e,{labelable:!0}),{focusWithinProps:D}=d({onBlurWithin(s){e.onBlur?.(s),n.selectedValue||n.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});function M(e,s){let i,l=p(s.currentTarget,{from:f(s),accept:e=>e instanceof m(e).HTMLInputElement&&"radio"===e.type});return"next"===e?(i=l.nextNode(),i||(l.currentNode=s.currentTarget,i=l.firstChild())):(i=l.previousNode(),i||(l.currentNode=s.currentTarget,i=l.lastChild())),!!i&&(i.focus(),n.setSelectedValue(i.value),!0)}let{keyboardProps:P}=u({shortcuts:{ArrowRight:e=>M("rtl"===x&&"vertical"!==g?"prev":"next",e),ArrowLeft:e=>M("rtl"===x&&"vertical"!==g?"next":"prev",e),ArrowDown:e=>M("next",e),ArrowUp:e=>M("prev",e)},allowRepeats:!0}),R=c(l);return ms.set(n,{name:R,form:a,descriptionId:_.id,errorMessageId:C.id,validationBehavior:v}),{radioGroupProps:s(N,{role:"radiogroup",...P,"aria-invalid":n.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":r||void 0,"aria-required":b||void 0,"aria-disabled":h||void 0,"aria-orientation":g,...S,...D}),labelProps:j,descriptionProps:_,errorMessageProps:C,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.isInvalid,state:r},defaultClassName:"react-aria-RadioGroup"}),E=i(e,{global:!0});return Te.creLine truncated
@@ -1 +1 @@
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{r as s,eY as a,w as i,eZ as r,K as n,bY as o,ak as l,U as d,Y as u,al as p,e_ as c,e$ as m,f0 as f,dC as h,u as g,l as y,q as b,x as v,f1 as j,b5 as K,eT as x,bG as w,B as $,aE as M,E as k,bE as q,af as _,co as C}from"./index-BpMcZry4.js";import{$ as L,d as S,a as N}from"./Select-DfNHOkHm.js";import{b as E}from"./ItemText-CcW62_Lb.js";import{i as I,h as R,c as T,g as Y,u as G,e as O}from"./logs-CSLBu0fr.js";import{u as P,c as Q}from"./flows-4vf3kCNL.js";import{Y as A}from"./nodes-9cDj613b.js";import{c as V,o as Z,p as z,q as B}from"./nav-DSMpjA0M.js";import{d as F}from"./nav-Br4EizUw.js";import{r as H,a as U}from"./nav-Dx6RnOEO.js";import{f as W}from"./nav-DTGZlsmE.js";import{f as X,r as D,g as J,h as ee}from"./nav-gZ83ZK0m.js";import{aP as te,a1 as se,aQ as ae}from"./activity-SP7tP5Sc.js";import{c as ie}from"./nav-BO8viH9G.js";import{n as re,a as ne}from"./nav-Cr9xMfh-.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./AppearanceControls-_LKvZPhT.js";const oe=e=>s(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"]}]:[],le=e=>e.trim().toLowerCase().replace(/\s+/g," "),de=(e,t,s,a,i,r="",n)=>({hit:{id:t,label:s,description:a,route:i,query:r,...n&&{open:n}},keys:[...new Set(e.flatMap(e=>null==e?[]:[le(e)]))]}),ue=(e,t,s,a,i)=>{const{route:r,query:n}=h(i);return de(e,t,s,a,r,n)};function pe(e,t,s){const a=[{title:e(t),parent:s&&e(s)}];for(const i of c)m(i.id)&&a.push({title:f(i.id,t),parent:s&&f(i.id,s)});return a.flatMap(({title:e,parent:t})=>t?[e,t+" "+e]:[e])}function ce(e,t){let s=3;for(const a of e){if(a===t)return 0;a.startsWith(t)?s=1:3===s&&a.includes(t)&&(s=2)}return s}function me(t,m){const f=g(),h=y(),[K,x]=e.useState(""),w=b(),$=w.data?.resources,M=I(void 0,s($,"connections",{whileLoading:!1})),k=R(s($,"nodes",{whileLoading:!1})),q=T(s($,"groups",{whileLoading:!1})),_=Y(s($,"providers",{whileLoading:!1})),C=G(s($,"config",{whileLoading:!1})),L=P(s($,"rules",{whileLoading:!1})),S=Q(s($,"dns_rules",{whileLoading:!1})),N=[w,M,k,q,_,C,L,S],E=O(v().data),me=!!E.globalSettings,[fe,he]=e.useState(0);e.useEffect(()=>{let e=!0;for(const t of c)j(t.id).then(()=>e&&he(e=>e+1),()=>{});return()=>{e=!1}},[]);const ge=e.useMemo(()=>function(e,t,s){const n=t=>r(t,e),o=e?.resources,l=[...ie().map(e=>({path:"connections",params:{tab:e.id},titleKey:e.titleKey})),...re(o).map(e=>({path:"nodes",params:{tab:e.id},titleKey:e.titleKey})),...W(o).map(e=>({path:"flows",params:{tab:e.id},titleKey:e.titleKey})),...H(o).map(e=>({path:"rules",params:{tab:e.id},titleKey:e.titleKey})),...F(o).map(e=>({path:"dns",params:{tab:e.id},titleKey:e.titleKey})),...V(s,e).map(e=>({path:"config",params:{tab:e.id},titleKey:e.titleKey,aliases:e.aliases})),...X(o).map(e=>({path:"settings",params:{card:e.id},titleKey:e.titleKey,aliases:e.aliases}))],d=e=>a.find(t=>t.path===e).nav.titleKey;return[...a.filter(e=>e.nav&&n(e.path)).map(e=>de(pe(t,e.nav.titleKey),`page:${e.path}?`,t(e.nav.titleKey),void 0,e.path)),...l.filter(e=>n(e.path)).map(e=>{const s=i("",e.params);return de([...pe(t,e.titleKey,d(e.path)),...e.aliases??[]],`page:${e.path}?${s}`,t(e.titleKey),t(d(e.path)),e.path,s)})]}(w.data,f,me),[w.data,f,me,fe]),ye=e.useMemo(()=>function(e,t){const s=e?.resources,a=new Map(X(s).map(e=>[e.id,e])),r=new Set(s?.runtime_settings.available?s.runtime_settings.fields??[]:[]),n=Object.entries(D).filter(([e])=>r.has(e)).map(([e,t])=>({id:e,labelKey:t,card:"runtime",aliases:void 0})),o=J(s);return[...ee.filter(e=>!e.sources||o),...n].flatMap(e=>{const s=a.get(e.card);return s?[de([...pe(t,e.labelKey),...e.aliases??[]],`setting:${e.id}`,t(e.labelKey),t(s.titleKey),"settings",i("",{card:e.card,field:e.id}))]:[]})}(w.data,f),[w.data,f,fe]),be=e.useMemo(()=>function(e,t,a){return e&&s(t?.resources,"config",{whileLoading:!1})?e.fields.map(e=>de([...pe(a,e.label),e.key],`global:${e.key}`,a(e.label),a(Z[e.group]),"config",i("",{tab:"global",field:e.key}))):[]}(E.globalSettings,w.data,f),[E.globalSettings,w.data,f,fe]),ve=e.useMemo(()=>function(e,t){const s=e?.resources;return[...U(s),...oe(s),...ne(s),...z(e),...te].filter(t=>null===t.route||r(t.route,e)).map(e=>de([...pe(t,e.titleKey,e.parentKey),...(e.aliasKeys??[]).flatMap(e=>pe(t,e)),...e.aliases??[]],`feature:${e.id}`,t(e.titleKey),e.parentKey&&t(e.parentKey),e.route,i("",e.params??{}),e.open))}(w.data,f),[w.data,f,fe]),je=e.useMemo(()=>function(e,t,s){return B(e,t,s).map(e=>ue([e.kind,e.summary],`module:${e.id}`,e.kind,e.range,e.href))}(C.data,E,f),[C.data,E,f]),Ke=e.useMemo(()=>function(e,t){return n(e).map(e=>de([e.domain,e.dst,e.src],`connection:${e.id}`,e.domain||e.dst||e.src||e.id,o(e,t),"connections",i("",{id:e.id})))}(M.data,f),[M.data,f]),xe=e.useMemo(()=>function(e,t,s){const a=t?.providers??[];return(e??[]).map(e=>ue([e.name],`node:${e.id}`,e.name,l(s,e.group_ids)||void 0,se(e,a,!0)))}(k.data,_.dataLine truncated
import{r as e,j as t}from"./vendor-react-64fcanlc.js";import{r as s,g8 as a,w as i,g9 as r,K as n,bX as o,ak as l,U as d,Y as u,al as p,ga as c,gb as m,gc as f,dF as g,u as h,l as y,q as b,x as v,gd as j,b2 as K,eW as x,bF as w,B as M,aC as $,E as k,bD as q,af as C,cn as S}from"./index-DkZLaQoO.js";import{$ as L,d as _,a as N}from"./Select-B1IhE7cv.js";import{b as I}from"./ItemText-M_HsyHL5.js";import{h as R,g as E,c as D,f as F,u as O}from"./logs-DniNK6NG.js";import{u as P,c as T}from"./flows-Bh9kBRHT.js";import{Z as A,e as G}from"./nodes-zKvLj1EG.js";import{c as Q,o as U,p as V,q as W}from"./nav-BXcfcRvQ.js";import{d as z}from"./nav-BYHXS5Ks.js";import{r as B,a as H}from"./nav-CE1PQnEs.js";import{f as X}from"./nav-C5gqT-qo.js";import{f as Y,r as Z,g as J,h as ee}from"./nav-CrX-mOuD.js";import{aU as te,a1 as se,aS as ae}from"./activity-DwYuxZaT.js";import{c as ie}from"./nav-BO8viH9G.js";import{n as re,a as ne}from"./nav-BpCoFZ5Q.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./AppearanceControls-5nB_BQSG.js";const oe=e=>s(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"]}]:[],le=e=>e.trim().toLowerCase().replace(/\s+/g," "),de=(e,t,s,a,i,r="",n)=>({hit:{id:t,label:s,description:a,route:i,query:r,...n&&{open:n}},keys:[...new Set(e.flatMap(e=>null==e?[]:[le(e)]))]}),ue=(e,t,s,a,i)=>{const{route:r,query:n}=g(i);return de(e,t,s,a,r,n)};function pe(e,t,s){const a=[{title:e(t),parent:s&&e(s)}];for(const i of c)m(i.id)&&a.push({title:f(i.id,t),parent:s&&f(i.id,s)});return a.flatMap(({title:e,parent:t})=>t?[e,t+" "+e]:[e])}function ce(e,t){let s=3;for(const a of e){if(a===t)return 0;a.startsWith(t)?s=1:3===s&&a.includes(t)&&(s=2)}return s}function me(t,m){const f=h(),g=y(),[K,x]=e.useState(""),w=b(),M=w.data?.resources,$=R(void 0,s(M,"connections",{whileLoading:!1})),k=E(s(M,"nodes",{whileLoading:!1})),q=D(s(M,"groups",{whileLoading:!1})),C=F(s(M,"providers",{whileLoading:!1})),S=O(s(M,"config",{whileLoading:!1})),L=P(s(M,"rules",{whileLoading:!1})),_=T(s(M,"dns_rules",{whileLoading:!1})),N=[w,$,k,q,C,S,L,_],I=G(v().data),me=!!I.globalSettings,[fe,ge]=e.useState(0);e.useEffect(()=>{let e=!0;for(const t of c)j(t.id).then(()=>e&&ge(e=>e+1),()=>{});return()=>{e=!1}},[]);const he=e.useMemo(()=>function(e,t,s){const n=t=>r(t,e),o=e?.resources,l=[...ie().map(e=>({path:"connections",params:{tab:e.id},titleKey:e.titleKey})),...re(o).map(e=>({path:"nodes",params:{tab:e.id},titleKey:e.titleKey})),...X(o).map(e=>({path:"flows",params:{tab:e.id},titleKey:e.titleKey})),...B(o).map(e=>({path:"rules",params:{tab:e.id},titleKey:e.titleKey})),...z(o).map(e=>({path:"dns",params:{tab:e.id},titleKey:e.titleKey})),...Q(s,e).map(e=>({path:"config",params:{tab:e.id},titleKey:e.titleKey,aliases:e.aliases})),...Y(o).map(e=>({path:"settings",params:{card:e.id},titleKey:e.titleKey,aliases:e.aliases}))],d=e=>a.find(t=>t.path===e).nav.titleKey;return[...a.filter(e=>e.nav&&n(e.path)).map(e=>de(pe(t,e.nav.titleKey),`page:${e.path}?`,t(e.nav.titleKey),void 0,e.path)),...l.filter(e=>n(e.path)).map(e=>{const s=i("",e.params);return de([...pe(t,e.titleKey,d(e.path)),...e.aliases??[]],`page:${e.path}?${s}`,t(e.titleKey),t(d(e.path)),e.path,s)})]}(w.data,f,me),[w.data,f,me,fe]),ye=e.useMemo(()=>function(e,t){const s=e?.resources,a=new Map(Y(s).map(e=>[e.id,e])),r=new Set(s?.runtime_settings.available?s.runtime_settings.fields??[]:[]),n=Object.entries(Z).filter(([e])=>r.has(e)).map(([e,t])=>({id:e,labelKey:t,card:"runtime",aliases:void 0})),o=J(s);return[...ee.filter(e=>!e.sources||o),...n].flatMap(e=>{const s=a.get(e.card);return s?[de([...pe(t,e.labelKey),...e.aliases??[]],`setting:${e.id}`,t(e.labelKey),t(s.titleKey),"settings",i("",{card:e.card,field:e.id}))]:[]})}(w.data,f),[w.data,f,fe]),be=e.useMemo(()=>function(e,t,a){return e&&s(t?.resources,"config",{whileLoading:!1})?e.fields.map(e=>de([...pe(a,e.label),e.key],`global:${e.key}`,a(e.label),a(U[e.group]),"config",i("",{tab:"global",field:e.key}))):[]}(I.globalSettings,w.data,f),[I.globalSettings,w.data,f,fe]),ve=e.useMemo(()=>function(e,t){const s=e?.resources;return[...H(s),...oe(s),...ne(s),...V(e),...te].filter(t=>null===t.route||r(t.route,e)).map(e=>de([...pe(t,e.titleKey,e.parentKey),...(e.aliasKeys??[]).flatMap(e=>pe(t,e)),...e.aliases??[]],`feature:${e.id}`,t(e.titleKey),e.parentKey&&t(e.parentKey),e.route,i("",e.params??{}),e.open))}(w.data,f),[w.data,f,fe]),je=e.useMemo(()=>function(e,t,s){return W(e,t,s).map(e=>ue([e.kind,e.summary],`module:${e.id}`,e.kind,e.range,e.href))}(S.data,I,f),[S.data,I,f]),Ke=e.useMemo(()=>function(e,t){return n(e).map(e=>de([e.domain,e.dst,e.src],`connection:${e.id}`,e.domain||e.dst||e.src||e.id,o(e,t),"connections",i("",{id:e.id})))}($.data,f),[$.data,f]),xe=e.useMemo(()=>function(e,t,s){const a=t?.providers??[];return(e??[]).map(e=>ue([e.name],`node:${e.id}`,e.name,l(s,e.group_ids)||void 0,se(e,a,!0)))}(k.data,C.dataLine truncated
@@ -1 +0,0 @@
import{r as e,j as a}from"./vendor-react-64fcanlc.js";import{ef as t,eS as r,eT as s,bG as l}from"./index-BpMcZry4.js";import{d as n,e as i}from"./Virtualizer-D4o4sanH.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{el as t,eV as r,eW as l,bF as s}from"./index-DkZLaQoO.js";import{$ as n,a as i}from"./Virtualizer-BUkJzK8u.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 +1 @@
import{r as s,j as e}from"./vendor-react-64fcanlc.js";import{ct as a,da as l,ck as r,bw as i,cq as c,cl as t,co as d,b7 as n}from"./index-BpMcZry4.js";import{b as o,c as p,$ as m,d as j,a as x}from"./Select-DfNHOkHm.js";import{I as h,a as b,b as f}from"./ItemText-CcW62_Lb.js";import{S as u}from"./SearchList-DnHiclH-.js";const N=s=>e.jsxs(x,{id:s.id,className:"rp-item",textValue:s.keywords?`${s.label} ${s.keywords}`:s.label,children:[e.jsx(b,{}),e.jsx(f,{i:s,children:s.desc&&e.jsx(c,{slot:"description",className:n("desc",s.tone),children:s.desc})})]},s.id);function v({label:x,searchLabel:b,sections:f,value:v,onChange:S,isDisabled:g,description:k,side:y,size:w}){const R=s.useRef(null),$=s.useRef(null),z=a(w),C=f.flatMap(s=>s.items).find(s=>s.id===v);return e.jsxs(o,{className:n("rp-picker",y?"rp-cluster":"rp-field"),selectedKey:v,onSelectionChange:s=>{null!=s&&S(String(s))},isDisabled:g,children:[e.jsxs("div",{ref:R,className:y?"rp-cluster":"rp-field",children:[e.jsx(l,{className:y?"rp-label":"lbl",children:x}),e.jsxs(r,{ref:$,className:"rp-selectbtn","data-size":z,children:[e.jsx(p,{children:()=>C?e.jsx(h,{i:C}):v}),e.jsx(i,{})]})]}),k&&e.jsx(c,{slot:"description",className:"rp-label",children:k}),e.jsx(t,{className:"rp-popover rp-search-popover",placement:"bottom start",triggerRef:y?$:R,children:e.jsx(u,{label:b,children:e.jsx(m,{className:"rp-menu-scroll rp-overlay-scroll",children:f.map(s=>s.title?e.jsxs(j,{id:s.id,children:[e.jsx(d,{className:"rp-sec-h",children:s.title}),s.items.map(N)]},s.id):s.items.map(N))})})})]})}export{v as S};
import{r as s,j as e}from"./vendor-react-64fcanlc.js";import{cs as a,d9 as l,cj as r,bv as i,cp as c,ck as t,cn as d,b4 as n}from"./index-DkZLaQoO.js";import{b as o,c as p,$ as m,d as j,a as x}from"./Select-B1IhE7cv.js";import{I as h,a as b,b as f}from"./ItemText-M_HsyHL5.js";import{S as u}from"./SearchList-Dzx-0VF7.js";const N=s=>e.jsxs(x,{id:s.id,className:"rp-item",textValue:s.keywords?`${s.label} ${s.keywords}`:s.label,children:[e.jsx(b,{}),e.jsx(f,{i:s,children:s.desc&&e.jsx(c,{slot:"description",className:n("desc",s.tone),children:s.desc})})]},s.id);function v({label:x,searchLabel:b,sections:f,value:v,onChange:S,isDisabled:g,description:k,side:y,size:R}){const $=s.useRef(null),w=s.useRef(null),z=a(R),C=f.flatMap(s=>s.items).find(s=>s.id===v);return e.jsxs(o,{className:n("rp-picker",y?"rp-cluster":"rp-field"),selectedKey:v,onSelectionChange:s=>{null!=s&&S(String(s))},isDisabled:g,children:[e.jsxs("div",{ref:$,className:y?"rp-cluster":"rp-field",children:[e.jsx(l,{className:y?"rp-label":"lbl",children:x}),e.jsxs(r,{ref:w,className:"rp-selectbtn","data-size":z,children:[e.jsx(p,{children:()=>C?e.jsx(h,{i:C}):v}),e.jsx(i,{})]})]}),k&&e.jsx(c,{slot:"description",className:"rp-label",children:k}),e.jsx(t,{className:"rp-popover rp-search-popover",placement:"bottom start",triggerRef:y?w:$,children:e.jsx(u,{label:b,children:e.jsx(m,{className:"rp-menu-scroll rp-overlay-scroll",children:f.map(s=>s.title?e.jsxs(j,{id:s.id,children:[e.jsx(d,{className:"rp-sec-h",children:s.title}),s.items.map(N)]},s.id):s.items.map(N))})})})]})}export{v as S};
@@ -0,0 +1 @@
import{en as e,cI as t,fD as l,cN as o,cP as a,fE as s,cH as i,fF as r,fG as n,dX as c,ez as d,d8 as u,ev as p,dY as g,ef as f,ei as y,eh as v,cV as m,e2 as b,d$ as h,eJ as D,fH as P,e0 as M,fI as S,d4 as K,cO as E,fJ as k,cZ as C,c_ as F,c$ as B,d1 as I,e1 as x,eM as R,eF as w,bp as A,el as V,e5 as T,eG as O,d7 as z,eI as L,fK as U,fL as H,d3 as N,cY as q,fM as W,eR as _,eS as j,e9 as $,fN as G,fO as J,cM as Z,em as X,fP as Y,eD as Q,cJ as ee,cK as te,cS as le,fQ as oe,cT as ae,cU as se,e3 as ie,cW as re,eo as ne,cX as ce,d6 as de,d0 as ue,eL as pe,fR as ge,fS as fe,d2 as ye}from"./index-DkZLaQoO.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 Ee(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,E=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:k,isPressed:C,isFocused:F,hasAction:B,allowsSelection:I}=c({selectionManager:l.selectionManager,key:a,ref:o,shouldSelectOnPressUp:v,allowsDifferentPressOrigin:v&&m,isVirtualized:h,shouldUseVirtualFocus:b,isDisabled:f,onAction:K||S?.props?.onAction?d(S?.props?.onAction,K):void 0,linkBehavior:s?.linkBehavior,UNSTABLE_itemBehavior:s?.UNSTABLE_itemBehavior,id:E}),{hoverProps:x}=u({isDisabled:f||!m,onHoverStart(){p()||(l.selectionManager.setFocused(!0),l.selectionManager.setFocusedKey(a))}}),R=t(S?.props);delete R.id;let w=g(S?.props);return{optionProps:{...M,...i(R,k,x,w),id:E},labelProps:{id:D},descriptionProps:{id:P},isFocused:F,isFocusVisible:F&&l.selectionManager.isFocused&&p(),isSelected:y,isDisabled:f,isPressed:C,allowsSelection:I,hasAction:B}}class ke{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
@@ -1 +0,0 @@
import{bp as e,cJ as t,fz as l,cO as o,cQ as a,fA as s,cI as i,fB as r,fC as n,dT as c,ew as d,d9 as u,ep as p,dU as g,ef as f,eD as y,fD as v,cP as m,fE as b,cN as h,eg as D,fF as P,ev as M,cK as K,cL as S,cT as C,eh as E,ey as k,eA as F,ez as B,cW as I,d_ as x,dX as w,eG as R,fG as A,dY as V,fH as T,d5 as O,fI as z,c_ as U,c$ as L,d0 as H,d2 as N,dZ as q,eJ as W,eC as _,e1 as j,d8 as $,eF as G,fJ as J,fK as Z,d4 as X,cZ as Y,fL as Q,eO as ee,eP as te,e5 as le,fM as oe,cU as ae,cV as se,d$ as ie,cX as re,ei as ne,cY as ce,d7 as de,d1 as ue,eI as pe,fN as ge,fO as fe,d3 as ye}from"./index-BpMcZry4.js";import{r as ve,$ as me}from"./vendor-react-64fcanlc.js";const be=new WeakMap;function he(e,l,o){let{key:a}=e,s=be.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},K=l.collection.getItem(a);if(h){let e=Number(K?.index);M["aria-posinset"]=Number.isNaN(e)?void 0:e+1,M["aria-setsize"]=n(l.collection)}let S=s?.onAction?()=>s?.onAction?.(a):void 0,C=function(e,t){let l=be.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:k,isFocused:F,hasAction:B,allowsSelection:I}=c({selectionManager:l.selectionManager,key:a,ref:o,shouldSelectOnPressUp:v,allowsDifferentPressOrigin:v&&m,isVirtualized:h,shouldUseVirtualFocus:b,isDisabled:f,onAction:S||K?.props?.onAction?d(K?.props?.onAction,S):void 0,linkBehavior:s?.linkBehavior,UNSTABLE_itemBehavior:s?.UNSTABLE_itemBehavior,id:C}),{hoverProps:x}=u({isDisabled:f||!m,onHoverStart(){p()||(l.selectionManager.setFocused(!0),l.selectionManager.setFocusedKey(a))}}),w=t(K?.props);delete w.id;let R=g(K?.props);return{optionProps:{...M,...i(w,E,x,R),id:C},labelProps:{id:D},descriptionProps:{id:P},isFocused:F,isFocusVisible:F&&l.selectionManager.isFocused&&p(),isSelected:y,isDisabled:f,isPressed:k,allowsSelection:I,hasAction:B}}const De=new WeakMap;function Pe(e){let{state:t,triggerRef:l,label:o,name:a,form:s,isDisabled:i}=e,r=ve.useRef(null),n=ve.useRef(null),{containerProps:c,selectProps:d}=function(e,t,l){let o=De.get(t)||{},{autoComplete:a,name:s=o.name,form:i=o.form,isDisabled:r=o.isDisabled}=e,{validationBehavior:n,isRequired:c}=o,{visuallyHiddenProps:d}=M({style:{position:"fixed",top:0,left:0}});K(e.selectRef,t.defaultValue,t.setValue),S({validationBehavior:n,focus:()=>l.current?.focus()},t,e.selectRef);let u=t.setValue,p=ve.useCallback(e=>{let t=C(e);t.multiple?u(Array.from(t.selectedOptions,e=>e.value)):u(e.currentTarget.value)},[u]);return{containerProps:{...d,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:a,disabled:r,multiple:"multiple"===t.selectionManager.selectionMode,required:"native"===n&&c,name:s,form:i,value:t.value??"",onChange:p,onInput:p}}}({...e,selectRef:t.collection.size<=300?r:n},t,l),u=Array.isArray(t.value)?t.value:[t.value];if(t.collection.size<=300)return me.createElement("div",{...c,"data-testid":"hidden-select-container"},me.createElement("label",null,o,me.createElement("select",{...d,ref:r},me.createElement("option",{value:"",label:" "}," "),[...t.collection.getKeys()].map(e=>{let l=t.collection.getItem(e);if(l&&"item"===l.type)return me.createElement("option",{key:l.key,value:l.key},l.textValue)}),0===t.collection.size&&a&&u.map((e,t)=>me.createElement("option",{key:t,value:e??""})))));if(a){let e=De.get(t)||{},{validationBehavior:l}=e;0===u.length&&(u=[null]);let o=u.map((e,t)=>{let o={type:"hidden",autoComplete:d.autoComplete,name:a,form:s,disabled:i,value:e??""};return"native"===l?me.createElement("input",{key:t,...o,ref:0===t?n:null,style:{display:"none"},type:"text",required:0===t&&d.required,onChange:()=>{}}):me.createElement("input",{key:t,...o,ref:0===t?n:null})});return me.createElement(me.Fragment,null,o)}return null}var Me;Me={"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:"選取項目",tableResizeLine truncated
@@ -1,2 +0,0 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./WallpaperSettings-CyA8YuOE.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-BpMcZry4.js","./index--6K0oddI.css","./logs-CSLBu0fr.js","./Select-DfNHOkHm.js","./ItemText-CcW62_Lb.js","./AppearanceControls-_LKvZPhT.js","./nodes-9cDj613b.js","./wallpaper-CEC7gitM.js"])))=>i.map(i=>d[i]);
import{co as e,cq as s,a0 as t,ak as a,h as i,m as n,Y as r,aM as l,dy as o,dz as d,u as c,dA as g,dB as u,cC as p,dj as m,bD as f,bz as h,A as b,bB as v,dC as x,bK as j,dD as y,bC as k,dE as N,s as w,dF as _,q as C,x as S,ap as P,dG as D,dH as I,dI as R,dJ as L,dK as T,c9 as U,al as H,l as F,bT as E,r as M,bI as q,U as A,bP as O,aK as V,C as B,E as W,ae as z,S as G,bk as $,a as K,b as J,bF as Y,p as Q,cg as Z,dk as X,B as ee,aO as se,aZ as te,dL as ae,dM as ie,ch as ne,aA as re,T as le,aL as oe,bG as de,bw as ce,dN as ge,dO as ue,dP as pe,dQ as me,_ as fe,w as he}from"./index-BpMcZry4.js";import{j as be,r as ve,a as xe}from"./vendor-react-64fcanlc.js";import{L as je}from"./AppearanceControls-_LKvZPhT.js";import{e as ye,L as ke,y as Ne,c as we,D as _e,K as Ce,F as Se,T as Pe,U as De,G as Ie}from"./logs-CSLBu0fr.js";import{T as Re}from"./Tabs-DHvnlDOn.js";import{T as Le}from"./Toolbar-CG16bAGF.js";import{$ as Te,d as Ue,a as He}from"./Select-DfNHOkHm.js";import{C as Fe}from"./ItemText-CcW62_Lb.js";import{d as Ee,c as Me}from"./auth-BJk40oQc.js";import{g as qe,r as Ae,c as Oe,s as Ve,a as Be,b as We,d as ze,e as Ge}from"./nav-gZ83ZK0m.js";import{N as $e,t as Ke,n as Je}from"./NumberField-DIugwoyR.js";import{aM as Ye,aN as Qe,aO as Ze}from"./activity-SP7tP5Sc.js";import{D as Xe}from"./Table-B9wBdFJO.js";import{T as es}from"./TimeCell-DFg9wUP4.js";import{a as ss}from"./geodataUpdate-D9C47k_Z.js";import{g as ts,v as as}from"./geodata-X0pHz03D.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-9cDj613b.js";import"./Checkbox-BiXT27lL.js";import"./Virtualizer-D4o4sanH.js";function is({swatch:e,look:s}){return be.jsx("span",{className:"rp-swatch","data-look":s,"aria-hidden":"true",children:e.map((e,s)=>{const[t,a,i,n,r]=e.split(" ");return be.jsx("span",{"data-dark":1===s||void 0,style:{"--sw-bg":t,"--sw-surface":a,"--sw-text":i,"--sw-accent":n,"--sw-positive":r},children:be.jsx("i",{})},s)})})}function ns({label:t,sections:a,value:i,onChange:n,help:r}){const l=ve.useId();return be.jsxs("div",{className:"rp-select-boxes",children:[be.jsx("span",{id:`${l}-label`,className:"rp-label",children:t}),be.jsx(Te,{className:"rp-select-grid",layout:"grid",selectionMode:"single",disallowEmptySelection:!0,selectedKeys:[i],onSelectionChange:e=>"all"!==e&&n(String([...e][0])),"aria-labelledby":`${l}-label`,"aria-describedby":r?`${l}-help`:void 0,children:a.map(({title:t,plain:a,items:i})=>{const n=i.length>1||i[0].label!==t;return be.jsxs(Ue,{"aria-label":n?void 0:t,children:[n&&be.jsx(e,{className:"rp-select-box-head",children:t}),i.map(e=>be.jsxs(He,{id:e.id,className:"rp-select-box",textValue:e.label,"aria-label":!n||a||e.label.includes(t)?e.label:`${t} ${e.label}`,children:[be.jsx(is,{swatch:e.swatch,look:e.look}),be.jsx("span",{children:e.label}),e.desc&&be.jsx(s,{slot:"description",className:"rp-label rp-truncate",children:e.desc}),be.jsx(Fe,{className:"rp-select-box-check"})]},e.id))]},t)})}),r&&be.jsx("span",{id:`${l}-help`,className:"rp-label",children:r})]})}const rs={"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"]},ls={"rose-pine/main":"palette.dawnMain","rose-pine/moon":"palette.dawnMoon","catppuccin/frappe":"palette.latteFrappe","catppuccin/macchiato":"palette.latteMacchiato","catppuccin/mocha":"palette.latteMocha","arco/arLine truncated
@@ -0,0 +1,2 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./WallpaperSettings-O3JHRr6B.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-DkZLaQoO.js","./index-OR7DFCdG.css","./logs-DniNK6NG.js","./Select-B1IhE7cv.js","./ItemText-M_HsyHL5.js","./AppearanceControls-5nB_BQSG.js","./nodes-zKvLj1EG.js","./wallpaper-CEC7gitM.js"])))=>i.map(i=>d[i]);
import{cn as e,cp as s,a0 as t,ak as a,h as i,m as n,Y as r,aJ as l,dB as o,dC as d,u as c,dD as g,dE as u,cB as p,dm as m,bC as f,by as h,bJ as b,A as v,bA as x,dF as j,dG as y,bB as k,dH as N,s as w,dI as _,dJ as S,q as C,x as P,ap as D,dK as I,dL as R,dM as L,dN as T,dO as H,c8 as U,al as E,l as F,bS as q,r as M,bH as O,U as A,bO as V,aI as B,C as W,E as G,ae as $,S as z,bi as K,a as J,b as Y,bE as Q,cf as Z,dn as X,B as ee,aL as se,aW as te,dP as ae,dQ as ie,cg as ne,ay as re,T as le,p as oe,bF as de,bv as ce,dR as ge,dS as ue,dT as pe,dU as me,_ as fe,w as he}from"./index-DkZLaQoO.js";import{j as be,r as ve,a as xe}from"./vendor-react-64fcanlc.js";import{L as je}from"./AppearanceControls-5nB_BQSG.js";import{q as ye,L as ke,E as Ne,c as we,D as _e,K as Se,I as Ce,Y as Pe,Z as De,J as Ie}from"./logs-DniNK6NG.js";import{T as Re}from"./Tabs-Ba8gYhNB.js";import{T as Le}from"./Toolbar-Br0J4-YM.js";import{$ as Te,d as He,a as Ue}from"./Select-B1IhE7cv.js";import{C as Ee}from"./ItemText-M_HsyHL5.js";import{d as Fe,c as qe}from"./auth-C9L8giMi.js";import{e as Me}from"./nodes-zKvLj1EG.js";import{g as Oe,r as Ae,c as Ve,s as Be,a as We,b as Ge,d as $e,e as ze}from"./nav-CrX-mOuD.js";import{N as Ke,t as Je,n as Ye}from"./NumberField-CN_dFkWR.js";import{aN as Qe,aO as Ze,aP as Xe}from"./activity-DwYuxZaT.js";import{D as es}from"./Table-DMzu4x5t.js";import{T as ss}from"./TimeCell-xHoiaHia.js";import{a as ts}from"./geodataUpdate-Nz09dXaJ.js";import{g as as,v as is}from"./geodata-X0pHz03D.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./useGridSelectionCheckbox-BJpzXB14.js";import"./Virtualizer-BUkJzK8u.js";function ns({swatch:e,look:s}){return be.jsx("span",{className:"rp-swatch","data-look":s,"aria-hidden":"true",children:e.map((e,s)=>{const[t,a,i,n,r]=e.split(" ");return be.jsx("span",{"data-dark":1===s||void 0,style:{"--sw-bg":t,"--sw-surface":a,"--sw-text":i,"--sw-accent":n,"--sw-positive":r},children:be.jsx("i",{})},s)})})}function rs({label:t,sections:a,value:i,onChange:n,help:r}){const l=ve.useId();return be.jsxs("div",{className:"rp-select-boxes",children:[be.jsx("span",{id:`${l}-label`,className:"rp-label",children:t}),be.jsx(Te,{className:"rp-select-grid",layout:"grid",selectionMode:"single",disallowEmptySelection:!0,selectedKeys:[i],onSelectionChange:e=>"all"!==e&&n(String([...e][0])),"aria-labelledby":`${l}-label`,"aria-describedby":r?`${l}-help`:void 0,children:a.map(({title:t,plain:a,items:i})=>{const n=i.length>1||i[0].label!==t;return be.jsxs(He,{"aria-label":n?void 0:t,children:[n&&be.jsx(e,{className:"rp-select-box-head",children:t}),i.map(e=>be.jsxs(Ue,{id:e.id,className:"rp-select-box",textValue:e.label,"aria-label":!n||a||e.label.includes(t)?e.label:`${t} ${e.label}`,children:[be.jsx(ns,{swatch:e.swatch,look:e.look}),be.jsx("span",{children:e.label}),e.desc&&be.jsx(s,{slot:"description",className:"rp-label rp-truncate",children:e.desc}),be.jsx(Ee,{className:"rp-select-box-check"})]},e.id))]},t)})}),r&&be.jsx("span",{id:`${l}-help`,className:"rp-label",children:r})]})}const ls={"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"]},os={"rose-pine/main":"palette.dawnMain","rose-pine/moon":"palette.dawnMoon","catppuccin/frappe":"palette.latteFrappe","catppuccin/macchiato":"palette.latteMacchiato","catppuccin/mocha":Line truncated
@@ -0,0 +1 @@
import{r as t,j as e}from"./vendor-react-64fcanlc.js";import{f as s,gf as i}from"./index-DkZLaQoO.js";import{a,aV as r,aW as o,aY as l,a$ as n,b0 as h,b1 as d}from"./activity-DwYuxZaT.js";import{G as m,C as c}from"./AreaCurve-DQSHOSpG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-zKvLj1EG.js";import"./AppearanceControls-5nB_BQSG.js";import"./ItemText-M_HsyHL5.js";import"./logs-DniNK6NG.js";import"./Select-B1IhE7cv.js";import"./array-C0VuvQyb.js";function u({values:u,timestamps:p,color:x,fmt:j,locale:f,height:y=32,floor:g=0,inset:v=0,lines:w}){const M=t.useId(),b=a(),[k,C]=t.useState(null),[$,A]=s(Math.round,120),{tip:W,showAt:I,hide:L}=r(),P=t.useMemo(()=>u.filter(t=>null!==t),[u]),S=P.length>1,T=t.useMemo(()=>[g>0?0:.85*Math.min(...P),Math.max(1.05*Math.max(...P)||1,g)],[P,g]),B=A?.width??0,D=(A?.height??y)-2,E=t.useMemo(()=>{const t=[Math.min(...p),Math.max(...p)];return p.map(e=>o(e,t,[v,Math.max(v,B-v)]))},[p,B,v]),F=t.useCallback(t=>o(t,T,[D,2]),[T,D]),G=t.useMemo(()=>u.map((t,e)=>null===t?null:{x:E[e],y:F(t)}),[u,E,F]);return t.useLayoutEffect(()=>{null!==k&&null!=u[k]&&j&&f&&$.current&&A?I({x:E[k],y:F(u[k]),width:A.width,bounds:l($.current),label:i(f).format(p[k]),lines:w?.(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:v,x2:A.width-v,y1:D,y2:D,stroke:b["hl-med"],strokeDasharray:"2 4"})}),S&&A&&e.jsxs(e.Fragment,{children:[e.jsx(n,{tip:W}),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(E,e.x))},children:[e.jsx("defs",{children:e.jsx(m,{id:M,color:x})}),e.jsx(c,{points:G,baseline:F(Math.max(0,T[0])),color:x,id:M,strokeWidth:1.5}),null!==k&&null!=u[k]&&e.jsx("circle",{cx:E[k],cy:F(u[k]),r:4,fill:x,stroke:b.base,strokeWidth:2})]})]})]})}export{u as SparkPlot};
@@ -1 +0,0 @@
import{r as t,j as e}from"./vendor-react-64fcanlc.js";import{f as s,fZ as i}from"./index-BpMcZry4.js";import{a,aS as r,aT as o,aU as l,aX as n,aY as h,aZ as d}from"./activity-SP7tP5Sc.js";import{G as m,C as c}from"./AreaCurve-DQSHOSpG.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./nodes-9cDj613b.js";import"./AppearanceControls-_LKvZPhT.js";import"./ItemText-CcW62_Lb.js";import"./logs-CSLBu0fr.js";import"./Select-DfNHOkHm.js";import"./array-C0VuvQyb.js";function u({values:u,timestamps:p,color:x,fmt:j,locale:f,height:y=32,floor:g=0,inset:v=0,lines:w}){const M=t.useId(),b=a(),[k,C]=t.useState(null),[A,S]=s(Math.round,120),{tip:T,showAt:$,hide:I}=r(),L=t.useMemo(()=>u.filter(t=>null!==t),[u]),P=L.length>1,W=t.useMemo(()=>[g>0?0:.85*Math.min(...L),Math.max(1.05*Math.max(...L)||1,g)],[L,g]),Z=S?.width??0,B=(S?.height??y)-2,D=t.useMemo(()=>{const t=[Math.min(...p),Math.max(...p)];return p.map(e=>o(e,t,[v,Math.max(v,Z-v)]))},[p,Z,v]),E=t.useCallback(t=>o(t,W,[B,2]),[W,B]),F=t.useMemo(()=>u.map((t,e)=>null===t?null:{x:D[e],y:E(t)}),[u,D,E]);return t.useLayoutEffect(()=>{null!==k&&null!=u[k]&&j&&f&&A.current&&S?$({x:D[k],y:E(u[k]),width:S.width,bounds:l(A.current),label:i(f).format(p[k]),lines:w?.(k)??[j(u[k])]}):I()}),e.jsxs("div",{ref:A,style:{height:`var(--rp-spark-fill, ${y}px)`,width:"100%",position:"relative"},"aria-hidden":!!P||void 0,onPointerLeave:()=>C(null),children:[S&&!P&&e.jsx("svg",{"aria-hidden":!0,width:S.width,height:S.height,style:{display:"block",position:"absolute",inset:0},children:e.jsx("line",{x1:v,x2:S.width-v,y1:B,y2:B,stroke:b["hl-med"],strokeDasharray:"2 4"})}),P&&S&&e.jsxs(e.Fragment,{children:[e.jsx(n,{tip:T}),e.jsxs("svg",{className:"rp-activity-surface",width:S.width,height:S.height,viewBox:`0 0 ${S.width} ${S.height}`,style:{display:"block",position:"absolute",inset:0},onPointerMove:t=>{const e=h(t,t.currentTarget,S);C(e.x<0||e.x>S.width||e.y<2||e.y>S.height-2?null:d(D,e.x))},children:[e.jsx("defs",{children:e.jsx(m,{id:M,color:x})}),e.jsx(c,{points:F,baseline:E(Math.max(0,W[0])),color:x,id:M,strokeWidth:1.5}),null!==k&&null!=u[k]&&e.jsx("circle",{cx:D[k],cy:E(u[k]),r:4,fill:x,stroke:b.base,strokeWidth:2})]})]})]})}export{u as SparkPlot};
@@ -1 +0,0 @@
import{j as e}from"./vendor-react-64fcanlc.js";import{u as a,al as s,l,bG as r,ch as n}from"./index-BpMcZry4.js";import{N as t,t as i,n as o}from"./NumberField-DIugwoyR.js";import{L as d}from"./logs-CSLBu0fr.js";import{T as c}from"./Toolbar-CG16bAGF.js";import{m as u}from"./nodes-9cDj613b.js";import{bC as m,bD as p,bE as b,bF as h}from"./activity-SP7tP5Sc.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-DfNHOkHm.js";import"./ItemText-CcW62_Lb.js";import"./AppearanceControls-_LKvZPhT.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()],R=e=>v({...g,...e}),S=g.route||"routing",T=g.interval||(null==j.interval?"":String(j.interval)),y=m(T);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=>R({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=>R({url:e}),onBlur:()=>{const e=u(g.url);e!==g.url&&R({url:e})}}),void 0!==j.interval&&e.jsxs(e.Fragment,{children:[e.jsx(d,{takeFocus:F,label:N("nodes.interval"),items:[...null===j.interval?[{id:"",label:"—"}]:[],...p(j.interval,k,N)],value:y?"typed":T,isDisabled:x,onChange:e=>R({interval:"typed"===e?h(T):e})}),y&&e.jsxs(c,{className:"top",children:[e.jsx(t,{isDisabled:x,label:N("nodes.intervalCount"),width:120,value:o(y.count),minValue:0,maxValue:Number.MAX_SAFE_INTEGER,step:1,error:D??void 0,onChange:e=>R({interval:b(i(e),y.unit)})}),e.jsx(d,{label:N("nodes.intervalUnit"),items:[{id:"m",label:N("nodes.minutes")},{id:"h",label:N("nodes.hours")}],value:y.unit,isDisabled:x,onChange:e=>R({interval:b(y.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=>R({agent:e})}),void 0!==j.cache&&e.jsxs(e.Fragment,{children:[e.jsx(n,{isSelected:g.cache??j.cache,isDisabled:x,onChange:e=>R({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(d,{label:N("settings.geodataRoute"),items:[{id:"routing",label:N("settings.geodataRouteRouting")},{id:"direct",label:N("settings.geodataRouteDirect")},...[...new Set([...j.routes,..."routing"===S||"direct"===S?[]:[S]])].map(e=>({id:e,label:e}))],value:S,isDisabled:x,onChange:e=>R({route:e})}),e.jsx("span",{className:"rp-label",children:N("nodes.routeHelp")})]})]})}export{g as SubscriptionFields};
@@ -0,0 +1 @@
import{j as e}from"./vendor-react-64fcanlc.js";import{u as a,al as s,l,bF as r,cg as n}from"./index-DkZLaQoO.js";import{N as t,t as i,n as o}from"./NumberField-CN_dFkWR.js";import{q as d}from"./logs-DniNK6NG.js";import{T as c}from"./Toolbar-Br0J4-YM.js";import{q as u}from"./nodes-zKvLj1EG.js";import{bE as m,bF as p,bG as b,bH as g}from"./activity-DwYuxZaT.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-B1IhE7cv.js";import"./ItemText-M_HsyHL5.js";import"./AppearanceControls-5nB_BQSG.js";function h({value:h,onChange:v,fields:j,isDisabled:x,nameError:C,agentError:f,intervalError:D,urlError:F,focusInterval:E}){const N=a(),k=s[l()],R=e=>v({...h,...e}),S=h.route||"routing",H=h.interval||(null==j.interval?"":String(j.interval)),T=m(H);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=>R({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:F??void 0,spellCheck:!1,onChange:e=>R({url:e}),onBlur:()=>{const e=u(h.url);e!==h.url&&R({url:e})}}),void 0!==j.interval&&e.jsxs(e.Fragment,{children:[e.jsx(d,{takeFocus:E,label:N("nodes.interval"),items:[...null===j.interval?[{id:"",label:"—"}]:[],...p(j.interval,k,N)],value:T?"typed":H,isDisabled:x,onChange:e=>R({interval:"typed"===e?g(H):e})}),T&&e.jsxs(c,{className:"top",children:[e.jsx(t,{isDisabled:x,label:N("nodes.intervalCount"),width:120,value:o(T.count),minValue:0,maxValue:Number.MAX_SAFE_INTEGER,step:1,error:D??void 0,onChange:e=>R({interval:b(i(e),T.unit)})}),e.jsx(d,{label:N("nodes.intervalUnit"),items:[{id:"m",label:N("nodes.minutes")},{id:"h",label:N("nodes.hours")}],value:T.unit,isDisabled:x,onChange:e=>R({interval:b(T.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=>R({agent:e})}),void 0!==j.cache&&e.jsxs(e.Fragment,{children:[e.jsx(n,{isSelected:h.cache??j.cache,isDisabled:x,onChange:e=>R({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(d,{label:N("settings.geodataRoute"),items:[{id:"routing",label:N("settings.geodataRouteRouting")},{id:"direct",label:N("settings.geodataRouteDirect")},...[...new Set([...j.routes,..."routing"===S||"direct"===S?[]:[S]])].map(e=>({id:e,label:e}))],value:S,isDisabled:x,onChange:e=>R({route:e})}),e.jsx("span",{className:"rp-label",children:N("nodes.routeHelp")})]})]})}export{h as SubscriptionFields};
@@ -1 +0,0 @@
import{r as e,$ as t,b as l,j as n}from"./vendor-react-64fcanlc.js";import{ea as i,eb as o,ec as r,ed as s,ee as a,ef as d,bp as c,dV as u,cQ as h,cJ as y,eg as p,cT as f,cI as g,eh as m,ei as b,ej as w,ek as v,dT as x,cR as k,el as C,em as K,en as I,eo as S,ep as M,eq as E,er as R,cG as z,cH as D,es as P,cP as N,et as H,eu as W,ev as T,ew as A,dW as F,ex as V,ey as L,ez as B,eA as j,cU as O,cW as $,dX as U,d_ as _,eB as Y,eC as q,d5 as X,d6 as G,e1 as J,eD as Q,d8 as Z,c_ as ee,d0 as te,eE as le,eF as ne,d4 as ie,eG as oe,eH as re,d9 as se,dY as ae,e6 as de,c$ as ce,eI as ue,dZ as he,eJ as ye,eK as pe,eL as fe,eM as ge,eN as me,e3 as be,eO as we,eP as ve,e5 as xe,u as ke,i as Ce,b4 as Ke,eQ as Ie,af as Se,ck as Me,aE as Ee,b9 as Re,aD as ze,bw as De,b7 as Pe,eR as Ne,T as He}from"./index-BpMcZry4.js";import{b as We,a as Te,c as Ae,d as Fe,e as Ve,f as Le,g as Be}from"./Checkbox-BiXT27lL.js";import{f as je,g as Oe,h as $e,i as Ue,j as _e}from"./Select-DfNHOkHm.js";import{$ as Ye}from"./logs-CSLBu0fr.js";import{e as qe,a as Xe,c as Ge,b as Je,d as Qe}from"./Virtualizer-D4o4sanH.js";class Ze{constructor(e){if(this.collection=e.collection,this.disabledKeys=e.disabledKeys,this.disabledBehavior=e.disabledBehavior||"all",this.direction=e.direction,this.collator=e.collator,!e.layout&&!e.ref)throw new Error("Either a layout or a ref must be specified.");this.layoutDelegate=e.layoutDelegate||(e.layout?new et(e.layout):new i(e.ref)),this.focusMode=e.focusMode??"row"}isCell(e){return"cell"===e.type}isRow(e){return"row"===e.type||"item"===e.type}isDisabled(e){return"all"===this.disabledBehavior&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&"selection"!==e.props?.disabledBehavior}findPreviousKey(e,t,l=!1){let n=null!=e?this.collection.getKeyBefore(e):this.collection.getLastKey();for(;null!=n;){let e=this.collection.getItem(n);if(!e)return null;if((l||!this.isDisabled(e))&&(!t||t(e)))return n;n=this.collection.getKeyBefore(n)}return null}findNextKey(e,t,l=!1){let n=null!=e?this.collection.getKeyAfter(e):this.collection.getFirstKey();for(;null!=n;){let e=this.collection.getItem(n);if(!e)return null;if((l||!this.isDisabled(e))&&(!t||t(e)))return n;if(n=this.collection.getKeyAfter(n),null==n)return null}return null}getKeyForItemInRowByIndex(e,t=0){if(t<0)return null;let l=this.collection.getItem(e);if(!l)return null;let n=0;for(let i of o(l,this.collection)){if(i.colSpan&&i.colSpan+n>t)return i.key??null;if(i.colSpan&&(n=n+i.colSpan-1),n===t)return i.key??null;n++}return null}getKeyBelow(e,t){let l=e,n=this.collection.getItem(l);if(!n)return null;if(this.isCell(n)&&(l=n.parentKey??null),null==l)return null;if(l=this.findNextKey(l,e=>"item"===e.type,t?.includeDisabled),null!=l){if(this.isCell(n)){let e=n.colIndex?n.colIndex:n.index;return this.getKeyForItemInRowByIndex(l,e)}if("row"===this.focusMode)return l}return null}getKeyAbove(e,t){let l=e,n=this.collection.getItem(l);if(!n)return null;if(this.isCell(n)&&(l=n.parentKey??null),null==l)return null;if(l=this.findPreviousKey(l,e=>"item"===e.type,t?.includeDisabled),null!=l){if(this.isCell(n)){let e=n.colIndex?n.colIndex:n.index;return this.getKeyForItemInRowByIndex(l,e)}if("row"===this.focusMode)return l}return null}getKeyRightOf(e){let t=this.collection.getItem(e);if(!t)return null;if(this.isRow(t)){let e=o(t,this.collection);return("rtl"===this.direction?r(e)?.key:s(e)?.key)??null}if(this.isCell(t)&&null!=t.parentKey){let l=this.collection.getItem(t.parentKey);if(!l)return null;let n=o(l,this.collection),i=("rtl"===this.direction?a(n,t.index-1):a(n,t.index+1))??null;return i?i.key??null:"row"===this.focusMode?t.parentKey??null:("rtl"===this.direction?this.getFirstKey(e):this.getLastKey(e))??null}return null}getKeyLeftOf(e){let t=this.collection.getItem(e);if(!t)return null;if(this.isRow(t)){let e=o(t,this.collection);return("rtl"===this.direction?s(e)?.key:r(e)?.key)??null}if(this.isCell(t)&&null!=t.parentKey){let l=this.collection.getItem(t.parentKey);if(!l)return null;let n=o(l,this.collection),i=("rtl"===this.direction?a(n,t.index+1):a(n,t.index-1))??null;return i?i.key??null:"row"===this.focusMode?t.parentKey??null:("rtl"===this.direction?this.getLastKey(e):this.getFirstKey(e))??null}return null}getFirstKey(e,t){let l,n=e??null;if(null!=n){if(l=this.collection.getItem(n),!l)return null;if(this.isCell(l)&&!t&&null!=l.parentKey){let e=this.collection.getItem(l.parentKey);return e?s(o(e,this.collection))?.key??null:null}}if(n=this.findNextKey(void 0,e=>"item"===e.type),null!=n&&(l&&this.isCell(l)&&t||"cell"===this.focusMode)){let e=this.collection.getItem(n);if(!e)return null;n=s(o(e,this.collection))?.key??null}return n}getLastKey(e,t){let l,n=e??null;if(null!=n){if(l=this.collection.getItem(n),!l)return null;if(this.isCell(l)&&!t&&null!=l.parentKey){let e=this.collection.getItem(l.parentKey);if(!e)return null;let t=o(e,this.collection);return r(t)?.key??null}}if(n=this.findPreviousKey(void 0,e=>"item"===e.type),null!=n&&(l&&this.isCell(l)&&t||"cell"===this.focLine truncated
@@ -0,0 +1 @@
import{r as e,$ as t,b as l,j as n}from"./vendor-react-64fcanlc.js";import{ed as i,ee as o,ef as r,eg as s,eh as a,ei as d,cT as c,ej as u,ek as h,el as y,bp as p,d_ as f,cP as g,cI as m,em as b,cS as w,cH as v,en as x,eo as k,ep as C,eq as K,dX as I,cQ as S,er as M,es as E,et as R,eu as z,ev as D,ew as P,ex as N,cF as H,cG as W,ey as T,ez as A,dZ as F,eA as V,cO as L,eB as B,eC as j,eD as O,cV as $,d$ as U,e2 as _,eE as Y,eF as q,d4 as X,d5 as G,e5 as Q,eG as Z,d7 as J,cZ as ee,c$ as te,eH as le,eI as ne,d3 as ie,eJ as oe,eK as re,d8 as se,e0 as ae,ea as de,c_ as ce,eL as ue,e1 as he,eM as ye,eN as pe,eO as fe,eP as ge,eQ as me,e7 as be,eR as we,eS as ve,e9 as xe,u as ke,i as Ce,b1 as Ke,eT as Ie,af as Se,cj as Me,aC as Ee,b6 as Re,aB as ze,bv as De,b4 as Pe,eU as Ne,T as He}from"./index-DkZLaQoO.js";import{b as We,a as Te,c as Ae,d as Fe,e as Ve,f as Le,g as Be}from"./useGridSelectionCheckbox-BJpzXB14.js";import{f as je,g as Oe,h as $e,i as Ue,j as _e}from"./Select-B1IhE7cv.js";import{$ as Ye}from"./logs-DniNK6NG.js";import{a as qe,c as Xe,e as Ge,d as Qe,$ as Ze}from"./Virtualizer-BUkJzK8u.js";class Je{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 et{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.items.entries()){let e={...o,level:o.level??0,kLine truncated
@@ -0,0 +1 @@
import{r as e,$ as t,j as s}from"./vendor-react-64fcanlc.js";import{dX as i,cI as l,dY as a,cG as o,cH as n,dZ as r,bp as d,d_ as c,cP as u,cT as b,d$ as h,e0 as f,d4 as p,d7 as y,d8 as v,cZ as g,c_ as m,e1 as K,cV as S,e2 as x,e3 as P,e4 as D,e5 as C,cW as E,d3 as w,e6 as F,e7 as M,c$ as I,e8 as N,e9 as j,ea as k,ba as R,eb as H,ec as L}from"./index-DkZLaQoO.js";import{a as T}from"./useGridSelectionCheckbox-BJpzXB14.js";import{e as V}from"./Select-B1IhE7cv.js";import{T as A}from"./Toolbar-Br0J4-YM.js";const $=new WeakMap;function z(e,t,s){if(!e)return"";return"string"==typeof t&&(t=t.replace(/\s+/g,"")),`${$.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 B(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:o,selectionManager:n}=V({...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:o,selectionManager:n,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,o=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!==o.current)&&i.setFocusedKey(e),o.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 G=e.createContext(null),U=e.createContext(null),X=e.forwardRef(function(s,i){[s,i]=S(s,i,G);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(Z,{props:s,collection:e,tabsRef:i}))});function Z({props:s,tabsRef:i,collection:a}){let{orientation:o="horizontal"}=s,r=B({...s,collection:a,children:void 0}),{focusProps:d,isFocused:c,isFocusVisible:u}=y({within:!0}),b=e.useMemo(()=>({orientation:o,isFocusWithin:c,isFocusVisible:u}),[o,c,u]),h=g({...s,defaultClassName:"react-aria-Tabs",values:b}),f=l(s,{global:!0});return t.createElement(m.div,{...n(f,h,d),ref:i,slot:s.slot||void 0,"data-focused":c||void 0,"data-orientation":o,"data-focus-visible":u||void 0,"data-disabled":r.isDisabled||void 0},t.createElement(I,{values:[[G,s],[U,r]]},h.children))}const _=e.forwardRef(function(s,i){return e.useContext(U)?t.createElement(Q,{props:s,forwardedRef:i}):t.createElement(h,s)});function Q({props:s,forwardedRef:i}){let a=e.useContext(U),{CollectionRoot:o}=e.useContext(C),{orientation:b="horizontal",keyboardActivation:h="automatic"}=E(G),f=p(i),{tabListProps:y}=function(t,s,i){let{orientation:l="horizontal",keyboardActivation:a="automatic"}=t,{collection:o,selectionManager:b,disabledKeys:h}=s,{direction:f}=d(),p=e.useMemo(()=>new O(o,f,l,h),[o,h,l,f]),{collectionProps:y}=c({ref:i,selectionManager:b,keyboardDelegate:p,selectOnFocus:"automatic"===a,disallowEmptySelection:!0,scrollRef:i,linkBehavior:"selection"}),v=u();$.set(s,v);let g=r({...t,id:v});return{tabListProps:{...n(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,{...n(K,v,y),ref:f,"data-orientLine truncated
@@ -1 +0,0 @@
import{r as e,$ as t,j as s}from"./vendor-react-64fcanlc.js";import{dT as i,cJ as l,dU as a,cH as o,cI as n,bp as r,dV as d,cQ as c,dW as u,cU as b,dX as h,dY as f,d5 as p,d8 as y,d9 as v,c_ as g,c$ as m,dZ as K,cW as S,d_ as x,d$ as P,e0 as D,e1 as C,cX as E,d4 as w,e2 as F,e3 as M,d0 as I,e4 as N,e5 as j,e6 as k,e7 as R,e8 as H,e9 as L}from"./index-BpMcZry4.js";import{a as T}from"./Checkbox-BiXT27lL.js";import{e as V}from"./Select-DfNHOkHm.js";import{T as A}from"./Toolbar-CG16bAGF.js";const $=new WeakMap;function z(e,t,s){if(!e)return"";return"string"==typeof t&&(t=t.replace(/\s+/g,"")),`${$.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 W(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:o,selectionManager:n}=V({...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:o,selectionManager:n,selectedKey:s,setSelectedKey:i,selectedItem:r}}({...t,onSelectionChange:t.onSelectionChange?e=>{null!=e&&t.onSelectionChange?.(e)}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:t.defaultSelectedKey??B(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set)??void 0}),{selectionManager:i,collection:l,selectedKey:a}=s,o=e.useRef(a);return e.useEffect(()=>{let e=a;null!=t.selectedKey||!i.isEmpty&&null!=e&&l.getItem(e)||(e=B(l,s.disabledKeys),null!=e&&i.setSelectedKeys([e])),(null!=e&&null==i.focusedKey||!i.isFocused&&e!==o.current)&&i.setFocusedKey(e),o.current=e}),{...s,isDisabled:t.isDisabled||!1}}function B(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),X=e.createContext(null),_=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(J,{props:s,collection:e,tabsRef:i}))});function J({props:s,tabsRef:i,collection:a}){let{orientation:o="horizontal"}=s,r=W({...s,collection:a,children:void 0}),{focusProps:d,isFocused:c,isFocusVisible:u}=y({within:!0}),b=e.useMemo(()=>({orientation:o,isFocusWithin:c,isFocusVisible:u}),[o,c,u]),h=g({...s,defaultClassName:"react-aria-Tabs",values:b}),f=l(s,{global:!0});return t.createElement(m.div,{...n(f,h,d),ref:i,slot:s.slot||void 0,"data-focused":c||void 0,"data-orientation":o,"data-focus-visible":u||void 0,"data-disabled":r.isDisabled||void 0},t.createElement(I,{values:[[U,s],[X,r]]},h.children))}const Q=e.forwardRef(function(s,i){return e.useContext(X)?t.createElement(Y,{props:s,forwardedRef:i}):t.createElement(h,s)});function Y({props:s,forwardedRef:i}){let a=e.useContext(X),{CollectionRoot:o}=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:o,selectionManager:b,disabledKeys:h}=s,{direction:f}=r(),p=e.useMemo(()=>new O(o,f,l,h),[o,h,l,f]),{collectionProps:y}=d({ref:i,selectionManager:b,keyboardDelegate:p,selectOnFocus:"automatic"===a,disallowEmptySelection:!0,scrollRef:i,linkBehavior:"selection"}),v=c();$.set(s,v);let g=u({...t,id:v});return{tabListProps:{...n(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,{...n(K,v,y),ref:f,"data-orientation":b||void 0Line truncated
@@ -0,0 +1 @@
import{r as e,j as n,a as t}from"./vendor-react-64fcanlc.js";import{l as r,ak as s,dq as a,cj as l,dr as c,b4 as o}from"./index-DkZLaQoO.js";import{L as u}from"./AppearanceControls-5nB_BQSG.js";function i({children:e,tone:t,action:r}){return n.jsxs("span",{className:o("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 d({href:e,children:t}){return n.jsx(u,{href:e,className:"rp-tag rp-tag-link",children:n.jsx("span",{className:"rp-tag-label",children:t})})}function h({count:t,label:r,names:s}){const[o,u]=e.useState(!1);return n.jsxs(a,{delay:400,isOpen:o,onOpenChange:u,shouldCloseOnPress:!1,children:[n.jsx(l,{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(c,{children:s})]})}const p=(e,n)=>function(e,n,t,r){const s=e=>e<=t+.01,a=e.reduce((e,n)=>[...e,e[e.length-1]+n+r],[0]);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}),k=y.key===g?y.count:null;e.useLayoutEffect(()=>{const e=o.current;if(y.probe||null!==k||!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,k,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===k?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 w=s(c,a.map(e=>e.label)),C=null===k?0:a.length-k,R=null===k&&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,k??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(d,{href:e.href,children:e.label},e.id)),R.map(e=>n.jsx(x,{count:e},e)),C>0&&n.jsx(h,{count:C,label:l(C),names:w})]})}export{y as F,d as L,g as T,i as a};
@@ -1 +0,0 @@
import{r as e,j as n,a as t}from"./vendor-react-64fcanlc.js";import{l as r,ak as l,dm as s,ck as a,dn as c,b7 as o}from"./index-BpMcZry4.js";import{L as u}from"./AppearanceControls-_LKvZPhT.js";function i({children:e,tone:t,action:r}){return n.jsxs("span",{className:o("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(u,{href:e,className:"rp-tag rp-tag-link",children:n.jsx("span",{className:"rp-tag-label",children:t})})}function d(e,n,t,r){const l=e=>e<=t+.01,s=e.reduce((e,n)=>[...e,e[e.length-1]+n+r],[0]);if(l(s[e.length]-r))return e.length;let a=e.length-1;for(;a>0&&!l(s[a]+n(e.length-a));)a--;return a}function f({count:t,label:r,names:l}){const[o,u]=e.useState(!1);return n.jsxs(s,{delay:400,isOpen:o,onOpenChange:u,shouldCloseOnPress:!1,children:[n.jsx(a,{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(c,{children:l})]})}const p=e=>n=>e.more[String(n).length-1],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({label:t,items:s,more:a}){const c=r(),o=e.useRef(null),u=e.useRef(null),i=e.useRef(new Set),g=`${c}\n${s.map(e=>e.label).join("\n")}`,[x,y]=e.useState({key:g,count:null}),k=x.key===g?x.count:null;e.useLayoutEffect(()=>{const e=o.current;if(null!==k||!e?.getClientRects().length)return;const n=[...e.children].map(e=>e.getBoundingClientRect().width),t={key:g,tags:n.slice(0,s.length),more:n.slice(s.length),gap:Number.parseFloat(getComputedStyle(e).columnGap)||0};u.current=t,y({key:g,count:d(t.tags,p(t),e.getBoundingClientRect().width,t.gap)})},[x,g,k,s.length]),e.useLayoutEffect(()=>{const e=o.current;if(!e)return;const n=()=>y({key:g,count:null});m.set(e,{remeasure:n,read:()=>{const t=u.current;if(!e.getClientRects().length)return null;const 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 l=d(t.tags,p(t),e.getBoundingClientRect().width,t.gap);return l===k?null:()=>y({key:g,count:l})}});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 l of i.current)r.has(l)||t.unobserve(l);for(const l of r)i.current.has(l)||t.observe(l);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 w=l(c,s.map(e=>e.label)),C=null===k?0:s.length-k,R=null===k&&s.length?Array.from({length:String(s.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:[s.slice(0,k??s.length).map(e=>n.jsx(h,{href:e.href,children:e.label},e.id)),R.map(e=>n.jsx(f,{count:e,label:a(e),names:w},e)),C>0&&n.jsx(f,{count:C,label:a(C),names:w})]})}export{x as F,h as L,g as T,i as a};
@@ -1 +1 @@
import{j as a}from"./vendor-react-64fcanlc.js";import{al as s,l as r,dM as t,T as o,dL as e,a1 as n}from"./index-BpMcZry4.js";function d({at:d}){const i=s[r()],c=t();return a.jsx(o,{text:d?n(d,i):void 0,children:e(d,i,c)})}export{d as T};
import{j as a}from"./vendor-react-64fcanlc.js";import{al as s,l as r,dQ as t,T as o,dP as e,a1 as n}from"./index-DkZLaQoO.js";function d({at:d}){const i=s[r()],c=t();return a.jsx(o,{text:d?n(d,i):void 0,children:e(d,i,c)})}export{d as T};
@@ -0,0 +1 @@
import{j as a}from"./vendor-react-64fcanlc.js";import{b4 as r}from"./index-DkZLaQoO.js";function o({page:o,className:e,children:s,...t}){return a.jsx("div",{...t,className:r("rp-toolbar",e),"data-page-toolbar":o||void 0,children:s})}export{o as T};
@@ -1 +0,0 @@
import{j as a}from"./vendor-react-64fcanlc.js";import{b7 as r}from"./index-BpMcZry4.js";function o({page:o,className:e,children:s,...t}){return a.jsx("div",{...t,className:r("rp-toolbar",e),"data-page-toolbar":o||void 0,children:s})}export{o as T};
@@ -1 +0,0 @@
import{r as e,j as s}from"./vendor-react-64fcanlc.js";import{bS as r,u as i,l as a,a9 as l,q as o,r as n,z as t,A as d,c9 as u,a6 as p,a3 as m,aK as c,p as j,bF as h,cg as v,bG as b,B as _,ci as f,T as x,C as y}from"./index-BpMcZry4.js";import{u as g,r as k}from"./flows-4vf3kCNL.js";import{c as w,h as N,z as q,g as C,q as M,R as A,L,D as S,K as D}from"./logs-CSLBu0fr.js";import{e as R,t as T,c as E,n as F,d as V,q as I,a as P,b as O}from"./Rules-BLx-997n.js";import{a as Q,p as W}from"./probe-NjjZcqcD.js";import{u as z,R as H}from"./useQuickRule-DnICQncm.js";import{d as K}from"./activity-SP7tP5Sc.js";import{L as $}from"./AppearanceControls-_LKvZPhT.js";import{N as U,t as B,n as G}from"./NumberField-DIugwoyR.js";import{T as J}from"./Toolbar-CG16bAGF.js";import{D as X}from"./Table-B9wBdFJO.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-DfNHOkHm.js";import"./ItemText-CcW62_Lb.js";import"./nodes-9cDj613b.js";import"./Tabs-DHvnlDOn.js";import"./Checkbox-BiXT27lL.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./ConditionRow-BLWAZu2-.js";import"./Coverage-Cw68fF9k.js";import"./rule-C-7UBgmI.js";import"./labels-D8xxfRTQ.js";import"./nav-Dx6RnOEO.js";import"./recorder-BHyqDNp5.js";import"./geodataUpdate-D9C47k_Z.js";/* empty css */import"./LinkOut-Bzsd9jX9.js";import"./SearchSelect-FeisYm3Z.js";import"./SearchList-DnHiclH-.js";import"./Virtualizer-D4o4sanH.js";import"./AddCircle-net7vCQK.js";const Y=e=>/^\d+$/.test(e)&&Number(e)>=1&&Number(e)<=65535,Z={none:"rule.resolveNone",live:"rule.resolveLive",query:"rule.resolveQuery"};function ee({form:s,setForm:j,advanced:h,setAdvanced:v,touched:b},_){const f=i(),x=a(),y=l(),A=o(),L=A.data?.resources,S=w(n(L,"groups",{whileLoading:!1})),D=N(n(L,"nodes",{whileLoading:!1})),H=g(n(L,"rules",{whileLoading:!1})),$=q(D.refetch),{choices:U}=$,B=z(_),G=e.useMemo(()=>new Map(S.data?.map(e=>[e.name,e])??[]),[S.data]),J=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]),ee=e.useMemo(()=>new Map(H.data?.rules.map(e=>[e.rule_id,e])??[]),[H.data]),[se,re]=e.useState(null),ie=n(L,"providers",{whileLoading:!1}),ae=C(!!se&&ie),le=n(L,"groups",{whileLoading:!1}),{busy:oe,error:ne,run:te}=t(),de=ne??A.error,ue=e.useEffectEvent(e=>d("negative",f("rule.traceFailed"),u(e,f)));e.useEffect(()=>{de&&ue(de)},[de]);const pe=s.domain.trim()||s.dst_ip.trim()?s.dst_ip.trim()&&!r(s.dst_ip)?{field:"dst_ip",key:"ui.invalidIp"}:Y(s.dst_port)?s.src_ip.trim()&&!r(s.src_ip)?{field:"src_ip",key:"ui.invalidIp"}:s.src_port.trim()&&!Y(s.src_port)?{field:"src_port",key:"rule.invalidPort"}:!s.dscp.trim()||(me=s.dscp,/^\d+$/.test(me)&&Number(me)>=0&&Number(me)<=63)?"live"!==s.resolve&&"query"!==s.resolve||s.domain.trim()?"live"!==s.resolve&&"query"!==s.resolve||!s.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 me;const ce=b?pe:null,je=A.data?.resources.routing_trace,he=je?.resolve_modes??[],ve=A.data?.resources.dns_query,be=ve?.record_types,_e=e.useMemo(()=>(be??[]).filter(e=>"A"===e||"AAAA"===e),[be]),fe=ve?.limits?.max_types_per_request??1,xe=[...he,...!he.includes("live")&&he.includes("none")&&ve?.available&&_e.length?["query"]:[]],ye=!1!==je?.available,ge=""!==s.domain.trim()&&!s.dst_ip.trim(),ke=s.resolve??(ge&&xe.includes("live")?"live":ge&&xe.includes("query")?"query":"none"),we=!pe&&ye&&xe.includes(ke),Ne=e.useCallback(async()=>{if(oe||!we)return;const e=function(e){const s=e=>r(e),i={network:e.network,dst_port:Number(e.dst_port),...e.domain.trim()?{domain:e.domain.trim()}:{dst_ip:s(e.dst_ip)}};return e.domain.trim()&&e.dst_ip.trim()&&(i.dst_ip=s(e.dst_ip)),e.src_ip.trim()&&(i.src_ip=s(e.src_ip)),e.src_port.trim()&&(i.src_port=Number(e.src_port)),i.pname=e.pname.trim(),e.dscp.trim()&&(i.dscp=Number(e.dscp)),i}(s),i=await te("trace",s=>k({...y,dnsQuery:(e,r)=>M(y.dnsQuery,e,r,fe,s)},{input:e,resolve:ke,recordTypes:_e},s));re(i?{run:i,input:e}:null)},[y,oe,we,s,ke,_e,fe,te]),qe=H.data?.generation_id,Ce=e.useMemo(()=>se?.run.traces.flatMap(e=>e.evaluations.map(s=>({evaluation:s,traced:e.generation_id,current:qe===e.generation_id}))).map(({evaluation:e,traced:s,current:r},i)=>{const a=e.rules.find(e=>"matched"===e.result),l="determinate"!==e.decision&&!e.outbound&&r?(a&&ee.get(a.rule_id)?.outbound)??null:null,o=e.outbound??l,n=o&&!p(o)?m(o,se.input.network,G,J,X):null,t=R(e,i,se.input.domain??void 0,l,n,!!n?.node&&U(n.node).length>0,$.busy,f,x);return{...t,rows:t.rows.map(e=>({...e,href:K(e.id,r&&ee.has(e.id))})),links:E(n,le,ie?ae.data?.providers:[],f),seed:T(se.input,e,s)}})??[],[se,qe,ee,G,J,X,le,ie,ae.data,U,$.busy,f,x]),Me=e.useMemo(()=>se?{status:P(se.run.traces[0],se.run.query,f,x),query:se.run.query&&{...I(se.run.query,f,x),links:F(se.run.query.domain,L,f)},dns:se.run.traces.flatMap(e=>e.dns).map(e=>({...VLine truncated
@@ -0,0 +1 @@
import{r as e,j as r}from"./vendor-react-64fcanlc.js";import{bR as s,u as a,l as i,a9 as l,q as t,r as o,z as n,A as d,c8 as u,a6 as m,a3 as p,aI as c,bE as j,cf as h,bF as v,B as b,ch as f,af as x,T as _,C as k}from"./index-DkZLaQoO.js";import{u as y,r as g}from"./flows-Bh9kBRHT.js";import{c as w,g as N,F as q,f as C,t as M,R as A,L,q as R,D as S,K as T}from"./logs-DniNK6NG.js";import{e as D,t as F,c as E,n as I,d as P,q as V,a as O,b as Q}from"./Rules-CtSzVqw5.js";import{b as W,p as z}from"./probe-P4V7qZUr.js";import{u as H,R as $}from"./useQuickRule-Row9eJav.js";import{d as K}from"./activity-DwYuxZaT.js";import{L as B}from"./AppearanceControls-5nB_BQSG.js";import{N as G,t as U,n as X}from"./NumberField-CN_dFkWR.js";import{T as Y}from"./Toolbar-Br0J4-YM.js";import{D as J}from"./Table-DMzu4x5t.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-B1IhE7cv.js";import"./ItemText-M_HsyHL5.js";import"./nodes-zKvLj1EG.js";import"./Tabs-Ba8gYhNB.js";import"./useGridSelectionCheckbox-BJpzXB14.js";import"./DaeCode-DEjXqvav.js";import"./daeTokens-BVtuNnWZ.js";import"./ConditionRow-FRqe5mV9.js";import"./Coverage-C9wHHZbt.js";import"./rule-CaRkSdGM.js";import"./labels-D8xxfRTQ.js";import"./nav-CE1PQnEs.js";import"./recorder-BHyqDNp5.js";import"./geodataUpdate-Nz09dXaJ.js";/* empty css */import"./LinkOut-qIg2xTwZ.js";import"./SearchSelect-CgvsaAJS.js";import"./SearchList-Dzx-0VF7.js";import"./Virtualizer-BUkJzK8u.js";import"./AddCircle-Bl7yHPBv.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:v,touched:b},f){const x=a(),_=i(),k=l(),A=t(),L=A.data?.resources,R=w(o(L,"groups",{whileLoading:!1})),S=N(o(L,"nodes",{whileLoading:!1})),T=y(o(L,"rules",{whileLoading:!1})),$=q(S.refetch),{choices:B}=$,G=H(f),U=e.useMemo(()=>new Map(R.data?.map(e=>[e.name,e])??[]),[R.data]),X=e.useMemo(()=>new Map(R.data?.map(e=>[e.id,e])??[]),[R.data]),Y=e.useMemo(()=>new Map(S.data?.map(e=>[e.id,e])??[]),[S.data]),J=e.useMemo(()=>new Map(T.data?.rules.map(e=>[e.rule_id,e])??[]),[T.data]),[re,se]=e.useState(null),ae=o(L,"providers",{whileLoading:!1}),ie=C(!!re&&ae),le=o(L,"groups",{whileLoading:!1}),{busy:te,error:oe,run:ne}=n(),de=oe??A.error,ue=e.useEffectEvent(e=>d("negative",x("rule.traceFailed"),u(e,x)));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=b?me:null,je=A.data?.resources.routing_trace,he=je?.resolve_modes??[],ve=A.data?.resources.dns_query,be=ve?.record_types,fe=e.useMemo(()=>(be??[]).filter(e=>"A"===e||"AAAA"===e),[be]),xe=ve?.limits?.max_types_per_request??1,_e=[...he,...!he.includes("live")&&he.includes("none")&&ve?.available&&fe.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=>g({...k,dnsQuery:(e,s)=>M(k.dnsQuery,e,s,xe,r)},{input:e,resolve:ge,recordTypes:fe},r));se(a?{run:a,input:e}:null)},[k,te,we,r,ge,fe,xe,ne]),qe=T.data?.generation_id,Ce=e.useMemo(()=>re?.run.traces.flatMap(e=>e.evaluations.map(r=>({evaluation:r,traced:e.generation_id,current:qe===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&&J.get(i.rule_id)?.outbound)??null:null,t=e.outbound??l,o=t&&!m(t)?p(t,re.input.network,U,X,Y):null,n=D(e,a,re.input.domain??void 0,l,o,!!o?.node&&B(o.node).length>0,$.busy,x,_);return{...n,rows:n.rows.map(e=>({...e,href:K(e.id,s&&J.has(e.id))})),links:E(o,le,ae?ie.data?.providers:[],x),seed:F(re.input,e,r)}})??[],[re,qe,J,U,X,Y,le,ae,ie.data,B,$.buLine truncated
@@ -1 +1 @@
import{eb as t,bp as e,cT as i,eg as n,eU as s,eV as o,en as r,eu as l,eK as a,eM as h,eW as d,e1 as u,eX as c}from"./index-BpMcZry4.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{eg as t,bp as e,cS as i,em as n,eX as s,eY as o,et as r,eC as l,eN as a,eP as h,eZ as d,e5 as u,e_ as c}from"./index-DkZLaQoO.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 @@
import{r as e,$ as t,j as a}from"./vendor-react-64fcanlc.js";import{fA as n,bp as r,fa as l,g7 as s,fF as i,cI as o,gq as u,cP as c,cH as d,cK as m,cT as g,g8 as h,cU as p,cW as b,g4 as f,cZ as v,c_ as w,cJ as T,d0 as y,d1 as x,c$ as P,d9 as D,cX as j,d8 as C,aD as V,d5 as M,gr as S,gd as E,B as F,ct as R,da as N,u as k,gs as I,bk as H,ch as K}from"./index-BpMcZry4.js";import{$ as z}from"./logs-CSLBu0fr.js";import{u as B,s as L,M as O,w as A,D as $}from"./wallpaper-CEC7gitM.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-DfNHOkHm.js";import"./ItemText-CcW62_Lb.js";import"./AppearanceControls-_LKvZPhT.js";import"./nodes-9cDj613b.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,q=1;function W(t){const{isDisabled:a=!1,minValue:n=G,maxValue:r=U,numberFormatter:l,step:i=q,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(J(t.value)),[t.value,c]),m=e.useMemo(()=>c(J(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[T,y]=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(T);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.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=>T[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,y(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 _(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 Z(e,t,a){return n=>{a?.("number"==typeof e||"number"==typeof t?n[0]:n)}}const Q=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,Q);let c=e.useRef(null),d=f(a.formatOptions),m=W({...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 T=e.useRef(void 0),y=(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),T.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)===T.current&&(null!Line truncated
import{r as e,$ as t,j as a}from"./vendor-react-64fcanlc.js";import{fE as n,bp as r,f9 as l,ff as s,fP as i,cH as o,gq as u,cO as c,cG as d,cJ as m,cS as g,g0 as h,cT as p,cV as b,fZ as f,cY as v,cZ as w,cI as T,c$ as y,d0 as x,c_ as P,d8 as D,cW as j,d7 as C,aB as V,d4 as M,gr as S,g4 as E,B as F,cs as R,d9 as N,u as I,gs as k,bi as H,cg as B}from"./index-DkZLaQoO.js";import{$ as K}from"./logs-DniNK6NG.js";import{u as z,s as O,M as L,w as $,D as A}from"./wallpaper-CEC7gitM.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-B1IhE7cv.js";import"./ItemText-M_HsyHL5.js";import"./AppearanceControls-5nB_BQSG.js";import"./nodes-zKvLj1EG.js";const Y=new WeakMap;function G(e,t){let a=Y.get(e);if(!a)throw new Error("Unknown slider state");return`${a.id}-${t}`}const X=0,q=100,U=1;function W(t){const{isDisabled:a=!1,minValue:n=X,maxValue:r=q,numberFormatter:l,step:i=U,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(_(t.value)),[t.value,c]),m=e.useMemo(()=>c(_(t.defaultValue)??[n]),[t.defaultValue,n,c]),g=J(t.value,t.defaultValue,t.onChange),b=J(t.value,t.defaultValue,t.onChangeEnd);const[f,v]=p(d,m,g);let[w]=e.useState(f);const[T,y]=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(T);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=Z(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 I(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,I(t))},isThumbDragging:e=>T[e],setThumbDragging:function(e,t){if(a||!E(e))return;t&&(j.current=f);const n=C.current[e];var r;C.current=Z(C.current,e,t),r=C.current,C.current=r,y(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:I,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 Z(e,t,a){return e[t]===a?e:[...e.slice(0,t),a,...e.slice(t+1)]}function _(e){if(null!=e)return Array.isArray(e)?e:[e]}function J(e,t,a){return n=>{a?.("number"==typeof e||"number"==typeof t?n[0]:n)}}const Q=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,Q);let c=e.useRef(null),d=f(a.formatOptions),m=W({...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;Y.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}=K({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 T=e.useRef(void 0),y=(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),T.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)===T.current&&(null!Line truncated
@@ -1 +0,0 @@
import{j as e}from"./vendor-react-64fcanlc.js";import{u as s,bG as a,ch as o}from"./index-BpMcZry4.js";import{D as l,L as t}from"./logs-CSLBu0fr.js";import{T as d}from"./Toolbar-CG16bAGF.js";import{x as n}from"./Nodes-Dnjby2fw.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-DfNHOkHm.js";import"./ItemText-CcW62_Lb.js";import"./AppearanceControls-_LKvZPhT.js";import"./nodes-9cDj613b.js";import"./Tabs-DHvnlDOn.js";import"./Checkbox-BiXT27lL.js";import"./activity-SP7tP5Sc.js";import"./TimeCell-DFg9wUP4.js";import"./GridList-CZtL3cpM.js";import"./ProbeOptionsDialog-DFlcv-Ro.js";import"./Table-B9wBdFJO.js";import"./Virtualizer-D4o4sanH.js";import"./Tag-DnsbMsos.js";import"./FlagPicker-xvDaGCKr.js";import"./SearchSelect-FeisYm3Z.js";import"./SearchList-DnHiclH-.js";import"./outbounds-BWBv2v0q.js";import"./probe-NjjZcqcD.js";import"./nav-Cr9xMfh-.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(l,{title:c("nodes.xhttp.title"),flush:!0,children:[e.jsx("span",{className:"rp-label",children:c("nodes.xhttp.help")}),e.jsx(t,{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(d,{className:"top",children:[e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.path"),value:i.path,placeholder:"/",spellCheck:!1,onChange:e=>p({path:e})}),e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.host"),value:i.host,spellCheck:!1,onChange:e=>p({host:e})})]}),[...i.headers,["",""]].map(([s,o],l)=>e.jsxs(d,{className:"top",children:[e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.headerName",{n:l+1}),value:s,spellCheck:!1,error:r.has(l)?c("nodes.xhttp.headerDuplicate"):void 0,onChange:e=>j(l,e,o)}),e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.headerValue",{n:l+1}),value:o,spellCheck:!1,onChange:e=>j(l,s,e)})]},l)),e.jsxs(d,{className:"top",children:[e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.padding"),value:i.xPaddingBytes,placeholder:"100-1000",onChange:e=>p({xPaddingBytes:e})}),e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.postBytes"),value:i.scMaxEachPostBytes,placeholder:"1000000",onChange:e=>p({scMaxEachPostBytes:e})}),e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.postInterval"),value:i.scMinPostsIntervalMs,placeholder:"30",onChange:e=>p({scMinPostsIntervalMs:e})})]}),e.jsx(o,{isSelected:i.noGRPCHeader,isDisabled:h,onChange:e=>p({noGRPCHeader:e}),children:c("nodes.xhttp.noGrpcHeader")}),e.jsx(o,{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(d,{className:"top",children:[e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.downloadAddress"),value:i.download.address,spellCheck:!1,onChange:e=>m({address:e})}),e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.downloadPort"),value:i.download.port,width:96,onChange:e=>m({port:e})})]}),e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.downloadServerName"),value:i.download.serverName,spellCheck:!1,onChange:e=>m({serverName:e})}),e.jsxs(d,{className:"top",children:[e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.downloadPath"),value:i.download.path,placeholder:"/",spellCheck:!1,onChange:e=>m({path:e})}),e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.downloadHost"),value:i.download.host,spellCheck:!1,onChange:e=>m({host:e})})]})]})]})}export{i as XhttpOptions};
@@ -0,0 +1 @@
import{j as e}from"./vendor-react-64fcanlc.js";import{u as s,bF as a,cg as o}from"./index-DkZLaQoO.js";import{D as l,q as t}from"./logs-DniNK6NG.js";import{T as d}from"./Toolbar-Br0J4-YM.js";import{x as n}from"./Nodes-jRUmoonJ.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./Select-B1IhE7cv.js";import"./ItemText-M_HsyHL5.js";import"./AppearanceControls-5nB_BQSG.js";import"./nodes-zKvLj1EG.js";import"./Tabs-Ba8gYhNB.js";import"./useGridSelectionCheckbox-BJpzXB14.js";import"./Table-DMzu4x5t.js";import"./Virtualizer-BUkJzK8u.js";import"./activity-DwYuxZaT.js";import"./TimeCell-xHoiaHia.js";import"./CardView-Cz1YW93e.js";import"./GridList-CC4w_Iq3.js";import"./ProbeOptionsDialog-CbXH9b0U.js";import"./Tag-BJayNrqV.js";import"./FlagPicker-ewb3VJnn.js";import"./SearchSelect-CgvsaAJS.js";import"./SearchList-Dzx-0VF7.js";import"./outbounds-C-QT9t_b.js";import"./probe-P4V7qZUr.js";import"./nav-BpCoFZ5Q.js";function i({fields:i,duplicates:r,onChange:p,isDisabled:h}){const c=s(),m=e=>p({download:e}),j=i.mode||"auto",x=(e,s,a)=>{const o=[...i.headers];o[e]=[s,a],p({headers:o.filter(([e,s])=>e||s)})};return e.jsxs(l,{title:c("nodes.xhttp.title"),flush:!0,children:[e.jsx("span",{className:"rp-label",children:c("nodes.xhttp.help")}),e.jsx(t,{label:c("nodes.xhttp.mode"),items:[...new Set([...n,j])].map(e=>({id:e,label:e})),value:j,isDisabled:h,onChange:e=>e!==j&&p({mode:e})}),e.jsxs(d,{className:"top",children:[e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.path"),value:i.path,placeholder:"/",spellCheck:!1,onChange:e=>p({path:e})}),e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.host"),value:i.host,spellCheck:!1,onChange:e=>p({host:e})})]}),[...i.headers,["",""]].map(([s,o],l)=>e.jsxs(d,{className:"top",children:[e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.headerName",{n:l+1}),value:s,spellCheck:!1,error:r.has(l)?c("nodes.xhttp.headerDuplicate"):void 0,onChange:e=>x(l,e,o)}),e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.headerValue",{n:l+1}),value:o,spellCheck:!1,onChange:e=>x(l,s,e)})]},l)),e.jsxs(d,{className:"top",children:[e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.padding"),value:i.xPaddingBytes,placeholder:"100-1000",onChange:e=>p({xPaddingBytes:e})}),e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.postBytes"),value:i.scMaxEachPostBytes,placeholder:"1000000",onChange:e=>p({scMaxEachPostBytes:e})}),e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.postInterval"),value:i.scMinPostsIntervalMs,placeholder:"30",onChange:e=>p({scMinPostsIntervalMs:e})})]}),e.jsx(o,{isSelected:i.noGRPCHeader,isDisabled:h,onChange:e=>p({noGRPCHeader:e}),children:c("nodes.xhttp.noGrpcHeader")}),e.jsx(o,{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(d,{className:"top",children:[e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.downloadAddress"),value:i.download.address,spellCheck:!1,onChange:e=>m({address:e})}),e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.downloadPort"),value:i.download.port,width:96,onChange:e=>m({port:e})})]}),e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.downloadServerName"),value:i.download.serverName,spellCheck:!1,onChange:e=>m({serverName:e})}),e.jsxs(d,{className:"top",children:[e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.downloadPath"),value:i.download.path,placeholder:"/",spellCheck:!1,onChange:e=>m({path:e})}),e.jsx(a,{isDisabled:h,label:c("nodes.xhttp.downloadHost"),value:i.download.host,spellCheck:!1,onChange:e=>m({host:e})})]})]})]})}export{i as XhttpOptions};
@@ -0,0 +1,2 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AreaChart-VpEWQmQw.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-DkZLaQoO.js","./index-OR7DFCdG.css","./AreaCurve-DQSHOSpG.js","./array-C0VuvQyb.js","./nodes-zKvLj1EG.js","./AppearanceControls-5nB_BQSG.js","./ItemText-M_HsyHL5.js","./logs-DniNK6NG.js","./Select-B1IhE7cv.js","./Sparkline-CVtVW7e7.js","./Donut-aipLcZzv.js","./Editors-DnopwLy-.js","./GridList-CC4w_Iq3.js","./useGridSelectionCheckbox-BJpzXB14.js","./Delete-HQ5S6-JZ.js","./Editors-rPgk_VZK.css","./index-DjyGwNyS.js","./geodata-X0pHz03D.js","./auth-BsSyBMZz.js","./auth-C9L8giMi.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,s as l,R as c,S as d,a as u,b as m,I as p,L as h,u as f,_ as g,c as b,e as x,N as v,T as y,f as j,g as w,i as k,j as N,B as M,E as _,C as S,k as C,l as E,P as L,m as z,p as R,q as P,r as O,t as A,v as q,x as I,y as T,z as D,A as H,D as F,F as B,G as $,H as V,J as W,K as U,M as G,O as K,Q as J,U as X,V as Y,W as Q,X as Z,Y as ee,Z as te,$ 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 Ne,am as Me,an as _e,ao as Se,ap as Ce,aq as Ee,ar as Le,as as ze,at as Re,au as Pe,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 Be,aE as $e,aF as Ve,aG as We,aH as Ue,aI as Ge,aJ as Ke,aK as Je,aL as Xe,aM as Ye,aN as Qe,aO as Ze,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 Nt,bc as Mt,bd as _t,be as St,bf as Ct,bg as Et,bh as Lt,bi as zt,bj as Rt,bk as Pt,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 Bt,bu as $t,bv as Vt,bw as Wt}from"./index-DkZLaQoO.js";import{r as Ut,d as Gt,u as Kt,c as Jt,s as Xt,e as Yt,h as Qt,a as Zt,i as en,b as tn,f as nn,g as sn,j as an,k as rn,l as on,n as ln,m as cn,o as dn,p as un,q as mn,t as pn,v as hn,w as fn,x as gn,y as bn,z as xn,A as vn,B as yn,C as jn,D as wn}from"./nodes-zKvLj1EG.js";import{L as kn,C as Nn,u as Mn,a as _n,P as Sn,S as Cn,T as En,b as Ln,c as zn}from"./AppearanceControls-5nB_BQSG.js";import{W as Rn,S as Pn,L as On,u as An,a as qn,b as In,c as Tn,e as Dn,l as Hn,d as Fn,f as Bn,g as $n,h as Vn,V as Wn,B as Un,i as Gn,C as Kn,r as Jn,K as Xn,D as Yn,j as Qn,M as Zn,$ as es,k as ts,m as ns,n as ss,o as as}from"./logs-DniNK6NG.js";import{I as rs,C as is}from"./ItemText-M_HsyHL5.js";const os={"missing-offline-dependency":"config.diagnostic.offlineMissing","offline-dependency-denied":"config.diagnostic.offlineDenied","invalid-offline-dependency":"config.diagnostic.offlineInvalid","unreadable-offline-dependency":"config.diagnostic.offlineUnreadable"},ls=e=>Object.hasOwn(os,e);function cs(e,t,n){return ls(e.code)?{summary:t("config.diagnostic.offline",{reason:t(os[e.code]),which:n?t("config.diagnostic.offlineGeodata",{files:n}):t("config.diagnostic.offlineUsual")})}:s(e,t)}const ds=e=>[...new Set(e.flatMap(({item:e,message:t})=>e.message&&!t.includes(e.message)?[e.message]:[]))],us=(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()]},ms=(e,t)=>us(e,t,Ut),ps=(e,t)=>us(e,t,e=>Gt(e).map(e=>({name:Kt(e),written:e}))),hs=e=>"<redacted>"===e.path||""===e.path,fs=e=>hs(e)?"main"===e.kind?"config.dae":`${e.kind}-${e.id.slice(0,8)}.dae`:e.path.split("/").pop()||"config.dae";function gs(e,t){const n=e.find(e=>"main"===e.kind);if(!n)return null;const s=[n,...e.filter(e=>"include"===e.kind&&!hs(e))];return t&&!s.some(e=>e.id===t.id)?null:s.map(e=>({id:e.id,...hs(e)?{}:{path:e.path},content:e.id===t?.id?t.content:e.content}))}const bs=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})),xs=e=>bs(e).length,vs={main:"config.kind.main",include:"config.kind.include",subscription:"nodes.kind.subscription",generated:"config.kind.generated"},ys=(e,t)=>`${e}:${t}`;function js(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 ws=(e,t)=>t&&e?a("rules",{tab:"list",rule:e}):void 0,ks=(e,t,n=!1)=>a("nodes",{provider:r(e,t),q:e.name,node:n?e.id??null:null});function Ns(e,t){const n=e?.find(e=>e.name===t)?.id;return n?o("",{group:n}):""}function Ms(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 _s=["network","domain","dst_ip","dst_port","src_ip","src_port","pname"],Ss=e=>o("",{tab:"trace",...Object.fromEntries(_s.map(t=>[t,e[t]||null]))});function Cs(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 Es=a("settings",{card:"runtime"});function Ls(e,t=Jt){return e?js(e,t):null}function zs(e,t){const n=e.filter(e=>"main"===e.kind||"include"===e.kind);for(const s of n){const e=Xt(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",{tab:"source",source:n.find(e=>"main"===e.kind)?.id??null})}const Rs=a("activity",{card:"mode"}),Ps=a("overview",{caLine truncated
@@ -1,2 +0,0 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AreaChart-CqTV2ZQk.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-BpMcZry4.js","./index--6K0oddI.css","./AreaCurve-DQSHOSpG.js","./array-C0VuvQyb.js","./nodes-9cDj613b.js","./AppearanceControls-_LKvZPhT.js","./ItemText-CcW62_Lb.js","./logs-CSLBu0fr.js","./Select-DfNHOkHm.js","./Sparkline-CiSVZVwG.js","./Donut-B59wjqJE.js","./Editors-dKzIa8sH.js","./GridList-CZtL3cpM.js","./Checkbox-BiXT27lL.js","./Delete-Cfg0qtTJ.js","./Editors-rPgk_VZK.css","./index-BMEfMmeK.js","./geodata-X0pHz03D.js","./auth-CCQVpwEd.js","./auth-BJk40oQc.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,s as l,R as c,S as d,a as u,b as m,I as h,L as p,u as f,_ as g,c as b,e as x,N as v,T as y,f as j,g as w,i as k,j as N,B as M,E as _,C as S,k as C,l as E,P as L,m as z,p as R,q as O,r as P,t as A,v as I,x as T,y as q,z as D,A as H,D as F,F as B,G as $,H as V,J as W,K as U,M as G,O as K,Q as J,U as X,V as Y,W as Q,X as Z,Y as ee,Z as te,$ 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 he,ab as pe,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 Ne,am as Me,an as _e,ao as Se,ap as Ce,aq as Ee,ar as Le,as as ze,at as Re,au as Oe,av as Pe,aw as Ae,ax as Ie,ay as Te,az as qe,aA as De,aB as He,aC as Fe,aD as Be,aE as $e,aF as Ve,aG as We,aH as Ue,aI as Ge,aJ as Ke,aK as Je,aL as Xe,aM as Ye,aN as Qe,aO as Ze,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 ht,b1 as pt,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 Nt,bc as Mt,bd as _t,be as St,bf as Ct,bg as Et,bh as Lt,bi as zt,bj as Rt,bk as Ot,bl as Pt,bm as At,bn as It,bo as Tt,bp as qt,bq as Dt,br as Ht,bs as Ft,bt as Bt,bu as $t,bv as Vt,bw as Wt,bx as Ut}from"./index-BpMcZry4.js";import{r as Gt,c as Kt,s as Jt,h as Xt,d as Yt,i as Qt,a as Zt,b as en,e as tn,f as nn,g as sn,j as an,n as rn,u as on,k as ln,l as cn,p as dn,m as un,o as mn,q as hn,t as pn,v as fn,w as gn,x as bn,y as xn,z as vn,A as yn,B as jn}from"./nodes-9cDj613b.js";import{L as wn,C as kn,u as Nn,a as Mn,P as _n,S as Sn,T as Cn,b as En,c as Ln}from"./AppearanceControls-_LKvZPhT.js";import{W as zn,S as Rn,u as On,a as Pn,b as An,c as In,e as Tn,d as qn,l as Dn,f as Hn,g as Fn,h as Bn,i as $n,V as Vn,C as Wn,r as Un,K as Gn,D as Kn,j as Jn,M as Xn,$ as Yn,k as Qn,m as Zn,n as es}from"./logs-CSLBu0fr.js";import{I as ts,C as ns}from"./ItemText-CcW62_Lb.js";const ss={"missing-offline-dependency":"config.diagnostic.offlineMissing","offline-dependency-denied":"config.diagnostic.offlineDenied","invalid-offline-dependency":"config.diagnostic.offlineInvalid","unreadable-offline-dependency":"config.diagnostic.offlineUnreadable"},as=e=>Object.hasOwn(ss,e);function rs(e,t,n){return as(e.code)?{summary:t("config.diagnostic.offline",{reason:t(ss[e.code]),which:n?t("config.diagnostic.offlineGeodata",{files:n}):t("config.diagnostic.offlineUsual")})}:s(e,t)}const is=e=>[...new Set(e.flatMap(({item:e,message:t})=>e.message&&!t.includes(e.message)?[e.message]:[]))];function os(e,t){const n=e.map(e=>e.id===t?.id?t.content:e.content).flatMap(e=>void 0===e?[]:Gt(e));return[...new Map(n.map(({name:e,written:t})=>[t,{name:e,written:t}])).values()]}const ls=e=>"<redacted>"===e.path||""===e.path,cs=e=>ls(e)?"main"===e.kind?"config.dae":`${e.kind}-${e.id.slice(0,8)}.dae`:e.path.split("/").pop()||"config.dae";function ds(e,t){const n=e.find(e=>"main"===e.kind);if(!n)return null;const s=[n,...e.filter(e=>"include"===e.kind&&!ls(e))];return t&&!s.some(e=>e.id===t.id)?null:s.map(e=>({id:e.id,...ls(e)?{}:{path:e.path},content:e.id===t?.id?t.content:e.content}))}const us=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})),ms=e=>us(e).length,hs={main:"config.kind.main",include:"config.kind.include",subscription:"nodes.kind.subscription",generated:"config.kind.generated"},ps=(e,t)=>`${e}:${t}`;function fs(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 gs=(e,t)=>t&&e?a("rules",{tab:"list",rule:e}):void 0,bs=(e,t,n=!1)=>a("nodes",{provider:r(e,t),q:e.name,node:n?e.id??null:null});function xs(e,t){const n=e?.find(e=>e.name===t)?.id;return n?o("",{group:n}):""}function vs(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 ys=["network","domain","dst_ip","dst_port","src_ip","src_port","pname"],js=e=>o("",{tab:"trace",...Object.fromEntries(ys.map(t=>[t,e[t]||null]))});function ws(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 ks=a("settings",{card:"runtime"});function Ns(e,t=Kt){return e?fs(e,t):null}function Ms(e,t){const n=e.filter(e=>"main"===e.kind||"include"===e.kind);for(const s of n){const e=Jt(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",{tab:"source",source:n.find(e=>"main"===e.kind)?.id??null})}const _s=a("activity",{card:"mode"}),Ss=a("overview",{card:"limits"}),Cs=e=>a("nodes",{nodes:JSON.stringify(e)});let Es=!1;const Ls=new Set,zs={snapshot:()=>Es,set(e){Line truncated
@@ -1 +1 @@
import{D as e}from"./auth-BJk40oQc.js";import{aM as t,bK as o}from"./index-BpMcZry4.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-C9L8giMi.js";import{aJ as t,bJ as o}from"./index-DkZLaQoO.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};
@@ -1,2 +1,2 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./auth-CCQVpwEd.js","./index-BpMcZry4.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index--6K0oddI.css"])))=>i.map(i=>d[i]);
import{bz as a,dR as t,dS as o,t as n,_ as e}from"./index-BpMcZry4.js";const i=(a,t)=>new URL(a.replace(/\/+$/,"")+t,globalThis.location?.href),s=()=>e(()=>import("./auth-CCQVpwEd.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),r={username:"demo",password:"demo"};async function c(e,r){if(a(e))return(await s()).mockDiscovery();const c=await t(i(e,"/api"),{headers:{Accept:"application/json"},cache:"no-store",signal:r});if(!c.ok)throw await o(c);const p=await c.json();if("dae/honk-native"===p.name)throw new n("login.engineOutdated");return p.auth}async function p(a,o){return 404!==(await t(i(a,"/api/v1/capabilities"),{headers:{Accept:"application/json"},cache:"no-store",signal:o})).status}function u(a){return"password"!==a.mode?"token":a.setup_required?"setup":"login"}async function h(n,e,r,c){if(a(n))return(await s()).mockOpenSession(e,r);const p=await t(i(n,`/api/v1/auth/${e}`),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(r),cache:"no-store",signal:c},"setup"===e);if(!p.ok)throw await o(p,"POST");return p.json()}async function d(n,e,s){if(a(n))return;const r=await t(i(n,"/api/v1/auth/logout"),{method:"POST",headers:{Accept:"application/json",Authorization:"Bearer "+e},cache:"no-store",signal:s});if(!r.ok&&401!==r.status)throw await o(r,"POST")}export{r as D,p as a,d as c,c as d,h as o,u as s};
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./auth-BsSyBMZz.js","./index-DkZLaQoO.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./index-OR7DFCdG.css"])))=>i.map(i=>d[i]);
import{by as a,dV as t,dW as o,t as n,_ as e}from"./index-DkZLaQoO.js";const i=(a,t)=>new URL(a.replace(/\/+$/,"")+t,globalThis.location?.href),s=()=>e(()=>import("./auth-BsSyBMZz.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),r={username:"demo",password:"demo"};async function c(e,r){if(a(e))return(await s()).mockDiscovery();const c=await t(i(e,"/api"),{headers:{Accept:"application/json"},cache:"no-store",signal:r});if(!c.ok)throw await o(c);const p=await c.json();if("dae/honk-native"===p.name)throw new n("login.engineOutdated");return p.auth}async function p(a,o){return 404!==(await t(i(a,"/api/v1/capabilities"),{headers:{Accept:"application/json"},cache:"no-store",signal:o})).status}function u(a){return"password"!==a.mode?"token":a.setup_required?"setup":"login"}async function h(n,e,r,c){if(a(n))return(await s()).mockOpenSession(e,r);const p=await t(i(n,`/api/v1/auth/${e}`),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(r),cache:"no-store",signal:c},"setup"===e);if(!p.ok)throw await o(p,"POST");return p.json()}async function d(n,e,s){if(a(n))return;const r=await t(i(n,"/api/v1/auth/logout"),{method:"POST",headers:{Accept:"application/json",Authorization:"Bearer "+e},cache:"no-store",signal:s});if(!r.ok&&401!==r.status)throw await o(r,"POST")}export{r as D,p as a,d as c,c as d,h as o,u as s};
@@ -1 +0,0 @@
import{a9 as e,f3 as n,q as t,f4 as s,f5 as r,aq as a,f6 as o,db as i,f7 as l}from"./index-BpMcZry4.js";async function u(e,{input:n,resolve:t,recordTypes:s},r){if("query"!==t)return{traces:[await e.routingTrace({input:n,resolve:t},r)],query:null};const a=await e.dnsQuery(n.domain,s,r),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"},r));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=s(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]})},{...r(w,p,c),paused:f})}function f(t){const s=e();return n({key:["flow",{id:t}],fetch:e=>t?s.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 s=e();return n({key:["rules"],every:0,fetch:e=>s.rules(e)},{enabled:t})}function w(t=!0){const s=e();return n({key:["dnsRules"],every:0,fetch:e=>s.dnsRules(e)},{enabled:t})}export{c as a,f as b,w as c,u as r,d as u};
@@ -0,0 +1 @@
import{a9 as e,fn as n,q as t,fo as s,fq as a,aq as r,fp as o,da as i,fB as l}from"./index-DkZLaQoO.js";async function u(e,{input:n,resolve:t,recordTypes:s},a){if("query"!==t)return{traces:[await e.routingTrace({input:n,resolve:t},a)],query:null};const r=await e.dnsQuery(n.domain,s,a),o=[...new Set(["A","AAAA"].flatMap(e=>r.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"},a));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:r}}function c({connection_id:i,network:l="all",state:u="all"}={},c=!0,f=!1){const d=e(),{data:p,error:w}=t(),y=s(p,p?.resources.flows.max_page_size);return n({key:["flows",{connection_id:i,network:l,state:u,limit:y}],every:r.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]})},{...a(p,w,c),paused:f})}function f(t){const s=e();return n({key:["flow",{id:t}],fetch:e=>t?s.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 s=e();return n({key:["rules"],every:0,fetch:e=>s.rules(e)},{enabled:t})}function p(t=!0){const s=e();return n({key:["dnsRules"],every:0,fetch:e=>s.dnsRules(e)},{enabled:t})}export{c as a,f as b,p as c,u as r,d as u};
@@ -1 +1 @@
import{A as e,aK as s}from"./index-BpMcZry4.js";import"./vendor-react-64fcanlc.js";import{s as t}from"./nodes-9cDj613b.js";function a(e){const{tokens:s}=t(e),a=t=>s[t]?e.slice(s[t].from,s[t].to):"",i=new Set(s.flatMap((e,s)=>"text"===e.kind&&e.parens>0&&":"===a(s+1)&&["(",","].includes(a(s-1))?[a(s)]:[]));return["geosite","geoip"].filter(e=>i.has(e))}function i(e,s,t){const a=s?.available?s.assets??[]:null,i=e=>t?.assets.some(s=>s.kind===e&&"0"===s.size_bytes)??!1,n=e&&a?e.filter(e=>!a.includes(e)||i(e)):(a??[]).filter(i),o=!!s?.can_update&&!!e?.length&&!!a&&e.every(e=>a.includes(e));return{missing:n.map(e=>`${e}.dat`),repair:o}}const n=(t,a)=>t.then(s=>(s&&e("positive",a("settings.geodataUpdated")),!!s),e=>(s(e,a,a("settings.geodataFailed")),!1));export{n as a,a as b,i as g};
import{A as e,aI as s}from"./index-DkZLaQoO.js";import"./vendor-react-64fcanlc.js";import{s as t}from"./nodes-zKvLj1EG.js";function a(e){const{tokens:s}=t(e),a=t=>s[t]?e.slice(s[t].from,s[t].to):"",i=new Set(s.flatMap((e,s)=>"text"===e.kind&&e.parens>0&&":"===a(s+1)&&["(",","].includes(a(s-1))?[a(s)]:[]));return["geosite","geoip"].filter(e=>i.has(e))}function i(e,s,t){const a=s?.available?s.assets??[]:null,i=e=>t?.assets.some(s=>s.kind===e&&"0"===s.size_bytes)??!1,n=e&&a?e.filter(e=>!a.includes(e)||i(e)):(a??[]).filter(i),o=!!s?.can_update&&!!e?.length&&!!a&&e.every(e=>a.includes(e));return{missing:n.map(e=>`${e}.dat`),repair:o}}const n=(t,a)=>t.then(s=>(s&&e("positive",a("settings.geodataUpdated")),!!s),e=>(s(e,a,a("settings.geodataFailed")),!1));export{n as a,a as b,i as g};
@@ -0,0 +1 @@
import{l as e}from"./wallpaper-CEC7gitM.js";import"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";const r=""+new URL("glass-D3s0PXdk.css",import.meta.url).href;let t;function o(){if(t)return t;const e=document.head.querySelector("link[data-glass]");return e?.sheet?t=Promise.resolve():(e?.remove(),t=new Promise((e,o)=>{const s=document.createElement("link");s.rel="stylesheet",s.href=r,s.dataset.glass="",s.onload=()=>e(),s.onerror=()=>{t=void 0,o(new Error(`Unable to preload CSS for ${r}`))},document.head.insertBefore(s,document.head.querySelector('link[rel="stylesheet"], style'))}),t)}e();export{o as linkStylesheet};
@@ -1 +0,0 @@
import{l as e}from"./wallpaper-CEC7gitM.js";import"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";const r=""+new URL("glass-D3s0PXdk.css",import.meta.url).href;let o;function t(){if(o)return o;const e=document.head.querySelector("link[data-glass]");return e?.sheet?o=Promise.resolve():(e?.remove(),o=new Promise((e,t)=>{const s=document.createElement("link");s.rel="stylesheet",s.href=r,s.dataset.glass="",s.onload=()=>e(),s.onerror=()=>{o=void 0,t(new Error(`Unable to preload CSS for ${r}`))},document.head.insertBefore(s,document.head.querySelector('link[rel="stylesheet"], style'))}),o)}e();export{t as linkStylesheet};
@@ -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
@@ -1 +0,0 @@
import{bH as e,bI as t,aM as n,bJ as o,bK as r,bL as a,bM as i,bN as s,bO as l,bP as d,aT as c,bQ as u,aS as p,bR as _,M as m,bS as f}from"./index-BpMcZry4.js";import{C as g,D as h,s as b,u as w,E as v,F as y,G as k,H as x,I as S,J as I,r as A,K as q,L as M,M as N,n as $,N as O,O as C,P as D,Q as R,R as j,S as E,v as L}from"./nodes-9cDj613b.js";import{d as T,v as P,g as z}from"./geodata-X0pHz03D.js";import{mockSessionValid as U,withPasswordAuth as G,refuseWithoutSession as H}from"./auth-CCQVpwEd.js";import"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./auth-BJk40oQc.js";const F=Date.now(),J=e=>new Date(F-1e3*e).toISOString(),B=e=>new Date(F+1e3*e).toISOString(),W=J(0),Q="mock-instance-1",V="40",K={"x-honk":{config_export:{available:!0},config_import:{available:!0,replace_required:!0},config_revisions:{available:!0,can_activate:!0,max_revisions:50}}},X={extensions:K,observed_at:W,profiles:["base","full_transparency"],limits:{max_request_target_bytes:4096,max_header_bytes:16384,max_json_body_bytes:65536},resources:{...K,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.0.1-alpha",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}}},Y={...X.resources};delete Y["x-honk"];const Z={...X,extensions:{},profiles:["base"],resources:{...Y,groups:{...X.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:{...X.resources.flows,available:!1},routing_trace:{...X.resources.routing_trace,available:!1},events:{...X.resources.events,available:!1}}},ee={...X,extensions:{},profiles:["base"],resources:{...Object.fromEntries(Object.keys(Y).map(e=>[e,{available:!1}])),runtime:{available:!0},connections:{available:!0,can_close:!1,max_bulk_close:1e3},config:{available:!1,create:!1}}},te=g("regions").filter(e=>!e.startsLine truncated
@@ -1,2 +0,0 @@
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-DnHiclH-.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./Virtualizer-D4o4sanH.js","./index-BMEfMmeK.js","./nodes-9cDj613b.js","./geodata-X0pHz03D.js","./auth-CCQVpwEd.js","./auth-BJk40oQc.js","./SearchDialog-HRWujKxg.js","./Select-DfNHOkHm.js","./ItemText-CcW62_Lb.js","./logs-CSLBu0fr.js","./AppearanceControls-_LKvZPhT.js","./flows-4vf3kCNL.js","./nav-DSMpjA0M.js","./activity-SP7tP5Sc.js","./activity-Db7VRWAG.css","./nav-Br4EizUw.js","./nav-Dx6RnOEO.js","./nav-DTGZlsmE.js","./nav-gZ83ZK0m.js","./nav-BO8viH9G.js","./nav-Cr9xMfh-.js","./Overview-B70UhI1M.js","./files-Dt8K7QfP.js","./Table-B9wBdFJO.js","./Checkbox-BiXT27lL.js","./DaeCode-DEjXqvav.js","./daeTokens-BVtuNnWZ.js","./Connections-DJnfTV4N.js","./ipLookup-jJz7YASo.js","./LinkOut-Bzsd9jX9.js","./ipLookup-BYorpVJi.css","./OutboundTag-EsmwFTLz.js","./Tag-DnsbMsos.js","./Tabs-DHvnlDOn.js","./Toolbar-CG16bAGF.js","./SearchSelect-FeisYm3Z.js","./TimeCell-DFg9wUP4.js","./useQuickRule-DnICQncm.js","./AddCircle-net7vCQK.js","./rule-C-7UBgmI.js","./outbounds-BWBv2v0q.js","./labels-D8xxfRTQ.js","./Flows-vB7lLJCa.js","./Coverage-Cw68fF9k.js","./Flows-B78_vhjx.css","./Dns-Ct5FliFm.js","./Delete-Cfg0qtTJ.js","./Dns-CsAXSf3H.css","./impact-B8feJDtJ.css","./Policies-WQANmdA4.js","./ProbeOptionsDialog-DFlcv-Ro.js","./ConditionRow-BLWAZu2-.js","./GridList-CZtL3cpM.js","./NumberField-DIugwoyR.js","./probe-NjjZcqcD.js","./Rules-BLx-997n.js","./recorder-BHyqDNp5.js","./geodataUpdate-D9C47k_Z.js","./Nodes-Dnjby2fw.js","./FlagPicker-xvDaGCKr.js","./Config-8ciDdArn.js","./Events-Bong_UD0.js","./Copy-Bp9aWYUl.js","./Logs-BF-bjyix.js","./Settings-B62V8vnf.js","./Settings-BVpmQMTB.css","./glass-Cqyc7cvc.js","./wallpaper-CEC7gitM.js","./Login-CYfxhTlj.js"])))=>i.map(i=>d[i]);
import{r as e,$ 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)})};class u{constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}}class d extends u{filter(e,t,n){let[r,i]=y(e,t,this.firstChildKey,n),o=this.clone();return o.firstChildKey=r,o.lastChildKey=i,o}}class f extends u{static{this.type="header"}}class p extends u{static{this.type="loader"}}class h extends d{static{this.type="item"}filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}}class m extends d{static{this.type="section"}filter(e,t,n){let r=super.filter(e,t,n);if(r&&null!==r.lastChildKey){let t=e.getItem(r.lastChildKey);if(t&&"header"!==t.type)return r}return null}}class g{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=null!=this.firstKey?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=null!=e.nextKey?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=null!=n?.firstChildKey?t.get(n.firstChildKey):null;for(;r;)yield r,r=null!=r.nextKey?t.get(r.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(null!=t.prevKey){for(t=this.keyMap.get(t.prevKey);t&&"item"!==t.type&&null!=t.lastChildKey;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if("item"!==t.type&&null!=t.firstChildKey)return t.firstChildKey;for(;t;){if(null!=t.nextKey)return t.nextKey;if(null==t.parentKey)return null;t=this.keyMap.get(t.parentKey)}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=null!=this.lastKey?this.keyMap.get(this.lastKey):null;for(;null!=e?.lastChildKey;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw new Error("Not implemented")}clone(){let e=new(0,this.constructor);return e.keyMap=new Map(this.keyMap),e.firstKey=this.firstKey,e.lastKey=this.lastKey,e.itemCount=this.itemCount,e}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");"item"===e.type&&null==this.keyMap.get(e.key)&&thisLine truncated
@@ -0,0 +1 @@
import{bG as e,bH as t,aJ as n,bI as o,bJ as r,bK as a,bL as i,bM as s,bN as l,bO as d,aQ as c,bP as u,aP as p,bQ as _,M as m,bR as f}from"./index-DkZLaQoO.js";import{E as g,F as h,s as b,u as w,G as v,H as y,I as k,J as x,K as S,d as I,r as A,L as q,M,N,O as $,n as O,P as D,Q as C,R,S as j,e as E,x as L,T as P}from"./nodes-zKvLj1EG.js";import{d as T,v as z,g as U}from"./geodata-X0pHz03D.js";import{mockSessionValid as G,withPasswordAuth as F,refuseWithoutSession as H}from"./auth-BsSyBMZz.js";import"./vendor-react-64fcanlc.js";import"./_commonjsHelpers-CXUWDbkB.js";import"./auth-C9L8giMi.js";const J=Date.now(),B=e=>new Date(J-1e3*e).toISOString(),Q=e=>new Date(J+1e3*e).toISOString(),W=B(0),V="mock-instance-1",K="40",X={"x-honk":{config_export:{available:!0},config_import:{available:!0,replace_required:!0},config_revisions:{available:!0,can_activate:!0,max_revisions:50}}},Y={extensions:X,observed_at:W,profiles:["base","full_transparency"],limits:{max_request_target_bytes:4096,max_header_bytes:16384,max_json_body_bytes:65536},resources:{...X,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.0.1-alpha",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}}},Z={...Y.resources};delete Z["x-honk"];const ee={...Y,extensions:{},profiles:["base"],resources:{...Z,groups:{...Y.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:{...Y.resources.flows,available:!1},routing_trace:{...Y.resources.routing_trace,available:!1},events:{...Y.resources.events,available:!1}}},te={...Y,extensions:{},profiles:["base"],resources:{...Object.fromEntries(Object.keys(Z).map(e=>[e,{available:!1}])),runtime:{available:!0},connections:{available:!0,can_close:!1,max_bulk_close:1e3},config:{available:!1,create:!1}}},ne=g("regions").filter(e=>!e.startsWith("#Line truncated
@@ -0,0 +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-Dzx-0VF7.js","./vendor-react-64fcanlc.js","./_commonjsHelpers-CXUWDbkB.js","./Virtualizer-BUkJzK8u.js","./index-DjyGwNyS.js","./nodes-zKvLj1EG.js","./geodata-X0pHz03D.js","./auth-BsSyBMZz.js","./auth-C9L8giMi.js","./SearchDialog-VEh8xwPh.js","./Select-B1IhE7cv.js","./ItemText-M_HsyHL5.js","./logs-DniNK6NG.js","./AppearanceControls-5nB_BQSG.js","./flows-Bh9kBRHT.js","./nav-BXcfcRvQ.js","./activity-DwYuxZaT.js","./activity-Db7VRWAG.css","./nav-BYHXS5Ks.js","./nav-CE1PQnEs.js","./nav-C5gqT-qo.js","./nav-CrX-mOuD.js","./nav-BO8viH9G.js","./nav-BpCoFZ5Q.js","./Overview-COMXVcWR.js","./files-Dt8K7QfP.js","./Table-DMzu4x5t.js","./useGridSelectionCheckbox-BJpzXB14.js","./DaeCode-DEjXqvav.js","./daeTokens-BVtuNnWZ.js","./Connections-1r5FNJTw.js","./ipLookup-BJsoFuhR.js","./LinkOut-qIg2xTwZ.js","./ipLookup-BYorpVJi.css","./NodePath-Gfq-By42.js","./Tag-BJayNrqV.js","./Tabs-Ba8gYhNB.js","./Toolbar-Br0J4-YM.js","./SearchSelect-CgvsaAJS.js","./TimeCell-xHoiaHia.js","./useQuickRule-Row9eJav.js","./AddCircle-Bl7yHPBv.js","./rule-CaRkSdGM.js","./outbounds-C-QT9t_b.js","./labels-D8xxfRTQ.js","./Flows-IuwaTpnn.js","./Coverage-C9wHHZbt.js","./GridList-CC4w_Iq3.js","./CardView-Cz1YW93e.js","./Flows-BekA1vQh.css","./Dns-DTqk3ZFq.js","./Delete-HQ5S6-JZ.js","./Dns-CsAXSf3H.css","./impact-B8feJDtJ.css","./Policies-z3gmliEw.js","./ProbeOptionsDialog-CbXH9b0U.js","./ConditionRow-FRqe5mV9.js","./NumberField-CN_dFkWR.js","./probe-P4V7qZUr.js","./Rules-CtSzVqw5.js","./recorder-BHyqDNp5.js","./geodataUpdate-Nz09dXaJ.js","./Nodes-jRUmoonJ.js","./FlagPicker-ewb3VJnn.js","./Nodes-Dz09mbUJ.css","./Config-Bye0SFVW.js","./Events-Xz-GK6BY.js","./Copy-xLJK18ri.js","./Logs-D0n5s98X.js","./Settings-CkSpiOkK.js","./Settings-BVpmQMTB.css","./glass-BqF6QW1y.js","./wallpaper-CEC7gitM.js","./Login-DJCG2vwM.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=M(e,t);return n||="function"==typeof r,r});if(n)return()=>{r.forEach((t,n)=>{"function"==typeof t?t():M(e[n],null)})}}}function M(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function N(...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
@@ -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[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
@@ -1 +1 @@
import{j as s}from"./vendor-react-64fcanlc.js";import{u as e,cj as a,ck as i,cl as n,cm as p,cn as r,co as t,cp as o,cq as c,bS as l}from"./index-BpMcZry4.js";import{L as m}from"./LinkOut-Bzsd9jX9.js";function h({ip:l,address:h,sites:f}){const d=e(),u=d("ip.lookupTitle",{ip:l});return s.jsxs(a,{children:[s.jsxs(i,{className:"rp-link rp-ip-lookup","data-layout":"inline",children:[h,s.jsx(m,{})]}),s.jsx(n,{className:"rp-popover rp-list-popover rp-ip-lookup-menu",placement:"bottom start",children:s.jsx(p,{children:s.jsxs(r,{children:[s.jsxs(t,{className:"rp-sec-h rp-ip-lookup-head",children:[u,s.jsx("span",{className:"desc",children:d("ip.lookupNote")})]}),f.map(e=>s.jsxs(o,{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(c,{slot:"label",children:e.name})}),s.jsx(m,{})]},e.name))]})})})]})}function f(s){let e=l(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 d(s){const e=l(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{h as I,d as a,f as i};
import{j as s}from"./vendor-react-64fcanlc.js";import{u as e,ci as a,cj as i,ck as n,cl as p,cm as r,cn as t,co as o,cp as c,bR as l}from"./index-DkZLaQoO.js";import{L as m}from"./LinkOut-qIg2xTwZ.js";function h({ip:l,address:h,sites:f}){const d=e(),u=d("ip.lookupTitle",{ip:l});return s.jsxs(a,{children:[s.jsxs(i,{className:"rp-link rp-ip-lookup","data-layout":"inline",children:[h,s.jsx(m,{})]}),s.jsx(n,{className:"rp-popover rp-list-popover rp-ip-lookup-menu",placement:"bottom start",children:s.jsx(p,{children:s.jsxs(r,{children:[s.jsxs(t,{className:"rp-sec-h rp-ip-lookup-head",children:[u,s.jsx("span",{className:"desc",children:d("ip.lookupNote")})]}),f.map(e=>s.jsxs(o,{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(c,{slot:"label",children:e.name})}),s.jsx(m,{})]},e.name))]})})})]})}function f(s){let e=l(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 d(s){const e=l(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{h as I,d as a,f as i};
@@ -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.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.latency":"Latency","act.limited":{"one":"{n} feature is off","other":"{n} features are off"},"act.live":"Live","act.m10":"10 min","act.memory":"Memory","act.mode":"Outbound mode","act.modeApplied":"Outbound mode written to the configuration and reloaded: {mode}","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.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.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.readOnlyDocs":"Read-only config files","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.traffic":"Traffic","act.truncated":"Truncated","act.viewAll":"View all","act.viewDetails":"View details","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.atFile":"{file} line {line}: {message}","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 Line truncated
@@ -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.latency":"Latency","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.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.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.readOnlyDocs":"Read-only config files","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.traffic":"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.formLine 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.mode":"Outbound mode","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.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","event.flow":"{resourceId}, revision: {revision}","event.gap":"{resourceId}, reason: {reason}, records dropped since recording started: {n}","event.gap.evicted":"removed from the retained records","event.gap.overflow":"records reached the retention limit","event.gap.recording":"recording changed","event.gap.sampled":"skipped by sampling",Line truncated
@@ -0,0 +1 @@
const e=JSON.parse('{"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.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} response rules"},"config.moduleDnsUpstreams":{"one":"{n} upstream","other":"{n} upstreams"},"config.moduleGroups":{"one":"{n} group","other":"{n} groups"},"config.moduleNodes":{"one":"{n} node","other":"{n} nodes"},"config.moduleOpen":"Open page","config.moduleRules":{"one":"{n} rule","other":"{n} rules"},"config.moduleSettings":{"one":"{n} setting","other":"{n} settings"},"config.moduleSubscriptions":{"one":"{n} subscription","other":"{n} subscriptions"},"config.newSource":"New file","config.newSourceCreate":"Create","config.newSourceCreated":"{path} created, configuration reloaded","config.nLine 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.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.latency":"延迟","act.limited":"{n} 项功能未开启","act.live":"实时","act.m10":"10 分钟","act.memory":"内存","act.mode":"出站模式","act.modeApplied":"出站模式已写入配置并重载:{mode}","act.modeInterleaved":"routing 区段有普通规则排在 must 规则前面。请先把 must 规则移到 routing 区段最前面,再切换出站模式。","act.modeNoRouting":"主配置未包含 routing 区段","act.modeReadOnly":"只读","act.modeReadOnlyAction":"请确认 honk 对主配置文件有写入权限,并将 native_api 设置放在独立的 include 文件。","act.modeReadOnlyReason":"honk 须允许配置写入,且控制端已设置身份验证。主配置若含 native_api 或 clash_api 的密钥字段或嵌套区块,会标记为只读。配置含当前的监听密钥时也一样。","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.readOnlyDocs":"只读的配置文件","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.traffic":"流量","act.truncated":"已截断","act.viewAll":"查看全部","act.viewDetails":"查看详情","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 {generation})保留的诊断","config.atFile":"{file} 第 {line} 行:{message}","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":"已导入Line truncated
Loaded 100 of 162 files, more files were not shown because too many files have changed in this diff. Show more