@selvajs/selva 4.20.1-beta.4 → 4.21.0-beta.6

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 (172) hide show
  1. package/build/adapter-node.js +1 -1
  2. package/build/client/_app/immutable/chunks/{CzfnuBzq.js → BAhtiTKe.js} +1 -1
  3. package/build/client/_app/immutable/chunks/BAhtiTKe.js.br +0 -0
  4. package/build/client/_app/immutable/chunks/BAhtiTKe.js.gz +0 -0
  5. package/build/client/_app/immutable/chunks/{D-uUm_OB.js → BepzH9eI.js} +4 -4
  6. package/build/client/_app/immutable/chunks/BepzH9eI.js.br +0 -0
  7. package/build/client/_app/immutable/chunks/{D-uUm_OB.js.gz → BepzH9eI.js.gz} +0 -0
  8. package/build/client/_app/immutable/chunks/BmoT9ksD.js +1 -0
  9. package/build/client/_app/immutable/chunks/BmoT9ksD.js.br +1 -0
  10. package/build/client/_app/immutable/chunks/BmoT9ksD.js.gz +0 -0
  11. package/build/client/_app/immutable/chunks/{qi43d-TM.js → CKbHmAlc.js} +1 -1
  12. package/build/client/_app/immutable/chunks/CKbHmAlc.js.br +0 -0
  13. package/build/client/_app/immutable/chunks/CKbHmAlc.js.gz +0 -0
  14. package/build/client/_app/immutable/chunks/{C6Y_BUwr.js → CmlXAF26.js} +1 -1
  15. package/build/client/_app/immutable/chunks/CmlXAF26.js.br +0 -0
  16. package/build/client/_app/immutable/chunks/CmlXAF26.js.gz +0 -0
  17. package/build/client/_app/immutable/chunks/{BDYCH-_Q.js → D5j4-ZO1.js} +1 -1
  18. package/build/client/_app/immutable/chunks/D5j4-ZO1.js.br +0 -0
  19. package/build/client/_app/immutable/chunks/D5j4-ZO1.js.gz +0 -0
  20. package/build/client/_app/immutable/chunks/DW5EJMC7.js +1 -0
  21. package/build/client/_app/immutable/chunks/DW5EJMC7.js.br +0 -0
  22. package/build/client/_app/immutable/chunks/DW5EJMC7.js.gz +0 -0
  23. package/build/client/_app/immutable/chunks/{DzxE3j6C.js → qXnHMKD9.js} +1 -1
  24. package/build/client/_app/immutable/chunks/qXnHMKD9.js.br +0 -0
  25. package/build/client/_app/immutable/chunks/qXnHMKD9.js.gz +0 -0
  26. package/build/client/_app/immutable/entry/{app.BpT6WkO1.js → app.DblLep9O.js} +2 -2
  27. package/build/client/_app/immutable/entry/app.DblLep9O.js.br +0 -0
  28. package/build/client/_app/immutable/entry/app.DblLep9O.js.gz +0 -0
  29. package/build/client/_app/immutable/nodes/{1.D3kiiIk_.js → 1.DWd6YbcT.js} +1 -1
  30. package/build/client/_app/immutable/nodes/1.DWd6YbcT.js.br +0 -0
  31. package/build/client/_app/immutable/nodes/1.DWd6YbcT.js.gz +0 -0
  32. package/build/client/_app/immutable/nodes/{2.CUNbzjI_.js → 2.CS32Eh9m.js} +1 -1
  33. package/build/client/_app/immutable/nodes/2.CS32Eh9m.js.br +0 -0
  34. package/build/client/_app/immutable/nodes/2.CS32Eh9m.js.gz +0 -0
  35. package/build/client/_app/immutable/nodes/{20.9OIre0ah.js → 20.CUK41A3B.js} +1 -1
  36. package/build/client/_app/immutable/nodes/20.CUK41A3B.js.br +0 -0
  37. package/build/client/_app/immutable/nodes/20.CUK41A3B.js.gz +0 -0
  38. package/build/client/_app/immutable/nodes/21.DvC40Ypm.js +1 -0
  39. package/build/client/_app/immutable/nodes/21.DvC40Ypm.js.br +0 -0
  40. package/build/client/_app/immutable/nodes/21.DvC40Ypm.js.gz +0 -0
  41. package/build/client/_app/immutable/nodes/{25.DW1_vMxq.js → 25.D6EkgNRa.js} +1 -1
  42. package/build/client/_app/immutable/nodes/25.D6EkgNRa.js.br +0 -0
  43. package/build/client/_app/immutable/nodes/25.D6EkgNRa.js.gz +0 -0
  44. package/build/client/_app/immutable/nodes/{3.3Z4QUsQQ.js → 3.Ctd9OGCk.js} +1 -1
  45. package/build/client/_app/immutable/nodes/3.Ctd9OGCk.js.br +0 -0
  46. package/build/client/_app/immutable/nodes/3.Ctd9OGCk.js.gz +0 -0
  47. package/build/client/_app/immutable/nodes/{5.DmA9lTA-.js → 5.Wh_w3RkZ.js} +1 -1
  48. package/build/client/_app/immutable/nodes/5.Wh_w3RkZ.js.br +2 -0
  49. package/build/client/_app/immutable/nodes/5.Wh_w3RkZ.js.gz +0 -0
  50. package/build/client/_app/immutable/nodes/{6.D6WLqCgl.js → 6.C-DiUI5R.js} +1 -1
  51. package/build/client/_app/immutable/nodes/6.C-DiUI5R.js.br +0 -0
  52. package/build/client/_app/immutable/nodes/6.C-DiUI5R.js.gz +0 -0
  53. package/build/client/_app/immutable/nodes/{7.CNuRjkv2.js → 7.B8yubYrv.js} +1 -1
  54. package/build/client/_app/immutable/nodes/7.B8yubYrv.js.br +0 -0
  55. package/build/client/_app/immutable/nodes/7.B8yubYrv.js.gz +0 -0
  56. package/build/client/_app/version.json +1 -1
  57. package/build/client/_app/version.json.br +0 -0
  58. package/build/client/_app/version.json.gz +0 -0
  59. package/build/server/.vite/manifest.json +7 -5
  60. package/build/server/chunks/api.js +9 -2
  61. package/build/server/chunks/api.js.map +1 -1
  62. package/build/server/chunks/computeRateLimit.server.js +1 -1
  63. package/build/server/chunks/engine.server.js +2 -2
  64. package/build/server/chunks/engine.server.js.map +1 -1
  65. package/build/server/chunks/grasshopper.js +217 -162
  66. package/build/server/chunks/grasshopper.js.map +1 -1
  67. package/build/server/chunks/handlers.js +1 -1
  68. package/build/server/chunks/instance.js +3 -3
  69. package/build/server/chunks/internal.js +1 -1
  70. package/build/server/chunks/liveSolve.server.js +1 -1
  71. package/build/server/chunks/localeContext.svelte.js +14 -0
  72. package/build/server/chunks/localeContext.svelte.js.map +1 -1
  73. package/build/server/chunks/{outcome-DNrffAXp.js → outcome-D28FgvFK.js} +9 -6
  74. package/build/server/chunks/outcome-D28FgvFK.js.map +1 -0
  75. package/build/server/chunks/package.js +1 -1
  76. package/build/server/chunks/package.js.map +1 -1
  77. package/build/server/chunks/providers.server.js +59 -40
  78. package/build/server/chunks/providers.server.js.map +1 -1
  79. package/build/server/chunks/registry.js +1 -1
  80. package/build/server/chunks/schema.js +1 -1
  81. package/build/server/chunks/schema.js.map +1 -1
  82. package/build/server/chunks/serverStats.server.js +1 -1
  83. package/build/server/chunks/solve.server.js +31 -4
  84. package/build/server/chunks/solve.server.js.map +1 -1
  85. package/build/server/chunks/sveltekit.js +1 -1
  86. package/build/server/entries/endpoints/api/admin/compute/status/_server.ts.js +1 -1
  87. package/build/server/entries/endpoints/api/admin/orgs/_id_/_server.ts.js +1 -1
  88. package/build/server/entries/endpoints/api/admin/orgs/_server.ts.js +1 -1
  89. package/build/server/entries/endpoints/api/admin/projects/_id_/_server.ts.js +1 -1
  90. package/build/server/entries/endpoints/api/admin/projects/_id_/grants/_grantId_/_server.ts.js +1 -1
  91. package/build/server/entries/endpoints/api/admin/projects/_id_/grants/_server.ts.js +1 -1
  92. package/build/server/entries/endpoints/api/admin/projects/_server.ts.js +1 -1
  93. package/build/server/entries/endpoints/api/admin/users/_id_/_server.ts.js +1 -1
  94. package/build/server/entries/endpoints/api/admin/users/_id_/disable/_server.ts.js +1 -1
  95. package/build/server/entries/endpoints/api/admin/users/_server.ts.js +1 -1
  96. package/build/server/entries/endpoints/api/v1/compute/_server.ts.js +5 -1
  97. package/build/server/entries/endpoints/api/v1/compute/_server.ts.js.map +1 -1
  98. package/build/server/entries/endpoints/api/v1/compute/schema/_server.ts.js +1 -1
  99. package/build/server/entries/endpoints/api/v1/definitions/_guid_/_server.ts.js +1 -1
  100. package/build/server/entries/endpoints/api/v1/definitions/_guid_/image/_server.ts.js +1 -1
  101. package/build/server/entries/endpoints/api/v1/definitions/_guid_/publish/_server.ts.js +1 -1
  102. package/build/server/entries/endpoints/api/v1/definitions/_guid_/schema/_server.ts.js +1 -1
  103. package/build/server/entries/endpoints/api/v1/definitions/_guid_/share-links/_linkId_/_server.ts.js +1 -1
  104. package/build/server/entries/endpoints/api/v1/definitions/_guid_/share-links/_server.ts.js +1 -1
  105. package/build/server/entries/endpoints/api/v1/definitions/_guid_/solve/_server.ts.js +2 -1
  106. package/build/server/entries/endpoints/api/v1/definitions/_guid_/solve/_server.ts.js.map +1 -1
  107. package/build/server/entries/endpoints/api/v1/definitions/_guid_/versions/_server.ts.js +1 -1
  108. package/build/server/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/_server.ts.js +1 -1
  109. package/build/server/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/schema/_server.ts.js +1 -1
  110. package/build/server/entries/endpoints/api/v1/projects/_id_/_server.ts.js +1 -1
  111. package/build/server/entries/endpoints/api/v1/projects/_id_/members/_server.ts.js +1 -1
  112. package/build/server/entries/endpoints/api/v1/projects/_id_/members/_userId_/_server.ts.js +1 -1
  113. package/build/server/entries/endpoints/api/v1/projects/_id_/reclaim/_server.ts.js +1 -1
  114. package/build/server/entries/endpoints/api/v1/solve/_solveId_/cancel/_server.ts.js +1 -1
  115. package/build/server/entries/endpoints/api/v1/solve-events/_server.ts.js +1 -1
  116. package/build/server/entries/endpoints/docs/api/openapi.yaml/_server.ts.js +1 -1
  117. package/build/server/entries/pages/library/_guid_/_page.server.ts.js +4 -4
  118. package/build/server/entries/pages/library/_guid_/_page.server.ts.js.map +1 -1
  119. package/build/server/entries/pages/library/_guid_/_page.svelte.js +232 -11
  120. package/build/server/entries/pages/library/_guid_/_page.svelte.js.map +1 -1
  121. package/build/server/manifest-full.js +1 -1
  122. package/build/server/manifest.js +1 -1
  123. package/build/server/nodes/1.js +1 -1
  124. package/build/server/nodes/2.js +1 -1
  125. package/build/server/nodes/20.js +1 -1
  126. package/build/server/nodes/21.js +1 -1
  127. package/build/server/nodes/25.js +1 -1
  128. package/build/server/nodes/3.js +1 -1
  129. package/build/server/nodes/5.js +1 -1
  130. package/build/server/nodes/6.js +1 -1
  131. package/build/server/nodes/7.js +1 -1
  132. package/build/server/server.js +1 -1
  133. package/package.json +10 -10
  134. package/build/client/_app/immutable/chunks/BDYCH-_Q.js.br +0 -0
  135. package/build/client/_app/immutable/chunks/BDYCH-_Q.js.gz +0 -0
  136. package/build/client/_app/immutable/chunks/C6Y_BUwr.js.br +0 -0
  137. package/build/client/_app/immutable/chunks/C6Y_BUwr.js.gz +0 -0
  138. package/build/client/_app/immutable/chunks/CzfnuBzq.js.br +0 -0
  139. package/build/client/_app/immutable/chunks/CzfnuBzq.js.gz +0 -0
  140. package/build/client/_app/immutable/chunks/D-uUm_OB.js.br +0 -0
  141. package/build/client/_app/immutable/chunks/D84F7w9g.js +0 -1
  142. package/build/client/_app/immutable/chunks/D84F7w9g.js.br +0 -1
  143. package/build/client/_app/immutable/chunks/D84F7w9g.js.gz +0 -0
  144. package/build/client/_app/immutable/chunks/DQsP4nZb.js +0 -1
  145. package/build/client/_app/immutable/chunks/DQsP4nZb.js.br +0 -0
  146. package/build/client/_app/immutable/chunks/DQsP4nZb.js.gz +0 -0
  147. package/build/client/_app/immutable/chunks/DzxE3j6C.js.br +0 -0
  148. package/build/client/_app/immutable/chunks/DzxE3j6C.js.gz +0 -0
  149. package/build/client/_app/immutable/chunks/qi43d-TM.js.br +0 -0
  150. package/build/client/_app/immutable/chunks/qi43d-TM.js.gz +0 -0
  151. package/build/client/_app/immutable/entry/app.BpT6WkO1.js.br +0 -0
  152. package/build/client/_app/immutable/entry/app.BpT6WkO1.js.gz +0 -0
  153. package/build/client/_app/immutable/nodes/1.D3kiiIk_.js.br +0 -0
  154. package/build/client/_app/immutable/nodes/1.D3kiiIk_.js.gz +0 -0
  155. package/build/client/_app/immutable/nodes/2.CUNbzjI_.js.br +0 -0
  156. package/build/client/_app/immutable/nodes/2.CUNbzjI_.js.gz +0 -0
  157. package/build/client/_app/immutable/nodes/20.9OIre0ah.js.br +0 -0
  158. package/build/client/_app/immutable/nodes/20.9OIre0ah.js.gz +0 -0
  159. package/build/client/_app/immutable/nodes/21.BkNlRItr.js +0 -1
  160. package/build/client/_app/immutable/nodes/21.BkNlRItr.js.br +0 -0
  161. package/build/client/_app/immutable/nodes/21.BkNlRItr.js.gz +0 -0
  162. package/build/client/_app/immutable/nodes/25.DW1_vMxq.js.br +0 -0
  163. package/build/client/_app/immutable/nodes/25.DW1_vMxq.js.gz +0 -0
  164. package/build/client/_app/immutable/nodes/3.3Z4QUsQQ.js.br +0 -0
  165. package/build/client/_app/immutable/nodes/3.3Z4QUsQQ.js.gz +0 -0
  166. package/build/client/_app/immutable/nodes/5.DmA9lTA-.js.br +0 -1
  167. package/build/client/_app/immutable/nodes/5.DmA9lTA-.js.gz +0 -0
  168. package/build/client/_app/immutable/nodes/6.D6WLqCgl.js.br +0 -0
  169. package/build/client/_app/immutable/nodes/6.D6WLqCgl.js.gz +0 -0
  170. package/build/client/_app/immutable/nodes/7.CNuRjkv2.js.br +0 -0
  171. package/build/client/_app/immutable/nodes/7.CNuRjkv2.js.gz +0 -0
  172. package/build/server/chunks/outcome-DNrffAXp.js.map +0 -1
@@ -6,7 +6,7 @@ import { r as hasPermission, t as SYSTEM_CONTEXT } from "./context.js";
6
6
  import { c as isOrgServer, l as isPlatformServer, s as serversVisibleTo } from "./utils.js";
7
7
  import { n as GH_EXTENSIONS, r as toDefinitionListItem, t as COVER_IMAGE_CONTENT_TYPES } from "./types2.js";
8
8
  import { a as toSourceDocumentId, r as GuidSchema } from "./schemas.js";
