Add shuffler

This commit is contained in:
Jack Kingsman committed 2026-01-19 16:37:14 -08:00
1 parent 5feec085f7
commit 16812f3fb3
8 files changed
+414 -222

No files matched your search

-1
View File
@@ -1 +0,0 @@
{"version":3,"mappings":";;;;;;;;6CASa,IAAIA,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,cAAc,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,SAAS,SAASC,EAAEC,EAAE,CAAC,OAAUA,IAAP,MAAqB,OAAOA,GAAlB,SAA2B,MAAKA,EAAEF,GAAGE,EAAEF,CAAC,GAAGE,EAAE,YAAY,EAAqB,OAAOA,GAApB,WAAsBA,EAAE,KAAI,CAC1e,IAAIC,EAAE,CAAC,UAAU,UAAU,CAAC,MAAM,EAAE,EAAE,mBAAmB,UAAU,GAAG,oBAAoB,UAAU,GAAG,gBAAgB,UAAU,EAAE,EAAEC,EAAE,OAAO,OAAOC,EAAE,GAAG,SAASC,EAAEJ,EAAEK,EAAEC,EAAE,CAAC,KAAK,MAAMN,EAAE,KAAK,QAAQK,EAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,GAAGL,CAAC,CAACG,EAAE,UAAU,iBAAiB,GACnQA,EAAE,UAAU,SAAS,SAASJ,EAAEK,EAAE,CAAC,GAAc,OAAOL,GAAlB,UAAkC,OAAOA,GAApB,YAA6BA,GAAN,KAAQ,MAAM,MAAM,uHAAuH,EAAE,KAAK,QAAQ,gBAAgB,KAAKA,EAAEK,EAAE,UAAU,CAAC,EAAED,EAAE,UAAU,YAAY,SAASJ,EAAE,CAAC,KAAK,QAAQ,mBAAmB,KAAKA,EAAE,aAAa,CAAC,EAAE,SAASO,GAAG,EAAEA,EAAE,UAAUH,EAAE,UAAU,SAASI,EAAER,EAAEK,EAAEC,EAAE,CAAC,KAAK,MAAMN,EAAE,KAAK,QAAQK,EAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,GAAGL,CAAC,CAAC,IAAIQ,EAAED,EAAE,UAAU,IAAID,EACrfE,EAAE,YAAYD,EAAEN,EAAEO,EAAEL,EAAE,SAAS,EAAEK,EAAE,qBAAqB,GAAG,IAAIC,EAAE,MAAM,QAAQC,EAAE,OAAO,UAAU,eAAeC,EAAE,CAAC,QAAQ,IAAI,EAAEC,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,EAAE,EACxK,SAASC,EAAEd,EAAEK,EAAEC,EAAE,CAAC,IAAIS,GAAEC,GAAE,GAAGC,GAAE,KAAKC,GAAE,KAAK,GAASb,GAAN,KAAQ,IAAIU,MAAcV,EAAE,MAAX,SAAiBa,GAAEb,EAAE,KAAcA,EAAE,MAAX,SAAiBY,GAAE,GAAGZ,EAAE,KAAKA,EAAEM,EAAE,KAAKN,EAAEU,EAAC,GAAG,CAACF,EAAE,eAAeE,EAAC,IAAIC,GAAED,EAAC,EAAEV,EAAEU,EAAC,GAAG,IAAII,GAAE,UAAU,OAAO,EAAE,GAAOA,KAAJ,EAAMH,GAAE,SAASV,UAAU,EAAEa,GAAE,CAAC,QAAQC,GAAE,MAAMD,EAAC,EAAEE,GAAE,EAAEA,GAAEF,GAAEE,KAAID,GAAEC,EAAC,EAAE,UAAUA,GAAE,CAAC,EAAEL,GAAE,SAASI,EAAC,CAAC,GAAGpB,GAAGA,EAAE,aAAa,IAAIe,MAAKI,GAAEnB,EAAE,aAAamB,GAAWH,GAAED,EAAC,IAAZ,SAAgBC,GAAED,EAAC,EAAEI,GAAEJ,EAAC,GAAG,MAAM,CAAC,SAAS5B,EAAE,KAAKa,EAAE,IAAIiB,GAAE,IAAIC,GAAE,MAAMF,GAAE,OAAOJ,EAAE,OAAO,CAAC,CAC7a,SAASU,EAAEtB,EAAEK,EAAE,CAAC,MAAM,CAAC,SAASlB,EAAE,KAAKa,EAAE,KAAK,IAAIK,EAAE,IAAIL,EAAE,IAAI,MAAMA,EAAE,MAAM,OAAOA,EAAE,MAAM,CAAC,CAAC,SAASuB,EAAEvB,EAAE,CAAC,OAAiB,OAAOA,GAAlB,UAA4BA,IAAP,MAAUA,EAAE,WAAWb,CAAC,CAAC,SAASqC,EAAOxB,EAAE,CAAC,IAAIK,EAAE,CAAC,IAAI,KAAK,IAAI,IAAI,EAAE,MAAM,IAAIL,EAAE,QAAQ,QAAQ,SAASA,EAAE,CAAC,OAAOK,EAAEL,CAAC,CAAC,CAAC,CAAC,CAAC,IAAIyB,EAAE,OAAO,SAASC,EAAE1B,EAAEK,EAAE,CAAC,OAAiB,OAAOL,GAAlB,UAA4BA,IAAP,MAAgBA,EAAE,KAAR,KAAYwB,EAAO,GAAGxB,EAAE,GAAG,EAAEK,EAAE,SAAS,EAAE,CAAC,CAC/W,SAASsB,GAAE3B,EAAEK,EAAEC,EAAES,GAAEC,GAAE,CAAC,IAAIC,GAAE,OAAOjB,GAAmBiB,KAAd,aAA6BA,KAAZ,aAAcjB,EAAE,MAAK,IAAIkB,GAAE,GAAG,GAAUlB,IAAP,KAASkB,GAAE,OAAQ,QAAOD,GAAC,CAAE,IAAK,SAAS,IAAK,SAASC,GAAE,GAAG,MAAM,IAAK,SAAS,OAAOlB,EAAE,SAAQ,CAAE,KAAKb,EAAE,KAAKC,EAAE8B,GAAE,EAAE,CAAC,CAAC,GAAGA,GAAE,OAAOA,GAAElB,EAAEgB,GAAEA,GAAEE,EAAC,EAAElB,EAAOe,KAAL,GAAO,IAAIW,EAAER,GAAE,CAAC,EAAEH,GAAEL,EAAEM,EAAC,GAAGV,EAAE,GAASN,GAAN,OAAUM,EAAEN,EAAE,QAAQyB,EAAE,KAAK,EAAE,KAAKE,GAAEX,GAAEX,EAAEC,EAAE,GAAG,SAASN,GAAE,CAAC,OAAOA,EAAC,CAAC,GAASgB,IAAN,OAAUO,EAAEP,EAAC,IAAIA,GAAEM,EAAEN,GAAEV,GAAG,CAACU,GAAE,KAAKE,IAAGA,GAAE,MAAMF,GAAE,IAAI,IAAI,GAAGA,GAAE,KAAK,QAAQS,EAAE,KAAK,EAAE,KAAKzB,CAAC,GAAGK,EAAE,KAAKW,EAAC,GAAG,EAAyB,GAAvBE,GAAE,EAAEH,GAAOA,KAAL,GAAO,IAAIA,GAAE,IAAOL,EAAEV,CAAC,EAAE,QAAQmB,GAAE,EAAEA,GAAEnB,EAAE,OAAOmB,KAAI,CAACF,GACrfjB,EAAEmB,EAAC,EAAE,IAAIC,GAAEL,GAAEW,EAAET,GAAEE,EAAC,EAAED,IAAGS,GAAEV,GAAEZ,EAAEC,EAAEc,GAAEJ,EAAC,CAAC,SAASI,GAAErB,EAAEC,CAAC,EAAe,OAAOoB,IAApB,WAAsB,IAAIpB,EAAEoB,GAAE,KAAKpB,CAAC,EAAEmB,GAAE,EAAE,EAAEF,GAAEjB,EAAE,KAAI,GAAI,MAAMiB,GAAEA,GAAE,MAAMG,GAAEL,GAAEW,EAAET,GAAEE,IAAG,EAAED,IAAGS,GAAEV,GAAEZ,EAAEC,EAAEc,GAAEJ,EAAC,UAAqBC,KAAX,SAAa,MAAMZ,EAAE,OAAOL,CAAC,EAAE,MAAM,mDAAuEK,IAApB,kBAAsB,qBAAqB,OAAO,KAAKL,CAAC,EAAE,KAAK,IAAI,EAAE,IAAIK,GAAG,2EAA2E,EAAE,OAAOa,EAAC,CACzZ,SAASU,GAAE5B,EAAEK,EAAEC,EAAE,CAAC,GAASN,GAAN,KAAQ,OAAOA,EAAE,IAAIe,GAAE,GAAGC,GAAE,EAAE,OAAAW,GAAE3B,EAAEe,GAAE,GAAG,GAAG,SAASf,GAAE,CAAC,OAAOK,EAAE,KAAKC,EAAEN,GAAEgB,IAAG,CAAC,CAAC,EAASD,EAAC,CAAC,SAASc,EAAE7B,EAAE,CAAC,GAAQA,EAAE,UAAP,GAAe,CAAC,IAAIK,EAAEL,EAAE,QAAQK,EAAEA,EAAC,EAAGA,EAAE,KAAK,SAASA,EAAE,EAAQL,EAAE,UAAN,GAAoBA,EAAE,UAAP,MAAeA,EAAE,QAAQ,EAAEA,EAAE,QAAQK,EAAC,EAAE,SAASA,EAAE,EAAQL,EAAE,UAAN,GAAoBA,EAAE,UAAP,MAAeA,EAAE,QAAQ,EAAEA,EAAE,QAAQK,EAAC,CAAC,EAAOL,EAAE,UAAP,KAAiBA,EAAE,QAAQ,EAAEA,EAAE,QAAQK,EAAE,CAAC,GAAOL,EAAE,UAAN,EAAc,OAAOA,EAAE,QAAQ,QAAQ,MAAMA,EAAE,OAAQ,CAC5Z,IAAI8B,GAAE,CAAC,QAAQ,IAAI,EAAEC,EAAE,CAAC,WAAW,IAAI,EAAEC,GAAE,CAAC,uBAAuBF,GAAE,wBAAwBC,EAAE,kBAAkBnB,CAAC,EAAE,SAASqB,GAAG,CAAC,MAAM,MAAM,0DAA0D,CAAE,CACzM,OAAAC,GAAA,SAAiB,CAAC,IAAIN,GAAE,QAAQ,SAAS5B,EAAEK,EAAEC,EAAE,CAACsB,GAAE5B,EAAE,UAAU,CAACK,EAAE,MAAM,KAAK,SAAS,CAAC,EAAEC,CAAC,CAAC,EAAE,MAAM,SAASN,EAAE,CAAC,IAAIK,EAAE,EAAE,OAAAuB,GAAE5B,EAAE,UAAU,CAACK,GAAG,CAAC,EAASA,CAAC,EAAE,QAAQ,SAASL,EAAE,CAAC,OAAO4B,GAAE5B,EAAE,SAASA,EAAE,CAAC,OAAOA,CAAC,CAAC,GAAG,EAAE,EAAE,KAAK,SAASA,EAAE,CAAC,GAAG,CAACuB,EAAEvB,CAAC,EAAE,Line truncated
@@ -1,4 +1,4 @@
var xy=Object.defineProperty;var Ay=(n,s,i)=>s in n?xy(n,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[s]=i;var Zo=(n,s,i)=>Ay(n,typeof s!="symbol"?s+"":s,i);function vy(n,s){for(var i=0;i<s.length;i++){const l=s[i];if(typeof l!="string"&&!Array.isArray(l)){for(const u in l)if(u!=="default"&&!(u in n)){const c=Object.getOwnPropertyDescriptor(l,u);c&&Object.defineProperty(n,u,c.get?c:{enumerable:!0,get:()=>l[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const c of u)if(c.type==="childList")for(const p of c.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&l(p)}).observe(document,{childList:!0,subtree:!0});function i(u){const c={};return u.integrity&&(c.integrity=u.integrity),u.referrerPolicy&&(c.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?c.credentials="include":u.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function l(u){if(u.ep)return;u.ep=!0;const c=i(u);fetch(u.href,c)}})();var Gf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function aa(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function xx(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var s=n.default;if(typeof s=="function"){var i=function l(){return this instanceof l?Reflect.construct(s,arguments,this.constructor):s.apply(this,arguments)};i.prototype=s.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(n).forEach(function(l){var u=Object.getOwnPropertyDescriptor(n,l);Object.defineProperty(i,l,u.get?u:{enumerable:!0,get:function(){return n[l]}})}),i}var $f={exports:{}},el={},Kf={exports:{}},ft={};/**
var xy=Object.defineProperty;var Ay=(n,s,i)=>s in n?xy(n,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[s]=i;var Zo=(n,s,i)=>Ay(n,typeof s!="symbol"?s+"":s,i);function vy(n,s){for(var i=0;i<s.length;i++){const l=s[i];if(typeof l!="string"&&!Array.isArray(l)){for(const c in l)if(c!=="default"&&!(c in n)){const u=Object.getOwnPropertyDescriptor(l,c);u&&Object.defineProperty(n,c,u.get?u:{enumerable:!0,get:()=>l[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))l(c);new MutationObserver(c=>{for(const u of c)if(u.type==="childList")for(const p of u.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&l(p)}).observe(document,{childList:!0,subtree:!0});function i(c){const u={};return c.integrity&&(u.integrity=c.integrity),c.referrerPolicy&&(u.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?u.credentials="include":c.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function l(c){if(c.ep)return;c.ep=!0;const u=i(c);fetch(c.href,u)}})();var Gf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function aa(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function xx(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var s=n.default;if(typeof s=="function"){var i=function l(){return this instanceof l?Reflect.construct(s,arguments,this.constructor):s.apply(this,arguments)};i.prototype=s.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(n).forEach(function(l){var c=Object.getOwnPropertyDescriptor(n,l);Object.defineProperty(i,l,c.get?c:{enumerable:!0,get:function(){return n[l]}})}),i}var $f={exports:{}},el={},Kf={exports:{}},ft={};/**
* @license React
* react.production.min.js
*
@@ -6,7 +6,7 @@ var xy=Object.defineProperty;var Ay=(n,s,i)=>s in n?xy(n,s,{enumerable:!0,config
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var $p;function yy(){if($p)return ft;$p=1;var n=Symbol.for("react.element"),s=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),p=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),A=Symbol.iterator;function _(N){return N===null||typeof N!="object"?null:(N=A&&N[A]||N["@@iterator"],typeof N=="function"?N:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,C={};function w(N,U,$){this.props=N,this.context=U,this.refs=C,this.updater=$||k}w.prototype.isReactComponent={},w.prototype.setState=function(N,U){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,U,"setState")},w.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function S(){}S.prototype=w.prototype;function B(N,U,$){this.props=N,this.context=U,this.refs=C,this.updater=$||k}var P=B.prototype=new S;P.constructor=B,D(P,w.prototype),P.isPureReactComponent=!0;var F=Array.isArray,M=Object.prototype.hasOwnProperty,H={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function I(N,U,$){var ee,he={},pe=null,Ae=null;if(U!=null)for(ee in U.ref!==void 0&&(Ae=U.ref),U.key!==void 0&&(pe=""+U.key),U)M.call(U,ee)&&!O.hasOwnProperty(ee)&&(he[ee]=U[ee]);var me=arguments.length-2;if(me===1)he.children=$;else if(1<me){for(var Ue=Array(me),Ye=0;Ye<me;Ye++)Ue[Ye]=arguments[Ye+2];he.children=Ue}if(N&&N.defaultProps)for(ee in me=N.defaultProps,me)he[ee]===void 0&&(he[ee]=me[ee]);return{$$typeof:n,type:N,key:pe,ref:Ae,props:he,_owner:H.current}}function X(N,U){return{$$typeof:n,type:N.type,key:U,ref:N.ref,props:N.props,_owner:N._owner}}function V(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function Z(N){var U={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function($){return U[$]})}var K=/\/+/g;function W(N,U){return typeof N=="object"&&N!==null&&N.key!=null?Z(""+N.key):U.toString(36)}function ne(N,U,$,ee,he){var pe=typeof N;(pe==="undefined"||pe==="boolean")&&(N=null);var Ae=!1;if(N===null)Ae=!0;else switch(pe){case"string":case"number":Ae=!0;break;case"object":switch(N.$$typeof){case n:case s:Ae=!0}}if(Ae)return Ae=N,he=he(Ae),N=ee===""?"."+W(Ae,0):ee,F(he)?($="",N!=null&&($=N.replace(K,"$&/")+"/"),ne(he,U,$,"",function(Ye){return Ye})):he!=null&&(V(he)&&(he=X(he,$+(!he.key||Ae&&Ae.key===he.key?"":(""+he.key).replace(K,"$&/")+"/")+N)),U.push(he)),1;if(Ae=0,ee=ee===""?".":ee+":",F(N))for(var me=0;me<N.length;me++){pe=N[me];var Ue=ee+W(pe,me);Ae+=ne(pe,U,$,Ue,he)}else if(Ue=_(N),typeof Ue=="function")for(N=Ue.call(N),me=0;!(pe=N.next()).done;)pe=pe.value,Ue=ee+W(pe,me++),Ae+=ne(pe,U,$,Ue,he);else if(pe==="object")throw U=String(N),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.");return Ae}function ce(N,U,$){if(N==null)return N;var ee=[],he=0;return ne(N,ee,"","",function(pe){return U.call($,pe,he++)}),ee}function Y(N){if(N._status===-1){var U=N._result;U=U(),U.then(function($){(N._status===0||N._status===-1)&&(N._status=1,N._result=$)},function($){(N._status===0||N._status===-1)&&(N._status=2,N._result=$)}),N._status===-1&&(N._status=0,N._result=U)}if(N._status===1)return N._result.default;throw N._result}var ae={current:null},G={transition:null},de={ReactCurrentDispatcher:ae,ReactCurrentBatchConfig:G,ReactCurrentOwner:H};function q(){throw Error("act(...) is not supported in production builds of React.")}return ft.Children={map:ce,forEach:function(N,U,$){ce(N,function(){U.apply(this,arguments)},$)},count:function(N){var U=0;return ce(N,function(){U++}),U},toArray:function(N){return ce(N,function(U){return U})||[]},only:function(N){if(!V(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},ft.Component=w,ft.Fragment=i,ft.Profiler=u,ft.PureComponent=B,ft.StrictMode=l,ft.Suspense=g,ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=de,ft.act=q,ft.cloneElement=function(N,U,$){if(N==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+N+".");var ee=D({},N.props),he=N.key,pe=N.ref,Ae=N._owner;if(U!=null){if(U.ref!==void 0&&(pe=U.ref,Ae=H.current),U.key!==void 0&&(he=""+U.key),N.type&&N.type.defaultProps)var me=N.type.defaultProps;for(Ue in U)M.call(U,Ue)&&!O.hasOwnProperty(Ue)&&(ee[Ue]=U[Ue]===void 0&&me!==void 0?me[Ue]:U[Ue])}var Ue=arguments.length-2;if(Ue===1)ee.children=$;else if(1<Ue){me=Array(Ue);for(var Ye=0;Ye<Ue;Ye++)me[Ye]=arguments[Ye+2];ee.children=me}return{$$typeof:n,type:N.type,key:he,ref:pe,propsLine truncated
*/var $p;function yy(){if($p)return ft;$p=1;var n=Symbol.for("react.element"),s=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),p=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),A=Symbol.iterator;function _(N){return N===null||typeof N!="object"?null:(N=A&&N[A]||N["@@iterator"],typeof N=="function"?N:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,C={};function w(N,Z,$){this.props=N,this.context=Z,this.refs=C,this.updater=$||k}w.prototype.isReactComponent={},w.prototype.setState=function(N,Z){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,Z,"setState")},w.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function S(){}S.prototype=w.prototype;function B(N,Z,$){this.props=N,this.context=Z,this.refs=C,this.updater=$||k}var P=B.prototype=new S;P.constructor=B,D(P,w.prototype),P.isPureReactComponent=!0;var F=Array.isArray,M=Object.prototype.hasOwnProperty,z={current:null},H={key:!0,ref:!0,__self:!0,__source:!0};function I(N,Z,$){var ee,he={},pe=null,Ae=null;if(Z!=null)for(ee in Z.ref!==void 0&&(Ae=Z.ref),Z.key!==void 0&&(pe=""+Z.key),Z)M.call(Z,ee)&&!H.hasOwnProperty(ee)&&(he[ee]=Z[ee]);var me=arguments.length-2;if(me===1)he.children=$;else if(1<me){for(var Ue=Array(me),Ye=0;Ye<me;Ye++)Ue[Ye]=arguments[Ye+2];he.children=Ue}if(N&&N.defaultProps)for(ee in me=N.defaultProps,me)he[ee]===void 0&&(he[ee]=me[ee]);return{$$typeof:n,type:N,key:pe,ref:Ae,props:he,_owner:z.current}}function K(N,Z){return{$$typeof:n,type:N.type,key:Z,ref:N.ref,props:N.props,_owner:N._owner}}function V(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function W(N){var Z={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function($){return Z[$]})}var Q=/\/+/g;function U(N,Z){return typeof N=="object"&&N!==null&&N.key!=null?W(""+N.key):Z.toString(36)}function te(N,Z,$,ee,he){var pe=typeof N;(pe==="undefined"||pe==="boolean")&&(N=null);var Ae=!1;if(N===null)Ae=!0;else switch(pe){case"string":case"number":Ae=!0;break;case"object":switch(N.$$typeof){case n:case s:Ae=!0}}if(Ae)return Ae=N,he=he(Ae),N=ee===""?"."+U(Ae,0):ee,F(he)?($="",N!=null&&($=N.replace(Q,"$&/")+"/"),te(he,Z,$,"",function(Ye){return Ye})):he!=null&&(V(he)&&(he=K(he,$+(!he.key||Ae&&Ae.key===he.key?"":(""+he.key).replace(Q,"$&/")+"/")+N)),Z.push(he)),1;if(Ae=0,ee=ee===""?".":ee+":",F(N))for(var me=0;me<N.length;me++){pe=N[me];var Ue=ee+U(pe,me);Ae+=te(pe,Z,$,Ue,he)}else if(Ue=_(N),typeof Ue=="function")for(N=Ue.call(N),me=0;!(pe=N.next()).done;)pe=pe.value,Ue=ee+U(pe,me++),Ae+=te(pe,Z,$,Ue,he);else if(pe==="object")throw Z=String(N),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.");return Ae}function ce(N,Z,$){if(N==null)return N;var ee=[],he=0;return te(N,ee,"","",function(pe){return Z.call($,pe,he++)}),ee}function X(N){if(N._status===-1){var Z=N._result;Z=Z(),Z.then(function($){(N._status===0||N._status===-1)&&(N._status=1,N._result=$)},function($){(N._status===0||N._status===-1)&&(N._status=2,N._result=$)}),N._status===-1&&(N._status=0,N._result=Z)}if(N._status===1)return N._result.default;throw N._result}var oe={current:null},G={transition:null},ue={ReactCurrentDispatcher:oe,ReactCurrentBatchConfig:G,ReactCurrentOwner:z};function q(){throw Error("act(...) is not supported in production builds of React.")}return ft.Children={map:ce,forEach:function(N,Z,$){ce(N,function(){Z.apply(this,arguments)},$)},count:function(N){var Z=0;return ce(N,function(){Z++}),Z},toArray:function(N){return ce(N,function(Z){return Z})||[]},only:function(N){if(!V(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},ft.Component=w,ft.Fragment=i,ft.Profiler=c,ft.PureComponent=B,ft.StrictMode=l,ft.Suspense=g,ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ue,ft.act=q,ft.cloneElement=function(N,Z,$){if(N==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+N+".");var ee=D({},N.props),he=N.key,pe=N.ref,Ae=N._owner;if(Z!=null){if(Z.ref!==void 0&&(pe=Z.ref,Ae=z.current),Z.key!==void 0&&(he=""+Z.key),N.type&&N.type.defaultProps)var me=N.type.defaultProps;for(Ue in Z)M.call(Z,Ue)&&!H.hasOwnProperty(Ue)&&(ee[Ue]=Z[Ue]===void 0&&me!==void 0?me[Ue]:Z[Ue])}var Ue=arguments.length-2;if(Ue===1)ee.children=$;else if(1<Ue){me=Array(Ue);for(var Ye=0;Ye<Ue;Ye++)me[Ye]=arguments[Ye+2];ee.children=me}return{$$typeof:n,type:N.type,key:he,ref:pe,propsLine truncated
* @license React
* react-jsx-runtime.production.min.js
*
@@ -14,7 +14,7 @@ var xy=Object.defineProperty;var Ay=(n,s,i)=>s in n?xy(n,s,{enumerable:!0,config
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Qp;function _y(){if(Qp)return el;Qp=1;var n=M0(),s=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,u=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function p(d,g,m){var x,A={},_=null,k=null;m!==void 0&&(_=""+m),g.key!==void 0&&(_=""+g.key),g.ref!==void 0&&(k=g.ref);for(x in g)l.call(g,x)&&!c.hasOwnProperty(x)&&(A[x]=g[x]);if(d&&d.defaultProps)for(x in g=d.defaultProps,g)A[x]===void 0&&(A[x]=g[x]);return{$$typeof:s,type:d,key:_,ref:k,props:A,_owner:u.current}}return el.Fragment=i,el.jsx=p,el.jsxs=p,el}var Yp;function wy(){return Yp||(Yp=1,$f.exports=_y()),$f.exports}var b=wy(),R=M0();const Ee=aa(R),I0=vy({__proto__:null,default:Ee},[R]);var Vu={},Qf={exports:{}},Kn={},Yf={exports:{}},Xf={};/**
*/var Qp;function _y(){if(Qp)return el;Qp=1;var n=M0(),s=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function p(d,g,m){var x,A={},_=null,k=null;m!==void 0&&(_=""+m),g.key!==void 0&&(_=""+g.key),g.ref!==void 0&&(k=g.ref);for(x in g)l.call(g,x)&&!u.hasOwnProperty(x)&&(A[x]=g[x]);if(d&&d.defaultProps)for(x in g=d.defaultProps,g)A[x]===void 0&&(A[x]=g[x]);return{$$typeof:s,type:d,key:_,ref:k,props:A,_owner:c.current}}return el.Fragment=i,el.jsx=p,el.jsxs=p,el}var Yp;function wy(){return Yp||(Yp=1,$f.exports=_y()),$f.exports}var b=wy(),R=M0();const Ee=aa(R),I0=vy({__proto__:null,default:Ee},[R]);var Vc={},Qf={exports:{}},Kn={},Yf={exports:{}},Xf={};/**
* @license React
* scheduler.production.min.js
*
@@ -22,7 +22,7 @@ var xy=Object.defineProperty;var Ay=(n,s,i)=>s in n?xy(n,s,{enumerable:!0,config
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Xp;function by(){return Xp||(Xp=1,(function(n){function s(G,de){var q=G.length;G.push(de);e:for(;0<q;){var N=q-1>>>1,U=G[N];if(0<u(U,de))G[N]=de,G[q]=U,q=N;else break e}}function i(G){return G.length===0?null:G[0]}function l(G){if(G.length===0)return null;var de=G[0],q=G.pop();if(q!==de){G[0]=q;e:for(var N=0,U=G.length,$=U>>>1;N<$;){var ee=2*(N+1)-1,he=G[ee],pe=ee+1,Ae=G[pe];if(0>u(he,q))pe<U&&0>u(Ae,he)?(G[N]=Ae,G[pe]=q,N=pe):(G[N]=he,G[ee]=q,N=ee);else if(pe<U&&0>u(Ae,q))G[N]=Ae,G[pe]=q,N=pe;else break e}}return de}function u(G,de){var q=G.sortIndex-de.sortIndex;return q!==0?q:G.id-de.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var p=Date,d=p.now();n.unstable_now=function(){return p.now()-d}}var g=[],m=[],x=1,A=null,_=3,k=!1,D=!1,C=!1,w=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(G){for(var de=i(m);de!==null;){if(de.callback===null)l(m);else if(de.startTime<=G)l(m),de.sortIndex=de.expirationTime,s(g,de);else break;de=i(m)}}function F(G){if(C=!1,P(G),!D)if(i(g)!==null)D=!0,Y(M);else{var de=i(m);de!==null&&ae(F,de.startTime-G)}}function M(G,de){D=!1,C&&(C=!1,S(I),I=-1),k=!0;var q=_;try{for(P(de),A=i(g);A!==null&&(!(A.expirationTime>de)||G&&!Z());){var N=A.callback;if(typeof N=="function"){A.callback=null,_=A.priorityLevel;var U=N(A.expirationTime<=de);de=n.unstable_now(),typeof U=="function"?A.callback=U:A===i(g)&&l(g),P(de)}else l(g);A=i(g)}if(A!==null)var $=!0;else{var ee=i(m);ee!==null&&ae(F,ee.startTime-de),$=!1}return $}finally{A=null,_=q,k=!1}}var H=!1,O=null,I=-1,X=5,V=-1;function Z(){return!(n.unstable_now()-V<X)}function K(){if(O!==null){var G=n.unstable_now();V=G;var de=!0;try{de=O(!0,G)}finally{de?W():(H=!1,O=null)}}else H=!1}var W;if(typeof B=="function")W=function(){B(K)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,ce=ne.port2;ne.port1.onmessage=K,W=function(){ce.postMessage(null)}}else W=function(){w(K,0)};function Y(G){O=G,H||(H=!0,W())}function ae(G,de){I=w(function(){G(n.unstable_now())},de)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(G){G.callback=null},n.unstable_continueExecution=function(){D||k||(D=!0,Y(M))},n.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<G?Math.floor(1e3/G):5},n.unstable_getCurrentPriorityLevel=function(){return _},n.unstable_getFirstCallbackNode=function(){return i(g)},n.unstable_next=function(G){switch(_){case 1:case 2:case 3:var de=3;break;default:de=_}var q=_;_=de;try{return G()}finally{_=q}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(G,de){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var q=_;_=G;try{return de()}finally{_=q}},n.unstable_scheduleCallback=function(G,de,q){var N=n.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?N+q:N):q=N,G){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=q+U,G={id:x++,callback:de,priorityLevel:G,startTime:q,expirationTime:U,sortIndex:-1},q>N?(G.sortIndex=q,s(m,G),i(g)===null&&G===i(m)&&(C?(S(I),I=-1):C=!0,ae(F,q-N))):(G.sortIndex=U,s(g,G),D||k||(D=!0,Y(M))),G},n.unstable_shouldYield=Z,n.unstable_wrapCallback=function(G){var de=_;return function(){var q=_;_=de;try{return G.apply(this,arguments)}finally{_=q}}}})(Xf)),Xf}var Jp;function Cy(){return Jp||(Jp=1,Yf.exports=by()),Yf.exports}/**
*/var Xp;function by(){return Xp||(Xp=1,(function(n){function s(G,ue){var q=G.length;G.push(ue);e:for(;0<q;){var N=q-1>>>1,Z=G[N];if(0<c(Z,ue))G[N]=ue,G[q]=Z,q=N;else break e}}function i(G){return G.length===0?null:G[0]}function l(G){if(G.length===0)return null;var ue=G[0],q=G.pop();if(q!==ue){G[0]=q;e:for(var N=0,Z=G.length,$=Z>>>1;N<$;){var ee=2*(N+1)-1,he=G[ee],pe=ee+1,Ae=G[pe];if(0>c(he,q))pe<Z&&0>c(Ae,he)?(G[N]=Ae,G[pe]=q,N=pe):(G[N]=he,G[ee]=q,N=ee);else if(pe<Z&&0>c(Ae,q))G[N]=Ae,G[pe]=q,N=pe;else break e}}return ue}function c(G,ue){var q=G.sortIndex-ue.sortIndex;return q!==0?q:G.id-ue.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var p=Date,d=p.now();n.unstable_now=function(){return p.now()-d}}var g=[],m=[],x=1,A=null,_=3,k=!1,D=!1,C=!1,w=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(G){for(var ue=i(m);ue!==null;){if(ue.callback===null)l(m);else if(ue.startTime<=G)l(m),ue.sortIndex=ue.expirationTime,s(g,ue);else break;ue=i(m)}}function F(G){if(C=!1,P(G),!D)if(i(g)!==null)D=!0,X(M);else{var ue=i(m);ue!==null&&oe(F,ue.startTime-G)}}function M(G,ue){D=!1,C&&(C=!1,S(I),I=-1),k=!0;var q=_;try{for(P(ue),A=i(g);A!==null&&(!(A.expirationTime>ue)||G&&!W());){var N=A.callback;if(typeof N=="function"){A.callback=null,_=A.priorityLevel;var Z=N(A.expirationTime<=ue);ue=n.unstable_now(),typeof Z=="function"?A.callback=Z:A===i(g)&&l(g),P(ue)}else l(g);A=i(g)}if(A!==null)var $=!0;else{var ee=i(m);ee!==null&&oe(F,ee.startTime-ue),$=!1}return $}finally{A=null,_=q,k=!1}}var z=!1,H=null,I=-1,K=5,V=-1;function W(){return!(n.unstable_now()-V<K)}function Q(){if(H!==null){var G=n.unstable_now();V=G;var ue=!0;try{ue=H(!0,G)}finally{ue?U():(z=!1,H=null)}}else z=!1}var U;if(typeof B=="function")U=function(){B(Q)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,ce=te.port2;te.port1.onmessage=Q,U=function(){ce.postMessage(null)}}else U=function(){w(Q,0)};function X(G){H=G,z||(z=!0,U())}function oe(G,ue){I=w(function(){G(n.unstable_now())},ue)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(G){G.callback=null},n.unstable_continueExecution=function(){D||k||(D=!0,X(M))},n.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<G?Math.floor(1e3/G):5},n.unstable_getCurrentPriorityLevel=function(){return _},n.unstable_getFirstCallbackNode=function(){return i(g)},n.unstable_next=function(G){switch(_){case 1:case 2:case 3:var ue=3;break;default:ue=_}var q=_;_=ue;try{return G()}finally{_=q}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(G,ue){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var q=_;_=G;try{return ue()}finally{_=q}},n.unstable_scheduleCallback=function(G,ue,q){var N=n.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?N+q:N):q=N,G){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=q+Z,G={id:x++,callback:ue,priorityLevel:G,startTime:q,expirationTime:Z,sortIndex:-1},q>N?(G.sortIndex=q,s(m,G),i(g)===null&&G===i(m)&&(C?(S(I),I=-1):C=!0,oe(F,q-N))):(G.sortIndex=Z,s(g,G),D||k||(D=!0,X(M))),G},n.unstable_shouldYield=W,n.unstable_wrapCallback=function(G){var ue=_;return function(){var q=_;_=ue;try{return G.apply(this,arguments)}finally{_=q}}}})(Xf)),Xf}var Jp;function Cy(){return Jp||(Jp=1,Yf.exports=by()),Yf.exports}/**
* @license React
* react-dom.production.min.js
*
@@ -30,25 +30,25 @@ var xy=Object.defineProperty;var Ay=(n,s,i)=>s in n?xy(n,s,{enumerable:!0,config
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var em;function Ey(){if(em)return Kn;em=1;var n=M0(),s=Cy();function i(e){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a<arguments.length;a++)r+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,u={};function c(e,r){p(e,r),p(e+"Capture",r)}function p(e,r){for(u[e]=r,e=0;e<r.length;e++)l.add(r[e])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,x={},A={};function _(e){return g.call(A,e)?!0:g.call(x,e)?!1:m.test(e)?A[e]=!0:(x[e]=!0,!1)}function k(e,r,a,h){if(a!==null&&a.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return h?!1:a!==null?!a.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function D(e,r,a,h){if(r===null||typeof r>"u"||k(e,r,a,h))return!0;if(h)return!1;if(a!==null)switch(a.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function C(e,r,a,h,y,E,j){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=h,this.attributeNamespace=y,this.mustUseProperty=a,this.propertyName=e,this.type=r,this.sanitizeURL=E,this.removeEmptyString=j}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){w[e]=new C(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var r=e[0];w[r]=new C(r,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){w[e]=new C(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){w[e]=new C(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){w[e]=new C(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){w[e]=new C(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){w[e]=new C(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){w[e]=new C(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){w[e]=new C(e,5,!1,e.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function B(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var r=e.replace(S,B);w[r]=new C(r,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var r=e.replace(S,B);w[r]=new C(r,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var r=e.replace(S,B);w[r]=new C(r,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){w[e]=new C(e,1,!1,e.toLowerCase(),null,!1,!1)}),w.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){w[e]=new C(e,1,!1,e.toLowerCase(),null,!0,!0)});function P(e,r,a,h){var y=w.hasOwnProperty(r)?w[r]:null;(y!==null?y.type!==0:h||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!= Line truncated
*/var em;function Ey(){if(em)return Kn;em=1;var n=M0(),s=Cy();function i(e){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a<arguments.length;a++)r+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,c={};function u(e,r){p(e,r),p(e+"Capture",r)}function p(e,r){for(c[e]=r,e=0;e<r.length;e++)l.add(r[e])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,x={},A={};function _(e){return g.call(A,e)?!0:g.call(x,e)?!1:m.test(e)?A[e]=!0:(x[e]=!0,!1)}function k(e,r,a,h){if(a!==null&&a.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return h?!1:a!==null?!a.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function D(e,r,a,h){if(r===null||typeof r>"u"||k(e,r,a,h))return!0;if(h)return!1;if(a!==null)switch(a.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function C(e,r,a,h,y,E,O){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=h,this.attributeNamespace=y,this.mustUseProperty=a,this.propertyName=e,this.type=r,this.sanitizeURL=E,this.removeEmptyString=O}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){w[e]=new C(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var r=e[0];w[r]=new C(r,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){w[e]=new C(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){w[e]=new C(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){w[e]=new C(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){w[e]=new C(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){w[e]=new C(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){w[e]=new C(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){w[e]=new C(e,5,!1,e.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function B(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var r=e.replace(S,B);w[r]=new C(r,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var r=e.replace(S,B);w[r]=new C(r,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var r=e.replace(S,B);w[r]=new C(r,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){w[e]=new C(e,1,!1,e.toLowerCase(),null,!1,!1)}),w.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){w[e]=new C(e,1,!1,e.toLowerCase(),null,!0,!0)});function P(e,r,a,h){var y=w.hasOwnProperty(r)?w[r]:null;(y!==null?y.type!==0:h||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!= Line truncated
`+N+e}var $=!1;function ee(e,r){if(!e||$)return"";$=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(fe){var h=fe}Reflect.construct(e,[],r)}else{try{r.call()}catch(fe){h=fe}e.call(r.prototype)}else{try{throw Error()}catch(fe){h=fe}e()}}catch(fe){if(fe&&h&&typeof fe.stack=="string"){for(var y=fe.stack.split(`
`),E=h.stack.split(`
`),j=y.length-1,Q=E.length-1;1<=j&&0<=Q&&y[j]!==E[Q];)Q--;for(;1<=j&&0<=Q;j--,Q--)if(y[j]!==E[Q]){if(j!==1||Q!==1)do if(j--,Q--,0>Q||y[j]!==E[Q]){var te=`
`+y[j].replace(" at new "," at ");return e.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",e.displayName)),te}while(1<=j&&0<=Q);break}}}finally{$=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?U(e):""}function he(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return e=ee(e.type,!1),e;case 11:return e=ee(e.type.render,!1),e;case 1:return e=ee(e.type,!0),e;default:return""}}function pe(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case H:return"Portal";case X:return"Profiler";case I:return"StrictMode";case W:return"Suspense";case ne:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Z:return(e.displayName||"Context")+".Consumer";case V:return(e._context.displayName||"Context")+".Provider";case K:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ce:return r=e.displayName||null,r!==null?r:pe(e.type)||"Memo";case Y:r=e._payload,e=e._init;try{return pe(e(r))}catch{}}return null}function Ae(e){var r=e.type;switch(e.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=r.render,e=e.displayName||e.name||"",r.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pe(r);case 8:return r===I?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function me(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ue(e){var r=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Ye(e){var r=Ue(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),h=""+e[r];if(!e.hasOwnProperty(r)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var y=a.get,E=a.set;return Object.defineProperty(e,r,{configurable:!0,get:function(){return y.call(this)},set:function(j){h=""+j,E.call(this,j)}}),Object.defineProperty(e,r,{enumerable:a.enumerable}),{getValue:function(){return h},setValue:function(j){h=""+j},stopTracking:function(){e._valueTracker=null,delete e[r]}}}}function Et(e){e._valueTracker||(e._valueTracker=Ye(e))}function pt(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var a=r.getValue(),h="";return e&&(h=Ue(e)?e.checked?"true":"false":e.value),e=h,e!==a?(r.setValue(e),!0):!1}function Be(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ze(e,r){var a=r.checked;return q({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??e._wrapperState.initialChecked})}function ct(e,r){var a=r.defaultValue==null?"":r.defaultValue,h=r.checked!=null?r.checked:r.defaultChecked;a=me(r.value!=null?r.value:a),e._wrapperState={initialChecked:h,initialValue:a,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function Mt(e,r){r=r.checked,r!=null&&P(e,"checked",r,!1)}function lt(e,r){Mt(e,r);var a=me(r.value),h=r.type;if(a!=null)h==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+a):e.value!==""+a&&(e.value=""+a);else if(h==="submit"||h==="reset"){e.removeAttribute("value");return}r.hasOwnProperty("value")?qe(e,r.type,a):r.hasOwnProperty("defaultValue")&&qe(e,r.type,me(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(e.defaultChecked=!!r.defaultChecked)}function mt(e,r,a){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var h=r.type;if(!(h!=="submit"&&h!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+e._wrapperState.initialValue,a||r===e.value||(e.value=r),e.defaultValue=r}a=e.name,a!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,a!==""&&(e.name=a)}function qe(e,r,a){(r!=="number"||Be(e.ownerDocument)!==e)&&(a==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+a&&(e.defaultValue=""+a))}var tt=Array.isArray;function nt(e,r,a,h){if(e=e.options,r){r={};for(var y=0;y<a.length;y++)r["$"+a[y]]=!0;for(a=0;a<e.length;a++)y=r.hasOwnProperty("$"+e[a].value),e[a].selected!==y&&(e[a].selected=y),y&&h&&(e[a].defaultSelected=!0)}else{for(a=""+me(a),r=null,y=0;y<e.length;y++){if(e[y].value===a){e[y].selected=!0,h&&(e[y].defaultSelected=!0);return}r!==null||e[y].disabled||(r=e[y])}r!==null&&(r.selected=!0)}}function He(e,r){if(r.dangerouslySetInn Line truncated
`).replace(J,"")}function ue(e,r,a){if(r=oe(r),oe(e)!==r&&a)throw Error(i(425))}function ve(){}var Pe=null,We=null;function it(e,r){return e==="textarea"||e==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var ln=typeof setTimeout=="function"?setTimeout:void 0,rn=typeof clearTimeout=="function"?clearTimeout:void 0,Ln=typeof Promise=="function"?Promise:void 0,Sn=typeof queueMicrotask=="function"?queueMicrotask:typeof Ln<"u"?function(e){return Ln.resolve(null).then(e).catch(Yi)}:ln;function Yi(e){setTimeout(function(){throw e})}function ja(e,r){var a=r,h=0;do{var y=a.nextSibling;if(e.removeChild(a),y&&y.nodeType===8)if(a=y.data,a==="/$"){if(h===0){e.removeChild(y),nr(r);return}h--}else a!=="$"&&a!=="$?"&&a!=="$!"||h++;a=y}while(a);nr(r)}function Yr(e){for(;e!=null;e=e.nextSibling){var r=e.nodeType;if(r===1||r===3)break;if(r===8){if(r=e.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return e}function ru(e){e=e.previousSibling;for(var r=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(r===0)return e;r--}else a==="/$"&&r++}e=e.previousSibling}return null}var mi=Math.random().toString(36).slice(2),xr="__reactFiber$"+mi,Xi="__reactProps$"+mi,St="__reactContainer$"+mi,Ji="__reactEvents$"+mi,Hd="__reactListeners$"+mi,Vd="__reactHandles$"+mi;function gi(e){var r=e[xr];if(r)return r;for(var a=e.parentNode;a;){if(r=a[St]||a[xr]){if(a=r.alternate,r.child!==null||a!==null&&a.child!==null)for(e=ru(e);e!==null;){if(a=e[xr])return a;e=ru(e)}return r}e=a,a=e.parentNode}return null}function xi(e){return e=e[xr]||e[St],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ai(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function Ns(e){return e[Xi]||null}var Ud=[],Fs=-1;function eo(e){return{current:e}}function Ot(e){0>Fs||(e.current=Ud[Fs],Ud[Fs]=null,Fs--)}function Lt(e,r){Fs++,Ud[Fs]=e.current,e.current=r}var to={},Bn=eo(to),Zn=eo(!1),No=to;function Ls(e,r){var a=e.type.contextTypes;if(!a)return to;var h=e.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===r)return h.__reactInternalMemoizedMaskedChildContext;var y={},E;for(E in a)y[E]=r[E];return h&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=y),y}function Wn(e){return e=e.childContextTypes,e!=null}function iu(){Ot(Zn),Ot(Bn)}function gh(e,r,a){if(Bn.current!==to)throw Error(i(168));Lt(Bn,r),Lt(Zn,a)}function xh(e,r,a){var h=e.stateNode;if(r=r.childContextTypes,typeof h.getChildContext!="function")return a;h=h.getChildContext();for(var y in h)if(!(y in r))throw Error(i(108,Ae(e)||"Unknown",y));return q({},a,h)}function ou(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||to,No=Bn.current,Lt(Bn,e),Lt(Zn,Zn.current),!0}function Ah(e,r,a){var h=e.stateNode;if(!h)throw Error(i(169));a?(e=xh(e,r,No),h.__reactInternalMemoizedMergedChildContext=e,Ot(Zn),Ot(Bn),Lt(Bn,e)):Ot(Zn),Lt(Zn,a)}var vi=null,su=!1,Zd=!1;function vh(e){vi===null?vi=[e]:vi.push(e)}function Mv(e){su=!0,vh(e)}function no(){if(!Zd&&vi!==null){Zd=!0;var e=0,r=vt;try{var a=vi;for(vt=1;e<a.length;e++){var h=a[e];do h=h(!0);while(h!==null)}vi=null,su=!1}catch(y){throw vi!==null&&(vi=vi.slice(e+1)),Nl(pa,no),y}finally{vt=r,Zd=!1}}return null}var Ms=[],Is=0,au=null,lu=0,Ar=[],vr=0,Fo=null,yi=1,_i="";function Lo(e,r){Ms[Is++]=lu,Ms[Is++]=au,au=e,lu=r}function yh(e,r,a){Ar[vr++]=yi,Ar[vr++]=_i,Ar[vr++]=Fo,Fo=e;var h=yi;e=_i;var y=32-rt(h)-1;h&=~(1<<y),a+=1;var E=32-rt(r)+y;if(30<E){var j=y-y%5;E=(h&(1<<j)-1).toString(32),h>>=j,y-=j,yi=1<<32-rt(r)+y|a<<y|h,_i=E+e}else yi=1<<E|a<<y|h,_i=e}function Wd(e){e.return!==null&&(Lo(e,1),yh(e,1,0))}function qd(e){for(;e===au;)au=Ms[--Is],Ms[Is]=null,lu=Ms[--Is],Ms[Is]=null;for(;e===Fo;)Fo=Ar[--vr],Ar[vr]=null,_i=Ar[--vr],Ar[vr]=null,yi=Ar[--vr],Ar[vr]=null}var ar=null,lr=null,Vt=!1,Nr=null;function _h(e,r){var a=br(5,null,null,0);a.elementType="DELETED",a.stateNode=r,a.return=e,r=e.deletions,r===null?(e.deletions=[a],e.flags|=16):r.push(a)}function wh(e,r){switch(e.tag){case 5:var a=e.type;return r=r.nodeType!==1||a.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(e.stateNode=r,ar=e,lr=Yr(r.firstChild),!0):!1;case 6:return r=e.pendingProps===""||r.nodeType!==3?null:r,r!==null?(e.stateNode=r,ar=e,lr=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(a=Fo!==null?{id:yi,overflow:_i}:null,e.memoizedState={dehydrated:r,treeContext:a,retryLane:1073741824},a=br(18,null,null,0),a.stateNode=r,a.return=e,e.child=a,ar=e,lr=null,!0):!1;default:return!1}}function Gd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function $d(e){if(Vt){var r=lr;if(r){var a=r;if(!wh(e,r)){if(Gd(e))throw Error(i(418));r=Yr(a.nextSibling);var h=ar;r&&wh(e,r)?_h(h,a):(e.flags=e.flags&-4097|2,Vt=!1,ar=e)}}else{if(Gd(e))throw Error(i(418));e.flags=e.flags&-4097|2,Vt=!1,ar=e}}}function bh(e){for(e=e.r Line truncated
`),O=y.length-1,Y=E.length-1;1<=O&&0<=Y&&y[O]!==E[Y];)Y--;for(;1<=O&&0<=Y;O--,Y--)if(y[O]!==E[Y]){if(O!==1||Y!==1)do if(O--,Y--,0>Y||y[O]!==E[Y]){var ne=`
`+y[O].replace(" at new "," at ");return e.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",e.displayName)),ne}while(1<=O&&0<=Y);break}}}finally{$=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?Z(e):""}function he(e){switch(e.tag){case 5:return Z(e.type);case 16:return Z("Lazy");case 13:return Z("Suspense");case 19:return Z("SuspenseList");case 0:case 2:case 15:return e=ee(e.type,!1),e;case 11:return e=ee(e.type.render,!1),e;case 1:return e=ee(e.type,!0),e;default:return""}}function pe(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case z:return"Portal";case K:return"Profiler";case I:return"StrictMode";case U:return"Suspense";case te:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case W:return(e.displayName||"Context")+".Consumer";case V:return(e._context.displayName||"Context")+".Provider";case Q:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ce:return r=e.displayName||null,r!==null?r:pe(e.type)||"Memo";case X:r=e._payload,e=e._init;try{return pe(e(r))}catch{}}return null}function Ae(e){var r=e.type;switch(e.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=r.render,e=e.displayName||e.name||"",r.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pe(r);case 8:return r===I?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function me(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ue(e){var r=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Ye(e){var r=Ue(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),h=""+e[r];if(!e.hasOwnProperty(r)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var y=a.get,E=a.set;return Object.defineProperty(e,r,{configurable:!0,get:function(){return y.call(this)},set:function(O){h=""+O,E.call(this,O)}}),Object.defineProperty(e,r,{enumerable:a.enumerable}),{getValue:function(){return h},setValue:function(O){h=""+O},stopTracking:function(){e._valueTracker=null,delete e[r]}}}}function Et(e){e._valueTracker||(e._valueTracker=Ye(e))}function pt(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var a=r.getValue(),h="";return e&&(h=Ue(e)?e.checked?"true":"false":e.value),e=h,e!==a?(r.setValue(e),!0):!1}function Be(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ze(e,r){var a=r.checked;return q({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??e._wrapperState.initialChecked})}function ut(e,r){var a=r.defaultValue==null?"":r.defaultValue,h=r.checked!=null?r.checked:r.defaultChecked;a=me(r.value!=null?r.value:a),e._wrapperState={initialChecked:h,initialValue:a,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function Mt(e,r){r=r.checked,r!=null&&P(e,"checked",r,!1)}function lt(e,r){Mt(e,r);var a=me(r.value),h=r.type;if(a!=null)h==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+a):e.value!==""+a&&(e.value=""+a);else if(h==="submit"||h==="reset"){e.removeAttribute("value");return}r.hasOwnProperty("value")?qe(e,r.type,a):r.hasOwnProperty("defaultValue")&&qe(e,r.type,me(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(e.defaultChecked=!!r.defaultChecked)}function mt(e,r,a){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var h=r.type;if(!(h!=="submit"&&h!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+e._wrapperState.initialValue,a||r===e.value||(e.value=r),e.defaultValue=r}a=e.name,a!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,a!==""&&(e.name=a)}function qe(e,r,a){(r!=="number"||Be(e.ownerDocument)!==e)&&(a==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+a&&(e.defaultValue=""+a))}var tt=Array.isArray;function nt(e,r,a,h){if(e=e.options,r){r={};for(var y=0;y<a.length;y++)r["$"+a[y]]=!0;for(a=0;a<e.length;a++)y=r.hasOwnProperty("$"+e[a].value),e[a].selected!==y&&(e[a].selected=y),y&&h&&(e[a].defaultSelected=!0)}else{for(a=""+me(a),r=null,y=0;y<e.length;y++){if(e[y].value===a){e[y].selected=!0,h&&(e[y].defaultSelected=!0);return}r!==null||e[y].disabled||(r=e[y])}r!==null&&(r.selected=!0)}}function He(e,r){if(r.dangerouslySetInn Line truncated
`).replace(J,"")}function de(e,r,a){if(r=se(r),se(e)!==r&&a)throw Error(i(425))}function ve(){}var Pe=null,We=null;function it(e,r){return e==="textarea"||e==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var ln=typeof setTimeout=="function"?setTimeout:void 0,rn=typeof clearTimeout=="function"?clearTimeout:void 0,Ln=typeof Promise=="function"?Promise:void 0,Sn=typeof queueMicrotask=="function"?queueMicrotask:typeof Ln<"u"?function(e){return Ln.resolve(null).then(e).catch(Yi)}:ln;function Yi(e){setTimeout(function(){throw e})}function ja(e,r){var a=r,h=0;do{var y=a.nextSibling;if(e.removeChild(a),y&&y.nodeType===8)if(a=y.data,a==="/$"){if(h===0){e.removeChild(y),nr(r);return}h--}else a!=="$"&&a!=="$?"&&a!=="$!"||h++;a=y}while(a);nr(r)}function Yr(e){for(;e!=null;e=e.nextSibling){var r=e.nodeType;if(r===1||r===3)break;if(r===8){if(r=e.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return e}function rc(e){e=e.previousSibling;for(var r=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(r===0)return e;r--}else a==="/$"&&r++}e=e.previousSibling}return null}var mi=Math.random().toString(36).slice(2),xr="__reactFiber$"+mi,Xi="__reactProps$"+mi,St="__reactContainer$"+mi,Ji="__reactEvents$"+mi,Hd="__reactListeners$"+mi,Vd="__reactHandles$"+mi;function gi(e){var r=e[xr];if(r)return r;for(var a=e.parentNode;a;){if(r=a[St]||a[xr]){if(a=r.alternate,r.child!==null||a!==null&&a.child!==null)for(e=rc(e);e!==null;){if(a=e[xr])return a;e=rc(e)}return r}e=a,a=e.parentNode}return null}function xi(e){return e=e[xr]||e[St],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ai(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function Ns(e){return e[Xi]||null}var Ud=[],Fs=-1;function eo(e){return{current:e}}function Ot(e){0>Fs||(e.current=Ud[Fs],Ud[Fs]=null,Fs--)}function Lt(e,r){Fs++,Ud[Fs]=e.current,e.current=r}var to={},Bn=eo(to),Zn=eo(!1),No=to;function Ls(e,r){var a=e.type.contextTypes;if(!a)return to;var h=e.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===r)return h.__reactInternalMemoizedMaskedChildContext;var y={},E;for(E in a)y[E]=r[E];return h&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=y),y}function Wn(e){return e=e.childContextTypes,e!=null}function ic(){Ot(Zn),Ot(Bn)}function gh(e,r,a){if(Bn.current!==to)throw Error(i(168));Lt(Bn,r),Lt(Zn,a)}function xh(e,r,a){var h=e.stateNode;if(r=r.childContextTypes,typeof h.getChildContext!="function")return a;h=h.getChildContext();for(var y in h)if(!(y in r))throw Error(i(108,Ae(e)||"Unknown",y));return q({},a,h)}function oc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||to,No=Bn.current,Lt(Bn,e),Lt(Zn,Zn.current),!0}function Ah(e,r,a){var h=e.stateNode;if(!h)throw Error(i(169));a?(e=xh(e,r,No),h.__reactInternalMemoizedMergedChildContext=e,Ot(Zn),Ot(Bn),Lt(Bn,e)):Ot(Zn),Lt(Zn,a)}var vi=null,sc=!1,Zd=!1;function vh(e){vi===null?vi=[e]:vi.push(e)}function Mv(e){sc=!0,vh(e)}function no(){if(!Zd&&vi!==null){Zd=!0;var e=0,r=vt;try{var a=vi;for(vt=1;e<a.length;e++){var h=a[e];do h=h(!0);while(h!==null)}vi=null,sc=!1}catch(y){throw vi!==null&&(vi=vi.slice(e+1)),Nl(pa,no),y}finally{vt=r,Zd=!1}}return null}var Ms=[],Is=0,ac=null,lc=0,Ar=[],vr=0,Fo=null,yi=1,_i="";function Lo(e,r){Ms[Is++]=lc,Ms[Is++]=ac,ac=e,lc=r}function yh(e,r,a){Ar[vr++]=yi,Ar[vr++]=_i,Ar[vr++]=Fo,Fo=e;var h=yi;e=_i;var y=32-rt(h)-1;h&=~(1<<y),a+=1;var E=32-rt(r)+y;if(30<E){var O=y-y%5;E=(h&(1<<O)-1).toString(32),h>>=O,y-=O,yi=1<<32-rt(r)+y|a<<y|h,_i=E+e}else yi=1<<E|a<<y|h,_i=e}function Wd(e){e.return!==null&&(Lo(e,1),yh(e,1,0))}function qd(e){for(;e===ac;)ac=Ms[--Is],Ms[Is]=null,lc=Ms[--Is],Ms[Is]=null;for(;e===Fo;)Fo=Ar[--vr],Ar[vr]=null,_i=Ar[--vr],Ar[vr]=null,yi=Ar[--vr],Ar[vr]=null}var ar=null,lr=null,Vt=!1,Nr=null;function _h(e,r){var a=br(5,null,null,0);a.elementType="DELETED",a.stateNode=r,a.return=e,r=e.deletions,r===null?(e.deletions=[a],e.flags|=16):r.push(a)}function wh(e,r){switch(e.tag){case 5:var a=e.type;return r=r.nodeType!==1||a.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(e.stateNode=r,ar=e,lr=Yr(r.firstChild),!0):!1;case 6:return r=e.pendingProps===""||r.nodeType!==3?null:r,r!==null?(e.stateNode=r,ar=e,lr=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(a=Fo!==null?{id:yi,overflow:_i}:null,e.memoizedState={dehydrated:r,treeContext:a,retryLane:1073741824},a=br(18,null,null,0),a.stateNode=r,a.return=e,e.child=a,ar=e,lr=null,!0):!1;default:return!1}}function Gd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function $d(e){if(Vt){var r=lr;if(r){var a=r;if(!wh(e,r)){if(Gd(e))throw Error(i(418));r=Yr(a.nextSibling);var h=ar;r&&wh(e,r)?_h(h,a):(e.flags=e.flags&-4097|2,Vt=!1,ar=e)}}else{if(Gd(e))throw Error(i(418));e.flags=e.flags&-4097|2,Vt=!1,ar=e}}}function bh(e){for(e=e.r Line truncated
Error generating stack: `+E.message+`
`+E.stack}return{value:e,source:r,stack:y,digest:null}}function xf(e,r,a){return{value:e,source:null,stack:a??null,digest:r??null}}function Af(e,r){try{console.error(r.value)}catch(a){setTimeout(function(){throw a})}}var Wv=typeof WeakMap=="function"?WeakMap:Map;function rp(e,r,a){a=bi(-1,a),a.tag=3,a.payload={element:null};var h=r.value;return a.callback=function(){Bu||(Bu=!0,Nf=h),Af(e,r)},a}function ip(e,r,a){a=bi(-1,a),a.tag=3;var h=e.type.getDerivedStateFromError;if(typeof h=="function"){var y=r.value;a.payload=function(){return h(y)},a.callback=function(){Af(e,r)}}var E=e.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(a.callback=function(){Af(e,r),typeof h!="function"&&(so===null?so=new Set([this]):so.add(this));var j=r.stack;this.componentDidCatch(r.value,{componentStack:j!==null?j:""})}),a}function op(e,r,a){var h=e.pingCache;if(h===null){h=e.pingCache=new Wv;var y=new Set;h.set(r,y)}else y=h.get(r),y===void 0&&(y=new Set,h.set(r,y));y.has(a)||(y.add(a),e=oy.bind(null,e,r,a),r.then(e,e))}function sp(e){do{var r;if((r=e.tag===13)&&(r=e.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return e;e=e.return}while(e!==null);return null}function ap(e,r,a,h,y){return(e.mode&1)===0?(e===r?e.flags|=65536:(e.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(r=bi(-1,1),r.tag=2,io(a,r,1))),a.lanes|=1),e):(e.flags|=65536,e.lanes=y,e)}var qv=F.ReactCurrentOwner,qn=!1;function Mn(e,r,a,h){r.child=e===null?Sh(r,null,a,h):js(r,e.child,a,h)}function lp(e,r,a,h,y){a=a.render;var E=r.ref;return Hs(r,y),h=uf(e,r,a,h,E,y),a=cf(),e!==null&&!qn?(r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~y,Ci(e,r,y)):(Vt&&a&&Wd(r),r.flags|=1,Mn(e,r,h,y),r.child)}function up(e,r,a,h,y){if(e===null){var E=a.type;return typeof E=="function"&&!zf(E)&&E.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(r.tag=15,r.type=E,cp(e,r,E,h,y)):(e=Fu(a.type,null,h,r,r.mode,y),e.ref=r.ref,e.return=r,r.child=e)}if(E=e.child,(e.lanes&y)===0){var j=E.memoizedProps;if(a=a.compare,a=a!==null?a:$r,a(j,h)&&e.ref===r.ref)return Ci(e,r,y)}return r.flags|=1,e=co(E,h),e.ref=r.ref,e.return=r,r.child=e}function cp(e,r,a,h,y){if(e!==null){var E=e.memoizedProps;if($r(E,h)&&e.ref===r.ref)if(qn=!1,r.pendingProps=h=E,(e.lanes&y)!==0)(e.flags&131072)!==0&&(qn=!0);else return r.lanes=e.lanes,Ci(e,r,y)}return vf(e,r,a,h,y)}function dp(e,r,a){var h=r.pendingProps,y=h.children,E=e!==null?e.memoizedState:null;if(h.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},Lt(Ws,ur),ur|=a;else{if((a&1073741824)===0)return e=E!==null?E.baseLanes|a:a,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:e,cachePool:null,transitions:null},r.updateQueue=null,Lt(Ws,ur),ur|=e,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},h=E!==null?E.baseLanes:a,Lt(Ws,ur),ur|=h}else E!==null?(h=E.baseLanes|a,r.memoizedState=null):h=a,Lt(Ws,ur),ur|=h;return Mn(e,r,y,a),r.child}function fp(e,r){var a=r.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(r.flags|=512,r.flags|=2097152)}function vf(e,r,a,h,y){var E=Wn(a)?No:Bn.current;return E=Ls(r,E),Hs(r,y),a=uf(e,r,a,h,E,y),h=cf(),e!==null&&!qn?(r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~y,Ci(e,r,y)):(Vt&&h&&Wd(r),r.flags|=1,Mn(e,r,a,y),r.child)}function hp(e,r,a,h,y){if(Wn(a)){var E=!0;ou(r)}else E=!1;if(Hs(r,y),r.stateNode===null)bu(e,r),tp(r,a,h),gf(r,a,h,y),h=!0;else if(e===null){var j=r.stateNode,Q=r.memoizedProps;j.props=Q;var te=j.context,fe=a.contextType;typeof fe=="object"&&fe!==null?fe=yr(fe):(fe=Wn(a)?No:Bn.current,fe=Ls(r,fe));var we=a.getDerivedStateFromProps,be=typeof we=="function"||typeof j.getSnapshotBeforeUpdate=="function";be||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(Q!==h||te!==fe)&&np(r,j,h,fe),ro=!1;var ye=r.memoizedState;j.state=ye,pu(r,h,j,y),te=r.memoizedState,Q!==h||ye!==te||Zn.current||ro?(typeof we=="function"&&(mf(r,a,we,h),te=r.memoizedState),(Q=ro||ep(r,a,Q,h,ye,te,fe))?(be||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount()),typeof j.componentDidMount=="function"&&(r.flags|=4194308)):(typeof j.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=h,r.memoizedState=te),j.props=h,j.state=te,j.context=fe,h=Q):(typeof j.componentDidMount=="function"&&(r.flags|=4194308),h=!1)}else{j=r.stateNode,Ph(e,r),Q=r.memoizedProps,fe=r.type===r.elementType?Q:Fr(r.type,Q),j.props=fe,be=r.pendingProps,ye=j.context,te=a.contextType,typeof te=="object"&&te!==null?te=yr(te):(te=Wn(a)?No:Bn.current,te=Ls(r,te));var Fe=a.getDerivedStateFromProps;(we=typeof Fe=="function"||typeof j.getSnapshotBeforeUpdate=="function")||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(Q!==be||ye!==te)&&np(r,j, Line truncated
`)}function $s(n,s,i){const l=Math.floor(Date.now()/1e3);return{id:-Date.now(),type:"PRIV",conversation_key:n,text:s,sender_timestamp:l,received_at:l,paths:null,txt_type:0,signature:null,outgoing:i,acked:1}}function Fy(n){const s=R.useRef(null),i=R.useRef(null),l=R.useCallback(()=>{i.current!==null&&(clearInterval(i.current),i.current=null),s.current=null},[]),u=R.useCallback(async()=>{const p=s.current;if(!p)return;let d=null,g=null;for(let m=0;m<2;m++)try{d=await et.requestTelemetry(p.conversationId,"");break}catch(x){g=x instanceof Error?x:new Error("Unknown error"),m===0&&await new Promise(A=>setTimeout(A,2e3))}if(d){const m=$s(p.conversationId,Ny(p,d),!1);n(x=>[...x,m])}else{const m=$s(p.conversationId,`Duty cycle poll failed after retry: ${(g==null?void 0:g.message)??"Unknown error"}`,!1);n(x=>[...x,m])}},[n]),c=R.useCallback(async(p,d)=>{const g=p.trim().toLowerCase();if(g==="dutycycle_start"){l();let m=null,x=null;for(let k=0;k<2;k++)try{m=await et.requestTelemetry(d,"");break}catch(D){x=D instanceof Error?D:new Error("Unknown error"),k===0&&await new Promise(C=>setTimeout(C,2e3))}if(!m){const k=$s(d,`Failed to start duty cycle tracking after retry: ${(x==null?void 0:x.message)??"Unknown error"}`,!1);return n(D=>[...D,k]),!0}const A=Math.floor(Date.now()/1e3);s.current={startTime:A,uptime:m.uptime_seconds,txAirtime:m.airtime_seconds,rxAirtime:m.rx_airtime_seconds,sentFlood:m.sent_flood,sentDirect:m.sent_direct,recvFlood:m.recv_flood,recvDirect:m.recv_direct,conversationId:d};const _=$s(d,`Airtime/duty cycle statistics gathering begins at ${A}. Logs will follow every 5 minutes. To stop, run dutycycle_stop or navigate away from this conversation.`,!1);return n(k=>[...k,_]),i.current=window.setInterval(u,Dy),!0}if(g==="dutycycle_stop"){if(s.current&&s.current.conversationId===d){await u(),l();const m=$s(d,"Airtime/duty cycle statistics gathering stopped.",!1);n(x=>[...x,m])}else{const m=$s(d,"Duty cycle tracking is not active.",!1);n(x=>[...x,m])}return!0}return!1},[n,l,u]);return R.useEffect(()=>()=>{i.current!==null&&clearInterval(i.current)},[]),{handleAirtimeCommand:c,stopTracking:l}}function ec(n){if(n<60)return`${n}s`;const s=Math.floor(n/86400),i=Math.floor(n%86400/3600),l=Math.floor(n%3600/60);return s>0?i>0&&l>0?`${s}d${i}h${l}m`:i>0?`${s}d${i}h`:l>0?`${s}d${l}m`:`${s}d`:i>0?l>0?`${i}h${l}m`:`${i}h`:`${l}m`}function Ly(n){return["Telemetry",`Battery Voltage: ${n.battery_volts.toFixed(3)}V`,`Uptime: ${ec(n.uptime_seconds)}`,`TX Airtime: ${ec(n.airtime_seconds)}`,`RX Airtime: ${ec(n.rx_airtime_seconds)}`,"",`Noise Floor: ${n.noise_floor_dbm} dBm`,`Last RSSI: ${n.last_rssi_dbm} dBm`,`Last SNR: ${n.last_snr_db.toFixed(1)} dB`,"",`Packets: ${n.packets_received.toLocaleString()} rx / ${n.packets_sent.toLocaleString()} tx`,`Flood: ${n.recv_flood.toLocaleString()} rx / ${n.sent_flood.toLocaleString()} tx`,`Direct: ${n.recv_direct.toLocaleString()} rx / ${n.sent_direct.toLocaleString()} tx`,`Duplicates: ${n.flood_dups.toLocaleString()} flood / ${n.direct_dups.toLocaleString()} direct`,"",`TX Queue: ${n.tx_queue_len}`,`Debug Flags: ${n.full_events}`].join(`
`+E.stack}return{value:e,source:r,stack:y,digest:null}}function xf(e,r,a){return{value:e,source:null,stack:a??null,digest:r??null}}function Af(e,r){try{console.error(r.value)}catch(a){setTimeout(function(){throw a})}}var Wv=typeof WeakMap=="function"?WeakMap:Map;function rp(e,r,a){a=bi(-1,a),a.tag=3,a.payload={element:null};var h=r.value;return a.callback=function(){Bc||(Bc=!0,Nf=h),Af(e,r)},a}function ip(e,r,a){a=bi(-1,a),a.tag=3;var h=e.type.getDerivedStateFromError;if(typeof h=="function"){var y=r.value;a.payload=function(){return h(y)},a.callback=function(){Af(e,r)}}var E=e.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(a.callback=function(){Af(e,r),typeof h!="function"&&(so===null?so=new Set([this]):so.add(this));var O=r.stack;this.componentDidCatch(r.value,{componentStack:O!==null?O:""})}),a}function op(e,r,a){var h=e.pingCache;if(h===null){h=e.pingCache=new Wv;var y=new Set;h.set(r,y)}else y=h.get(r),y===void 0&&(y=new Set,h.set(r,y));y.has(a)||(y.add(a),e=oy.bind(null,e,r,a),r.then(e,e))}function sp(e){do{var r;if((r=e.tag===13)&&(r=e.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return e;e=e.return}while(e!==null);return null}function ap(e,r,a,h,y){return(e.mode&1)===0?(e===r?e.flags|=65536:(e.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(r=bi(-1,1),r.tag=2,io(a,r,1))),a.lanes|=1),e):(e.flags|=65536,e.lanes=y,e)}var qv=F.ReactCurrentOwner,qn=!1;function Mn(e,r,a,h){r.child=e===null?Sh(r,null,a,h):js(r,e.child,a,h)}function lp(e,r,a,h,y){a=a.render;var E=r.ref;return Hs(r,y),h=cf(e,r,a,h,E,y),a=uf(),e!==null&&!qn?(r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~y,Ci(e,r,y)):(Vt&&a&&Wd(r),r.flags|=1,Mn(e,r,h,y),r.child)}function cp(e,r,a,h,y){if(e===null){var E=a.type;return typeof E=="function"&&!zf(E)&&E.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(r.tag=15,r.type=E,up(e,r,E,h,y)):(e=Fc(a.type,null,h,r,r.mode,y),e.ref=r.ref,e.return=r,r.child=e)}if(E=e.child,(e.lanes&y)===0){var O=E.memoizedProps;if(a=a.compare,a=a!==null?a:$r,a(O,h)&&e.ref===r.ref)return Ci(e,r,y)}return r.flags|=1,e=uo(E,h),e.ref=r.ref,e.return=r,r.child=e}function up(e,r,a,h,y){if(e!==null){var E=e.memoizedProps;if($r(E,h)&&e.ref===r.ref)if(qn=!1,r.pendingProps=h=E,(e.lanes&y)!==0)(e.flags&131072)!==0&&(qn=!0);else return r.lanes=e.lanes,Ci(e,r,y)}return vf(e,r,a,h,y)}function dp(e,r,a){var h=r.pendingProps,y=h.children,E=e!==null?e.memoizedState:null;if(h.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},Lt(Ws,cr),cr|=a;else{if((a&1073741824)===0)return e=E!==null?E.baseLanes|a:a,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:e,cachePool:null,transitions:null},r.updateQueue=null,Lt(Ws,cr),cr|=e,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},h=E!==null?E.baseLanes:a,Lt(Ws,cr),cr|=h}else E!==null?(h=E.baseLanes|a,r.memoizedState=null):h=a,Lt(Ws,cr),cr|=h;return Mn(e,r,y,a),r.child}function fp(e,r){var a=r.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(r.flags|=512,r.flags|=2097152)}function vf(e,r,a,h,y){var E=Wn(a)?No:Bn.current;return E=Ls(r,E),Hs(r,y),a=cf(e,r,a,h,E,y),h=uf(),e!==null&&!qn?(r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~y,Ci(e,r,y)):(Vt&&h&&Wd(r),r.flags|=1,Mn(e,r,a,y),r.child)}function hp(e,r,a,h,y){if(Wn(a)){var E=!0;oc(r)}else E=!1;if(Hs(r,y),r.stateNode===null)bc(e,r),tp(r,a,h),gf(r,a,h,y),h=!0;else if(e===null){var O=r.stateNode,Y=r.memoizedProps;O.props=Y;var ne=O.context,fe=a.contextType;typeof fe=="object"&&fe!==null?fe=yr(fe):(fe=Wn(a)?No:Bn.current,fe=Ls(r,fe));var we=a.getDerivedStateFromProps,be=typeof we=="function"||typeof O.getSnapshotBeforeUpdate=="function";be||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(Y!==h||ne!==fe)&&np(r,O,h,fe),ro=!1;var ye=r.memoizedState;O.state=ye,pc(r,h,O,y),ne=r.memoizedState,Y!==h||ye!==ne||Zn.current||ro?(typeof we=="function"&&(mf(r,a,we,h),ne=r.memoizedState),(Y=ro||ep(r,a,Y,h,ye,ne,fe))?(be||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount()),typeof O.componentDidMount=="function"&&(r.flags|=4194308)):(typeof O.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=h,r.memoizedState=ne),O.props=h,O.state=ne,O.context=fe,h=Y):(typeof O.componentDidMount=="function"&&(r.flags|=4194308),h=!1)}else{O=r.stateNode,Ph(e,r),Y=r.memoizedProps,fe=r.type===r.elementType?Y:Fr(r.type,Y),O.props=fe,be=r.pendingProps,ye=O.context,ne=a.contextType,typeof ne=="object"&&ne!==null?ne=yr(ne):(ne=Wn(a)?No:Bn.current,ne=Ls(r,ne));var Fe=a.getDerivedStateFromProps;(we=typeof Fe=="function"||typeof O.getSnapshotBeforeUpdate=="function")||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(Y!==be||ye!==ne)&&np(r,O, Line truncated
`)}function $s(n,s,i){const l=Math.floor(Date.now()/1e3);return{id:-Date.now(),type:"PRIV",conversation_key:n,text:s,sender_timestamp:l,received_at:l,paths:null,txt_type:0,signature:null,outgoing:i,acked:1}}function Fy(n){const s=R.useRef(null),i=R.useRef(null),l=R.useCallback(()=>{i.current!==null&&(clearInterval(i.current),i.current=null),s.current=null},[]),c=R.useCallback(async()=>{const p=s.current;if(!p)return;let d=null,g=null;for(let m=0;m<2;m++)try{d=await et.requestTelemetry(p.conversationId,"");break}catch(x){g=x instanceof Error?x:new Error("Unknown error"),m===0&&await new Promise(A=>setTimeout(A,2e3))}if(d){const m=$s(p.conversationId,Ny(p,d),!1);n(x=>[...x,m])}else{const m=$s(p.conversationId,`Duty cycle poll failed after retry: ${(g==null?void 0:g.message)??"Unknown error"}`,!1);n(x=>[...x,m])}},[n]),u=R.useCallback(async(p,d)=>{const g=p.trim().toLowerCase();if(g==="dutycycle_start"){l();let m=null,x=null;for(let k=0;k<2;k++)try{m=await et.requestTelemetry(d,"");break}catch(D){x=D instanceof Error?D:new Error("Unknown error"),k===0&&await new Promise(C=>setTimeout(C,2e3))}if(!m){const k=$s(d,`Failed to start duty cycle tracking after retry: ${(x==null?void 0:x.message)??"Unknown error"}`,!1);return n(D=>[...D,k]),!0}const A=Math.floor(Date.now()/1e3);s.current={startTime:A,uptime:m.uptime_seconds,txAirtime:m.airtime_seconds,rxAirtime:m.rx_airtime_seconds,sentFlood:m.sent_flood,sentDirect:m.sent_direct,recvFlood:m.recv_flood,recvDirect:m.recv_direct,conversationId:d};const _=$s(d,`Airtime/duty cycle statistics gathering begins at ${A}. Logs will follow every 5 minutes. To stop, run dutycycle_stop or navigate away from this conversation.`,!1);return n(k=>[...k,_]),i.current=window.setInterval(c,Dy),!0}if(g==="dutycycle_stop"){if(s.current&&s.current.conversationId===d){await c(),l();const m=$s(d,"Airtime/duty cycle statistics gathering stopped.",!1);n(x=>[...x,m])}else{const m=$s(d,"Duty cycle tracking is not active.",!1);n(x=>[...x,m])}return!0}return!1},[n,l,c]);return R.useEffect(()=>()=>{i.current!==null&&clearInterval(i.current)},[]),{handleAirtimeCommand:u,stopTracking:l}}function eu(n){if(n<60)return`${n}s`;const s=Math.floor(n/86400),i=Math.floor(n%86400/3600),l=Math.floor(n%3600/60);return s>0?i>0&&l>0?`${s}d${i}h${l}m`:i>0?`${s}d${i}h`:l>0?`${s}d${l}m`:`${s}d`:i>0?l>0?`${i}h${l}m`:`${i}h`:`${l}m`}function Ly(n){return["Telemetry",`Battery Voltage: ${n.battery_volts.toFixed(3)}V`,`Uptime: ${eu(n.uptime_seconds)}`,`TX Airtime: ${eu(n.airtime_seconds)}`,`RX Airtime: ${eu(n.rx_airtime_seconds)}`,"",`Noise Floor: ${n.noise_floor_dbm} dBm`,`Last RSSI: ${n.last_rssi_dbm} dBm`,`Last SNR: ${n.last_snr_db.toFixed(1)} dB`,"",`Packets: ${n.packets_received.toLocaleString()} rx / ${n.packets_sent.toLocaleString()} tx`,`Flood: ${n.recv_flood.toLocaleString()} rx / ${n.sent_flood.toLocaleString()} tx`,`Direct: ${n.recv_direct.toLocaleString()} rx / ${n.sent_direct.toLocaleString()} tx`,`Duplicates: ${n.flood_dups.toLocaleString()} flood / ${n.direct_dups.toLocaleString()} direct`,"",`TX Queue: ${n.tx_queue_len}`,`Debug Flags: ${n.full_events}`].join(`
`)}function My(n){if(n.length===0)return`Neighbors
No neighbors reported`;const s=[...n].sort((l,u)=>u.snr-l.snr),i=[`Neighbors (${s.length})`];for(const l of s){const u=l.name||l.pubkey_prefix,c=l.snr>=0?`+${l.snr.toFixed(1)}`:l.snr.toFixed(1);i.push(`${u}, ${c} dB [${ec(l.last_heard_seconds)} ago]`)}return i.join(`
No neighbors reported`;const s=[...n].sort((l,c)=>c.snr-l.snr),i=[`Neighbors (${s.length})`];for(const l of s){const c=l.name||l.pubkey_prefix,u=l.snr>=0?`+${l.snr.toFixed(1)}`:l.snr.toFixed(1);i.push(`${c}, ${u} dB [${eu(l.last_heard_seconds)} ago]`)}return i.join(`
`)}function Iy(n){if(n.length===0)return`ACL
No ACL entries`;const s=[`ACL (${n.length})`];for(const i of n){const l=i.name||i.pubkey_prefix;s.push(`${l}: ${i.permission_name}`)}return s.join(`
`)}function Wo(n,s,i,l=0){const u=Math.floor(Date.now()/1e3);return{id:-Date.now()-l,type:"PRIV",conversation_key:n,text:s,sender_timestamp:u,received_at:u,paths:null,txt_type:0,signature:null,outgoing:i,acked:1}}function Oy(n,s,i){const[l,u]=R.useState(!1),{handleAirtimeCommand:c,stopTracking:p}=Fy(i);R.useEffect(()=>{u(!1),p()},[n==null?void 0:n.id,p]);const d=R.useMemo(()=>{if(!n||n.type!=="contact")return!1;const x=s.find(A=>A.public_key===n.id);return(x==null?void 0:x.type)===td},[n,s]),g=R.useCallback(async x=>{if(!(!n||n.type!=="contact")&&d)try{const A=await et.requestTelemetry(n.id,x),_=Wo(n.id,Ly(A),!1,0),k=Wo(n.id,My(A.neighbors),!1,1),D=Wo(n.id,Iy(A.acl),!1,2);i(C=>[...C,_,k,D]),u(!0)}catch(A){const _=Wo(n.id,`Telemetry request failed: ${A instanceof Error?A.message:"Unknown error"}`,!1,0);i(k=>[...k,_])}},[n,d,i]),m=R.useCallback(async x=>{if(!n||n.type!=="contact"||!d||!l||await c(x,n.id))return;const _=Wo(n.id,`> ${x}`,!0,0);i(k=>[...k,_]);try{const k=await et.sendRepeaterCommand(n.id,x),D=Wo(n.id,k.response,!1,1);k.sender_timestamp&&(D.sender_timestamp=k.sender_timestamp),i(C=>[...C,D])}catch(k){const D=Wo(n.id,`Command failed: ${k instanceof Error?k.message:"Unknown error"}`,!1,1);i(C=>[...C,D])}},[n,d,l,i,c]);return{repeaterLoggedIn:l,activeContactIsRepeater:d,handleTelemetryRequest:g,handleRepeaterCommand:m}}const vx="remoteterm-lastMessageTime",yx="remoteterm-sortOrder";let Wc={};function im(n){Wc={...n}}function om(){return{...Wc}}function Jf(n,s){return Wc[n]=s,{...Wc}}function jr(n,s){return`${n}-${s}`}function jy(){try{const n=localStorage.getItem(vx);return n?JSON.parse(n):{}}catch{return{}}}function zy(){try{return localStorage.getItem(yx)==="alpha"?"alpha":"recent"}catch{return"recent"}}function sm(){try{localStorage.removeItem(vx),localStorage.removeItem(yx)}catch{}}function am(n,s){if(!s)return!1;const i=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`@\\[${i}\\]`,"i").test(n)}function Hy(n,s,i,l=null){const[u,c]=R.useState({}),[p,d]=R.useState({}),[g,m]=R.useState(om),x=R.useRef(l);R.useEffect(()=>{x.current=l},[l]);const A=R.useRef(new Set),_=R.useRef(new Set);R.useEffect(()=>{const S=n.filter(F=>!A.current.has(F.key)),B=s.filter(F=>F.public_key&&!_.current.has(F.public_key));if(S.length===0&&B.length===0)return;S.forEach(F=>A.current.add(F.key)),B.forEach(F=>_.current.add(F.public_key)),(async()=>{const F=[...S.map(M=>({type:"CHAN",conversation_key:M.key})),...B.map(M=>({type:"PRIV",conversation_key:M.public_key}))];if(F.length!==0)try{const H={};for(let V=0;V<F.length;V+=200){const Z=F.slice(V,V+200),K=await et.getMessagesBulk(Z,O0);Object.assign(H,K)}const O={},I={},X={};for(const V of S){const Z=H[`CHAN:${V.key}`]||[];if(Z.length>0){const K=jr("channel",V.key),W=V.last_read_at||0,ne=Z.filter(Y=>!Y.outgoing&&Y.received_at>W);ne.length>0&&(O[K]=ne.length,ne.some(Y=>am(Y.text,x.current))&&(I[K]=!0));const ce=Math.max(...Z.map(Y=>Y.received_at));X[K]=ce,Jf(K,ce)}}for(const V of B){const Z=H[`PRIV:${V.public_key}`]||[];if(Z.length>0){const K=jr("contact",V.public_key),W=V.last_read_at||0,ne=Z.filter(Y=>!Y.outgoing&&Y.received_at>W);ne.length>0&&(O[K]=ne.length,ne.some(Y=>am(Y.text,x.current))&&(I[K]=!0));const ce=Math.max(...Z.map(Y=>Y.received_at));X[K]=ce,Jf(K,ce)}}Object.keys(O).length>0&&c(V=>({...V,...O})),Object.keys(I).length>0&&d(V=>({...V,...I})),m(om())}catch(M){console.error("Failed to fetch messages bulk:",M)}})()},[n,s]),R.useEffect(()=>{if(i&&i.type!=="raw"&&i.type!=="map"){const S=jr(i.type,i.id);c(B=>{if(B[S]){const P={...B};return delete P[S],P}return B}),d(B=>{if(B[S]){const P={...B};return delete P[S],P}return B}),i.type==="channel"?et.markChannelRead(i.id).catch(B=>{console.error("Failed to mark channel as read on server:",B)}):i.type==="contact"&&et.markContactRead(i.id).catch(B=>{console.error("Failed to mark contact as read on server:",B)})}},[i]);const k=R.useCallback((S,B)=>{c(P=>({...P,[S]:(P[S]||0)+1})),B&&d(P=>({...P,[S]:!0}))},[]),D=R.useCallback(()=>{c({}),d({}),et.markAllRead().catch(S=>{console.error("Failed to mark all as read on server:",S)})},[]),C=R.useCallback(S=>{if(S.type==="raw"||S.type==="map")return;const B=jr(S.type,S.id);c(P=>{if(P[B]){const F={...P};return delete F[B],F}return P}),d(P=>{if(P[B]){const F={...P};return delete F[B],F}return P}),S.type==="channel"?et.markChannelRead(S.id).catch(P=>{console.error("Failed to mark channel as read on server:",P)}):S.type==="contact"&&et.markContactRead(S.id).catch(P=>{console.error("Failed to mark contact as read on server:",P)})},[]),w=R.useCallback(S=>{let B=null;if(S.type==="CHAN"&&S.conversation_key?B=jr("channel",S.conversation_key):S.type==="PRIV"&&S.conversation_key&&(B=jr("contact",S.conversation_key)),B){const P=S.received_at||Math.floor(Date.now()/1e3),F=Jf(B,P);m(F)}},[]);return{unreadCounts:u,mentions:p,lastMessageTimes:g,incrementUnread:k,markAllRead:D,markConversationRead:C,trackNewMessage:w}}var j0=Ax();const _x=aa(j0);function Vy(n){if(typeof document>"u")return;l Line truncated
`)}function Wo(n,s,i,l=0){const c=Math.floor(Date.now()/1e3);return{id:-Date.now()-l,type:"PRIV",conversation_key:n,text:s,sender_timestamp:c,received_at:c,paths:null,txt_type:0,signature:null,outgoing:i,acked:1}}function Oy(n,s,i){const[l,c]=R.useState(!1),{handleAirtimeCommand:u,stopTracking:p}=Fy(i);R.useEffect(()=>{c(!1),p()},[n==null?void 0:n.id,p]);const d=R.useMemo(()=>{if(!n||n.type!=="contact")return!1;const x=s.find(A=>A.public_key===n.id);return(x==null?void 0:x.type)===td},[n,s]),g=R.useCallback(async x=>{if(!(!n||n.type!=="contact")&&d)try{const A=await et.requestTelemetry(n.id,x),_=Wo(n.id,Ly(A),!1,0),k=Wo(n.id,My(A.neighbors),!1,1),D=Wo(n.id,Iy(A.acl),!1,2);i(C=>[...C,_,k,D]),c(!0)}catch(A){const _=Wo(n.id,`Telemetry request failed: ${A instanceof Error?A.message:"Unknown error"}`,!1,0);i(k=>[...k,_])}},[n,d,i]),m=R.useCallback(async x=>{if(!n||n.type!=="contact"||!d||!l||await u(x,n.id))return;const _=Wo(n.id,`> ${x}`,!0,0);i(k=>[...k,_]);try{const k=await et.sendRepeaterCommand(n.id,x),D=Wo(n.id,k.response,!1,1);k.sender_timestamp&&(D.sender_timestamp=k.sender_timestamp),i(C=>[...C,D])}catch(k){const D=Wo(n.id,`Command failed: ${k instanceof Error?k.message:"Unknown error"}`,!1,1);i(C=>[...C,D])}},[n,d,l,i,u]);return{repeaterLoggedIn:l,activeContactIsRepeater:d,handleTelemetryRequest:g,handleRepeaterCommand:m}}const vx="remoteterm-lastMessageTime",yx="remoteterm-sortOrder";let Wu={};function im(n){Wu={...n}}function om(){return{...Wu}}function Jf(n,s){return Wu[n]=s,{...Wu}}function jr(n,s){return`${n}-${s}`}function jy(){try{const n=localStorage.getItem(vx);return n?JSON.parse(n):{}}catch{return{}}}function zy(){try{return localStorage.getItem(yx)==="alpha"?"alpha":"recent"}catch{return"recent"}}function sm(){try{localStorage.removeItem(vx),localStorage.removeItem(yx)}catch{}}function am(n,s){if(!s)return!1;const i=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`@\\[${i}\\]`,"i").test(n)}function Hy(n,s,i,l=null){const[c,u]=R.useState({}),[p,d]=R.useState({}),[g,m]=R.useState(om),x=R.useRef(l);R.useEffect(()=>{x.current=l},[l]);const A=R.useRef(new Set),_=R.useRef(new Set);R.useEffect(()=>{const S=n.filter(F=>!A.current.has(F.key)),B=s.filter(F=>F.public_key&&!_.current.has(F.public_key));if(S.length===0&&B.length===0)return;S.forEach(F=>A.current.add(F.key)),B.forEach(F=>_.current.add(F.public_key)),(async()=>{const F=[...S.map(M=>({type:"CHAN",conversation_key:M.key})),...B.map(M=>({type:"PRIV",conversation_key:M.public_key}))];if(F.length!==0)try{const z={};for(let V=0;V<F.length;V+=200){const W=F.slice(V,V+200),Q=await et.getMessagesBulk(W,O0);Object.assign(z,Q)}const H={},I={},K={};for(const V of S){const W=z[`CHAN:${V.key}`]||[];if(W.length>0){const Q=jr("channel",V.key),U=V.last_read_at||0,te=W.filter(X=>!X.outgoing&&X.received_at>U);te.length>0&&(H[Q]=te.length,te.some(X=>am(X.text,x.current))&&(I[Q]=!0));const ce=Math.max(...W.map(X=>X.received_at));K[Q]=ce,Jf(Q,ce)}}for(const V of B){const W=z[`PRIV:${V.public_key}`]||[];if(W.length>0){const Q=jr("contact",V.public_key),U=V.last_read_at||0,te=W.filter(X=>!X.outgoing&&X.received_at>U);te.length>0&&(H[Q]=te.length,te.some(X=>am(X.text,x.current))&&(I[Q]=!0));const ce=Math.max(...W.map(X=>X.received_at));K[Q]=ce,Jf(Q,ce)}}Object.keys(H).length>0&&u(V=>({...V,...H})),Object.keys(I).length>0&&d(V=>({...V,...I})),m(om())}catch(M){console.error("Failed to fetch messages bulk:",M)}})()},[n,s]),R.useEffect(()=>{if(i&&i.type!=="raw"&&i.type!=="map"){const S=jr(i.type,i.id);u(B=>{if(B[S]){const P={...B};return delete P[S],P}return B}),d(B=>{if(B[S]){const P={...B};return delete P[S],P}return B}),i.type==="channel"?et.markChannelRead(i.id).catch(B=>{console.error("Failed to mark channel as read on server:",B)}):i.type==="contact"&&et.markContactRead(i.id).catch(B=>{console.error("Failed to mark contact as read on server:",B)})}},[i]);const k=R.useCallback((S,B)=>{u(P=>({...P,[S]:(P[S]||0)+1})),B&&d(P=>({...P,[S]:!0}))},[]),D=R.useCallback(()=>{u({}),d({}),et.markAllRead().catch(S=>{console.error("Failed to mark all as read on server:",S)})},[]),C=R.useCallback(S=>{if(S.type==="raw"||S.type==="map")return;const B=jr(S.type,S.id);u(P=>{if(P[B]){const F={...P};return delete F[B],F}return P}),d(P=>{if(P[B]){const F={...P};return delete F[B],F}return P}),S.type==="channel"?et.markChannelRead(S.id).catch(P=>{console.error("Failed to mark channel as read on server:",P)}):S.type==="contact"&&et.markContactRead(S.id).catch(P=>{console.error("Failed to mark contact as read on server:",P)})},[]),w=R.useCallback(S=>{let B=null;if(S.type==="CHAN"&&S.conversation_key?B=jr("channel",S.conversation_key):S.type==="PRIV"&&S.conversation_key&&(B=jr("contact",S.conversation_key)),B){const P=S.received_at||Math.floor(Date.now()/1e3),F=Jf(B,P);m(F)}},[]);return{unreadCounts:c,mentions:p,lastMessageTimes:g,incrementUnread:k,markAllRead:D,markConversationRead:C,trackNewMessage:w}}var j0=Ax();const _x=aa(j0);function Vy(n){if(typeof document>"u")return;l Line truncated
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const x_=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),A_=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,i,l)=>l?l.toUpperCase():i.toLowerCase()),cm=n=>{const s=A_(n);return s.charAt(0).toUpperCase()+s.slice(1)},wx=(...n)=>n.filter((s,i,l)=>!!s&&s.trim()!==""&&l.indexOf(s)===i).join(" ").trim(),v_=n=>{for(const s in n)if(s.startsWith("aria-")||s==="role"||s==="title")return!0};/**
*/const x_=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),A_=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,i,l)=>l?l.toUpperCase():i.toLowerCase()),um=n=>{const s=A_(n);return s.charAt(0).toUpperCase()+s.slice(1)},wx=(...n)=>n.filter((s,i,l)=>!!s&&s.trim()!==""&&l.indexOf(s)===i).join(" ").trim(),v_=n=>{for(const s in n)if(s.startsWith("aria-")||s==="role"||s==="title")return!0};/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -58,12 +58,12 @@ No ACL entries`;const s=[`ACL (${n.length})`];for(const i of n){const l=i.name||
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const __=R.forwardRef(({color:n="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:u="",children:c,iconNode:p,...d},g)=>R.createElement("svg",{ref:g,...y_,width:s,height:s,stroke:n,strokeWidth:l?Number(i)*24/Number(s):i,className:wx("lucide",u),...!c&&!v_(d)&&{"aria-hidden":"true"},...d},[...p.map(([m,x])=>R.createElement(m,x)),...Array.isArray(c)?c:[c]]));/**
*/const __=R.forwardRef(({color:n="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:c="",children:u,iconNode:p,...d},g)=>R.createElement("svg",{ref:g,...y_,width:s,height:s,stroke:n,strokeWidth:l?Number(i)*24/Number(s):i,className:wx("lucide",c),...!u&&!v_(d)&&{"aria-hidden":"true"},...d},[...p.map(([m,x])=>R.createElement(m,x)),...Array.isArray(u)?u:[u]]));/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const z0=(n,s)=>{const i=R.forwardRef(({className:l,...u},c)=>R.createElement(__,{ref:c,iconNode:s,className:wx(`lucide-${x_(cm(n))}`,`lucide-${n}`,l),...u}));return i.displayName=cm(n),i};/**
*/const z0=(n,s)=>{const i=R.forwardRef(({className:l,...c},u)=>R.createElement(__,{ref:u,iconNode:s,className:wx(`lucide-${x_(um(n))}`,`lucide-${n}`,l),...c}));return i.displayName=um(n),i};/**
* @license lucide-react v0.562.0 - ISC
*
* This source code is licensed under the ISC license.
@@ -78,7 +78,7 @@ No ACL entries`;const s=[`ACL (${n.length})`];for(const i of n){const l=i.name||
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const k_=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],bx=z0("x",k_);function S_({health:n,config:s,onSettingsClick:i,onMenuClick:l}){const u=(n==null?void 0:n.radio_connected)??!1,[c,p]=R.useState(!1),d=async()=>{p(!0);try{const g=await et.reconnectRadio();g.connected&&At.success("Reconnected",{description:g.message})}catch(g){At.error("Reconnection failed",{description:g instanceof Error?g.message:"Check radio connection and power"})}finally{p(!1)}};return b.jsxs("div",{className:"flex items-center gap-4 px-4 py-2 bg-[#252525] border-b border-[#333] text-xs",children:[l&&b.jsx("button",{onClick:l,className:"md:hidden p-1 bg-transparent border-none text-[#e0e0e0] cursor-pointer","aria-label":"Open menu",children:b.jsx(E_,{className:"h-5 w-5"})}),b.jsx("h1",{className:"text-base font-semibold mr-auto",children:"RemoteTerm"}),b.jsxs("div",{className:"flex items-center gap-1 text-[#888]",children:[b.jsx("div",{className:`w-2 h-2 rounded-full ${u?"bg-[#4caf50]":"bg-[#666]"}`}),b.jsx("span",{className:"hidden lg:inline text-[#e0e0e0]",children:u?"Connected":"Disconnected"})]}),s&&b.jsxs("div",{className:"hidden lg:flex items-center gap-2 text-[#888]",children:[b.jsx("span",{className:"text-[#e0e0e0]",children:s.name||"Unnamed"}),b.jsx("span",{className:"font-mono text-[#888] cursor-pointer hover:text-[#4a9eff]",onClick:()=>{navigator.clipboard.writeText(s.public_key),At.success("Public key copied!")},title:"Click to copy public key",children:s.public_key.toLowerCase()})]}),!u&&b.jsx("button",{onClick:d,disabled:c,className:"px-3 py-1 bg-[#4a3000] border border-[#6b4500] text-[#ffa500] rounded text-xs cursor-pointer hover:bg-[#5a3a00] disabled:opacity-50 disabled:cursor-not-allowed",children:c?"Reconnecting...":"Reconnect"}),b.jsxs("button",{onClick:i,className:"px-3 py-1 bg-[#333] border border-[#444] text-[#e0e0e0] rounded text-xs cursor-pointer hover:bg-[#444]",children:[b.jsx("span",{role:"img","aria-label":"Settings",children:"🔧"})," ","Radio & Config"]})]})}const B_=12;function P_(n){return n.slice(0,B_)}function Ti(n,s){return n||P_(s)}const na=2,T_={text:"🛜",background:"#444444",textColor:"#ffffff"};function D_(n){let s=0;for(let i=0;i<n.length;i++){const l=n.charCodeAt(i);s=(s<<5)-s+l,s=s&s}return Math.abs(s)}const R_=/[\u{1F300}-\u{1F9FF}]|[\u{2600}-\u{26FF}]|[\u{2700}-\u{27BF}]|[\u{1F600}-\u{1F64F}]|[\u{1F680}-\u{1F6FF}]|[\u{1F1E0}-\u{1F1FF}]/u;function N_(n,s){if(!n)return s.slice(0,2).toUpperCase();const i=n.match(R_);if(i)return i[0];const l=n.match(/[a-zA-Z]/g);if(!l||l.length===0)return s.slice(0,2).toUpperCase();const u=n.indexOf(" ");if(u!==-1){const c=l[0],p=n.slice(u+1).match(/[a-zA-Z]/);if(p)return(c+p[0]).toUpperCase()}return l[0].toUpperCase()}function F_(n){const s=D_(n),i=s%360,l=50+(s>>8)%30,u=35+(s>>16)%20,c=`hsl(${i}, ${l}%, ${u}%)`,p=u<45?"#ffffff":"#000000";return{background:c,text:p}}function L_(n,s,i){if(i===na)return T_;const l=N_(n,s),u=F_(s);return{text:l,background:u.background,textColor:u.text}}function A0({name:n,publicKey:s,size:i=28,contactType:l}){const u=L_(n,s,l);return b.jsx("div",{className:"flex items-center justify-center rounded-full font-semibold flex-shrink-0 select-none",style:{backgroundColor:u.background,color:u.textColor,width:i,height:i,fontSize:i*.45},children:u.text})}const Cx="remoteterm-favorites";function es(n,s,i){return n.some(l=>l.type===s&&l.id===i)}function M_(){try{const n=localStorage.getItem(Cx);return n?JSON.parse(n):[]}catch{return[]}}function dm(){try{localStorage.removeItem(Cx)}catch{}}function Ex(n){var s,i,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(s=0;s<u;s++)n[s]&&(i=Ex(n[s]))&&(l&&(l+=" "),l+=i)}else for(i in n)n[i]&&(l&&(l+=" "),l+=i);return l}function kx(){for(var n,s,i=0,l="",u=arguments.length;i<u;i++)(n=arguments[i])&&(s=Ex(n))&&(l&&(l+=" "),l+=s);return l}const I_=(n,s)=>{const i=new Array(n.length+s.length);for(let l=0;l<n.length;l++)i[l]=n[l];for(let l=0;l<s.length;l++)i[n.length+l]=s[l];return i},O_=(n,s)=>({classGroupId:n,validator:s}),Sx=(n=new Map,s=null,i)=>({nextPart:n,validators:s,classGroupId:i}),qc="-",fm=[],j_="arbitrary..",z_=n=>{const s=V_(n),{conflictingClassGroups:i,conflictingClassGroupModifiers:l}=n;return{getClassGroupId:p=>{if(p.startsWith("[")&&p.endsWith("]"))return H_(p);const d=p.split(qc),g=d[0]===""&&d.length>1?1:0;return Bx(d,g,s)},getConflictingClassGroupIds:(p,d)=>{if(d){const g=l[p],m=i[p];return g?m?I_(m,g):g:m||fm}return i[p]||fm}}},Bx=(n,s,i)=>{if(n.length-s===0)return i.classGroupId;const u=n[s],c=i.nextPart.get(u);if(c){const m=Bx(n,s+1,c);if(m)return m}const p=i.validators;if(p===null)return;const d=s===0?n.join(qc):n.slice(s).join(qc),g=p.length;for(let m=0;m<g;m++){const x=p[m];if(x.validator(d))return x.classGroupId}},H_=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const s=n.slice(1,-1),i=s.indexOf(":"),l=s.slice(0,i);return l?j_+l:void 0})(),V_=n=>{const{theme:s,classGroLine truncated
*/const k_=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],bx=z0("x",k_);function S_({health:n,config:s,onSettingsClick:i,onMenuClick:l}){const c=(n==null?void 0:n.radio_connected)??!1,[u,p]=R.useState(!1),d=async()=>{p(!0);try{const g=await et.reconnectRadio();g.connected&&At.success("Reconnected",{description:g.message})}catch(g){At.error("Reconnection failed",{description:g instanceof Error?g.message:"Check radio connection and power"})}finally{p(!1)}};return b.jsxs("div",{className:"flex items-center gap-4 px-4 py-2 bg-[#252525] border-b border-[#333] text-xs",children:[l&&b.jsx("button",{onClick:l,className:"md:hidden p-1 bg-transparent border-none text-[#e0e0e0] cursor-pointer","aria-label":"Open menu",children:b.jsx(E_,{className:"h-5 w-5"})}),b.jsx("h1",{className:"text-base font-semibold mr-auto",children:"RemoteTerm"}),b.jsxs("div",{className:"flex items-center gap-1 text-[#888]",children:[b.jsx("div",{className:`w-2 h-2 rounded-full ${c?"bg-[#4caf50]":"bg-[#666]"}`}),b.jsx("span",{className:"hidden lg:inline text-[#e0e0e0]",children:c?"Connected":"Disconnected"})]}),s&&b.jsxs("div",{className:"hidden lg:flex items-center gap-2 text-[#888]",children:[b.jsx("span",{className:"text-[#e0e0e0]",children:s.name||"Unnamed"}),b.jsx("span",{className:"font-mono text-[#888] cursor-pointer hover:text-[#4a9eff]",onClick:()=>{navigator.clipboard.writeText(s.public_key),At.success("Public key copied!")},title:"Click to copy public key",children:s.public_key.toLowerCase()})]}),!c&&b.jsx("button",{onClick:d,disabled:u,className:"px-3 py-1 bg-[#4a3000] border border-[#6b4500] text-[#ffa500] rounded text-xs cursor-pointer hover:bg-[#5a3a00] disabled:opacity-50 disabled:cursor-not-allowed",children:u?"Reconnecting...":"Reconnect"}),b.jsxs("button",{onClick:i,className:"px-3 py-1 bg-[#333] border border-[#444] text-[#e0e0e0] rounded text-xs cursor-pointer hover:bg-[#444]",children:[b.jsx("span",{role:"img","aria-label":"Settings",children:"🔧"})," ","Radio & Config"]})]})}const B_=12;function P_(n){return n.slice(0,B_)}function Ti(n,s){return n||P_(s)}const na=2,T_={text:"🛜",background:"#444444",textColor:"#ffffff"};function D_(n){let s=0;for(let i=0;i<n.length;i++){const l=n.charCodeAt(i);s=(s<<5)-s+l,s=s&s}return Math.abs(s)}const R_=/[\u{1F300}-\u{1F9FF}]|[\u{2600}-\u{26FF}]|[\u{2700}-\u{27BF}]|[\u{1F600}-\u{1F64F}]|[\u{1F680}-\u{1F6FF}]|[\u{1F1E0}-\u{1F1FF}]/u;function N_(n,s){if(!n)return s.slice(0,2).toUpperCase();const i=n.match(R_);if(i)return i[0];const l=n.match(/[a-zA-Z]/g);if(!l||l.length===0)return s.slice(0,2).toUpperCase();const c=n.indexOf(" ");if(c!==-1){const u=l[0],p=n.slice(c+1).match(/[a-zA-Z]/);if(p)return(u+p[0]).toUpperCase()}return l[0].toUpperCase()}function F_(n){const s=D_(n),i=s%360,l=50+(s>>8)%30,c=35+(s>>16)%20,u=`hsl(${i}, ${l}%, ${c}%)`,p=c<45?"#ffffff":"#000000";return{background:u,text:p}}function L_(n,s,i){if(i===na)return T_;const l=N_(n,s),c=F_(s);return{text:l,background:c.background,textColor:c.text}}function A0({name:n,publicKey:s,size:i=28,contactType:l}){const c=L_(n,s,l);return b.jsx("div",{className:"flex items-center justify-center rounded-full font-semibold flex-shrink-0 select-none",style:{backgroundColor:c.background,color:c.textColor,width:i,height:i,fontSize:i*.45},children:c.text})}const Cx="remoteterm-favorites";function es(n,s,i){return n.some(l=>l.type===s&&l.id===i)}function M_(){try{const n=localStorage.getItem(Cx);return n?JSON.parse(n):[]}catch{return[]}}function dm(){try{localStorage.removeItem(Cx)}catch{}}function Ex(n){var s,i,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(s=0;s<c;s++)n[s]&&(i=Ex(n[s]))&&(l&&(l+=" "),l+=i)}else for(i in n)n[i]&&(l&&(l+=" "),l+=i);return l}function kx(){for(var n,s,i=0,l="",c=arguments.length;i<c;i++)(n=arguments[i])&&(s=Ex(n))&&(l&&(l+=" "),l+=s);return l}const I_=(n,s)=>{const i=new Array(n.length+s.length);for(let l=0;l<n.length;l++)i[l]=n[l];for(let l=0;l<s.length;l++)i[n.length+l]=s[l];return i},O_=(n,s)=>({classGroupId:n,validator:s}),Sx=(n=new Map,s=null,i)=>({nextPart:n,validators:s,classGroupId:i}),qu="-",fm=[],j_="arbitrary..",z_=n=>{const s=V_(n),{conflictingClassGroups:i,conflictingClassGroupModifiers:l}=n;return{getClassGroupId:p=>{if(p.startsWith("[")&&p.endsWith("]"))return H_(p);const d=p.split(qu),g=d[0]===""&&d.length>1?1:0;return Bx(d,g,s)},getConflictingClassGroupIds:(p,d)=>{if(d){const g=l[p],m=i[p];return g?m?I_(m,g):g:m||fm}return i[p]||fm}}},Bx=(n,s,i)=>{if(n.length-s===0)return i.classGroupId;const c=n[s],u=i.nextPart.get(c);if(u){const m=Bx(n,s+1,u);if(m)return m}const p=i.validators;if(p===null)return;const d=s===0?n.join(qu):n.slice(s).join(qu),g=p.length;for(let m=0;m<g;m++){const x=p[m];if(x.validator(d))return x.classGroupId}},H_=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const s=n.slice(1,-1),i=s.indexOf(":"),l=s.slice(0,i);return l?j_+l:void 0})(),V_=n=>{const{theme:s,classGroLine truncated
.`.concat(Cw,` {
overflow: hidden `).concat(l,`;
padding-right: `).concat(d,"px ").concat(l,`;
@@ -87,8 +87,8 @@ No ACL entries`;const s=[`ACL (${n.length})`];for(const i of n){const l=i.name||
overflow: hidden `).concat(l,`;
overscroll-behavior: contain;
`).concat([s&&"position: relative ".concat(l,";"),i==="margin"&&`
padding-left: `.concat(u,`px;
padding-top: `).concat(c,`px;
padding-left: `.concat(c,`px;
padding-top: `).concat(u,`px;
padding-right: `).concat(p,`px;
margin-left:0;
margin-top:0;
@@ -96,34 +96,34 @@ No ACL entries`;const s=[`ACL (${n.length})`];for(const i of n){const l=i.name||
`),i==="padding"&&"padding-right: ".concat(d,"px ").concat(l,";")].filter(Boolean).join(""),`
}
.`).concat(nc,` {
.`).concat(nu,` {
right: `).concat(d,"px ").concat(l,`;
}
.`).concat(rc,` {
.`).concat(ru,` {
margin-right: `).concat(d,"px ").concat(l,`;
}
.`).concat(nc," .").concat(nc,` {
.`).concat(nu," .").concat(nu,` {
right: 0 `).concat(l,`;
}
.`).concat(rc," .").concat(rc,` {
.`).concat(ru," .").concat(ru,` {
margin-right: 0 `).concat(l,`;
}
body[`).concat(ea,`] {
`).concat(Ew,": ").concat(d,`px;
}
`)},Pm=function(){var n=parseInt(document.body.getAttribute(ea)||"0",10);return isFinite(n)?n:0},Zw=function(){R.useEffect(function(){return document.body.setAttribute(ea,(Pm()+1).toString()),function(){var n=Pm()-1;n<=0?document.body.removeAttribute(ea):document.body.setAttribute(ea,n.toString())}},[])},Ww=function(n){var s=n.noRelative,i=n.noImportant,l=n.gapMode,u=l===void 0?"margin":l;Zw();var c=R.useMemo(function(){return Hw(u)},[u]);return R.createElement(Vw,{styles:Uw(c,!s,u,i?"":"!important")})},_0=!1;if(typeof window<"u")try{var Qu=Object.defineProperty({},"passive",{get:function(){return _0=!0,!0}});window.addEventListener("test",Qu,Qu),window.removeEventListener("test",Qu,Qu)}catch{_0=!1}var Qs=_0?{passive:!1}:!1,qw=function(n){return n.tagName==="TEXTAREA"},Qx=function(n,s){if(!(n instanceof Element))return!1;var i=window.getComputedStyle(n);return i[s]!=="hidden"&&!(i.overflowY===i.overflowX&&!qw(n)&&i[s]==="visible")},Gw=function(n){return Qx(n,"overflowY")},$w=function(n){return Qx(n,"overflowX")},Tm=function(n,s){var i=s.ownerDocument,l=s;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var u=Yx(n,l);if(u){var c=Xx(n,l),p=c[1],d=c[2];if(p>d)return!0}l=l.parentNode}while(l&&l!==i.body);return!1},Kw=function(n){var s=n.scrollTop,i=n.scrollHeight,l=n.clientHeight;return[s,i,l]},Qw=function(n){var s=n.scrollLeft,i=n.scrollWidth,l=n.clientWidth;return[s,i,l]},Yx=function(n,s){return n==="v"?Gw(s):$w(s)},Xx=function(n,s){return n==="v"?Kw(s):Qw(s)},Yw=function(n,s){return n==="h"&&s==="rtl"?-1:1},Xw=function(n,s,i,l,u){var c=Yw(n,window.getComputedStyle(s).direction),p=c*l,d=i.target,g=s.contains(d),m=!1,x=p>0,A=0,_=0;do{if(!d)break;var k=Xx(n,d),D=k[0],C=k[1],w=k[2],S=C-w-c*D;(D||S)&&Yx(n,d)&&(A+=S,_+=D);var B=d.parentNode;d=B&&B.nodeType===Node.DOCUMENT_FRAGMENT_NODE?B.host:B}while(!g&&d!==document.body||g&&(s.contains(d)||s===d));return(x&&Math.abs(A)<1||!x&&Math.abs(_)<1)&&(m=!0),m},Yu=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Dm=function(n){return[n.deltaX,n.deltaY]},Rm=function(n){return n&&"current"in n?n.current:n},Jw=function(n,s){return n[0]===s[0]&&n[1]===s[1]},e2=function(n){return`
`)},Pm=function(){var n=parseInt(document.body.getAttribute(ea)||"0",10);return isFinite(n)?n:0},Zw=function(){R.useEffect(function(){return document.body.setAttribute(ea,(Pm()+1).toString()),function(){var n=Pm()-1;n<=0?document.body.removeAttribute(ea):document.body.setAttribute(ea,n.toString())}},[])},Ww=function(n){var s=n.noRelative,i=n.noImportant,l=n.gapMode,c=l===void 0?"margin":l;Zw();var u=R.useMemo(function(){return Hw(c)},[c]);return R.createElement(Vw,{styles:Uw(u,!s,c,i?"":"!important")})},_0=!1;if(typeof window<"u")try{var Qc=Object.defineProperty({},"passive",{get:function(){return _0=!0,!0}});window.addEventListener("test",Qc,Qc),window.removeEventListener("test",Qc,Qc)}catch{_0=!1}var Qs=_0?{passive:!1}:!1,qw=function(n){return n.tagName==="TEXTAREA"},Qx=function(n,s){if(!(n instanceof Element))return!1;var i=window.getComputedStyle(n);return i[s]!=="hidden"&&!(i.overflowY===i.overflowX&&!qw(n)&&i[s]==="visible")},Gw=function(n){return Qx(n,"overflowY")},$w=function(n){return Qx(n,"overflowX")},Tm=function(n,s){var i=s.ownerDocument,l=s;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var c=Yx(n,l);if(c){var u=Xx(n,l),p=u[1],d=u[2];if(p>d)return!0}l=l.parentNode}while(l&&l!==i.body);return!1},Kw=function(n){var s=n.scrollTop,i=n.scrollHeight,l=n.clientHeight;return[s,i,l]},Qw=function(n){var s=n.scrollLeft,i=n.scrollWidth,l=n.clientWidth;return[s,i,l]},Yx=function(n,s){return n==="v"?Gw(s):$w(s)},Xx=function(n,s){return n==="v"?Kw(s):Qw(s)},Yw=function(n,s){return n==="h"&&s==="rtl"?-1:1},Xw=function(n,s,i,l,c){var u=Yw(n,window.getComputedStyle(s).direction),p=u*l,d=i.target,g=s.contains(d),m=!1,x=p>0,A=0,_=0;do{if(!d)break;var k=Xx(n,d),D=k[0],C=k[1],w=k[2],S=C-w-u*D;(D||S)&&Yx(n,d)&&(A+=S,_+=D);var B=d.parentNode;d=B&&B.nodeType===Node.DOCUMENT_FRAGMENT_NODE?B.host:B}while(!g&&d!==document.body||g&&(s.contains(d)||s===d));return(x&&Math.abs(A)<1||!x&&Math.abs(_)<1)&&(m=!0),m},Yc=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Dm=function(n){return[n.deltaX,n.deltaY]},Rm=function(n){return n&&"current"in n?n.current:n},Jw=function(n,s){return n[0]===s[0]&&n[1]===s[1]},e2=function(n){return`
.block-interactivity-`.concat(n,` {pointer-events: none;}
.allow-interactivity-`).concat(n,` {pointer-events: all;}
`)},t2=0,Ys=[];function n2(n){var s=R.useRef([]),i=R.useRef([0,0]),l=R.useRef(),u=R.useState(t2++)[0],c=R.useState(Kx)[0],p=R.useRef(n);R.useEffect(function(){p.current=n},[n]),R.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(u));var C=bw([n.lockRef.current],(n.shards||[]).map(Rm),!0).filter(Boolean);return C.forEach(function(w){return w.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),C.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(u))})}}},[n.inert,n.lockRef.current,n.shards]);var d=R.useCallback(function(C,w){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!p.current.allowPinchZoom;var S=Yu(C),B=i.current,P="deltaX"in C?C.deltaX:B[0]-S[0],F="deltaY"in C?C.deltaY:B[1]-S[1],M,H=C.target,O=Math.abs(P)>Math.abs(F)?"h":"v";if("touches"in C&&O==="h"&&H.type==="range")return!1;var I=window.getSelection(),X=I&&I.anchorNode,V=X?X===H||X.contains(H):!1;if(V)return!1;var Z=Tm(O,H);if(!Z)return!0;if(Z?M=O:(M=O==="v"?"h":"v",Z=Tm(O,H)),!Z)return!1;if(!l.current&&"changedTouches"in C&&(P||F)&&(l.current=M),!M)return!0;var K=l.current||M;return Xw(K,w,C,K==="h"?P:F)},[]),g=R.useCallback(function(C){var w=C;if(!(!Ys.length||Ys[Ys.length-1]!==c)){var S="deltaY"in w?Dm(w):Yu(w),B=s.current.filter(function(M){return M.name===w.type&&(M.target===w.target||w.target===M.shadowParent)&&Jw(M.delta,S)})[0];if(B&&B.should){w.cancelable&&w.preventDefault();return}if(!B){var P=(p.current.shards||[]).map(Rm).filter(Boolean).filter(function(M){return M.contains(w.target)}),F=P.length>0?d(w,P[0]):!p.current.noIsolation;F&&w.cancelable&&w.preventDefault()}}},[]),m=R.useCallback(function(C,w,S,B){var P={name:C,delta:w,target:S,should:B,shadowParent:r2(S)};s.current.push(P),setTimeout(function(){s.current=s.current.filter(function(F){return F!==P})},1)},[]),x=R.useCallback(function(C){i.current=Yu(C),l.current=void 0},[]),A=R.useCallback(function(C){m(C.type,Dm(C),C.target,d(C,n.lockRef.current))},[]),_=R.useCallback(function(C){m(C.type,Yu(C),C.target,d(C,n.lockRef.current))},[]);R.useEffect(function(){return Ys.push(c),n.setCallbacks({onScrollCapture:A,onWheelCapture:A,onTouchMoveCapture:_}),document.addEventListener("wheel",g,Qs),document.addEventListener("touchmove",g,Qs),document.addEventListener("touchstart",x,Qs),function(){Ys=Ys.filter(function(C){return C!==c}),document.removeEventListener("wheel",g,Qs),document.removeEventListener("touchmove",g,Qs),document.removeEventListener("touchstart",x,Qs)}},[]);var k=n.removeScrollBar,D=n.inert;return R.createElement(R.Fragment,null,D?R.createElement(c,{styles:e2(u)}):null,k?R.createElement(Ww,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function r2(n){for(var s=null;n!==null;)n instanceof ShadowRoot&&(s=n.host,n=n.host),n=n.parentNode;return s}const i2=Rw($x,n2);var Jx=R.forwardRef(function(n,s){return R.createElement(rd,ii({},n,{ref:s,sideCar:i2}))});Jx.classNames=rd.classNames;var o2=function(n){if(typeof document>"u")return null;var s=Array.isArray(n)?n[0]:n;return s.ownerDocument.body},Xs=new WeakMap,Xu=new WeakMap,Ju={},l0=0,eA=function(n){return n&&(n.host||eA(n.parentNode))},s2=function(n,s){return s.map(function(i){if(n.contains(i))return i;var l=eA(i);return l&&n.contains(l)?l:(console.error("aria-hidden",i,"in not contained inside",n,". Doing nothing"),null)}).filter(function(i){return!!i})},a2=function(n,s,i,l){var u=s2(s,Array.isArray(n)?n:[n]);Ju[i]||(Ju[i]=new WeakMap);var c=Ju[i],p=[],d=new Set,g=new Set(u),m=function(A){!A||d.has(A)||(d.add(A),m(A.parentNode))};u.forEach(m);var x=function(A){!A||g.has(A)||Array.prototype.forEach.call(A.children,function(_){if(d.has(_))x(_);else try{var k=_.getAttribute(l),D=k!==null&&k!=="false",C=(Xs.get(_)||0)+1,w=(c.get(_)||0)+1;Xs.set(_,C),c.set(_,w),p.push(_),C===1&&D&&Xu.set(_,!0),w===1&&_.setAttribute(i,"true"),D||_.setAttribute(l,"true")}catch(S){console.error("aria-hidden: cannot operate on ",_,S)}})};return x(s),d.clear(),l0++,function(){p.forEach(function(A){var _=Xs.get(A)-1,k=c.get(A)-1;Xs.set(A,_),c.set(A,k),_||(Xu.has(A)||A.removeAttribute(l),Xu.delete(A)),k||A.removeAttribute(i)}),l0--,l0||(Xs=new WeakMap,Xs=new WeakMap,Xu=new WeakMap,Ju={})}},l2=function(n,s,i){i===void 0&&(i="data-aria-hidden");var l=Array.from(Array.isArray(n)?n:[n]),u=o2(n);return u?(l.push.apply(l,Array.from(u.querySelectorAll("[aria-live], script"))),a2(l,u,i,"aria-hidden")):function(){return null}};function u2(n){const s=c2(n),i=R.forwardRef((l,u)=>{const{children:c,...p}=l,d=R.Children.toArray(c),g=d.find(f2);if(g){const m=g.props.children,x=d.map(A=>A===g?R.Children.count(m)>1?R.Children.only(null):R.isValidElement(m)?m.props.children:null:A);return b.jsx(s,{...p,ref:u,children:R.isValidElement(m)?R.cloneElement(m,void 0,x):null})}return b.jsx(s,{...p,ref:u,children:c})});return i.displayName=`${n}.Slot`,i}function c2(n){const s=R.forwardRef((i,l)=>{const{children:u Line truncated
`)},t2=0,Ys=[];function n2(n){var s=R.useRef([]),i=R.useRef([0,0]),l=R.useRef(),c=R.useState(t2++)[0],u=R.useState(Kx)[0],p=R.useRef(n);R.useEffect(function(){p.current=n},[n]),R.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(c));var C=bw([n.lockRef.current],(n.shards||[]).map(Rm),!0).filter(Boolean);return C.forEach(function(w){return w.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),C.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(c))})}}},[n.inert,n.lockRef.current,n.shards]);var d=R.useCallback(function(C,w){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!p.current.allowPinchZoom;var S=Yc(C),B=i.current,P="deltaX"in C?C.deltaX:B[0]-S[0],F="deltaY"in C?C.deltaY:B[1]-S[1],M,z=C.target,H=Math.abs(P)>Math.abs(F)?"h":"v";if("touches"in C&&H==="h"&&z.type==="range")return!1;var I=window.getSelection(),K=I&&I.anchorNode,V=K?K===z||K.contains(z):!1;if(V)return!1;var W=Tm(H,z);if(!W)return!0;if(W?M=H:(M=H==="v"?"h":"v",W=Tm(H,z)),!W)return!1;if(!l.current&&"changedTouches"in C&&(P||F)&&(l.current=M),!M)return!0;var Q=l.current||M;return Xw(Q,w,C,Q==="h"?P:F)},[]),g=R.useCallback(function(C){var w=C;if(!(!Ys.length||Ys[Ys.length-1]!==u)){var S="deltaY"in w?Dm(w):Yc(w),B=s.current.filter(function(M){return M.name===w.type&&(M.target===w.target||w.target===M.shadowParent)&&Jw(M.delta,S)})[0];if(B&&B.should){w.cancelable&&w.preventDefault();return}if(!B){var P=(p.current.shards||[]).map(Rm).filter(Boolean).filter(function(M){return M.contains(w.target)}),F=P.length>0?d(w,P[0]):!p.current.noIsolation;F&&w.cancelable&&w.preventDefault()}}},[]),m=R.useCallback(function(C,w,S,B){var P={name:C,delta:w,target:S,should:B,shadowParent:r2(S)};s.current.push(P),setTimeout(function(){s.current=s.current.filter(function(F){return F!==P})},1)},[]),x=R.useCallback(function(C){i.current=Yc(C),l.current=void 0},[]),A=R.useCallback(function(C){m(C.type,Dm(C),C.target,d(C,n.lockRef.current))},[]),_=R.useCallback(function(C){m(C.type,Yc(C),C.target,d(C,n.lockRef.current))},[]);R.useEffect(function(){return Ys.push(u),n.setCallbacks({onScrollCapture:A,onWheelCapture:A,onTouchMoveCapture:_}),document.addEventListener("wheel",g,Qs),document.addEventListener("touchmove",g,Qs),document.addEventListener("touchstart",x,Qs),function(){Ys=Ys.filter(function(C){return C!==u}),document.removeEventListener("wheel",g,Qs),document.removeEventListener("touchmove",g,Qs),document.removeEventListener("touchstart",x,Qs)}},[]);var k=n.removeScrollBar,D=n.inert;return R.createElement(R.Fragment,null,D?R.createElement(u,{styles:e2(c)}):null,k?R.createElement(Ww,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function r2(n){for(var s=null;n!==null;)n instanceof ShadowRoot&&(s=n.host,n=n.host),n=n.parentNode;return s}const i2=Rw($x,n2);var Jx=R.forwardRef(function(n,s){return R.createElement(rd,ii({},n,{ref:s,sideCar:i2}))});Jx.classNames=rd.classNames;var o2=function(n){if(typeof document>"u")return null;var s=Array.isArray(n)?n[0]:n;return s.ownerDocument.body},Xs=new WeakMap,Xc=new WeakMap,Jc={},l0=0,eA=function(n){return n&&(n.host||eA(n.parentNode))},s2=function(n,s){return s.map(function(i){if(n.contains(i))return i;var l=eA(i);return l&&n.contains(l)?l:(console.error("aria-hidden",i,"in not contained inside",n,". Doing nothing"),null)}).filter(function(i){return!!i})},a2=function(n,s,i,l){var c=s2(s,Array.isArray(n)?n:[n]);Jc[i]||(Jc[i]=new WeakMap);var u=Jc[i],p=[],d=new Set,g=new Set(c),m=function(A){!A||d.has(A)||(d.add(A),m(A.parentNode))};c.forEach(m);var x=function(A){!A||g.has(A)||Array.prototype.forEach.call(A.children,function(_){if(d.has(_))x(_);else try{var k=_.getAttribute(l),D=k!==null&&k!=="false",C=(Xs.get(_)||0)+1,w=(u.get(_)||0)+1;Xs.set(_,C),u.set(_,w),p.push(_),C===1&&D&&Xc.set(_,!0),w===1&&_.setAttribute(i,"true"),D||_.setAttribute(l,"true")}catch(S){console.error("aria-hidden: cannot operate on ",_,S)}})};return x(s),d.clear(),l0++,function(){p.forEach(function(A){var _=Xs.get(A)-1,k=u.get(A)-1;Xs.set(A,_),u.set(A,k),_||(Xc.has(A)||A.removeAttribute(l),Xc.delete(A)),k||A.removeAttribute(i)}),l0--,l0||(Xs=new WeakMap,Xs=new WeakMap,Xc=new WeakMap,Jc={})}},l2=function(n,s,i){i===void 0&&(i="data-aria-hidden");var l=Array.from(Array.isArray(n)?n:[n]),c=o2(n);return c?(l.push.apply(l,Array.from(c.querySelectorAll("[aria-live], script"))),a2(l,c,i,"aria-hidden")):function(){return null}};function c2(n){const s=u2(n),i=R.forwardRef((l,c)=>{const{children:u,...p}=l,d=R.Children.toArray(u),g=d.find(f2);if(g){const m=g.props.children,x=d.map(A=>A===g?R.Children.count(m)>1?R.Children.only(null):R.isValidElement(m)?m.props.children:null:A);return b.jsx(s,{...p,ref:c,children:R.isValidElement(m)?R.cloneElement(m,void 0,x):null})}return b.jsx(s,{...p,ref:c,children:u})});return i.displayName=`${n}.Slot`,i}function u2(n){const s=R.forwardRef((i,l)=>{const{children:c Line truncated
If you want to hide the \`${s.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${s.docsSlug}`;return R.useEffect(()=>{n&&(document.getElementById(n)||console.error(i))},[i,n]),null},b2="DialogDescriptionWarning",C2=({contentRef:n,descriptionId:s})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mA(b2).contentName}}.`;return R.useEffect(()=>{var c;const u=(c=n.current)==null?void 0:c.getAttribute("aria-describedby");s&&u&&(document.getElementById(s)||console.warn(l))},[l,n,s]),null},gA=nA,xA=oA,od=sA,sd=aA,ad=uA,ld=dA,AA=hA;const G0=gA,E2=xA,vA=R.forwardRef(({className:n,...s},i)=>b.jsx(od,{ref:i,className:ot("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...s}));vA.displayName=od.displayName;const ud=R.forwardRef(({className:n,children:s,...i},l)=>b.jsxs(E2,{children:[b.jsx(vA,{}),b.jsxs(sd,{ref:l,className:ot("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n),...i,children:[s,b.jsxs(AA,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[b.jsx(bx,{className:"h-4 w-4"}),b.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ud.displayName=sd.displayName;const cd=({className:n,...s})=>b.jsx("div",{className:ot("flex flex-col space-y-1.5 text-center sm:text-left",n),...s});cd.displayName="DialogHeader";const $0=({className:n,...s})=>b.jsx("div",{className:ot("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...s});$0.displayName="DialogFooter";const dd=R.forwardRef(({className:n,...s},i)=>b.jsx(ad,{ref:i,className:ot("text-lg font-semibold leading-none tracking-tight",n),...s}));dd.displayName=ad.displayName;const fd=R.forwardRef(({className:n,...s},i)=>b.jsx(ld,{ref:i,className:ot("text-sm text-muted-foreground",n),...s}));fd.displayName=ld.displayName;function k2(){const n=window.location.hash.slice(1);if(!n)return null;if(n==="raw")return{type:"raw",name:"raw"};if(n==="map")return{type:"map",name:"map"};if(n==="visualizer")return{type:"visualizer",name:"visualizer"};if(n.startsWith("map/focus/")){const u=n.slice(10);return u?{type:"map",name:"map",mapFocusKey:decodeURIComponent(u)}:{type:"map",name:"map"}}const s=n.indexOf("/");if(s===-1)return null;const i=n.slice(0,s),l=decodeURIComponent(n.slice(s+1));return(i==="channel"||i==="contact")&&l?{type:i,name:l}:null}function yA(n){return`#map/focus/${encodeURIComponent(n)}`}function S2(n){if(!n)return"";if(n.type==="raw")return"#raw";if(n.type==="map")return"#map";if(n.type==="visualizer")return"#visualizer";const s=n.type==="channel"&&n.name.startsWith("#")?n.name.slice(1):n.name;return`#${n.type}/${encodeURIComponent(s)}`}function B2(n){const s=S2(n);s!==window.location.hash&&window.history.replaceState(null,"",s||window.location.pathname)}function P2({open:n,onClose:s,paths:i,senderInfo:l,contacts:u,config:c}){const p=i.map(g=>({...g,resolved:z1(g.path,l,u,c)})),d=i.length===1;return b.jsx(G0,{open:n,onOpenChange:g=>!g&&s(),children:b.jsxs(ud,{className:"max-w-md max-h-[80vh] flex flex-col",children:[b.jsxs(cd,{children:[b.jsxs(dd,{children:["Message Path",!d&&`s (${i.length})`]}),b.jsx(fd,{children:d?b.jsxs(b.Fragment,{children:["This shows ",b.jsx("em",{children:"one route"})," that this message traveled through the mesh network. Routers may be incorrectly identified due to prefix collisions between heard and non-heard router advertisements."]}):b.jsxs(b.Fragment,{children:["This message was received via ",b.jsxs("strong",{children:[i.length," different routes"]}),". Routers may be incorrectly identified due to prefix collisions."]})})]}),b.jsxs("div",{className:"flex-1 overflow-y-auto py-2 space-y-4",children:[p.map((g,m)=>b.jsxs("div",{children:[!d&&b.jsxs("div",{className:"text-xs text-muted-foreground font-medium mb-2 pb-1 border-b border-border",children:["Path ",m+1," — received ",ra(g.received_at)]}),b.jsx(T2,{resolved:g.resolved,senderInfo:l,hideStraightLine:!d})]},m)),!d&&p.length>0&&(()=>{const g=p[0].resolved;return Bt(g.sender.lat,g.sender.lon)&&Bt(g.receiver.lat,g.receiver.lon)?b.jsxs("div",{className:"pt-3 mt-1 border-t border-border",children:[b.jsx("span",{className:"text-sm text-muted-foreground",children:"Straight-line distance: "}),b.jsx("span",{className:"text-sm font-medium",c Line truncated
`).map((ee,he,pe)=>b.jsxs("span",{children:[N2(ee,d),he<pe.length-1&&b.jsx("br",{})]},he)),!de&&b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"text-[10px] text-muted-foreground/50 ml-2",children:ra(I.sender_timestamp||I.received_at)}),!I.outgoing&&I.paths&&I.paths.length>0&&b.jsx(Fm,{paths:I.paths,variant:"inline",onClick:()=>C({paths:I.paths,senderInfo:M(I,V,K)})})]}),I.outgoing&&(I.acked>0?` ✓${I.acked>1?I.acked:""}`:" ?")]})]})]},I.id)})]}),_&&b.jsx("button",{onClick:B,className:"absolute bottom-4 right-4 w-10 h-10 rounded-full bg-muted hover:bg-accent border border-border flex items-center justify-center shadow-lg transition-opacity",title:"Scroll to bottom",children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-muted-foreground",children:b.jsx("polyline",{points:"6 9 12 15 18 9"})})}),D&&b.jsx(P2,{open:!0,onClose:()=>C(null),paths:D.paths,senderInfo:D.senderInfo,contacts:s,config:g??null})]})}const Lm=156,L2=140,M2=156,I2=120,O2=8,j2=R.forwardRef(function({onSend:s,disabled:i,placeholder:l,isRepeaterMode:u,conversationType:c,senderName:p},d){const[g,m]=R.useState(""),[x,A]=R.useState(!1),_=R.useRef(null);R.useImperativeHandle(d,()=>({appendText:M=>{var H;m(O=>O+M),(H=_.current)==null||H.focus()}}));const k=R.useMemo(()=>{if(c==="contact")return{warningAt:L2,dangerAt:Lm,hardLimit:Lm};if(c==="channel"){const M=(p==null?void 0:p.length)??10,H=Math.max(1,M2-M-2);return{warningAt:I2,dangerAt:Math.max(1,H-O2),hardLimit:H}}return null},[c,p]),{limitState:D,warningMessage:C}=R.useMemo(()=>{if(!k)return{limitState:"normal",warningMessage:null};const M=g.length;return M>=k.hardLimit?{limitState:"error",warningMessage:"likely truncated by radio"}:M>=k.dangerAt?{limitState:"danger",warningMessage:"may impact multi-repeater hop delivery"}:M>=k.warningAt?{limitState:"warning",warningMessage:"may impact multi-repeater hop delivery"}:{limitState:"normal",warningMessage:null}},[g.length,k]),w=k?k.hardLimit-g.length:0,S=R.useCallback(async M=>{M.preventDefault();const H=g.trim();if(u){if(x||i)return;A(!0);try{await s(H),m("")}catch(O){console.error("Failed to request telemetry:",O),At.error("Failed to request telemetry",{description:O instanceof Error?O.message:"Check radio connection"});return}finally{A(!1)}setTimeout(()=>{var O;return(O=_.current)==null?void 0:O.focus()},0)}else{if(!H||x||i)return;A(!0);try{await s(H),m("")}catch(O){console.error("Failed to send message:",O),At.error("Failed to send message",{description:O instanceof Error?O.message:"Check radio connection"});return}finally{A(!1)}setTimeout(()=>{var O;return(O=_.current)==null?void 0:O.focus()},0)}},[g,x,i,s,u]),B=R.useCallback(M=>{M.key==="Enter"&&!M.shiftKey&&(M.preventDefault(),S(M))},[S]),P=u?!0:g.trim().length>0,F=!u&&k!==null;return b.jsxs("form",{className:"px-4 py-3 border-t border-border flex flex-col gap-1",onSubmit:S,children:[b.jsxs("div",{className:"flex gap-2",children:[b.jsx(nn,{ref:_,type:u?"password":"text",autoComplete:u?"off":void 0,value:g,onChange:M=>m(M.target.value),onKeyDown:B,placeholder:l||(u?"Enter password for admin login...":"Type a message..."),disabled:i||x,className:"flex-1 min-w-0"}),b.jsx(wn,{type:"submit",disabled:i||x||!P,className:"flex-shrink-0",children:x?u?"Logging in...":"Sending...":u?g.trim()?"Log in with password":"Log in as guest/use repeater ACLs":"Send"})]}),F&&b.jsxs("div",{className:"flex items-center justify-end gap-2 text-xs",children:[b.jsxs("span",{className:ot("tabular-nums",D==="error"||D==="danger"?"text-red-500 font-medium":D==="warning"?"text-yellow-500":"text-muted-foreground"),children:[g.length,"/",k.hardLimit,w<0&&` (${w})`]}),C&&b.jsxs("span",{className:ot(D==="error"?"text-red-500":"text-yellow-500"),children:["— ",C]})]})]})});function Mm(n){const s=z2(n),i=R.forwardRef((l,u)=>{const{children:c,...p}=l,d=R.Children.toArray(c),g=d.find(V2);if(g){const m=g.props.children,x=d.map(A=>A===g?R.Children.count(m)>1?R.Children.only(null):R.isValidElement(m)?m.props.children:null:A);return b.jsx(s,{...p,ref:u,children:R.isValidElement(m)?R.cloneElement(m,void 0,x):null})}return b.jsx(s,{...p,ref:u,children:c})});return i.displayName=`${n}.Slot`,i}function z2(n){const s=R.forwardRef((i,l)=>{const{children:u,...c}=i;if(R.isValidElement(u)){const p=Z2(u),d=U2(c,u.props);return u.type!==R.Fragment&&(d.ref=l?El(l,p):p),R.cloneElement(u,d)}return R.Children.count(u)>1?R.Children.only(null):null});return s.displayName=`${n}.SlotClone`,s}var H2=Symbol("radix.slottable");function V2(n){return R.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===H2}function U2(n,s){const i={...s};for(const l in s){const u=n[l],c=s[l];/^on[A-Z]/.test(l)?u&&c?i[l]=(...d)=>{const g=c(...d);return u(...d),g}:u&&(i[l]=u):l==="style"?i[l]={...u,...c}:l==="className"&&(i[l]=[u,c].filter(Boolean).join(" "))}return{...n,...i}}functi Line truncated
For more information, see https://radix-ui.com/primitives/docs/components/${s.docsSlug}`;return R.useEffect(()=>{n&&(document.getElementById(n)||console.error(i))},[i,n]),null},b2="DialogDescriptionWarning",C2=({contentRef:n,descriptionId:s})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mA(b2).contentName}}.`;return R.useEffect(()=>{var u;const c=(u=n.current)==null?void 0:u.getAttribute("aria-describedby");s&&c&&(document.getElementById(s)||console.warn(l))},[l,n,s]),null},gA=nA,xA=oA,od=sA,sd=aA,ad=cA,ld=dA,AA=hA;const G0=gA,E2=xA,vA=R.forwardRef(({className:n,...s},i)=>b.jsx(od,{ref:i,className:ot("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...s}));vA.displayName=od.displayName;const cd=R.forwardRef(({className:n,children:s,...i},l)=>b.jsxs(E2,{children:[b.jsx(vA,{}),b.jsxs(sd,{ref:l,className:ot("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n),...i,children:[s,b.jsxs(AA,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[b.jsx(bx,{className:"h-4 w-4"}),b.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));cd.displayName=sd.displayName;const ud=({className:n,...s})=>b.jsx("div",{className:ot("flex flex-col space-y-1.5 text-center sm:text-left",n),...s});ud.displayName="DialogHeader";const $0=({className:n,...s})=>b.jsx("div",{className:ot("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...s});$0.displayName="DialogFooter";const dd=R.forwardRef(({className:n,...s},i)=>b.jsx(ad,{ref:i,className:ot("text-lg font-semibold leading-none tracking-tight",n),...s}));dd.displayName=ad.displayName;const fd=R.forwardRef(({className:n,...s},i)=>b.jsx(ld,{ref:i,className:ot("text-sm text-muted-foreground",n),...s}));fd.displayName=ld.displayName;function k2(){const n=window.location.hash.slice(1);if(!n)return null;if(n==="raw")return{type:"raw",name:"raw"};if(n==="map")return{type:"map",name:"map"};if(n==="visualizer")return{type:"visualizer",name:"visualizer"};if(n.startsWith("map/focus/")){const c=n.slice(10);return c?{type:"map",name:"map",mapFocusKey:decodeURIComponent(c)}:{type:"map",name:"map"}}const s=n.indexOf("/");if(s===-1)return null;const i=n.slice(0,s),l=decodeURIComponent(n.slice(s+1));return(i==="channel"||i==="contact")&&l?{type:i,name:l}:null}function yA(n){return`#map/focus/${encodeURIComponent(n)}`}function S2(n){if(!n)return"";if(n.type==="raw")return"#raw";if(n.type==="map")return"#map";if(n.type==="visualizer")return"#visualizer";const s=n.type==="channel"&&n.name.startsWith("#")?n.name.slice(1):n.name;return`#${n.type}/${encodeURIComponent(s)}`}function B2(n){const s=S2(n);s!==window.location.hash&&window.history.replaceState(null,"",s||window.location.pathname)}function P2({open:n,onClose:s,paths:i,senderInfo:l,contacts:c,config:u}){const p=i.map(g=>({...g,resolved:z1(g.path,l,c,u)})),d=i.length===1;return b.jsx(G0,{open:n,onOpenChange:g=>!g&&s(),children:b.jsxs(cd,{className:"max-w-md max-h-[80vh] flex flex-col",children:[b.jsxs(ud,{children:[b.jsxs(dd,{children:["Message Path",!d&&`s (${i.length})`]}),b.jsx(fd,{children:d?b.jsxs(b.Fragment,{children:["This shows ",b.jsx("em",{children:"one route"})," that this message traveled through the mesh network. Routers may be incorrectly identified due to prefix collisions between heard and non-heard router advertisements."]}):b.jsxs(b.Fragment,{children:["This message was received via ",b.jsxs("strong",{children:[i.length," different routes"]}),". Routers may be incorrectly identified due to prefix collisions."]})})]}),b.jsxs("div",{className:"flex-1 overflow-y-auto py-2 space-y-4",children:[p.map((g,m)=>b.jsxs("div",{children:[!d&&b.jsxs("div",{className:"text-xs text-muted-foreground font-medium mb-2 pb-1 border-b border-border",children:["Path ",m+1," — received ",ra(g.received_at)]}),b.jsx(T2,{resolved:g.resolved,senderInfo:l,hideStraightLine:!d})]},m)),!d&&p.length>0&&(()=>{const g=p[0].resolved;return Bt(g.sender.lat,g.sender.lon)&&Bt(g.receiver.lat,g.receiver.lon)?b.jsxs("div",{className:"pt-3 mt-1 border-t border-border",children:[b.jsx("span",{className:"text-sm text-muted-foreground",children:"Straight-line distance: "}),b.jsx("span",{className:"text-sm font-medium",c Line truncated
`).map((ee,he,pe)=>b.jsxs("span",{children:[N2(ee,d),he<pe.length-1&&b.jsx("br",{})]},he)),!ue&&b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"text-[10px] text-muted-foreground/50 ml-2",children:ra(I.sender_timestamp||I.received_at)}),!I.outgoing&&I.paths&&I.paths.length>0&&b.jsx(Fm,{paths:I.paths,variant:"inline",onClick:()=>C({paths:I.paths,senderInfo:M(I,V,Q)})})]}),I.outgoing&&(I.acked>0?` ✓${I.acked>1?I.acked:""}`:" ?")]})]})]},I.id)})]}),_&&b.jsx("button",{onClick:B,className:"absolute bottom-4 right-4 w-10 h-10 rounded-full bg-muted hover:bg-accent border border-border flex items-center justify-center shadow-lg transition-opacity",title:"Scroll to bottom",children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"text-muted-foreground",children:b.jsx("polyline",{points:"6 9 12 15 18 9"})})}),D&&b.jsx(P2,{open:!0,onClose:()=>C(null),paths:D.paths,senderInfo:D.senderInfo,contacts:s,config:g??null})]})}const Lm=156,L2=140,M2=156,I2=120,O2=8,j2=R.forwardRef(function({onSend:s,disabled:i,placeholder:l,isRepeaterMode:c,conversationType:u,senderName:p},d){const[g,m]=R.useState(""),[x,A]=R.useState(!1),_=R.useRef(null);R.useImperativeHandle(d,()=>({appendText:M=>{var z;m(H=>H+M),(z=_.current)==null||z.focus()}}));const k=R.useMemo(()=>{if(u==="contact")return{warningAt:L2,dangerAt:Lm,hardLimit:Lm};if(u==="channel"){const M=(p==null?void 0:p.length)??10,z=Math.max(1,M2-M-2);return{warningAt:I2,dangerAt:Math.max(1,z-O2),hardLimit:z}}return null},[u,p]),{limitState:D,warningMessage:C}=R.useMemo(()=>{if(!k)return{limitState:"normal",warningMessage:null};const M=g.length;return M>=k.hardLimit?{limitState:"error",warningMessage:"likely truncated by radio"}:M>=k.dangerAt?{limitState:"danger",warningMessage:"may impact multi-repeater hop delivery"}:M>=k.warningAt?{limitState:"warning",warningMessage:"may impact multi-repeater hop delivery"}:{limitState:"normal",warningMessage:null}},[g.length,k]),w=k?k.hardLimit-g.length:0,S=R.useCallback(async M=>{M.preventDefault();const z=g.trim();if(c){if(x||i)return;A(!0);try{await s(z),m("")}catch(H){console.error("Failed to request telemetry:",H),At.error("Failed to request telemetry",{description:H instanceof Error?H.message:"Check radio connection"});return}finally{A(!1)}setTimeout(()=>{var H;return(H=_.current)==null?void 0:H.focus()},0)}else{if(!z||x||i)return;A(!0);try{await s(z),m("")}catch(H){console.error("Failed to send message:",H),At.error("Failed to send message",{description:H instanceof Error?H.message:"Check radio connection"});return}finally{A(!1)}setTimeout(()=>{var H;return(H=_.current)==null?void 0:H.focus()},0)}},[g,x,i,s,c]),B=R.useCallback(M=>{M.key==="Enter"&&!M.shiftKey&&(M.preventDefault(),S(M))},[S]),P=c?!0:g.trim().length>0,F=!c&&k!==null;return b.jsxs("form",{className:"px-4 py-3 border-t border-border flex flex-col gap-1",onSubmit:S,children:[b.jsxs("div",{className:"flex gap-2",children:[b.jsx(nn,{ref:_,type:c?"password":"text",autoComplete:c?"off":void 0,value:g,onChange:M=>m(M.target.value),onKeyDown:B,placeholder:l||(c?"Enter password for admin login...":"Type a message..."),disabled:i||x,className:"flex-1 min-w-0"}),b.jsx(wn,{type:"submit",disabled:i||x||!P,className:"flex-shrink-0",children:x?c?"Logging in...":"Sending...":c?g.trim()?"Log in with password":"Log in as guest/use repeater ACLs":"Send"})]}),F&&b.jsxs("div",{className:"flex items-center justify-end gap-2 text-xs",children:[b.jsxs("span",{className:ot("tabular-nums",D==="error"||D==="danger"?"text-red-500 font-medium":D==="warning"?"text-yellow-500":"text-muted-foreground"),children:[g.length,"/",k.hardLimit,w<0&&` (${w})`]}),C&&b.jsxs("span",{className:ot(D==="error"?"text-red-500":"text-yellow-500"),children:["— ",C]})]})]})});function Mm(n){const s=z2(n),i=R.forwardRef((l,c)=>{const{children:u,...p}=l,d=R.Children.toArray(u),g=d.find(V2);if(g){const m=g.props.children,x=d.map(A=>A===g?R.Children.count(m)>1?R.Children.only(null):R.isValidElement(m)?m.props.children:null:A);return b.jsx(s,{...p,ref:c,children:R.isValidElement(m)?R.cloneElement(m,void 0,x):null})}return b.jsx(s,{...p,ref:c,children:u})});return i.displayName=`${n}.Slot`,i}function z2(n){const s=R.forwardRef((i,l)=>{const{children:c,...u}=i;if(R.isValidElement(c)){const p=Z2(c),d=U2(u,c.props);return c.type!==R.Fragment&&(d.ref=l?El(l,p):p),R.cloneElement(c,d)}return R.Children.count(c)>1?R.Children.only(null):null});return s.displayName=`${n}.SlotClone`,s}var H2=Symbol("radix.slottable");function V2(n){return R.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===H2}function U2(n,s){const i={...s};for(const l in s){const c=n[l],u=s[l];/^on[A-Z]/.test(l)?c&&u?i[l]=(...d)=>{const g=u(...d);return c(...d),g}:c&&(i[l]=c):l==="style"?i[l]={...c,...u}:l==="className"&&(i[l]=[c,u].filter(Boolean).join(" "))}return{...n,...i}}functi Line truncated
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -132,20 +132,20 @@ For more information, see https://radix-ui.com/primitives/docs/components/${s.do
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/return(function(l){var u=i,c=u.lib,p=c.WordArray,d=c.Hasher,g=u.algo,m=p.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),x=p.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),A=p.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),_=p.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),k=p.create([0,1518500249,1859775393,2400959708,2840853838]),D=p.create([1352829926,1548603684,1836072691,2053994217,0]),C=g.RIPEMD160=d.extend({_doReset:function(){this._hash=p.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(H,O){for(var I=0;I<16;I++){var X=O+I,V=H[X];H[X]=(V<<8|V>>>24)&16711935|(V<<24|V>>>8)&4278255360}var Z=this._hash.words,K=k.words,W=D.words,ne=m.words,ce=x.words,Y=A.words,ae=_.words,G,de,q,N,U,$,ee,he,pe,Ae;$=G=Z[0],ee=de=Z[1],he=q=Z[2],pe=N=Z[3],Ae=U=Z[4];for(var me,I=0;I<80;I+=1)me=G+H[O+ne[I]]|0,I<16?me+=w(de,q,N)+K[0]:I<32?me+=S(de,q,N)+K[1]:I<48?me+=B(de,q,N)+K[2]:I<64?me+=P(de,q,N)+K[3]:me+=F(de,q,N)+K[4],me=me|0,me=M(me,Y[I]),me=me+U|0,G=U,U=N,N=M(q,10),q=de,de=me,me=$+H[O+ce[I]]|0,I<16?me+=F(ee,he,pe)+W[0]:I<32?me+=P(ee,he,pe)+W[1]:I<48?me+=B(ee,he,pe)+W[2]:I<64?me+=S(ee,he,pe)+W[3]:me+=w(ee,he,pe)+W[4],me=me|0,me=M(me,ae[I]),me=me+Ae|0,$=Ae,Ae=pe,pe=M(he,10),he=ee,ee=me;me=Z[1]+q+pe|0,Z[1]=Z[2]+N+Ae|0,Z[2]=Z[3]+U+$|0,Z[3]=Z[4]+G+ee|0,Z[4]=Z[0]+de+he|0,Z[0]=me},_doFinalize:function(){var H=this._data,O=H.words,I=this._nDataBytes*8,X=H.sigBytes*8;O[X>>>5]|=128<<24-X%32,O[(X+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,H.sigBytes=(O.length+1)*4,this._process();for(var V=this._hash,Z=V.words,K=0;K<5;K++){var W=Z[K];Z[K]=(W<<8|W>>>24)&16711935|(W<<24|W>>>8)&4278255360}return V},clone:function(){var H=d.clone.call(this);return H._hash=this._hash.clone(),H}});function w(H,O,I){return H^O^I}function S(H,O,I){return H&O|~H&I}function B(H,O,I){return(H|~O)^I}function P(H,O,I){return H&I|O&~I}function F(H,O,I){return H^(O|~I)}function M(H,O){return H<<O|H>>>32-O}u.RIPEMD160=d._createHelper(C),u.HmacRIPEMD160=d._createHmacHelper(C)})(),i.RIPEMD160})})(Ac)),Ac.exports}var vc={exports:{}},$b=vc.exports,tg;function xd(){return tg||(tg=1,(function(n,s){(function(i,l){n.exports=l(xt())})($b,function(i){(function(){var l=i,u=l.lib,c=u.Base,p=l.enc,d=p.Utf8,g=l.algo;g.HMAC=c.extend({init:function(m,x){m=this._hasher=new m.init,typeof x=="string"&&(x=d.parse(x));var A=m.blockSize,_=A*4;x.sigBytes>_&&(x=m.finalize(x)),x.clamp();for(var k=this._oKey=x.clone(),D=this._iKey=x.clone(),C=k.words,w=D.words,S=0;S<A;S++)C[S]^=1549556828,w[S]^=909522486;k.sigBytes=D.sigBytes=_,this.reset()},reset:function(){var m=this._hasher;m.reset(),m.update(this._iKey)},update:function(m){return this._hasher.update(m),this},finalize:function(m){var x=this._hasher,A=x.finalize(m);x.reset();var _=x.finalize(this._oKey.clone().concat(A));return _}})})()})})(vc)),vc.exports}var yc={exports:{}},Kb=yc.exports,ng;function Qb(){return ng||(ng=1,(function(n,s){(function(i,l,u){n.exports=l(xt(),Bl(),xd())})(Kb,function(i){return(function(){var l=i,u=l.lib,c=u.Base,p=u.WordArray,d=l.algo,g=d.SHA256,m=d.HMAC,x=d.PBKDF2=c.extend({cfg:c.extend({keySize:128/32,hasher:g,iterations:25e4}),init:function(A){this.cfg=this.cfg.extend(A)},compute:function(A,_){for(var k=this.cfg,D=m.create(k.hasher,A),C=p.create(),w=p.create([1]),S=C.words,B=w.words,P=k.keySize,F=k.iterations;S.length<P;){var M=D.update(_).finalize(w);D.reset();for(var H=M.words,O=H.length,I=M,X=1;X<F;X++){I=D.finalize(I),D.reset();for(var V=I.words,Z=0;Z<O;Z++)H[Z]^=V[Z]}C.concat(M),B[0]++}return C.sigBytes=P*4,C}});l.PBKDF2=function(A,_,k){return x.create(k).compute(A,_)}})(),i.PBKDF2})})(yc)),yc.exports}var _c={exports:{}},Yb=_c.exports,rg;function Ao(){return rg||(rg=1,(function(n,s){(function(i,l,u){n.exports=l(xt(),XA(),xd())})(Yb,function(i){return(function(){var l=i,u=l.lib,c=u.Base,p=u.WordArray,d=l.algo,g=d.MD5,m=d.EvpKDF=c.extend({cfg:c.extend({keySize:128/32,hasher:g,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,A){for(var _,k=this.cfg,D=k.hasher.create(),C=p.create(),w=C.words,S=k.keySize,B=k.iterations;w.length<S;){_&&D.update(_),_=D.update(x).finalize(A),D.reset();for(var P=1;P<B;P++)_=D.finalize(_),D.reset();C.concat(_)}return C.sigBytes=S*4,C}});l.EvpKDF=function(x,A,_){return m.create(_).compute(x,A)}})(),i.EvpKDF})})(_c)),_c.exports}var wc={exports:{}},Xb=wc.exports,ig;Line truncated
*/return(function(l){var c=i,u=c.lib,p=u.WordArray,d=u.Hasher,g=c.algo,m=p.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),x=p.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),A=p.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),_=p.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),k=p.create([0,1518500249,1859775393,2400959708,2840853838]),D=p.create([1352829926,1548603684,1836072691,2053994217,0]),C=g.RIPEMD160=d.extend({_doReset:function(){this._hash=p.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(z,H){for(var I=0;I<16;I++){var K=H+I,V=z[K];z[K]=(V<<8|V>>>24)&16711935|(V<<24|V>>>8)&4278255360}var W=this._hash.words,Q=k.words,U=D.words,te=m.words,ce=x.words,X=A.words,oe=_.words,G,ue,q,N,Z,$,ee,he,pe,Ae;$=G=W[0],ee=ue=W[1],he=q=W[2],pe=N=W[3],Ae=Z=W[4];for(var me,I=0;I<80;I+=1)me=G+z[H+te[I]]|0,I<16?me+=w(ue,q,N)+Q[0]:I<32?me+=S(ue,q,N)+Q[1]:I<48?me+=B(ue,q,N)+Q[2]:I<64?me+=P(ue,q,N)+Q[3]:me+=F(ue,q,N)+Q[4],me=me|0,me=M(me,X[I]),me=me+Z|0,G=Z,Z=N,N=M(q,10),q=ue,ue=me,me=$+z[H+ce[I]]|0,I<16?me+=F(ee,he,pe)+U[0]:I<32?me+=P(ee,he,pe)+U[1]:I<48?me+=B(ee,he,pe)+U[2]:I<64?me+=S(ee,he,pe)+U[3]:me+=w(ee,he,pe)+U[4],me=me|0,me=M(me,oe[I]),me=me+Ae|0,$=Ae,Ae=pe,pe=M(he,10),he=ee,ee=me;me=W[1]+q+pe|0,W[1]=W[2]+N+Ae|0,W[2]=W[3]+Z+$|0,W[3]=W[4]+G+ee|0,W[4]=W[0]+ue+he|0,W[0]=me},_doFinalize:function(){var z=this._data,H=z.words,I=this._nDataBytes*8,K=z.sigBytes*8;H[K>>>5]|=128<<24-K%32,H[(K+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,z.sigBytes=(H.length+1)*4,this._process();for(var V=this._hash,W=V.words,Q=0;Q<5;Q++){var U=W[Q];W[Q]=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360}return V},clone:function(){var z=d.clone.call(this);return z._hash=this._hash.clone(),z}});function w(z,H,I){return z^H^I}function S(z,H,I){return z&H|~z&I}function B(z,H,I){return(z|~H)^I}function P(z,H,I){return z&I|H&~I}function F(z,H,I){return z^(H|~I)}function M(z,H){return z<<H|z>>>32-H}c.RIPEMD160=d._createHelper(C),c.HmacRIPEMD160=d._createHmacHelper(C)})(),i.RIPEMD160})})(Au)),Au.exports}var vu={exports:{}},$b=vu.exports,tg;function xd(){return tg||(tg=1,(function(n,s){(function(i,l){n.exports=l(xt())})($b,function(i){(function(){var l=i,c=l.lib,u=c.Base,p=l.enc,d=p.Utf8,g=l.algo;g.HMAC=u.extend({init:function(m,x){m=this._hasher=new m.init,typeof x=="string"&&(x=d.parse(x));var A=m.blockSize,_=A*4;x.sigBytes>_&&(x=m.finalize(x)),x.clamp();for(var k=this._oKey=x.clone(),D=this._iKey=x.clone(),C=k.words,w=D.words,S=0;S<A;S++)C[S]^=1549556828,w[S]^=909522486;k.sigBytes=D.sigBytes=_,this.reset()},reset:function(){var m=this._hasher;m.reset(),m.update(this._iKey)},update:function(m){return this._hasher.update(m),this},finalize:function(m){var x=this._hasher,A=x.finalize(m);x.reset();var _=x.finalize(this._oKey.clone().concat(A));return _}})})()})})(vu)),vu.exports}var yu={exports:{}},Kb=yu.exports,ng;function Qb(){return ng||(ng=1,(function(n,s){(function(i,l,c){n.exports=l(xt(),Bl(),xd())})(Kb,function(i){return(function(){var l=i,c=l.lib,u=c.Base,p=c.WordArray,d=l.algo,g=d.SHA256,m=d.HMAC,x=d.PBKDF2=u.extend({cfg:u.extend({keySize:128/32,hasher:g,iterations:25e4}),init:function(A){this.cfg=this.cfg.extend(A)},compute:function(A,_){for(var k=this.cfg,D=m.create(k.hasher,A),C=p.create(),w=p.create([1]),S=C.words,B=w.words,P=k.keySize,F=k.iterations;S.length<P;){var M=D.update(_).finalize(w);D.reset();for(var z=M.words,H=z.length,I=M,K=1;K<F;K++){I=D.finalize(I),D.reset();for(var V=I.words,W=0;W<H;W++)z[W]^=V[W]}C.concat(M),B[0]++}return C.sigBytes=P*4,C}});l.PBKDF2=function(A,_,k){return x.create(k).compute(A,_)}})(),i.PBKDF2})})(yu)),yu.exports}var _u={exports:{}},Yb=_u.exports,rg;function Ao(){return rg||(rg=1,(function(n,s){(function(i,l,c){n.exports=l(xt(),XA(),xd())})(Yb,function(i){return(function(){var l=i,c=l.lib,u=c.Base,p=c.WordArray,d=l.algo,g=d.MD5,m=d.EvpKDF=u.extend({cfg:u.extend({keySize:128/32,hasher:g,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,A){for(var _,k=this.cfg,D=k.hasher.create(),C=p.create(),w=C.words,S=k.keySize,B=k.iterations;w.length<S;){_&&D.update(_),_=D.update(x).finalize(A),D.reset();for(var P=1;P<B;P++)_=D.finalize(_),D.reset();C.concat(_)}return C.sigBytes=S*4,C}});l.EvpKDF=function(x,A,_){return m.create(_).compute(x,A)}})(),i.EvpKDF})})(_u)),_u.exports}var wu={exports:{}},Xb=wu.exports,ig;Line truncated
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return i.mode.CTRGladman=(function(){var l=i.lib.BlockCipherMode.extend();function u(d){if((d>>24&255)===255){var g=d>>16&255,m=d>>8&255,x=d&255;g===255?(g=0,m===255?(m=0,x===255?x=0:++x):++m):++g,d=0,d+=g<<16,d+=m<<8,d+=x}else d+=1<<24;return d}function c(d){return(d[0]=u(d[0]))===0&&(d[1]=u(d[1])),d}var p=l.Encryptor=l.extend({processBlock:function(d,g){var m=this._cipher,x=m.blockSize,A=this._iv,_=this._counter;A&&(_=this._counter=A.slice(0),this._iv=void 0),c(_);var k=_.slice(0);m.encryptBlock(k,0);for(var D=0;D<x;D++)d[g+D]^=k[D]}});return l.Decryptor=p,l})(),i.mode.CTRGladman})})(Ec)),Ec.exports}var kc={exports:{}},oC=kc.exports,lg;function sC(){return lg||(lg=1,(function(n,s){(function(i,l,u){n.exports=l(xt(),An())})(oC,function(i){return i.mode.OFB=(function(){var l=i.lib.BlockCipherMode.extend(),u=l.Encryptor=l.extend({processBlock:function(c,p){var d=this._cipher,g=d.blockSize,m=this._iv,x=this._keystream;m&&(x=this._keystream=m.slice(0),this._iv=void 0),d.encryptBlock(x,0);for(var A=0;A<g;A++)c[p+A]^=x[A]}});return l.Decryptor=u,l})(),i.mode.OFB})})(kc)),kc.exports}var Sc={exports:{}},aC=Sc.exports,ug;function lC(){return ug||(ug=1,(function(n,s){(function(i,l,u){n.exports=l(xt(),An())})(aC,function(i){return i.mode.ECB=(function(){var l=i.lib.BlockCipherMode.extend();return l.Encryptor=l.extend({processBlock:function(u,c){this._cipher.encryptBlock(u,c)}}),l.Decryptor=l.extend({processBlock:function(u,c){this._cipher.decryptBlock(u,c)}}),l})(),i.mode.ECB})})(Sc)),Sc.exports}var Bc={exports:{}},uC=Bc.exports,cg;function cC(){return cg||(cg=1,(function(n,s){(function(i,l,u){n.exports=l(xt(),An())})(uC,function(i){return i.pad.AnsiX923={pad:function(l,u){var c=l.sigBytes,p=u*4,d=p-c%p,g=c+d-1;l.clamp(),l.words[g>>>2]|=d<<24-g%4*8,l.sigBytes+=d},unpad:function(l){var u=l.words[l.sigBytes-1>>>2]&255;l.sigBytes-=u}},i.pad.Ansix923})})(Bc)),Bc.exports}var Pc={exports:{}},dC=Pc.exports,dg;function fC(){return dg||(dg=1,(function(n,s){(function(i,l,u){n.exports=l(xt(),An())})(dC,function(i){return i.pad.Iso10126={pad:function(l,u){var c=u*4,p=c-l.sigBytes%c;l.concat(i.lib.WordArray.random(p-1)).concat(i.lib.WordArray.create([p<<24],1))},unpad:function(l){var u=l.words[l.sigBytes-1>>>2]&255;l.sigBytes-=u}},i.pad.Iso10126})})(Pc)),Pc.exports}var Tc={exports:{}},hC=Tc.exports,fg;function pC(){return fg||(fg=1,(function(n,s){(function(i,l,u){n.exports=l(xt(),An())})(hC,function(i){return i.pad.Iso97971={pad:function(l,u){l.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(l,u)},unpad:function(l){i.pad.ZeroPadding.unpad(l),l.sigBytes--}},i.pad.Iso97971})})(Tc)),Tc.exports}var Dc={exports:{}},mC=Dc.exports,hg;function gC(){return hg||(hg=1,(function(n,s){(function(i,l,u){n.exports=l(xt(),An())})(mC,function(i){return i.pad.ZeroPadding={pad:function(l,u){var c=u*4;l.clamp(),l.sigBytes+=c-(l.sigBytes%c||c)},unpad:function(l){for(var u=l.words,c=l.sigBytes-1,c=l.sigBytes-1;c>=0;c--)if(u[c>>>2]>>>24-c%4*8&255){l.sigBytes=c+1;break}}},i.pad.ZeroPadding})})(Dc)),Dc.exports}var Rc={exports:{}},xC=Rc.exports,pg;function AC(){return pg||(pg=1,(function(n,s){(function(i,l,u){n.exports=l(xt(),An())})(xC,function(i){return i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding})})(Rc)),Rc.exports}var Nc={exports:{}},vC=Nc.exports,mg;function yC(){return mg||(mg=1,(function(n,s){(function(i,l,u){n.exports=l(xt(),An())})(vC,function(i){return(function(l){var u=i,c=u.lib,p=c.CipherParams,d=u.enc,g=d.Hex,m=u.format;m.Hex={stringify:function(x){return x.ciphertext.toString(g)},parse:function(x){var A=g.parse(x);return p.create({ciphertext:A})}}})(),i.format.Hex})})(Nc)),Nc.exports}var Fc={exports:{}},_C=Fc.exports,gg;function wC(){return gg||(gg=1,(function(n,s){(function(i,l,u){n.exports=l(xt(),ss(),as(),Ao(),An())})(_C,function(i){return(function(){var l=i,u=l.lib,c=u.BlockCipher,p=l.algo,d=[],g=[],m=[],x=[],A=[],_=[],k=[],D=[],C=[],w=[];(function(){for(var P=[],F=0;F<256;F++)F<128?P[F]=F<<1:P[F]=F<<1^283;for(var M=0,H=0,F=0;F<256;F++){var O=H^H<<1^H<<2^H<<3^H<<4;O=O>>>8^O&255^99,d[M]=O,g[O]=M;var I=P[M],X=P[I],V=P[X],Z=P[O]*257^O*16843008;m[M]=Z<<24|Z>>>8,x[M]=Z<<16|Z>>>16,A[M]=Z<<8|Z>>>24,_[M]=Z;var Z=V*16843009^X*65537^I*257^M*16843008;k[O]=Z<<24|Z>>>8,D[O]=Z<<16|Z>>>16,C[O]=Z<<8|Z>>>24,w[O]=Z,M?(M=I^P[P[P[V^I]]],H^=P[P[H]]):M=H=1}})();var S=[0,1,2,4,8,16,32,64,128,27,54],B=p.AES=c.extend({_doReset:function(){var P;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var F=this._keyPriorReset=this._key,M=F.words,H=F.sigBytes/4,O=this._nRounds=H+6,I=(O+1)*4,X=this._keySchedule=[],V=0;V<I;V++)V<H?X[V]=M[V]:(P=X[V-1],V%H?H>6&&V%H==4&&(P=d[P>>>24]<<24|d[P>>>16&255]<<16|d[P>>>8&255]<<8|d[P&255]):(P=P<<8|P>>>24,P=d[P>>>24]<<24|d[P>>>16&255]<<16|d[P>>>8&255]<<8|d[P&255],P^=S[V/H|0]<<24),X[V]=X[V-H]^P);for(var Z=this._invKeySchedule=[],K=0;K<I;K++){var V=I-K;if(K%4)var P=X[V];else var P=X[V-4];K<4||V<=4?Z[K]=P:Z[K]=k[d[P>>>24]]^D[d[P>>>16&255]]^C[d[P>>>8&255]]^w[d[P&255]]}}},encryptBlock:Line truncated
*/return i.mode.CTRGladman=(function(){var l=i.lib.BlockCipherMode.extend();function c(d){if((d>>24&255)===255){var g=d>>16&255,m=d>>8&255,x=d&255;g===255?(g=0,m===255?(m=0,x===255?x=0:++x):++m):++g,d=0,d+=g<<16,d+=m<<8,d+=x}else d+=1<<24;return d}function u(d){return(d[0]=c(d[0]))===0&&(d[1]=c(d[1])),d}var p=l.Encryptor=l.extend({processBlock:function(d,g){var m=this._cipher,x=m.blockSize,A=this._iv,_=this._counter;A&&(_=this._counter=A.slice(0),this._iv=void 0),u(_);var k=_.slice(0);m.encryptBlock(k,0);for(var D=0;D<x;D++)d[g+D]^=k[D]}});return l.Decryptor=p,l})(),i.mode.CTRGladman})})(Eu)),Eu.exports}var ku={exports:{}},oC=ku.exports,lg;function sC(){return lg||(lg=1,(function(n,s){(function(i,l,c){n.exports=l(xt(),An())})(oC,function(i){return i.mode.OFB=(function(){var l=i.lib.BlockCipherMode.extend(),c=l.Encryptor=l.extend({processBlock:function(u,p){var d=this._cipher,g=d.blockSize,m=this._iv,x=this._keystream;m&&(x=this._keystream=m.slice(0),this._iv=void 0),d.encryptBlock(x,0);for(var A=0;A<g;A++)u[p+A]^=x[A]}});return l.Decryptor=c,l})(),i.mode.OFB})})(ku)),ku.exports}var Su={exports:{}},aC=Su.exports,cg;function lC(){return cg||(cg=1,(function(n,s){(function(i,l,c){n.exports=l(xt(),An())})(aC,function(i){return i.mode.ECB=(function(){var l=i.lib.BlockCipherMode.extend();return l.Encryptor=l.extend({processBlock:function(c,u){this._cipher.encryptBlock(c,u)}}),l.Decryptor=l.extend({processBlock:function(c,u){this._cipher.decryptBlock(c,u)}}),l})(),i.mode.ECB})})(Su)),Su.exports}var Bu={exports:{}},cC=Bu.exports,ug;function uC(){return ug||(ug=1,(function(n,s){(function(i,l,c){n.exports=l(xt(),An())})(cC,function(i){return i.pad.AnsiX923={pad:function(l,c){var u=l.sigBytes,p=c*4,d=p-u%p,g=u+d-1;l.clamp(),l.words[g>>>2]|=d<<24-g%4*8,l.sigBytes+=d},unpad:function(l){var c=l.words[l.sigBytes-1>>>2]&255;l.sigBytes-=c}},i.pad.Ansix923})})(Bu)),Bu.exports}var Pu={exports:{}},dC=Pu.exports,dg;function fC(){return dg||(dg=1,(function(n,s){(function(i,l,c){n.exports=l(xt(),An())})(dC,function(i){return i.pad.Iso10126={pad:function(l,c){var u=c*4,p=u-l.sigBytes%u;l.concat(i.lib.WordArray.random(p-1)).concat(i.lib.WordArray.create([p<<24],1))},unpad:function(l){var c=l.words[l.sigBytes-1>>>2]&255;l.sigBytes-=c}},i.pad.Iso10126})})(Pu)),Pu.exports}var Tu={exports:{}},hC=Tu.exports,fg;function pC(){return fg||(fg=1,(function(n,s){(function(i,l,c){n.exports=l(xt(),An())})(hC,function(i){return i.pad.Iso97971={pad:function(l,c){l.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(l,c)},unpad:function(l){i.pad.ZeroPadding.unpad(l),l.sigBytes--}},i.pad.Iso97971})})(Tu)),Tu.exports}var Du={exports:{}},mC=Du.exports,hg;function gC(){return hg||(hg=1,(function(n,s){(function(i,l,c){n.exports=l(xt(),An())})(mC,function(i){return i.pad.ZeroPadding={pad:function(l,c){var u=c*4;l.clamp(),l.sigBytes+=u-(l.sigBytes%u||u)},unpad:function(l){for(var c=l.words,u=l.sigBytes-1,u=l.sigBytes-1;u>=0;u--)if(c[u>>>2]>>>24-u%4*8&255){l.sigBytes=u+1;break}}},i.pad.ZeroPadding})})(Du)),Du.exports}var Ru={exports:{}},xC=Ru.exports,pg;function AC(){return pg||(pg=1,(function(n,s){(function(i,l,c){n.exports=l(xt(),An())})(xC,function(i){return i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding})})(Ru)),Ru.exports}var Nu={exports:{}},vC=Nu.exports,mg;function yC(){return mg||(mg=1,(function(n,s){(function(i,l,c){n.exports=l(xt(),An())})(vC,function(i){return(function(l){var c=i,u=c.lib,p=u.CipherParams,d=c.enc,g=d.Hex,m=c.format;m.Hex={stringify:function(x){return x.ciphertext.toString(g)},parse:function(x){var A=g.parse(x);return p.create({ciphertext:A})}}})(),i.format.Hex})})(Nu)),Nu.exports}var Fu={exports:{}},_C=Fu.exports,gg;function wC(){return gg||(gg=1,(function(n,s){(function(i,l,c){n.exports=l(xt(),ss(),as(),Ao(),An())})(_C,function(i){return(function(){var l=i,c=l.lib,u=c.BlockCipher,p=l.algo,d=[],g=[],m=[],x=[],A=[],_=[],k=[],D=[],C=[],w=[];(function(){for(var P=[],F=0;F<256;F++)F<128?P[F]=F<<1:P[F]=F<<1^283;for(var M=0,z=0,F=0;F<256;F++){var H=z^z<<1^z<<2^z<<3^z<<4;H=H>>>8^H&255^99,d[M]=H,g[H]=M;var I=P[M],K=P[I],V=P[K],W=P[H]*257^H*16843008;m[M]=W<<24|W>>>8,x[M]=W<<16|W>>>16,A[M]=W<<8|W>>>24,_[M]=W;var W=V*16843009^K*65537^I*257^M*16843008;k[H]=W<<24|W>>>8,D[H]=W<<16|W>>>16,C[H]=W<<8|W>>>24,w[H]=W,M?(M=I^P[P[P[V^I]]],z^=P[P[z]]):M=z=1}})();var S=[0,1,2,4,8,16,32,64,128,27,54],B=p.AES=u.extend({_doReset:function(){var P;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var F=this._keyPriorReset=this._key,M=F.words,z=F.sigBytes/4,H=this._nRounds=z+6,I=(H+1)*4,K=this._keySchedule=[],V=0;V<I;V++)V<z?K[V]=M[V]:(P=K[V-1],V%z?z>6&&V%z==4&&(P=d[P>>>24]<<24|d[P>>>16&255]<<16|d[P>>>8&255]<<8|d[P&255]):(P=P<<8|P>>>24,P=d[P>>>24]<<24|d[P>>>16&255]<<16|d[P>>>8&255]<<8|d[P&255],P^=S[V/z|0]<<24),K[V]=K[V-z]^P);for(var W=this._invKeySchedule=[],Q=0;Q<I;Q++){var V=I-Q;if(Q%4)var P=K[V];else var P=K[V-4];Q<4||V<=4?W[Q]=P:W[Q]=k[d[P>>>24]]^D[d[P>>>16&255]]^C[d[P>>>8&255]]^w[d[P&255]]}}},encryptBlock:Line truncated
• Timestamp (4 bytes) - send time as unix timestamp
• Request Type (1 byte) - type of request (GetStats, GetTelemetryData, etc.)
• Request Data (remaining bytes) - additional request-specific data`,startByte:d+g,endByte:d+u.length-1,value:_});const k={type:n.PayloadType.Request,version:n.PayloadVersion.Version1,isValid:!0,timestamp:0,requestType:n.RequestType.GetStats,requestData:"",destinationHash:m,sourceHash:x,cipherMac:A,ciphertext:_};return c!=null&&c.includeSegments&&(k.segments=p),k}catch(p){return{type:n.PayloadType.Request,version:n.PayloadVersion.Version1,isValid:!1,errors:[p instanceof Error?p.message:"Failed to decode request payload"],timestamp:0,requestType:n.RequestType.GetStats,requestData:"",destinationHash:"",sourceHash:"",cipherMac:"",ciphertext:""}}}}return ll.RequestPayloadDecoder=i,ll}var ul={},jg;function iE(){if(jg)return ul;jg=1,Object.defineProperty(ul,"__esModule",{value:!0}),ul.ResponsePayloadDecoder=void 0;const n=dr(),s=bn();class i{static decode(u,c){try{if(u.length<4){const D={type:n.PayloadType.Response,version:n.PayloadVersion.Version1,isValid:!1,errors:["Response payload too short (minimum 4 bytes: dest + source + MAC)"],destinationHash:"",sourceHash:"",cipherMac:"",ciphertext:"",ciphertextLength:0};return c!=null&&c.includeSegments&&(D.segments=[{name:"Invalid Response Data",description:"Response payload too short (minimum 4 bytes required)",startByte:c.segmentOffset||0,endByte:(c.segmentOffset||0)+u.length-1,value:(0,s.bytesToHex)(u)}]),D}const p=[],d=(c==null?void 0:c.segmentOffset)||0;let g=0;const m=(0,s.byteToHex)(u[g]);c!=null&&c.includeSegments&&p.push({name:"Destination Hash",description:"First byte of destination node public key",startByte:d+g,endByte:d+g,value:m}),g+=1;const x=(0,s.byteToHex)(u[g]);c!=null&&c.includeSegments&&p.push({name:"Source Hash",description:"First byte of source node public key",startByte:d+g,endByte:d+g,value:x}),g+=1;const A=(0,s.bytesToHex)(u.subarray(g,g+2));c!=null&&c.includeSegments&&p.push({name:"Cipher MAC",description:"MAC for encrypted data in next field",startByte:d+g,endByte:d+g+1,value:A}),g+=2;const _=(0,s.bytesToHex)(u.subarray(g));c!=null&&c.includeSegments&&u.length>g&&p.push({name:"Ciphertext",description:"Encrypted response data (tag + content)",startByte:d+g,endByte:d+u.length-1,value:_});const k={type:n.PayloadType.Response,version:n.PayloadVersion.Version1,isValid:!0,destinationHash:m,sourceHash:x,cipherMac:A,ciphertext:_,ciphertextLength:u.length-4};return c!=null&&c.includeSegments&&(k.segments=p),k}catch(p){return{type:n.PayloadType.Response,version:n.PayloadVersion.Version1,isValid:!1,errors:[p instanceof Error?p.message:"Failed to decode response payload"],destinationHash:"",sourceHash:"",cipherMac:"",ciphertext:"",ciphertextLength:0}}}}return ul.ResponsePayloadDecoder=i,ul}var cl={},zg;function oE(){if(zg)return cl;zg=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.AnonRequestPayloadDecoder=void 0;const n=dr(),s=bn();class i{static decode(u,c){try{if(u.length<35){const D={type:n.PayloadType.AnonRequest,version:n.PayloadVersion.Version1,isValid:!1,errors:["AnonRequest payload too short (minimum 35 bytes: dest + public key + MAC)"],destinationHash:"",senderPublicKey:"",cipherMac:"",ciphertext:"",ciphertextLength:0};return c!=null&&c.includeSegments&&(D.segments=[{name:"Invalid AnonRequest Data",description:"AnonRequest payload too short (minimum 35 bytes required: 1 for dest hash + 32 for public key + 2 for MAC)",startByte:c.segmentOffset||0,endByte:(c.segmentOffset||0)+u.length-1,value:(0,s.bytesToHex)(u)}]),D}const p=[],d=(c==null?void 0:c.segmentOffset)||0;let g=0;const m=(0,s.byteToHex)(u[0]);c!=null&&c.includeSegments&&p.push({name:"Destination Hash",description:`First byte of destination node public key: 0x${m}`,startByte:d+g,endByte:d+g,value:m}),g+=1;const x=(0,s.bytesToHex)(u.subarray(1,33));c!=null&&c.includeSegments&&p.push({name:"Sender Public Key",description:"Ed25519 public key of the sender (32 bytes)",startByte:d+g,endByte:d+g+31,value:x}),g+=32;const A=(0,s.bytesToHex)(u.subarray(33,35));c!=null&&c.includeSegments&&p.push({name:"Cipher MAC",description:"MAC for encrypted data verification (2 bytes)",startByte:d+g,endByte:d+g+1,value:A}),g+=2;const _=(0,s.bytesToHex)(u.subarray(35));c!=null&&c.includeSegments&&u.length>35&&p.push({name:"Ciphertext",description:`Encrypted message data (${u.length-35} bytes). Contains encrypted plaintext with this structure:
• Request Data (remaining bytes) - additional request-specific data`,startByte:d+g,endByte:d+c.length-1,value:_});const k={type:n.PayloadType.Request,version:n.PayloadVersion.Version1,isValid:!0,timestamp:0,requestType:n.RequestType.GetStats,requestData:"",destinationHash:m,sourceHash:x,cipherMac:A,ciphertext:_};return u!=null&&u.includeSegments&&(k.segments=p),k}catch(p){return{type:n.PayloadType.Request,version:n.PayloadVersion.Version1,isValid:!1,errors:[p instanceof Error?p.message:"Failed to decode request payload"],timestamp:0,requestType:n.RequestType.GetStats,requestData:"",destinationHash:"",sourceHash:"",cipherMac:"",ciphertext:""}}}}return ll.RequestPayloadDecoder=i,ll}var cl={},jg;function iE(){if(jg)return cl;jg=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.ResponsePayloadDecoder=void 0;const n=dr(),s=bn();class i{static decode(c,u){try{if(c.length<4){const D={type:n.PayloadType.Response,version:n.PayloadVersion.Version1,isValid:!1,errors:["Response payload too short (minimum 4 bytes: dest + source + MAC)"],destinationHash:"",sourceHash:"",cipherMac:"",ciphertext:"",ciphertextLength:0};return u!=null&&u.includeSegments&&(D.segments=[{name:"Invalid Response Data",description:"Response payload too short (minimum 4 bytes required)",startByte:u.segmentOffset||0,endByte:(u.segmentOffset||0)+c.length-1,value:(0,s.bytesToHex)(c)}]),D}const p=[],d=(u==null?void 0:u.segmentOffset)||0;let g=0;const m=(0,s.byteToHex)(c[g]);u!=null&&u.includeSegments&&p.push({name:"Destination Hash",description:"First byte of destination node public key",startByte:d+g,endByte:d+g,value:m}),g+=1;const x=(0,s.byteToHex)(c[g]);u!=null&&u.includeSegments&&p.push({name:"Source Hash",description:"First byte of source node public key",startByte:d+g,endByte:d+g,value:x}),g+=1;const A=(0,s.bytesToHex)(c.subarray(g,g+2));u!=null&&u.includeSegments&&p.push({name:"Cipher MAC",description:"MAC for encrypted data in next field",startByte:d+g,endByte:d+g+1,value:A}),g+=2;const _=(0,s.bytesToHex)(c.subarray(g));u!=null&&u.includeSegments&&c.length>g&&p.push({name:"Ciphertext",description:"Encrypted response data (tag + content)",startByte:d+g,endByte:d+c.length-1,value:_});const k={type:n.PayloadType.Response,version:n.PayloadVersion.Version1,isValid:!0,destinationHash:m,sourceHash:x,cipherMac:A,ciphertext:_,ciphertextLength:c.length-4};return u!=null&&u.includeSegments&&(k.segments=p),k}catch(p){return{type:n.PayloadType.Response,version:n.PayloadVersion.Version1,isValid:!1,errors:[p instanceof Error?p.message:"Failed to decode response payload"],destinationHash:"",sourceHash:"",cipherMac:"",ciphertext:"",ciphertextLength:0}}}}return cl.ResponsePayloadDecoder=i,cl}var ul={},zg;function oE(){if(zg)return ul;zg=1,Object.defineProperty(ul,"__esModule",{value:!0}),ul.AnonRequestPayloadDecoder=void 0;const n=dr(),s=bn();class i{static decode(c,u){try{if(c.length<35){const D={type:n.PayloadType.AnonRequest,version:n.PayloadVersion.Version1,isValid:!1,errors:["AnonRequest payload too short (minimum 35 bytes: dest + public key + MAC)"],destinationHash:"",senderPublicKey:"",cipherMac:"",ciphertext:"",ciphertextLength:0};return u!=null&&u.includeSegments&&(D.segments=[{name:"Invalid AnonRequest Data",description:"AnonRequest payload too short (minimum 35 bytes required: 1 for dest hash + 32 for public key + 2 for MAC)",startByte:u.segmentOffset||0,endByte:(u.segmentOffset||0)+c.length-1,value:(0,s.bytesToHex)(c)}]),D}const p=[],d=(u==null?void 0:u.segmentOffset)||0;let g=0;const m=(0,s.byteToHex)(c[0]);u!=null&&u.includeSegments&&p.push({name:"Destination Hash",description:`First byte of destination node public key: 0x${m}`,startByte:d+g,endByte:d+g,value:m}),g+=1;const x=(0,s.bytesToHex)(c.subarray(1,33));u!=null&&u.includeSegments&&p.push({name:"Sender Public Key",description:"Ed25519 public key of the sender (32 bytes)",startByte:d+g,endByte:d+g+31,value:x}),g+=32;const A=(0,s.bytesToHex)(c.subarray(33,35));u!=null&&u.includeSegments&&p.push({name:"Cipher MAC",description:"MAC for encrypted data verification (2 bytes)",startByte:d+g,endByte:d+g+1,value:A}),g+=2;const _=(0,s.bytesToHex)(c.subarray(35));u!=null&&u.includeSegments&&c.length>35&&p.push({name:"Ciphertext",description:`Encrypted message data (${c.length-35} bytes). Contains encrypted plaintext with this structure:
• Timestamp (4 bytes) - send time as unix timestamp
• Sync Timestamp (4 bytes) - room server only, sender's "sync messages SINCE x" timestamp
• Password (remaining bytes) - password for repeater/room`,startByte:d+g,endByte:d+u.length-1,value:_});const k={type:n.PayloadType.AnonRequest,version:n.PayloadVersion.Version1,isValid:!0,destinationHash:m,senderPublicKey:x,cipherMac:A,ciphertext:_,ciphertextLength:u.length-35};return c!=null&&c.includeSegments&&(k.segments=p),k}catch(p){return{type:n.PayloadType.AnonRequest,version:n.PayloadVersion.Version1,isValid:!1,errors:[p instanceof Error?p.message:"Failed to decode AnonRequest payload"],destinationHash:"",senderPublicKey:"",cipherMac:"",ciphertext:"",ciphertextLength:0}}}}return cl.AnonRequestPayloadDecoder=i,cl}var dl={},Hg;function sE(){if(Hg)return dl;Hg=1,Object.defineProperty(dl,"__esModule",{value:!0}),dl.AckPayloadDecoder=void 0;const n=dr(),s=bn();class i{static decode(u,c){try{if(u.length<4){const x={type:n.PayloadType.Ack,version:n.PayloadVersion.Version1,isValid:!1,errors:["Ack payload too short (minimum 4 bytes for checksum)"],checksum:""};return c!=null&&c.includeSegments&&(x.segments=[{name:"Invalid Ack Data",description:"Ack payload too short (minimum 4 bytes required for checksum)",startByte:c.segmentOffset||0,endByte:(c.segmentOffset||0)+u.length-1,value:(0,s.bytesToHex)(u)}]),x}const p=[],d=(c==null?void 0:c.segmentOffset)||0,g=(0,s.bytesToHex)(u.subarray(0,4));c!=null&&c.includeSegments&&p.push({name:"Checksum",description:`CRC checksum of message timestamp, text, and sender pubkey: 0x${g}`,startByte:d,endByte:d+3,value:g}),c!=null&&c.includeSegments&&u.length>4&&p.push({name:"Additional Data",description:"Extra data in Ack payload",startByte:d+4,endByte:d+u.length-1,value:(0,s.bytesToHex)(u.subarray(4))});const m={type:n.PayloadType.Ack,version:n.PayloadVersion.Version1,isValid:!0,checksum:g};return c!=null&&c.includeSegments&&(m.segments=p),m}catch(p){return{type:n.PayloadType.Ack,version:n.PayloadVersion.Version1,isValid:!1,errors:[p instanceof Error?p.message:"Failed to decode Ack payload"],checksum:""}}}}return dl.AckPayloadDecoder=i,dl}var fl={},Vg;function aE(){if(Vg)return fl;Vg=1,Object.defineProperty(fl,"__esModule",{value:!0}),fl.PathPayloadDecoder=void 0;const n=dr(),s=bn();class i{static decode(u){try{if(u.length<2)return{type:n.PayloadType.Path,version:n.PayloadVersion.Version1,isValid:!1,errors:["Path payload too short (minimum 2 bytes: path length + extra type)"],pathLength:0,pathHashes:[],extraType:0,extraData:""};const c=u[0];if(u.length<1+c+1)return{type:n.PayloadType.Path,version:n.PayloadVersion.Version1,isValid:!1,errors:[`Path payload too short (need ${1+c+1} bytes for path length + path + extra type)`],pathLength:c,pathHashes:[],extraType:0,extraData:""};const p=[];for(let m=0;m<c;m++)p.push((0,s.byteToHex)(u[1+m]));const d=u[1+c];let g="";return u.length>1+c+1&&(g=(0,s.bytesToHex)(u.subarray(1+c+1))),{type:n.PayloadType.Path,version:n.PayloadVersion.Version1,isValid:!0,pathLength:c,pathHashes:p,extraType:d,extraData:g}}catch(c){return{type:n.PayloadType.Path,version:n.PayloadVersion.Version1,isValid:!1,errors:[c instanceof Error?c.message:"Failed to decode Path payload"],pathLength:0,pathHashes:[],extraType:0,extraData:""}}}}return fl.PathPayloadDecoder=i,fl}var hl={},Ug;function lE(){if(Ug)return hl;Ug=1,Object.defineProperty(hl,"__esModule",{value:!0}),hl.TextMessagePayloadDecoder=void 0;const n=dr(),s=bn();class i{static decode(u,c){try{if(u.length<4){const D={type:n.PayloadType.TextMessage,version:n.PayloadVersion.Version1,isValid:!1,errors:["TextMessage payload too short (minimum 4 bytes: dest + source + MAC)"],destinationHash:"",sourceHash:"",cipherMac:"",ciphertext:"",ciphertextLength:0};return c!=null&&c.includeSegments&&(D.segments=[{name:"Invalid TextMessage Data",description:"TextMessage payload too short (minimum 4 bytes required)",startByte:c.segmentOffset||0,endByte:(c.segmentOffset||0)+u.length-1,value:(0,s.bytesToHex)(u)}]),D}const p=[],d=(c==null?void 0:c.segmentOffset)||0;let g=0;const m=(0,s.byteToHex)(u[g]);c!=null&&c.includeSegments&&p.push({name:"Destination Hash",description:"First byte of destination node public key",startByte:d+g,endByte:d+g,value:m}),g+=1;const x=(0,s.byteToHex)(u[g]);c!=null&&c.includeSegments&&p.push({name:"Source Hash",description:"First byte of source node public key",startByte:d+g,endByte:d+g,value:x}),g+=1;const A=(0,s.bytesToHex)(u.subarray(g,g+2));c!=null&&c.includeSegments&&p.push({name:"Cipher MAC",description:"MAC for encrypted data in next field",startByte:d+g,endByte:d+g+1,value:A}),g+=2;const _=(0,s.bytesToHex)(u.subarray(g));c!=null&&c.includeSegments&&u.length>g&&p.push({name:"Ciphertext",description:"Encrypted message data (timestamp + message text)",startByte:d+g,endByte:d+u.length-1,value:_});const k={type:n.PayloadType.TextMessage,version:n.PayloadVersion.Version1,isValid:!0,destinationHash:m,sourceHash:x,cipherMac:A,ciphertext:_,ciphertextLength:u.length-4};return c!=null&&c.includeSegments&&(k.segments=p),k}catch(p){return{type:n.PayloadType.TextMessage,version:n.PayloadVersion.Version1,i Line truncated
• Password (remaining bytes) - password for repeater/room`,startByte:d+g,endByte:d+c.length-1,value:_});const k={type:n.PayloadType.AnonRequest,version:n.PayloadVersion.Version1,isValid:!0,destinationHash:m,senderPublicKey:x,cipherMac:A,ciphertext:_,ciphertextLength:c.length-35};return u!=null&&u.includeSegments&&(k.segments=p),k}catch(p){return{type:n.PayloadType.AnonRequest,version:n.PayloadVersion.Version1,isValid:!1,errors:[p instanceof Error?p.message:"Failed to decode AnonRequest payload"],destinationHash:"",senderPublicKey:"",cipherMac:"",ciphertext:"",ciphertextLength:0}}}}return ul.AnonRequestPayloadDecoder=i,ul}var dl={},Hg;function sE(){if(Hg)return dl;Hg=1,Object.defineProperty(dl,"__esModule",{value:!0}),dl.AckPayloadDecoder=void 0;const n=dr(),s=bn();class i{static decode(c,u){try{if(c.length<4){const x={type:n.PayloadType.Ack,version:n.PayloadVersion.Version1,isValid:!1,errors:["Ack payload too short (minimum 4 bytes for checksum)"],checksum:""};return u!=null&&u.includeSegments&&(x.segments=[{name:"Invalid Ack Data",description:"Ack payload too short (minimum 4 bytes required for checksum)",startByte:u.segmentOffset||0,endByte:(u.segmentOffset||0)+c.length-1,value:(0,s.bytesToHex)(c)}]),x}const p=[],d=(u==null?void 0:u.segmentOffset)||0,g=(0,s.bytesToHex)(c.subarray(0,4));u!=null&&u.includeSegments&&p.push({name:"Checksum",description:`CRC checksum of message timestamp, text, and sender pubkey: 0x${g}`,startByte:d,endByte:d+3,value:g}),u!=null&&u.includeSegments&&c.length>4&&p.push({name:"Additional Data",description:"Extra data in Ack payload",startByte:d+4,endByte:d+c.length-1,value:(0,s.bytesToHex)(c.subarray(4))});const m={type:n.PayloadType.Ack,version:n.PayloadVersion.Version1,isValid:!0,checksum:g};return u!=null&&u.includeSegments&&(m.segments=p),m}catch(p){return{type:n.PayloadType.Ack,version:n.PayloadVersion.Version1,isValid:!1,errors:[p instanceof Error?p.message:"Failed to decode Ack payload"],checksum:""}}}}return dl.AckPayloadDecoder=i,dl}var fl={},Vg;function aE(){if(Vg)return fl;Vg=1,Object.defineProperty(fl,"__esModule",{value:!0}),fl.PathPayloadDecoder=void 0;const n=dr(),s=bn();class i{static decode(c){try{if(c.length<2)return{type:n.PayloadType.Path,version:n.PayloadVersion.Version1,isValid:!1,errors:["Path payload too short (minimum 2 bytes: path length + extra type)"],pathLength:0,pathHashes:[],extraType:0,extraData:""};const u=c[0];if(c.length<1+u+1)return{type:n.PayloadType.Path,version:n.PayloadVersion.Version1,isValid:!1,errors:[`Path payload too short (need ${1+u+1} bytes for path length + path + extra type)`],pathLength:u,pathHashes:[],extraType:0,extraData:""};const p=[];for(let m=0;m<u;m++)p.push((0,s.byteToHex)(c[1+m]));const d=c[1+u];let g="";return c.length>1+u+1&&(g=(0,s.bytesToHex)(c.subarray(1+u+1))),{type:n.PayloadType.Path,version:n.PayloadVersion.Version1,isValid:!0,pathLength:u,pathHashes:p,extraType:d,extraData:g}}catch(u){return{type:n.PayloadType.Path,version:n.PayloadVersion.Version1,isValid:!1,errors:[u instanceof Error?u.message:"Failed to decode Path payload"],pathLength:0,pathHashes:[],extraType:0,extraData:""}}}}return fl.PathPayloadDecoder=i,fl}var hl={},Ug;function lE(){if(Ug)return hl;Ug=1,Object.defineProperty(hl,"__esModule",{value:!0}),hl.TextMessagePayloadDecoder=void 0;const n=dr(),s=bn();class i{static decode(c,u){try{if(c.length<4){const D={type:n.PayloadType.TextMessage,version:n.PayloadVersion.Version1,isValid:!1,errors:["TextMessage payload too short (minimum 4 bytes: dest + source + MAC)"],destinationHash:"",sourceHash:"",cipherMac:"",ciphertext:"",ciphertextLength:0};return u!=null&&u.includeSegments&&(D.segments=[{name:"Invalid TextMessage Data",description:"TextMessage payload too short (minimum 4 bytes required)",startByte:u.segmentOffset||0,endByte:(u.segmentOffset||0)+c.length-1,value:(0,s.bytesToHex)(c)}]),D}const p=[],d=(u==null?void 0:u.segmentOffset)||0;let g=0;const m=(0,s.byteToHex)(c[g]);u!=null&&u.includeSegments&&p.push({name:"Destination Hash",description:"First byte of destination node public key",startByte:d+g,endByte:d+g,value:m}),g+=1;const x=(0,s.byteToHex)(c[g]);u!=null&&u.includeSegments&&p.push({name:"Source Hash",description:"First byte of source node public key",startByte:d+g,endByte:d+g,value:x}),g+=1;const A=(0,s.bytesToHex)(c.subarray(g,g+2));u!=null&&u.includeSegments&&p.push({name:"Cipher MAC",description:"MAC for encrypted data in next field",startByte:d+g,endByte:d+g+1,value:A}),g+=2;const _=(0,s.bytesToHex)(c.subarray(g));u!=null&&u.includeSegments&&c.length>g&&p.push({name:"Ciphertext",description:"Encrypted message data (timestamp + message text)",startByte:d+g,endByte:d+c.length-1,value:_});const k={type:n.PayloadType.TextMessage,version:n.PayloadVersion.Version1,isValid:!0,destinationHash:m,sourceHash:x,cipherMac:A,ciphertext:_,ciphertextLength:c.length-4};return u!=null&&u.includeSegments&&(k.segments=p),k}catch(p){return{type:n.PayloadType.TextMessage,version:n.PayloadVersion.Version1,i Line truncated
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/var CE=gl.exports,Qg;function EE(){return Qg||(Qg=1,(function(n,s){(function(i,l){l(s)})(CE,(function(i){var l="1.9.4";function u(t){var o,f,v,T;for(f=1,v=arguments.length;f<v;f++){T=arguments[f];for(o in T)t[o]=T[o]}return t}var c=Object.create||(function(){function t(){}return function(o){return t.prototype=o,new t}})();function p(t,o){var f=Array.prototype.slice;if(t.bind)return t.bind.apply(t,f.call(arguments,1));var v=f.call(arguments,2);return function(){return t.apply(o,v.length?v.concat(f.call(arguments)):arguments)}}var d=0;function g(t){return"_leaflet_id"in t||(t._leaflet_id=++d),t._leaflet_id}function m(t,o,f){var v,T,z,J;return J=function(){v=!1,T&&(z.apply(f,T),T=!1)},z=function(){v?T=arguments:(t.apply(f,arguments),setTimeout(J,o),v=!0)},z}function x(t,o,f){var v=o[1],T=o[0],z=v-T;return t===v&&f?t:((t-T)%z+z)%z+T}function A(){return!1}function _(t,o){if(o===!1)return t;var f=Math.pow(10,o===void 0?6:o);return Math.round(t*f)/f}function k(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function D(t){return k(t).split(/\s+/)}function C(t,o){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?c(t.options):{});for(var f in o)t.options[f]=o[f];return t.options}function w(t,o,f){var v=[];for(var T in t)v.push(encodeURIComponent(f?T.toUpperCase():T)+"="+encodeURIComponent(t[T]));return(!o||o.indexOf("?")===-1?"?":"&")+v.join("&")}var S=/\{ *([\w_ -]+) *\}/g;function B(t,o){return t.replace(S,function(f,v){var T=o[v];if(T===void 0)throw new Error("No value provided for variable "+f);return typeof T=="function"&&(T=T(o)),T})}var P=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function F(t,o){for(var f=0;f<t.length;f++)if(t[f]===o)return f;return-1}var M="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function H(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var O=0;function I(t){var o=+new Date,f=Math.max(0,16-(o-O));return O=o+f,window.setTimeout(t,f)}var X=window.requestAnimationFrame||H("RequestAnimationFrame")||I,V=window.cancelAnimationFrame||H("CancelAnimationFrame")||H("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function Z(t,o,f){if(f&&X===I)t.call(o);else return X.call(window,p(t,o))}function K(t){t&&V.call(window,t)}var W={__proto__:null,extend:u,create:c,bind:p,get lastId(){return d},stamp:g,throttle:m,wrapNum:x,falseFn:A,formatNum:_,trim:k,splitWords:D,setOptions:C,getParamString:w,template:B,isArray:P,indexOf:F,emptyImageUrl:M,requestFn:X,cancelFn:V,requestAnimFrame:Z,cancelAnimFrame:K};function ne(){}ne.extend=function(t){var o=function(){C(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},f=o.__super__=this.prototype,v=c(f);v.constructor=o,o.prototype=v;for(var T in this)Object.prototype.hasOwnProperty.call(this,T)&&T!=="prototype"&&T!=="__super__"&&(o[T]=this[T]);return t.statics&&u(o,t.statics),t.includes&&(ce(t.includes),u.apply(null,[v].concat(t.includes))),u(v,t),delete v.statics,delete v.includes,v.options&&(v.options=f.options?c(f.options):{},u(v.options,t.options)),v._initHooks=[],v.callInitHooks=function(){if(!this._initHooksCalled){f.callInitHooks&&f.callInitHooks.call(this),this._initHooksCalled=!0;for(var z=0,J=v._initHooks.length;z<J;z++)v._initHooks[z].call(this)}},o},ne.include=function(t){var o=this.prototype.options;return u(this.prototype,t),t.options&&(this.prototype.options=o,this.mergeOptions(t.options)),this},ne.mergeOptions=function(t){return u(this.prototype.options,t),this},ne.addInitHook=function(t){var o=Array.prototype.slice.call(arguments,1),f=typeof t=="function"?t:function(){this[t].apply(this,o)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(f),this};function ce(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=P(t)?t:[t];for(var o=0;o<t.length;o++)t[o]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Y={on:function(t,o,f){if(typeof t=="object")for(var v in t)this._on(v,t[v],o);else{t=D(t);for(var T=0,z=t.length;T<z;T++)this._on(t[T],o,f)}return this},off:function(t,o,f){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var v in t)this._off(v,t[v],o);else{t=D(t);for(var T=arguments.length===1,z=0,J=t.length;z<J;z++)T?this._off(t[z]):this._off(t[z],o,f)}return this},_on:function(t,o,f,v){if(typeof o!="function"){console.warn("wrong listener type: "+typeof o);return}if(this._listens(t,o,f)===!1){f===this&&(f=void 0);var T={fn:o,ctx:f};v&&(T.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(T)}},_off:function(t,o,f){var v,T,z;if(this._events&&(v=this._events[t],!!v)){if(arguments.length===1){if(this._firingCount)for(T=0,z=v.length;T<z;T++)v[T].fn=A;delete this._events[t];return}if(typeof o!="function"){console.warn("wrong listener type: "+typeof o);return}var J=this._liLine truncated
*/var CE=gl.exports,Qg;function EE(){return Qg||(Qg=1,(function(n,s){(function(i,l){l(s)})(CE,(function(i){var l="1.9.4";function c(t){var o,f,v,T;for(f=1,v=arguments.length;f<v;f++){T=arguments[f];for(o in T)t[o]=T[o]}return t}var u=Object.create||(function(){function t(){}return function(o){return t.prototype=o,new t}})();function p(t,o){var f=Array.prototype.slice;if(t.bind)return t.bind.apply(t,f.call(arguments,1));var v=f.call(arguments,2);return function(){return t.apply(o,v.length?v.concat(f.call(arguments)):arguments)}}var d=0;function g(t){return"_leaflet_id"in t||(t._leaflet_id=++d),t._leaflet_id}function m(t,o,f){var v,T,j,J;return J=function(){v=!1,T&&(j.apply(f,T),T=!1)},j=function(){v?T=arguments:(t.apply(f,arguments),setTimeout(J,o),v=!0)},j}function x(t,o,f){var v=o[1],T=o[0],j=v-T;return t===v&&f?t:((t-T)%j+j)%j+T}function A(){return!1}function _(t,o){if(o===!1)return t;var f=Math.pow(10,o===void 0?6:o);return Math.round(t*f)/f}function k(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function D(t){return k(t).split(/\s+/)}function C(t,o){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?u(t.options):{});for(var f in o)t.options[f]=o[f];return t.options}function w(t,o,f){var v=[];for(var T in t)v.push(encodeURIComponent(f?T.toUpperCase():T)+"="+encodeURIComponent(t[T]));return(!o||o.indexOf("?")===-1?"?":"&")+v.join("&")}var S=/\{ *([\w_ -]+) *\}/g;function B(t,o){return t.replace(S,function(f,v){var T=o[v];if(T===void 0)throw new Error("No value provided for variable "+f);return typeof T=="function"&&(T=T(o)),T})}var P=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function F(t,o){for(var f=0;f<t.length;f++)if(t[f]===o)return f;return-1}var M="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function z(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var H=0;function I(t){var o=+new Date,f=Math.max(0,16-(o-H));return H=o+f,window.setTimeout(t,f)}var K=window.requestAnimationFrame||z("RequestAnimationFrame")||I,V=window.cancelAnimationFrame||z("CancelAnimationFrame")||z("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function W(t,o,f){if(f&&K===I)t.call(o);else return K.call(window,p(t,o))}function Q(t){t&&V.call(window,t)}var U={__proto__:null,extend:c,create:u,bind:p,get lastId(){return d},stamp:g,throttle:m,wrapNum:x,falseFn:A,formatNum:_,trim:k,splitWords:D,setOptions:C,getParamString:w,template:B,isArray:P,indexOf:F,emptyImageUrl:M,requestFn:K,cancelFn:V,requestAnimFrame:W,cancelAnimFrame:Q};function te(){}te.extend=function(t){var o=function(){C(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},f=o.__super__=this.prototype,v=u(f);v.constructor=o,o.prototype=v;for(var T in this)Object.prototype.hasOwnProperty.call(this,T)&&T!=="prototype"&&T!=="__super__"&&(o[T]=this[T]);return t.statics&&c(o,t.statics),t.includes&&(ce(t.includes),c.apply(null,[v].concat(t.includes))),c(v,t),delete v.statics,delete v.includes,v.options&&(v.options=f.options?u(f.options):{},c(v.options,t.options)),v._initHooks=[],v.callInitHooks=function(){if(!this._initHooksCalled){f.callInitHooks&&f.callInitHooks.call(this),this._initHooksCalled=!0;for(var j=0,J=v._initHooks.length;j<J;j++)v._initHooks[j].call(this)}},o},te.include=function(t){var o=this.prototype.options;return c(this.prototype,t),t.options&&(this.prototype.options=o,this.mergeOptions(t.options)),this},te.mergeOptions=function(t){return c(this.prototype.options,t),this},te.addInitHook=function(t){var o=Array.prototype.slice.call(arguments,1),f=typeof t=="function"?t:function(){this[t].apply(this,o)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(f),this};function ce(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=P(t)?t:[t];for(var o=0;o<t.length;o++)t[o]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var X={on:function(t,o,f){if(typeof t=="object")for(var v in t)this._on(v,t[v],o);else{t=D(t);for(var T=0,j=t.length;T<j;T++)this._on(t[T],o,f)}return this},off:function(t,o,f){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var v in t)this._off(v,t[v],o);else{t=D(t);for(var T=arguments.length===1,j=0,J=t.length;j<J;j++)T?this._off(t[j]):this._off(t[j],o,f)}return this},_on:function(t,o,f,v){if(typeof o!="function"){console.warn("wrong listener type: "+typeof o);return}if(this._listens(t,o,f)===!1){f===this&&(f=void 0);var T={fn:o,ctx:f};v&&(T.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(T)}},_off:function(t,o,f){var v,T,j;if(this._events&&(v=this._events[t],!!v)){if(arguments.length===1){if(this._firingCount)for(T=0,j=v.length;T<j;T++)v[T].fn=A;delete this._events[t];return}if(typeof o!="function"){console.warn("wrong listener type: "+typeof o);return}var J=this._liLine truncated
// SHA256 round constants
const K: array<u32, 64> = array<u32, 64>(
0x428a2f98u, 0x71374491u, 0xb5c0fbcfu, 0xe9b5dba5u, 0x3956c25bu, 0x59f111f1u, 0x923f82a4u, 0xab1c5ed5u,
@@ -531,12 +531,12 @@ fn main(@builtin(global_invocation_id) global_id: vec3<u32>) {
process_candidate(name_idx);
}
}
`}async init(){if(!navigator.gpu)return console.warn("WebGPU not supported"),!1;try{const s=await navigator.gpu.requestAdapter();if(!s)return console.warn("No GPU adapter found"),!1;this.device=await s.requestDevice(),this.bindGroupLayout=this.device.createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage.COMPUTE,buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage.COMPUTE,buffer:{type:"storage"}},{binding:2,visibility:GPUShaderStage.COMPUTE,buffer:{type:"storage"}},{binding:3,visibility:GPUShaderStage.COMPUTE,buffer:{type:"read-only-storage"}}]}),this.paramsBuffer=this.device.createBuffer({size:32,usage:GPUBufferUsage.UNIFORM|GPUBufferUsage.COPY_DST}),this.matchCountBuffer=this.device.createBuffer({size:4,usage:GPUBufferUsage.STORAGE|GPUBufferUsage.COPY_SRC|GPUBufferUsage.COPY_DST}),this.matchIndicesBuffer=this.device.createBuffer({size:1024*4,usage:GPUBufferUsage.STORAGE|GPUBufferUsage.COPY_SRC});for(let u=0;u<2;u++)this.matchCountReadBuffers[u]=this.device.createBuffer({size:4,usage:GPUBufferUsage.MAP_READ|GPUBufferUsage.COPY_DST}),this.matchIndicesReadBuffers[u]=this.device.createBuffer({size:1024*4,usage:GPUBufferUsage.MAP_READ|GPUBufferUsage.COPY_DST});const i=this.device.createShaderModule({code:this.shaderCode}),l=this.device.createPipelineLayout({bindGroupLayouts:[this.bindGroupLayout]});return this.pipeline=this.device.createComputePipeline({layout:l,compute:{module:i,entryPoint:"main"}}),!0}catch(s){return console.error("WebGPU initialization failed:",s),!1}}isAvailable(){return this.device!==null&&this.pipeline!==null}indexToRoomName(s,i){return Jo(i,s)}countNamesForLength(s){return vl(s)}async runBatch(s,i,l,u,c,p){if(!this.device||!this.pipeline||!this.bindGroupLayout||!this.paramsBuffer||!this.matchCountBuffer||!this.matchIndicesBuffer||!this.matchCountReadBuffers[0]||!this.matchCountReadBuffers[1]||!this.matchIndicesReadBuffers[0]||!this.matchIndicesReadBuffers[1])throw new Error("GPU not initialized");const d=this.currentReadBufferIndex;this.currentReadBufferIndex=1-this.currentReadBufferIndex;const g=this.matchCountReadBuffers[d],m=this.matchIndicesReadBuffers[d],x=c&&p?1:0;let A,_=0,k=0;if(x){const M=new Uint8Array(c.length/2);for(let V=0;V<M.length;V++)M[V]=parseInt(c.substr(V*2,2),16);_=M.length*8;const H=Math.ceil(M.length/4)*4,O=new Uint8Array(H);O.set(M),A=new Uint32Array(H/4);for(let V=0;V<A.length;V++)A[V]=O[V*4]<<24|O[V*4+1]<<16|O[V*4+2]<<8|O[V*4+3];const I=parseInt(p.substr(0,2),16),X=parseInt(p.substr(2,2),16);k=I<<24|X<<16}else A=new Uint32Array([0]);const D=Math.max(A.length*4,4);(!this.ciphertextBuffer||this.ciphertextBufferSize<D)&&(this.ciphertextBuffer&&this.ciphertextBuffer.destroy(),this.ciphertextBuffer=this.device.createBuffer({size:D,usage:GPUBufferUsage.STORAGE|GPUBufferUsage.COPY_DST}),this.ciphertextBufferSize=D,this.bindGroupDirty=!0);const C=new Uint32Array([s,l,i,u,k,A.length,_,x]);this.device.queue.writeBuffer(this.paramsBuffer,0,C),this.device.queue.writeBuffer(this.ciphertextBuffer,0,A),this.device.queue.writeBuffer(this.matchCountBuffer,0,bd.ZERO_DATA),(this.bindGroupDirty||!this.bindGroup)&&(this.bindGroup=this.device.createBindGroup({layout:this.bindGroupLayout,entries:[{binding:0,resource:{buffer:this.paramsBuffer}},{binding:1,resource:{buffer:this.matchCountBuffer}},{binding:2,resource:{buffer:this.matchIndicesBuffer}},{binding:3,resource:{buffer:this.ciphertextBuffer}}]}),this.bindGroupDirty=!1);const w=this.device.createCommandEncoder(),S=w.beginComputePass();S.setPipeline(this.pipeline),S.setBindGroup(0,this.bindGroup),S.dispatchWorkgroups(Math.ceil(u/(256*32))),S.end(),w.copyBufferToBuffer(this.matchCountBuffer,0,g,0,4),w.copyBufferToBuffer(this.matchIndicesBuffer,0,m,0,1024*4),this.device.queue.submit([w.finish()]),await g.mapAsync(GPUMapMode.READ);const P=new Uint32Array(g.getMappedRange())[0];g.unmap();const F=[];if(P>0){await m.mapAsync(GPUMapMode.READ);const M=new Uint32Array(m.getMappedRange());for(let H=0;H<Math.min(P,1024);H++)F.push(M[H]);m.unmap()}return F}destroy(){var s,i,l,u,c,p,d,g;(s=this.paramsBuffer)==null||s.destroy(),(i=this.matchCountBuffer)==null||i.destroy(),(l=this.matchIndicesBuffer)==null||l.destroy(),(u=this.ciphertextBuffer)==null||u.destroy(),(c=this.matchCountReadBuffers[0])==null||c.destroy(),(p=this.matchCountReadBuffers[1])==null||p.destroy(),(d=this.matchIndicesReadBuffers[0])==null||d.destroy(),(g=this.matchIndicesReadBuffers[1])==null||g.destroy(),this.paramsBuffer=null,this.matchCountBuffer=null,this.matchIndicesBuffer=null,this.ciphertextBuffer=null,this.ciphertextBufferSize=0,this.matchCountReadBuffers=[null,null],this.matchIndicesReadBuffers=[null,null],this.currentReadBufferIndex=0,this.bindGroup=null,this.bindGroupDirty=!0,this.device&&(this.device.destroy(),this.device=null),this.pipeline=null,this.bindGroupLayout=null}}bd.ZERO_DATA=new Uint32Array([0]);function tS(){return typeof navigator<"u"&&"gpu"in navigator}class fx{runBatch(s,i,l,u,c,p){const d=[],g=s.toString(16).padStart(2,"0") Line truncated
`).map(c=>c.trim().toLowerCase()).filter(c=>c.length>0);this.wordlist=u.filter(hx)}setWordlist(s){this.wordlist=s.map(i=>i.trim().toLowerCase()).filter(hx)}abort(){this.abortFlag=!0}isGpuAvailable(){return tS()}async decodePacket(s){var l;const i=s.trim().replace(/\s+/g,"").replace(/^0x/i,"");if(!i||!/^[0-9a-fA-F]+$/.test(i))return null;try{const c=(l=(await Ct.MeshCorePacketDecoder.decodeWithVerification(i,{})).payload)==null?void 0:l.decoded;return!(c!=null&&c.channelHash)||!(c!=null&&c.ciphertext)||!(c!=null&&c.cipherMac)?null:{channelHash:c.channelHash,ciphertext:c.ciphertext,cipherMac:c.cipherMac,isGroupText:!0}}catch{return null}}async crack(s,i,l){this.abortFlag=!1,this.useTimestampFilter=(i==null?void 0:i.useTimestampFilter)??!0,this.useUtf8Filter=(i==null?void 0:i.useUtf8Filter)??!0,this.useSenderFilter=(i==null?void 0:i.useSenderFilter)??!0,this.validSeconds=(i==null?void 0:i.validSeconds)??N0,this.useCpu=(i==null?void 0:i.forceCpu)??!1;const u=(i==null?void 0:i.maxLength)??8,c=(i==null?void 0:i.startingLength)??1,p=(i==null?void 0:i.useDictionary)??!0,d=(i==null?void 0:i.startFromType)??"bruteforce",g=s.toLowerCase(),m=await this.decodePacket(g);if(!m)return{found:!1,error:"Invalid packet or not a GroupText packet"};const{channelHash:x,ciphertext:A,cipherMac:_}=m,k=parseInt(x,16);this.useCpu?this.cpuInstance||(this.cpuInstance=new fx):this.gpuInstance||(this.gpuInstance=new bd,await this.gpuInstance.init()||(this.useCpu=!0,this.cpuInstance=new fx));const D=performance.now();let C=0,w=performance.now(),S=c,B=0,P=0,F=!1;if(i!=null&&i.startFrom){const W=i.startFrom.toLowerCase();if(d==="dictionary"){const ne=this.wordlist.indexOf(W);ne>=0&&(P=ne+1)}else{F=!0;const ne=Xk(W);ne&&(S=Math.max(c,ne.length),B=ne.index+1,B>=vl(S)&&(S++,B=0))}}let M=0;p&&!F&&this.wordlist.length>0&&(M+=this.wordlist.length-P);for(let W=S;W<=u;W++)M+=vl(W);M-=B;const H=(W,ne,ce)=>{if(!l)return;const ae=(performance.now()-D)/1e3,G=ae>0?Math.round(C/ae):0,de=M-C,q=G>0?de/G:0;l({checked:C,total:M,percent:M>0?Math.min(100,C/M*100):0,rateKeysPerSec:G,etaSeconds:q,elapsedSeconds:ae,currentLength:ne,currentPosition:ce,phase:W})},O=W=>{if(!Dv(A,_,W))return{valid:!1};const ne=Ct.ChannelCrypto.decryptGroupTextMessage(A,_,W);return!ne.success||!ne.data?{valid:!1}:this.useTimestampFilter&&!Jk(ne.data.timestamp,this.validSeconds)?{valid:!1}:this.useUtf8Filter&&!eS(ne.data.message)?{valid:!1}:this.useSenderFilter&&!ne.data.sender?{valid:!1}:{valid:!0,message:ne.data.sender?`${ne.data.sender}: ${ne.data.message}`:ne.data.message}};if(!F&&P===0&&S===c&&B===0){H("public-key",0,R0);const W=L0(Zc);if(x===W){const ne=O(Zc);if(ne.valid)return{found:!0,roomName:R0,key:Zc,decryptedMessage:ne.message}}}if(p&&!F&&this.wordlist.length>0)for(let W=P;W<this.wordlist.length;W++){if(this.abortFlag)return{found:!1,aborted:!0,resumeFrom:this.wordlist[W],resumeType:"dictionary"};const ne=this.wordlist[W],ce=F0("#"+ne),Y=L0(ce);if(parseInt(Y,16)===k){const G=O(ce);if(G.valid)return{found:!0,roomName:ne,key:ce,decryptedMessage:G.message,resumeFrom:ne,resumeType:"dictionary"}}C++;const ae=performance.now();ae-w>=200&&(H("wordlist",ne.length,ne),w=ae,await new Promise(G=>setTimeout(G,0)))}const I=this.useCpu?1024:32768,X=(i==null?void 0:i.gpuDispatchMs)??1e3;let V=I,Z=!1;for(let W=S;W<=u;W++){if(this.abortFlag)return{found:!1,aborted:!0,resumeFrom:Jo(W,0)||void 0,resumeType:"bruteforce"};const ne=vl(W);let ce=W===S?B:0;for(;ce<ne;){if(this.abortFlag)return{found:!1,aborted:!0,resumeFrom:Jo(W,ce)||void 0,resumeType:"bruteforce"};const Y=Math.min(V,ne-ce),ae=performance.now();let G;this.useCpu?G=this.cpuInstance.runBatch(k,W,ce,Y,A,_):G=await this.gpuInstance.runBatch(k,W,ce,Y,A,_);const de=performance.now()-ae;if(C+=Y,!this.useCpu&&!Z&&Y>=I&&de>0){const N=X/de,U=Math.round(Y*N),$=Math.pow(2,Math.round(Math.log2(Math.max(I,U))));V=Math.max(I,$),Z=!0}for(const N of G){const U=Jo(W,N);if(!U)continue;const $=F0("#"+U),ee=O($);if(ee.valid)return{found:!0,roomName:U,key:$,decryptedMessage:ee.message,resumeFrom:U,resumeType:"bruteforce"}}ce+=Y;const q=performance.now();if(q-w>=200){const N=Jo(W,Math.min(ce,ne-1))||"";H("bruteforce",W,N),w=q,await new Promise(U=>setTimeout(U,0))}}}return{found:!1,resumeFrom:Jo(u,vl(u)-1)||void 0,resumeType:"bruteforce"}}destroy(){this.gpuInstance&&(this.gpuInstance.destroy(),this.gpuInstance=null),this.cpuInstance&&(this.cpuInstance.destroy(),this.cpuInstance=null)}}var m0,px;function sS(){return px||(px=1,m0={webm:"data:video/webm;base64,GkXfowEAAAAAAAAfQoaBAUL3gQFC8oEEQvOBCEKChHdlYm1Ch4EEQoWBAhhTgGcBAAAAAAAVkhFNm3RALE27i1OrhBVJqWZTrIHfTbuMU6uEFlSua1OsggEwTbuMU6uEHFO7a1OsghV17AEAAAAAAACkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmAQAAAAAAAEUq17GDD0JATYCNTGF2ZjU1LjMzLjEwMFdBjUxhdmY1NS4zMy4xMDBzpJBlrrXf3DCDVB8KcgbMpcr+RImIQJBgAAAAAAAWVK5rAQAAAAAAD++uAQAAAAAAAD Line truncated
`}async init(){if(!navigator.gpu)return console.warn("WebGPU not supported"),!1;try{const s=await navigator.gpu.requestAdapter();if(!s)return console.warn("No GPU adapter found"),!1;this.device=await s.requestDevice(),this.bindGroupLayout=this.device.createBindGroupLayout({entries:[{binding:0,visibility:GPUShaderStage.COMPUTE,buffer:{type:"uniform"}},{binding:1,visibility:GPUShaderStage.COMPUTE,buffer:{type:"storage"}},{binding:2,visibility:GPUShaderStage.COMPUTE,buffer:{type:"storage"}},{binding:3,visibility:GPUShaderStage.COMPUTE,buffer:{type:"read-only-storage"}}]}),this.paramsBuffer=this.device.createBuffer({size:32,usage:GPUBufferUsage.UNIFORM|GPUBufferUsage.COPY_DST}),this.matchCountBuffer=this.device.createBuffer({size:4,usage:GPUBufferUsage.STORAGE|GPUBufferUsage.COPY_SRC|GPUBufferUsage.COPY_DST}),this.matchIndicesBuffer=this.device.createBuffer({size:1024*4,usage:GPUBufferUsage.STORAGE|GPUBufferUsage.COPY_SRC});for(let c=0;c<2;c++)this.matchCountReadBuffers[c]=this.device.createBuffer({size:4,usage:GPUBufferUsage.MAP_READ|GPUBufferUsage.COPY_DST}),this.matchIndicesReadBuffers[c]=this.device.createBuffer({size:1024*4,usage:GPUBufferUsage.MAP_READ|GPUBufferUsage.COPY_DST});const i=this.device.createShaderModule({code:this.shaderCode}),l=this.device.createPipelineLayout({bindGroupLayouts:[this.bindGroupLayout]});return this.pipeline=this.device.createComputePipeline({layout:l,compute:{module:i,entryPoint:"main"}}),!0}catch(s){return console.error("WebGPU initialization failed:",s),!1}}isAvailable(){return this.device!==null&&this.pipeline!==null}indexToRoomName(s,i){return Jo(i,s)}countNamesForLength(s){return vl(s)}async runBatch(s,i,l,c,u,p){if(!this.device||!this.pipeline||!this.bindGroupLayout||!this.paramsBuffer||!this.matchCountBuffer||!this.matchIndicesBuffer||!this.matchCountReadBuffers[0]||!this.matchCountReadBuffers[1]||!this.matchIndicesReadBuffers[0]||!this.matchIndicesReadBuffers[1])throw new Error("GPU not initialized");const d=this.currentReadBufferIndex;this.currentReadBufferIndex=1-this.currentReadBufferIndex;const g=this.matchCountReadBuffers[d],m=this.matchIndicesReadBuffers[d],x=u&&p?1:0;let A,_=0,k=0;if(x){const M=new Uint8Array(u.length/2);for(let V=0;V<M.length;V++)M[V]=parseInt(u.substr(V*2,2),16);_=M.length*8;const z=Math.ceil(M.length/4)*4,H=new Uint8Array(z);H.set(M),A=new Uint32Array(z/4);for(let V=0;V<A.length;V++)A[V]=H[V*4]<<24|H[V*4+1]<<16|H[V*4+2]<<8|H[V*4+3];const I=parseInt(p.substr(0,2),16),K=parseInt(p.substr(2,2),16);k=I<<24|K<<16}else A=new Uint32Array([0]);const D=Math.max(A.length*4,4);(!this.ciphertextBuffer||this.ciphertextBufferSize<D)&&(this.ciphertextBuffer&&this.ciphertextBuffer.destroy(),this.ciphertextBuffer=this.device.createBuffer({size:D,usage:GPUBufferUsage.STORAGE|GPUBufferUsage.COPY_DST}),this.ciphertextBufferSize=D,this.bindGroupDirty=!0);const C=new Uint32Array([s,l,i,c,k,A.length,_,x]);this.device.queue.writeBuffer(this.paramsBuffer,0,C),this.device.queue.writeBuffer(this.ciphertextBuffer,0,A),this.device.queue.writeBuffer(this.matchCountBuffer,0,bd.ZERO_DATA),(this.bindGroupDirty||!this.bindGroup)&&(this.bindGroup=this.device.createBindGroup({layout:this.bindGroupLayout,entries:[{binding:0,resource:{buffer:this.paramsBuffer}},{binding:1,resource:{buffer:this.matchCountBuffer}},{binding:2,resource:{buffer:this.matchIndicesBuffer}},{binding:3,resource:{buffer:this.ciphertextBuffer}}]}),this.bindGroupDirty=!1);const w=this.device.createCommandEncoder(),S=w.beginComputePass();S.setPipeline(this.pipeline),S.setBindGroup(0,this.bindGroup),S.dispatchWorkgroups(Math.ceil(c/(256*32))),S.end(),w.copyBufferToBuffer(this.matchCountBuffer,0,g,0,4),w.copyBufferToBuffer(this.matchIndicesBuffer,0,m,0,1024*4),this.device.queue.submit([w.finish()]),await g.mapAsync(GPUMapMode.READ);const P=new Uint32Array(g.getMappedRange())[0];g.unmap();const F=[];if(P>0){await m.mapAsync(GPUMapMode.READ);const M=new Uint32Array(m.getMappedRange());for(let z=0;z<Math.min(P,1024);z++)F.push(M[z]);m.unmap()}return F}destroy(){var s,i,l,c,u,p,d,g;(s=this.paramsBuffer)==null||s.destroy(),(i=this.matchCountBuffer)==null||i.destroy(),(l=this.matchIndicesBuffer)==null||l.destroy(),(c=this.ciphertextBuffer)==null||c.destroy(),(u=this.matchCountReadBuffers[0])==null||u.destroy(),(p=this.matchCountReadBuffers[1])==null||p.destroy(),(d=this.matchIndicesReadBuffers[0])==null||d.destroy(),(g=this.matchIndicesReadBuffers[1])==null||g.destroy(),this.paramsBuffer=null,this.matchCountBuffer=null,this.matchIndicesBuffer=null,this.ciphertextBuffer=null,this.ciphertextBufferSize=0,this.matchCountReadBuffers=[null,null],this.matchIndicesReadBuffers=[null,null],this.currentReadBufferIndex=0,this.bindGroup=null,this.bindGroupDirty=!0,this.device&&(this.device.destroy(),this.device=null),this.pipeline=null,this.bindGroupLayout=null}}bd.ZERO_DATA=new Uint32Array([0]);function tS(){return typeof navigator<"u"&&"gpu"in navigator}class fx{runBatch(s,i,l,c,u,p){const d=[],g=s.toString(16).padStart(2,"0") Line truncated
`).map(u=>u.trim().toLowerCase()).filter(u=>u.length>0);this.wordlist=c.filter(hx)}setWordlist(s){this.wordlist=s.map(i=>i.trim().toLowerCase()).filter(hx)}abort(){this.abortFlag=!0}isGpuAvailable(){return tS()}async decodePacket(s){var l;const i=s.trim().replace(/\s+/g,"").replace(/^0x/i,"");if(!i||!/^[0-9a-fA-F]+$/.test(i))return null;try{const u=(l=(await Ct.MeshCorePacketDecoder.decodeWithVerification(i,{})).payload)==null?void 0:l.decoded;return!(u!=null&&u.channelHash)||!(u!=null&&u.ciphertext)||!(u!=null&&u.cipherMac)?null:{channelHash:u.channelHash,ciphertext:u.ciphertext,cipherMac:u.cipherMac,isGroupText:!0}}catch{return null}}async crack(s,i,l){this.abortFlag=!1,this.useTimestampFilter=(i==null?void 0:i.useTimestampFilter)??!0,this.useUtf8Filter=(i==null?void 0:i.useUtf8Filter)??!0,this.useSenderFilter=(i==null?void 0:i.useSenderFilter)??!0,this.validSeconds=(i==null?void 0:i.validSeconds)??N0,this.useCpu=(i==null?void 0:i.forceCpu)??!1;const c=(i==null?void 0:i.maxLength)??8,u=(i==null?void 0:i.startingLength)??1,p=(i==null?void 0:i.useDictionary)??!0,d=(i==null?void 0:i.startFromType)??"bruteforce",g=s.toLowerCase(),m=await this.decodePacket(g);if(!m)return{found:!1,error:"Invalid packet or not a GroupText packet"};const{channelHash:x,ciphertext:A,cipherMac:_}=m,k=parseInt(x,16);this.useCpu?this.cpuInstance||(this.cpuInstance=new fx):this.gpuInstance||(this.gpuInstance=new bd,await this.gpuInstance.init()||(this.useCpu=!0,this.cpuInstance=new fx));const D=performance.now();let C=0,w=performance.now(),S=u,B=0,P=0,F=!1;if(i!=null&&i.startFrom){const U=i.startFrom.toLowerCase();if(d==="dictionary"){const te=this.wordlist.indexOf(U);te>=0&&(P=te+1)}else{F=!0;const te=Xk(U);te&&(S=Math.max(u,te.length),B=te.index+1,B>=vl(S)&&(S++,B=0))}}let M=0;p&&!F&&this.wordlist.length>0&&(M+=this.wordlist.length-P);for(let U=S;U<=c;U++)M+=vl(U);M-=B;const z=(U,te,ce)=>{if(!l)return;const oe=(performance.now()-D)/1e3,G=oe>0?Math.round(C/oe):0,ue=M-C,q=G>0?ue/G:0;l({checked:C,total:M,percent:M>0?Math.min(100,C/M*100):0,rateKeysPerSec:G,etaSeconds:q,elapsedSeconds:oe,currentLength:te,currentPosition:ce,phase:U})},H=U=>{if(!Dv(A,_,U))return{valid:!1};const te=Ct.ChannelCrypto.decryptGroupTextMessage(A,_,U);return!te.success||!te.data?{valid:!1}:this.useTimestampFilter&&!Jk(te.data.timestamp,this.validSeconds)?{valid:!1}:this.useUtf8Filter&&!eS(te.data.message)?{valid:!1}:this.useSenderFilter&&!te.data.sender?{valid:!1}:{valid:!0,message:te.data.sender?`${te.data.sender}: ${te.data.message}`:te.data.message}};if(!F&&P===0&&S===u&&B===0){z("public-key",0,R0);const U=L0(Zu);if(x===U){const te=H(Zu);if(te.valid)return{found:!0,roomName:R0,key:Zu,decryptedMessage:te.message}}}if(p&&!F&&this.wordlist.length>0)for(let U=P;U<this.wordlist.length;U++){if(this.abortFlag)return{found:!1,aborted:!0,resumeFrom:this.wordlist[U],resumeType:"dictionary"};const te=this.wordlist[U],ce=F0("#"+te),X=L0(ce);if(parseInt(X,16)===k){const G=H(ce);if(G.valid)return{found:!0,roomName:te,key:ce,decryptedMessage:G.message,resumeFrom:te,resumeType:"dictionary"}}C++;const oe=performance.now();oe-w>=200&&(z("wordlist",te.length,te),w=oe,await new Promise(G=>setTimeout(G,0)))}const I=this.useCpu?1024:32768,K=(i==null?void 0:i.gpuDispatchMs)??1e3;let V=I,W=!1;for(let U=S;U<=c;U++){if(this.abortFlag)return{found:!1,aborted:!0,resumeFrom:Jo(U,0)||void 0,resumeType:"bruteforce"};const te=vl(U);let ce=U===S?B:0;for(;ce<te;){if(this.abortFlag)return{found:!1,aborted:!0,resumeFrom:Jo(U,ce)||void 0,resumeType:"bruteforce"};const X=Math.min(V,te-ce),oe=performance.now();let G;this.useCpu?G=this.cpuInstance.runBatch(k,U,ce,X,A,_):G=await this.gpuInstance.runBatch(k,U,ce,X,A,_);const ue=performance.now()-oe;if(C+=X,!this.useCpu&&!W&&X>=I&&ue>0){const N=K/ue,Z=Math.round(X*N),$=Math.pow(2,Math.round(Math.log2(Math.max(I,Z))));V=Math.max(I,$),W=!0}for(const N of G){const Z=Jo(U,N);if(!Z)continue;const $=F0("#"+Z),ee=H($);if(ee.valid)return{found:!0,roomName:Z,key:$,decryptedMessage:ee.message,resumeFrom:Z,resumeType:"bruteforce"}}ce+=X;const q=performance.now();if(q-w>=200){const N=Jo(U,Math.min(ce,te-1))||"";z("bruteforce",U,N),w=q,await new Promise(Z=>setTimeout(Z,0))}}}return{found:!1,resumeFrom:Jo(c,vl(c)-1)||void 0,resumeType:"bruteforce"}}destroy(){this.gpuInstance&&(this.gpuInstance.destroy(),this.gpuInstance=null),this.cpuInstance&&(this.cpuInstance.destroy(),this.cpuInstance=null)}}var m0,px;function sS(){return px||(px=1,m0={webm:"data:video/webm;base64,GkXfowEAAAAAAAAfQoaBAUL3gQFC8oEEQvOBCEKChHdlYm1Ch4EEQoWBAhhTgGcBAAAAAAAVkhFNm3RALE27i1OrhBVJqWZTrIHfTbuMU6uEFlSua1OsggEwTbuMU6uEHFO7a1OsghV17AEAAAAAAACkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmAQAAAAAAAEUq17GDD0JATYCNTGF2ZjU1LjMzLjEwMFdBjUxhdmY1NS4zMy4xMDBzpJBlrrXf3DCDVB8KcgbMpcr+RImIQJBgAAAAAAAWVK5rAQAAAAAAD++uAQAAAAAAAD Line truncated
NoSleep enabled for older iOS devices. This can interrupt
active or long-running network requests from completing successfully.
See https://github.com/richtr/NoSleep.js/issues/15 for more details.
`),this.noSleepTimer=window.setInterval(()=>{document.hidden||(window.location.href=window.location.href.split("#")[0],window.setTimeout(window.stop,0))},15e3),this.enabled=!0,Promise.resolve()):this.noSleepVideo.play().then(d=>(this.enabled=!0,d)).catch(d=>{throw this.enabled=!1,d})}disable(){l()?(this._wakeLock&&this._wakeLock.release(),this._wakeLock=null):i()?this.noSleepTimer&&(console.warn(`
NoSleep now disabled for older iOS devices.
`),window.clearInterval(this.noSleepTimer),this.noSleepTimer=null):this.noSleepVideo.pause(),this.enabled=!1}}return g0=u,g0}var lS=aS();const uS=aa(lS);function cS(n){if(n.length<4)return null;try{const i=parseInt(n.slice(0,2),16)&3;let l=2;if(i===0||i===3){if(n.length<l+8)return null;l+=8}if(n.length<l+2)return null;const u=parseInt(n.slice(l,l+2),16);l+=2;const c=u*2;return n.length<l+c?null:(l+=c,n.slice(l))}catch{return null}}function dS({packets:n,channels:s,onChannelCreate:i,onRunningChange:l,visible:u=!1}){const[c,p]=R.useState(!1),[d,g]=R.useState(6),[m,x]=R.useState(!1),[A,_]=R.useState(!0),[k,D]=R.useState(!1),[C,w]=R.useState(null),[S,B]=R.useState(new Map),[P,F]=R.useState([]),[M,H]=R.useState(!1),[O,I]=R.useState(null),[X,V]=R.useState(null),[Z,K]=R.useState(0),W=R.useRef(null),ne=R.useRef(null),ce=R.useRef(!1),Y=R.useRef(!1),ae=R.useRef(!1),G=R.useRef(new Map),de=R.useRef(!1),q=R.useRef(6),N=R.useRef(!0),U=R.useRef(!1),$=R.useRef(new Set),ee=R.useRef(new Set);R.useEffect(()=>{const Be=new oS;W.current=Be,I(Be.isGpuAvailable());const Ze=new uS;return ne.current=Ze,()=>{Be.destroy(),W.current=null,Ze.disable(),ne.current=null}},[]),R.useEffect(()=>{!u||M||Uk(async()=>{const{ENGLISH_WORDLIST:Be}=await import("./wordlist-BtmChKSf.js");return{ENGLISH_WORDLIST:Be}},[]).then(({ENGLISH_WORDLIST:Be})=>{W.current&&(W.current.setWordlist(Be),H(!0))}).catch(Be=>{console.error("Failed to load wordlist:",Be),At.error("Failed to load wordlist",{description:"Cracking will not be available"})})},[u,M]),R.useEffect(()=>{const Be=()=>{et.getUndecryptedPacketCount().then(({count:ct})=>V(ct)).catch(()=>V(null))};Be();const Ze=setInterval(Be,36e5);return()=>clearInterval(Ze)},[]);const he=R.useMemo(()=>new Set(s.map(Be=>Be.key.toUpperCase())),[s]),pe=n.filter(Be=>Be.payload_type==="GROUP_TEXT"&&!Be.decrypted);R.useEffect(()=>{let Be=0;B(Ze=>{const ct=new Map(Ze);let Mt=!1;for(const lt of pe)if(!ct.has(lt.id)){const mt=cS(lt.data);if(mt&&ee.current.has(mt)){Be++;continue}mt&&ee.current.add(mt),ct.set(lt.id,{packet:lt,attempts:0,lastAttemptLength:0,status:"pending"}),Mt=!0}return Mt?(G.current=ct,ct):Ze}),Be>0&&K(Ze=>Ze+Be)},[pe.length]),R.useEffect(()=>{G.current=S},[S]),R.useEffect(()=>{de.current=m},[m]),R.useEffect(()=>{q.current=d},[d]),R.useEffect(()=>{N.current=A},[A]),R.useEffect(()=>{U.current=k},[k]),R.useEffect(()=>{$.current=new Set(pe.map(Be=>Be.id))},[pe]),R.useEffect(()=>{l==null||l(c)},[c,l]);const Ae=Array.from(S.values()).filter(Be=>Be.status==="pending").length,me=Array.from(S.values()).filter(Be=>Be.status==="cracked").length,Ue=Array.from(S.values()).filter(Be=>Be.status==="failed").length,Ye=R.useCallback(async()=>{if(ae.current||!W.current||!ce.current)return;const Be=G.current;let Ze=null,ct=null;for(const[qe,tt]of Be.entries())if(tt.status==="pending"){Ze=tt,ct=qe;break}if(!Ze&&de.current){const qe=Array.from(Be.entries()).filter(([,tt])=>tt.status==="failed"&&tt.lastAttemptLength<10);qe.length>0&&(qe.sort((tt,nt)=>tt[1].lastAttemptLength-nt[1].lastAttemptLength),[ct,Ze]=qe[0])}if(!Ze||ct===null){ce.current&&setTimeout(()=>Ye(),1e3);return}if(!$.current.has(ct)){B(qe=>{const tt=new Map(qe);return tt.delete(ct),tt}),ce.current&&setTimeout(()=>Ye(),10);return}ae.current=!0;const Mt=q.current,lt=Ze.lastAttemptLength>0,mt=lt?Ze.lastAttemptLength+1:Mt;try{const qe=await W.current.crack(Ze.packet.data,{maxLength:mt,useSenderFilter:!0,useTimestampFilter:!0,useUtf8Filter:!0,...U.current&&{gpuDispatchMs:1e4},...lt&&{useDictionary:!1,startingLength:mt}},tt=>{w(tt)});if(Y.current){Y.current=!1,ae.current=!1,w(null);return}if(qe.found&&qe.roomName&&qe.key){B(He=>{const kt=new Map(He),$t=kt.get(ct);return $t&&kt.set(ct,{...$t,status:"cracked",attempts:$t.attempts+1,lastAttemptLength:mt}),kt});const tt={roomName:qe.roomName,key:qe.key,packetId:ct,message:qe.decryptedMessage||"",crackedAt:Date.now()};F(He=>[...He,tt]);const nt=qe.key.toUpperCase();if(!he.has(nt))try{const He="#"+qe.roomName;await i(He,qe.key),N.current&&await et.decryptHistoricalPackets({key_type:"channel",channel_name:He})}catch(He){console.error("Failed to create channel or decrypt historical:",He),At.error("Failed to save cracked channel",{description:He instanceof Error?He.message:"Channel discovered but could not be saved"})}}else B(tt=>{const nt=new Map(tt),He=nt.get(ct);return He&&nt.set(ct,{...He,status:"failed",attempts:He.attempts+1,lastAttemptLength:mt}),nt})}catch(qe){console.error("Cracking error:",qe),B(tt=>{const nt=new Map(tt),He=nt.get(ct);return He&&nt.set(ct,{...He,status:"failed",attempts:He.attempts+1,lastAttemptLength:mt}),nt})}ae.current=!1,w(null),ce.current&&setTimeout(()=>Ye(),100)},[he,i]),Et=()=>{var Be;if(!O){At.error("WebGPU not available",{description:"Cracking requires Chrome 113+ or Edge 113+ with WebGPU support."});return}p(!0),ce.current=!0,Y.current=!1,(Be=ne.current)==null||Be.enable(),Ye()},pt=()=>{var Be,Ze;p(!1),ce.current=!1,Y.current=!0,(Be=W.current)==null||Be.abort(),(Ze=ne.current)==nul Line truncated
//# sourceMappingURL=index-C_gPG-ZT.js.map
`),window.clearInterval(this.noSleepTimer),this.noSleepTimer=null):this.noSleepVideo.pause(),this.enabled=!1}}return g0=c,g0}var lS=aS();const cS=aa(lS);function uS(n){if(n.length<4)return null;try{const i=parseInt(n.slice(0,2),16)&3;let l=2;if(i===0||i===3){if(n.length<l+8)return null;l+=8}if(n.length<l+2)return null;const c=parseInt(n.slice(l,l+2),16);l+=2;const u=c*2;return n.length<l+u?null:(l+=u,n.slice(l))}catch{return null}}function dS({packets:n,channels:s,onChannelCreate:i,onRunningChange:l,visible:c=!1}){const[u,p]=R.useState(!1),[d,g]=R.useState(6),[m,x]=R.useState(!1),[A,_]=R.useState(!0),[k,D]=R.useState(!1),[C,w]=R.useState(null),[S,B]=R.useState(new Map),[P,F]=R.useState([]),[M,z]=R.useState(!1),[H,I]=R.useState(null),[K,V]=R.useState(null),[W,Q]=R.useState(0),U=R.useRef(null),te=R.useRef(null),ce=R.useRef(!1),X=R.useRef(!1),oe=R.useRef(!1),G=R.useRef(new Map),ue=R.useRef(!1),q=R.useRef(6),N=R.useRef(!0),Z=R.useRef(!1),$=R.useRef(new Set),ee=R.useRef(new Set);R.useEffect(()=>{const Be=new oS;U.current=Be,I(Be.isGpuAvailable());const Ze=new cS;return te.current=Ze,()=>{Be.destroy(),U.current=null,Ze.disable(),te.current=null}},[]),R.useEffect(()=>{!c||M||Uk(async()=>{const{ENGLISH_WORDLIST:Be}=await import("./wordlist-BtmChKSf.js");return{ENGLISH_WORDLIST:Be}},[]).then(({ENGLISH_WORDLIST:Be})=>{U.current&&(U.current.setWordlist(Be),z(!0))}).catch(Be=>{console.error("Failed to load wordlist:",Be),At.error("Failed to load wordlist",{description:"Cracking will not be available"})})},[c,M]),R.useEffect(()=>{const Be=()=>{et.getUndecryptedPacketCount().then(({count:ut})=>V(ut)).catch(()=>V(null))};Be();const Ze=setInterval(Be,36e5);return()=>clearInterval(Ze)},[]);const he=R.useMemo(()=>new Set(s.map(Be=>Be.key.toUpperCase())),[s]),pe=n.filter(Be=>Be.payload_type==="GROUP_TEXT"&&!Be.decrypted);R.useEffect(()=>{let Be=0;B(Ze=>{const ut=new Map(Ze);let Mt=!1;for(const lt of pe)if(!ut.has(lt.id)){const mt=uS(lt.data);if(mt&&ee.current.has(mt)){Be++;continue}mt&&ee.current.add(mt),ut.set(lt.id,{packet:lt,attempts:0,lastAttemptLength:0,status:"pending"}),Mt=!0}return Mt?(G.current=ut,ut):Ze}),Be>0&&Q(Ze=>Ze+Be)},[pe.length]),R.useEffect(()=>{G.current=S},[S]),R.useEffect(()=>{ue.current=m},[m]),R.useEffect(()=>{q.current=d},[d]),R.useEffect(()=>{N.current=A},[A]),R.useEffect(()=>{Z.current=k},[k]),R.useEffect(()=>{$.current=new Set(pe.map(Be=>Be.id))},[pe]),R.useEffect(()=>{l==null||l(u)},[u,l]);const Ae=Array.from(S.values()).filter(Be=>Be.status==="pending").length,me=Array.from(S.values()).filter(Be=>Be.status==="cracked").length,Ue=Array.from(S.values()).filter(Be=>Be.status==="failed").length,Ye=R.useCallback(async()=>{if(oe.current||!U.current||!ce.current)return;const Be=G.current;let Ze=null,ut=null;for(const[qe,tt]of Be.entries())if(tt.status==="pending"){Ze=tt,ut=qe;break}if(!Ze&&ue.current){const qe=Array.from(Be.entries()).filter(([,tt])=>tt.status==="failed"&&tt.lastAttemptLength<10);qe.length>0&&(qe.sort((tt,nt)=>tt[1].lastAttemptLength-nt[1].lastAttemptLength),[ut,Ze]=qe[0])}if(!Ze||ut===null){ce.current&&setTimeout(()=>Ye(),1e3);return}if(!$.current.has(ut)){B(qe=>{const tt=new Map(qe);return tt.delete(ut),tt}),ce.current&&setTimeout(()=>Ye(),10);return}oe.current=!0;const Mt=q.current,lt=Ze.lastAttemptLength>0,mt=lt?Ze.lastAttemptLength+1:Mt;try{const qe=await U.current.crack(Ze.packet.data,{maxLength:mt,useSenderFilter:!0,useTimestampFilter:!0,useUtf8Filter:!0,...Z.current&&{gpuDispatchMs:1e4},...lt&&{useDictionary:!1,startingLength:mt}},tt=>{w(tt)});if(X.current){X.current=!1,oe.current=!1,w(null);return}if(qe.found&&qe.roomName&&qe.key){B(He=>{const kt=new Map(He),$t=kt.get(ut);return $t&&kt.set(ut,{...$t,status:"cracked",attempts:$t.attempts+1,lastAttemptLength:mt}),kt});const tt={roomName:qe.roomName,key:qe.key,packetId:ut,message:qe.decryptedMessage||"",crackedAt:Date.now()};F(He=>[...He,tt]);const nt=qe.key.toUpperCase();if(!he.has(nt))try{const He="#"+qe.roomName;await i(He,qe.key),N.current&&await et.decryptHistoricalPackets({key_type:"channel",channel_name:He})}catch(He){console.error("Failed to create channel or decrypt historical:",He),At.error("Failed to save cracked channel",{description:He instanceof Error?He.message:"Channel discovered but could not be saved"})}}else B(tt=>{const nt=new Map(tt),He=nt.get(ut);return He&&nt.set(ut,{...He,status:"failed",attempts:He.attempts+1,lastAttemptLength:mt}),nt})}catch(qe){console.error("Cracking error:",qe),B(tt=>{const nt=new Map(tt),He=nt.get(ut);return He&&nt.set(ut,{...He,status:"failed",attempts:He.attempts+1,lastAttemptLength:mt}),nt})}oe.current=!1,w(null),ce.current&&setTimeout(()=>Ye(),100)},[he,i]),Et=()=>{var Be;if(!H){At.error("WebGPU not available",{description:"Cracking requires Chrome 113+ or Edge 113+ with WebGPU support."});return}p(!0),ce.current=!0,X.current=!1,(Be=te.current)==null||Be.enable(),Ye()},pt=()=>{var Be,Ze;p(!1),ce.current=!1,X.current=!0,(Be=U.current)==null||Be.abort(),(Ze=te.current)==nul Line truncated
//# sourceMappingURL=index-D05AJxJe.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"mappings":";;;;;;;;6CASa,IAAIA,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,cAAc,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,SAAS,SAASC,EAAEC,EAAE,CAAC,OAAUA,IAAP,MAAqB,OAAOA,GAAlB,SAA2B,MAAKA,EAAEF,GAAGE,EAAEF,CAAC,GAAGE,EAAE,YAAY,EAAqB,OAAOA,GAApB,WAAsBA,EAAE,KAAI,CAC1e,IAAIC,EAAE,CAAC,UAAU,UAAU,CAAC,MAAM,EAAE,EAAE,mBAAmB,UAAU,GAAG,oBAAoB,UAAU,GAAG,gBAAgB,UAAU,EAAE,EAAEC,EAAE,OAAO,OAAOC,EAAE,GAAG,SAASC,EAAEJ,EAAEK,EAAEC,EAAE,CAAC,KAAK,MAAMN,EAAE,KAAK,QAAQK,EAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,GAAGL,CAAC,CAACG,EAAE,UAAU,iBAAiB,GACnQA,EAAE,UAAU,SAAS,SAASJ,EAAEK,EAAE,CAAC,GAAc,OAAOL,GAAlB,UAAkC,OAAOA,GAApB,YAA6BA,GAAN,KAAQ,MAAM,MAAM,uHAAuH,EAAE,KAAK,QAAQ,gBAAgB,KAAKA,EAAEK,EAAE,UAAU,CAAC,EAAED,EAAE,UAAU,YAAY,SAASJ,EAAE,CAAC,KAAK,QAAQ,mBAAmB,KAAKA,EAAE,aAAa,CAAC,EAAE,SAASO,GAAG,EAAEA,EAAE,UAAUH,EAAE,UAAU,SAASI,EAAER,EAAEK,EAAEC,EAAE,CAAC,KAAK,MAAMN,EAAE,KAAK,QAAQK,EAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,GAAGL,CAAC,CAAC,IAAIQ,EAAED,EAAE,UAAU,IAAID,EACrfE,EAAE,YAAYD,EAAEN,EAAEO,EAAEL,EAAE,SAAS,EAAEK,EAAE,qBAAqB,GAAG,IAAIC,EAAE,MAAM,QAAQC,EAAE,OAAO,UAAU,eAAeC,EAAE,CAAC,QAAQ,IAAI,EAAEC,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,EAAE,EACxK,SAASC,EAAEd,EAAEK,EAAEC,EAAE,CAAC,IAAIS,GAAEC,GAAE,GAAGC,GAAE,KAAKC,GAAE,KAAK,GAASb,GAAN,KAAQ,IAAIU,MAAcV,EAAE,MAAX,SAAiBa,GAAEb,EAAE,KAAcA,EAAE,MAAX,SAAiBY,GAAE,GAAGZ,EAAE,KAAKA,EAAEM,EAAE,KAAKN,EAAEU,EAAC,GAAG,CAACF,EAAE,eAAeE,EAAC,IAAIC,GAAED,EAAC,EAAEV,EAAEU,EAAC,GAAG,IAAII,GAAE,UAAU,OAAO,EAAE,GAAOA,KAAJ,EAAMH,GAAE,SAASV,UAAU,EAAEa,GAAE,CAAC,QAAQC,GAAE,MAAMD,EAAC,EAAEE,GAAE,EAAEA,GAAEF,GAAEE,KAAID,GAAEC,EAAC,EAAE,UAAUA,GAAE,CAAC,EAAEL,GAAE,SAASI,EAAC,CAAC,GAAGpB,GAAGA,EAAE,aAAa,IAAIe,MAAKI,GAAEnB,EAAE,aAAamB,GAAWH,GAAED,EAAC,IAAZ,SAAgBC,GAAED,EAAC,EAAEI,GAAEJ,EAAC,GAAG,MAAM,CAAC,SAAS5B,EAAE,KAAKa,EAAE,IAAIiB,GAAE,IAAIC,GAAE,MAAMF,GAAE,OAAOJ,EAAE,OAAO,CAAC,CAC7a,SAASU,EAAEtB,EAAEK,EAAE,CAAC,MAAM,CAAC,SAASlB,EAAE,KAAKa,EAAE,KAAK,IAAIK,EAAE,IAAIL,EAAE,IAAI,MAAMA,EAAE,MAAM,OAAOA,EAAE,MAAM,CAAC,CAAC,SAASuB,EAAEvB,EAAE,CAAC,OAAiB,OAAOA,GAAlB,UAA4BA,IAAP,MAAUA,EAAE,WAAWb,CAAC,CAAC,SAASqC,EAAOxB,EAAE,CAAC,IAAIK,EAAE,CAAC,IAAI,KAAK,IAAI,IAAI,EAAE,MAAM,IAAIL,EAAE,QAAQ,QAAQ,SAASA,EAAE,CAAC,OAAOK,EAAEL,CAAC,CAAC,CAAC,CAAC,CAAC,IAAIyB,EAAE,OAAO,SAASC,EAAE1B,EAAEK,EAAE,CAAC,OAAiB,OAAOL,GAAlB,UAA4BA,IAAP,MAAgBA,EAAE,KAAR,KAAYwB,EAAO,GAAGxB,EAAE,GAAG,EAAEK,EAAE,SAAS,EAAE,CAAC,CAC/W,SAASsB,GAAE3B,EAAEK,EAAEC,EAAES,GAAEC,GAAE,CAAC,IAAIC,GAAE,OAAOjB,GAAmBiB,KAAd,aAA6BA,KAAZ,aAAcjB,EAAE,MAAK,IAAIkB,GAAE,GAAG,GAAUlB,IAAP,KAASkB,GAAE,OAAQ,QAAOD,GAAC,CAAE,IAAK,SAAS,IAAK,SAASC,GAAE,GAAG,MAAM,IAAK,SAAS,OAAOlB,EAAE,SAAQ,CAAE,KAAKb,EAAE,KAAKC,EAAE8B,GAAE,EAAE,CAAC,CAAC,GAAGA,GAAE,OAAOA,GAAElB,EAAEgB,GAAEA,GAAEE,EAAC,EAAElB,EAAOe,KAAL,GAAO,IAAIW,EAAER,GAAE,CAAC,EAAEH,GAAEL,EAAEM,EAAC,GAAGV,EAAE,GAASN,GAAN,OAAUM,EAAEN,EAAE,QAAQyB,EAAE,KAAK,EAAE,KAAKE,GAAEX,GAAEX,EAAEC,EAAE,GAAG,SAASN,GAAE,CAAC,OAAOA,EAAC,CAAC,GAASgB,IAAN,OAAUO,EAAEP,EAAC,IAAIA,GAAEM,EAAEN,GAAEV,GAAG,CAACU,GAAE,KAAKE,IAAGA,GAAE,MAAMF,GAAE,IAAI,IAAI,GAAGA,GAAE,KAAK,QAAQS,EAAE,KAAK,EAAE,KAAKzB,CAAC,GAAGK,EAAE,KAAKW,EAAC,GAAG,EAAyB,GAAvBE,GAAE,EAAEH,GAAOA,KAAL,GAAO,IAAIA,GAAE,IAAOL,EAAEV,CAAC,EAAE,QAAQmB,GAAE,EAAEA,GAAEnB,EAAE,OAAOmB,KAAI,CAACF,GACrfjB,EAAEmB,EAAC,EAAE,IAAIC,GAAEL,GAAEW,EAAET,GAAEE,EAAC,EAAED,IAAGS,GAAEV,GAAEZ,EAAEC,EAAEc,GAAEJ,EAAC,CAAC,SAASI,GAAErB,EAAEC,CAAC,EAAe,OAAOoB,IAApB,WAAsB,IAAIpB,EAAEoB,GAAE,KAAKpB,CAAC,EAAEmB,GAAE,EAAE,EAAEF,GAAEjB,EAAE,KAAI,GAAI,MAAMiB,GAAEA,GAAE,MAAMG,GAAEL,GAAEW,EAAET,GAAEE,IAAG,EAAED,IAAGS,GAAEV,GAAEZ,EAAEC,EAAEc,GAAEJ,EAAC,UAAqBC,KAAX,SAAa,MAAMZ,EAAE,OAAOL,CAAC,EAAE,MAAM,mDAAuEK,IAApB,kBAAsB,qBAAqB,OAAO,KAAKL,CAAC,EAAE,KAAK,IAAI,EAAE,IAAIK,GAAG,2EAA2E,EAAE,OAAOa,EAAC,CACzZ,SAASU,GAAE5B,EAAEK,EAAEC,EAAE,CAAC,GAASN,GAAN,KAAQ,OAAOA,EAAE,IAAIe,GAAE,GAAGC,GAAE,EAAE,OAAAW,GAAE3B,EAAEe,GAAE,GAAG,GAAG,SAASf,GAAE,CAAC,OAAOK,EAAE,KAAKC,EAAEN,GAAEgB,IAAG,CAAC,CAAC,EAASD,EAAC,CAAC,SAASc,EAAE7B,EAAE,CAAC,GAAQA,EAAE,UAAP,GAAe,CAAC,IAAIK,EAAEL,EAAE,QAAQK,EAAEA,EAAC,EAAGA,EAAE,KAAK,SAASA,EAAE,EAAQL,EAAE,UAAN,GAAoBA,EAAE,UAAP,MAAeA,EAAE,QAAQ,EAAEA,EAAE,QAAQK,EAAC,EAAE,SAASA,EAAE,EAAQL,EAAE,UAAN,GAAoBA,EAAE,UAAP,MAAeA,EAAE,QAAQ,EAAEA,EAAE,QAAQK,EAAC,CAAC,EAAOL,EAAE,UAAP,KAAiBA,EAAE,QAAQ,EAAEA,EAAE,QAAQK,EAAE,CAAC,GAAOL,EAAE,UAAN,EAAc,OAAOA,EAAE,QAAQ,QAAQ,MAAMA,EAAE,OAAQ,CAC5Z,IAAI8B,GAAE,CAAC,QAAQ,IAAI,EAAEC,EAAE,CAAC,WAAW,IAAI,EAAEC,GAAE,CAAC,uBAAuBF,GAAE,wBAAwBC,EAAE,kBAAkBnB,CAAC,EAAE,SAASqB,GAAG,CAAC,MAAM,MAAM,0DAA0D,CAAE,CACzM,OAAAC,GAAA,SAAiB,CAAC,IAAIN,GAAE,QAAQ,SAAS5B,EAAEK,EAAEC,EAAE,CAACsB,GAAE5B,EAAE,UAAU,CAACK,EAAE,MAAM,KAAK,SAAS,CAAC,EAAEC,CAAC,CAAC,EAAE,MAAM,SAASN,EAAE,CAAC,IAAIK,EAAE,EAAE,OAAAuB,GAAE5B,EAAE,UAAU,CAACK,GAAG,CAAC,EAASA,CAAC,EAAE,QAAQ,SAASL,EAAE,CAAC,OAAO4B,GAAE5B,EAAE,SAASA,EAAE,CAAC,OAAOA,CAAC,CAAC,GAAG,EAAE,EAAE,KAAK,SAASA,EAAE,CAAC,GAAG,CAACuB,EAAEvB,CAAC,EAAE,Line truncated
@@ -1 +1 @@
.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottLine truncated
.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottLine truncated
+2 -2
View File
@@ -13,8 +13,8 @@
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="manifest" href="/site.webmanifest" />
<script type="module" crossorigin src="/assets/index-C_gPG-ZT.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-tIXvIK_l.css">
<script type="module" crossorigin src="/assets/index-D05AJxJe.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DgiuGBKg.css">
</head>
<body>
<div id="root"></div>
+1 -5
View File
@@ -721,11 +721,7 @@ export function App() {
</div>
</>
) : activeConversation.type === 'visualizer' ? (
<VisualizerView
packets={rawPackets}
contacts={contacts}
config={config}
/>
<VisualizerView packets={rawPackets} contacts={contacts} config={config} />
) : activeConversation.type === 'raw' ? (
<>
<div className="flex justify-between items-center px-4 py-3 border-b border-border font-medium text-lg">
+372 -168
View File
@@ -86,13 +86,13 @@ const COLORS = {
background: '#0a0a0a',
link: '#4b5563',
ambiguous: '#9ca3af',
particleAD: '#f59e0b', // amber - advertisements
particleGT: '#06b6d4', // cyan - group text
particleDM: '#8b5cf6', // purple - direct messages
particleACK: '#22c55e', // green - acknowledgments
particleTR: '#f97316', // orange - trace packets
particleRQ: '#ec4899', // pink - requests
particleRS: '#14b8a6', // teal - responses
particleAD: '#f59e0b', // amber - advertisements
particleGT: '#06b6d4', // cyan - group text
particleDM: '#8b5cf6', // purple - direct messages
particleACK: '#22c55e', // green - acknowledgments
particleTR: '#f97316', // orange - trace packets
particleRQ: '#ec4899', // pink - requests
particleRS: '#14b8a6', // teal - responses
particleUnknown: '#6b7280', // gray - unknown
} as const;
@@ -176,14 +176,22 @@ function parsePacket(hexData: string): ParsedPacket | null {
function getPacketLabel(payloadType: number): PacketLabel {
switch (payloadType) {
case PayloadType.Advert: return 'AD';
case PayloadType.GroupText: return 'GT';
case PayloadType.TextMessage: return 'DM';
case PayloadType.Ack: return 'ACK';
case PayloadType.Trace: return 'TR';
case PayloadType.Request: return 'RQ';
case PayloadType.Response: return 'RS';
default: return '?';
case PayloadType.Advert:
return 'AD';
case PayloadType.GroupText:
return 'GT';
case PayloadType.TextMessage:
return 'DM';
case PayloadType.Ack:
return 'ACK';
case PayloadType.Trace:
return 'TR';
case PayloadType.Request:
return 'RQ';
case PayloadType.Response:
return 'RS';
default:
return '?';
}
}
@@ -255,6 +263,7 @@ interface VisualizerData {
particles: Particle[];
simulation: Simulation<GraphNode, GraphLink> | null;
stats: { processed: number; animated: number; nodes: number; links: number };
randomizePositions: () => void;
}
function useVisualizerData({
@@ -279,18 +288,37 @@ function useVisualizerData({
// Initialize simulation
useEffect(() => {
const sim = forceSimulation<GraphNode, GraphLink>([])
.force('link', forceLink<GraphNode, GraphLink>([]).id((d) => d.id).distance(80).strength(0.3))
.force('charge', forceManyBody<GraphNode>().strength((d) => (d.id === 'self' ? -1200 : -200)).distanceMax(500))
.force(
'link',
forceLink<GraphNode, GraphLink>([])
.id((d) => d.id)
.distance(80)
.strength(0.3)
)
.force(
'charge',
forceManyBody<GraphNode>()
.strength((d) => (d.id === 'self' ? -1200 : -200))
.distanceMax(500)
)
.force('center', forceCenter(dimensions.width / 2, dimensions.height / 2))
.force('collide', forceCollide(40))
.force('selfX', forceX<GraphNode>(dimensions.width / 2).strength((d) => (d.id === 'self' ? 0.1 : 0)))
.force('selfY', forceY<GraphNode>(dimensions.height / 2).strength((d) => (d.id === 'self' ? 0.1 : 0)))
.force(
'selfX',
forceX<GraphNode>(dimensions.width / 2).strength((d) => (d.id === 'self' ? 0.1 : 0))
)
.force(
'selfY',
forceY<GraphNode>(dimensions.height / 2).strength((d) => (d.id === 'self' ? 0.1 : 0))
)
.alphaDecay(0.02)
.velocityDecay(0.5)
.alphaTarget(0.03);
simulationRef.current = sim;
return () => { sim.stop(); };
return () => {
sim.stop();
};
}, []);
// Update simulation forces when dimensions/charge change
@@ -299,9 +327,20 @@ function useVisualizerData({
if (!sim) return;
sim.force('center', forceCenter(dimensions.width / 2, dimensions.height / 2));
sim.force('selfX', forceX<GraphNode>(dimensions.width / 2).strength((d) => (d.id === 'self' ? 0.1 : 0)));
sim.force('selfY', forceY<GraphNode>(dimensions.height / 2).strength((d) => (d.id === 'self' ? 0.1 : 0)));
sim.force('charge', forceManyBody<GraphNode>().strength((d) => (d.id === 'self' ? chargeStrength * 6 : chargeStrength)).distanceMax(500));
sim.force(
'selfX',
forceX<GraphNode>(dimensions.width / 2).strength((d) => (d.id === 'self' ? 0.1 : 0))
);
sim.force(
'selfY',
forceY<GraphNode>(dimensions.height / 2).strength((d) => (d.id === 'self' ? 0.1 : 0))
);
sim.force(
'charge',
forceManyBody<GraphNode>()
.strength((d) => (d.id === 'self' ? chargeStrength * 6 : chargeStrength))
.distanceMax(500)
);
sim.alpha(0.3).restart();
}, [dimensions, chargeStrength]);
@@ -353,27 +392,44 @@ function useVisualizerData({
sim.nodes(nodes);
const linkForce = sim.force('link') as ReturnType<typeof forceLink<GraphNode, GraphLink>>;
linkForce?.links(links);
sim.alpha(0.15).restart();
setStats((prev) => ({ ...prev, nodes: nodes.length, links: links.length }));
}, []);
const addNode = useCallback((id: string, name: string | null, type: NodeType, isAmbiguous: boolean, ambiguousNames?: string[], lastSeen?: number | null) => {
const existing = nodesRef.current.get(id);
if (existing) {
existing.lastActivity = Date.now();
if (name && !existing.name) existing.name = name;
if (ambiguousNames) existing.ambiguousNames = ambiguousNames;
if (lastSeen !== undefined) existing.lastSeen = lastSeen;
} else {
const selfNode = nodesRef.current.get('self');
nodesRef.current.set(id, {
id, name, type, isAmbiguous, lastActivity: Date.now(), lastSeen, ambiguousNames,
x: (selfNode?.x ?? 400) + (Math.random() - 0.5) * 100,
y: (selfNode?.y ?? 300) + (Math.random() - 0.5) * 100,
});
}
}, []);
const addNode = useCallback(
(
id: string,
name: string | null,
type: NodeType,
isAmbiguous: boolean,
ambiguousNames?: string[],
lastSeen?: number | null
) => {
const existing = nodesRef.current.get(id);
if (existing) {
existing.lastActivity = Date.now();
if (name && !existing.name) existing.name = name;
if (ambiguousNames) existing.ambiguousNames = ambiguousNames;
if (lastSeen !== undefined) existing.lastSeen = lastSeen;
} else {
const selfNode = nodesRef.current.get('self');
nodesRef.current.set(id, {
id,
name,
type,
isAmbiguous,
lastActivity: Date.now(),
lastSeen,
ambiguousNames,
x: (selfNode?.x ?? 400) + (Math.random() - 0.5) * 100,
y: (selfNode?.y ?? 300) + (Math.random() - 0.5) * 100,
});
}
},
[]
);
const addLink = useCallback((sourceId: string, targetId: string) => {
const key = [sourceId, targetId].sort().join('->');
@@ -411,103 +467,134 @@ function useVisualizerData({
}, []);
// Resolve a node from various sources and add to graph
const resolveNode = useCallback((
source: { type: 'prefix' | 'pubkey' | 'name'; value: string },
isRepeater: boolean,
showAmbiguous: boolean
): string | null => {
if (source.type === 'pubkey') {
if (source.value.length < 12) return null;
const nodeId = source.value.slice(0, 12).toLowerCase();
const contact = contacts.find((c) => c.public_key.toLowerCase().startsWith(nodeId));
addNode(nodeId, contact?.name || null, getNodeType(contact), false, undefined, contact?.last_seen);
return nodeId;
}
const resolveNode = useCallback(
(
source: { type: 'prefix' | 'pubkey' | 'name'; value: string },
isRepeater: boolean,
showAmbiguous: boolean
): string | null => {
if (source.type === 'pubkey') {
if (source.value.length < 12) return null;
const nodeId = source.value.slice(0, 12).toLowerCase();
const contact = contacts.find((c) => c.public_key.toLowerCase().startsWith(nodeId));
addNode(
nodeId,
contact?.name || null,
getNodeType(contact),
false,
undefined,
contact?.last_seen
);
return nodeId;
}
if (source.type === 'name') {
const contact = findContactByName(source.value, contacts);
if (source.type === 'name') {
const contact = findContactByName(source.value, contacts);
if (contact) {
const nodeId = contact.public_key.slice(0, 12).toLowerCase();
addNode(nodeId, contact.name, getNodeType(contact), false, undefined, contact.last_seen);
return nodeId;
}
const nodeId = `name:${source.value}`;
addNode(nodeId, source.value, 'client', false);
return nodeId;
}
// type === 'prefix'
const contact = findContactByPrefix(source.value, contacts);
if (contact) {
const nodeId = contact.public_key.slice(0, 12).toLowerCase();
addNode(nodeId, contact.name, getNodeType(contact), false, undefined, contact.last_seen);
return nodeId;
}
const nodeId = `name:${source.value}`;
addNode(nodeId, source.value, 'client', false);
return nodeId;
}
// type === 'prefix'
const contact = findContactByPrefix(source.value, contacts);
if (contact) {
const nodeId = contact.public_key.slice(0, 12).toLowerCase();
addNode(nodeId, contact.name, getNodeType(contact), false, undefined, contact.last_seen);
return nodeId;
}
if (showAmbiguous) {
const matches = findContactsByPrefix(source.value, contacts);
const filtered = isRepeater
? matches.filter((c) => c.type === CONTACT_TYPE_REPEATER)
: matches.filter((c) => c.type !== CONTACT_TYPE_REPEATER);
const names = filtered.map((c) => c.name || c.public_key.slice(0, 8));
const lastSeen = filtered.reduce(
(max, c) => (c.last_seen && (!max || c.last_seen > max) ? c.last_seen : max),
null as number | null
);
const nodeId = `?${source.value.toLowerCase()}`;
addNode(
nodeId,
source.value.toUpperCase(),
isRepeater ? 'repeater' : 'client',
true,
names,
lastSeen
);
return nodeId;
}
if (showAmbiguous) {
const matches = findContactsByPrefix(source.value, contacts);
const filtered = isRepeater
? matches.filter((c) => c.type === CONTACT_TYPE_REPEATER)
: matches.filter((c) => c.type !== CONTACT_TYPE_REPEATER);
const names = filtered.map((c) => c.name || c.public_key.slice(0, 8));
const lastSeen = filtered.reduce((max, c) => (c.last_seen && (!max || c.last_seen > max) ? c.last_seen : max), null as number | null);
const nodeId = `?${source.value.toLowerCase()}`;
addNode(nodeId, source.value.toUpperCase(), isRepeater ? 'repeater' : 'client', true, names, lastSeen);
return nodeId;
}
return null;
}, [contacts, addNode]);
return null;
},
[contacts, addNode]
);
// Build path from parsed packet
const buildPath = useCallback((parsed: ParsedPacket, packet: RawPacket, myPrefix: string | null): string[] => {
const path: string[] = [];
const buildPath = useCallback(
(parsed: ParsedPacket, packet: RawPacket, myPrefix: string | null): string[] => {
const path: string[] = [];
// Add source
if (parsed.payloadType === PayloadType.Advert && parsed.advertPubkey) {
const nodeId = resolveNode({ type: 'pubkey', value: parsed.advertPubkey }, false, false);
if (nodeId) path.push(nodeId);
} else if (parsed.payloadType === PayloadType.TextMessage && parsed.srcHash) {
if (myPrefix && parsed.srcHash.toLowerCase() === myPrefix) {
// Add source
if (parsed.payloadType === PayloadType.Advert && parsed.advertPubkey) {
const nodeId = resolveNode({ type: 'pubkey', value: parsed.advertPubkey }, false, false);
if (nodeId) path.push(nodeId);
} else if (parsed.payloadType === PayloadType.TextMessage && parsed.srcHash) {
if (myPrefix && parsed.srcHash.toLowerCase() === myPrefix) {
path.push('self');
} else {
const nodeId = resolveNode(
{ type: 'prefix', value: parsed.srcHash },
false,
showAmbiguousNodes
);
if (nodeId) path.push(nodeId);
}
} else if (parsed.payloadType === PayloadType.GroupText) {
const senderName = parsed.groupTextSender || packet.decrypted_info?.sender;
if (senderName) {
const nodeId = resolveNode({ type: 'name', value: senderName }, false, false);
if (nodeId) path.push(nodeId);
}
}
// Add path bytes (repeaters)
for (const hexPrefix of parsed.pathBytes) {
const nodeId = resolveNode({ type: 'prefix', value: hexPrefix }, true, showAmbiguousPaths);
if (nodeId) path.push(nodeId);
}
// Add destination
if (parsed.payloadType === PayloadType.TextMessage && parsed.dstHash) {
if (myPrefix && parsed.dstHash.toLowerCase() === myPrefix) {
path.push('self');
} else {
const nodeId = resolveNode(
{ type: 'prefix', value: parsed.dstHash },
false,
showAmbiguousNodes
);
if (nodeId) path.push(nodeId);
else path.push('self');
}
} else if (path.length > 0) {
path.push('self');
} else {
const nodeId = resolveNode({ type: 'prefix', value: parsed.srcHash }, false, showAmbiguousNodes);
if (nodeId) path.push(nodeId);
}
} else if (parsed.payloadType === PayloadType.GroupText) {
const senderName = parsed.groupTextSender || packet.decrypted_info?.sender;
if (senderName) {
const nodeId = resolveNode({ type: 'name', value: senderName }, false, false);
if (nodeId) path.push(nodeId);
}
}
// Add path bytes (repeaters)
for (const hexPrefix of parsed.pathBytes) {
const nodeId = resolveNode({ type: 'prefix', value: hexPrefix }, true, showAmbiguousPaths);
if (nodeId) path.push(nodeId);
}
// Add destination
if (parsed.payloadType === PayloadType.TextMessage && parsed.dstHash) {
if (myPrefix && parsed.dstHash.toLowerCase() === myPrefix) {
// Ensure ends with self
if (path.length > 0 && path[path.length - 1] !== 'self') {
path.push('self');
} else {
const nodeId = resolveNode({ type: 'prefix', value: parsed.dstHash }, false, showAmbiguousNodes);
if (nodeId) path.push(nodeId);
else path.push('self');
}
} else if (path.length > 0) {
path.push('self');
}
// Ensure ends with self
if (path.length > 0 && path[path.length - 1] !== 'self') {
path.push('self');
}
return dedupeConsecutive(path);
}, [resolveNode, showAmbiguousPaths, showAmbiguousNodes]);
return dedupeConsecutive(path);
},
[resolveNode, showAmbiguousPaths, showAmbiguousNodes]
);
// Process packets
useEffect(() => {
@@ -558,12 +645,17 @@ function useVisualizerData({
firstSeen: now,
expiresAt: now + OBSERVATION_WINDOW_MS,
});
timersRef.current.set(packetKey, setTimeout(() => publishPacket(packetKey), OBSERVATION_WINDOW_MS));
timersRef.current.set(
packetKey,
setTimeout(() => publishPacket(packetKey), OBSERVATION_WINDOW_MS)
);
}
// Limit pending size
if (pendingRef.current.size > 100) {
const entries = Array.from(pendingRef.current.entries()).sort((a, b) => a[1].firstSeen - b[1].firstSeen).slice(0, 50);
const entries = Array.from(pendingRef.current.entries())
.sort((a, b) => a[1].firstSeen - b[1].firstSeen)
.slice(0, 50);
for (const [key] of entries) {
clearTimeout(timersRef.current.get(key));
timersRef.current.delete(key);
@@ -576,16 +668,51 @@ function useVisualizerData({
if (needsUpdate) syncSimulation();
if (newProcessed > 0) {
setStats((prev) => ({ ...prev, processed: prev.processed + newProcessed, animated: prev.animated + newAnimated }));
setStats((prev) => ({
...prev,
processed: prev.processed + newProcessed,
animated: prev.animated + newAnimated,
}));
}
}, [packets, config, buildPath, addLink, syncSimulation, publishPacket]);
// Randomize all node positions (except self) and reheat simulation
const randomizePositions = useCallback(() => {
const sim = simulationRef.current;
if (!sim) return;
const centerX = dimensions.width / 2;
const centerY = dimensions.height / 2;
const radius = Math.min(dimensions.width, dimensions.height) * 0.4;
for (const node of nodesRef.current.values()) {
if (node.id === 'self') {
// Keep self at center
node.x = centerX;
node.y = centerY;
} else {
// Randomize position in a circle around center
const angle = Math.random() * 2 * Math.PI;
const r = Math.random() * radius;
node.x = centerX + r * Math.cos(angle);
node.y = centerY + r * Math.sin(angle);
}
// Clear velocities
node.vx = 0;
node.vy = 0;
}
// Reheat simulation strongly
sim.alpha(1).restart();
}, [dimensions]);
return {
nodes: nodesRef.current,
links: linksRef.current,
particles: particlesRef.current,
simulation: simulationRef.current,
stats,
randomizePositions,
};
}
@@ -626,14 +753,16 @@ function renderParticles(
for (const particle of particles) {
const fromNode = nodes.get(particle.fromNodeId);
const toNode = nodes.get(particle.toNodeId);
const isVisible = visibleNodeIds.has(particle.fromNodeId) && visibleNodeIds.has(particle.toNodeId);
const isVisible =
visibleNodeIds.has(particle.fromNodeId) && visibleNodeIds.has(particle.toNodeId);
particle.progress += particle.speed;
if (particle.progress > 1) continue;
active.push(particle);
if (!isVisible || !fromNode?.x || !toNode?.x || fromNode.y == null || toNode.y == null) continue;
if (!isVisible || !fromNode?.x || !toNode?.x || fromNode.y == null || toNode.y == null)
continue;
if (particle.progress < 0) continue;
const t = particle.progress;
@@ -672,7 +801,14 @@ function renderNodes(
if (node.x == null || node.y == null) continue;
// Emoji
const emoji = node.type === 'self' ? '🟢' : node.type === 'repeater' ? '📡' : node.isAmbiguous ? '❓' : '👤';
const emoji =
node.type === 'self'
? '🟢'
: node.type === 'repeater'
? '📡'
: node.isAmbiguous
? '❓'
: '👤';
const size = node.type === 'self' ? 36 : 18;
ctx.font = `${size}px sans-serif`;
@@ -681,7 +817,9 @@ function renderNodes(
ctx.fillText(emoji, node.x, node.y);
// Label
const label = node.isAmbiguous ? node.id : node.name || (node.type === 'self' ? 'Me' : node.id.slice(0, 8));
const label = node.isAmbiguous
? node.id
: node.name || (node.type === 'self' ? 'Me' : node.id.slice(0, 8));
ctx.font = '11px sans-serif';
ctx.textBaseline = 'top';
ctx.fillStyle = node.isAmbiguous ? COLORS.ambiguous : '#e5e7eb';
@@ -701,7 +839,11 @@ function renderNodes(
} else if (node.ambiguousNames.length === 1) {
ctx.fillText(node.ambiguousNames[0], node.x, yOffset);
} else {
ctx.fillText(`${node.ambiguousNames[0]} +${node.ambiguousNames.length - 1} more`, node.x, yOffset);
ctx.fillText(
`${node.ambiguousNames[0]} +${node.ambiguousNames.length - 1} more`,
node.x,
yOffset
);
}
}
}
@@ -739,7 +881,14 @@ export function PacketVisualizer({ packets, contacts, config }: PacketVisualizer
// Data layer
const data = useVisualizerData({
packets, contacts, config, showAmbiguousPaths, showAmbiguousNodes, chargeStrength, letEmDrift, dimensions,
packets,
contacts,
config,
showAmbiguousPaths,
showAmbiguousNodes,
chargeStrength,
letEmDrift,
dimensions,
});
// Track dimensions
@@ -805,7 +954,11 @@ export function PacketVisualizer({ packets, contacts, config }: PacketVisualizer
});
renderLinks(ctx, visibleLinks, data.nodes);
data.particles.splice(0, data.particles.length, ...renderParticles(ctx, data.particles, data.nodes, visibleNodeIds));
data.particles.splice(
0,
data.particles.length,
...renderParticles(ctx, data.particles, data.nodes, visibleNodeIds)
);
renderNodes(ctx, visibleNodes, hoveredNodeId);
ctx.restore();
@@ -820,47 +973,63 @@ export function PacketVisualizer({ packets, contacts, config }: PacketVisualizer
requestAnimationFrame(animate);
};
animate();
return () => { running = false; };
return () => {
running = false;
};
}, [render]);
// Mouse handlers
const screenToGraph = useCallback((screenX: number, screenY: number) => {
const { width, height } = dimensions;
const cx = (screenX - width / 2) / transform.scale - transform.x + width / 2;
const cy = (screenY - height / 2) / transform.scale - transform.y + height / 2;
return { x: cx, y: cy };
}, [dimensions, transform]);
const screenToGraph = useCallback(
(screenX: number, screenY: number) => {
const { width, height } = dimensions;
const cx = (screenX - width / 2) / transform.scale - transform.x + width / 2;
const cy = (screenY - height / 2) / transform.scale - transform.y + height / 2;
return { x: cx, y: cy };
},
[dimensions, transform]
);
const findNodeAt = useCallback((gx: number, gy: number) => {
for (const node of data.nodes.values()) {
if (node.x == null || node.y == null) continue;
if (Math.hypot(gx - node.x, gy - node.y) < 20) return node;
}
return null;
}, [data.nodes]);
const findNodeAt = useCallback(
(gx: number, gy: number) => {
for (const node of data.nodes.values()) {
if (node.x == null || node.y == null) continue;
if (Math.hypot(gx - node.x, gy - node.y) < 20) return node;
}
return null;
},
[data.nodes]
);
const handleMouseDown = useCallback((e: React.MouseEvent) => {
isDraggingRef.current = true;
lastMouseRef.current = { x: e.clientX, y: e.clientY };
}, []);
const handleMouseMove = useCallback((e: React.MouseEvent) => {
const canvas = canvasRef.current;
if (!canvas) return;
const handleMouseMove = useCallback(
(e: React.MouseEvent) => {
const canvas = canvasRef.current;
if (!canvas) return;
const rect = canvas.getBoundingClientRect();
const pos = screenToGraph(e.clientX - rect.left, e.clientY - rect.top);
setHoveredNodeId(findNodeAt(pos.x, pos.y)?.id || null);
const rect = canvas.getBoundingClientRect();
const pos = screenToGraph(e.clientX - rect.left, e.clientY - rect.top);
setHoveredNodeId(findNodeAt(pos.x, pos.y)?.id || null);
if (!isDraggingRef.current) return;
const dx = e.clientX - lastMouseRef.current.x;
const dy = e.clientY - lastMouseRef.current.y;
lastMouseRef.current = { x: e.clientX, y: e.clientY };
setTransform((t) => ({ ...t, x: t.x + dx / t.scale, y: t.y + dy / t.scale }));
}, [screenToGraph, findNodeAt]);
if (!isDraggingRef.current) return;
const dx = e.clientX - lastMouseRef.current.x;
const dy = e.clientY - lastMouseRef.current.y;
lastMouseRef.current = { x: e.clientX, y: e.clientY };
setTransform((t) => ({ ...t, x: t.x + dx / t.scale, y: t.y + dy / t.scale }));
},
[screenToGraph, findNodeAt]
);
const handleMouseUp = useCallback(() => { isDraggingRef.current = false; }, []);
const handleMouseLeave = useCallback(() => { isDraggingRef.current = false; setHoveredNodeId(null); }, []);
const handleMouseUp = useCallback(() => {
isDraggingRef.current = false;
}, []);
const handleMouseLeave = useCallback(() => {
isDraggingRef.current = false;
setHoveredNodeId(null);
}, []);
const handleWheel = useCallback((e: WheelEvent) => {
e.preventDefault();
@@ -903,7 +1072,10 @@ export function PacketVisualizer({ packets, contacts, config }: PacketVisualizer
<div className="text-muted-foreground font-medium mb-1">Packets</div>
{PACKET_LEGEND_ITEMS.map((item) => (
<div key={item.label} className="flex items-center gap-2">
<div className="w-5 h-5 rounded-full flex items-center justify-center text-[8px] font-bold text-white" style={{ backgroundColor: item.color }}>
<div
className="w-5 h-5 rounded-full flex items-center justify-center text-[8px] font-bold text-white"
style={{ backgroundColor: item.color }}
>
{item.label}
</div>
<span>{item.description}</span>
@@ -918,34 +1090,66 @@ export function PacketVisualizer({ packets, contacts, config }: PacketVisualizer
<div className="flex flex-col gap-2">
<div>Nodes: {data.stats.nodes}</div>
<div>Links: {data.stats.links}</div>
<div className="text-muted-foreground">Processed: {data.stats.processed} | Animated: {data.stats.animated}</div>
<div className="text-muted-foreground">
Processed: {data.stats.processed} | Animated: {data.stats.animated}
</div>
<div className="border-t border-border pt-2 mt-1 flex flex-col gap-2">
<label className="flex items-center gap-2 cursor-pointer">
<Checkbox checked={showAmbiguousPaths} onCheckedChange={(c) => setShowAmbiguousPaths(c === true)} />
<span title="Show placeholder nodes for repeaters when the 1-byte prefix matches multiple contacts">Ambiguous repeaters</span>
<Checkbox
checked={showAmbiguousPaths}
onCheckedChange={(c) => setShowAmbiguousPaths(c === true)}
/>
<span title="Show placeholder nodes for repeaters when the 1-byte prefix matches multiple contacts">
Ambiguous repeaters
</span>
</label>
<label className="flex items-center gap-2 cursor-pointer">
<Checkbox checked={showAmbiguousNodes} onCheckedChange={(c) => setShowAmbiguousNodes(c === true)} />
<span title="Show placeholder nodes for senders/recipients when only a 1-byte prefix is known">Ambiguous sender/recipient</span>
<Checkbox
checked={showAmbiguousNodes}
onCheckedChange={(c) => setShowAmbiguousNodes(c === true)}
/>
<span title="Show placeholder nodes for senders/recipients when only a 1-byte prefix is known">
Ambiguous sender/recipient
</span>
</label>
<label className="flex items-center gap-2 cursor-pointer">
<Checkbox checked={filterOldRepeaters} onCheckedChange={(c) => setFilterOldRepeaters(c === true)} />
<span title="Hide repeaters not heard within the last 48 hours">Hide repeaters &gt;48hrs heard</span>
<Checkbox
checked={filterOldRepeaters}
onCheckedChange={(c) => setFilterOldRepeaters(c === true)}
/>
<span title="Hide repeaters not heard within the last 48 hours">
Hide repeaters &gt;48hrs heard
</span>
</label>
<label className="flex items-center gap-2 cursor-pointer">
<Checkbox checked={letEmDrift} onCheckedChange={(c) => setLetEmDrift(c === true)} />
<span title="When enabled, the graph continuously reorganizes itself into a better layout">Let &apos;em drift</span>
<span title="When enabled, the graph continuously reorganizes itself into a better layout">
Let &apos;em drift
</span>
</label>
<div className="flex flex-col gap-1 mt-1">
<label className="text-muted-foreground" title="How strongly nodes repel each other. Higher values spread nodes out more.">
<label
className="text-muted-foreground"
title="How strongly nodes repel each other. Higher values spread nodes out more."
>
Repulsion: {Math.abs(chargeStrength)}
</label>
<input
type="range" min="50" max="2500" value={Math.abs(chargeStrength)}
type="range"
min="50"
max="2500"
value={Math.abs(chargeStrength)}
onChange={(e) => setChargeStrength(-parseInt(e.target.value))}
className="w-full h-2 bg-border rounded-lg appearance-none cursor-pointer accent-primary"
/>
</div>
<button
onClick={data.randomizePositions}
className="mt-2 px-3 py-1.5 bg-primary/20 hover:bg-primary/30 text-primary rounded text-xs transition-colors"
title="Randomize node positions and let the simulation settle into a new layout"
>
Shuffle layout
</button>
</div>
</div>
</div>
+2 -10
View File
@@ -38,11 +38,7 @@ export function VisualizerView({ packets, contacts, config }: VisualizerViewProp
<TabsTrigger value="packets">Packet Feed</TabsTrigger>
</TabsList>
<TabsContent value="visualizer" className="flex-1 m-0 overflow-hidden">
<PacketVisualizer
packets={packets}
contacts={contacts}
config={config}
/>
<PacketVisualizer packets={packets} contacts={contacts} config={config} />
</TabsContent>
<TabsContent value="packets" className="flex-1 m-0 overflow-hidden">
<RawPacketList packets={packets} />
@@ -59,11 +55,7 @@ export function VisualizerView({ packets, contacts, config }: VisualizerViewProp
fullScreen ? 'flex-1' : 'flex-1 border-r border-border'
)}
>
<PacketVisualizer
packets={packets}
contacts={contacts}
config={config}
/>
<PacketVisualizer packets={packets} contacts={contacts} config={config} />
</div>
{/* Packet feed panel - hidden when full screen */}