@rainbow-robotics/preview-host 0.11.2 → 0.11.4-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/assets/AmrCapabilityControl.DmKtXdoo.js +1 -0
  2. package/dist/assets/{RbLocalizationProvider.Bjp-XasT.js → RbLocalizationProvider.CWhKAdXD.js} +1 -1
  3. package/dist/assets/{__federation_expose_App.BoAD7rmq.js → __federation_expose_App.CUrub2ol.js} +311 -321
  4. package/dist/assets/__federation_fn_import.DdkEuT6t.js +2 -2
  5. package/dist/assets/{cssMode.DvbQhRWp.js → cssMode.C5Zyww__.js} +1 -1
  6. package/dist/assets/{freemarker2.D4QgvvAA.js → freemarker2.ysOkqchO.js} +1 -1
  7. package/dist/assets/{handlebars.aNWQrcY9.js → handlebars.DdkDbjfW.js} +1 -1
  8. package/dist/assets/{html.De5DHXNR.js → html.CK06Y45j.js} +1 -1
  9. package/dist/assets/{htmlMode.LxOTVQQu.js → htmlMode.DO34bW4E.js} +1 -1
  10. package/dist/assets/index.BRGvomBZ.js +26 -0
  11. package/dist/assets/{index.lzV92Wx_.js → index.BdbaU625.js} +1 -1
  12. package/dist/assets/{index.DKZKIW-y.js → index.kyIuumb-.js} +1 -1
  13. package/dist/assets/{javascript.Cvwtihkn.js → javascript.Cugfg21W.js} +1 -1
  14. package/dist/assets/{jsonMode.DhyMqrQK.js → jsonMode.ckKFHWaI.js} +1 -1
  15. package/dist/assets/{liquid.BteD4Gob.js → liquid.k584rnbm.js} +1 -1
  16. package/dist/assets/{lspLanguageFeatures.B0QqnvEK.js → lspLanguageFeatures.Tshm-6XN.js} +1 -1
  17. package/dist/assets/{mdx.DswheUlM.js → mdx.DTf7uR5-.js} +1 -1
  18. package/dist/assets/{python.BoMGDtn_.js → python.DNZBF2xl.js} +1 -1
  19. package/dist/assets/{razor.D9ppbGyZ.js → razor.CR5Ji_Km.js} +1 -1
  20. package/dist/assets/remoteEntry.js +1 -1
  21. package/dist/assets/{tsMode.CI_2C2BP.js → tsMode.Qy3maEQ-.js} +1 -1
  22. package/dist/assets/{typescript.B-PscPZM.js → typescript.ByaBzX6p.js} +1 -1
  23. package/dist/assets/{useParsedPointCloudData.By3wmxd4.js → useParsedPointCloudData.DK254fdP.js} +141 -141
  24. package/dist/assets/{xml.BR2Tjm_U.js → xml.lKXo8JWz.js} +1 -1
  25. package/dist/assets/{yaml.CO5muCL7.js → yaml.B2kfcoc0.js} +1 -1
  26. package/dist/index.html +5 -5
  27. package/package.json +1 -1
  28. package/serve.mjs +20 -15
  29. package/dist/assets/AmrCapabilityControl.DHlClNfl.js +0 -1
  30. package/dist/assets/index.aaHIZMQG.js +0 -26
@@ -1 +1 @@
1
- import{l as e}from"./__federation_expose_App.BoAD7rmq.js";const n={comments:{blockComment:["<!--","-->"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}]},o={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}};export{n as conf,o as language};
1
+ import{l as e}from"./__federation_expose_App.CUrub2ol.js";const n={comments:{blockComment:["<!--","-->"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}]},o={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}};export{n as conf,o as language};
@@ -1 +1 @@
1
- import{l as e}from"./__federation_expose_App.BoAD7rmq.js";const t={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:e.IndentAction.Indent}}]},o={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}};export{t as conf,o as language};
1
+ import{l as e}from"./__federation_expose_App.CUrub2ol.js";const t={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:e.IndentAction.Indent}}]},o={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}};export{t as conf,o as language};
package/dist/index.html CHANGED
@@ -6,16 +6,16 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Rainbow Robotics System</title>
8
8
  <script type="importmap">{"imports":{"react":"/plugin-shared/react.js","react/jsx-runtime":"/plugin-shared/react_jsx-runtime.js","react/jsx-dev-runtime":"/plugin-shared/react_jsx-dev-runtime.js","react-dom":"/plugin-shared/react-dom.js","react-dom/client":"/plugin-shared/react-dom_client.js","@rainbow-robotics/plugin-ui/react":"/plugin-shared/plugin-ui_react.js","@rainbow-robotics/plugin-ui/sdk":"/plugin-shared/plugin-ui_sdk.js","@rainbow-robotics/plugin-ui/host-ui":"/plugin-shared/plugin-ui_host-ui.js","@rainbow-robotics/plugin-ui/ws":"/plugin-shared/plugin-ui_ws.js"}}</script>
9
- <script type="module" crossorigin src="/assets/index.lzV92Wx_.js"></script>
9
+ <script type="module" crossorigin src="/assets/index.BdbaU625.js"></script>
10
10
  <link rel="modulepreload" crossorigin href="/assets/__federation_fn_import.DdkEuT6t.js">
11
11
  <link rel="modulepreload" crossorigin href="/assets/index.P6snMalu.js">
12
12
  <link rel="modulepreload" crossorigin href="/assets/jsx-runtime.CBqCNPYB.js">
13
13
  <link rel="modulepreload" crossorigin href="/assets/emotion-styled-base.browser.esm.BIcjgOzg.js">
14
- <link rel="modulepreload" crossorigin href="/assets/RbLocalizationProvider.Bjp-XasT.js">
14
+ <link rel="modulepreload" crossorigin href="/assets/RbLocalizationProvider.CWhKAdXD.js">
15
15
  <link rel="modulepreload" crossorigin href="/assets/index.B3zY1kf7.js">
16
- <link rel="modulepreload" crossorigin href="/assets/useParsedPointCloudData.By3wmxd4.js">
17
- <link rel="modulepreload" crossorigin href="/assets/index.DKZKIW-y.js">
18
- <link rel="modulepreload" crossorigin href="/assets/__federation_expose_App.BoAD7rmq.js">
16
+ <link rel="modulepreload" crossorigin href="/assets/useParsedPointCloudData.DK254fdP.js">
17
+ <link rel="modulepreload" crossorigin href="/assets/index.kyIuumb-.js">
18
+ <link rel="modulepreload" crossorigin href="/assets/__federation_expose_App.CUrub2ol.js">
19
19
 
20
20
 
21
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rainbow-robotics/preview-host",
3
- "version": "0.11.2",
3
+ "version": "0.11.4-dev.0",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=20"
package/serve.mjs CHANGED
@@ -161,10 +161,10 @@ const MODEL_SOURCES = [
161
161
  ];
162
162
  const MODELS_CACHE = resolve(homedir(), ".muscat-pk", "models");
163
163
 
164
- const unreachable = new Set(); // a source that didn't answer is skipped from then on
164
+ const unreachable = new Set(); // a source that refused the connection is skipped from then on
165
165
 