9
- import { B as readForm, G as throwZodError, H as requireParams, I as scopeRefusalsToday, K as validateProjectFlags, L as formText, M as assertScope, O as defaultProjectCreateLimiter, R as parseBody, U as requireSession, V as requireCaller, W as requireUpload, _ as UpdateOrgMemberBodySchema, a as InviteResponseSchema, c as AddProjectMemberBodySchema, d as CreateProjectBodySchema, f as CreateShareLinkBodySchema, g as UpdateDefinitionBodySchema, i as CreatedShareLinkResponseSchema, l as CreateApiTokenBodySchema, m as PublishVersionBodySchema, n as CreatedApiTokenResponseSchema, o as OrgComputeResponseSchema, p as OrgComputePatchBodySchema, q as CreateDefinitionInputSchema, r as CreatedInviteResponseSchema, s as ShareLinkResponseSchema, t as ApiTokenResponseSchema, u as CreateInviteBodySchema, v as UpdateProjectBodySchema, y as UpdateProjectMemberBodySchema, z as parseParam } from "./api.js";
9
+ import { B as parseParam, G as requireUpload, H as requireCaller, J as CreateDefinitionInputSchema, K as throwZodError, L as scopeRefusalsToday, N as assertScope, R as formText, U as requireParams, V as readForm, W as requireSession, _ as UpdateDefinitionBodySchema, a as InviteResponseSchema, b as UpdateProjectMemberBodySchema, c as AddProjectMemberBodySchema, d as CreateProjectBodySchema, f as CreateShareLinkBodySchema, i as CreatedShareLinkResponseSchema, k as defaultProjectCreateLimiter, l as CreateApiTokenBodySchema, m as PublishVersionBodySchema, n as CreatedApiTokenResponseSchema, o as OrgComputeResponseSchema, p as OrgComputePatchBodySchema, q as validateProjectFlags, r as CreatedInviteResponseSchema, s as ShareLinkResponseSchema, t as ApiTokenResponseSchema, u as CreateInviteBodySchema, v as UpdateOrgMemberBodySchema, y as UpdateProjectBodySchema, z as parseBody } from "./api.js";
10
10
  import { a as MEMBER_ASSIGNABLE_PERMISSIONS, f as slugify, i as DEFAULT_ORG_PERMISSIONS, n as ALL_ORG_PERMISSIONS, s as OrgAssetKindSchema } from "./schemas2.js";
11
11
  import { t as DEFAULT_SHARE_LINK_MAX_SOLVES } from "./types4.js";
12
12
  import { a as loadVisibleDefinition, c as resolveAccessibleProjects, i as listVisibleDefinitions, l as clampPageLimit, n as getVisibleDefinition, o as loadVisibleVersion, p as walkPages, r as listEditableDefinitionsByDocument, s as mayUploadToDefinition } from "./visibility.js";
