import{u as zi,b as ld,c as cd,d as Do,e as Ve,v as hd,l as Po,_ as St,f as _d,g as pd,h as gd,i as dd,j as qi,R as vd,D as wd,k as xd,m as md,n as yd,o as bd,p as Ad,r as Sd}from"./index.4f271108.js";import{F as Ld}from"./index.a6934ed4.js";import{aY as Ed,aO as At,c as rn,d as je,f as Qe,aI as N,bf as Id,bg as Td,h as Io,bh as To,bi as Rd,bj as Cd,i as Od,b8 as Md,bk as Dd,C as an,D as wr,G as ln,aH as j,aM as Ro,u as Ae,aE as wn,aF as Pe,aN as Fo,bl as Pd,Q as Fd,aZ as Bd,ao as Wd,bm as Ud,E as Bo,bn as $d,a2 as Hd,bo as Nd,bc as Wo,bd as Uo,w as $o,bp as Kd,bq as Gd,aK as zd,aJ as qd,o as Ho,br as Zd,b as Yd,b0 as kd,bs as Co,bt as Xd,bu as Jd,p as Qd,aX as Vd,bv as jd,bw as n0,bx as e0,F as Oo,by as t0,bz as r0}from"./arco.beabb834.js";import{f as xr,h as Zi,i as i0,j as u0,k as f0,l as o0}from"./vue.30c84055.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as Mo,c as s0,e as a0}from"./serial.b70f48dc.js";import"./chart.83b8c11b.js";const No="LoseHu 117 \u5386\u53F2\u7248\u672C",Ko="official",Go="official",l0={name:No,uart:Ko,charset:Go},c0=Object.freeze(Object.defineProperty({__proto__:null,name:No,uart:Ko,charset:Go,default:l0},Symbol.toStringTag,{value:"Module"})),zo="LoseHu 117 \u5386\u53F2\u7248\u672C\u6269\u5BB9\u7248",qo="losehu",Zo="losehu",Yo=!0,h0={name:zo,uart:qo,charset:Zo,K:Yo},_0=Object.freeze(Object.defineProperty({__proto__:null,name:zo,uart:qo,charset:Zo,K:Yo,default:h0},Symbol.toStringTag,{value:"Module"})),ko="LoseHu 118+",Xo="official",Jo="official",p0={name:ko,uart:Xo,charset:Jo},g0=Object.freeze(Object.defineProperty({__proto__:null,name:ko,uart:Xo,charset:Jo,default:p0},Symbol.toStringTag,{value:"Module"})),Qo="LoseHu 118+ 2Mbit \u6269\u5BB9\u7248",Vo="losehu",jo="gb2312",ns=!0,d0={name:Qo,uart:Vo,charset:jo,H:ns},v0=Object.freeze(Object.defineProperty({__proto__:null,name:Qo,uart:Vo,charset:jo,H:ns,default:d0},Symbol.toStringTag,{value:"Module"})),es="LoseHu 118+ \u6269\u5BB9\u7248",ts="losehu",rs="gb2312",is=!0,w0={name:es,uart:ts,charset:rs,K:is},x0=Object.freeze(Object.defineProperty({__proto__:null,name:es,uart:ts,charset:rs,K:is,default:w0},Symbol.toStringTag,{value:"Module"})),us="LoseHu Patch LTS\uFF08BD8DFN\uFF09",fs="official",os="official",ss=!0,m0={name:us,uart:fs,charset:os,localmdc:ss},y0=Object.freeze(Object.defineProperty({__proto__:null,name:us,uart:fs,charset:os,localmdc:ss,default:m0},Symbol.toStringTag,{value:"Module"})),as="LoseHu Patch LTS\uFF08BD8DFN\uFF09\u6269\u5BB9\u7248",ls="losehu",cs="losehu",hs=!0,_s=!0,b0={name:as,uart:ls,charset:cs,K:hs,localmdc:_s},A0=Object.freeze(Object.defineProperty({__proto__:null,name:as,uart:ls,charset:cs,K:hs,localmdc:_s,default:b0},Symbol.toStringTag,{value:"Module"})),ps="Official",S0={name:ps},L0=Object.freeze(Object.defineProperty({__proto__:null,name:ps,default:S0},Symbol.toStringTag,{value:"Module"}));function E0(){const A=xr(),E=zi();return{logout:async H=>{await E.logout();const W=A.currentRoute.value;Ed.success("\u767B\u51FA\u6210\u529F"),A.push({name:H&&typeof H=="string"?H:"login",query:{...A.currentRoute.value.query,redirect:W.name}})}}}const I0=(A,E)=>{const{target:o="_blank",...H}=E||{};window.open(A,o,Object.entries(H).reduce((W,un)=>{const[C,q]=un;return[...W,`${C}=${q}`]},[]).join(","))},T0=new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),R0=[...ld,...cd],C0=R0.map(A=>{const{name:E,path:o,meta:H,redirect:W,children:un}=A;return{name:E,path:o,meta:H,redirect:W,children:un}}),O0=C0;var Ki={exports:{}};/**
* @license
* Lodash
* Copyright OpenJS Foundation and other contributors
* Released under MIT license
* Based on Underscore.js 1.8.3
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(A,E){(function(){var o,H="4.17.21",W=200,un="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",C="Expected a function",q="Invalid `variable` option passed into `_.template`",_n="__lodash_hash_undefined__",Z=500,pn="__lodash_placeholder__",fn=1,An=2,F=4,y=1,O=2,x=1,M=2,Y=4,K=8,X=16,xn=32,mn=64,On=128,te=256,mr=512,gs=30,ds="...",vs=800,ws=16,Yi=1,xs=2,ms=3,Se=1/0,_e=9007199254740991,ys=17976931348623157e292,Lt=0/0,Vn=4294967295,bs=Vn-1,As=Vn>>>1,Ss=[["ary",On],["bind",x],["bindKey",M],["curry",K],["curryRight",X],["flip",mr],["partial",xn],["partialRight",mn],["rearg",te]],Fe="[object Arguments]",Et="[object Array]",Ls="[object AsyncFunction]",et="[object Boolean]",tt="[object Date]",Es="[object DOMException]",It="[object Error]",Tt="[object Function]",ki="[object GeneratorFunction]",Zn="[object Map]",rt="[object Number]",Is="[object Null]",re="[object Object]",Xi="[object Promise]",Ts="[object Proxy]",it="[object RegExp]",Yn="[object Set]",ut="[object String]",Rt="[object Symbol]",Rs="[object Undefined]",ft="[object WeakMap]",Cs="[object WeakSet]",ot="[object ArrayBuffer]",Be="[object DataView]",yr="[object Float32Array]",br="[object Float64Array]",Ar="[object Int8Array]",Sr="[object Int16Array]",Lr="[object Int32Array]",Er="[object Uint8Array]",Ir="[object Uint8ClampedArray]",Tr="[object Uint16Array]",Rr="[object Uint32Array]",Os=/\b__p \+= '';/g,Ms=/\b(__p \+=) '' \+/g,Ds=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ji=/&(?:amp|lt|gt|quot|#39);/g,Qi=/[&<>"']/g,Ps=RegExp(Ji.source),Fs=RegExp(Qi.source),Bs=/<%-([\s\S]+?)%>/g,Ws=/<%([\s\S]+?)%>/g,Vi=/<%=([\s\S]+?)%>/g,Us=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$s=/^\w*$/,Hs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Cr=/[\\^$.*+?()[\]{}|]/g,Ns=RegExp(Cr.source),Or=/^\s+/,Ks=/\s/,Gs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,zs=/\{\n\/\* \[wrapped with (.+)\] \*/,qs=/,? & /,Zs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ys=/[()=,{}\[\]\/\s]/,ks=/\\(\\)?/g,Xs=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ji=/\w*$/,Js=/^[-+]0x[0-9a-f]+$/i,Qs=/^0b[01]+$/i,Vs=/^\[object .+?Constructor\]$/,js=/^0o[0-7]+$/i,na=/^(?:0|[1-9]\d*)$/,ea=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ct=/($^)/,ta=/['\n\r\u2028\u2029\\]/g,Ot="\\ud800-\\udfff",ra="\\u0300-\\u036f",ia="\\ufe20-\\ufe2f",ua="\\u20d0-\\u20ff",nu=ra+ia+ua,eu="\\u2700-\\u27bf",tu="a-z\\xdf-\\xf6\\xf8-\\xff",fa="\\xac\\xb1\\xd7\\xf7",oa="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",sa="\\u2000-\\u206f",aa=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ru="A-Z\\xc0-\\xd6\\xd8-\\xde",iu="\\ufe0e\\ufe0f",uu=fa+oa+sa+aa,Mr="['\u2019]",la="["+Ot+"]",fu="["+uu+"]",Mt="["+nu+"]",ou="\\d+",ca="["+eu+"]",su="["+tu+"]",au="[^"+Ot+uu+ou+eu+tu+ru+"]",Dr="\\ud83c[\\udffb-\\udfff]",ha="(?:"+Mt+"|"+Dr+")",lu="[^"+Ot+"]",Pr="(?:\\ud83c[\\udde6-\\uddff]){2}",Fr="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+ru+"]",cu="\\u200d",hu="(?:"+su+"|"+au+")",_a="(?:"+We+"|"+au+")",_u="(?:"+Mr+"(?:d|ll|m|re|s|t|ve))?",pu="(?:"+Mr+"(?:D|LL|M|RE|S|T|VE))?",gu=ha+"?",du="["+iu+"]?",pa="(?:"+cu+"(?:"+[lu,Pr,Fr].join("|")+")"+du+gu+")*",ga="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",da="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vu=du+gu+pa,va="(?:"+[ca,Pr,Fr].join("|")+")"+vu,wa="(?:"+[lu+Mt+"?",Mt,Pr,Fr,la].join("|")+")",xa=RegExp(Mr,"g"),ma=RegExp(Mt,"g"),Br=RegExp(Dr+"(?="+Dr+")|"+wa+vu,"g"),ya=RegExp([We+"?"+su+"+"+_u+"(?="+[fu,We,"$"].join("|")+")",_a+"+"+pu+"(?="+[fu,We+hu,"$"].join("|")+")",We+"?"+hu+"+"+_u,We+"+"+pu,da,ga,ou,va].join("|"),"g"),ba=RegExp("["+cu+Ot+nu+iu+"]"),Aa=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Sa=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],La=-1,V={};V[yr]=V[br]=V[Ar]=V[Sr]=V[Lr]=V[Er]=V[Ir]=V[Tr]=V[Rr]=!0,V[Fe]=V[Et]=V[ot]=V[et]=V[Be]=V[tt]=V[It]=V[Tt]=V[Zn]=V[rt]=V[re]=V[it]=V[Yn]=V[ut]=V[ft]=!1;var Q={};Q[Fe]=Q[Et]=Q[ot]=Q[Be]=Q[et]=Q[tt]=Q[yr]=Q[br]=Q[Ar]=Q[Sr]=Q[Lr]=Q[Zn]=Q[rt]=Q[re]=Q[it]=Q[Yn]=Q[ut]=Q[Rt]=Q[Er]=Q[Ir]=Q[Tr]=Q[Rr]=!0,Q[It]=Q[Tt]=Q[ft]=!1;var Ea={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Ia={"&":"&","<":"<",">":">",'"':""","'":"'"},Ta={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ra={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ca=parseFloat,Oa=parseInt,wu=typeof At=="object"&&At&&At.Object===Object&&At,Ma=typeof self=="object"&&self&&self.Object===Object&&self,dn=wu||Ma||Function("return this")(),Wr=E&&!E.nodeType&&E,Le=Wr&&!0&&A&&!A.nodeType&&A,xu=Le&&Le.exports===Wr,Ur=xu&&wu.process,Un=function(){try{var l=Le&&Le.require&&Le.require("util").types;return l||Ur&&Ur.binding&&Ur.binding("util")}catch{}}(),mu=Un&&Un.isArrayBuffer,yu=Un&&Un.isDate,bu=Un&&Un.isMap,Au=Un&&Un.isRegExp,Su=Un&&Un.isSet,Lu=Un&&Un.isTypedArray;function Mn(l,_,h){switch(h.length){case 0:return l.call(_);case 1:return l.call(_,h[0]);case 2:return l.call(_,h[0],h[1]);case 3:return l.call(_,h[0],h[1],h[2])}return l.apply(_,h)}function Da(l,_,h,w){for(var I=-1,G=l==null?0:l.length;++I-1}function $r(l,_,h){for(var w=-1,I=l==null?0:l.length;++w-1;);return h}function Du(l,_){for(var h=l.length;h--&&Ue(_,l[h],0)>-1;);return h}function Ka(l,_){for(var h=l.length,w=0;h--;)l[h]===_&&++w;return w}var Ga=Gr(Ea),za=Gr(Ia);function qa(l){return"\\"+Ra[l]}function Za(l,_){return l==null?o:l[_]}function $e(l){return ba.test(l)}function Ya(l){return Aa.test(l)}function ka(l){for(var _,h=[];!(_=l.next()).done;)h.push(_.value);return h}function Yr(l){var _=-1,h=Array(l.size);return l.forEach(function(w,I){h[++_]=[I,w]}),h}function Pu(l,_){return function(h){return l(_(h))}}function de(l,_){for(var h=-1,w=l.length,I=0,G=[];++h-1}function Fl(n,e){var t=this.__data__,r=Jt(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}ie.prototype.clear=Ol,ie.prototype.delete=Ml,ie.prototype.get=Dl,ie.prototype.has=Pl,ie.prototype.set=Fl;function ue(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e=e?n:e)),n}function Kn(n,e,t,r,i,f){var s,a=e&fn,c=e&An,p=e&F;if(t&&(s=i?t(n,r,i,f):t(n)),s!==o)return s;if(!en(n))return n;var g=T(n);if(g){if(s=$c(n),!a)return In(n,s)}else{var d=bn(n),v=d==Tt||d==ki;if(be(n))return vf(n,a);if(d==re||d==Fe||v&&!i){if(s=c||v?{}:Bf(n),!a)return c?Tc(n,Ql(s,n)):Ic(n,Zu(s,n))}else{if(!Q[d])return i?n:{};s=Hc(n,d,a)}}f||(f=new Xn);var m=f.get(n);if(m)return m;f.set(n,s),co(n)?n.forEach(function(L){s.add(Kn(L,e,t,L,n,f))}):ao(n)&&n.forEach(function(L,B){s.set(B,Kn(L,e,t,B,n,f))});var S=p?c?xi:wi:c?Rn:gn,D=g?o:S(n);return $n(D||n,function(L,B){D&&(B=L,L=n[B]),pt(s,B,Kn(L,e,t,B,n,f))}),s}function Vl(n){var e=gn(n);return function(t){return Yu(t,n,e)}}function Yu(n,e,t){var r=t.length;if(n==null)return!r;for(n=J(n);r--;){var i=t[r],f=e[i],s=n[i];if(s===o&&!(i in n)||!f(s))return!1}return!0}function ku(n,e,t){if(typeof n!="function")throw new Hn(C);return yt(function(){n.apply(o,t)},e)}function gt(n,e,t,r){var i=-1,f=Dt,s=!0,a=n.length,c=[],p=e.length;if(!a)return c;t&&(e=nn(e,Dn(t))),r?(f=$r,s=!1):e.length>=W&&(f=st,s=!1,e=new Te(e));n:for(;++ii?0:i+t),r=r===o||r>i?i:R(r),r<0&&(r+=i),r=t>r?0:_o(r);t0&&t(a)?e>1?vn(a,e-1,t,r,i):ge(i,a):r||(i[i.length]=a)}return i}var ni=Af(),Qu=Af(!0);function jn(n,e){return n&&ni(n,e,gn)}function ei(n,e){return n&&Qu(n,e,gn)}function Vt(n,e){return pe(e,function(t){return le(n[t])})}function Ce(n,e){e=me(e,n);for(var t=0,r=e.length;n!=null&&te}function ec(n,e){return n!=null&&k.call(n,e)}function tc(n,e){return n!=null&&e in J(n)}function rc(n,e,t){return n>=yn(e,t)&&n=120&&g.length>=120)?new Te(s&&g):o}g=n[0];var d=-1,v=a[0];n:for(;++d-1;)a!==n&&Gt.call(a,c,1),Gt.call(n,c,1);return n}function af(n,e){for(var t=n?e.length:0,r=t-1;t--;){var i=e[t];if(t==r||i!==f){var f=i;ae(i)?Gt.call(n,i,1):ci(n,i)}}return n}function si(n,e){return n+Zt(Ku()*(e-n+1))}function dc(n,e,t,r){for(var i=-1,f=hn(qt((e-n)/(t||1)),0),s=h(f);f--;)s[r?f:++i]=n,n+=t;return s}function ai(n,e){var t="";if(!n||e<1||e>_e)return t;do e%2&&(t+=n),e=Zt(e/2),e&&(n+=n);while(e);return t}function P(n,e){return Ei($f(n,e,Cn),n+"")}function vc(n){return qu(Je(n))}function wc(n,e){var t=Je(n);return ar(t,Re(e,0,t.length))}function wt(n,e,t,r){if(!en(n))return n;e=me(e,n);for(var i=-1,f=e.length,s=f-1,a=n;a!=null&&++ii?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var f=h(i);++r>>1,s=n[f];s!==null&&!Fn(s)&&(t?s<=e:s=W){var p=e?null:Mc(n);if(p)return Ft(p);s=!1,i=st,c=new Te}else c=e?[]:a;n:for(;++r=r?n:Gn(n,e,t)}var df=al||function(n){return dn.clearTimeout(n)};function vf(n,e){if(e)return n.slice();var t=n.length,r=Wu?Wu(t):new n.constructor(t);return n.copy(r),r}function gi(n){var e=new n.constructor(n.byteLength);return new Nt(e).set(new Nt(n)),e}function Ac(n,e){var t=e?gi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}function Sc(n){var e=new n.constructor(n.source,ji.exec(n));return e.lastIndex=n.lastIndex,e}function Lc(n){return _t?J(_t.call(n)):{}}function wf(n,e){var t=e?gi(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}function xf(n,e){if(n!==e){var t=n!==o,r=n===null,i=n===n,f=Fn(n),s=e!==o,a=e===null,c=e===e,p=Fn(e);if(!a&&!p&&!f&&n>e||f&&s&&c&&!a&&!p||r&&s&&c||!t&&c||!i)return 1;if(!r&&!f&&!p&&n=a)return c;var p=t[r];return c*(p=="desc"?-1:1)}}return n.index-e.index}function mf(n,e,t,r){for(var i=-1,f=n.length,s=t.length,a=-1,c=e.length,p=hn(f-s,0),g=h(c+p),d=!r;++a1?t[i-1]:o,s=i>2?t[2]:o;for(f=n.length>3&&typeof f=="function"?(i--,f):o,s&&Ln(t[0],t[1],s)&&(f=i<3?o:f,i=1),e=J(e);++r-1?i[f?e[s]:s]:o}}function Ef(n){return se(function(e){var t=e.length,r=t,i=Nn.prototype.thru;for(n&&e.reverse();r--;){var f=e[r];if(typeof f!="function")throw new Hn(C);if(i&&!s&&or(f)=="wrapper")var s=new Nn([],!0)}for(r=s?r:t;++r1&&$.reverse(),g&&ca))return!1;var p=f.get(n),g=f.get(e);if(p&&g)return p==e&&g==n;var d=-1,v=!0,m=t&O?new Te:o;for(f.set(n,e),f.set(e,n);++d1?"& ":"")+e[r],e=e.join(t>2?", ":" "),n.replace(Gs,`{
/* [wrapped with `+e+`] */
`)}function Kc(n){return T(n)||De(n)||!!(Hu&&n&&n[Hu])}function ae(n,e){var t=typeof n;return e=e==null?_e:e,!!e&&(t=="number"||t!="symbol"&&na.test(n))&&n>-1&&n%1==0&&n0){if(++e>=vs)return arguments[0]}else e=0;return n.apply(o,arguments)}}function ar(n,e){var t=-1,r=n.length,i=r-1;for(e=e===o?r:e;++t1?n[e-1]:o;return t=typeof t=="function"?(n.pop(),t):o,Qf(n,t)});function Vf(n){var e=u(n);return e.__chain__=!0,e}function jh(n,e){return e(n),n}function lr(n,e){return e(n)}var n_=se(function(n){var e=n.length,t=e?n[0]:0,r=this.__wrapped__,i=function(f){return jr(f,n)};return e>1||this.__actions__.length||!(r instanceof U)||!ae(t)?this.thru(i):(r=r.slice(t,+t+(e?1:0)),r.__actions__.push({func:lr,args:[i],thisArg:o}),new Nn(r,this.__chain__).thru(function(f){return e&&!f.length&&f.push(o),f}))});function e_(){return Vf(this)}function t_(){return new Nn(this.value(),this.__chain__)}function r_(){this.__values__===o&&(this.__values__=ho(this.value()));var n=this.__index__>=this.__values__.length,e=n?o:this.__values__[this.__index__++];return{done:n,value:e}}function i_(){return this}function u_(n){for(var e,t=this;t instanceof Xt;){var r=qf(t);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;t=t.__wrapped__}return i.__wrapped__=n,e}function f_(){var n=this.__wrapped__;if(n instanceof U){var e=n;return this.__actions__.length&&(e=new U(this)),e=e.reverse(),e.__actions__.push({func:lr,args:[Ii],thisArg:o}),new Nn(e,this.__chain__)}return this.thru(Ii)}function o_(){return pf(this.__wrapped__,this.__actions__)}var s_=tr(function(n,e,t){k.call(n,t)?++n[t]:fe(n,t,1)});function a_(n,e,t){var r=T(n)?Eu:jl;return t&&Ln(n,e,t)&&(e=o),r(n,b(e,3))}function l_(n,e){var t=T(n)?pe:Ju;return t(n,b(e,3))}var c_=Lf(Zf),h_=Lf(Yf);function __(n,e){return vn(cr(n,e),1)}function p_(n,e){return vn(cr(n,e),Se)}function g_(n,e,t){return t=t===o?1:R(t),vn(cr(n,e),t)}function jf(n,e){var t=T(n)?$n:we;return t(n,b(e,3))}function no(n,e){var t=T(n)?Pa:Xu;return t(n,b(e,3))}var d_=tr(function(n,e,t){k.call(n,t)?n[t].push(e):fe(n,t,[e])});function v_(n,e,t,r){n=Tn(n)?n:Je(n),t=t&&!r?R(t):0;var i=n.length;return t<0&&(t=hn(i+t,0)),dr(n)?t<=i&&n.indexOf(e,t)>-1:!!i&&Ue(n,e,t)>-1}var w_=P(function(n,e,t){var r=-1,i=typeof e=="function",f=Tn(n)?h(n.length):[];return we(n,function(s){f[++r]=i?Mn(e,s,t):dt(s,e,t)}),f}),x_=tr(function(n,e,t){fe(n,t,e)});function cr(n,e){var t=T(n)?nn:tf;return t(n,b(e,3))}function m_(n,e,t,r){return n==null?[]:(T(e)||(e=e==null?[]:[e]),t=r?o:t,T(t)||(t=t==null?[]:[t]),of(n,e,t))}var y_=tr(function(n,e,t){n[t?0:1].push(e)},function(){return[[],[]]});function b_(n,e,t){var r=T(n)?Hr:Cu,i=arguments.length<3;return r(n,b(e,4),t,i,we)}function A_(n,e,t){var r=T(n)?Fa:Cu,i=arguments.length<3;return r(n,b(e,4),t,i,Xu)}function S_(n,e){var t=T(n)?pe:Ju;return t(n,pr(b(e,3)))}function L_(n){var e=T(n)?qu:vc;return e(n)}function E_(n,e,t){(t?Ln(n,e,t):e===o)?e=1:e=R(e);var r=T(n)?kl:wc;return r(n,e)}function I_(n){var e=T(n)?Xl:mc;return e(n)}function T_(n){if(n==null)return 0;if(Tn(n))return dr(n)?He(n):n.length;var e=bn(n);return e==Zn||e==Yn?n.size:ui(n).length}function R_(n,e,t){var r=T(n)?Nr:yc;return t&&Ln(n,e,t)&&(e=o),r(n,b(e,3))}var C_=P(function(n,e){if(n==null)return[];var t=e.length;return t>1&&Ln(n,e[0],e[1])?e=[]:t>2&&Ln(e[0],e[1],e[2])&&(e=[e[0]]),of(n,vn(e,1),[])}),hr=ll||function(){return dn.Date.now()};function O_(n,e){if(typeof e!="function")throw new Hn(C);return n=R(n),function(){if(--n<1)return e.apply(this,arguments)}}function eo(n,e,t){return e=t?o:e,e=n&&e==null?n.length:e,oe(n,On,o,o,o,o,e)}function to(n,e){var t;if(typeof e!="function")throw new Hn(C);return n=R(n),function(){return--n>0&&(t=e.apply(this,arguments)),n<=1&&(e=o),t}}var Ri=P(function(n,e,t){var r=x;if(t.length){var i=de(t,ke(Ri));r|=xn}return oe(n,r,e,t,i)}),ro=P(function(n,e,t){var r=x|M;if(t.length){var i=de(t,ke(ro));r|=xn}return oe(e,r,n,t,i)});function io(n,e,t){e=t?o:e;var r=oe(n,K,o,o,o,o,o,e);return r.placeholder=io.placeholder,r}function uo(n,e,t){e=t?o:e;var r=oe(n,X,o,o,o,o,o,e);return r.placeholder=uo.placeholder,r}function fo(n,e,t){var r,i,f,s,a,c,p=0,g=!1,d=!1,v=!0;if(typeof n!="function")throw new Hn(C);e=qn(e)||0,en(t)&&(g=!!t.leading,d="maxWait"in t,f=d?hn(qn(t.maxWait)||0,e):f,v="trailing"in t?!!t.trailing:v);function m(sn){var Qn=r,he=i;return r=i=o,p=sn,s=n.apply(he,Qn),s}function S(sn){return p=sn,a=yt(B,e),g?m(sn):s}function D(sn){var Qn=sn-c,he=sn-p,Eo=e-Qn;return d?yn(Eo,f-he):Eo}function L(sn){var Qn=sn-c,he=sn-p;return c===o||Qn>=e||Qn<0||d&&he>=f}function B(){var sn=hr();if(L(sn))return $(sn);a=yt(B,D(sn))}function $(sn){return a=o,v&&r?m(sn):(r=i=o,s)}function Bn(){a!==o&&df(a),p=0,r=c=i=a=o}function En(){return a===o?s:$(hr())}function Wn(){var sn=hr(),Qn=L(sn);if(r=arguments,i=this,c=sn,Qn){if(a===o)return S(c);if(d)return df(a),a=yt(B,e),m(c)}return a===o&&(a=yt(B,e)),s}return Wn.cancel=Bn,Wn.flush=En,Wn}var M_=P(function(n,e){return ku(n,1,e)}),D_=P(function(n,e,t){return ku(n,qn(e)||0,t)});function P_(n){return oe(n,mr)}function _r(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new Hn(C);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],f=t.cache;if(f.has(i))return f.get(i);var s=n.apply(this,r);return t.cache=f.set(i,s)||f,s};return t.cache=new(_r.Cache||ue),t}_r.Cache=ue;function pr(n){if(typeof n!="function")throw new Hn(C);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function F_(n){return to(2,n)}var B_=bc(function(n,e){e=e.length==1&&T(e[0])?nn(e[0],Dn(b())):nn(vn(e,1),Dn(b()));var t=e.length;return P(function(r){for(var i=-1,f=yn(r.length,t);++i=e}),De=ju(function(){return arguments}())?ju:function(n){return tn(n)&&k.call(n,"callee")&&!$u.call(n,"callee")},T=h.isArray,Q_=mu?Dn(mu):uc;function Tn(n){return n!=null&&gr(n.length)&&!le(n)}function on(n){return tn(n)&&Tn(n)}function V_(n){return n===!0||n===!1||tn(n)&&Sn(n)==et}var be=hl||Ni,j_=yu?Dn(yu):fc;function np(n){return tn(n)&&n.nodeType===1&&!bt(n)}function ep(n){if(n==null)return!0;if(Tn(n)&&(T(n)||typeof n=="string"||typeof n.splice=="function"||be(n)||Xe(n)||De(n)))return!n.length;var e=bn(n);if(e==Zn||e==Yn)return!n.size;if(mt(n))return!ui(n).length;for(var t in n)if(k.call(n,t))return!1;return!0}function tp(n,e){return vt(n,e)}function rp(n,e,t){t=typeof t=="function"?t:o;var r=t?t(n,e):o;return r===o?vt(n,e,o,t):!!r}function Oi(n){if(!tn(n))return!1;var e=Sn(n);return e==It||e==Es||typeof n.message=="string"&&typeof n.name=="string"&&!bt(n)}function ip(n){return typeof n=="number"&&Nu(n)}function le(n){if(!en(n))return!1;var e=Sn(n);return e==Tt||e==ki||e==Ls||e==Ts}function so(n){return typeof n=="number"&&n==R(n)}function gr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=_e}function en(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function tn(n){return n!=null&&typeof n=="object"}var ao=bu?Dn(bu):sc;function up(n,e){return n===e||ii(n,e,yi(e))}function fp(n,e,t){return t=typeof t=="function"?t:o,ii(n,e,yi(e),t)}function op(n){return lo(n)&&n!=+n}function sp(n){if(qc(n))throw new I(un);return nf(n)}function ap(n){return n===null}function lp(n){return n==null}function lo(n){return typeof n=="number"||tn(n)&&Sn(n)==rt}function bt(n){if(!tn(n)||Sn(n)!=re)return!1;var e=Kt(n);if(e===null)return!0;var t=k.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Ut.call(t)==fl}var Mi=Au?Dn(Au):ac;function cp(n){return so(n)&&n>=-_e&&n<=_e}var co=Su?Dn(Su):lc;function dr(n){return typeof n=="string"||!T(n)&&tn(n)&&Sn(n)==ut}function Fn(n){return typeof n=="symbol"||tn(n)&&Sn(n)==Rt}var Xe=Lu?Dn(Lu):cc;function hp(n){return n===o}function _p(n){return tn(n)&&bn(n)==ft}function pp(n){return tn(n)&&Sn(n)==Cs}var gp=fr(fi),dp=fr(function(n,e){return n<=e});function ho(n){if(!n)return[];if(Tn(n))return dr(n)?kn(n):In(n);if(at&&n[at])return ka(n[at]());var e=bn(n),t=e==Zn?Yr:e==Yn?Ft:Je;return t(n)}function ce(n){if(!n)return n===0?n:0;if(n=qn(n),n===Se||n===-Se){var e=n<0?-1:1;return e*ys}return n===n?n:0}function R(n){var e=ce(n),t=e%1;return e===e?t?e-t:e:0}function _o(n){return n?Re(R(n),0,Vn):0}function qn(n){if(typeof n=="number")return n;if(Fn(n))return Lt;if(en(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=en(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Ou(n);var t=Qs.test(n);return t||js.test(n)?Oa(n.slice(2),t?2:8):Js.test(n)?Lt:+n}function po(n){return ne(n,Rn(n))}function vp(n){return n?Re(R(n),-_e,_e):n===0?n:0}function z(n){return n==null?"":Pn(n)}var wp=Ze(function(n,e){if(mt(e)||Tn(e)){ne(e,gn(e),n);return}for(var t in e)k.call(e,t)&&pt(n,t,e[t])}),go=Ze(function(n,e){ne(e,Rn(e),n)}),vr=Ze(function(n,e,t,r){ne(e,Rn(e),n,r)}),xp=Ze(function(n,e,t,r){ne(e,gn(e),n,r)}),mp=se(jr);function yp(n,e){var t=qe(n);return e==null?t:Zu(t,e)}var bp=P(function(n,e){n=J(n);var t=-1,r=e.length,i=r>2?e[2]:o;for(i&&Ln(e[0],e[1],i)&&(r=1);++t1),f}),ne(n,xi(n),t),r&&(t=Kn(t,fn|An|F,Dc));for(var i=e.length;i--;)ci(t,e[i]);return t});function Hp(n,e){return wo(n,pr(b(e)))}var Np=se(function(n,e){return n==null?{}:pc(n,e)});function wo(n,e){if(n==null)return{};var t=nn(xi(n),function(r){return[r]});return e=b(e),sf(n,t,function(r,i){return e(r,i[0])})}function Kp(n,e,t){e=me(e,n);var r=-1,i=e.length;for(i||(i=1,n=o);++re){var r=n;n=e,e=r}if(t||n%1||e%1){var i=Ku();return yn(n+i*(e-n+Ca("1e-"+((i+"").length-1))),e)}return si(n,e)}var jp=Ye(function(n,e,t){return e=e.toLowerCase(),n+(t?yo(e):e)});function yo(n){return Fi(z(n).toLowerCase())}function bo(n){return n=z(n),n&&n.replace(ea,Ga).replace(ma,"")}function ng(n,e,t){n=z(n),e=Pn(e);var r=n.length;t=t===o?r:Re(R(t),0,r);var i=t;return t-=e.length,t>=0&&n.slice(t,i)==e}function eg(n){return n=z(n),n&&Fs.test(n)?n.replace(Qi,za):n}function tg(n){return n=z(n),n&&Ns.test(n)?n.replace(Cr,"\\$&"):n}var rg=Ye(function(n,e,t){return n+(t?"-":"")+e.toLowerCase()}),ig=Ye(function(n,e,t){return n+(t?" ":"")+e.toLowerCase()}),ug=Sf("toLowerCase");function fg(n,e,t){n=z(n),e=R(e);var r=e?He(n):0;if(!e||r>=e)return n;var i=(e-r)/2;return ur(Zt(i),t)+n+ur(qt(i),t)}function og(n,e,t){n=z(n),e=R(e);var r=e?He(n):0;return e&&r>>0,t?(n=z(n),n&&(typeof e=="string"||e!=null&&!Mi(e))&&(e=Pn(e),!e&&$e(n))?ye(kn(n),0,t):n.split(e,t)):[]}var pg=Ye(function(n,e,t){return n+(t?" ":"")+Fi(e)});function gg(n,e,t){return n=z(n),t=t==null?0:Re(R(t),0,n.length),e=Pn(e),n.slice(t,t+e.length)==e}function dg(n,e,t){var r=u.templateSettings;t&&Ln(n,e,t)&&(e=o),n=z(n),e=vr({},e,r,Of);var i=vr({},e.imports,r.imports,Of),f=gn(i),s=Zr(i,f),a,c,p=0,g=e.interpolate||Ct,d="__p += '",v=kr((e.escape||Ct).source+"|"+g.source+"|"+(g===Vi?Xs:Ct).source+"|"+(e.evaluate||Ct).source+"|$","g"),m="//# sourceURL="+(k.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++La+"]")+`
`;n.replace(v,function(L,B,$,Bn,En,Wn){return $||($=Bn),d+=n.slice(p,Wn).replace(ta,qa),B&&(a=!0,d+=`' +
__e(`+B+`) +
'`),En&&(c=!0,d+=`';
`+En+`;
__p += '`),$&&(d+=`' +
((__t = (`+$+`)) == null ? '' : __t) +
'`),p=Wn+L.length,L}),d+=`';
`;var S=k.call(e,"variable")&&e.variable;if(!S)d=`with (obj) {
`+d+`
}
`;else if(Ys.test(S))throw new I(q);d=(c?d.replace(Os,""):d).replace(Ms,"$1").replace(Ds,"$1;"),d="function("+(S||"obj")+`) {
`+(S?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(a?", __e = _.escape":"")+(c?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+d+`return __p
}`;var D=So(function(){return G(f,m+"return "+d).apply(o,s)});if(D.source=d,Oi(D))throw D;return D}function vg(n){return z(n).toLowerCase()}function wg(n){return z(n).toUpperCase()}function xg(n,e,t){if(n=z(n),n&&(t||e===o))return Ou(n);if(!n||!(e=Pn(e)))return n;var r=kn(n),i=kn(e),f=Mu(r,i),s=Du(r,i)+1;return ye(r,f,s).join("")}function mg(n,e,t){if(n=z(n),n&&(t||e===o))return n.slice(0,Fu(n)+1);if(!n||!(e=Pn(e)))return n;var r=kn(n),i=Du(r,kn(e))+1;return ye(r,0,i).join("")}function yg(n,e,t){if(n=z(n),n&&(t||e===o))return n.replace(Or,"");if(!n||!(e=Pn(e)))return n;var r=kn(n),i=Mu(r,kn(e));return ye(r,i).join("")}function bg(n,e){var t=gs,r=ds;if(en(e)){var i="separator"in e?e.separator:i;t="length"in e?R(e.length):t,r="omission"in e?Pn(e.omission):r}n=z(n);var f=n.length;if($e(n)){var s=kn(n);f=s.length}if(t>=f)return n;var a=t-He(r);if(a<1)return r;var c=s?ye(s,0,a).join(""):n.slice(0,a);if(i===o)return c+r;if(s&&(a+=c.length-a),Mi(i)){if(n.slice(a).search(i)){var p,g=c;for(i.global||(i=kr(i.source,z(ji.exec(i))+"g")),i.lastIndex=0;p=i.exec(g);)var d=p.index;c=c.slice(0,d===o?a:d)}}else if(n.indexOf(Pn(i),a)!=a){var v=c.lastIndexOf(i);v>-1&&(c=c.slice(0,v))}return c+r}function Ag(n){return n=z(n),n&&Ps.test(n)?n.replace(Ji,Va):n}var Sg=Ye(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),Fi=Sf("toUpperCase");function Ao(n,e,t){return n=z(n),e=t?o:e,e===o?Ya(n)?el(n):Ua(n):n.match(e)||[]}var So=P(function(n,e){try{return Mn(n,o,e)}catch(t){return Oi(t)?t:new I(t)}}),Lg=se(function(n,e){return $n(e,function(t){t=ee(t),fe(n,t,Ri(n[t],n))}),n});function Eg(n){var e=n==null?0:n.length,t=b();return n=e?nn(n,function(r){if(typeof r[1]!="function")throw new Hn(C);return[t(r[0]),r[1]]}):[],P(function(r){for(var i=-1;++i_e)return[];var t=Vn,r=yn(n,Vn);e=b(e),n-=Vn;for(var i=qr(r,e);++t0||e<0)?new U(t):(n<0?t=t.takeRight(-n):n&&(t=t.drop(n)),e!==o&&(e=R(e),t=e<0?t.dropRight(-e):t.take(e-n)),t)},U.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},U.prototype.toArray=function(){return this.take(Vn)},jn(U.prototype,function(n,e){var t=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=u[r?"take"+(e=="last"?"Right":""):e],f=r||/^find/.test(e);!i||(u.prototype[e]=function(){var s=this.__wrapped__,a=r?[1]:arguments,c=s instanceof U,p=a[0],g=c||T(s),d=function(B){var $=i.apply(u,ge([B],a));return r&&v?$[0]:$};g&&t&&typeof p=="function"&&p.length!=1&&(c=g=!1);var v=this.__chain__,m=!!this.__actions__.length,S=f&&!v,D=c&&!m;if(!f&&g){s=D?s:new U(this);var L=n.apply(s,a);return L.__actions__.push({func:lr,args:[d],thisArg:o}),new Nn(L,v)}return S&&D?n.apply(this,a):(L=this.thru(d),S?r?L.value()[0]:L.value():L)})}),$n(["pop","push","shift","sort","splice","unshift"],function(n){var e=Bt[n],t=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var f=this.value();return e.apply(T(f)?f:[],i)}return this[t](function(s){return e.apply(T(s)?s:[],i)})}}),jn(U.prototype,function(n,e){var t=u[e];if(t){var r=t.name+"";k.call(ze,r)||(ze[r]=[]),ze[r].push({name:e,func:t})}}),ze[rr(o,M).name]=[{name:"wrapper",func:o}],U.prototype.clone=Al,U.prototype.reverse=Sl,U.prototype.value=Ll,u.prototype.at=n_,u.prototype.chain=e_,u.prototype.commit=t_,u.prototype.next=r_,u.prototype.plant=u_,u.prototype.reverse=f_,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=o_,u.prototype.first=u.prototype.head,at&&(u.prototype[at]=i_),u},Ne=tl();Le?((Le.exports=Ne)._=Ne,Wr._=Ne):dn._=Ne}).call(At)})(Ki,Ki.exports);function M0(){const A=Do(),E=Ve(),o=rn(()=>E.menuFromServer?E.appAsyncMenus:O0);return{menuTree:rn(()=>{const W=Ki.exports.cloneDeep(o.value);W.sort((C,q)=>(C.meta.order||0)-(q.meta.order||0));function un(C,q){return C?C.map(Z=>{var fn,An;if(!A.accessRouter(Z))return null;if(((fn=Z.meta)==null?void 0:fn.hideChildrenInMenu)||!Z.children)return Z.children=[],Z;Z.children=Z.children.filter(F=>{var y;return((y=F.meta)==null?void 0:y.hideInMenu)!==!0});const pn=un(Z.children,q+1);return pn.length||q>1?(Z.children=pn,Z):((An=Z.meta)==null?void 0:An.hideInMenu)===!1?Z:null}).filter(Boolean):null}return un(W,0)})}}function D0(A){return typeof A=="function"||Object.prototype.toString.call(A)==="[object Object]"&&!Td(A)}const P0=je({emit:["collapse"],setup(){const{t:A}=hd.exports.useI18n(),E=Ve(),o=xr(),H=Zi(),{menuTree:W}=M0(),un=rn({get(){return E.device==="desktop"?E.menuCollapse:!1},set(F){E.updateSettings({menuCollapse:F})}}),C=rn(()=>E.topMenu),q=Qe([]),_n=Qe([]),Z=F=>{if(T0.test(F.path)){I0(F.path),_n.value=[F.name];return}const{hideInMenu:y,activeMenu:O}=F.meta;if(H.name===F.name&&!y&&!O){_n.value=[F.name];return}o.push({name:F.name})},pn=F=>{const y=[];let O=!1;const x=(M,Y)=>{var K;if(M.name===F){O=!0,y.push(...Y);return}(K=M.children)!=null&&K.length&&M.children.forEach(X=>{x(X,[...Y,X.name])})};return W.value.forEach(M=>{O||x(M,[M.name])}),y};Po(F=>{const{requiresAuth:y,activeMenu:O,hideInMenu:x}=F.meta;if(y&&(!x||O)){const M=pn(O||F.name),Y=new Set([...M,...q.value]);q.value=[...Y],_n.value=[O||M[M.length-1]]}},!0);const fn=F=>{E.device==="desktop"&&E.updateSettings({menuCollapse:F})},An=()=>{function F(y,O=[]){return y&&y.forEach(x=>{var K;const M=(K=x==null?void 0:x.meta)!=null&&K.icon?()=>{var X;return Io(To(`<${(X=x==null?void 0:x.meta)==null?void 0:X.icon}/>`))}:null,Y=(x==null?void 0:x.children)&&(x==null?void 0:x.children.length)!==0?N(Rd,{key:x==null?void 0:x.name},{default:()=>[F(x==null?void 0:x.children)],icon:M,title:()=>{var X;return Io(To(A(((X=x==null?void 0:x.meta)==null?void 0:X.locale)||"")))}}):N(Cd,{key:x==null?void 0:x.name,onClick:()=>Z(x)},{default:()=>{var X;return[A(((X=x==null?void 0:x.meta)==null?void 0:X.locale)||"")]},icon:M});O.push(Y)}),O}return F(W.value)};return()=>{let F;return N(Id,{mode:C.value?"horizontal":"vertical",collapsed:un.value,"onUpdate:collapsed":y=>un.value=y,"open-keys":q.value,"onUpdate:open-keys":y=>q.value=y,"show-collapse-button":E.device!=="mobile","auto-open":!1,"selected-keys":_n.value,"auto-open-selected":!0,"level-indent":34,style:"height: 100%;width:100%;",onCollapse:fn},D0(F=An())?F:{default:()=>[F]})}}});const Gi=St(P0,[["__scopeId","data-v-90632f3f"]]),F0={class:"navbar"},B0={class:"left-side"},W0={class:"center-side"},U0={class:"right-side"},$0=je({__name:"index",setup(A){const E=Object.assign({"/src/drivers/losehu117.json":c0,"/src/drivers/losehu117k.json":_0,"/src/drivers/losehu118.json":g0,"/src/drivers/losehu118h.json":v0,"/src/drivers/losehu118k.json":x0,"/src/drivers/lts.json":y0,"/src/drivers/ltsk.json":A0,"/src/drivers/todo.json":L0}),o=Ve(),H=zi();E0(),_d();const{isFullscreen:W,toggle:un}=i0();rn(()=>H.avatar);const C=rn(()=>o.theme),q=rn(()=>o.topMenu&&o.menu),_n=u0({selector:"body",attribute:"arco-theme",valueDark:"dark",valueLight:"light",storageKey:"arco-theme",onChanged(y){o.toggleTheme(y)}}),Z=f0(_n),pn=()=>{Z()};Qe();const fn=Od("toggleDrawerMenu"),An={"LOSEHU.*P.*K":"ltsk.json","LOSEHU.*P.*":"lts.json","LOSEHU12[0-9].*H":"losehu118h.json","LOSEHU12[0-9].*K":"losehu118k.json","LOSEHU12[0-9].*":"losehu118.json","LOSEHU11[8-9].*H":"losehu118h.json","LOSEHU11[8-9].*K":"losehu118k.json","LOSEHU11[8-9].*":"losehu118.json","LOSEHU11[2-7].*K":"losehu117k.json","LOSEHU11[2-7].*":"losehu117.json",".*":"todo.json"},F=async()=>{if(o.connectState==!1){try{o.connectPort&&await Mo(o.connectPort)}catch{}const y=await s0();if(!y){alert("\u8FDE\u63A5\u5931\u8D25");return}o.updateSettings({connectPort:y});const O={};Object.keys(E).forEach(K=>{O[K.substring(K.lastIndexOf("/")+1)]=E[K].default});let x=null;const M=await a0(y),Y={name:"TODO",uart:"official",charset:"official",K:!1,H:!1,localmdc:!1};Object.keys(An).some(K=>{if(new RegExp(K).test(M))return x=Object.assign(Y,O[An[K]]),!0}),o.updateSettings({connectState:!0,firmwareVersion:M,configuration:x})}else await Mo(o.connectPort),o.updateSettings({connectState:!1,connectPort:null,firmwareVersion:""})};return(y,O)=>{const x=Pd,M=Fd,Y=Md,K=Bd,X=pd,xn=gd,mn=Dd,On=dd,te=Wd;return an(),wr("div",F0,[ln("div",B0,[N(Y,null,{default:j(()=>[N(x,{style:{margin:0,fontSize:"18px"},heading:5},{default:j(()=>[Ro(" K5Web \u5DE5\u5177\u7BB1 ")]),_:1}),!q.value&&Ae(o).device==="mobile"?(an(),wn(M,{key:0,style:{"font-size":"22px",cursor:"pointer"},onClick:Ae(fn)},null,8,["onClick"])):Pe("",!0)]),_:1})]),ln("div",W0,[q.value?(an(),wn(Gi,{key:0})):Pe("",!0)]),ln("ul",U0,[ln("li",null,[N(K,{type:"primary",onClick:F},{default:j(()=>[Ro(Fo(Ae(o).connectState?"\u65AD\u5F00":"\u8FDE\u63A5"),1)]),_:1})]),ln("li",null,[N(mn,{content:C.value==="light"?y.$t("settings.navbar.theme.toDark"):y.$t("settings.navbar.theme.toLight")},{default:j(()=>[N(K,{class:"nav-btn",type:"outline",shape:"circle",onClick:pn},{icon:j(()=>[C.value==="dark"?(an(),wn(X,{key:0})):(an(),wn(xn,{key:1}))]),_:1})]),_:1},8,["content"])]),ln("li",null,[N(mn,{content:Ae(W)?y.$t("settings.navbar.screen.toExit"):y.$t("settings.navbar.screen.toFull")},{default:j(()=>[N(K,{class:"nav-btn",type:"outline",shape:"circle",onClick:Ae(un)},{icon:j(()=>[Ae(W)?(an(),wn(On,{key:0})):(an(),wn(te,{key:1}))]),_:1},8,["onClick"])]),_:1},8,["content"])])])])}}});const H0=St($0,[["__scopeId","data-v-c886d2a3"]]);const nt=A=>(Wo("data-v-10c1deb7"),A=A(),Uo(),A),N0={class:"tag-link"},K0=nt(()=>ln("span",null,"\u91CD\u65B0\u52A0\u8F7D",-1)),G0=nt(()=>ln("span",null,"\u5173\u95ED\u5F53\u524D\u6807\u7B7E\u9875",-1)),z0=nt(()=>ln("span",null,"\u5173\u95ED\u5DE6\u4FA7\u6807\u7B7E\u9875",-1)),q0=nt(()=>ln("span",null,"\u5173\u95ED\u53F3\u4FA7\u6807\u7B7E\u9875",-1)),Z0=nt(()=>ln("span",null,"\u5173\u95ED\u5176\u5B83\u6807\u7B7E\u9875",-1)),Y0=nt(()=>ln("span",null,"\u5173\u95ED\u5168\u90E8\u6807\u7B7E\u9875",-1)),k0=je({__name:"tab-item",props:{itemData:{type:Object,default(){return[]}},index:{type:Number,default:0}},setup(A){const E=A,o=xr(),H=Zi(),W=qi(),un=y=>{o.push({...y})},C=rn(()=>W.getTabList),q=rn(()=>E.itemData.fullPath!==H.fullPath),_n=rn(()=>E.index===0),Z=rn(()=>[0,1].includes(E.index)),pn=rn(()=>E.index===C.value.length-1),fn=(y,O)=>{if(W.deleteTag(O,y),E.itemData.fullPath===H.fullPath){const x=C.value[O-1];o.push({name:x.name})}},An=()=>C.value.findIndex(y=>y.fullPath===H.fullPath),F=async y=>{const{itemData:O,index:x}=E,M=[...C.value];if(y==="current")fn(O,x);else if(y==="left"){const Y=An();M.splice(1,E.index-1),W.freshTabList(M),Yx&&o.push({name:O.name})}else if(y==="others"){const Y=C.value.filter((K,X)=>X===0||X===E.index);W.freshTabList(Y),o.push({name:O.name})}else y==="reload"?(W.deleteCache(O),await o.push({name:vd,params:{path:H.fullPath}}),W.addCache(O.name)):(W.resetTabList(),o.push({name:wd}))};return(y,O)=>{const x=Hd,M=xd,Y=Nd,K=md,X=yd,xn=bd,mn=Ad,On=Ud;return an(),wn(On,{trigger:"contextMenu","popup-max-height":!1,onSelect:F},{content:j(()=>[N(Y,{disabled:q.value,value:"reload"},{default:j(()=>[N(M),K0]),_:1},8,["disabled","value"]),N(Y,{class:"sperate-line",disabled:_n.value,value:"current"},{default:j(()=>[N(x),G0]),_:1},8,["disabled","value"]),N(Y,{disabled:Z.value,value:"left"},{default:j(()=>[N(K),z0]),_:1},8,["disabled","value"]),N(Y,{class:"sperate-line",disabled:pn.value,value:"right"},{default:j(()=>[N(X),q0]),_:1},8,["disabled","value"]),N(Y,{value:"others"},{default:j(()=>[N(xn),Z0]),_:1},8,["value"]),N(Y,{value:"all"},{default:j(()=>[N(mn),Y0]),_:1},8,["value"])]),default:j(()=>[ln("span",{class:Bo(["arco-tag arco-tag-size-medium arco-tag-checked",{"link-activated":A.itemData.fullPath===y.$route.fullPath}]),onClick:O[1]||(O[1]=te=>un(A.itemData))},[ln("span",N0,Fo(y.$t(A.itemData.title)),1),ln("span",{class:"arco-icon-hover arco-tag-icon-hover arco-icon-hover-size-medium arco-tag-close-btn",onClick:O[0]||(O[0]=$d(te=>fn(A.itemData,A.index),["stop"]))},[N(x)])],2)]),_:1})}}});const X0=St(k0,[["__scopeId","data-v-10c1deb7"]]),J0=A=>(Wo("data-v-2744fb32"),A=A(),Uo(),A),Q0={class:"tab-bar-container"},V0={class:"tab-bar-box"},j0={class:"tab-bar-scroll"},nv={class:"tags-wrap"},ev=J0(()=>ln("div",{class:"tag-bar-operation"},null,-1)),tv=je({__name:"index",setup(A){const E=Ve(),o=qi(),H=Qe(),W=rn(()=>o.getTabList),un=rn(()=>E.navbar?60:0);return $o(()=>E.navbar,()=>{H.value.updatePosition()}),Po(C=>{!C.meta.noAffix&&!W.value.some(q=>q.fullPath===C.fullPath)&&o.updateTabList(C)},!0),Kd(()=>{Sd()}),(C,q)=>{const _n=Gd;return an(),wr("div",Q0,[N(_n,{ref_key:"affixRef",ref:H,"offset-top":un.value},{default:j(()=>[ln("div",V0,[ln("div",j0,[ln("div",nv,[(an(!0),wr(zd,null,qd(W.value,(Z,pn)=>(an(),wn(X0,{key:Z.fullPath,index:pn,"item-data":Z},null,8,["index","item-data"]))),128))])]),ev])]),_:1},8,["offset-top"])])}}});const rv=St(tv,[["__scopeId","data-v-2744fb32"]]);function iv(A,E,o,H=!1){A.addEventListener&&typeof A.addEventListener=="function"&&A.addEventListener(E,o,H)}function uv(A,E,o,H=!1){A.removeEventListener&&typeof A.removeEventListener=="function"&&A.removeEventListener(E,o,H)}const fv=992;function ov(){return document.body.getBoundingClientRect().width-1{A&&H()}),Zd(()=>{iv(window,"resize",H)}),Yd(()=>{uv(window,"resize",H)})}const av=je({__name:"page-layout",setup(A){const E=qi(),o=rn(()=>E.getCacheList);return(H,W)=>{const un=kd("router-view");return an(),wn(un,null,{default:j(({Component:C,route:q})=>[N(Jd,{name:"fade",mode:"out-in",appear:""},{default:j(()=>[q.meta.ignoreCache?(an(),wn(Co(C),{key:q.fullPath})):(an(),wn(Xd,{key:1,include:o.value},[(an(),wn(Co(C),{key:q.fullPath}))],1032,["include"]))]),_:2},1024)]),_:1})}}}),lv={key:0,class:"layout-navbar"},cv={class:"menu-wrapper"},hv="60px",_v=je({__name:"default-layout",setup(A){const E=Qe(!1),o=Ve(),H=zi(),W=xr(),un=Zi(),C=Do();sv(!0);const q=rn(()=>o.navbar),_n=rn(()=>o.menu&&!o.topMenu),Z=rn(()=>o.hideMenu),pn=rn(()=>o.footer),fn=rn(()=>o.menuCollapse?48:o.menuWidth),An=rn(()=>o.menuCollapse),F=rn(()=>{const M=_n.value&&!Z.value?{paddingLeft:`${fn.value}px`}:{},Y=q.value?{paddingTop:hv}:{};return{...M,...Y}}),y=M=>{!E.value||o.updateSettings({menuCollapse:M})};$o(()=>H.role,M=>{M&&!C.accessRouter(un)&&W.push({name:"notFound"})});const O=Qe(!1),x=()=>{O.value=!1};return Qd("toggleDrawerMenu",()=>{O.value=!O.value}),Ho(()=>{E.value=!0}),(M,Y)=>{const K=t0,X=Vd,xn=r0,mn=jd;return an(),wn(mn,{class:Bo(["layout",{mobile:Ae(o).hideMenu}])},{default:j(()=>[q.value?(an(),wr("div",lv,[N(H0)])):Pe("",!0),N(mn,null,{default:j(()=>[N(mn,null,{default:j(()=>[_n.value?n0((an(),wn(K,{key:0,class:"layout-sider",breakpoint:"xl",collapsed:An.value,collapsible:!0,width:fn.value,style:Oo({paddingTop:q.value?"60px":""}),"hide-trigger":!0,onCollapse:y},{default:j(()=>[ln("div",cv,[N(Gi)])]),_:1},8,["collapsed","width","style"])),[[e0,!Z.value]]):Pe("",!0),Z.value?(an(),wn(X,{key:1,visible:O.value,placement:"left",footer:!1,"mask-closable":"",closable:!1,onCancel:x},{default:j(()=>[N(Gi)]),_:1},8,["visible"])):Pe("",!0),N(mn,{class:"layout-content",style:Oo(F.value)},{default:j(()=>[Ae(o).tabBar?(an(),wn(rv,{key:0})):Pe("",!0),N(xn,null,{default:j(()=>[N(av)]),_:1}),pn.value?(an(),wn(Ld,{key:1})):Pe("",!0)]),_:1},8,["style"])]),_:1})]),_:1})]),_:1},8,["class"])}}});const Sv=St(_v,[["__scopeId","data-v-428bc3c1"]]);export{Sv as default};