166
166
  const checked = new Set(); // model files already compared with their source in this run
167
- let noRecheck = false; // a recheck timed out: serve the cache for the rest of this run
167
+ const RECHECK_WAIT = Number(process.env.MUSCAT_PK_MODELS_RECHECK_WAIT) || 5_000;
168
168
 
169
169
  // The file from the first source that has it: { data, tag } where tag is "<source>\n<etag>", "same"
170
170
  // when `have` (the tag of the cached copy) still matches, or null when no source has it.
@@ -176,16 +176,15 @@ async function fetchModel(rel, have = null) {
176
176
  try {
177
177
  const r = await fetch(`${base}/${path}`, {
178
178
  headers: haveEtag && base === haveBase ? { "If-None-Match": haveEtag } : {},
179
- signal: AbortSignal.timeout(have ? 5_000 : 15_000),
179
+ signal: AbortSignal.timeout(have ? 60_000 : 15_000),
180
180
  });
181
181
  if (r.status === 304) return "same";
182
182
  // S3 answers 403 for a missing key; a web server may answer 200 with an HTML fallback page.
183
183
  if (r.ok && !(r.headers.get("content-type") ?? "").startsWith("text/html"))
184
184
  return { data: Buffer.from(await r.arrayBuffer()), tag: `${base}\n${r.headers.get("etag") ?? ""}` };
185
185
  } catch (e) {
186
- // A slow recheck must not make the source look gone for files that still need downloading.
187
- if (have && e.name === "TimeoutError") noRecheck = true;
188
- else unreachable.add(base);
186
+ // Slow is not gone: a timeout must not switch the source off for the rest of the run.
187
+ if (e.name !== "TimeoutError") unreachable.add(base);
189
188
  if (have) return null;
190
189
  }
191
190
  }
@@ -207,17 +206,23 @@ async function serveModel(res, url) {
207
206
  }
208
207
  const cached = existsSync(file);
209
208
  const tagFile = `${file}.etag`;
