import{D as e,F as t,J as n}from"#entry";import{c as r,d as i,i as a,l as o,n as s,o as c,p as l,r as u,s as d,u as f}from"./C7aesQOP.js";var p=t(`config`,()=>{let t=e(`theme`,`sunset`),p=e(`autoSwitchTheme`,!1),m=e(`favDayTheme`,`nord`),h=e(`favNightTheme`,`sunset`),g=e(`proxiesPreviewType`,i.Auto),_=e(`proxiesPreviewAutoThreshold`,10),v=e(`proxiesOrderingType`,f.NATURAL),y=e(`proxiesDisplayMode`,o.CARD),b=e(`renderProxiesInTwoColumns`,!0),x=e(`hideUnAvailableProxies`,!1),S=e(`urlForLatencyTest`,`https://www.gstatic.com/generate_204`),C=e(`autoCloseConns`,!0),w=e(`latencyTestTimeoutDuration`,5e3),T=e(`latencyMediumThreshold`,0),E=e(`latencyHighThreshold`,0),D=e(`iconHeight`,24),O=e(`iconMarginRight`,8),k=e(`autoSwitchEndpoint`,!1),A=e(`enableTwemoji`,!1),j=e(`sidebarExpanded`,!1),M=e(`useMobileBottomNav`,!0),N=e(`defaultPage`,`overview`),P=e(`connectionsTableSize`,l.XS),F=e(`connectionsTableColumnVisibility`,u),I=e(`connectionsTableColumnOrder`,s),L=e(`connectionsDisplayMode`,(()=>{if(localStorage.getItem(`connectionsDisplayMode`)!==null)return`auto`;let e=localStorage.getItem(`useMobileConnectionsTable`);if(e!==null){localStorage.removeItem(`useMobileConnectionsTable`);try{return JSON.parse(e)===!0?`table`:`auto`}catch{return`auto`}}return`auto`})()),R=e(`logsTableSize`,l.XS),z=e(`logLevel`,r.Info),B=e(`logMaxRows`,a),V=e(`quickFilterRegex`,`DIRECT|direct|dns-out`),H=e(`clientSourceIPTags`,[]),U=e(`showNetworkTopology`,!1),W=n(()=>S.value.startsWith(`https`));return{curTheme:t,autoSwitchTheme:p,favDayTheme:m,favNightTheme:h,proxiesPreviewType:g,proxiesPreviewAutoThreshold:_,proxiesOrderingType:v,proxiesDisplayMode:y,renderProxiesInTwoColumns:b,hideUnAvailableProxies:x,urlForLatencyTest:S,autoCloseConns:C,latencyTestTimeoutDuration:w,latencyMediumThreshold:T,latencyHighThreshold:E,iconHeight:D,iconMarginRight:O,autoSwitchEndpoint:k,enableTwemoji:A,sidebarExpanded:j,useMobileBottomNav:M,defaultPage:N,connectionsTableSize:P,connectionsTableColumnVisibility:F,connectionsTableColumnOrder:I,connectionsDisplayMode:L,quickFilterRegex:V,logsTableSize:R,logLevel:z,logMaxRows:B,clientSourceIPTags:H,showNetworkTopology:U,isLatencyTestByHttps:W,latencyQualityMap:n(()=>{let e=W.value?d:c,t=T.value>0?T.value:e.MEDIUM,n=E.value>0?E.value:e.HIGH;return{NOT_CONNECTED:e.NOT_CONNECTED,MEDIUM:t,HIGH:n}}),tableSizeClassName:e=>({[l.XS]:`table-xs`,[l.SM]:`table-sm`,[l.MD]:`table-md`,[l.LG]:`table-lg`})[e]||`table-xs`,resetProxiesSettings:()=>{g.value=i.Auto,v.value=f.NATURAL,y.value=o.CARD,b.value=!0,x.value=!1,S.value=`https://www.gstatic.com/generate_204`,C.value=!0,w.value=5e3,T.value=0,E.value=0,D.value=24,O.value=8},resetXdConfig:()=>{p.value=!1,k.value=!1,A.value=!1,M.value=!0,m.value=`nord`,h.value=`sunset`,t.value=`sunset`,N.value=`overview`}}});export{p as t};