@@ -213,7 +213,7 @@ function server_data_serializer(event, state) {
213
213
  let promise_id = 1;
214
214
  let max_nodes = -1;
215
215
  const iterator = create_async_iterator();
216
- const global = "__sveltekit_rxhehf";
216
+ const global = "__sveltekit_singpo";
217
217
  /** @param {number} index */
218
218
  function get_replacer(index) {
219
219
  /** @param {any} thing */
@@ -1443,7 +1443,7 @@ async function render_response({ branch, fetched, page_config, status, error = n
1443
1443
  "crossorigin"
1444
1444
  ]);
1445
1445
  }
1446
- const global = "__sveltekit_rxhehf";
1446
+ const global = "__sveltekit_singpo";
1447
1447
  const { data, chunks } = data_serializer.get_data(csp);
1448
1448
  if (page_config.ssr && page_config.csr) body += `\n\t\t\t${fetched.map((item) => serialize_data(item, resolve_opts.filterSerializedResponseHeaders, !!(state.prerendering || state.prerender_default === true))).join("\n ")}`;
1449
1449
  if (page_config.csr && client) {
@@ -1467,7 +1467,7 @@ async function render_response({ branch, fetched, page_config, status, error = n
1467
1467
  }
1468
1468
  }
1469
1469
  const blocks = [];
1470
- const properties = [`base: ${base_expression}`, `version: ${s("1794154569124")}`];
1470
+ const properties = [`base: ${base_expression}`, `version: ${s("1794225011502")}`];
1471
1471
  if (assets) properties.push(`assets: ${s(assets)}`);
1472
1472
  if (client.uses_env_dynamic_public) properties.push(`env: ${load_env_eagerly ? "null" : uneval$1(rendered_env)}`);
1473
1473
  if (chunks) {
@@ -2363,7 +2363,7 @@ function redirect_response(status, location) {
2363
2363
  * @param {Response} response
2364
2364
  */
2365
2365
  function with_version_header(response) {
2366
- response.headers.set("x-sveltekit-version", "1794154569124");
2366
+ response.headers.set("x-sveltekit-version", "1794225011502");
2367
2367
  return response;
2368
2368
  }
2369
2369
  /**
@@ -1,7 +1,7 @@
1
1
  import { n as env } from "./previous-key.js";
2
2
  import { t as publicUrl } from "./origin.js";
3
3
  import { r as getSolveEventBus, t as mintSolveToken } from "./token.server.js";
4
- import { n as decodeOutcome } from "./outcome-DNrffAXp.js";
4
+ import { n as decodeOutcome } from "./outcome-D28FgvFK.js";
5
5
  import { randomUUID } from "node:crypto";
6
6
  // src/lib/server/solveEvents/liveSolve.server.ts
7
7
  /**
@@ -167,6 +167,13 @@ var VIEWER_MESSAGES = {
167
167
  downloadFiles: "Download {count} Files",
168
168
  downloading: "Downloading...",
169
169
  downloadFailed: "Download failed",
170
+ filesMadeOnDownload: "Made when you download",
171
+ download: "Download",
172
+ makingFiles: "Making files",
173
+ filesMadeIn: "Made in {seconds} s",
174
+ noFilesForInputs: "Nothing to download for these inputs.",
175
+ tryAgain: "Try again",
176
+ cancel: "Cancel",
170
177
  copy: "Copy",
171
178
  copied: "Copied!",
172
179
  chartReceiving: "Receiving chart data...",
@@ -354,6 +361,13 @@ var VIEWER_MESSAGES = {
354
361
  downloadFiles: "{count} Dateien herunterladen",
355
362
  downloading: "Wird heruntergeladen…",
356
363
  downloadFailed: "Download fehlgeschlagen",
364
+ filesMadeOnDownload: "Wird beim Herunterladen erstellt",
365
+ download: "Herunterladen",
366
+ makingFiles: "Dateien werden erstellt",
367
+ filesMadeIn: "Erstellt in {seconds} s",
368
+ noFilesForInputs: "Für diese Eingaben gibt es nichts herunterzuladen.",
369
+ tryAgain: "Erneut versuchen",
370
+ cancel: "Abbrechen",
357
371
  copy: "Kopieren",
358
372
  copied: "Kopiert!",
359
373
  chartReceiving: "Diagrammdaten werden empfangen…",
@@ -1 +1 @@
1
- {"version":3,"file":"localeContext.svelte.js","names":[],"sources":["../../../../ui/src/lib/i18n/messages.ts","../../../../ui/src/lib/i18n/localeContext.svelte.ts"],"sourcesContent":["// ============================================================================\n// Viewer message catalog (library-owned strings)\n// ============================================================================\n//\n// Only the strings @selvajs/ui renders itself. Names coming from a Grasshopper\n// definition — meshes, layers, metadata keys — live in the user's .gh file and\n// cannot be translated here.\n//\n// A `{name}` in a message is a placeholder the component fills in. Pairs ending in\n// `One`/`Other` are the singular and plural forms of one message.\n\nexport type Locale = 'en' | 'de';\n\nexport interface ViewerMessages {\n\t// Tools menu\n\ttoolsMenu: string;\n\tswitchToOrthographic: string;\n\tswitchToPerspective: string;\n\tfitToView: string;\n\tviews: string;\n\tmeasure: string;\n\tgrid: string;\n\tdisplay: string;\n\tedges: string;\n\tsceneManager: string;\n\tscreenshot: string;\n\tfullscreen: string;\n\texitFullscreen: string;\n\n\t// View presets\n\tviewTop: string;\n\tviewFront: string;\n\tviewRight: string;\n\tviewBack: string;\n\tviewLeft: string;\n\tviewBottom: string;\n\tviewIso: string;\n\n\t// Display looks\n\tlookTechnical: string;\n\tlookStudio: string;\n\tlookShowcase: string;\n\tlookNight: string;\n\tnightMode: string;\n\tlookArctic: string;\n\tlookXray: string;\n\tlookLineart: string;\n\tlookWireframe: string;\n\n\t// Scene manager\n\tsearchObjects: string;\n\tclearSearch: string;\n\texpandLayer: string;\n\tcollapseLayer: string;\n\texpandAll: string;\n\tcollapseAll: string;\n\tshowLayer: string;\n\thideLayer: string;\n\tshowObject: string;\n\thideObject: string;\n\tnoObjects: string;\n\t/** `{query}` is replaced with the current search text. */\n\tnoResultsFor: string;\n\n\t// Metadata dialog\n\tobjectFallbackName: string;\n\tnoMetadata: string;\n\n\t// App layout / compute shell\n\tloadingSchema: string;\n\tsolveBlocked: string;\n\tsolveBlockedTitle: string;\n\tsolveMessagesTitle: string;\n\tsolveMessagesDescription: string;\n\tsolveMessagesConfirm: string;\n\tsolveMessagesDiscard: string;\n\tsolveMessagesAbort: string;\n\t/** Stands in for Abort where the page can't take a click mid-solve. */\n\tsolveMessagesEscHint: string;\n\tsolveMessagesDismiss: string;\n\tsolveSolving: string;\n\t/** A visible solve has landed; followed by how long it took. */\n\tsolveDone: string;\n\t/** A visible solve was aborted; the previous result stays. */\n\tsolveStopped: string;\n\tparametersTab: string;\n\tmoreTab: string;\n\tscrollTabsBack: string;\n\tscrollTabsForward: string;\n\t/** `{side}` is replaced with `panelSideLeft` / `panelSideRight`. */\n\texpandSidePanel: string;\n\tpanelSideLeft: string;\n\tpanelSideRight: string;\n\ttabNoGroups: string;\n\n\t// Solve controls\n\tsolving: string;\n\tsolvingEllipsis: string;\n\tsolvingSubtitle: string;\n\tpressToCalculate: string;\n\tcalculate: string;\n\tupToDate: string;\n\t/** The panel footer's ⋯ menu: saving and loading inputs, plus the host's own actions. */\n\tmoreActions: string;\n\t/** Under a menu action that solves before it runs, while the inputs have changed. */\n\tcalculatesFirst: string;\n\n\t// Footer and message centre\n\t/** `{count}` is replaced with the number of errors. */\n\terrorCountOne: string;\n\terrorCountOther: string;\n\t/** `{count}` is replaced with the number of warnings. */\n\twarningCountOne: string;\n\twarningCountOther: string;\n\t/** `{count}` is replaced with the number of notes. */\n\tnoteCountOne: string;\n\tnoteCountOther: string;\n\t/** `{count}` is replaced with the number of messages. */\n\tlastSolveMessagesOne: string;\n\tlastSolveMessagesOther: string;\n\tmessagesTitle: string;\n\t/** `{name}` is replaced with the copyright holder, `{year}` with the current year. */\n\tcopyright: string;\n\tclose: string;\n\ttoggleTheme: string;\n\terrorTitle: string;\n\tgoHome: string;\n\n\t// Input fields\n\tselectOption: string;\n\tnoOptionsYet: string;\n\t/** `{min}` is replaced with the field's minimum. */\n\tminValue: string;\n\t/** `{max}` is replaced with the field's maximum. */\n\tmaxValue: string;\n\tfineDragHint: string;\n\t/** `{max}` is replaced with the field's character limit. */\n\tmaxLength: string;\n\tinvalidFormat: string;\n\t/** Trigger label; `{color}` is the current hex value. */\n\tcolorPick: string;\n\tcolorArea: string;\n\t/** `{s}` and `{v}` are percentages. */\n\tcolorAreaValue: string;\n\tcolorHue: string;\n\tcolorHex: string;\n\tcolorHexInvalid: string;\n\tcolorPresets: string;\n\tcolorEyedropper: string;\n\tinvalidPattern: string;\n\n\t// Geometry input (Rhino only)\n\t/** The pick button when the input takes several kinds of object. */\n\tgeometryPickAnyOne: string;\n\tgeometryPickAnyOther: string;\n\t/** Shown while Rhino's viewport prompt for a pick is open. */\n\tgeometryPicking: string;\n\t/** Where this page may not pick, such as a browser tab beside the Rhino panel. */\n\tgeometryPickInPanel: string;\n\tgeometryPickAgain: string;\n\tgeometryClear: string;\n\t// The pick button when the input takes one kind: `One` picks a single object, `Other` several.\n\tgeometryPickPointOne: string;\n\tgeometryPickPointOther: string;\n\tgeometryPickPointCloudOne: string;\n\tgeometryPickPointCloudOther: string;\n\tgeometryPickCurveOne: string;\n\tgeometryPickCurveOther: string;\n\tgeometryPickLineOne: string;\n\tgeometryPickLineOther: string;\n\tgeometryPickPlaneOne: string;\n\tgeometryPickPlaneOther: string;\n\tgeometryPickSurfaceOne: string;\n\tgeometryPickSurfaceOther: string;\n\tgeometryPickPolysurfaceOne: string;\n\tgeometryPickPolysurfaceOther: string;\n\tgeometryPickExtrusionOne: string;\n\tgeometryPickExtrusionOther: string;\n\tgeometryPickMeshOne: string;\n\tgeometryPickMeshOther: string;\n\tgeometryPickSubdOne: string;\n\tgeometryPickSubdOther: string;\n\tgeometryPickBlockOne: string;\n\tgeometryPickBlockOther: string;\n\n\t// File input\n\tfileModeUpload: string;\n\tfileModeUrl: string;\n\tfileUrlLabel: string;\n\tfetchFile: string;\n\tfetchingFile: string;\n\tfileUrlPublic: string;\n\tchooseFile: string;\n\t/** `{formats}` is replaced with the accepted extensions. */\n\tacceptedFormats: string;\n\t/** `{ext}` is replaced with the file's extension. */\n\tuploadedFile: string;\n\t/** `{ext}` is replaced with the file's extension, `{size}` with its size in MB. */\n\tuploadedFileSize: string;\n\t/** `{ext}` is replaced with the file's extension, `{size}` with its size in KB. */\n\tfileLoaded: string;\n\turlInvalid: string;\n\turlProtocolUnsupported: string;\n\t/** `{status}` is replaced with the HTTP status the server answered with. */\n\turlServerError: string;\n\t/** `{ext}` is replaced with the rejected extension, `{formats}` with the accepted ones. */\n\tfileFormatNotAccepted: string;\n\t/** `{size}` is replaced with the file's size in MB, `{max}` with the limit in MB. */\n\tfileTooLarge: string;\n\tfileTooLargeUseUpload: string;\n\tfileReadFailed: string;\n\t/** `{host}` is replaced with the URL's host name. */\n\turlUnreachable: string;\n\turlUnreachableHint: string;\n\turlHintSharePoint: string;\n\turlHintGoogleDrive: string;\n\turlHintDropbox: string;\n\tunknownError: string;\n\n\t// Outputs\n\twaitingForData: string;\n\twaitingForFiles: string;\n\t/** `{count}` is replaced with the number of files. */\n\tfileCount: string;\n\tduplicateFilesTitle: string;\n\tduplicatePathsOne: string;\n\tduplicatePathsOther: string;\n\tduplicateFilesHint: string;\n\tdownloadFile: string;\n\t/** `{count}` is replaced with the number of files. */\n\tdownloadFiles: string;\n\tdownloading: string;\n\tdownloadFailed: string;\n\tcopy: string;\n\tcopied: string;\n\tchartReceiving: string;\n\tchartRenderFailed: string;\n\tdownloadChartImage: string;\n\t/** `{error}` is replaced with the browser's reason. */\n\tfullscreenUnavailable: string;\n\t/** `{error}` is replaced with the browser's reason. */\n\texitFullscreenFailed: string;\n\n\t// Image output\n\timageViewer: string;\n\timageLoading: string;\n\t/** `{ext}` is replaced with the file's extension, `{formats}` with the supported ones. */\n\timageUnsupported: string;\n\timageUnknownFormat: string;\n\t/** `{file}` is replaced with the file's name. */\n\timageDecodeFailed: string;\n\tpreviousImage: string;\n\tnextImage: string;\n\tzoomHint: string;\n\tzoomIn: string;\n\tzoomOut: string;\n\tzoomFit: string;\n\tzoomActual: string;\n\tdownloadImage: string;\n}\n\nconst en: ViewerMessages = {\n\ttoolsMenu: 'Viewer tools',\n\tswitchToOrthographic: 'Orthographic camera',\n\tswitchToPerspective: 'Perspective camera',\n\tfitToView: 'Fit to view',\n\tviews: 'Views',\n\tmeasure: 'Measure',\n\tgrid: 'Grid',\n\tdisplay: 'Display',\n\tedges: 'Edges',\n\tsceneManager: 'Scene manager',\n\tscreenshot: 'Screenshot',\n\tfullscreen: 'Fullscreen',\n\texitFullscreen: 'Exit fullscreen',\n\n\tviewTop: 'Top',\n\tviewFront: 'Front',\n\tviewRight: 'Right',\n\tviewBack: 'Back',\n\tviewLeft: 'Left',\n\tviewBottom: 'Bottom',\n\tviewIso: 'Isometric',\n\n\tlookTechnical: 'Technical',\n\tlookStudio: 'Studio',\n\tlookShowcase: 'Showcase',\n\tlookNight: 'Night',\n\tnightMode: 'Night mode',\n\tlookArctic: 'Arctic',\n\tlookXray: 'X-Ray',\n\tlookLineart: 'Line Art',\n\tlookWireframe: 'Wireframe',\n\n\tsearchObjects: 'Search objects...',\n\tclearSearch: 'Clear search',\n\texpandLayer: 'Expand layer',\n\tcollapseLayer: 'Collapse layer',\n\texpandAll: 'Expand all',\n\tcollapseAll: 'Collapse all',\n\tshowLayer: 'Show layer',\n\thideLayer: 'Hide layer',\n\tshowObject: 'Show object',\n\thideObject: 'Hide object',\n\tnoObjects: 'No objects',\n\tnoResultsFor: 'No results for \"{query}\"',\n\n\tobjectFallbackName: 'Object',\n\tnoMetadata: 'No metadata',\n\n\tloadingSchema: 'Loading…',\n\tsolveBlocked: 'The definition stopped this solve. No results were produced.',\n\tsolveBlockedTitle: 'Solve stopped',\n\tsolveMessagesTitle: 'Solve messages',\n\tsolveMessagesDescription: 'This solve reported the following. Continue to see the result.',\n\tsolveMessagesConfirm: 'Continue',\n\tsolveMessagesDiscard: 'Discard',\n\tsolveMessagesAbort: 'Abort',\n\tsolveMessagesEscHint: 'Esc aborts the solve',\n\tsolveMessagesDismiss: 'Dismiss',\n\tsolveSolving: 'Solving…',\n\tsolveDone: 'Done',\n\tsolveStopped: 'Stopped',\n\tparametersTab: 'Parameters',\n\tmoreTab: 'More',\n\tscrollTabsBack: 'Previous tabs',\n\tscrollTabsForward: 'More tabs',\n\texpandSidePanel: 'Expand {side} panel',\n\tpanelSideLeft: 'left',\n\tpanelSideRight: 'right',\n\ttabNoGroups: 'This tab has no groups configured.',\n\n\tsolving: 'Solving',\n\tsolvingEllipsis: 'Solving...',\n\tsolvingSubtitle: 'This can take a moment…',\n\tpressToCalculate: 'Press to calculate',\n\tcalculate: 'Calculate',\n\tupToDate: 'Up to date',\n\tmoreActions: 'More actions',\n\tcalculatesFirst: 'Calculates first',\n\n\terrorCountOne: '{count} error',\n\terrorCountOther: '{count} errors',\n\twarningCountOne: '{count} warning',\n\twarningCountOther: '{count} warnings',\n\tnoteCountOne: '{count} note',\n\tnoteCountOther: '{count} notes',\n\tlastSolveMessagesOne: '{count} message from the last solve',\n\tlastSolveMessagesOther: '{count} messages from the last solve',\n\tmessagesTitle: 'Messages',\n\tcopyright: 'by {name} © {year}',\n\tclose: 'Close',\n\ttoggleTheme: 'Toggle theme',\n\terrorTitle: 'Error',\n\tgoHome: 'Go Home',\n\n\tselectOption: 'Select an option...',\n\tnoOptionsYet: 'No options available yet.',\n\tminValue: 'Minimum value is {min}',\n\tmaxValue: 'Maximum value is {max}',\n\tfineDragHint: 'Hold Shift to drag finely',\n\tmaxLength: 'Maximum {max} characters allowed',\n\tinvalidFormat: 'Invalid format',\n\tcolorPick: 'Choose color, currently {color}',\n\tcolorArea: 'Saturation and brightness',\n\tcolorAreaValue: 'Saturation {s}%, brightness {v}%',\n\tcolorHue: 'Hue',\n\tcolorHex: 'Hex color',\n\tcolorHexInvalid: 'Enter a hex color such as #2f6fd6',\n\tcolorPresets: 'Presets',\n\tcolorEyedropper: 'Pick a color from the screen',\n\tinvalidPattern: 'Invalid validation pattern configured',\n\n\tgeometryPickAnyOne: 'Pick an object',\n\tgeometryPickAnyOther: 'Pick objects',\n\tgeometryPicking: 'Pick in the viewport, Esc to cancel',\n\tgeometryPickInPanel: 'Pick in the Rhino panel',\n\tgeometryPickAgain: 'Pick again',\n\tgeometryClear: 'Clear',\n\tgeometryPickPointOne: 'Pick a point',\n\tgeometryPickPointOther: 'Pick points',\n\tgeometryPickPointCloudOne: 'Pick a point cloud',\n\tgeometryPickPointCloudOther: 'Pick point clouds',\n\tgeometryPickCurveOne: 'Pick a curve',\n\tgeometryPickCurveOther: 'Pick curves',\n\tgeometryPickLineOne: 'Pick a line',\n\tgeometryPickLineOther: 'Pick lines',\n\tgeometryPickPlaneOne: 'Pick a plane',\n\tgeometryPickPlaneOther: 'Pick planes',\n\tgeometryPickSurfaceOne: 'Pick a surface',\n\tgeometryPickSurfaceOther: 'Pick surfaces',\n\tgeometryPickPolysurfaceOne: 'Pick a polysurface',\n\tgeometryPickPolysurfaceOther: 'Pick polysurfaces',\n\tgeometryPickExtrusionOne: 'Pick an extrusion',\n\tgeometryPickExtrusionOther: 'Pick extrusions',\n\tgeometryPickMeshOne: 'Pick a mesh',\n\tgeometryPickMeshOther: 'Pick meshes',\n\tgeometryPickSubdOne: 'Pick a SubD',\n\tgeometryPickSubdOther: 'Pick SubDs',\n\tgeometryPickBlockOne: 'Pick a block',\n\tgeometryPickBlockOther: 'Pick blocks',\n\n\tfileModeUpload: 'Upload',\n\tfileModeUrl: 'URL',\n\tfileUrlLabel: 'File URL',\n\tfetchFile: 'Fetch',\n\tfetchingFile: 'Fetching...',\n\tfileUrlPublic: 'URL must be publicly accessible (no login required).',\n\tchooseFile: 'Choose File or Drag & Drop',\n\tacceptedFormats: 'Accepted formats: {formats}',\n\tuploadedFile: 'Uploaded file ({ext})',\n\tuploadedFileSize: 'Uploaded file ({ext}, {size}MB)',\n\tfileLoaded: 'Loaded {ext} ({size} KB)',\n\turlInvalid: 'Invalid URL — make sure it starts with https://',\n\turlProtocolUnsupported: 'Only http:// and https:// URLs are supported.',\n\turlServerError: 'Server returned {status}. Check the URL is correct and publicly accessible.',\n\tfileFormatNotAccepted: 'File format \"{ext}\" is not accepted. Allowed: {formats}',\n\tfileTooLarge: 'File too large: {size}MB (max {max}MB).',\n\tfileTooLargeUseUpload: 'Download it and use Upload instead.',\n\tfileReadFailed: 'Failed to read the downloaded file.',\n\turlUnreachable:\n\t\t'Could not reach \"{host}\" — the file may not exist, or the server does not allow browser access.',\n\turlUnreachableHint:\n\t\t'Check that the URL is correct and the file is publicly accessible. If the server requires login, download the file and use the Upload option instead.',\n\turlHintSharePoint:\n\t\t'SharePoint/OneDrive blocks browser access. Open the file in SharePoint, use \"Download\" to save it locally, then upload it here.',\n\turlHintGoogleDrive:\n\t\t'Google Drive blocks browser access. Use \"Download\" in Google Drive to save the file locally, then upload it here.',\n\turlHintDropbox:\n\t\t'Dropbox links may block browser access. Try changing \"?dl=0\" to \"?dl=1\" in the URL, or download and upload instead.',\n\tunknownError: 'Unknown error',\n\n\twaitingForData: 'Waiting for data...',\n\twaitingForFiles: 'Waiting for file data...',\n\tfileCount: '{count} files',\n\tduplicateFilesTitle: 'Duplicate file names detected',\n\tduplicatePathsOne: 'The following path appears more than once:',\n\tduplicatePathsOther: 'The following paths appear more than once:',\n\tduplicateFilesHint:\n\t\t'Rename outputs in your Grasshopper definition so each file has a unique name.',\n\tdownloadFile: 'Download File',\n\tdownloadFiles: 'Download {count} Files',\n\tdownloading: 'Downloading...',\n\tdownloadFailed: 'Download failed',\n\tcopy: 'Copy',\n\tcopied: 'Copied!',\n\tchartReceiving: 'Receiving chart data...',\n\tchartRenderFailed: 'Failed to render chart',\n\tdownloadChartImage: 'Download plot as image',\n\tfullscreenUnavailable: 'Fullscreen unavailable: {error}',\n\texitFullscreenFailed: 'Exit fullscreen failed: {error}',\n\n\timageViewer: 'image viewer',\n\timageLoading: 'Loading image…',\n\timageUnsupported: 'Unsupported image format: {ext}. Supported: {formats}',\n\timageUnknownFormat: '(unknown)',\n\timageDecodeFailed: \"Couldn't decode {file}\",\n\tpreviousImage: 'Previous image',\n\tnextImage: 'Next image',\n\tzoomHint: 'Hold Ctrl or ⌘ and scroll to zoom',\n\tzoomIn: 'Zoom in',\n\tzoomOut: 'Zoom out',\n\tzoomFit: 'Fit',\n\tzoomActual: 'Actual pixels',\n\tdownloadImage: 'Download image'\n};\n\nconst de: ViewerMessages = {\n\ttoolsMenu: 'Viewer-Werkzeuge',\n\tswitchToOrthographic: 'Orthografische Kamera',\n\tswitchToPerspective: 'Perspektivische Kamera',\n\tfitToView: 'Ansicht anpassen',\n\tviews: 'Ansichten',\n\tmeasure: 'Messen',\n\tgrid: 'Raster',\n\tdisplay: 'Darstellung',\n\tedges: 'Kanten',\n\tsceneManager: 'Szenen-Manager',\n\tscreenshot: 'Screenshot',\n\tfullscreen: 'Vollbild',\n\texitFullscreen: 'Vollbild beenden',\n\n\tviewTop: 'Oben',\n\tviewFront: 'Vorne',\n\tviewRight: 'Rechts',\n\tviewBack: 'Hinten',\n\tviewLeft: 'Links',\n\tviewBottom: 'Unten',\n\tviewIso: 'Isometrisch',\n\n\tlookTechnical: 'Technisch',\n\tlookStudio: 'Studio',\n\tlookShowcase: 'Präsentation',\n\tlookNight: 'Nacht',\n\tnightMode: 'Nachtmodus',\n\tlookArctic: 'Arktis',\n\tlookXray: 'Röntgen',\n\tlookLineart: 'Strichzeichnung',\n\tlookWireframe: 'Drahtgitter',\n\n\tsearchObjects: 'Objekte suchen...',\n\tclearSearch: 'Suche löschen',\n\texpandLayer: 'Ebene aufklappen',\n\tcollapseLayer: 'Ebene zuklappen',\n\texpandAll: 'Alle aufklappen',\n\tcollapseAll: 'Alle zuklappen',\n\tshowLayer: 'Ebene einblenden',\n\thideLayer: 'Ebene ausblenden',\n\tshowObject: 'Objekt einblenden',\n\thideObject: 'Objekt ausblenden',\n\tnoObjects: 'Keine Objekte',\n\tnoResultsFor: 'Keine Ergebnisse für „{query}“',\n\n\tobjectFallbackName: 'Objekt',\n\tnoMetadata: 'Keine Metadaten',\n\n\tloadingSchema: 'Wird geladen…',\n\tsolveBlocked: 'Die Definition hat diese Berechnung gestoppt. Es wurden keine Ergebnisse erzeugt.',\n\tsolveBlockedTitle: 'Berechnung gestoppt',\n\tsolveMessagesTitle: 'Meldungen zur Berechnung',\n\tsolveMessagesDescription:\n\t\t'Diese Berechnung hat Folgendes gemeldet. Weiter, um das Ergebnis zu sehen.',\n\tsolveMessagesConfirm: 'Weiter',\n\tsolveMessagesDiscard: 'Verwerfen',\n\tsolveMessagesAbort: 'Abbrechen',\n\tsolveMessagesEscHint: 'Esc bricht die Berechnung ab',\n\tsolveMessagesDismiss: 'Schliessen',\n\tsolveSolving: 'Berechnung läuft…',\n\tsolveDone: 'Fertig',\n\tsolveStopped: 'Abgebrochen',\n\tparametersTab: 'Parameter',\n\tmoreTab: 'Mehr',\n\tscrollTabsBack: 'Vorherige Tabs',\n\tscrollTabsForward: 'Weitere Tabs',\n\texpandSidePanel: '{side} Bereich aufklappen',\n\tpanelSideLeft: 'Linken',\n\tpanelSideRight: 'Rechten',\n\ttabNoGroups: 'Für diesen Tab sind keine Gruppen konfiguriert.',\n\n\tsolving: 'Berechnung läuft',\n\tsolvingEllipsis: 'Berechnung läuft...',\n\tsolvingSubtitle: 'Das kann einen Moment dauern…',\n\tpressToCalculate: 'Berechnen',\n\tcalculate: 'Berechnen',\n\tupToDate: 'Berechnet',\n\tmoreActions: 'Weitere Aktionen',\n\tcalculatesFirst: 'Berechnet zuerst',\n\n\terrorCountOne: '{count} Fehler',\n\terrorCountOther: '{count} Fehler',\n\twarningCountOne: '{count} Warnung',\n\twarningCountOther: '{count} Warnungen',\n\tnoteCountOne: '{count} Hinweis',\n\tnoteCountOther: '{count} Hinweise',\n\tlastSolveMessagesOne: '{count} Meldung der letzten Berechnung',\n\tlastSolveMessagesOther: '{count} Meldungen der letzten Berechnung',\n\tmessagesTitle: 'Meldungen',\n\tcopyright: 'von {name} © {year}',\n\tclose: 'Schliessen',\n\ttoggleTheme: 'Farbschema wechseln',\n\terrorTitle: 'Fehler',\n\tgoHome: 'Zur Startseite',\n\n\tselectOption: 'Option wählen…',\n\tnoOptionsYet: 'Noch keine Optionen verfügbar.',\n\tminValue: 'Der kleinste erlaubte Wert ist {min}',\n\tmaxValue: 'Der grösste erlaubte Wert ist {max}',\n\tfineDragHint: 'Umschalttaste halten für feine Schritte',\n\tmaxLength: 'Höchstens {max} Zeichen erlaubt',\n\tinvalidFormat: 'Ungültiges Format',\n\tcolorPick: 'Farbe wählen, aktuell {color}',\n\tcolorArea: 'Sättigung und Helligkeit',\n\tcolorAreaValue: 'Sättigung {s} %, Helligkeit {v} %',\n\tcolorHue: 'Farbton',\n\tcolorHex: 'Hex-Farbe',\n\tcolorHexInvalid: 'Hex-Farbe eingeben, z. B. #2f6fd6',\n\tcolorPresets: 'Vorgaben',\n\tcolorEyedropper: 'Farbe vom Bildschirm aufnehmen',\n\tinvalidPattern: 'Ungültiges Prüfmuster hinterlegt',\n\n\tgeometryPickAnyOne: 'Objekt wählen',\n\tgeometryPickAnyOther: 'Objekte wählen',\n\tgeometryPicking: 'Im Ansichtsfenster wählen, Esc bricht ab',\n\tgeometryPickInPanel: 'Im Rhino-Panel wählen',\n\tgeometryPickAgain: 'Neu wählen',\n\tgeometryClear: 'Leeren',\n\tgeometryPickPointOne: 'Punkt wählen',\n\tgeometryPickPointOther: 'Punkte wählen',\n\tgeometryPickPointCloudOne: 'Punktwolke wählen',\n\tgeometryPickPointCloudOther: 'Punktwolken wählen',\n\tgeometryPickCurveOne: 'Kurve wählen',\n\tgeometryPickCurveOther: 'Kurven wählen',\n\tgeometryPickLineOne: 'Linie wählen',\n\tgeometryPickLineOther: 'Linien wählen',\n\tgeometryPickPlaneOne: 'Ebene wählen',\n\tgeometryPickPlaneOther: 'Ebenen wählen',\n\tgeometryPickSurfaceOne: 'Fläche wählen',\n\tgeometryPickSurfaceOther: 'Flächen wählen',\n\tgeometryPickPolysurfaceOne: 'Flächenverband wählen',\n\tgeometryPickPolysurfaceOther: 'Flächenverbände wählen',\n\tgeometryPickExtrusionOne: 'Extrusion wählen',\n\tgeometryPickExtrusionOther: 'Extrusionen wählen',\n\tgeometryPickMeshOne: 'Netz wählen',\n\tgeometryPickMeshOther: 'Netze wählen',\n\tgeometryPickSubdOne: 'SubD wählen',\n\tgeometryPickSubdOther: 'SubDs wählen',\n\tgeometryPickBlockOne: 'Block wählen',\n\tgeometryPickBlockOther: 'Blöcke wählen',\n\n\tfileModeUpload: 'Hochladen',\n\tfileModeUrl: 'URL',\n\tfileUrlLabel: 'Datei-URL',\n\tfetchFile: 'Abrufen',\n\tfetchingFile: 'Wird abgerufen…',\n\tfileUrlPublic: 'Die URL muss öffentlich erreichbar sein (ohne Anmeldung).',\n\tchooseFile: 'Datei wählen oder hierher ziehen',\n\tacceptedFormats: 'Erlaubte Formate: {formats}',\n\tuploadedFile: 'Hochgeladene Datei ({ext})',\n\tuploadedFileSize: 'Hochgeladene Datei ({ext}, {size} MB)',\n\tfileLoaded: '{ext} geladen ({size} KB)',\n\turlInvalid: 'Ungültige URL – sie muss mit https:// beginnen',\n\turlProtocolUnsupported: 'Nur http://- und https://-URLs werden unterstützt.',\n\turlServerError:\n\t\t'Der Server antwortete mit {status}. Ist die URL korrekt und öffentlich erreichbar?',\n\tfileFormatNotAccepted: 'Dateiformat „{ext}“ ist nicht erlaubt. Erlaubt: {formats}',\n\tfileTooLarge: 'Datei zu gross: {size} MB (höchstens {max} MB).',\n\tfileTooLargeUseUpload: 'Datei herunterladen und stattdessen über „Hochladen“ einfügen.',\n\tfileReadFailed: 'Die heruntergeladene Datei konnte nicht gelesen werden.',\n\turlUnreachable:\n\t\t'„{host}“ ist nicht erreichbar – die Datei existiert vielleicht nicht, oder der Server erlaubt keinen Zugriff aus dem Browser.',\n\turlUnreachableHint:\n\t\t'Prüfen, ob die URL stimmt und die Datei öffentlich erreichbar ist. Verlangt der Server eine Anmeldung: Datei herunterladen und über „Hochladen“ einfügen.',\n\turlHintSharePoint:\n\t\t'SharePoint/OneDrive sperrt den Zugriff aus dem Browser. Datei in SharePoint öffnen, mit „Herunterladen“ lokal speichern und hier hochladen.',\n\turlHintGoogleDrive:\n\t\t'Google Drive sperrt den Zugriff aus dem Browser. Datei in Google Drive mit „Herunterladen“ lokal speichern und hier hochladen.',\n\turlHintDropbox:\n\t\t'Dropbox-Links sperren den Zugriff aus dem Browser oft. In der URL „?dl=0“ durch „?dl=1“ ersetzen oder die Datei herunterladen und hochladen.',\n\tunknownError: 'Unbekannter Fehler',\n\n\twaitingForData: 'Noch keine Daten',\n\twaitingForFiles: 'Noch keine Dateien',\n\tfileCount: '{count} Dateien',\n\tduplicateFilesTitle: 'Doppelte Dateinamen',\n\tduplicatePathsOne: 'Dieser Pfad kommt mehrfach vor:',\n\tduplicatePathsOther: 'Diese Pfade kommen mehrfach vor:',\n\tduplicateFilesHint:\n\t\t'Ausgaben in der Grasshopper-Definition umbenennen, damit jede Datei einen eindeutigen Namen hat.',\n\tdownloadFile: 'Datei herunterladen',\n\tdownloadFiles: '{count} Dateien herunterladen',\n\tdownloading: 'Wird heruntergeladen…',\n\tdownloadFailed: 'Download fehlgeschlagen',\n\tcopy: 'Kopieren',\n\tcopied: 'Kopiert!',\n\tchartReceiving: 'Diagrammdaten werden empfangen…',\n\tchartRenderFailed: 'Diagramm konnte nicht dargestellt werden',\n\tdownloadChartImage: 'Diagramm als Bild herunterladen',\n\tfullscreenUnavailable: 'Vollbild nicht verfügbar: {error}',\n\texitFullscreenFailed: 'Vollbild konnte nicht beendet werden: {error}',\n\n\timageViewer: 'Bildbetrachter',\n\timageLoading: 'Bild wird geladen…',\n\timageUnsupported: 'Bildformat nicht unterstützt: {ext}. Unterstützt: {formats}',\n\timageUnknownFormat: '(unbekannt)',\n\timageDecodeFailed: '{file} konnte nicht gelesen werden',\n\tpreviousImage: 'Vorheriges Bild',\n\tnextImage: 'Nächstes Bild',\n\tzoomHint: 'Zum Zoomen Strg oder ⌘ halten und scrollen',\n\tzoomIn: 'Vergrössern',\n\tzoomOut: 'Verkleinern',\n\tzoomFit: 'Einpassen',\n\tzoomActual: 'Originalgrösse',\n\tdownloadImage: 'Bild herunterladen'\n};\n\nexport const VIEWER_MESSAGES: Record<Locale, ViewerMessages> = { en, de };\n\nexport const DEFAULT_LOCALE: Locale = 'en';\n\n/** Resolve a catalog for a locale, falling back to English for unknown locales. */\nexport function messagesFor(locale: Locale | undefined): ViewerMessages {\n\treturn VIEWER_MESSAGES[locale ?? DEFAULT_LOCALE] ?? VIEWER_MESSAGES[DEFAULT_LOCALE];\n}\n\n/** Layers a host's partial overrides over a full catalog. An `undefined` entry keeps the base string. */\nexport function withOverrides(\n\tbase: ViewerMessages,\n\toverrides: Partial<ViewerMessages> | undefined\n): ViewerMessages {\n\tif (!overrides) return base;\n\tconst merged = { ...base };\n\tfor (const [key, value] of Object.entries(overrides) as [keyof ViewerMessages, string][]) {\n\t\tif (value !== undefined) merged[key] = value;\n\t}\n\treturn merged;\n}\n\n/** Fills each `{name}` placeholder from `vars`; an unknown placeholder is left as written. */\nexport function formatMessage(template: string, vars: Record<string, string | number>): string {\n\treturn template.replace(/\\{(\\w+)\\}/g, (placeholder, name: string) =>\n\t\tname in vars ? String(vars[name]) : placeholder\n\t);\n}\n\n/** Picks the singular or plural form for `count` and fills its `{count}`. */\nexport function formatCount(count: number, one: string, other: string): string {\n\treturn formatMessage(count === 1 ? one : other, { count });\n}\n","import { getContext, setContext } from 'svelte';\nimport {\n\ttype Locale,\n\ttype ViewerMessages,\n\tmessagesFor,\n\twithOverrides,\n\tDEFAULT_LOCALE\n} from './messages';\n\n// Carries the UI locale down to the viewer and its panels without threading a\n// `lang` prop through every layer.\n//\n// Resolution order for any consuming component:\n// explicit `lang` prop → nearest locale context → English default\n// and the strings are that locale's catalog with any `messages` overrides on top.\n//\n// Two ways to provide it:\n// - Standalone: <Viewer lang=\"de\" /> — Viewer provides the context itself.\n// - In an app: call setLocaleContext(() => app.locale) once at the root; the\n// viewer (and anything else) reads it.\n\nconst LOCALE_CONTEXT_KEY = Symbol('viewer-locale-context');\n\nexport interface LocaleContext {\n\treadonly locale: Locale;\n\treadonly messages: ViewerMessages;\n}\n\n/**\n * Provide the locale to descendants. Pass getters, not values: they are re-read on every\n * consumer render, so a reactive source (a `$state`, the app's Paraglide locale) switches\n * the language live. `getOverrides` replaces individual strings of the resolved catalog.\n */\nexport function setLocaleContext(\n\tgetLocale: () => Locale | undefined,\n\tgetOverrides?: () => Partial<ViewerMessages> | undefined\n): void {\n\tconst ctx: LocaleContext = {\n\t\tget locale() {\n\t\t\treturn getLocale() ?? DEFAULT_LOCALE;\n\t\t},\n\t\tget messages() {\n\t\t\treturn withOverrides(messagesFor(getLocale()), getOverrides?.());\n\t\t}\n\t};\n\tsetContext(LOCALE_CONTEXT_KEY, ctx);\n}\n\n/**\n * Re-provides the nearest context for a component that takes its own `lang`/`messages` props.\n * Without `lang`, or with the inherited locale, the subtree keeps the overrides an outer provider\n * applied; a different `lang` starts from that locale's catalog, since those overrides were\n * written for another language.\n */\nexport function layerLocaleContext(\n\tgetLang: () => Locale | undefined,\n\tgetOverrides?: () => Partial<ViewerMessages> | undefined\n): LocaleContext {\n\tconst outer = getLocaleContext();\n\tconst ctx: LocaleContext = {\n\t\tget locale() {\n\t\t\treturn getLang() ?? outer.locale;\n\t\t},\n\t\tget messages() {\n\t\t\tconst lang = getLang();\n\t\t\tconst base = lang === undefined || lang === outer.locale ? outer.messages : messagesFor(lang);\n\t\t\treturn withOverrides(base, getOverrides?.());\n\t\t}\n\t};\n\tsetContext(LOCALE_CONTEXT_KEY, ctx);\n\treturn ctx;\n}\n\n/**\n * Falls back to an English-only context when no provider exists (a primitive used in\n * isolation), so consumers never need a null check.\n */\nexport function getLocaleContext(): LocaleContext {\n\treturn (\n\t\tgetContext<LocaleContext | undefined>(LOCALE_CONTEXT_KEY) ?? {\n\t\t\tget locale() {\n\t\t\t\treturn DEFAULT_LOCALE;\n\t\t\t},\n\t\t\tget messages() {\n\t\t\t\treturn messagesFor(DEFAULT_LOCALE);\n\t\t\t}\n\t\t}\n\t);\n}\n"],"mappings":";;AAmqBA,IAAa,kBAAkD;CAAE;EA7ZhE,WAAW;EACX,sBAAsB;EACtB,qBAAqB;EACrB,WAAW;EACX,OAAO;EACP,SAAS;EACT,MAAM;EACN,SAAS;EACT,OAAO;EACP,cAAc;EACd,YAAY;EACZ,YAAY;EACZ,gBAAgB;EAEhB,SAAS;EACT,WAAW;EACX,WAAW;EACX,UAAU;EACV,UAAU;EACV,YAAY;EACZ,SAAS;EAET,eAAe;EACf,YAAY;EACZ,cAAc;EACd,WAAW;EACX,WAAW;EACX,YAAY;EACZ,UAAU;EACV,aAAa;EACb,eAAe;EAEf,eAAe;EACf,aAAa;EACb,aAAa;EACb,eAAe;EACf,WAAW;EACX,aAAa;EACb,WAAW;EACX,WAAW;EACX,YAAY;EACZ,YAAY;EACZ,WAAW;EACX,cAAc;EAEd,oBAAoB;EACpB,YAAY;EAEZ,eAAe;EACf,cAAc;EACd,mBAAmB;EACnB,oBAAoB;EACpB,0BAA0B;EAC1B,sBAAsB;EACtB,sBAAsB;EACtB,oBAAoB;EACpB,sBAAsB;EACtB,sBAAsB;EACtB,cAAc;EACd,WAAW;EACX,cAAc;EACd,eAAe;EACf,SAAS;EACT,gBAAgB;EAChB,mBAAmB;EACnB,iBAAiB;EACjB,e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I,WAAW;GACd,OAAO,YAAA,IAA0B;EAClC;;AAGH"}
1
+ {"version":3,"file":"localeContext.svelte.js","names":[],"sources":["../../../../ui/src/lib/i18n/messages.ts","../../../../ui/src/lib/i18n/localeContext.svelte.ts"],"sourcesContent":["// ============================================================================\n// Viewer message catalog (library-owned strings)\n// ============================================================================\n//\n// Only the strings @selvajs/ui renders itself. Names coming from a Grasshopper\n// definition — meshes, layers, metadata keys — live in the user's .gh file and\n// cannot be translated here.\n//\n// A `{name}` in a message is a placeholder the component fills in. Pairs ending in\n// `One`/`Other` are the singular and plural forms of one message.\n\nexport type Locale = 'en' | 'de';\n\nexport interface ViewerMessages {\n\t// Tools menu\n\ttoolsMenu: string;\n\tswitchToOrthographic: string;\n\tswitchToPerspective: string;\n\tfitToView: string;\n\tviews: string;\n\tmeasure: string;\n\tgrid: string;\n\tdisplay: string;\n\tedges: string;\n\tsceneManager: string;\n\tscreenshot: string;\n\tfullscreen: string;\n\texitFullscreen: string;\n\n\t// View presets\n\tviewTop: string;\n\tviewFront: string;\n\tviewRight: string;\n\tviewBack: string;\n\tviewLeft: string;\n\tviewBottom: string;\n\tviewIso: string;\n\n\t// Display looks\n\tlookTechnical: string;\n\tlookStudio: string;\n\tlookShowcase: string;\n\tlookNight: string;\n\tnightMode: string;\n\tlookArctic: string;\n\tlookXray: string;\n\tlookLineart: string;\n\tlookWireframe: string;\n\n\t// Scene manager\n\tsearchObjects: string;\n\tclearSearch: string;\n\texpandLayer: string;\n\tcollapseLayer: string;\n\texpandAll: string;\n\tcollapseAll: string;\n\tshowLayer: string;\n\thideLayer: string;\n\tshowObject: string;\n\thideObject: string;\n\tnoObjects: string;\n\t/** `{query}` is replaced with the current search text. */\n\tnoResultsFor: string;\n\n\t// Metadata dialog\n\tobjectFallbackName: string;\n\tnoMetadata: string;\n\n\t// App layout / compute shell\n\tloadingSchema: string;\n\tsolveBlocked: string;\n\tsolveBlockedTitle: string;\n\tsolveMessagesTitle: string;\n\tsolveMessagesDescription: string;\n\tsolveMessagesConfirm: string;\n\tsolveMessagesDiscard: string;\n\tsolveMessagesAbort: string;\n\t/** Stands in for Abort where the page can't take a click mid-solve. */\n\tsolveMessagesEscHint: string;\n\tsolveMessagesDismiss: string;\n\tsolveSolving: string;\n\t/** A visible solve has landed; followed by how long it took. */\n\tsolveDone: string;\n\t/** A visible solve was aborted; the previous result stays. */\n\tsolveStopped: string;\n\tparametersTab: string;\n\tmoreTab: string;\n\tscrollTabsBack: string;\n\tscrollTabsForward: string;\n\t/** `{side}` is replaced with `panelSideLeft` / `panelSideRight`. */\n\texpandSidePanel: string;\n\tpanelSideLeft: string;\n\tpanelSideRight: string;\n\ttabNoGroups: string;\n\n\t// Solve controls\n\tsolving: string;\n\tsolvingEllipsis: string;\n\tsolvingSubtitle: string;\n\tpressToCalculate: string;\n\tcalculate: string;\n\tupToDate: string;\n\t/** The panel footer's ⋯ menu: saving and loading inputs, plus the host's own actions. */\n\tmoreActions: string;\n\t/** Under a menu action that solves before it runs, while the inputs have changed. */\n\tcalculatesFirst: string;\n\n\t// Footer and message centre\n\t/** `{count}` is replaced with the number of errors. */\n\terrorCountOne: string;\n\terrorCountOther: string;\n\t/** `{count}` is replaced with the number of warnings. */\n\twarningCountOne: string;\n\twarningCountOther: string;\n\t/** `{count}` is replaced with the number of notes. */\n\tnoteCountOne: string;\n\tnoteCountOther: string;\n\t/** `{count}` is replaced with the number of messages. */\n\tlastSolveMessagesOne: string;\n\tlastSolveMessagesOther: string;\n\tmessagesTitle: string;\n\t/** `{name}` is replaced with the copyright holder, `{year}` with the current year. */\n\tcopyright: string;\n\tclose: string;\n\ttoggleTheme: string;\n\terrorTitle: string;\n\tgoHome: string;\n\n\t// Input fields\n\tselectOption: string;\n\tnoOptionsYet: string;\n\t/** `{min}` is replaced with the field's minimum. */\n\tminValue: string;\n\t/** `{max}` is replaced with the field's maximum. */\n\tmaxValue: string;\n\tfineDragHint: string;\n\t/** `{max}` is replaced with the field's character limit. */\n\tmaxLength: string;\n\tinvalidFormat: string;\n\t/** Trigger label; `{color}` is the current hex value. */\n\tcolorPick: string;\n\tcolorArea: string;\n\t/** `{s}` and `{v}` are percentages. */\n\tcolorAreaValue: string;\n\tcolorHue: string;\n\tcolorHex: string;\n\tcolorHexInvalid: string;\n\tcolorPresets: string;\n\tcolorEyedropper: string;\n\tinvalidPattern: string;\n\n\t// Geometry input (Rhino only)\n\t/** The pick button when the input takes several kinds of object. */\n\tgeometryPickAnyOne: string;\n\tgeometryPickAnyOther: string;\n\t/** Shown while Rhino's viewport prompt for a pick is open. */\n\tgeometryPicking: string;\n\t/** Where this page may not pick, such as a browser tab beside the Rhino panel. */\n\tgeometryPickInPanel: string;\n\tgeometryPickAgain: string;\n\tgeometryClear: string;\n\t// The pick button when the input takes one kind: `One` picks a single object, `Other` several.\n\tgeometryPickPointOne: string;\n\tgeometryPickPointOther: string;\n\tgeometryPickPointCloudOne: string;\n\tgeometryPickPointCloudOther: string;\n\tgeometryPickCurveOne: string;\n\tgeometryPickCurveOther: string;\n\tgeometryPickLineOne: string;\n\tgeometryPickLineOther: string;\n\tgeometryPickPlaneOne: string;\n\tgeometryPickPlaneOther: string;\n\tgeometryPickSurfaceOne: string;\n\tgeometryPickSurfaceOther: string;\n\tgeometryPickPolysurfaceOne: string;\n\tgeometryPickPolysurfaceOther: string;\n\tgeometryPickExtrusionOne: string;\n\tgeometryPickExtrusionOther: string;\n\tgeometryPickMeshOne: string;\n\tgeometryPickMeshOther: string;\n\tgeometryPickSubdOne: string;\n\tgeometryPickSubdOther: string;\n\tgeometryPickBlockOne: string;\n\tgeometryPickBlockOther: string;\n\n\t// File input\n\tfileModeUpload: string;\n\tfileModeUrl: string;\n\tfileUrlLabel: string;\n\tfetchFile: string;\n\tfetchingFile: string;\n\tfileUrlPublic: string;\n\tchooseFile: string;\n\t/** `{formats}` is replaced with the accepted extensions. */\n\tacceptedFormats: string;\n\t/** `{ext}` is replaced with the file's extension. */\n\tuploadedFile: string;\n\t/** `{ext}` is replaced with the file's extension, `{size}` with its size in MB. */\n\tuploadedFileSize: string;\n\t/** `{ext}` is replaced with the file's extension, `{size}` with its size in KB. */\n\tfileLoaded: string;\n\turlInvalid: string;\n\turlProtocolUnsupported: string;\n\t/** `{status}` is replaced with the HTTP status the server answered with. */\n\turlServerError: string;\n\t/** `{ext}` is replaced with the rejected extension, `{formats}` with the accepted ones. */\n\tfileFormatNotAccepted: string;\n\t/** `{size}` is replaced with the file's size in MB, `{max}` with the limit in MB. */\n\tfileTooLarge: string;\n\tfileTooLargeUseUpload: string;\n\tfileReadFailed: string;\n\t/** `{host}` is replaced with the URL's host name. */\n\turlUnreachable: string;\n\turlUnreachableHint: string;\n\turlHintSharePoint: string;\n\turlHintGoogleDrive: string;\n\turlHintDropbox: string;\n\tunknownError: string;\n\n\t// Outputs\n\twaitingForData: string;\n\twaitingForFiles: string;\n\t/** `{count}` is replaced with the number of files. */\n\tfileCount: string;\n\tduplicateFilesTitle: string;\n\tduplicatePathsOne: string;\n\tduplicatePathsOther: string;\n\tduplicateFilesHint: string;\n\tdownloadFile: string;\n\t/** `{count}` is replaced with the number of files. */\n\tdownloadFiles: string;\n\tdownloading: string;\n\tdownloadFailed: string;\n\t/** A preview skipped this output's files; a click makes them. */\n\tfilesMadeOnDownload: string;\n\tdownload: string;\n\tmakingFiles: string;\n\t/** `{seconds}` is replaced with how long the full solve took. */\n\tfilesMadeIn: string;\n\tnoFilesForInputs: string;\n\ttryAgain: string;\n\tcancel: string;\n\tcopy: string;\n\tcopied: string;\n\tchartReceiving: string;\n\tchartRenderFailed: string;\n\tdownloadChartImage: string;\n\t/** `{error}` is replaced with the browser's reason. */\n\tfullscreenUnavailable: string;\n\t/** `{error}` is replaced with the browser's reason. */\n\texitFullscreenFailed: string;\n\n\t// Image output\n\timageViewer: string;\n\timageLoading: string;\n\t/** `{ext}` is replaced with the file's extension, `{formats}` with the supported ones. */\n\timageUnsupported: string;\n\timageUnknownFormat: string;\n\t/** `{file}` is replaced with the file's name. */\n\timageDecodeFailed: string;\n\tpreviousImage: string;\n\tnextImage: string;\n\tzoomHint: string;\n\tzoomIn: string;\n\tzoomOut: string;\n\tzoomFit: string;\n\tzoomActual: string;\n\tdownloadImage: string;\n}\n\nconst en: ViewerMessages = {\n\ttoolsMenu: 'Viewer tools',\n\tswitchToOrthographic: 'Orthographic camera',\n\tswitchToPerspective: 'Perspective camera',\n\tfitToView: 'Fit to view',\n\tviews: 'Views',\n\tmeasure: 'Measure',\n\tgrid: 'Grid',\n\tdisplay: 'Display',\n\tedges: 'Edges',\n\tsceneManager: 'Scene manager',\n\tscreenshot: 'Screenshot',\n\tfullscreen: 'Fullscreen',\n\texitFullscreen: 'Exit fullscreen',\n\n\tviewTop: 'Top',\n\tviewFront: 'Front',\n\tviewRight: 'Right',\n\tviewBack: 'Back',\n\tviewLeft: 'Left',\n\tviewBottom: 'Bottom',\n\tviewIso: 'Isometric',\n\n\tlookTechnical: 'Technical',\n\tlookStudio: 'Studio',\n\tlookShowcase: 'Showcase',\n\tlookNight: 'Night',\n\tnightMode: 'Night mode',\n\tlookArctic: 'Arctic',\n\tlookXray: 'X-Ray',\n\tlookLineart: 'Line Art',\n\tlookWireframe: 'Wireframe',\n\n\tsearchObjects: 'Search objects...',\n\tclearSearch: 'Clear search',\n\texpandLayer: 'Expand layer',\n\tcollapseLayer: 'Collapse layer',\n\texpandAll: 'Expand all',\n\tcollapseAll: 'Collapse all',\n\tshowLayer: 'Show layer',\n\thideLayer: 'Hide layer',\n\tshowObject: 'Show object',\n\thideObject: 'Hide object',\n\tnoObjects: 'No objects',\n\tnoResultsFor: 'No results for \"{query}\"',\n\n\tobjectFallbackName: 'Object',\n\tnoMetadata: 'No metadata',\n\n\tloadingSchema: 'Loading…',\n\tsolveBlocked: 'The definition stopped this solve. No results were produced.',\n\tsolveBlockedTitle: 'Solve stopped',\n\tsolveMessagesTitle: 'Solve messages',\n\tsolveMessagesDescription: 'This solve reported the following. Continue to see the result.',\n\tsolveMessagesConfirm: 'Continue',\n\tsolveMessagesDiscard: 'Discard',\n\tsolveMessagesAbort: 'Abort',\n\tsolveMessagesEscHint: 'Esc aborts the solve',\n\tsolveMessagesDismiss: 'Dismiss',\n\tsolveSolving: 'Solving…',\n\tsolveDone: 'Done',\n\tsolveStopped: 'Stopped',\n\tparametersTab: 'Parameters',\n\tmoreTab: 'More',\n\tscrollTabsBack: 'Previous tabs',\n\tscrollTabsForward: 'More tabs',\n\texpandSidePanel: 'Expand {side} panel',\n\tpanelSideLeft: 'left',\n\tpanelSideRight: 'right',\n\ttabNoGroups: 'This tab has no groups configured.',\n\n\tsolving: 'Solving',\n\tsolvingEllipsis: 'Solving...',\n\tsolvingSubtitle: 'This can take a moment…',\n\tpressToCalculate: 'Press to calculate',\n\tcalculate: 'Calculate',\n\tupToDate: 'Up to date',\n\tmoreActions: 'More actions',\n\tcalculatesFirst: 'Calculates first',\n\n\terrorCountOne: '{count} error',\n\terrorCountOther: '{count} errors',\n\twarningCountOne: '{count} warning',\n\twarningCountOther: '{count} warnings',\n\tnoteCountOne: '{count} note',\n\tnoteCountOther: '{count} notes',\n\tlastSolveMessagesOne: '{count} message from the last solve',\n\tlastSolveMessagesOther: '{count} messages from the last solve',\n\tmessagesTitle: 'Messages',\n\tcopyright: 'by {name} © {year}',\n\tclose: 'Close',\n\ttoggleTheme: 'Toggle theme',\n\terrorTitle: 'Error',\n\tgoHome: 'Go Home',\n\n\tselectOption: 'Select an option...',\n\tnoOptionsYet: 'No options available yet.',\n\tminValue: 'Minimum value is {min}',\n\tmaxValue: 'Maximum value is {max}',\n\tfineDragHint: 'Hold Shift to drag finely',\n\tmaxLength: 'Maximum {max} characters allowed',\n\tinvalidFormat: 'Invalid format',\n\tcolorPick: 'Choose color, currently {color}',\n\tcolorArea: 'Saturation and brightness',\n\tcolorAreaValue: 'Saturation {s}%, brightness {v}%',\n\tcolorHue: 'Hue',\n\tcolorHex: 'Hex color',\n\tcolorHexInvalid: 'Enter a hex color such as #2f6fd6',\n\tcolorPresets: 'Presets',\n\tcolorEyedropper: 'Pick a color from the screen',\n\tinvalidPattern: 'Invalid validation pattern configured',\n\n\tgeometryPickAnyOne: 'Pick an object',\n\tgeometryPickAnyOther: 'Pick objects',\n\tgeometryPicking: 'Pick in the viewport, Esc to cancel',\n\tgeometryPickInPanel: 'Pick in the Rhino panel',\n\tgeometryPickAgain: 'Pick again',\n\tgeometryClear: 'Clear',\n\tgeometryPickPointOne: 'Pick a point',\n\tgeometryPickPointOther: 'Pick points',\n\tgeometryPickPointCloudOne: 'Pick a point cloud',\n\tgeometryPickPointCloudOther: 'Pick point clouds',\n\tgeometryPickCurveOne: 'Pick a curve',\n\tgeometryPickCurveOther: 'Pick curves',\n\tgeometryPickLineOne: 'Pick a line',\n\tgeometryPickLineOther: 'Pick lines',\n\tgeometryPickPlaneOne: 'Pick a plane',\n\tgeometryPickPlaneOther: 'Pick planes',\n\tgeometryPickSurfaceOne: 'Pick a surface',\n\tgeometryPickSurfaceOther: 'Pick surfaces',\n\tgeometryPickPolysurfaceOne: 'Pick a polysurface',\n\tgeometryPickPolysurfaceOther: 'Pick polysurfaces',\n\tgeometryPickExtrusionOne: 'Pick an extrusion',\n\tgeometryPickExtrusionOther: 'Pick extrusions',\n\tgeometryPickMeshOne: 'Pick a mesh',\n\tgeometryPickMeshOther: 'Pick meshes',\n\tgeometryPickSubdOne: 'Pick a SubD',\n\tgeometryPickSubdOther: 'Pick SubDs',\n\tgeometryPickBlockOne: 'Pick a block',\n\tgeometryPickBlockOther: 'Pick blocks',\n\n\tfileModeUpload: 'Upload',\n\tfileModeUrl: 'URL',\n\tfileUrlLabel: 'File URL',\n\tfetchFile: 'Fetch',\n\tfetchingFile: 'Fetching...',\n\tfileUrlPublic: 'URL must be publicly accessible (no login required).',\n\tchooseFile: 'Choose File or Drag & Drop',\n\tacceptedFormats: 'Accepted formats: {formats}',\n\tuploadedFile: 'Uploaded file ({ext})',\n\tuploadedFileSize: 'Uploaded file ({ext}, {size}MB)',\n\tfileLoaded: 'Loaded {ext} ({size} KB)',\n\turlInvalid: 'Invalid URL — make sure it starts with https://',\n\turlProtocolUnsupported: 'Only http:// and https:// URLs are supported.',\n\turlServerError: 'Server returned {status}. Check the URL is correct and publicly accessible.',\n\tfileFormatNotAccepted: 'File format \"{ext}\" is not accepted. Allowed: {formats}',\n\tfileTooLarge: 'File too large: {size}MB (max {max}MB).',\n\tfileTooLargeUseUpload: 'Download it and use Upload instead.',\n\tfileReadFailed: 'Failed to read the downloaded file.',\n\turlUnreachable:\n\t\t'Could not reach \"{host}\" — the file may not exist, or the server does not allow browser access.',\n\turlUnreachableHint:\n\t\t'Check that the URL is correct and the file is publicly accessible. If the server requires login, download the file and use the Upload option instead.',\n\turlHintSharePoint:\n\t\t'SharePoint/OneDrive blocks browser access. Open the file in SharePoint, use \"Download\" to save it locally, then upload it here.',\n\turlHintGoogleDrive:\n\t\t'Google Drive blocks browser access. Use \"Download\" in Google Drive to save the file locally, then upload it here.',\n\turlHintDropbox:\n\t\t'Dropbox links may block browser access. Try changing \"?dl=0\" to \"?dl=1\" in the URL, or download and upload instead.',\n\tunknownError: 'Unknown error',\n\n\twaitingForData: 'Waiting for data...',\n\twaitingForFiles: 'Waiting for file data...',\n\tfileCount: '{count} files',\n\tduplicateFilesTitle: 'Duplicate file names detected',\n\tduplicatePathsOne: 'The following path appears more than once:',\n\tduplicatePathsOther: 'The following paths appear more than once:',\n\tduplicateFilesHint:\n\t\t'Rename outputs in your Grasshopper definition so each file has a unique name.',\n\tdownloadFile: 'Download File',\n\tdownloadFiles: 'Download {count} Files',\n\tdownloading: 'Downloading...',\n\tdownloadFailed: 'Download failed',\n\tfilesMadeOnDownload: 'Made when you download',\n\tdownload: 'Download',\n\tmakingFiles: 'Making files',\n\tfilesMadeIn: 'Made in {seconds} s',\n\tnoFilesForInputs: 'Nothing to download for these inputs.',\n\ttryAgain: 'Try again',\n\tcancel: 'Cancel',\n\tcopy: 'Copy',\n\tcopied: 'Copied!',\n\tchartReceiving: 'Receiving chart data...',\n\tchartRenderFailed: 'Failed to render chart',\n\tdownloadChartImage: 'Download plot as image',\n\tfullscreenUnavailable: 'Fullscreen unavailable: {error}',\n\texitFullscreenFailed: 'Exit fullscreen failed: {error}',\n\n\timageViewer: 'image viewer',\n\timageLoading: 'Loading image…',\n\timageUnsupported: 'Unsupported image format: {ext}. Supported: {formats}',\n\timageUnknownFormat: '(unknown)',\n\timageDecodeFailed: \"Couldn't decode {file}\",\n\tpreviousImage: 'Previous image',\n\tnextImage: 'Next image',\n\tzoomHint: 'Hold Ctrl or ⌘ and scroll to zoom',\n\tzoomIn: 'Zoom in',\n\tzoomOut: 'Zoom out',\n\tzoomFit: 'Fit',\n\tzoomActual: 'Actual pixels',\n\tdownloadImage: 'Download image'\n};\n\nconst de: ViewerMessages = {\n\ttoolsMenu: 'Viewer-Werkzeuge',\n\tswitchToOrthographic: 'Orthografische Kamera',\n\tswitchToPerspective: 'Perspektivische Kamera',\n\tfitToView: 'Ansicht anpassen',\n\tviews: 'Ansichten',\n\tmeasure: 'Messen',\n\tgrid: 'Raster',\n\tdisplay: 'Darstellung',\n\tedges: 'Kanten',\n\tsceneManager: 'Szenen-Manager',\n\tscreenshot: 'Screenshot',\n\tfullscreen: 'Vollbild',\n\texitFullscreen: 'Vollbild beenden',\n\n\tviewTop: 'Oben',\n\tviewFront: 'Vorne',\n\tviewRight: 'Rechts',\n\tviewBack: 'Hinten',\n\tviewLeft: 'Links',\n\tviewBottom: 'Unten',\n\tviewIso: 'Isometrisch',\n\n\tlookTechnical: 'Technisch',\n\tlookStudio: 'Studio',\n\tlookShowcase: 'Präsentation',\n\tlookNight: 'Nacht',\n\tnightMode: 'Nachtmodus',\n\tlookArctic: 'Arktis',\n\tlookXray: 'Röntgen',\n\tlookLineart: 'Strichzeichnung',\n\tlookWireframe: 'Drahtgitter',\n\n\tsearchObjects: 'Objekte suchen...',\n\tclearSearch: 'Suche löschen',\n\texpandLayer: 'Ebene aufklappen',\n\tcollapseLayer: 'Ebene zuklappen',\n\texpandAll: 'Alle aufklappen',\n\tcollapseAll: 'Alle zuklappen',\n\tshowLayer: 'Ebene einblenden',\n\thideLayer: 'Ebene ausblenden',\n\tshowObject: 'Objekt einblenden',\n\thideObject: 'Objekt ausblenden',\n\tnoObjects: 'Keine Objekte',\n\tnoResultsFor: 'Keine Ergebnisse für „{query}“',\n\n\tobjectFallbackName: 'Objekt',\n\tnoMetadata: 'Keine Metadaten',\n\n\tloadingSchema: 'Wird geladen…',\n\tsolveBlocked: 'Die Definition hat diese Berechnung gestoppt. Es wurden keine Ergebnisse erzeugt.',\n\tsolveBlockedTitle: 'Berechnung gestoppt',\n\tsolveMessagesTitle: 'Meldungen zur Berechnung',\n\tsolveMessagesDescription:\n\t\t'Diese Berechnung hat Folgendes gemeldet. Weiter, um das Ergebnis zu sehen.',\n\tsolveMessagesConfirm: 'Weiter',\n\tsolveMessagesDiscard: 'Verwerfen',\n\tsolveMessagesAbort: 'Abbrechen',\n\tsolveMessagesEscHint: 'Esc bricht die Berechnung ab',\n\tsolveMessagesDismiss: 'Schliessen',\n\tsolveSolving: 'Berechnung läuft…',\n\tsolveDone: 'Fertig',\n\tsolveStopped: 'Abgebrochen',\n\tparametersTab: 'Parameter',\n\tmoreTab: 'Mehr',\n\tscrollTabsBack: 'Vorherige Tabs',\n\tscrollTabsForward: 'Weitere Tabs',\n\texpandSidePanel: '{side} Bereich aufklappen',\n\tpanelSideLeft: 'Linken',\n\tpanelSideRight: 'Rechten',\n\ttabNoGroups: 'Für diesen Tab sind keine Gruppen konfiguriert.',\n\n\tsolving: 'Berechnung läuft',\n\tsolvingEllipsis: 'Berechnung läuft...',\n\tsolvingSubtitle: 'Das kann einen Moment dauern…',\n\tpressToCalculate: 'Berechnen',\n\tcalculate: 'Berechnen',\n\tupToDate: 'Berechnet',\n\tmoreActions: 'Weitere Aktionen',\n\tcalculatesFirst: 'Berechnet zuerst',\n\n\terrorCountOne: '{count} Fehler',\n\terrorCountOther: '{count} Fehler',\n\twarningCountOne: '{count} Warnung',\n\twarningCountOther: '{count} Warnungen',\n\tnoteCountOne: '{count} Hinweis',\n\tnoteCountOther: '{count} Hinweise',\n\tlastSolveMessagesOne: '{count} Meldung der letzten Berechnung',\n\tlastSolveMessagesOther: '{count} Meldungen der letzten Berechnung',\n\tmessagesTitle: 'Meldungen',\n\tcopyright: 'von {name} © {year}',\n\tclose: 'Schliessen',\n\ttoggleTheme: 'Farbschema wechseln',\n\terrorTitle: 'Fehler',\n\tgoHome: 'Zur Startseite',\n\n\tselectOption: 'Option wählen…',\n\tnoOptionsYet: 'Noch keine Optionen verfügbar.',\n\tminValue: 'Der kleinste erlaubte Wert ist {min}',\n\tmaxValue: 'Der grösste erlaubte Wert ist {max}',\n\tfineDragHint: 'Umschalttaste halten für feine Schritte',\n\tmaxLength: 'Höchstens {max} Zeichen erlaubt',\n\tinvalidFormat: 'Ungültiges Format',\n\tcolorPick: 'Farbe wählen, aktuell {color}',\n\tcolorArea: 'Sättigung und Helligkeit',\n\tcolorAreaValue: 'Sättigung {s} %, Helligkeit {v} %',\n\tcolorHue: 'Farbton',\n\tcolorHex: 'Hex-Farbe',\n\tcolorHexInvalid: 'Hex-Farbe eingeben, z. B. #2f6fd6',\n\tcolorPresets: 'Vorgaben',\n\tcolorEyedropper: 'Farbe vom Bildschirm aufnehmen',\n\tinvalidPattern: 'Ungültiges Prüfmuster hinterlegt',\n\n\tgeometryPickAnyOne: 'Objekt wählen',\n\tgeometryPickAnyOther: 'Objekte wählen',\n\tgeometryPicking: 'Im Ansichtsfenster wählen, Esc bricht ab',\n\tgeometryPickInPanel: 'Im Rhino-Panel wählen',\n\tgeometryPickAgain: 'Neu wählen',\n\tgeometryClear: 'Leeren',\n\tgeometryPickPointOne: 'Punkt wählen',\n\tgeometryPickPointOther: 'Punkte wählen',\n\tgeometryPickPointCloudOne: 'Punktwolke wählen',\n\tgeometryPickPointCloudOther: 'Punktwolken wählen',\n\tgeometryPickCurveOne: 'Kurve wählen',\n\tgeometryPickCurveOther: 'Kurven wählen',\n\tgeometryPickLineOne: 'Linie wählen',\n\tgeometryPickLineOther: 'Linien wählen',\n\tgeometryPickPlaneOne: 'Ebene wählen',\n\tgeometryPickPlaneOther: 'Ebenen wählen',\n\tgeometryPickSurfaceOne: 'Fläche wählen',\n\tgeometryPickSurfaceOther: 'Flächen wählen',\n\tgeometryPickPolysurfaceOne: 'Flächenverband wählen',\n\tgeometryPickPolysurfaceOther: 'Flächenverbände wählen',\n\tgeometryPickExtrusionOne: 'Extrusion wählen',\n\tgeometryPickExtrusionOther: 'Extrusionen wählen',\n\tgeometryPickMeshOne: 'Netz wählen',\n\tgeometryPickMeshOther: 'Netze wählen',\n\tgeometryPickSubdOne: 'SubD wählen',\n\tgeometryPickSubdOther: 'SubDs wählen',\n\tgeometryPickBlockOne: 'Block wählen',\n\tgeometryPickBlockOther: 'Blöcke wählen',\n\n\tfileModeUpload: 'Hochladen',\n\tfileModeUrl: 'URL',\n\tfileUrlLabel: 'Datei-URL',\n\tfetchFile: 'Abrufen',\n\tfetchingFile: 'Wird abgerufen…',\n\tfileUrlPublic: 'Die URL muss öffentlich erreichbar sein (ohne Anmeldung).',\n\tchooseFile: 'Datei wählen oder hierher ziehen',\n\tacceptedFormats: 'Erlaubte Formate: {formats}',\n\tuploadedFile: 'Hochgeladene Datei ({ext})',\n\tuploadedFileSize: 'Hochgeladene Datei ({ext}, {size} MB)',\n\tfileLoaded: '{ext} geladen ({size} KB)',\n\turlInvalid: 'Ungültige URL – sie muss mit https:// beginnen',\n\turlProtocolUnsupported: 'Nur http://- und https://-URLs werden unterstützt.',\n\turlServerError:\n\t\t'Der Server antwortete mit {status}. Ist die URL korrekt und öffentlich erreichbar?',\n\tfileFormatNotAccepted: 'Dateiformat „{ext}“ ist nicht erlaubt. Erlaubt: {formats}',\n\tfileTooLarge: 'Datei zu gross: {size} MB (höchstens {max} MB).',\n\tfileTooLargeUseUpload: 'Datei herunterladen und stattdessen über „Hochladen“ einfügen.',\n\tfileReadFailed: 'Die heruntergeladene Datei konnte nicht gelesen werden.',\n\turlUnreachable:\n\t\t'„{host}“ ist nicht erreichbar – die Datei existiert vielleicht nicht, oder der Server erlaubt keinen Zugriff aus dem Browser.',\n\turlUnreachableHint:\n\t\t'Prüfen, ob die URL stimmt und die Datei öffentlich erreichbar ist. Verlangt der Server eine Anmeldung: Datei herunterladen und über „Hochladen“ einfügen.',\n\turlHintSharePoint:\n\t\t'SharePoint/OneDrive sperrt den Zugriff aus dem Browser. Datei in SharePoint öffnen, mit „Herunterladen“ lokal speichern und hier hochladen.',\n\turlHintGoogleDrive:\n\t\t'Google Drive sperrt den Zugriff aus dem Browser. Datei in Google Drive mit „Herunterladen“ lokal speichern und hier hochladen.',\n\turlHintDropbox:\n\t\t'Dropbox-Links sperren den Zugriff aus dem Browser oft. In der URL „?dl=0“ durch „?dl=1“ ersetzen oder die Datei herunterladen und hochladen.',\n\tunknownError: 'Unbekannter Fehler',\n\n\twaitingForData: 'Noch keine Daten',\n\twaitingForFiles: 'Noch keine Dateien',\n\tfileCount: '{count} Dateien',\n\tduplicateFilesTitle: 'Doppelte Dateinamen',\n\tduplicatePathsOne: 'Dieser Pfad kommt mehrfach vor:',\n\tduplicatePathsOther: 'Diese Pfade kommen mehrfach vor:',\n\tduplicateFilesHint:\n\t\t'Ausgaben in der Grasshopper-Definition umbenennen, damit jede Datei einen eindeutigen Namen hat.',\n\tdownloadFile: 'Datei herunterladen',\n\tdownloadFiles: '{count} Dateien herunterladen',\n\tdownloading: 'Wird heruntergeladen…',\n\tdownloadFailed: 'Download fehlgeschlagen',\n\tfilesMadeOnDownload: 'Wird beim Herunterladen erstellt',\n\tdownload: 'Herunterladen',\n\tmakingFiles: 'Dateien werden erstellt',\n\tfilesMadeIn: 'Erstellt in {seconds} s',\n\tnoFilesForInputs: 'Für diese Eingaben gibt es nichts herunterzuladen.',\n\ttryAgain: 'Erneut versuchen',\n\tcancel: 'Abbrechen',\n\tcopy: 'Kopieren',\n\tcopied: 'Kopiert!',\n\tchartReceiving: 'Diagrammdaten werden empfangen…',\n\tchartRenderFailed: 'Diagramm konnte nicht dargestellt werden',\n\tdownloadChartImage: 'Diagramm als Bild herunterladen',\n\tfullscreenUnavailable: 'Vollbild nicht verfügbar: {error}',\n\texitFullscreenFailed: 'Vollbild konnte nicht beendet werden: {error}',\n\n\timageViewer: 'Bildbetrachter',\n\timageLoading: 'Bild wird geladen…',\n\timageUnsupported: 'Bildformat nicht unterstützt: {ext}. Unterstützt: {formats}',\n\timageUnknownFormat: '(unbekannt)',\n\timageDecodeFailed: '{file} konnte nicht gelesen werden',\n\tpreviousImage: 'Vorheriges Bild',\n\tnextImage: 'Nächstes Bild',\n\tzoomHint: 'Zum Zoomen Strg oder ⌘ halten und scrollen',\n\tzoomIn: 'Vergrössern',\n\tzoomOut: 'Verkleinern',\n\tzoomFit: 'Einpassen',\n\tzoomActual: 'Originalgrösse',\n\tdownloadImage: 'Bild herunterladen'\n};\n\nexport const VIEWER_MESSAGES: Record<Locale, ViewerMessages> = { en, de };\n\nexport const DEFAULT_LOCALE: Locale = 'en';\n\n/** Resolve a catalog for a locale, falling back to English for unknown locales. */\nexport function messagesFor(locale: Locale | undefined): ViewerMessages {\n\treturn VIEWER_MESSAGES[locale ?? DEFAULT_LOCALE] ?? VIEWER_MESSAGES[DEFAULT_LOCALE];\n}\n\n/** Layers a host's partial overrides over a full catalog. An `undefined` entry keeps the base string. */\nexport function withOverrides(\n\tbase: ViewerMessages,\n\toverrides: Partial<ViewerMessages> | undefined\n): ViewerMessages {\n\tif (!overrides) return base;\n\tconst merged = { ...base };\n\tfor (const [key, value] of Object.entries(overrides) as [keyof ViewerMessages, string][]) {\n\t\tif (value !== undefined) merged[key] = value;\n\t}\n\treturn merged;\n}\n\n/** Fills each `{name}` placeholder from `vars`; an unknown placeholder is left as written. */\nexport function formatMessage(template: string, vars: Record<string, string | number>): string {\n\treturn template.replace(/\\{(\\w+)\\}/g, (placeholder, name: string) =>\n\t\tname in vars ? String(vars[name]) : placeholder\n\t);\n}\n\n/** Picks the singular or plural form for `count` and fills its `{count}`. */\nexport function formatCount(count: number, one: string, other: string): string {\n\treturn formatMessage(count === 1 ? one : other, { count });\n}\n","import { getContext, setContext } from 'svelte';\nimport {\n\ttype Locale,\n\ttype ViewerMessages,\n\tmessagesFor,\n\twithOverrides,\n\tDEFAULT_LOCALE\n} from './messages';\n\n// Carries the UI locale down to the viewer and its panels without threading a\n// `lang` prop through every layer.\n//\n// Resolution order for any consuming component:\n// explicit `lang` prop → nearest locale context → English default\n// and the strings are that locale's catalog with any `messages` overrides on top.\n//\n// Two ways to provide it:\n// - Standalone: <Viewer lang=\"de\" /> — Viewer provides the context itself.\n// - In an app: call setLocaleContext(() => app.locale) once at the root; the\n// viewer (and anything else) reads it.\n\nconst LOCALE_CONTEXT_KEY = Symbol('viewer-locale-context');\n\nexport interface LocaleContext {\n\treadonly locale: Locale;\n\treadonly messages: ViewerMessages;\n}\n\n/**\n * Provide the locale to descendants. Pass getters, not values: they are re-read on every\n * consumer render, so a reactive source (a `$state`, the app's Paraglide locale) switches\n * the language live. `getOverrides` replaces individual strings of the resolved catalog.\n */\nexport function setLocaleContext(\n\tgetLocale: () => Locale | undefined,\n\tgetOverrides?: () => Partial<ViewerMessages> | undefined\n): void {\n\tconst ctx: LocaleContext = {\n\t\tget locale() {\n\t\t\treturn getLocale() ?? DEFAULT_LOCALE;\n\t\t},\n\t\tget messages() {\n\t\t\treturn withOverrides(messagesFor(getLocale()), getOverrides?.());\n\t\t}\n\t};\n\tsetContext(LOCALE_CONTEXT_KEY, ctx);\n}\n\n/**\n * Re-provides the nearest context for a component that takes its own `lang`/`messages` props.\n * Without `lang`, or with the inherited locale, the subtree keeps the overrides an outer provider\n * applied; a different `lang` starts from that locale's catalog, since those overrides were\n * written for another language.\n */\nexport function layerLocaleContext(\n\tgetLang: () => Locale | undefined,\n\tgetOverrides?: () => Partial<ViewerMessages> | undefined\n): LocaleContext {\n\tconst outer = getLocaleContext();\n\tconst ctx: LocaleContext = {\n\t\tget locale() {\n\t\t\treturn getLang() ?? outer.locale;\n\t\t},\n\t\tget messages() {\n\t\t\tconst lang = getLang();\n\t\t\tconst base = lang === undefined || lang === outer.locale ? outer.messages : messagesFor(lang);\n\t\t\treturn withOverrides(base, getOverrides?.());\n\t\t}\n\t};\n\tsetContext(LOCALE_CONTEXT_KEY, ctx);\n\treturn ctx;\n}\n\n/**\n * Falls back to an English-only context when no provider exists (a primitive used in\n * isolation), so consumers never need a null check.\n */\nexport function getLocaleContext(): LocaleContext {\n\treturn (\n\t\tgetContext<LocaleContext | undefined>(LOCALE_CONTEXT_KEY) ?? {\n\t\t\tget locale() {\n\t\t\t\treturn DEFAULT_LOCALE;\n\t\t\t},\n\t\t\tget messages() {\n\t\t\t\treturn messagesFor(DEFAULT_LOCALE);\n\t\t\t}\n\t\t}\n\t);\n}\n"],"mappings":";;AA0rBA,IAAa,kBAAkD;CAAE;EA3ahE,WAAW;EACX,sBAAsB;EACtB,qBAAqB;EACrB,WAAW;EACX,OAAO;EACP,SAAS;EACT,MAAM;EACN,SAAS;EACT,OAAO;EACP,cAAc;EACd,YAAY;EACZ,YAAY;EACZ,gBAAgB;EAEhB,SAAS;EACT,WAAW;EACX,WAAW;EACX,UAAU;EACV,UAAU;EACV,YAAY;EACZ,SAAS;EAET,eAAe;EACf,YAAY;EACZ,cAAc;EACd,WAAW;EACX,WAAW;EACX,YAAY;EACZ,UAAU;EACV,aAAa;EACb,eAAe;EAEf,eAAe;EACf,aAAa;EACb,aAAa;EACb,eAAe;EACf,WAAW;EACX,aAAa;EACb,WAAW;EACX,WAAW;EACX,YAAY;EACZ,YAAY;EACZ,WAAW;EACX,cAAc;EAEd,oBAAoB;EACpB,YAAY;EAEZ,eAAe;EACf,cAAc;EACd,mBAAmB;EACnB,oBAAoB;EACpB,0BAA0B;EAC1B,sBAAsB;EACtB,sBAAsB;EACtB,oBAAoB;EACpB,sBAAsB;EACtB,sBAAsB;EACt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ACd,MAAM,OAAO,QAAA;GAEb,OAAO,cADM,SAAS,KAAA,KAAa,SAAS,MAAM,SAAS,MAAM,WAAW,YAAY,IAAI,GACjE,eAAA,CAAA;EAC5B;;CAED,WAAW,oBAAoB,GAAG;CAClC,OAAO;AACR;;;;;AAMA,SAAgB,mBAAkC;CACjD,OACC,WAAsC,kBAAkB,KAAA;EACvD,IAAI,SAAS;GACZ,OAAA;EACD;EACA,IAAI,WAAW;GACd,OAAO,YAAA,IAA0B;EAClC;;AAGH"}
@@ -1,4 +1,4 @@
1
- // ../solve/dist/outcome-DNrffAXp.js
1
+ // ../solve/dist/outcome-D28FgvFK.js
2
2
  /**
3
3
  * The solve contract — what a solve returns and what a caller supplies to run one.
4
4
  *
@@ -105,7 +105,7 @@ function decodeDiagnostic(entry) {
105
105
  ...d.isGate === true ? { isGate: true } : {}
106
106
  };
107
107
  }
108
- function normalizeOutcome(entries, blocked, aborted) {
108
+ function normalizeOutcome(entries, blocked, aborted, deferred) {
109
109
  const seen = /* @__PURE__ */ new Set();
110
110
  const diagnostics = [];
111
111
  for (const entry of entries) {
@@ -119,7 +119,8 @@ function normalizeOutcome(entries, blocked, aborted) {
119
119
  return {
120
120
  diagnostics,
121
121
  blocked: blocked || aborted,
122
- aborted
122
+ aborted,
123
+ ...deferred && deferred.length > 0 ? { deferred } : {}
123
124
  };
124
125
  }
125
126
  /**
@@ -130,11 +131,12 @@ function normalizeOutcome(entries, blocked, aborted) {
130
131
  */
131
132
  function decodeOutcome(wire) {
132
133
  if (!wire || typeof wire !== "object") return null;
133
- const { diagnostics, blocked, aborted } = wire;
134
+ const { diagnostics, blocked, aborted, deferred } = wire;
134
135
  const hasList = Array.isArray(diagnostics);
135
136
  if (!hasList && blocked === void 0 && aborted === void 0) return null;
136
137
  const isTrue = (flag) => flag === true || flag === "true";
137
- return normalizeOutcome(hasList ? diagnostics : [], isTrue(blocked), isTrue(aborted));
138
+ const deferredIds = Array.isArray(deferred) ? deferred.filter((id) => typeof id === "string" && id !== "") : void 0;
139
+ return normalizeOutcome(hasList ? diagnostics : [], isTrue(blocked), isTrue(aborted), deferredIds);
138
140
  }
139
141
  /** The legacy verdict, read from Compute's flattened `errors`/`warnings` and their markers. */
140
142
  function outcomeFromComputeMessages(errors, warnings) {
@@ -159,9 +161,10 @@ function finalizeResult(partial, outcome) {
159
161
  diagnostics: outcome.diagnostics,
160
162
  blocked: outcome.blocked,
161
163
  aborted: outcome.aborted,
164
+ ...outcome.deferred && !rejected ? { deferred: outcome.deferred } : {},
162
165
  ...partial.source !== void 0 && !rejected ? { source: partial.source } : {}
163
166
  };
164
167
  }
165
168
  export { outcomeFromComputeMessages as i, decodeOutcome as n, finalizeResult as r, decodeDiagnostic as t };
166
169
 
167
- //# sourceMappingURL=outcome-DNrffAXp.js.map
170
+ //# sourceMappingURL=outcome-D28FgvFK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outcome-D28FgvFK.js","names":[],"sources":["../../../../solve/dist/outcome-D28FgvFK.js"],"sourcesContent":["// src/shared/solve-fn.ts\n/**\n* The solve contract — what a solve returns and what a caller supplies to run one.\n*\n* Lives in `shared/` because both halves of the package speak it: `client/` calls a `SolveFn` and\n* stores its `SolveResult`; `server/` produces the payload one is built from.\n*/\n/**\n* Marker the Grasshopper Message component prepends to a blocking error.\n*\n* Rhino.Compute flattens runtime messages to plain strings with no component attribution, so\n* this is the only way that path can tell a deliberate block from any other solve error. The\n* local WebSocket path carries `isGate` structurally and does not need it — but the component\n* writes the marker unconditionally, because the same definition runs on both.\n*\n* Changing this string breaks blocking on deployed Selva for every already-published\n* definition, since the text is baked into the .gh file's solve output, not the plugin.\n*/\nconst SOLVE_BLOCKED_MARKER = \"[Selva:blocked]\";\n/**\n* Marker the Message component prepends to a remark or warning — the non-blocking levels.\n*\n* Same reason as `SOLVE_BLOCKED_MARKER`: on Rhino.Compute nothing structural survives, and the\n* UI has to tell a message the author chose to write from an incidental Grasshopper warning.\n* Definitions saved before this existed lack it, so the reader falls back to the component name.\n*/\nconst SOLVE_AUTHORED_MARKER = \"[Selva:msg]\";\n/**\n* Marker for an authored message whose author chose Notify = Log.\n*\n* Still theirs — it keeps its attribution and its place in the message list — but it does not\n* interrupt. Errors never carry it: their result is withheld, so they always interrupt.\n*/\nconst SOLVE_LOG_ONLY_MARKER = \"[Selva:log]\";\n// src/shared/compute-diagnostics.ts\n/**\n* Compute's per-message attribution suffix. Anchored to the end and requiring the parenthesised\n* GUID, so an author who writes `component \"x\"` mid-sentence keeps their text intact.\n*/\nconst ATTRIBUTION = /:\\s*component\\s+\"([^\"]*)\"\\s*\\(([0-9a-fA-F-]{36}|\\.\\.\\.)\\)\\s*$/;\n/** The Selva Message component's own name, as `LogRuntimeMessages` reports it. */\nconst MESSAGE_COMPONENT_NAME = \"Message\";\n/**\n* Splits one Compute message string into the author's text and its attribution.\n*\n* Leaves the text alone when the suffix is absent — an exception thrown by a script component\n* has no attribution and must not be truncated on a guess.\n*/\nfunction parseComputeMessage(raw) {\n\tconst blocked = raw.includes(SOLVE_BLOCKED_MARKER);\n\tconst logOnly = !blocked && raw.includes(\"[Selva:log]\");\n\tconst authored = blocked || logOnly || raw.includes(\"[Selva:msg]\");\n\tlet message = raw;\n\tlet source;\n\tconst attribution = ATTRIBUTION.exec(message);\n\tif (attribution) {\n\t\tsource = attribution[1] || void 0;\n\t\tmessage = message.slice(0, attribution.index);\n\t}\n\tif (authored) message = message.replace(SOLVE_BLOCKED_MARKER, \"\").replace(SOLVE_AUTHORED_MARKER, \"\").replace(SOLVE_LOG_ONLY_MARKER, \"\").replace(/^\\s*\\d+\\.\\s*Solution exception:\\s*/, \"\");\n\treturn {\n\t\tmessage: message.replace(/\\s{2,}/g, \" \").trim(),\n\t\tsource,\n\t\tblocked,\n\t\tauthored,\n\t\tlogOnly\n\t};\n}\n/**\n* Rebuilds structured diagnostics from Compute's `errors`/`warnings` arrays.\n*\n* `isGate` comes from the marker the component writes. The component-name fallback is for\n* definitions saved before the non-blocking marker existed; `obj.Name` is the component's type\n* name, not its nickname, so renaming one on the canvas cannot change how it behaves.\n*/\nfunction parseComputeDiagnostics(errors, warnings) {\n\tconst build = (raw, level) => {\n\t\tconst { message, source, authored, logOnly } = parseComputeMessage(raw);\n\t\tconst isGate = (authored || source === MESSAGE_COMPONENT_NAME) && !logOnly;\n\t\treturn {\n\t\t\tlevel,\n\t\t\tmessage,\n\t\t\t...source ? { source } : {},\n\t\t\t...isGate ? { isGate } : {}\n\t\t};\n\t};\n\treturn [...errors.map((raw) => build(raw, \"error\")), ...warnings.map((raw) => build(raw, \"warning\"))];\n}\n// src/shared/outcome.ts\nfunction isLevel(value) {\n\treturn value === \"error\" || value === \"warning\" || value === \"remark\";\n}\n/**\n* One wire diagnostic, normalized: an unknown level reads as a remark, text is trimmed, and\n* `source`/`isGate` are omitted rather than null or false. Null when it carries no message.\n*/\nfunction decodeDiagnostic(entry) {\n\tif (!entry || typeof entry !== \"object\") return null;\n\tconst d = entry;\n\tconst message = typeof d.message === \"string\" ? d.message.trim() : \"\";\n\tif (!message) return null;\n\tconst source = typeof d.source === \"string\" && d.source ? d.source : void 0;\n\treturn {\n\t\tlevel: isLevel(d.level) ? d.level : \"remark\",\n\t\tmessage,\n\t\t...source ? { source } : {},\n\t\t...d.isGate === true ? { isGate: true } : {}\n\t};\n}\nfunction normalizeOutcome(entries, blocked, aborted, deferred) {\n\tconst seen = /* @__PURE__ */ new Set();\n\tconst diagnostics = [];\n\tfor (const entry of entries) {\n\t\tconst d = decodeDiagnostic(entry);\n\t\tif (!d) continue;\n\t\tconst key = `${d.level}\\u0000${d.message}\\u0000${d.source ?? \"\"}\\u0000${d.isGate === true}`;\n\t\tif (seen.has(key)) continue;\n\t\tseen.add(key);\n\t\tdiagnostics.push(d);\n\t}\n\treturn {\n\t\tdiagnostics,\n\t\tblocked: blocked || aborted,\n\t\taborted,\n\t\t...deferred && deferred.length > 0 ? { deferred } : {}\n\t};\n}\n/**\n* Normalizes a wire outcome with `decodeDiagnostic`, dropping exact repeats, so the same verdict\n* decodes to the same object from either transport. Null when `wire` is not an outcome at all;\n* the caller then falls back. A verdict without a diagnostic list still counts: reading a refusal\n* as \"no outcome\" would let the solve through.\n*/\nfunction decodeOutcome(wire) {\n\tif (!wire || typeof wire !== \"object\") return null;\n\tconst { diagnostics, blocked, aborted, deferred } = wire;\n\tconst hasList = Array.isArray(diagnostics);\n\tif (!hasList && blocked === void 0 && aborted === void 0) return null;\n\tconst isTrue = (flag) => flag === true || flag === \"true\";\n\tconst deferredIds = Array.isArray(deferred) ? deferred.filter((id) => typeof id === \"string\" && id !== \"\") : void 0;\n\treturn normalizeOutcome(hasList ? diagnostics : [], isTrue(blocked), isTrue(aborted), deferredIds);\n}\n/** The legacy verdict, read from Compute's flattened `errors`/`warnings` and their markers. */\nfunction outcomeFromComputeMessages(errors, warnings) {\n\tconst strings = (list) => list.filter((m) => typeof m === \"string\");\n\tconst errorText = strings(errors);\n\treturn normalizeOutcome(parseComputeDiagnostics(errorText, strings(warnings)), errorText.some((e) => e.includes(SOLVE_BLOCKED_MARKER)), false);\n}\n/**\n* Builds the result a driver reports. A blocked or aborted outcome is \"no result\" whatever the\n* transport sent along: no outputs, no `source` (it holds the withheld outputs), and an empty mesh\n* list so the viewer clears. `errors` and `warnings` are derived from the diagnostics for hosts\n* that only want text.\n*/\nfunction finalizeResult(partial, outcome) {\n\tconst rejected = outcome.blocked || outcome.aborted;\n\tconst meshes = rejected ? [] : partial.meshes;\n\treturn {\n\t\toutputs: rejected ? {} : partial.outputs,\n\t\t...meshes !== void 0 ? { meshes } : {},\n\t\terrors: outcome.diagnostics.filter((d) => d.level === \"error\").map((d) => d.message),\n\t\twarnings: outcome.diagnostics.filter((d) => d.level === \"warning\").map((d) => d.message),\n\t\tdiagnostics: outcome.diagnostics,\n\t\tblocked: outcome.blocked,\n\t\taborted: outcome.aborted,\n\t\t...outcome.deferred && !rejected ? { deferred: outcome.deferred } : {},\n\t\t...partial.source !== void 0 && !rejected ? { source: partial.source } :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
2
  name: "@selvajs/selva",
3
- version: "4.20.1-beta.4",
3
+ version: "4.21.0-beta.6",
4
4
  description: "Selva — self-contained Grasshopper-driven web app. Install, configure via .env, deploy.",
5
5
  license: "MIT",
6
6
  author: "VektorNode",
@@ -1 +1 @@
1
- {"version":3,"file":"package.js","names":[],"sources":["../../../package.json"],"sourcesContent":["{\n\t\"name\": \"@selvajs/selva\",\n\t\"version\": \"4.20.1-beta.4\",\n\t\"description\": \"Selva — self-contained Grasshopper-driven web app. Install, configure via .env, deploy.\",\n\t\"license\": \"MIT\",\n\t\"author\": \"VektorNode\",\n\t\"homepage\": \"https://selva.dev\",\n\t\"bugs\": \"https://github.com/VektorNode/selva/issues\",\n\t\"keywords\": [\n\t\t\"grasshopper\",\n\t\t\"rhino\",\n\t\t\"rhino-compute\",\n\t\t\"parametric-design\",\n\t\t\"web-app\",\n\t\t\"sveltekit\"\n\t],\n\t\"publishConfig\": {\n\t\t\"access\": \"public\"\n\t},\n\t\"repository\": {\n\t\t\"type\": \"git\",\n\t\t\"url\": \"git+https://github.com/VektorNode/selva.git\",\n\t\t\"directory\": \"packages/selva\"\n\t},\n\t\"type\": \"module\",\n\t\"main\": \"./build/index.js\",\n\t\"files\": [\n\t\t\"build\",\n\t\t\"templates\"\n\t],\n\t\"engines\": {\n\t\t\"node\": \">=24.0.0\"\n\t},\n\t\"scripts\": {\n\t\t\"dev\": \"vite dev\",\n\t\t\"dev:lan\": \"vite dev --host\",\n\t\t\"build\": \"rimraf build && vite build && node ./scripts/generate-templates.js && node ./scripts/write-runtime-meta.js\",\n\t\t\"preview\": \"vite preview\",\n\t\t\"start\": \"node build/index.js\",\n\t\t\"clean\": \"rimraf build templates\",\n\t\t\"prepare\": \"svelte-kit sync || echo ''\",\n\t\t\"check\": \"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json\",\n\t\t\"test\": \"vitest run\",\n\t\t\"test:watch\": \"vitest\",\n\t\t\"openapi:generate\": \"node scripts/generate-openapi.js\",\n\t\t\"test:e2e\": \"playwright test\",\n\t\t\"lint\": \"eslint .\",\n\t\t\"lint:types\": \"eslint . --config eslint.typed.config.js\",\n\t\t\"generate:cli-config\": \"node scripts/generate-cli-config.js\"\n\t},\n\t\"dependencies\": {\n\t\t\"@lucide/svelte\": \"catalog:\",\n\t\t\"@supabase/supabase-js\": \"catalog:\",\n\t\t\"@sveltejs/kit\": \"catalog:\",\n\t\t\"bits-ui\": \"catalog:\",\n\t\t\"clsx\": \"catalog:\",\n\t\t\"mode-watcher\": \"catalog:\",\n\t\t\"nodemailer\": \"catalog:\",\n\t\t\"pino\": \"^10.4.0\",\n\t\t\"rhino3dm\": \"catalog:\",\n\t\t\"sharp\": \"catalog:\",\n\t\t\"tailwind-merge\": \"catalog:\",\n\t\t\"tailwind-variants\": \"catalog:\",\n\t\t\"three\": \"catalog:\",\n\t\t\"zod\": \"catalog:\"\n\t},\n\t\"optionalDependencies\": {\n\t\t\"@sentry/node\": \"^11.10.0\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@playwright/test\": \"catalog:\",\n\t\t\"@selvajs/compute\": \"workspace:*\",\n\t\t\"@selvajs/config\": \"workspace:*\",\n\t\t\"@selvajs/header-auth-provider\": \"workspace:*\",\n\t\t\"@selvajs/local-provider\": \"workspace:*\",\n\t\t\"@selvajs/mcp\": \"workspace:*\",\n\t\t\"@selvajs/notifications\": \"workspace:*\",\n\t\t\"@selvajs/platform\": \"workspace:*\",\n\t\t\"@selvajs/schemas\": \"workspace:*\",\n\t\t\"@selvajs/server\": \"workspace:*\",\n\t\t\"@selvajs/solve\": \"workspace:*\",\n\t\t\"@selvajs/supabase-provider\": \"workspace:*\",\n\t\t\"@selvajs/ui\": \"workspace:*\",\n\t\t\"@selvajs/visualization\": \"workspace:*\",\n\t\t\"@sveltejs/adapter-node\": \"catalog:\",\n\t\t\"@types/nodemailer\": \"catalog:\",\n\t\t\"@types/three\": \"catalog:\",\n\t\t\"rimraf\": \"catalog:\",\n\t\t\"tw-animate-css\": \"catalog:\",\n\t\t\"vitest\": \"catalog:\"\n\t},\n\t\"imports\": {\n\t\t\"#lib/*\": \"./src/lib/*\"\n\t}\n}\n"],"mappings":""}
1
+ {"version":3,"file":"package.js","names":[],"sources":["../../../package.json"],"sourcesContent":["{\n\t\"name\": \"@selvajs/selva\",\n\t\"version\": \"4.21.0-beta.6\",\n\t\"description\": \"Selva — self-contained Grasshopper-driven web app. Install, configure via .env, deploy.\",\n\t\"license\": \"MIT\",\n\t\"author\": \"VektorNode\",\n\t\"homepage\": \"https://selva.dev\",\n\t\"bugs\": \"https://github.com/VektorNode/selva/issues\",\n\t\"keywords\": [\n\t\t\"grasshopper\",\n\t\t\"rhino\",\n\t\t\"rhino-compute\",\n\t\t\"parametric-design\",\n\t\t\"web-app\",\n\t\t\"sveltekit\"\n\t],\n\t\"publishConfig\": {\n\t\t\"access\": \"public\"\n\t},\n\t\"repository\": {\n\t\t\"type\": \"git\",\n\t\t\"url\": \"git+https://github.com/VektorNode/selva.git\",\n\t\t\"directory\": \"packages/selva\"\n\t},\n\t\"type\": \"module\",\n\t\"main\": \"./build/index.js\",\n\t\"files\": [\n\t\t\"build\",\n\t\t\"templates\"\n\t],\n\t\"engines\": {\n\t\t\"node\": \">=24.0.0\"\n\t},\n\t\"scripts\": {\n\t\t\"dev\": \"vite dev\",\n\t\t\"dev:lan\": \"vite dev --host\",\n\t\t\"build\": \"rimraf build && vite build && node ./scripts/generate-templates.js && node ./scripts/write-runtime-meta.js\",\n\t\t\"preview\": \"vite preview\",\n\t\t\"start\": \"node build/index.js\",\n\t\t\"clean\": \"rimraf build templates\",\n\t\t\"prepare\": \"svelte-kit sync || echo ''\",\n\t\t\"check\": \"svelte-kit sync && svelte-check --tsconfig ./tsconfig.json\",\n\t\t\"test\": \"vitest run\",\n\t\t\"test:watch\": \"vitest\",\n\t\t\"openapi:generate\": \"node scripts/generate-openapi.js\",\n\t\t\"test:e2e\": \"playwright test\",\n\t\t\"lint\": \"eslint .\",\n\t\t\"lint:types\": \"eslint . --config eslint.typed.config.js\",\n\t\t\"generate:cli-config\": \"node scripts/generate-cli-config.js\"\n\t},\n\t\"dependencies\": {\n\t\t\"@lucide/svelte\": \"catalog:\",\n\t\t\"@supabase/supabase-js\": \"catalog:\",\n\t\t\"@sveltejs/kit\": \"catalog:\",\n\t\t\"bits-ui\": \"catalog:\",\n\t\t\"clsx\": \"catalog:\",\n\t\t\"mode-watcher\": \"catalog:\",\n\t\t\"nodemailer\": \"catalog:\",\n\t\t\"pino\": \"^10.4.0\",\n\t\t\"rhino3dm\": \"catalog:\",\n\t\t\"sharp\": \"catalog:\",\n\t\t\"tailwind-merge\": \"catalog:\",\n\t\t\"tailwind-variants\": \"catalog:\",\n\t\t\"three\": \"catalog:\",\n\t\t\"zod\": \"catalog:\"\n\t},\n\t\"optionalDependencies\": {\n\t\t\"@sentry/node\": \"^11.10.0\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@playwright/test\": \"catalog:\",\n\t\t\"@selvajs/compute\": \"workspace:*\",\n\t\t\"@selvajs/config\": \"workspace:*\",\n\t\t\"@selvajs/header-auth-provider\": \"workspace:*\",\n\t\t\"@selvajs/local-provider\": \"workspace:*\",\n\t\t\"@selvajs/mcp\": \"workspace:*\",\n\t\t\"@selvajs/notifications\": \"workspace:*\",\n\t\t\"@selvajs/platform\": \"workspace:*\",\n\t\t\"@selvajs/schemas\": \"workspace:*\",\n\t\t\"@selvajs/server\": \"workspace:*\",\n\t\t\"@selvajs/solve\": \"workspace:*\",\n\t\t\"@selvajs/supabase-provider\": \"workspace:*\",\n\t\t\"@selvajs/ui\": \"workspace:*\",\n\t\t\"@selvajs/visualization\": \"workspace:*\",\n\t\t\"@sveltejs/adapter-node\": \"catalog:\",\n\t\t\"@types/nodemailer\": \"catalog:\",\n\t\t\"@types/three\": \"catalog:\",\n\t\t\"rimraf\": \"catalog:\",\n\t\t\"tw-animate-css\": \"catalog:\",\n\t\t\"vitest\": \"catalog:\"\n\t},\n\t\"imports\": {\n\t\t\"#lib/*\": \"./src/lib/*\"\n\t}\n}\n"],"mappings":""}
@@ -8,7 +8,7 @@ import { t as ALL_PLATFORM_PERMISSIONS } from "./types3.js";
8
8
  import { d as encodeOffsetCursor, l as clampPageLimit, u as decodeOffsetCursor } from "./visibility.js";
9
9
  import { n as readBool } from "./limits.js";
10
10
  import { a as createLogger, i as ConsoleLogger, n as renderThrown } from "./definitions.js";
11
- import { c as ComputeError, i as TreeBuilder, l as ErrorCodes, m as isDefinitionRef, n as GrasshopperClient, p as enableDebugLogging, s as stableStringify } from "./grasshopper.js";
11
+ import { c as withSolveMode, h as isDefinitionRef, i as TreeBuilder, l as ComputeError, m as enableDebugLogging, n as GrasshopperClient, s as stableStringify, u as ErrorCodes } from "./grasshopper.js";
12
12
  import { i as getInputItems, n as serverSourcedInputIds, t as raceAbort } from "./abort-Bfrdupaj.js";
13
13
  import { createRequire } from "node:module";
14
14
  import * as crypto from "node:crypto";
@@ -33909,6 +33909,40 @@ var unlimitedFetch = ((input, init) => (0, import_undici.fetch)(input, {
33909
33909
  function fetchForDeadline(deadlineMs) {
33910
33910
  return deadlineMs >= UNDICI_DEFAULT_LIMIT_MS ? unlimitedFetch : void 0;
33911
33911
  }
33912
+ /**
33913
+ * False for a header carrying only the proxy's `affinity`, from a child that sends no timing:
33914
+ * read as zeros, it would put the whole solve on `compute_link`.
33915
+ */
33916
+ function reportsTiming(rhino) {
33917
+ return rhino.cacheHit === true || rhino.decode !== void 0 || rhino.solve !== void 0 || rhino.encode !== void 0;
33918
+ }
33919
+ /**
33920
+ * `total` is the server's headers-to-out wall time, so browser `ttfb − total`
33921
+ * ≈ network+send latency. When the compute server reports its own timing
33922
+ * (VektorNode fork), `rhino_*` is time on the compute server and `compute_link`
33923
+ * is everything between it (network + queue wait). `rhino_cache` is 1 when the
33924
+ * compute server answered from its own result cache.
33925
+ */
33926
+ function buildServerTiming(parts) {
33927
+ let header = `load;dur=${parts.defLoadMs.toFixed(1)}, tree;dur=${parts.treeBuildMs.toFixed(1)}, solve;dur=${parts.solveMs.toFixed(1)}, serialize;dur=${parts.serializeMs.toFixed(1)}, gzip;dur=${parts.gzipMs.toFixed(1)}, total;dur=${parts.serverTotalMs.toFixed(1)}`;
33928
+ const rhino = parts.rhino;
33929
+ if (rhino && reportsTiming(rhino)) {
33930
+ const decode = rhino.decode ?? 0;
33931
+ const solve = rhino.solve ?? 0;
33932
+ const encode = rhino.encode ?? 0;
33933
+ const computeLinkMs = Math.max(0, parts.solveMs - decode - solve - encode);
33934
+ header += `, rhino_decode;dur=${decode.toFixed(1)}, rhino_solve;dur=${solve.toFixed(1)}, rhino_encode;dur=${encode.toFixed(1)}, compute_link;dur=${computeLinkMs.toFixed(1)}, rhino_cache;dur=${rhino.cacheHit ? 1 : 0}`;
33935
+ if (rhino.gh !== void 0) header += `, rhino_gh;dur=${rhino.gh.toFixed(1)}`;
33936
+ if (rhino.recomputed) header += `, rhino_recomputed;desc="${rhino.recomputed.ran}/${rhino.recomputed.total}"`;
33937
+ }
33938
+ if (rhino?.affinity) header += `, rhino_affinity;desc=${rhino.affinity}`;
33939
+ for (const [label, ms] of parts.prepMarks) header += `, p_${label};dur=${ms.toFixed(1)}`;
33940
+ const settle = parts.settle;
33941
+ header += `, selva_cache;dur=${settle.fromCache ? 1 : 0}`;
33942
+ if (settle.definitionReuploaded !== void 0) header += `, def_reupload;dur=${settle.definitionReuploaded ? 1 : 0}`;
33943
+ if (parts.defBytes) header += `, def_bytes;desc=${parts.defBytes}`;
33944
+ return header;
33945
+ }
33912
33946
  /** Rhino.Compute's own default `--timeout`, for a server that can't report its own. */
33913
33947
  var DEFAULT_SOLVE_DEADLINE_MS = 1e5;
33914
33948
  /**
@@ -33996,7 +34030,7 @@ function createClientCache(config) {
33996
34030
  draining.delete(entry);
33997
34031
  entry.scheduler.dispose();
33998
34032
  }
33999
- async function build(server, definitionGuid) {
34033
+ async function build(server) {
34000
34034
  const debugVerbose = config.debug === "verbose";
34001
34035
  const longFetch = fetchForDeadline(MAX_SOLVE_DEADLINE_MS);
34002
34036
  const clientConfig = {
@@ -34008,8 +34042,13 @@ function createClientCache(config) {
34008
34042
  ...longFetch && { fetch: longFetch }
34009
34043
  };
34010
34044
  if (config.debug) clientConfig.onServerTiming = (t) => {
34045
+ const routed = t.affinity ? ` | session ${t.affinity}` : "";
34011
34046
  if (t.cacheHit) {
34012
- debugLog("[Compute/rhino-cache] solve-cache (cachesolve): HIT (cached result, solve skipped)");
34047
+ debugLog(`[Compute/rhino-cache] solve-cache (cachesolve): HIT (cached result, solve skipped)${routed}`);
34048
+ return;
34049
+ }
34050
+ if (!reportsTiming(t)) {
34051
+ debugLog(`[Compute/rhino-cache] no solve timing${routed}`);
34013
34052
  return;
34014
34053
  }
34015
34054
  const decode = t.decode ?? 0;
@@ -34018,9 +34057,8 @@ function createClientCache(config) {
34018
34057
  const defCache = decode <= 1 ? "HIT (definition reused, no re-upload/parse)" : "miss (full parse)";
34019
34058
  const solveCache = config.cachesolve ? "miss (solved fresh)" : "off";
34020
34059
  const ran = t.recomputed ? ` | ran ${t.recomputed.ran}/${t.recomputed.total} objects` : "";
34021
- debugLog(`[Compute/rhino-cache] decode=${decode}ms solve=${solve}ms encode=${encode}ms | definition-cache: ${defCache} | solve-cache (cachesolve): ${solveCache}${ran}`);
34060
+ debugLog(`[Compute/rhino-cache] decode=${decode}ms solve=${solve}ms encode=${encode}ms | definition-cache: ${defCache} | solve-cache (cachesolve): ${solveCache}${ran}${routed}`);
34022
34061
  };
34023
- if (definitionGuid) clientConfig.headers = { "X-Selva-Definition": definitionGuid };
34024
34062
  const client = await GrasshopperClient.create(clientConfig);
34025
34063
  const probe = createConcurrencyProbe(client, debugLog);
34026
34064
  const readReported = async () => await Promise.resolve(client.serverStats?.getLimits?.()).catch(() => null) ?? null;
@@ -34087,14 +34125,14 @@ function createClientCache(config) {
34087
34125
  retire(entry);
34088
34126
  }
34089
34127
  const self = {
34090
- async getClient(server, opts) {
34128
+ async getClient(server) {
34091
34129
  const key = server.id;
34092
34130
  const existing = cache.get(key);
34093
34131
  if (existing) {
34094
34132
  cache.delete(key);
34095
34133
  cache.set(key, existing);
34096
34134
  if (!cacheEnabled || await deploymentChecks.get(existing)?.() !== false) return existing;
34097
- return self.getClient(server, opts);
34135
+ return self.getClient(server);
34098
34136
  }
34099
34137
  const inFlight = pending.get(key);
34100
34138
  if (inFlight) return inFlight.promise;
@@ -34111,7 +34149,7 @@ function createClientCache(config) {
34111
34149
  const promise = (async () => {
34112
34150
  let entry;
34113
34151
  try {
34114
- entry = await build(server, opts?.definitionGuid);
34152
+ entry = await build(server);
34115
34153
  } catch (err) {
34116
34154
  if (!token.stale) failed.set(key, {
34117
34155
  error: err,
@@ -34432,32 +34470,6 @@ function createResponseEncoder(response, maxBytes) {
34432
34470
  };
34433
34471
  } };
34434
34472
  }
34435
- /**
34436
- * `total` is the server's headers-to-out wall time, so browser `ttfb − total`
34437
- * ≈ network+send latency. When the compute server reports its own timing
34438
- * (VektorNode fork), `rhino_*` is time on the compute server and `compute_link`
34439
- * is everything between it (network + queue wait). `rhino_cache` is 1 when the
34440
- * compute server answered from its own result cache.
34441
- */
34442
- function buildServerTiming(parts) {
34443
- let header = `load;dur=${parts.defLoadMs.toFixed(1)}, tree;dur=${parts.treeBuildMs.toFixed(1)}, solve;dur=${parts.solveMs.toFixed(1)}, serialize;dur=${parts.serializeMs.toFixed(1)}, gzip;dur=${parts.gzipMs.toFixed(1)}, total;dur=${parts.serverTotalMs.toFixed(1)}`;
34444
- const rhino = parts.rhino;
34445
- if (rhino) {
34446
- const decode = rhino.decode ?? 0;
34447
- const solve = rhino.solve ?? 0;
34448
- const encode = rhino.encode ?? 0;
34449
- const computeLinkMs = Math.max(0, parts.solveMs - decode - solve - encode);
34450
- header += `, rhino_decode;dur=${decode.toFixed(1)}, rhino_solve;dur=${solve.toFixed(1)}, rhino_encode;dur=${encode.toFixed(1)}, compute_link;dur=${computeLinkMs.toFixed(1)}, rhino_cache;dur=${rhino.cacheHit ? 1 : 0}`;
34451
- if (rhino.gh !== void 0) header += `, rhino_gh;dur=${rhino.gh.toFixed(1)}`;
34452
- if (rhino.recomputed) header += `, rhino_recomputed;desc="${rhino.recomputed.ran}/${rhino.recomputed.total}"`;
34453
- }
34454
- for (const [label, ms] of parts.prepMarks) header += `, p_${label};dur=${ms.toFixed(1)}`;
34455
- const settle = parts.settle;
34456
- header += `, selva_cache;dur=${settle.fromCache ? 1 : 0}`;
34457
- if (settle.definitionReuploaded !== void 0) header += `, def_reupload;dur=${settle.definitionReuploaded ? 1 : 0}`;
34458
- if (parts.defBytes) header += `, def_bytes;desc=${parts.defBytes}`;
34459
- return header;
34460
- }
34461
34473
  function createSolveCacheSingleFlight(options = {}) {
34462
34474
  const inflight = /* @__PURE__ */ new Map();
34463
34475
  function free(key, flight) {
@@ -34543,8 +34555,9 @@ function buildSolveInputTree(inputs, values) {
34543
34555
  }
34544
34556
  /**
34545
34557
  * Runs one solve against a warm scheduler and classifies how it ended: a solved response, or an
34546
- * expected failure as a value instead of a throw. This is the part single-flight shares, so
34547
- * nothing here depends on who is asking.
34558
+ * expected failure as a value instead of a throw. Single-flight shares this part, so its args come
34559
+ * from the caller that started the flight. Anything per caller must be in the coalesce key, or,
34560
+ * like `sessionId`, be harmless for the joiners to inherit.
34548
34561
  */
34549
34562
  function shed(durationMs, reason, message) {
34550
34563
  return {
@@ -34605,6 +34618,9 @@ async function runSolvePipeline(args) {
34605
34618
  const detail = await args.client.scheduler.solveDetailed(args.definitionSource, args.inputTree, {
34606
34619
  signal: args.signal,
34607
34620
  selvaevents: args.selvaEvents,
34621
+ sessionId: args.sessionId,
34622
+ solveMode: args.solveMode,
34623
+ headers: args.headers,
34608
34624
  onServerTiming: (t) => {
34609
34625
  rhino = t;
34610
34626
  }
@@ -34674,8 +34690,8 @@ var SolveEngine = class {
34674
34690
  this.byteCache = createDefinitionByteCache(this.limits.computeDefinitionCacheBytes);
34675
34691
  this.singleFlight = createSolveCacheSingleFlight({ onJoin: options.onSolveCoalesced });
34676
34692
  }
34677
- getClient(server, opts) {
34678
- return this.clientCache.getClient(server, opts);
34693
+ getClient(server) {
34694
+ return this.clientCache.getClient(server);
34679
34695
  }
34680
34696
  definitionRef(versionId, load) {
34681
34697
  return this.byteCache.getOrLoad(versionId, load);
@@ -34714,7 +34730,7 @@ var SolveEngine = class {
34714
34730
  };
34715
34731
  let client;
34716
34732
  try {
34717
- client = await this.clientCache.getClient(args.server, { definitionGuid: args.definitionGuid });
34733
+ client = await this.clientCache.getClient(args.server);
34718
34734
  } catch (error) {
34719
34735
  if (args.signal.aborted) return {
34720
34736
  kind: "client_abort",
@@ -34744,12 +34760,15 @@ var SolveEngine = class {
34744
34760
  }
34745
34761
  const treeBuildMs = performance.now() - treeBuildStart;
34746
34762
  const live = args.selvaEvents ? `:live:${args.selvaEvents.solveId}` : "";
34747
- const flight = await this.singleFlight.run(`${identity}:${args.server.id}:${this.clientGeneration(client)}:${stableStringify(inputTree)}${live}`, (signal) => runSolvePipeline({
34763
+ const flight = await this.singleFlight.run(`${identity}:${args.server.id}:${this.clientGeneration(client)}:${withSolveMode(stableStringify(inputTree), args.solveMode)}${live}`, (signal) => runSolvePipeline({
34748
34764
  definitionSource,
34749
34765
  inputTree,
34750
34766
  client,
34751
34767
  responseMaxBytes: this.limits.computeResponseMaxBytes,
34752
34768
  selvaEvents: args.selvaEvents,
34769
+ sessionId: args.sessionId,
34770
+ solveMode: args.solveMode,
34771
+ ...args.definitionGuid && { headers: { "X-Selva-Definition": args.definitionGuid } },
34753
34772
  signal
34754
34773
  }), args.signal);
34755
34774
  if (args.signal.aborted) return {