210
- if (!cached || (!checked.has(rel) && !noRecheck)) {
209
+ if (!cached || !checked.has(rel)) {
211
210
  checked.add(rel);
212
211
  const have = cached ? (existsSync(tagFile) ? readFileSync(tagFile, "utf8") : "\n") : null;
213
- const got = await fetchModel(rel, have);
214
- if (got && got !== "same") {
215
- mkdirSync(dirname(file), { recursive: true });
216
- const part = `${file}.${process.pid}.part`;
217
- writeFileSync(part, got.data);
218
- renameSync(part, file);
219
- writeFileSync(tagFile, got.tag);
220
- } else if (!cached) {
212
+ const saved = fetchModel(rel, have)
213
+ .then((got) => {
214
+ if (!got || got === "same") return cached;
215
+ mkdirSync(dirname(file), { recursive: true });
216
+ const part = `${file}.${process.pid}.part`;
217
+ writeFileSync(part, got.data);
218
+ renameSync(part, file);
219
+ writeFileSync(tagFile, got.tag);
220
+ return true;
221
+ })
222
+ .catch(() => cached);
223
+ // A slow recheck does not hold a cached file up: the download carries on and replaces it.
224
+ const ok = cached ? await Promise.race([saved, new Promise((r) => setTimeout(r, RECHECK_WAIT, true))]) : await saved;
225
+ if (!ok) {
221
226
  res.statusCode = 404;
222
227
  res.end(`model file not found: ${rel}`);
223
228
  return;
@@ -1 +0,0 @@
1
- import{importShared as f}from"./__federation_fn_import.DdkEuT6t.js";import{co as g,H as s,j as t,X as v,U as p,x as b,c1 as c,bI as O,aW as F,a$ as E,V as B,bs as P,bF as w,_ as D,fS as _,gJ as R}from"./RbLocalizationProvider.Bjp-XasT.js";import{a as T}from"./index.DKZKIW-y.js";const{useQuery:M}=await f("@tanstack/react-query"),C=[{key:"dock",endpoint:"/{robot_model}/capability/dock",labelKey:"move.amr.rightPanel.capability.dock"},{key:"io",endpoint:"/{robot_model}/capability/Io",labelKey:"move.amr.rightPanel.capability.io"},{key:"camera",endpoint:"/{robot_model}/capability/camera",labelKey:"move.amr.rightPanel.capability.camera"},{key:"lidar2d",endpoint:"/{robot_model}/capability/lidar2d",labelKey:"move.amr.rightPanel.capability.lidar2d"},{key:"lidar3d",endpoint:"/{robot_model}/capability/lidar3d",labelKey:"move.amr.rightPanel.capability.lidar3d"},{key:"imu",endpoint:"/{robot_model}/capability/imu",labelKey:"move.amr.rightPanel.capability.imu"},{key:"safetyBumper",endpoint:"/{robot_model}/capability/safetyBumper",labelKey:"move.amr.rightPanel.capability.safetyBumper"},{key:"safetyInterlock",endpoint:"/{robot_model}/capability/safetyInterlock",labelKey:"move.amr.rightPanel.capability.safetyInterlock"},{key:"safetyObstacle",endpoint:"/{robot_model}/capability/safetyObstacle",labelKey:"move.amr.rightPanel.capability.safetyObstacle"},{key:"safetyOperationStop",endpoint:"/{robot_model}/capability/safetyOperationStop",labelKey:"move.amr.rightPanel.capability.safetyOperationStop"},{key:"safetySpeedControl",endpoint:"/{robot_model}/capability/safetySpeedControl",labelKey:"move.amr.rightPanel.capability.safetySpeedControl"},{key:"tabos",endpoint:"/{robot_model}/capability/tabos",labelKey:"move.amr.rightPanel.capability.tabos"}],L=e=>typeof e=="object"&&e!==null&&"enabled"in e&&e.enabled===!1,K=e=>{if(e instanceof Error)return e.message;if(typeof e=="object"&&e!==null&&"message"in e){const a=e.message;if(typeof a=="string")return a}},q=async({robot_model:e})=>{const a=await Promise.allSettled(C.map(l=>{const r=l.endpoint.replace("{robot_model}",e);return T.get(r,{skipErrorToast:!0})}));return C.map((l,r)=>{const n=a[r];return n.status==="fulfilled"?{...l,supported:!L(n.value),data:n.value}:{...l,supported:!1,data:null,errorMessage:K(n.reason)}})},$=({robot_model:e,enabled:a=!0})=>M({queryKey:["amrCapabilities",e],queryFn:()=>q({robot_model:e}),enabled:!!e&&a,staleTime:5*1e3,gcTime:60*1e3}),{useMutation:U}=await f("@tanstack/react-query"),V=()=>U({mutationFn:({robot_model:e,target:a,frequency:l})=>T.post(`/${e}/control/streamFrequency`,{target:a,frequency:Math.min(10,Math.max(0,l))})}),{useState:k}=await f("react"),j=4294967295,x=e=>{if(!(e==null||e===j))return`${e} ms`},z={0:"NONE",1:"CHARGING",2:"COMPLETE",3:"FAIL",4:"CANCEL"},G={0:"DEFAULT",1:"TABOS"},Y={0:"CABLE",1:"CONTACT",2:"INDUCTIVE"},H={0:"RPLIDAR",1:"SICK",2:"LAKI",3:"LIVOX",4:"HOKUYO"},X={0:"ORBBEC"},i=({label:e,children:a})=>s(p,{className:"items-center justify-between gap-3",children:[t("span",{className:"typo-compact-xs-normal text-fg-subtle shrink-0",children:e}),t("span",{className:b("typo-compact-xs-normal text-right",a!=null?"text-fg-default":"text-fg-subtler"),children:a??"—"})]}),Q={default:"gray",success:"green",warning:"orange",danger:"red"},y=({label:e,variant:a="default"})=>t(D,{type:"soft",color:Q[a],children:e}),h=({label:e,value:a})=>t(i,{label:e,children:t(y,{label:a?"ON":"OFF",variant:a?"success":"default"})}),u=({label:e,bits:a})=>s(c,{className:"gap-1",children:[t("span",{className:"typo-compact-xs-normal text-fg-subtle",children:e}),a?.length?t(p,{className:"gap-1",children:a.map((l,r)=>t("div",{className:b("size-4 rounded-sm border text-center leading-4",l?"border-fg-success bg-fill-success-subtlest":"border-border-subtler bg-fill-disabled"),children:t("span",{className:b("typo-compact-2xs-normal",l?"text-fg-success":"text-fg-subtler"),children:r})},r))}):t("span",{className:"typo-compact-xs-normal text-fg-subtler",children:"—"})]}),N=({label:e,connection:a,rows:l,children:r})=>{const{t:n}=g();return s(c,{className:"bg-fill-disabled gap-1.5 rounded-md p-2.5",children:[s(p,{className:"items-center justify-between gap-3",children:[t("span",{className:"typo-compact-xs-semibold text-fg-default min-w-0 break-words",children:e}),t("span",{className:b("typo-compact-2xs-medium shrink-0",a?"text-fg-success":"text-fg-subtler"),children:n(a?"settings.amr.frs.status.connected":"settings.amr.frs.status.disconnected")})]}),l.map(({key:o,value:d})=>t(i,{label:o,children:d},o)),r]})},J=({label:e,value:a})=>t(D,{type:"soft",color:a?"green":"gray",children:s(p,{className:"items-center gap-1",children:[a?t(_,{className:"size-3"}):t(R,{className:"size-3"}),t("span",{children:e}),t("span",{className:"font-semibold",children:a?"On":"Off"})]})}),I=({flags:e})=>t(p,{className:"flex-wrap gap-1.5",children:e.map(({label:a,value:l})=>t(J,{label:a,value:l},a))}),W=({streams:e})=>e.length?s(c,{className:"border-subtle mt-0.5 gap-1 border-t pt-1.5",children:[t("span",{className:"typo-compact-xs-normal text-fg-subtle",children:"Streams"}),t(p,{className:"flex-wrap gap-1",children:e.map(a=>s(p,{className:"border-subtle bg-alt-1 items-center gap-1 rounded px-1.5 py-1",children:[t("span",{className:"typo-compact-2xs-semibold text-fg-default",children:a.quality}),s("span",{className:"typo-compact-2xs-normal text-fg-subtle",children:[a.width,"x",a.height]}),s("span",{className:"typo-compact-2xs-normal text-fg-subtler",children:[a.fps,"fps"]})]},`${a.camId}-${a.quality}`))})]}):null,Z=({data:e})=>{const a=z[e.chargeState??-1]??String(e.chargeState),l=e.chargeState===1?"success":e.chargeState===3?"danger":e.chargeState===4?"warning":"default";return s(c,{className:"gap-2",children:[s(c,{className:"bg-fill-disabled gap-2 rounded-md p-2.5",children:[t(h,{label:"Dock State",value:e.dockState}),t(i,{label:"Charge State",children:t(y,{label:a,variant:l})}),s(i,{label:"Battery",children:[e.batteryPercent?.toFixed(1)," %"]}),s(i,{label:"Charge Current",children:[e.chargeCurrent?.toFixed(2)," A"]}),s(i,{label:"Contact Voltage",children:[e.contactVoltage?.toFixed(2)," V"]}),t(i,{label:"Battery Type",children:t(y,{label:G[e.batteryType??0]??"—"})})]}),s(p,{className:"items-center gap-1.5 px-0.5",children:[t("span",{className:"typo-compact-xs-normal text-fg-subtle shrink-0",children:"Charge Type"}),e.chargeType?.length?t(p,{className:"flex-wrap gap-1.5",children:e.chargeType.map(r=>t(y,{label:Y[r]??String(r),variant:"default"},r))}):t("span",{className:"typo-compact-xs-normal text-fg-subtler",children:"—"})]})]})},ee=({data:e})=>s(c,{className:"gap-3 p-0.5",children:[t(u,{label:"MCU0 DIO",bits:e.mcu0Dio}),t(u,{label:"MCU1 DIO",bits:e.mcu1Dio}),t(u,{label:"MCU0 DIN",bits:e.mcu0Din}),t(u,{label:"MCU1 DIN",bits:e.mcu1Din})]}),ae=({data:e})=>s(c,{className:"gap-2",children:[t(I,{flags:[{label:"Obstacle",value:e.enabledObs},{label:"Depth",value:e.enabledDepth},{label:"Filter",value:e.enabledFilter}]}),e.info?.length?e.info.map((a,l)=>{const r=typeof a.type=="number"?X[a.type]??String(a.type):a.type??"—",n=a.camId??a.index??l,o=e.rtspInfo?.filter(d=>d.camId===n)??[];return t(N,{label:`Camera ${n}${a.serial?` · ${a.serial}`:""}`,connection:a.connection,rows:[{key:"Type",value:r},{key:"TF",value:a.tf?.length?a.tf.map(d=>d.toFixed(2)).join(", "):void 0},{key:"Data Age",value:x(a.dataAgeMs)}],children:t(W,{streams:o})},l)}):t("span",{className:"typo-compact-xs-normal text-fg-subtler px-0.5",children:"—"})]}),A=({data:e,is3d:a=!1})=>s(c,{className:"gap-2",children:[t(I,{flags:[{label:"Obstacle",value:e.enabledObs}]}),e.info?.length?e.info.map((l,r)=>t(N,{label:`Lidar ${l.index??r}${l.serial?` · ${l.serial}`:""}`,connection:l.connection,rows:[{key:"Type",value:H[l.type]??String(l.type??"—")},...a?[]:[{key:"IP",value:l.ip}],{key:"Safety",value:l.safety!==void 0?l.safety?"Safety":"Normal":void 0},{key:"TF",value:l.tf?.length?l.tf.map(n=>n.toFixed(2)).join(", "):void 0},{key:"Data Age",value:x(l.dataAgeMs)}]},r)):t("span",{className:"typo-compact-xs-normal text-fg-subtler px-0.5",children:"—"})]}),te=({data:e})=>t(c,{className:"gap-2",children:e.info?.length?e.info.map((a,l)=>t(N,{label:`IMU ${a.index??l}${a.serial?` · ${a.serial}`:""}`,connection:a.connection,rows:[{key:"Type",value:a.type===1?"IMU":"DEFAULT"},{key:"Data Age",value:x(a.dataAgeMs)}]},l)):t("span",{className:"typo-compact-xs-normal text-fg-subtler px-0.5",children:"—"})}),le=({data:e})=>{const a=[{label:"Bumper State",value:e.bumperState},{label:"Interlock State",value:e.interlockState},{label:"Obstacle Detect",value:e.obsDetect},{label:"Operation Stop",value:e.operationStopState},{label:"Speed Control",value:e.speedControlState}].filter(l=>l.value!==void 0);return s(c,{className:"bg-fill-disabled gap-2 rounded-md p-2.5",children:[t(h,{label:"Enabled",value:e.enabled}),a.map(l=>t(h,{label:l.label,value:l.value},l.label))]})},se=({data:e})=>s(c,{className:"bg-fill-disabled gap-2 rounded-md p-2.5",children:[s(i,{label:"Voltage",children:[e.tabosVoltage?.toFixed(2)," V"]}),s(i,{label:"Current",children:[e.tabosCurrent?.toFixed(2)," A"]}),s(i,{label:"SOC",children:[e.tabosSoc?.toFixed(1)," %"]}),s(i,{label:"SOH",children:[e.tabosSoh?.toFixed(1)," %"]}),s(i,{label:"Temp",children:[e.tabosTemp?.toFixed(1)," °C"]})]}),re=({capKey:e,data:a})=>{switch(e){case"dock":return t(Z,{data:a});case"io":return t(ee,{data:a});case"camera":return t(ae,{data:a});case"lidar2d":return t(A,{data:a});case"lidar3d":return t(A,{data:a,is3d:!0});case"imu":return t(te,{data:a});case"tabos":return t(se,{data:a});default:return t(le,{data:a})}},ne=[{label:"LiDAR 2D",value:"lidar2d"},{label:"LiDAR 3D",value:"lidar3d"},{label:"OBS Map",value:"obsMap"}],ce=({robotModel:e})=>{const[a,l]=k("lidar2d"),[r,n]=k("1"),{mutate:o,isPending:d}=V();return s(c,{className:"gap-2 pb-1",children:[s(p,{className:"items-center justify-between gap-2",children:[t("span",{className:"typo-compact-xs-normal text-fg-subtle",children:"Target"}),t(E,{size:"2xs",variant:"brand",disabled:d,onClick:()=>{const m=Math.min(10,Math.max(0,Number(r)));o({robot_model:e,target:a,frequency:m})},children:"Set"})]}),t(P,{size:"sm",value:a,handleChange:m=>l(m),children:ne.map(({label:m,value:S})=>t(B,{value:S,children:m},S))}),t(p,{className:"items-center gap-2",children:t(w,{className:"flex-1",size:"sm",value:r,step:1,digit:0,fixedDigit:0,min:"0",max:"10",handleChange:m=>n(m)})})]})},oe=({item:e})=>{const{t:a}=g();return e.supported?e.data?t("div",{className:"pb-1",children:t(re,{capKey:e.key,data:e.data})}):null:t("p",{className:"typo-compact-xs-normal text-fg-disabled px-1 py-2",children:a("move.amr.rightPanel.capability.status.notSupported")})},ie=()=>{const{t:e}=g();return t(F,{className:"flex-1 [&_[data-slot='empty-view-section']]:h-full",type:"icon",icon:t(O,{size:20}),message:e("move.amr.rightPanel.capability.status.loading")})},ue=({className:e,robotModel:a})=>{const{t:l}=g(),{data:r,isLoading:n}=$({robot_model:a});return s(c,{className:b("AmrCapabilityControl h-full min-h-0",e),children:[n&&t(ie,{}),(r??[]).map(o=>t("div",{className:"border-subtler border-b px-1 py-1",children:t(v,{disabled:!o.supported,title:t(p,{className:"w-full items-center justify-between gap-2",children:t("span",{className:b("typo-compact-sm2-semibold min-w-0 truncate",o.supported?"text-fg-default":"text-fg-disabled"),children:l(o.labelKey)})}),children:t(oe,{item:o})})},o.key)),t("div",{className:"border-subtler border-b px-1 py-1",children:t(v,{title:t("span",{className:"typo-compact-sm2-semibold text-fg-default",children:l("move.amr.rightPanel.capability.streamFrequency")}),children:t(ce,{robotModel:a})})})]})};export{ue as default};
@@ -1,26 +0,0 @@
1
- import{b0 as _,b1 as E,b2 as z,ax as O,a_ as R,b3 as I}from"./useParsedPointCloudData.By3wmxd4.js";import{aC as ye,b4 as ve,aT as we,aQ as Pe,b5 as Te,b6 as ke,b7 as Me,ay as je,b8 as Oe,aD as Ae,b9 as $e,aB as Se,ba as Ce,bb as Re,bc as De,bd as Le,be as _e,aO as Ee,aE as ze,aN as Ie,aP as Fe,bf as Ue,bg as Ge,bh as Ye,aR as He,bi as Be,bj as Ve,aS as Xe,bk as Ze,aV as qe,aX as Ke,aW as Je,bl as We,bm as Qe,bn as ea,aU as aa,bo as ta,bp as sa,bq as la,br as ra,bs as ca,bt as na,bu as ia,aw as oa,bv as ma,aA as da,aM as pa,aL as ga,az as ha,aJ as fa,aK as xa,aI as ba,aG as ua,aH as Na,aF as ya}from"./useParsedPointCloudData.By3wmxd4.js";import{c as T,co as C,H as a,j as e,c1 as c,U as r,gj as F,eJ as U,X as G,cB as Y,gk as H,gl as B,gm as V,fl as X,a$ as P,eG as Z,eO as q,gn as K,go as J,cJ as W,gp as Q,ew as ee}from"./RbLocalizationProvider.Bjp-XasT.js";/**
2
- * @license lucide-react v0.486.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const ae=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],te=T("activity",ae);/**
7
- * @license lucide-react v0.486.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const se=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],le=T("hard-drive",se);/**
12
- * @license lucide-react v0.486.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const re=[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]],M=T("radar",re);/**
17
- * @license lucide-react v0.486.0 - ISC
18
- *
19
- * This source code is licensed under the ISC license.
20
- * See the LICENSE file in the root directory of this source tree.
21
- */const ce=[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]],ne=T("thermometer",ce);/**
22
- * @license lucide-react v0.486.0 - ISC
23
- *
24
- * This source code is licensed under the ISC license.
25
- * See the LICENSE file in the root directory of this source tree.
26
- */const ie=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],D=T("video",ie),ge=({amrStatus:t,robotVersion:i,selectedTool:d="select",onToolChange:s,onInitLocalization:o,onSemiAutoInitLocalization:u,onStopLocalization:N,onBuildInfoOpenChange:y})=>{const{t:m}=C(),x=g=>{const k=Number(g);return Number.isFinite(k)?k:0},l=t?.locState?.locStatus??"none",n=t?.autoMove??"none",b=t?.obsState??"none",h=t?.operatingMode??"none",p=x(t?.pose?.x),v=x(t?.pose?.y),f=x(t?.pose?.z),A=x(t?.pose?.rz),$=t?.vel?Math.hypot(t.vel.vx??0,t.vel.vy??0):0,S=[{label:m("move.amr.rightPanel.overview.buildInfo.branch"),value:i?.gitBranch},{label:m("move.amr.rightPanel.overview.buildInfo.commit"),value:i?.gitCommit},{label:m("move.amr.rightPanel.overview.buildInfo.buildUser"),value:i?.gitAuthor},{label:m("move.amr.rightPanel.overview.buildInfo.buildDate"),value:i?.buildDate}];return a(c,{className:"overflow-y-auto",children:[e(_,{className:"border-subtler border-b p-3",localizationStatus:l,cursorEnabled:d==="target",onCursorEnabledChange:g=>{s?.(g?"target":"select")},onInitLocalization:o,onSemiAutoInitLocalization:u,onStopLocalization:N}),a(c,{className:"border-subtler gap-1.5 border-b p-3",children:[e("p",{className:"typo-compact-sm2-semibold text-fg-default",children:m("move.amr.rightPanel.overview.moveStatus.title")}),a("div",{className:"bg-fill-disabled grid grid-cols-2 gap-x-3 gap-y-3 rounded-md px-3 py-3",children:[a(c,{className:"gap-1",children:[e("p",{className:"typo-compact-2xs-normal text-fg-subtler",children:m("move.amr.rightPanel.overview.moveStatus.autoMove")}),a(r,{className:"items-center gap-1.5",children:[e(F,{className:`h-3 w-3 ${E(n)}`}),e("p",{className:"typo-compact-xs2-medium text-fg-default",children:n})]})]}),a(c,{className:"gap-1",children:[e("p",{className:"typo-compact-2xs-normal text-fg-subtler",children:m("move.amr.rightPanel.overview.moveStatus.operationMode")}),e("p",{className:`typo-compact-xs2-medium uppercase ${h==="auto"?"text-fg-information":h==="manual"?"text-fg-caution":"text-fg-subtler"}`,children:h})]})]}),a(r,{className:"bg-fill-disabled items-center justify-between rounded-md p-3",children:[e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:m("move.amr.rightPanel.hud.obstacleDetect")}),a(r,{className:"items-center gap-1.5",children:[e(U,{className:`h-3 w-3 ${z(b)}`}),e("p",{className:"typo-compact-sm-semibold text-fg-default",children:b})]})]})]}),a(c,{className:"border-subtler gap-1.5 border-b p-3",children:[e("label",{className:"typo-compact-sm2-semibold text-fg-default",children:m("move.amr.rightPanel.overview.robotTransform.title")}),a("div",{className:"space-y-2",children:[e("span",{className:"typo-compact-xs-normal text-fg-subtle",children:m("move.amr.rightPanel.overview.robotTransform.position")}),a("div",{className:"mt-2 flex items-center gap-4",children:[a("div",{className:"flex min-w-0 flex-1 items-center gap-4",children:[e("span",{className:"typo-compact-xs2-medium text-fg-danger uppercase",children:"X"}),a("span",{className:"typo-compact-xs2-normal text-fg-default font-mono",children:[p.toFixed(3)," m"]})]}),a("div",{className:"flex min-w-0 flex-1 items-center gap-4",children:[e("span",{className:"typo-compact-xs2-medium text-fg-success uppercase",children:"Y"}),a("span",{className:"typo-compact-xs2-normal text-fg-default font-mono",children:[v.toFixed(3)," m"]})]}),a("div",{className:"flex min-w-0 flex-1 items-center gap-4",children:[e("span",{className:"typo-compact-xs2-medium text-fg-brand uppercase",children:"Z"}),a("span",{className:"typo-compact-xs2-normal text-fg-default font-mono",children:[f.toFixed(3)," m"]})]})]}),a("div",{className:"flex items-center gap-4",children:[e("span",{className:"typo-compact-xs-normal text-fg-subtle flex-1",children:m("move.amr.rightPanel.overview.robotTransform.rotation")}),e("span",{className:"typo-compact-xs-normal text-fg-subtle flex-1",children:m("move.amr.rightPanel.common.speed")})]}),a("div",{className:"flex items-center gap-4",children:[a("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[e("span",{className:"typo-compact-xs2-normal text-fg-danger uppercase",children:"RZ"}),a("span",{className:"typo-compact-xs2-normal text-fg-default",children:[A.toFixed(3),"°"]})]}),e("div",{className:"flex min-w-0 flex-1 items-center",children:a("span",{className:"typo-compact-xs2-normal text-fg-default",children:[$.toFixed(2)," m/s"]})})]})]})]}),e(c,{className:"border-subtler border-b px-1",children:e(G,{handleOpenChange:g=>{y?.(g)},title:e("p",{className:"typo-compact-sm2-semibold text-fg-default",children:m("move.amr.rightPanel.overview.buildInfo.title")}),children:e("div",{className:"bg-fill-disabled flex w-full flex-col items-start justify-start gap-2 rounded-md p-2 px-2.5",children:S.map(g=>a("div",{className:"flex w-full items-center justify-between gap-3",children:[e("div",{className:"text-fg-subtle shrink-0 text-xs leading-4 font-normal",children:g.label}),e("div",{className:"text-fg-default min-w-0 truncate text-right text-xs leading-4 font-normal",children:g.value||"-"})]},g.label))})})})]})},he=({systemStatus:t,expandedSections:i,toggleSection:d})=>a("div",{className:"h-full space-y-3 overflow-y-auto",children:[e("h3",{className:"mb-4 text-sm font-semibold tracking-wide text-gray-400 uppercase",children:"Sensor Information"}),a("div",{className:"space-y-2 pb-4",children:[a("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:[a("button",{onClick:()=>d("lidar2d"),className:"flex w-full items-center justify-between bg-gray-900/50 px-3 py-2 transition-colors hover:bg-gray-900",children:[a("div",{className:"flex items-center gap-2",children:[e(M,{className:"h-4 w-4 text-blue-400"}),e("span",{className:"text-xs font-medium text-gray-300",children:"2D LiDAR"})]}),e(O,{className:`h-4 w-4 text-gray-500 transition-transform ${i.lidar2d?"rotate-180":""}`})]}),i.lidar2d&&e("div",{className:"space-y-1.5 border-t border-gray-800 p-2",children:t.lidar.map(s=>e("div",{className:"rounded bg-gray-900 px-3 py-2",children:a("div",{className:"flex items-center justify-between text-xs",children:[a("div",{className:"flex items-center gap-2",children:[e(M,{className:"h-3.5 w-3.5 text-blue-400"}),a("span",{className:"text-gray-400",children:["LiDAR ",s.index]})]}),a("div",{className:"flex items-center gap-3",children:[a("span",{className:"font-mono text-gray-400",children:[s.pts," pts"]}),a("div",{className:`flex items-center gap-1 ${s.connection?"text-green-400":"text-red-400"}`,children:[e("div",{className:`h-1.5 w-1.5 rounded-full ${s.connection?"bg-green-400":"bg-red-400"}`}),e("span",{children:s.connection?"Online":"Offline"})]})]})]})},s.index))})]}),a("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:[a("button",{onClick:()=>d("lidar3d"),className:"flex w-full items-center justify-between bg-gray-900/50 px-3 py-2 transition-colors hover:bg-gray-900",children:[a("div",{className:"flex items-center gap-2",children:[e(M,{className:"h-4 w-4 text-purple-400"}),e("span",{className:"text-xs font-medium text-gray-300",children:"3D LiDAR"})]}),e(O,{className:`h-4 w-4 text-gray-500 transition-transform ${i.lidar3d?"rotate-180":""}`})]}),i.lidar3d&&e("div",{className:"space-y-1.5 border-t border-gray-800 p-2",children:t.lidar3D.map(s=>e("div",{className:"rounded bg-gray-900 px-3 py-2",children:a("div",{className:"flex items-center justify-between text-xs",children:[a("div",{className:"flex items-center gap-2",children:[e(M,{className:"h-3.5 w-3.5 text-purple-400"}),a("span",{className:"text-gray-400",children:["3D LiDAR ",s.index]})]}),a("div",{className:"flex items-center gap-3",children:[a("span",{className:"font-mono text-gray-400",children:[s.pts," pts"]}),a("div",{className:`flex items-center gap-1 ${s.connection?"text-green-400":"text-red-400"}`,children:[e("div",{className:`h-1.5 w-1.5 rounded-full ${s.connection?"bg-green-400":"bg-red-400"}`}),e("span",{children:s.connection?"Online":"Offline"})]})]})]})},s.index))})]}),a("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:[a("button",{onClick:()=>d("cameras"),className:"flex w-full items-center justify-between bg-gray-900/50 px-3 py-2 transition-colors hover:bg-gray-900",children:[a("div",{className:"flex items-center gap-2",children:[e(D,{className:"h-4 w-4 text-cyan-400"}),e("span",{className:"text-xs font-medium text-gray-300",children:"Cameras"})]}),e(O,{className:`h-4 w-4 text-gray-500 transition-transform ${i.cameras?"rotate-180":""}`})]}),i.cameras&&e("div",{className:"space-y-1.5 border-t border-gray-800 p-2",children:t.cam.map(s=>a("div",{className:"rounded bg-gray-900 px-3 py-2",children:[a("div",{className:"mb-1.5 flex items-center justify-between text-xs",children:[a("div",{className:"flex items-center gap-2",children:[e(D,{className:"h-3.5 w-3.5 text-cyan-400"}),a("span",{className:"text-gray-400",children:["Camera ",s.index]})]}),a("div",{className:`flex items-center gap-1 ${s.connection?"text-green-400":"text-red-400"}`,children:[e("div",{className:`h-1.5 w-1.5 rounded-full ${s.connection?"bg-green-400":"bg-red-400"}`}),e("span",{children:s.connection?"Online":"Offline"})]})]}),a("div",{className:"grid grid-cols-2 gap-2 text-xs text-gray-500",children:[a("div",{children:["RGB: ",s.rgb_w,"×",s.rgb_h]}),a("div",{children:["Depth: ",s.depth_w,"×",s.depth_h]})]})]},s.index))})]})]})]}),fe=({systemStatus:t,expandedSections:i,toggleSection:d})=>{const s=(o,u,N)=>o>=N?"text-red-400":o>=u?"text-yellow-400":"text-green-400";return a("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:[a("button",{onClick:()=>d("systemResources"),className:"flex w-full items-center justify-between bg-gray-900/50 px-3 py-2 transition-colors hover:bg-gray-900",children:[a("div",{className:"flex items-center gap-2",children:[e(R,{className:"h-4 w-4 text-blue-400"}),e("span",{className:"text-xs font-medium text-gray-300",children:"System Resources"})]}),e(O,{className:`h-4 w-4 text-gray-500 transition-transform ${i.systemResources?"rotate-180":""}`})]}),i.systemResources&&a("div",{className:"space-y-3 border-t border-gray-800 bg-gray-900 px-3 py-3",children:[a("div",{children:[a("div",{className:"mb-1.5 flex items-center justify-between",children:[a("div",{className:"flex items-center gap-2",children:[e(R,{className:"h-3.5 w-3.5 text-blue-400"}),e("span",{className:"text-xs text-gray-400",children:"CPU"})]}),a("span",{className:`font-mono text-sm font-medium ${s(t.cpu,70,85)}`,children:[t.cpu,"%"]})]}),e("div",{className:"h-1.5 w-full rounded-full bg-gray-800",children:e("div",{className:`h-1.5 rounded-full transition-all ${t.cpu>=85?"bg-red-500":t.cpu>=70?"bg-yellow-500":"bg-green-500"}`,style:{width:`${t.cpu}%`}})})]}),a("div",{children:[a("div",{className:"mb-1.5 flex items-center justify-between",children:[a("div",{className:"flex items-center gap-2",children:[e(te,{className:"h-3.5 w-3.5 text-purple-400"}),e("span",{className:"text-xs text-gray-400",children:"RAM"})]}),a("span",{className:`font-mono text-sm font-medium ${s(t.memory,75,90)}`,children:[t.memory,"%"]})]}),e("div",{className:"h-1.5 w-full rounded-full bg-gray-800",children:e("div",{className:`h-1.5 rounded-full transition-all ${t.memory>=90?"bg-red-500":t.memory>=75?"bg-yellow-500":"bg-green-500"}`,style:{width:`${t.memory}%`}})})]}),a("div",{children:[a("div",{className:"mb-1.5 flex items-center justify-between",children:[a("div",{className:"flex items-center gap-2",children:[e(le,{className:"h-3.5 w-3.5 text-cyan-400"}),e("span",{className:"text-xs text-gray-400",children:"Storage"})]}),a("span",{className:`font-mono text-sm font-medium ${s(t.disk,80,95)}`,children:[t.disk,"%"]})]}),e("div",{className:"h-1.5 w-full rounded-full bg-gray-800",children:e("div",{className:`h-1.5 rounded-full transition-all ${t.disk>=95?"bg-red-500":t.disk>=80?"bg-yellow-500":"bg-green-500"}`,style:{width:`${t.disk}%`}})})]}),e("div",{children:a("div",{className:"flex items-center justify-between",children:[a("div",{className:"flex items-center gap-2",children:[e(ne,{className:"h-3.5 w-3.5 text-orange-400"}),e("span",{className:"text-xs text-gray-400",children:"CPU Temp"})]}),a("span",{className:`font-mono text-sm font-medium ${s(t.temperature,60,75)}`,children:[t.temperature,"°C"]})]})})]})]})},L=t=>{const i=Math.floor(t/3600).toString().padStart(2,"0"),d=Math.floor(t%3600/60).toString().padStart(2,"0"),s=Math.floor(t%60).toString().padStart(2,"0");return`${i}:${d}:${s}`},xe=({mappingStatus:t="idle",elapsedSeconds:i=0,completedKeyframeCount:d=0,totalKeyframePoints:s=0,onStartMapping:o,onStopMapping:u,onSaveMapping:N,onDiscard:y,mapList:m})=>{const{modal:x}=Y(),{t:l}=C(),n=t==="recording",b=t==="stopped"||t==="saving"||t==="discarding",h=t==="saving"||t==="discarding",p=d>0,v=l(p?"move.amr.rightPanel.map.mapping.readyToSave":"move.amr.rightPanel.map.mapping.cannotSaveYet"),f=p?null:l("move.amr.rightPanel.map.mapping.noKeyframeReceived"),A=async()=>{try{await o?.()}catch(w){console.error(w)}},$=async()=>{try{await u?.()}catch(w){console.error(w)}},S=async()=>{await y?.()},g=async w=>N?.(w)??{ok:!1,reason:"save-failed"},k=()=>{x({component:I,props:{onSaveMapping:g,completedKeyframeCount:d,totalKeyframePoints:s,durationSeconds:i,existingMapNames:m}})};return a(c,{className:"h-full overflow-y-auto p-3",children:[!n&&!b&&a(c,{className:"flex-1 items-center gap-1 pt-[4rem]",children:[e(H,{className:"text-fg-brand size-8"}),e("p",{className:"typo-compact-xs-semibold text-fg-brand",children:l("move.amr.rightPanel.map.mapping.readyToMap")}),a("p",{className:"typo-title-02-bold text-fg-default text-center",children:[l("move.amr.rightPanel.map.mapping.clickStartMapping"),e("br",{}),l("move.amr.rightPanel.map.mapping.toBegin")]})]}),n&&a(c,{className:"flex-1 pt-[4rem]",children:[a(c,{className:"items-center gap-1",children:[e(B,{className:"text-fg-danger size-8"}),e("p",{className:"typo-compact-xs-semibold text-fg-danger",children:l("move.amr.rightPanel.map.mapping.recordingActive")}),e("p",{className:"typo-title-02-bold text-fg-default text-center",children:l("move.amr.rightPanel.map.mapping.buildingKeyframes")})]}),a(c,{className:"gap-2 p-3",children:[e("p",{className:"typo-compact-xs2-semibold text-fg-default",children:l("move.amr.rightPanel.map.mapping.captureStatus")}),a(c,{className:"bg-bg-alt-1 gap-1 rounded-md p-2.5",children:[a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.map.mapping.saveStatus")}),e("p",{className:`typo-compact-xs-semibold text-right ${p?"text-fg-success":"text-fg-danger"}`,children:v})]}),f&&e("p",{className:"typo-compact-2xs-normal text-fg-subtler text-right",children:f}),a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.map.mapping.keyframesReceived")}),e("p",{className:"typo-compact-xs-semibold text-fg-default text-right",children:d.toLocaleString()})]}),a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.map.mapping.keyframePoints")}),e("p",{className:"typo-compact-xs-semibold text-fg-default text-right",children:l("move.amr.rightPanel.map.mapping.points",{count:s.toLocaleString()})})]}),a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.task.duration")}),e("p",{className:"typo-compact-xs-semibold text-fg-default text-right",children:L(i)})]})]})]})]}),b&&a(c,{className:"flex-1 pt-[4rem]",children:[a(c,{className:"items-center gap-1",children:[e(V,{className:`${p?"text-fg-success":"text-fg-danger"} size-8`}),e("p",{className:`typo-compact-xs-semibold ${p?"text-fg-success":"text-fg-danger"}`,children:l(p?"move.amr.rightPanel.map.mapping.readyToSaveTitle":"move.amr.rightPanel.map.mapping.noKeyframeCaptured")}),e("p",{className:"typo-title-02-bold text-fg-default text-center",children:l(p?"move.amr.rightPanel.map.mapping.mapReadyToSave":"move.amr.rightPanel.map.mapping.cannotSaveRecording")}),e("p",{className:"typo-compact-xs-normal text-fg-subtler text-center",children:l(p?"move.amr.rightPanel.map.mapping.canSaveAsNewMap":"move.amr.rightPanel.map.mapping.keyframeRequired")})]}),a(c,{className:"gap-2 p-3",children:[e("p",{className:"typo-compact-xs2-semibold text-fg-default",children:l("move.amr.rightPanel.map.mapping.result")}),a(c,{className:"bg-bg-alt-1 gap-1 rounded-md p-2.5",children:[a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.map.mapping.saveStatus")}),e("p",{className:`typo-compact-xs-semibold text-right ${p?"text-fg-success":"text-fg-danger"}`,children:v})]}),f&&e("p",{className:"typo-compact-2xs-normal text-fg-subtler text-right",children:f}),a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.map.mapping.keyframesReceived")}),e("p",{className:"typo-compact-xs-semibold text-fg-default text-right",children:d.toLocaleString()})]}),a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.map.mapping.keyframePoints")}),e("p",{className:"typo-compact-xs-semibold text-fg-default text-right",children:l("move.amr.rightPanel.map.mapping.points",{count:s.toLocaleString()})})]}),a(r,{className:"items-center justify-between gap-3",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:l("move.amr.rightPanel.task.duration")}),e("p",{className:"typo-compact-xs-semibold text-fg-default text-right",children:L(i)})]})]})]})]}),!b&&a(r,{className:"shrink-0 justify-between gap-2",children:[e(P,{onClick:$,disabled:!n||h,className:"gap-1 px-3.5",leadingIcon:e(X,{}),variant:"danger",children:l("move.amr.rightPanel.common.stop")}),e(P,{onClick:A,disabled:n||h,className:"flex-1 gap-1 px-3.5",variant:"brand",children:l("move.amr.rightPanel.map.mapping.startMapping")})]}),b&&a(c,{className:"shrink-0 gap-2",children:[!p&&e(c,{className:"items-center",children:e("p",{className:"typo-compact-2xs-normal text-fg-danger",children:l("move.amr.rightPanel.map.mapping.keyframeRequired")})}),a(r,{className:"justify-between gap-2",children:[e(P,{onClick:S,disabled:h,className:"gap-1 px-3.5",children:l(t==="discarding"?"move.amr.rightPanel.map.mapping.discarding":"move.amr.rightPanel.common.discard")}),e(P,{onClick:k,disabled:!p||h,className:"flex-1 gap-1 px-3.5",variant:"brand",children:l(t==="saving"?"move.amr.rightPanel.common.saving":"move.amr.rightPanel.common.save")})]})]})]})},oe=()=>({GOAL:0,ROUTE:0,ALIGN:0}),me=t=>t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:`${t}`,j=t=>`${t<0?"-":"+"}${Math.abs(t).toFixed(1)}m`,be=({currentMapName:t,createdAt:i,lastModified:d,mapCloudCount:s,mapBounds:o,topologyCount:u,nodeTypeCounts:N,onLoadMap:y,loadMapDisabled:m,onDownloadMap:x,downloadMapDisabled:l})=>{const{t:n}=C(),b=o?`${j(o.minX)} ~ ${j(o.maxX)}`:"--",h=o?`${j(o.minY)} ~ ${j(o.maxY)}`:"--",p=o?Math.abs(o.maxX-o.minX)*Math.abs(o.maxY-o.minY):null,v=p===null?"--":`${p.toFixed(1)} m²`,f=N??oe();return a(c,{className:"h-full justify-between overflow-y-auto",children:[a(c,{className:"items-start",children:[a(c,{className:"border-border-subtler w-full gap-1.5 border-b-[1px] p-3",children:[y?a("button",{type:"button",className:"hover:bg-fill-subtlest flex w-full items-center justify-between gap-3 rounded-md p-2 text-left disabled:cursor-not-allowed disabled:opacity-50",disabled:m,onClick:y,children:[a(c,{className:"min-w-0 gap-0.5",children:[e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.mapName")}),e("p",{className:"typo-compact-md-semibold text-fg-default truncate",children:t})]}),e(Z,{className:"text-fg-subtle size-4 shrink-0"})]}):a(c,{className:"gap-0.5 self-stretch",children:[e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.mapName")}),e("p",{className:"typo-compact-md-semibold text-fg-default",children:t})]}),a(c,{className:"items-start gap-1 self-stretch",children:[a(r,{className:"items-center justify-between self-stretch",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:n("move.amr.rightPanel.common.created")}),e("p",{className:"typo-compact-xs-normal text-fg-subtle",children:i??"--"})]}),a(r,{className:"items-center justify-between self-stretch",children:[e("p",{className:"typo-compact-xs-normal text-fg-subtler",children:n("move.amr.rightPanel.map.info.lastModified")}),e("p",{className:"typo-compact-xs-normal text-fg-subtle",children:d??"--"})]})]})]}),a(c,{className:"border-border-subtler w-full gap-2 border-b-[1px] p-3",children:[e("p",{className:"typo-compact-md-semibold text-fg-default",children:n("move.amr.rightPanel.map.info.statistics")}),a(r,{className:"items-center justify-between self-stretch",children:[a(r,{className:"items-center gap-[6px]",children:[e("div",{className:"bg-fill-subtler flex size-6 items-center justify-center rounded-full",children:e(q,{className:"text-fg-subtle size-4"})}),e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.nodes")})]}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:u})]}),a(r,{className:"items-center justify-between self-stretch",children:[e(r,{children:a(r,{className:"items-center gap-[6px]",children:[e("div",{className:"bg-fill-subtler flex size-6 items-center justify-center rounded-full",children:e(K,{className:"text-fg-subtle size-4"})}),e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.pointCloud")})]})}),a("p",{className:"typo-compact-xs2-normal text-fg-default",children:[me(s)," pts"]})]})]}),a(c,{className:"border-border-subtler w-full gap-2 border-b-[1px] p-3",children:[e("p",{className:"typo-compact-md-semibold text-fg-default",children:n("move.amr.rightPanel.map.info.mapBoundaries")}),a(r,{className:"items-center justify-between self-stretch",children:[e(r,{className:"items-center gap-[6px]",children:e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.xRange")})}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:b})]}),a(r,{className:"items-center justify-between self-stretch",children:[e(r,{children:e(r,{className:"items-center gap-[6px]",children:e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.yRange")})})}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:h})]}),a(r,{className:"items-center justify-between self-stretch",children:[e(r,{className:"items-center gap-[6px]",children:e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.map.info.totalArea")})}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:v})]})]}),a(c,{className:"border-border-subtler w-full gap-2 border-b-[1px] p-3",children:[e("p",{className:"typo-compact-md-semibold text-fg-default",children:n("move.amr.rightPanel.menu.topology")}),a(r,{className:"items-center justify-between self-stretch",children:[a(r,{className:"items-center gap-[6px]",children:[e("div",{className:"bg-fill-warning-subtler flex size-6 items-center justify-center rounded-full",children:e(J,{className:"text-fg-warning size-4"})}),e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.topology.nodeType.goal")})]}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:f.GOAL})]}),a(r,{className:"items-center justify-between self-stretch",children:[e(r,{children:a(r,{className:"items-center gap-[6px]",children:[e("div",{className:"bg-fill-brand-subtler flex size-6 items-center justify-center rounded-full",children:e(W,{className:"text-fg-brand size-4"})}),e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.topology.nodeType.route")})]})}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:f.ROUTE})]}),a(r,{className:"items-center justify-between self-stretch",children:[a(r,{className:"items-center gap-[6px]",children:[e("div",{className:"bg-fill-success-subtler flex size-6 items-center justify-center rounded-full",children:e(Q,{className:"text-fg-success size-4"})}),e("p",{className:"typo-compact-xs2-normal text-fg-subtle",children:n("move.amr.rightPanel.topology.nodeType.align")})]}),e("p",{className:"typo-compact-xs2-normal text-fg-default",children:f.ALIGN})]})]})]}),x?e(c,{className:"shrink-0 gap-2 p-3",children:e(P,{variant:"brand",size:"sm",leadingIcon:e(ee,{}),disabled:l,onClick:x,children:n("move.amr.rightPanel.map.info.downloadMap")})}):null]})};export{ye as AMRNodeFromTo,ve as ArrowHelper2,we as BottomStatusBar,Pe as CameraStreamsPanel,Te as DEFAULT_EDITOR_CAMERA,ke as DEFAULT_NAVIGATION_TOOLS,Me as DEFAULT_TOOL_GROUPS,je as DEFAULT_TOPOLOGY_FORMAT_VERSION,Oe as DEFAULT_TOPOLOGY_LINK_CREATION_SETTINGS,Ae as DEFAULT_TRANSFORM_TOOLS,$e as DockControl,Se as EDITOR_CAMERA_POSITION_KEY,Ce as EDITOR_MODE,Re as Editor,De as Eraser,Le as EraserTab,_e as EventHandler,Ee as HUDStatusPanel,ze as LeftToolBar,be as MapInfo,Ie as MapLoadDialog,Fe as MapNameHUD,xe as MappingTab,Ue as MarkerControl,he as MonitorSensorsTab,Ge as NODE_TYPE,Ye as NodeManager,He as ObstacleMapPanel,ge as Overview,Be as PathDrawer,Ve as PduInfo,Xe as RobotControlPanel,Ze as RobotManager,qe as SelectedLinkOverlay,Ke as SelectedNodeOverlay,Je as SelectedZoneOverlay,We as Selector,fe as SystemResources,Qe as TaskInformation,ea as TopologyActionFooter,aa as TopologyControl,ta as TopologyLinkTabPanel,sa as TopologyNodeAddSection,la as TopologyNodeEditSection,ra as TopologyNodeTabPanel,ca as TopologyOverviewTabPanel,na as TopologyZoneTabPanel,ia as TrajectoryDrawer,oa as ViewControlsPanel,ma as Viewport,da as WorldStudio,pa as useBottomStatusBar,ga as useEditorKeyboardShortcut,ha as useEditorState,fa as useEditorTool,xa as useEditorViewportOptions,ba as useFileDownload,ua as useOverlayPosition,Na as useParsedPointCloudData,ya as useTopologyLinkCreationSettings};