clash_for_linux/dashboard/public/assets/Connections.52bc9670.js

2 lines
72 KiB
JavaScript
Raw Normal View History

2022-02-17 14:30:03 +08:00
var po=Object.defineProperty,go=Object.defineProperties;var vo=Object.getOwnPropertyDescriptors;var bn=Object.getOwnPropertySymbols;var mo=Object.prototype.hasOwnProperty,ho=Object.prototype.propertyIsEnumerable;var wn=(d,p,l)=>p in d?po(d,p,{enumerable:!0,configurable:!0,writable:!0,value:l}):d[p]=l,xe=(d,p)=>{for(var l in p||(p={}))mo.call(p,l)&&wn(d,l,p[l]);if(bn)for(var l of bn(p))ho.call(p,l)&&wn(d,l,p[l]);return d},Te=(d,p)=>go(d,vo(p));import{r as fe,R as _,g as Ce,A as yo,C as bo,M as wo,k as Ro,P as Co,D as So,I as Po}from"./vendor.38e754a4.js";import{p as Rn,m as Cn,B as Sn,c as xo,a as Eo,f as Io,C as Bo,S as To,g as Fo}from"./index.ee5bc09a.js";import{u as _o}from"./useRemainingViewPortHeight.7baef998.js";import{f as Oo}from"./index.9233837d.js";import{F as Ao,p as Go,A as No}from"./Fab.4dc9cb99.js";function at(d){return function(p){return!!p.type&&p.type.tabsRole===d}}var De=at("Tab"),it=at("TabList"),$e=at("TabPanel");function st(){return st=Object.assign||function(d){for(var p=1;p<arguments.length;p++){var l=arguments[p];for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&(d[s]=l[s])}return d},st.apply(this,arguments)}function ko(d){return De(d)||it(d)||$e(d)}function ut(d,p){return fe.exports.Children.map(d,function(l){return l===null?null:ko(l)?p(l):l.props&&l.props.children&&typeof l.props.children=="object"?fe.exports.cloneElement(l,st({},l.props,{children:ut(l.props.children,p)})):l})}function lt(d,p){return fe.exports.Children.forEach(d,function(l){l!==null&&(De(l)||$e(l)?p(l):l.props&&l.props.children&&typeof l.props.children=="object"&&(it(l)&&p(l),lt(l.props.children,p)))})}var Ho=0;function Pn(){return"react-tabs-"+Ho++}function xn(d){var p=0;return lt(d,function(l){De(l)&&p++}),p}function jo(d){var p=0;return lt(d,function(l){$e(l)&&p++}),p}var Wo=["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName","environment","disableUpDownKeys"];function ct(){return ct=Object.assign||function(d){for(var p=1;p<arguments.length;p++){var l=arguments[p];for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&(d[s]=l[s])}return d},ct.apply(this,arguments)}function zo(d,p){if(d==null)return{};var l={},s=Object.keys(d),v,y;for(y=0;y<s.length;y++)v=s[y],!(p.indexOf(v)>=0)&&(l[v]=d[v]);return l}function Mo(d,p){d.prototype=Object.create(p.prototype),d.prototype.constructor=d,dt(d,p)}function dt(d,p){return dt=Object.setPrototypeOf||function(s,v){return s.__proto__=v,s},dt(d,p)}function En(d){return d&&"getAttribute"in d}function In(d){return En(d)&&d.getAttribute("data-rttab")}function Se(d){return En(d)&&d.getAttribute("aria-disabled")==="true"}var Ve;function Lo(d){var p=d||(typeof window!="undefined"?window:void 0);try{Ve=!!(typeof p!="undefined"&&p.document&&p.document.activeElement)}catch{Ve=!1}}var ft=function(d){Mo(p,d);function p(){for(var s,v=arguments.length,y=new Array(v),u=0;u<v;u++)y[u]=arguments[u];return s=d.call.apply(d,[this].concat(y))||this,s.tabNodes=[],s.handleKeyDown=function(B){var M=s.props,c=M.direction,X=M.disableUpDownKeys;if(s.isTabFromContainer(B.target)){var q=s.props.selectedIndex,Q=!1,ee=!1;(B.keyCode===32||B.keyCode===13)&&(Q=!0,ee=!1,s.handleClick(B)),B.keyCode===37||!X&&B.keyCode===38?(c==="rtl"?q=s.getNextTab(q):q=s.getPrevTab(q),Q=!0,ee=!0):B.keyCode===39||!X&&B.keyCode===40?(c==="rtl"?q=s.getPrevTab(q):q=s.getNextTab(q),Q=!0,ee=!0):B.keyCode===35?(q=s.getLastTab(),Q=!0,ee=!0):B.keyCode===36&&(q=s.getFirstTab(),Q=!0,ee=!0),Q&&B.preventDefault(),ee&&s.setSelected(q,B)}},s.handleClick=function(B){var M=B.target;do if(s.isTabFromContainer(M)){if(Se(M))return;var c=[].slice.call(M.parentNode.children).filter(In).indexOf(M);s.setSelected(c,B);return}while((M=M.parentNode)!=null)},s}var l=p.prototype;return l.setSelected=function(v,y){if(!(v<0||v>=this.getTabsCount())){var u=this.props,B=u.onSelect,M=u.selectedIndex;B(v,M,y)}},l.getNextTab=function(v){for(var y=this.getTabsCount(),u=v+1;u<y;u++)if(!Se(this.getTab(u)))return u;for(var B=0;B<v;B++)if(!Se(this.getTab(B))