@almadar/shell-web 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/bundling.d.mts +18 -0
  2. package/bundling.mjs +28 -0
  3. package/dist/ArbitraryClassCompiler-CO_iASBn.d.ts +195 -0
  4. package/dist/AvlGlyph-EPJKFEO3.js +6 -0
  5. package/dist/AvlStateMachine-RKZIKNGC.js +9 -0
  6. package/dist/AvlTransitionDetail-63SD6GZF.js +11 -0
  7. package/dist/AvlTransitionExplainer-ZBTLOM3T.js +12 -0
  8. package/dist/BehaviorView-YS5G4GNB.js +11 -0
  9. package/dist/Canvas3DHost-BkZQB5l2.d.ts +552 -0
  10. package/dist/EventBusProvider-BFFHfN4O.d.ts +296 -0
  11. package/dist/FileTree-BCFnBEuQ.d.ts +254 -0
  12. package/dist/FlowCanvas-3JRMNJLV.css +1756 -0
  13. package/dist/FlowCanvas-AUMTWMNG.js +26 -0
  14. package/dist/GameAudioProvider-ceM_n0ey.d.ts +90 -0
  15. package/dist/KaTeX_AMS-Regular-CYEKBG2K.woff +0 -0
  16. package/dist/KaTeX_AMS-Regular-JKX5W2C4.ttf +0 -0
  17. package/dist/KaTeX_AMS-Regular-U6PRYMIZ.woff2 +0 -0
  18. package/dist/KaTeX_Caligraphic-Bold-5QL5CMTE.woff2 +0 -0
  19. package/dist/KaTeX_Caligraphic-Bold-WZ3QSGD3.woff +0 -0
  20. package/dist/KaTeX_Caligraphic-Bold-ZTS3R3HK.ttf +0 -0
  21. package/dist/KaTeX_Caligraphic-Regular-3LKEU76G.woff +0 -0
  22. package/dist/KaTeX_Caligraphic-Regular-A7XRTZ5Q.ttf +0 -0
  23. package/dist/KaTeX_Caligraphic-Regular-KX5MEWCF.woff2 +0 -0
  24. package/dist/KaTeX_Fraktur-Bold-2QVFK6NQ.woff2 +0 -0
  25. package/dist/KaTeX_Fraktur-Bold-T4SWXBMT.woff +0 -0
  26. package/dist/KaTeX_Fraktur-Bold-WGHVTYOR.ttf +0 -0
  27. package/dist/KaTeX_Fraktur-Regular-2PEIFJSJ.woff2 +0 -0
  28. package/dist/KaTeX_Fraktur-Regular-5U4OPH2X.ttf +0 -0
  29. package/dist/KaTeX_Fraktur-Regular-PQMHCIK6.woff +0 -0
  30. package/dist/KaTeX_Main-Bold-2GA4IZIN.woff +0 -0
  31. package/dist/KaTeX_Main-Bold-W5FBVCZM.ttf +0 -0
  32. package/dist/KaTeX_Main-Bold-YP5VVQRP.woff2 +0 -0
  33. package/dist/KaTeX_Main-BoldItalic-4P4C7HJH.woff +0 -0
  34. package/dist/KaTeX_Main-BoldItalic-N4V3DX7S.woff2 +0 -0
  35. package/dist/KaTeX_Main-BoldItalic-ODMLBJJQ.ttf +0 -0
  36. package/dist/KaTeX_Main-Italic-I43T2HSR.ttf +0 -0
  37. package/dist/KaTeX_Main-Italic-RELBIK7M.woff2 +0 -0
  38. package/dist/KaTeX_Main-Italic-SASNQFN2.woff +0 -0
  39. package/dist/KaTeX_Main-Regular-ARRPAO67.woff2 +0 -0
  40. package/dist/KaTeX_Main-Regular-P5I74A2A.woff +0 -0
  41. package/dist/KaTeX_Main-Regular-W74P5G27.ttf +0 -0
  42. package/dist/KaTeX_Math-BoldItalic-6EBV3DK5.woff +0 -0
  43. package/dist/KaTeX_Math-BoldItalic-K4WTGH3J.woff2 +0 -0
  44. package/dist/KaTeX_Math-BoldItalic-VB447A4D.ttf +0 -0
  45. package/dist/KaTeX_Math-Italic-6KGCHLFN.woff2 +0 -0
  46. package/dist/KaTeX_Math-Italic-KKK3USB2.woff +0 -0
  47. package/dist/KaTeX_Math-Italic-SON4MRCA.ttf +0 -0
  48. package/dist/KaTeX_SansSerif-Bold-RRNVJFFW.woff2 +0 -0
  49. package/dist/KaTeX_SansSerif-Bold-STQ6RXC7.ttf +0 -0
  50. package/dist/KaTeX_SansSerif-Bold-X5M5EMOD.woff +0 -0
  51. package/dist/KaTeX_SansSerif-Italic-HMPFTM52.woff2 +0 -0
  52. package/dist/KaTeX_SansSerif-Italic-PSN4QKYX.woff +0 -0
  53. package/dist/KaTeX_SansSerif-Italic-WTBAZBGY.ttf +0 -0
  54. package/dist/KaTeX_SansSerif-Regular-2TL3USAE.ttf +0 -0
  55. package/dist/KaTeX_SansSerif-Regular-OQCII6EP.woff +0 -0
  56. package/dist/KaTeX_SansSerif-Regular-XIQ62X4E.woff2 +0 -0
  57. package/dist/KaTeX_Script-Regular-72OLXYNA.ttf +0 -0
  58. package/dist/KaTeX_Script-Regular-A5IFOEBS.woff +0 -0
  59. package/dist/KaTeX_Script-Regular-APUWIHLP.woff2 +0 -0
  60. package/dist/KaTeX_Size1-Regular-4HRHTS65.woff +0 -0
  61. package/dist/KaTeX_Size1-Regular-5LRUTBFT.woff2 +0 -0
  62. package/dist/KaTeX_Size1-Regular-7K6AASVL.ttf +0 -0
  63. package/dist/KaTeX_Size2-Regular-222HN3GT.ttf +0 -0
  64. package/dist/KaTeX_Size2-Regular-K5ZHAIS6.woff +0 -0
  65. package/dist/KaTeX_Size2-Regular-LELKET5D.woff2 +0 -0
  66. package/dist/KaTeX_Size3-Regular-TLFPAHDE.woff +0 -0
  67. package/dist/KaTeX_Size3-Regular-UFCO6WCA.ttf +0 -0
  68. package/dist/KaTeX_Size3-Regular-WQRQ47UD.woff2 +0 -0
  69. package/dist/KaTeX_Size4-Regular-7PGNVPQK.ttf +0 -0
  70. package/dist/KaTeX_Size4-Regular-CDMV7U5C.woff2 +0 -0
  71. package/dist/KaTeX_Size4-Regular-PKMWZHNC.woff +0 -0
  72. package/dist/KaTeX_Typewriter-Regular-3F5K6SQ6.ttf +0 -0
  73. package/dist/KaTeX_Typewriter-Regular-MJMFSK64.woff +0 -0
  74. package/dist/KaTeX_Typewriter-Regular-VBYJ4NRC.woff2 +0 -0
  75. package/dist/KernelEngineContext-CcxGYtlr.d.ts +33 -0
  76. package/dist/LayersPanel-M2LHWUFF.js +6 -0
  77. package/dist/ModuleCard-QHDGK5XK.js +7 -0
  78. package/dist/OrbInspector-MHLJ6OEE.css +1756 -0
  79. package/dist/OrbInspector-QCPEPUPH.js +26 -0
  80. package/dist/Select-B-iDdnvE.d.ts +185 -0
  81. package/dist/ServerBridge-Bqsj-lOU.d.ts +124 -0
  82. package/dist/ThemeContext-DJmO59xd.d.ts +147 -0
  83. package/dist/UISlotContext-Dl_ewwCI.d.ts +79 -0
  84. package/dist/UISlotRenderer-C7WWOK43.js +26 -0
  85. package/dist/UISlotRenderer-KVFO6J7R.css +1756 -0
  86. package/dist/auth/browser/index.d.ts +2 -0
  87. package/dist/auth/browser/index.js +2 -0
  88. package/dist/auth/react/index.d.ts +56 -0
  89. package/dist/auth/react/index.js +157 -0
  90. package/dist/avl/index.css +1756 -0
  91. package/dist/avl/index.d.ts +2248 -0
  92. package/dist/avl/index.js +2693 -0
  93. package/dist/avl-3d-context-BycmO6tG.d.ts +201 -0
  94. package/dist/avl-schema-parser-CtJxJ9KU.d.ts +132 -0
  95. package/dist/avl-zoom-state-CKMVuBFg.d.ts +17 -0
  96. package/dist/chunk-3BBUBJFF.js +339 -0
  97. package/dist/chunk-3S54FWRC.js +131 -0
  98. package/dist/chunk-3VZ36ZKO.js +775 -0
  99. package/dist/chunk-4T3P43NS.js +1133 -0
  100. package/dist/chunk-4YXBKHHM.js +11488 -0
  101. package/dist/chunk-57DC34LY.js +525 -0
  102. package/dist/chunk-5QTYQTPS.js +15 -0
  103. package/dist/chunk-A2LR6VQQ.js +349 -0
  104. package/dist/chunk-AB3X7QTE.js +505 -0
  105. package/dist/chunk-AE7VCQB6.js +561 -0
  106. package/dist/chunk-AGXD77SL.js +98 -0
  107. package/dist/chunk-AU7O65OX.js +66 -0
  108. package/dist/chunk-CPLN6NBQ.js +701 -0
  109. package/dist/chunk-DZBQA2OW.js +176 -0
  110. package/dist/chunk-E6KA4J6N.js +227 -0
  111. package/dist/chunk-EOWMARUB.js +16 -0
  112. package/dist/chunk-G7DCAZ22.js +19 -0
  113. package/dist/chunk-GFXCPUMX.js +1334 -0
  114. package/dist/chunk-HH5KSMH5.js +311 -0
  115. package/dist/chunk-ILQXJ2AR.js +280 -0
  116. package/dist/chunk-ILZ7ORX7.js +432 -0
  117. package/dist/chunk-K4MOPSEL.js +674 -0
  118. package/dist/chunk-LHP2TK7O.js +47587 -0
  119. package/dist/chunk-P4ZFUQFF.js +93 -0
  120. package/dist/chunk-PCR37T3U.js +296 -0
  121. package/dist/chunk-PRXQGGCO.js +580 -0
  122. package/dist/chunk-REXYVBUO.js +191 -0
  123. package/dist/chunk-ROICKAU7.js +24 -0
  124. package/dist/chunk-SP5CDJ6K.js +338 -0
  125. package/dist/chunk-TUPZWTRE.js +1051 -0
  126. package/dist/chunk-TXAUOLWZ.js +490 -0
  127. package/dist/chunk-TZZBINQY.js +82 -0
  128. package/dist/chunk-UTDC2NEA.js +14 -0
  129. package/dist/chunk-UU57VNS2.js +1053 -0
  130. package/dist/chunk-UXLE3IPR.js +421 -0
  131. package/dist/chunk-VO2TTLS5.js +94 -0
  132. package/dist/chunk-X3DMMX27.js +11 -0
  133. package/dist/chunk-YHMRX6YA.js +455 -0
  134. package/dist/components/index.css +1756 -0
  135. package/dist/components/index.d.ts +11299 -0
  136. package/dist/components/index.js +1110 -0
  137. package/dist/context/index.d.ts +8 -0
  138. package/dist/context/index.js +8 -0
  139. package/dist/core.d.ts +2599 -0
  140. package/dist/core.js +3 -0
  141. package/dist/design-classes/index.cjs +431 -0
  142. package/dist/design-classes/index.d.cts +165 -0
  143. package/dist/design-classes/index.d.ts +165 -0
  144. package/dist/design-classes/index.js +399 -0
  145. package/dist/emojiItems-QGSNAABW.js +20 -0
  146. package/dist/fx-CmQjnHmT.d.ts +371 -0
  147. package/dist/hooks/index.d.ts +971 -0
  148. package/dist/hooks/index.js +8 -0
  149. package/dist/index.d.ts +408 -0
  150. package/dist/index.js +178 -0
  151. package/dist/katexPlugin-FA7NX4PE.css +1161 -0
  152. package/dist/katexPlugin-NCDKOOQY.js +2 -0
  153. package/dist/kernel-client-TZKGHJRY.js +516 -0
  154. package/dist/kernel-wire-wNdAPfhJ.d.ts +88 -0
  155. package/dist/lib/index.d.ts +602 -0
  156. package/dist/lib/index.js +1289 -0
  157. package/dist/paintDispatch-CuJLsr9Y.d.ts +688 -0
  158. package/dist/parseLessonSegments-GpCeMrb2.d.ts +334 -0
  159. package/dist/perf-CKiBKbkw.d.ts +22 -0
  160. package/dist/perf-Dr28-AgT.d.ts +57 -0
  161. package/dist/prism-X5YWKXO5.js +136 -0
  162. package/dist/providers/index.css +1756 -0
  163. package/dist/providers/index.d.ts +355 -0
  164. package/dist/providers/index.js +29 -0
  165. package/dist/renderer/index.d.ts +465 -0
  166. package/dist/renderer/index.js +4 -0
  167. package/dist/runtime/index.css +1756 -0
  168. package/dist/runtime/index.d.ts +239 -0
  169. package/dist/runtime/index.js +28 -0
  170. package/dist/slot-host-CPzrxLo9.d.ts +48 -0
  171. package/dist/ssr/index.cjs +9739 -0
  172. package/dist/ssr/index.d.cts +464 -0
  173. package/dist/ssr/index.d.ts +464 -0
  174. package/dist/ssr/index.js +9703 -0
  175. package/dist/storage/browser/index.d.ts +1 -0
  176. package/dist/storage/browser/index.js +2 -0
  177. package/dist/test-support.d.ts +42 -0
  178. package/dist/test-support.js +181 -0
  179. package/dist/themeTokens-CRd8AEDF.d.ts +125 -0
  180. package/dist/three/index.css +503 -0
  181. package/dist/three/index.d.ts +1185 -0
  182. package/dist/three/index.js +3908 -0
  183. package/dist/useUISlots-CiobNFGb.d.ts +211 -0
  184. package/dist/verification-C5pTeMJv.d.ts +66 -0
  185. package/dist/verificationRegistry-CVrcxG1s.d.ts +122 -0
  186. package/dist/wrapCallbackForEvent-B9QLbhxX.d.ts +19 -0
  187. package/index.css +199 -0
  188. package/package.json +273 -3
  189. package/src/core/lib/band-shapes.json +7 -0
  190. package/src/core/locales/ar.json +1276 -0
  191. package/src/core/locales/en.json +1276 -0
  192. package/src/core/locales/index.ts +54 -0
  193. package/src/core/locales/sl.json +1276 -0
  194. package/src/core/tokens/native-tokens.json +369 -0
  195. package/tailwind-compile.cjs +29 -0
  196. package/tailwind-preset.cjs +1020 -0
  197. package/themes/_base.css +451 -0
  198. package/themes/_contract.md +307 -0
  199. package/themes/_fonts-kenney.css +11 -0
  200. package/themes/_fonts.css +12 -0
  201. package/themes/_foundation.css +105 -0
  202. package/themes/_head.css +22 -0
  203. package/themes/_presets.css +67 -0
  204. package/themes/almadar-heritage.css +455 -0
  205. package/themes/almadar-website.css +269 -0
  206. package/themes/almadar.css +269 -0
  207. package/themes/aqua.css +455 -0
  208. package/themes/arabesque.css +459 -0
  209. package/themes/art-deco.css +457 -0
  210. package/themes/art-nouveau.css +459 -0
  211. package/themes/atelier.css +463 -0
  212. package/themes/bauhaus.css +461 -0
  213. package/themes/bloomberg-dense.css +463 -0
  214. package/themes/blueprint.css +457 -0
  215. package/themes/clay.css +449 -0
  216. package/themes/comic.css +453 -0
  217. package/themes/constructivist.css +457 -0
  218. package/themes/corporate.css +449 -0
  219. package/themes/cyberpunk.css +453 -0
  220. package/themes/frutiger-aero.css +458 -0
  221. package/themes/game-adventure.css +201 -0
  222. package/themes/game-rpg.css +203 -0
  223. package/themes/game-sci-fi.css +201 -0
  224. package/themes/game-ui-pack.css +200 -0
  225. package/themes/gazette.css +449 -0
  226. package/themes/glass.css +457 -0
  227. package/themes/gothic.css +453 -0
  228. package/themes/index.css +21 -0
  229. package/themes/ink-wash.css +459 -0
  230. package/themes/kawaii.css +459 -0
  231. package/themes/kflow.css +310 -0
  232. package/themes/kiosk.css +449 -0
  233. package/themes/linear-clean.css +463 -0
  234. package/themes/luxury.css +451 -0
  235. package/themes/mac-classic.css +455 -0
  236. package/themes/material.css +463 -0
  237. package/themes/memphis.css +453 -0
  238. package/themes/mid-century.css +455 -0
  239. package/themes/minimalist.css +449 -0
  240. package/themes/mudcloth.css +459 -0
  241. package/themes/nata.css +310 -0
  242. package/themes/neon.css +453 -0
  243. package/themes/neumorphic.css +451 -0
  244. package/themes/newsprint.css +455 -0
  245. package/themes/notion-editorial.css +463 -0
  246. package/themes/orb.css +465 -0
  247. package/themes/pixel.css +449 -0
  248. package/themes/prism.css +309 -0
  249. package/themes/rawi.css +310 -0
  250. package/themes/retro.css +452 -0
  251. package/themes/risograph.css +463 -0
  252. package/themes/scandi.css +469 -0
  253. package/themes/sketch.css +455 -0
  254. package/themes/solarpunk.css +469 -0
  255. package/themes/steampunk.css +451 -0
  256. package/themes/swiss.css +455 -0
  257. package/themes/terminal.css +466 -0
  258. package/themes/trait-wars.css +487 -0
  259. package/themes/ukiyo-e.css +459 -0
  260. package/themes/vaporwave.css +455 -0
  261. package/themes/victorian.css +453 -0
  262. package/themes/wabi-sabi.css +459 -0
  263. package/themes/win95.css +455 -0
  264. package/themes/wireframe.css +439 -0
  265. package/themes/zine.css +455 -0
  266. package/README.md +0 -3
@@ -0,0 +1,1289 @@
1
+ "use client";
2
+ export { EDITOR_MOTIONS, EDITOR_OPERATORS, ENTER_SLOT_CLASS, INDENT_UNIT, MAX_ENTER_DELAY, applyMotion, applyOperator, asEnterAnimation, clearDebugEvents, clearEntityProvider, clearGuardHistory, clearTicks, clearTraits, computeLineDiff, debug, debugCollision, debugError, debugGameState, debugGroup, debugGroupEnd, debugInput, debugPhysics, debugTable, debugTime, debugTimeEnd, debugWarn, enterClassName, getAllTicks, getAllTraits, getDebugEvents, getEntitiesByType, getEntityById, getEntitySnapshot, getEventsBySource, getEventsByType, getGuardEvaluationsForTrait, getGuardHistory, getNestedValue, getRecentEvents, getRecentGuardEvaluations, getTick, getTrait, initDebugShortcut, isDebugEnabled, isEditorMotion, isEditorOperator, logDebugEvent, logEffectExecuted, logError, logEventFired, logInfo, logStateChange, logWarning, motionRange, onDebugToggle, parseContentSegments, parseLessonSegments, parseMarkdownWithCodeBlocks2 as parseMarkdownWithCodeBlocks, profilerOnRender, recordGuardEvaluation, registerTick, registerTrait, resolveImageUrl, setDebugEnabled, setEntityProvider, setTickActive, subscribeToDebugEvents, subscribeToGuardChanges, subscribeToTickChanges, subscribeToTraitChanges, toggleDebug, unregisterTick, unregisterTrait, updateGuardResult, updateTickExecution, updateTraitState, usePerfBuffer } from '../chunk-TUPZWTRE.js';
3
+ export { arrowheadPath, brainIconPath, eightPointedStarPath, gearTeethPath, lockIconPath, pipeIconPath } from '../chunk-TZZBINQY.js';
4
+ export { bindCanvasCapture, bindConfigApplier, bindEventBus, bindLastDrawables, bindTraitStateGetter, clearVerification, getAllChecks, getBridgeHealth, getSnapshot, getSummary, getTraitSnapshots, getTransitions, getTransitionsForTrait, isEditableTarget, keyMapCode, recordOrbitalResponse, recordServerResponse, recordTransition, recordingTransport, registerCheck, registerTraitSnapshot, resolveKeyMapEvent, serverEffectTraces, subscribeToVerification, updateAssetStatus, updateBridgeHealth, updateCheck, verifierAttached, waitForTransition } from '../chunk-ILZ7ORX7.js';
5
+ export { PERF_NAMESPACE, clearPerf, perfEnd, perfGauge, perfStart, perfTime, perfTimeAsync } from '../chunk-3VZ36ZKO.js';
6
+ export { DENSITY_ELEMENT_VARS, DENSITY_SPACING_VARS, DIAGRAM_VARS, ELEVATION_VARS, GEOMETRY_VARS, ICONOGRAPHY_VARS, LEGACY_PREFIXES, MOTION_DURATION_KEYS, MOTION_EASING_KEYS, MOTION_INTENT_VARS, MOTION_SHAPE_VARS, SCENE_VARS, SURFACE_VARS, TYPE_FAMILY_VARS, TYPE_HEADING_VARS, TYPE_INTENT_VARS, TYPE_SIZE_KEYS, enterKeyframe, resolveThemeForRuntime, themeTokensToCssVars } from '../chunk-3BBUBJFF.js';
7
+ import '../chunk-4YXBKHHM.js';
8
+ import '../chunk-G7DCAZ22.js';
9
+
10
+ // src/lib/api-client.ts
11
+ var API_BASE_URL = typeof process !== "undefined" && process.env?.VITE_API_URL ? process.env.VITE_API_URL : "/api";
12
+ var ApiError = class extends Error {
13
+ constructor(status, statusText, message) {
14
+ super(message || `API Error: ${status} ${statusText}`);
15
+ this.status = status;
16
+ this.statusText = statusText;
17
+ this.name = "ApiError";
18
+ }
19
+ status;
20
+ statusText;
21
+ };
22
+ async function handleResponse(response) {
23
+ if (!response.ok) {
24
+ let message;
25
+ try {
26
+ const errorData = await response.json();
27
+ message = errorData.message || errorData.error;
28
+ } catch {
29
+ }
30
+ throw new ApiError(response.status, response.statusText, message);
31
+ }
32
+ const text = await response.text();
33
+ if (!text) {
34
+ return void 0;
35
+ }
36
+ return JSON.parse(text);
37
+ }
38
+ function getHeaders() {
39
+ const headers = {
40
+ "Content-Type": "application/json"
41
+ };
42
+ const token = typeof localStorage !== "undefined" ? localStorage.getItem("authToken") : null;
43
+ if (token) {
44
+ headers["Authorization"] = `Bearer ${token}`;
45
+ }
46
+ return headers;
47
+ }
48
+ var apiClient = {
49
+ /**
50
+ * GET request
51
+ */
52
+ async get(endpoint) {
53
+ const response = await fetch(`${API_BASE_URL}${endpoint}`, {
54
+ method: "GET",
55
+ headers: getHeaders()
56
+ });
57
+ return handleResponse(response);
58
+ },
59
+ /**
60
+ * POST request
61
+ */
62
+ async post(endpoint, data) {
63
+ const response = await fetch(`${API_BASE_URL}${endpoint}`, {
64
+ method: "POST",
65
+ headers: getHeaders(),
66
+ body: data ? JSON.stringify(data) : void 0
67
+ });
68
+ return handleResponse(response);
69
+ },
70
+ /**
71
+ * PUT request
72
+ */
73
+ async put(endpoint, data) {
74
+ const response = await fetch(`${API_BASE_URL}${endpoint}`, {
75
+ method: "PUT",
76
+ headers: getHeaders(),
77
+ body: data ? JSON.stringify(data) : void 0
78
+ });
79
+ return handleResponse(response);
80
+ },
81
+ /**
82
+ * PATCH request
83
+ */
84
+ async patch(endpoint, data) {
85
+ const response = await fetch(`${API_BASE_URL}${endpoint}`, {
86
+ method: "PATCH",
87
+ headers: getHeaders(),
88
+ body: data ? JSON.stringify(data) : void 0
89
+ });
90
+ return handleResponse(response);
91
+ },
92
+ /**
93
+ * DELETE request
94
+ */
95
+ async delete(endpoint) {
96
+ const response = await fetch(`${API_BASE_URL}${endpoint}`, {
97
+ method: "DELETE",
98
+ headers: getHeaders()
99
+ });
100
+ return handleResponse(response);
101
+ }
102
+ };
103
+
104
+ // src/lib/command-send-pump.ts
105
+ function createCommandSendPump() {
106
+ let tail = Promise.resolve();
107
+ return {
108
+ enqueue(job) {
109
+ const result = tail.then(job);
110
+ tail = result.then(
111
+ () => void 0,
112
+ () => void 0
113
+ );
114
+ return result;
115
+ }
116
+ };
117
+ }
118
+
119
+ // src/lib/jazari/layout.ts
120
+ var GEAR_RADIUS = 35;
121
+ var GEAR_SPACING = 130;
122
+ var PADDING_X = 80;
123
+ var PADDING_Y = 120;
124
+ var ARC_HEIGHT = 70;
125
+ var SELF_LOOP_RADIUS = 30;
126
+ var PARALLEL_OFFSET = 24;
127
+ function orderStates(states, transitions) {
128
+ const initial = states.find((s) => s.isInitial);
129
+ if (!initial) {
130
+ return states.map((s) => s.name);
131
+ }
132
+ const adj = /* @__PURE__ */ new Map();
133
+ for (const t of transitions) {
134
+ const existing = adj.get(t.from) ?? [];
135
+ existing.push(t.to);
136
+ adj.set(t.from, existing);
137
+ }
138
+ const visited = /* @__PURE__ */ new Set();
139
+ const order = [];
140
+ const queue = [initial.name];
141
+ visited.add(initial.name);
142
+ while (queue.length > 0) {
143
+ const current = queue.shift();
144
+ order.push(current);
145
+ const neighbors = adj.get(current) ?? [];
146
+ for (const next of neighbors) {
147
+ if (!visited.has(next)) {
148
+ visited.add(next);
149
+ queue.push(next);
150
+ }
151
+ }
152
+ }
153
+ for (const s of states) {
154
+ if (!visited.has(s.name)) {
155
+ order.push(s.name);
156
+ }
157
+ }
158
+ return order;
159
+ }
160
+ function quadBezierPoint(x0, y0, cx, cy, x1, y1, t) {
161
+ const mt = 1 - t;
162
+ return {
163
+ x: mt * mt * x0 + 2 * mt * t * cx + t * t * x1,
164
+ y: mt * mt * y0 + 2 * mt * t * cy + t * t * y1
165
+ };
166
+ }
167
+ function computeJazariLayout(input) {
168
+ const { states, transitions, entityFields = [], direction = "ltr" } = input;
169
+ if (states.length === 0) {
170
+ return {
171
+ width: 200,
172
+ height: 200,
173
+ gears: [],
174
+ arms: [],
175
+ axisY: 100,
176
+ axisStartX: 0,
177
+ axisEndX: 200,
178
+ entityFields,
179
+ direction
180
+ };
181
+ }
182
+ const stateOrder = orderStates(states, transitions);
183
+ const stateMap = new Map(states.map((s) => [s.name, s]));
184
+ const stateIndex = new Map(stateOrder.map((name, i) => [name, i]));
185
+ const totalWidth = PADDING_X * 2 + (stateOrder.length - 1) * GEAR_SPACING;
186
+ const axisY = PADDING_Y + ARC_HEIGHT + SELF_LOOP_RADIUS + 10;
187
+ const height = axisY + PADDING_Y + ARC_HEIGHT + SELF_LOOP_RADIUS + 10;
188
+ const gears = stateOrder.map((name, i) => {
189
+ const state = stateMap.get(name);
190
+ const xPos = direction === "rtl" ? totalWidth - PADDING_X - i * GEAR_SPACING : PADDING_X + i * GEAR_SPACING;
191
+ return {
192
+ name,
193
+ cx: xPos,
194
+ cy: axisY,
195
+ radius: GEAR_RADIUS,
196
+ isInitial: state?.isInitial === true,
197
+ isTerminal: state?.isTerminal === true || state?.isFinal === true
198
+ };
199
+ });
200
+ const pairCounts = /* @__PURE__ */ new Map();
201
+ const pairIndices = /* @__PURE__ */ new Map();
202
+ for (const t of transitions) {
203
+ const pairKey = `${t.from}|${t.to}`;
204
+ pairCounts.set(pairKey, (pairCounts.get(pairKey) ?? 0) + 1);
205
+ }
206
+ const arms = transitions.map((t) => {
207
+ const pairKey = `${t.from}|${t.to}`;
208
+ const currentIdx = pairIndices.get(pairKey) ?? 0;
209
+ pairIndices.set(pairKey, currentIdx + 1);
210
+ const pairCount = pairCounts.get(pairKey) ?? 1;
211
+ const parallelShift = (currentIdx - (pairCount - 1) / 2) * PARALLEL_OFFSET;
212
+ const fromIdx = stateIndex.get(t.from) ?? 0;
213
+ const toIdx = stateIndex.get(t.to) ?? 0;
214
+ const fromGear = gears[fromIdx];
215
+ const toGear = gears[toIdx];
216
+ if (!fromGear || !toGear) {
217
+ return {
218
+ from: t.from,
219
+ to: t.to,
220
+ event: t.event,
221
+ path: "",
222
+ labelX: 0,
223
+ labelY: 0,
224
+ guard: null,
225
+ effect: null,
226
+ isSelfLoop: false
227
+ };
228
+ }
229
+ const isSelfLoop = t.from === t.to;
230
+ let path;
231
+ let labelX;
232
+ let labelY;
233
+ let ctrlX;
234
+ let ctrlY;
235
+ if (isSelfLoop) {
236
+ const loopY = fromGear.cy - GEAR_RADIUS - SELF_LOOP_RADIUS - 5;
237
+ path = [
238
+ `M ${fromGear.cx - 12} ${fromGear.cy - GEAR_RADIUS}`,
239
+ `C ${fromGear.cx - 25} ${loopY - 15}, ${fromGear.cx + 25} ${loopY - 15}, ${fromGear.cx + 12} ${fromGear.cy - GEAR_RADIUS}`
240
+ ].join(" ");
241
+ labelX = fromGear.cx;
242
+ labelY = loopY - 10;
243
+ ctrlX = fromGear.cx;
244
+ ctrlY = loopY;
245
+ } else {
246
+ const isForward = direction === "rtl" ? fromIdx > toIdx : fromIdx < toIdx;
247
+ const arcSign = isForward ? -1 : 1;
248
+ const midX = (fromGear.cx + toGear.cx) / 2;
249
+ ctrlY = axisY + arcSign * (ARC_HEIGHT + Math.abs(parallelShift));
250
+ ctrlX = midX;
251
+ const perimeterR = GEAR_RADIUS + 7;
252
+ const dx = toGear.cx - fromGear.cx;
253
+ const dy = toGear.cy - fromGear.cy;
254
+ const dist = Math.sqrt(dx * dx + dy * dy);
255
+ const startX = dist > 0 ? fromGear.cx + dx / dist * perimeterR : fromGear.cx;
256
+ const startY = dist > 0 ? fromGear.cy + dy / dist * perimeterR : fromGear.cy;
257
+ const endX = dist > 0 ? toGear.cx - dx / dist * perimeterR : toGear.cx;
258
+ const endY = dist > 0 ? toGear.cy - dy / dist * perimeterR : toGear.cy;
259
+ path = `M ${startX} ${startY} Q ${ctrlX} ${ctrlY} ${endX} ${endY}`;
260
+ const mid = quadBezierPoint(startX, startY, ctrlX, ctrlY, endX, endY, 0.5);
261
+ labelX = mid.x;
262
+ labelY = mid.y;
263
+ }
264
+ let guard = null;
265
+ if (t.guard != null) {
266
+ const isAI = Array.isArray(t.guard) && typeof t.guard[0] === "string" && t.guard[0] === "call-service";
267
+ if (isSelfLoop) {
268
+ guard = { x: fromGear.cx - 18, y: fromGear.cy - GEAR_RADIUS - SELF_LOOP_RADIUS, isAI };
269
+ } else {
270
+ const gp = quadBezierPoint(fromGear.cx, fromGear.cy, ctrlX, ctrlY, toGear.cx, toGear.cy, 0.3);
271
+ guard = { x: gp.x, y: gp.y, isAI };
272
+ }
273
+ }
274
+ let effect = null;
275
+ if (t.effects && t.effects.length > 0) {
276
+ const names = t.effects.map((e) => {
277
+ if (Array.isArray(e)) return JSON.stringify(e);
278
+ return String(e);
279
+ });
280
+ if (isSelfLoop) {
281
+ effect = { x: fromGear.cx + 18, y: fromGear.cy - GEAR_RADIUS - SELF_LOOP_RADIUS, count: t.effects.length, names };
282
+ } else {
283
+ const ep = quadBezierPoint(fromGear.cx, fromGear.cy, ctrlX, ctrlY, toGear.cx, toGear.cy, 0.7);
284
+ effect = { x: ep.x, y: ep.y, count: t.effects.length, names };
285
+ }
286
+ }
287
+ return {
288
+ from: t.from,
289
+ to: t.to,
290
+ event: t.event,
291
+ path,
292
+ labelX,
293
+ labelY,
294
+ guard,
295
+ effect,
296
+ isSelfLoop
297
+ };
298
+ });
299
+ return {
300
+ width: totalWidth,
301
+ height,
302
+ gears,
303
+ arms,
304
+ axisY,
305
+ axisStartX: direction === "rtl" ? gears[gears.length - 1]?.cx ?? PADDING_X : gears[0]?.cx ?? PADDING_X,
306
+ axisEndX: direction === "rtl" ? gears[0]?.cx ?? totalWidth - PADDING_X : gears[gears.length - 1]?.cx ?? totalWidth - PADDING_X,
307
+ entityFields,
308
+ direction
309
+ };
310
+ }
311
+
312
+ // src/lib/jazari/types.ts
313
+ var JAZARI_COLORS = {
314
+ brass: "#B87333",
315
+ gold: "#C8A951",
316
+ sky: "#0EA5E9",
317
+ crimson: "#DC2626",
318
+ lapis: "#1E40AF",
319
+ ivory: "#FFFBEB",
320
+ darkBg: "#1a1a2e"
321
+ };
322
+
323
+ // src/lib/iconNativeMap.json
324
+ var iconNativeMap_default = {
325
+ fallback: {
326
+ sfSymbol: "questionmark.circle",
327
+ materialSymbol: "help"
328
+ },
329
+ map: {
330
+ home: {
331
+ sfSymbol: "house",
332
+ materialSymbol: "home"
333
+ },
334
+ menu: {
335
+ sfSymbol: "line.3.horizontal",
336
+ materialSymbol: "menu"
337
+ },
338
+ "more-horizontal": {
339
+ sfSymbol: "ellipsis",
340
+ materialSymbol: "more_horiz"
341
+ },
342
+ "more-vertical": {
343
+ sfSymbol: "ellipsis",
344
+ materialSymbol: "more_vert"
345
+ },
346
+ "chevron-right": {
347
+ sfSymbol: "chevron.right",
348
+ materialSymbol: "chevron_right"
349
+ },
350
+ "chevron-left": {
351
+ sfSymbol: "chevron.left",
352
+ materialSymbol: "chevron_left"
353
+ },
354
+ "chevron-up": {
355
+ sfSymbol: "chevron.up",
356
+ materialSymbol: "keyboard_arrow_up"
357
+ },
358
+ "chevron-down": {
359
+ sfSymbol: "chevron.down",
360
+ materialSymbol: "keyboard_arrow_down"
361
+ },
362
+ "chevrons-left": {
363
+ sfSymbol: "chevron.left.2",
364
+ materialSymbol: "keyboard_double_arrow_left"
365
+ },
366
+ "chevrons-right": {
367
+ sfSymbol: "chevron.right.2",
368
+ materialSymbol: "keyboard_double_arrow_right"
369
+ },
370
+ "chevrons-up-down": {
371
+ sfSymbol: "chevron.up.chevron.down",
372
+ materialSymbol: "unfold_more"
373
+ },
374
+ "arrow-left": {
375
+ sfSymbol: "arrow.left",
376
+ materialSymbol: "arrow_back"
377
+ },
378
+ "arrow-right": {
379
+ sfSymbol: "arrow.right",
380
+ materialSymbol: "arrow_forward"
381
+ },
382
+ "arrow-up": {
383
+ sfSymbol: "arrow.up",
384
+ materialSymbol: "arrow_upward"
385
+ },
386
+ "arrow-down": {
387
+ sfSymbol: "arrow.down",
388
+ materialSymbol: "arrow_downward"
389
+ },
390
+ "arrow-up-right": {
391
+ sfSymbol: "arrow.up.right",
392
+ materialSymbol: "north_east"
393
+ },
394
+ "arrow-down-left": {
395
+ sfSymbol: "arrow.down.left",
396
+ materialSymbol: "south_west"
397
+ },
398
+ "corner-up-left": {
399
+ sfSymbol: "arrow.turn.up.left",
400
+ materialSymbol: "subdirectory_arrow_left"
401
+ },
402
+ "corner-down-right": {
403
+ sfSymbol: "arrow.turn.down.right",
404
+ materialSymbol: "subdirectory_arrow_right"
405
+ },
406
+ "external-link": {
407
+ sfSymbol: "arrow.up.forward.square",
408
+ materialSymbol: "open_in_new"
409
+ },
410
+ "log-out": {
411
+ sfSymbol: "rectangle.portrait.and.arrow.right",
412
+ materialSymbol: "logout"
413
+ },
414
+ "log-in": {
415
+ sfSymbol: "arrow.right.square",
416
+ materialSymbol: "login"
417
+ },
418
+ "panel-left": {
419
+ sfSymbol: "sidebar.left",
420
+ materialSymbol: "first_page"
421
+ },
422
+ "panel-right": {
423
+ sfSymbol: "sidebar.right",
424
+ materialSymbol: "last_page"
425
+ },
426
+ sidebar: {
427
+ sfSymbol: "sidebar.left",
428
+ materialSymbol: "view_sidebar"
429
+ },
430
+ "layout-grid": {
431
+ sfSymbol: "square.grid.2x2",
432
+ materialSymbol: "grid_view"
433
+ },
434
+ "layout-list": {
435
+ sfSymbol: "list.bullet",
436
+ materialSymbol: "view_list"
437
+ },
438
+ grid: {
439
+ sfSymbol: "square.grid.2x2",
440
+ materialSymbol: "grid_view"
441
+ },
442
+ list: {
443
+ sfSymbol: "list.bullet",
444
+ materialSymbol: "list"
445
+ },
446
+ plus: {
447
+ sfSymbol: "plus",
448
+ materialSymbol: "add"
449
+ },
450
+ "plus-circle": {
451
+ sfSymbol: "plus.circle",
452
+ materialSymbol: "add_circle"
453
+ },
454
+ minus: {
455
+ sfSymbol: "minus",
456
+ materialSymbol: "remove"
457
+ },
458
+ "minus-circle": {
459
+ sfSymbol: "minus.circle",
460
+ materialSymbol: "remove_circle"
461
+ },
462
+ x: {
463
+ sfSymbol: "xmark",
464
+ materialSymbol: "close"
465
+ },
466
+ close: {
467
+ sfSymbol: "xmark",
468
+ materialSymbol: "close"
469
+ },
470
+ check: {
471
+ sfSymbol: "checkmark",
472
+ materialSymbol: "check"
473
+ },
474
+ "check-circle": {
475
+ sfSymbol: "checkmark.circle",
476
+ materialSymbol: "check_circle"
477
+ },
478
+ "circle-check": {
479
+ sfSymbol: "checkmark.circle",
480
+ materialSymbol: "check_circle"
481
+ },
482
+ "check-square": {
483
+ sfSymbol: "checkmark.square",
484
+ materialSymbol: "check_box"
485
+ },
486
+ "x-circle": {
487
+ sfSymbol: "xmark.circle",
488
+ materialSymbol: "cancel"
489
+ },
490
+ trash: {
491
+ sfSymbol: "trash",
492
+ materialSymbol: "delete"
493
+ },
494
+ "trash-2": {
495
+ sfSymbol: "trash",
496
+ materialSymbol: "delete"
497
+ },
498
+ edit: {
499
+ sfSymbol: "pencil",
500
+ materialSymbol: "edit"
501
+ },
502
+ "edit-2": {
503
+ sfSymbol: "pencil",
504
+ materialSymbol: "edit"
505
+ },
506
+ "edit-3": {
507
+ sfSymbol: "pencil",
508
+ materialSymbol: "edit"
509
+ },
510
+ pencil: {
511
+ sfSymbol: "pencil",
512
+ materialSymbol: "edit"
513
+ },
514
+ copy: {
515
+ sfSymbol: "doc.on.doc",
516
+ materialSymbol: "content_copy"
517
+ },
518
+ clipboard: {
519
+ sfSymbol: "clipboard",
520
+ materialSymbol: "content_paste"
521
+ },
522
+ save: {
523
+ sfSymbol: "square.and.arrow.down",
524
+ materialSymbol: "save"
525
+ },
526
+ download: {
527
+ sfSymbol: "arrow.down.circle",
528
+ materialSymbol: "download"
529
+ },
530
+ upload: {
531
+ sfSymbol: "arrow.up.circle",
532
+ materialSymbol: "upload"
533
+ },
534
+ share: {
535
+ sfSymbol: "square.and.arrow.up",
536
+ materialSymbol: "share"
537
+ },
538
+ "share-2": {
539
+ sfSymbol: "square.and.arrow.up",
540
+ materialSymbol: "share"
541
+ },
542
+ "refresh-cw": {
543
+ sfSymbol: "arrow.clockwise",
544
+ materialSymbol: "refresh"
545
+ },
546
+ refresh: {
547
+ sfSymbol: "arrow.clockwise",
548
+ materialSymbol: "refresh"
549
+ },
550
+ "rotate-cw": {
551
+ sfSymbol: "arrow.clockwise",
552
+ materialSymbol: "rotate_right"
553
+ },
554
+ "rotate-ccw": {
555
+ sfSymbol: "arrow.counterclockwise",
556
+ materialSymbol: "rotate_left"
557
+ },
558
+ undo: {
559
+ sfSymbol: "arrow.uturn.backward",
560
+ materialSymbol: "undo"
561
+ },
562
+ redo: {
563
+ sfSymbol: "arrow.uturn.forward",
564
+ materialSymbol: "redo"
565
+ },
566
+ filter: {
567
+ sfSymbol: "line.3.horizontal.decrease.circle",
568
+ materialSymbol: "filter_list"
569
+ },
570
+ sliders: {
571
+ sfSymbol: "slider.horizontal.3",
572
+ materialSymbol: "tune"
573
+ },
574
+ search: {
575
+ sfSymbol: "magnifyingglass",
576
+ materialSymbol: "search"
577
+ },
578
+ "zoom-in": {
579
+ sfSymbol: "plus.magnifyingglass",
580
+ materialSymbol: "zoom_in"
581
+ },
582
+ "zoom-out": {
583
+ sfSymbol: "minus.magnifyingglass",
584
+ materialSymbol: "zoom_out"
585
+ },
586
+ settings: {
587
+ sfSymbol: "gearshape",
588
+ materialSymbol: "settings"
589
+ },
590
+ lock: {
591
+ sfSymbol: "lock",
592
+ materialSymbol: "lock"
593
+ },
594
+ unlock: {
595
+ sfSymbol: "lock.open",
596
+ materialSymbol: "lock_open"
597
+ },
598
+ eye: {
599
+ sfSymbol: "eye",
600
+ materialSymbol: "visibility"
601
+ },
602
+ "eye-off": {
603
+ sfSymbol: "eye.slash",
604
+ materialSymbol: "visibility_off"
605
+ },
606
+ link: {
607
+ sfSymbol: "link",
608
+ materialSymbol: "link"
609
+ },
610
+ "link-2": {
611
+ sfSymbol: "link",
612
+ materialSymbol: "link"
613
+ },
614
+ send: {
615
+ sfSymbol: "paperplane",
616
+ materialSymbol: "send"
617
+ },
618
+ power: {
619
+ sfSymbol: "power",
620
+ materialSymbol: "power_settings_new"
621
+ },
622
+ scissors: {
623
+ sfSymbol: "scissors",
624
+ materialSymbol: "content_cut"
625
+ },
626
+ eraser: {
627
+ sfSymbol: "eraser",
628
+ materialSymbol: "backspace"
629
+ },
630
+ stop: {
631
+ sfSymbol: "stop.fill",
632
+ materialSymbol: "stop"
633
+ },
634
+ "sort-asc": {
635
+ sfSymbol: "arrow.up",
636
+ materialSymbol: "arrow_upward"
637
+ },
638
+ "sort-desc": {
639
+ sfSymbol: "arrow.down",
640
+ materialSymbol: "arrow_downward"
641
+ },
642
+ file: {
643
+ sfSymbol: "doc",
644
+ materialSymbol: "description"
645
+ },
646
+ "file-text": {
647
+ sfSymbol: "doc.text",
648
+ materialSymbol: "description"
649
+ },
650
+ "file-plus": {
651
+ sfSymbol: "doc.badge.plus",
652
+ materialSymbol: "note_add"
653
+ },
654
+ "file-minus": {
655
+ sfSymbol: "doc.badge.minus",
656
+ materialSymbol: "note"
657
+ },
658
+ "file-code": {
659
+ sfSymbol: "chevron.left.forwardslash.chevron.right",
660
+ materialSymbol: "code"
661
+ },
662
+ "file-json": {
663
+ sfSymbol: "curlybraces",
664
+ materialSymbol: "data_object"
665
+ },
666
+ "file-warning": {
667
+ sfSymbol: "exclamationmark.triangle",
668
+ materialSymbol: "warning"
669
+ },
670
+ folder: {
671
+ sfSymbol: "folder",
672
+ materialSymbol: "folder"
673
+ },
674
+ "folder-open": {
675
+ sfSymbol: "folder",
676
+ materialSymbol: "folder_open"
677
+ },
678
+ paperclip: {
679
+ sfSymbol: "paperclip",
680
+ materialSymbol: "attach_file"
681
+ },
682
+ terminal: {
683
+ sfSymbol: "terminal",
684
+ materialSymbol: "terminal"
685
+ },
686
+ code: {
687
+ sfSymbol: "chevron.left.forwardslash.chevron.right",
688
+ materialSymbol: "code"
689
+ },
690
+ cpu: {
691
+ sfSymbol: "cpu",
692
+ materialSymbol: "memory"
693
+ },
694
+ gauge: {
695
+ sfSymbol: "gauge.with.dots.needle.33percent",
696
+ materialSymbol: "speed"
697
+ },
698
+ github: {
699
+ sfSymbol: "chevron.left.forwardslash.chevron.right",
700
+ materialSymbol: "code"
701
+ },
702
+ "graduation-cap": {
703
+ sfSymbol: "graduationcap",
704
+ materialSymbol: "school"
705
+ },
706
+ hammer: {
707
+ sfSymbol: "hammer",
708
+ materialSymbol: "hardware"
709
+ },
710
+ key: {
711
+ sfSymbol: "key",
712
+ materialSymbol: "key"
713
+ },
714
+ layout: {
715
+ sfSymbol: "rectangle.3.group",
716
+ materialSymbol: "view_quilt"
717
+ },
718
+ monitor: {
719
+ sfSymbol: "display",
720
+ materialSymbol: "monitor"
721
+ },
722
+ "pen-tool": {
723
+ sfSymbol: "pencil.tip",
724
+ materialSymbol: "draw"
725
+ },
726
+ rocket: {
727
+ sfSymbol: "airplane.departure",
728
+ materialSymbol: "rocket_launch"
729
+ },
730
+ "sliders-horizontal": {
731
+ sfSymbol: "slider.horizontal.3",
732
+ materialSymbol: "tune"
733
+ },
734
+ smartphone: {
735
+ sfSymbol: "iphone",
736
+ materialSymbol: "smartphone"
737
+ },
738
+ trophy: {
739
+ sfSymbol: "trophy",
740
+ materialSymbol: "emoji_events"
741
+ },
742
+ "upload-cloud": {
743
+ sfSymbol: "icloud.and.arrow.up",
744
+ materialSymbol: "cloud_upload"
745
+ },
746
+ wrench: {
747
+ sfSymbol: "wrench.adjustable",
748
+ materialSymbol: "build"
749
+ },
750
+ "git-branch": {
751
+ sfSymbol: "arrow.triangle.branch",
752
+ materialSymbol: "call_split"
753
+ },
754
+ "pause-circle": {
755
+ sfSymbol: "pause.circle",
756
+ materialSymbol: "pause_circle"
757
+ },
758
+ "heading-1": {
759
+ sfSymbol: "textformat.size.larger",
760
+ materialSymbol: "looks_one"
761
+ },
762
+ "heading-2": {
763
+ sfSymbol: "textformat.size",
764
+ materialSymbol: "looks_two"
765
+ },
766
+ "heading-3": {
767
+ sfSymbol: "textformat.size.smaller",
768
+ materialSymbol: "looks_3"
769
+ },
770
+ "list-ordered": {
771
+ sfSymbol: "list.number",
772
+ materialSymbol: "format_list_numbered"
773
+ },
774
+ quote: {
775
+ sfSymbol: "text.quote",
776
+ materialSymbol: "format_quote"
777
+ },
778
+ strikethrough: {
779
+ sfSymbol: "strikethrough",
780
+ materialSymbol: "format_strikethrough"
781
+ },
782
+ image: {
783
+ sfSymbol: "photo",
784
+ materialSymbol: "image"
785
+ },
786
+ archive: {
787
+ sfSymbol: "archivebox",
788
+ materialSymbol: "archive"
789
+ },
790
+ printer: {
791
+ sfSymbol: "printer",
792
+ materialSymbol: "print"
793
+ },
794
+ book: {
795
+ sfSymbol: "book",
796
+ materialSymbol: "menu_book"
797
+ },
798
+ bookmark: {
799
+ sfSymbol: "bookmark",
800
+ materialSymbol: "bookmark"
801
+ },
802
+ mail: {
803
+ sfSymbol: "envelope",
804
+ materialSymbol: "mail"
805
+ },
806
+ inbox: {
807
+ sfSymbol: "tray",
808
+ materialSymbol: "inbox"
809
+ },
810
+ "message-circle": {
811
+ sfSymbol: "bubble.left",
812
+ materialSymbol: "chat_bubble"
813
+ },
814
+ "message-square": {
815
+ sfSymbol: "bubble.left",
816
+ materialSymbol: "forum"
817
+ },
818
+ phone: {
819
+ sfSymbol: "phone",
820
+ materialSymbol: "call"
821
+ },
822
+ bell: {
823
+ sfSymbol: "bell",
824
+ materialSymbol: "notifications"
825
+ },
826
+ "bell-off": {
827
+ sfSymbol: "bell.slash",
828
+ materialSymbol: "notifications_off"
829
+ },
830
+ user: {
831
+ sfSymbol: "person",
832
+ materialSymbol: "person"
833
+ },
834
+ users: {
835
+ sfSymbol: "person.2",
836
+ materialSymbol: "group"
837
+ },
838
+ "user-plus": {
839
+ sfSymbol: "person.badge.plus",
840
+ materialSymbol: "person_add"
841
+ },
842
+ "user-circle": {
843
+ sfSymbol: "person.crop.circle",
844
+ materialSymbol: "account_circle"
845
+ },
846
+ info: {
847
+ sfSymbol: "info.circle",
848
+ materialSymbol: "info"
849
+ },
850
+ "alert-circle": {
851
+ sfSymbol: "exclamationmark.circle",
852
+ materialSymbol: "error"
853
+ },
854
+ "alert-triangle": {
855
+ sfSymbol: "exclamationmark.triangle",
856
+ materialSymbol: "warning"
857
+ },
858
+ "help-circle": {
859
+ sfSymbol: "questionmark.circle",
860
+ materialSymbol: "help"
861
+ },
862
+ star: {
863
+ sfSymbol: "star",
864
+ materialSymbol: "star"
865
+ },
866
+ "star-half": {
867
+ sfSymbol: "star.leadinghalf.filled",
868
+ materialSymbol: "star_half"
869
+ },
870
+ heart: {
871
+ sfSymbol: "heart",
872
+ materialSymbol: "favorite"
873
+ },
874
+ flag: {
875
+ sfSymbol: "flag",
876
+ materialSymbol: "flag"
877
+ },
878
+ tag: {
879
+ sfSymbol: "tag",
880
+ materialSymbol: "label"
881
+ },
882
+ clock: {
883
+ sfSymbol: "clock",
884
+ materialSymbol: "schedule"
885
+ },
886
+ calendar: {
887
+ sfSymbol: "calendar",
888
+ materialSymbol: "calendar_month"
889
+ },
890
+ loader: {
891
+ sfSymbol: "arrow.triangle.2.circlepath",
892
+ materialSymbol: "autorenew"
893
+ },
894
+ "loader-2": {
895
+ sfSymbol: "arrow.triangle.2.circlepath",
896
+ materialSymbol: "autorenew"
897
+ },
898
+ activity: {
899
+ sfSymbol: "waveform.path.ecg",
900
+ materialSymbol: "monitor_heart"
901
+ },
902
+ smile: {
903
+ sfSymbol: "face.smiling",
904
+ materialSymbol: "sentiment_satisfied"
905
+ },
906
+ play: {
907
+ sfSymbol: "play.fill",
908
+ materialSymbol: "play_arrow"
909
+ },
910
+ pause: {
911
+ sfSymbol: "pause.fill",
912
+ materialSymbol: "pause"
913
+ },
914
+ "skip-forward": {
915
+ sfSymbol: "forward.fill",
916
+ materialSymbol: "skip_next"
917
+ },
918
+ "skip-back": {
919
+ sfSymbol: "backward.fill",
920
+ materialSymbol: "skip_previous"
921
+ },
922
+ "volume-2": {
923
+ sfSymbol: "speaker.wave.2",
924
+ materialSymbol: "volume_up"
925
+ },
926
+ volume: {
927
+ sfSymbol: "speaker.wave.2",
928
+ materialSymbol: "volume_up"
929
+ },
930
+ "volume-x": {
931
+ sfSymbol: "speaker.slash",
932
+ materialSymbol: "volume_off"
933
+ },
934
+ "volume-off": {
935
+ sfSymbol: "speaker.slash",
936
+ materialSymbol: "volume_off"
937
+ },
938
+ camera: {
939
+ sfSymbol: "camera",
940
+ materialSymbol: "photo_camera"
941
+ },
942
+ mic: {
943
+ sfSymbol: "mic",
944
+ materialSymbol: "mic"
945
+ },
946
+ video: {
947
+ sfSymbol: "video",
948
+ materialSymbol: "videocam"
949
+ },
950
+ type: {
951
+ sfSymbol: "textformat",
952
+ materialSymbol: "text_fields"
953
+ },
954
+ bold: {
955
+ sfSymbol: "bold",
956
+ materialSymbol: "format_bold"
957
+ },
958
+ italic: {
959
+ sfSymbol: "italic",
960
+ materialSymbol: "format_italic"
961
+ },
962
+ underline: {
963
+ sfSymbol: "underline",
964
+ materialSymbol: "format_underlined"
965
+ },
966
+ "align-left": {
967
+ sfSymbol: "text.alignleft",
968
+ materialSymbol: "format_align_left"
969
+ },
970
+ "wrap-text": {
971
+ sfSymbol: "text.append",
972
+ materialSymbol: "wrap_text"
973
+ },
974
+ columns: {
975
+ sfSymbol: "rectangle.split.2x1",
976
+ materialSymbol: "view_column"
977
+ },
978
+ "git-commit": {
979
+ sfSymbol: "circle.and.line.horizontal",
980
+ materialSymbol: "commit"
981
+ },
982
+ diamond: {
983
+ sfSymbol: "diamond",
984
+ materialSymbol: "diamond"
985
+ },
986
+ "align-center": {
987
+ sfSymbol: "text.aligncenter",
988
+ materialSymbol: "format_align_center"
989
+ },
990
+ "align-right": {
991
+ sfSymbol: "text.alignright",
992
+ materialSymbol: "format_align_right"
993
+ },
994
+ indent: {
995
+ sfSymbol: "increase.indent",
996
+ materialSymbol: "format_indent_increase"
997
+ },
998
+ "shopping-cart": {
999
+ sfSymbol: "cart",
1000
+ materialSymbol: "shopping_cart"
1001
+ },
1002
+ "credit-card": {
1003
+ sfSymbol: "creditcard",
1004
+ materialSymbol: "credit_card"
1005
+ },
1006
+ "map-pin": {
1007
+ sfSymbol: "mappin",
1008
+ materialSymbol: "location_on"
1009
+ },
1010
+ globe: {
1011
+ sfSymbol: "globe",
1012
+ materialSymbol: "public"
1013
+ },
1014
+ wifi: {
1015
+ sfSymbol: "wifi",
1016
+ materialSymbol: "wifi"
1017
+ },
1018
+ battery: {
1019
+ sfSymbol: "battery.100",
1020
+ materialSymbol: "battery_full"
1021
+ },
1022
+ moon: {
1023
+ sfSymbol: "moon",
1024
+ materialSymbol: "dark_mode"
1025
+ },
1026
+ sun: {
1027
+ sfSymbol: "sun.max",
1028
+ materialSymbol: "light_mode"
1029
+ },
1030
+ square: {
1031
+ sfSymbol: "square",
1032
+ materialSymbol: "crop_square"
1033
+ },
1034
+ circle: {
1035
+ sfSymbol: "circle",
1036
+ materialSymbol: "circle"
1037
+ },
1038
+ "book-open": {
1039
+ sfSymbol: "book",
1040
+ materialSymbol: "menu_book"
1041
+ },
1042
+ "calendar-clock": {
1043
+ sfSymbol: "calendar.badge.clock",
1044
+ materialSymbol: "event_note"
1045
+ },
1046
+ "circle-dot": {
1047
+ sfSymbol: "circle.inset.filled",
1048
+ materialSymbol: "radio_button_checked"
1049
+ },
1050
+ "dollar-sign": {
1051
+ sfSymbol: "dollarsign",
1052
+ materialSymbol: "attach_money"
1053
+ },
1054
+ history: {
1055
+ sfSymbol: "clock.arrow.circlepath",
1056
+ materialSymbol: "history"
1057
+ },
1058
+ "image-plus": {
1059
+ sfSymbol: "photo.badge.plus",
1060
+ materialSymbol: "add_photo_alternate"
1061
+ },
1062
+ layers: {
1063
+ sfSymbol: "square.3.layers.3d",
1064
+ materialSymbol: "layers"
1065
+ },
1066
+ "layout-dashboard": {
1067
+ sfSymbol: "rectangle.3.group",
1068
+ materialSymbol: "dashboard"
1069
+ },
1070
+ "message-square-plus": {
1071
+ sfSymbol: "plus.bubble",
1072
+ materialSymbol: "add_comment"
1073
+ },
1074
+ "messages-square": {
1075
+ sfSymbol: "bubble.left.and.bubble.right",
1076
+ materialSymbol: "forum"
1077
+ },
1078
+ "mouse-pointer-click": {
1079
+ sfSymbol: "cursorarrow.click",
1080
+ materialSymbol: "touch_app"
1081
+ },
1082
+ package: {
1083
+ sfSymbol: "shippingbox",
1084
+ materialSymbol: "inventory_2"
1085
+ },
1086
+ "search-x": {
1087
+ sfSymbol: "magnifyingglass",
1088
+ materialSymbol: "search_off"
1089
+ },
1090
+ shield: {
1091
+ sfSymbol: "shield",
1092
+ materialSymbol: "shield"
1093
+ },
1094
+ sparkles: {
1095
+ sfSymbol: "sparkles",
1096
+ materialSymbol: "auto_awesome"
1097
+ },
1098
+ "step-forward": {
1099
+ sfSymbol: "forward.end.fill",
1100
+ materialSymbol: "skip_next"
1101
+ },
1102
+ "thumbs-up": {
1103
+ sfSymbol: "hand.thumbsup",
1104
+ materialSymbol: "thumb_up"
1105
+ },
1106
+ "trending-down": {
1107
+ sfSymbol: "chart.line.downtrend.xyaxis",
1108
+ materialSymbol: "trending_down"
1109
+ },
1110
+ "trending-up": {
1111
+ sfSymbol: "chart.line.uptrend.xyaxis",
1112
+ materialSymbol: "trending_up"
1113
+ },
1114
+ "user-check": {
1115
+ sfSymbol: "person.crop.circle.badge.checkmark",
1116
+ materialSymbol: "how_to_reg"
1117
+ },
1118
+ "arrow-right-circle": {
1119
+ sfSymbol: "arrow.right.circle",
1120
+ materialSymbol: "arrow_circle_right"
1121
+ },
1122
+ atom: {
1123
+ sfSymbol: "atom",
1124
+ materialSymbol: "science"
1125
+ },
1126
+ ban: {
1127
+ sfSymbol: "nosign",
1128
+ materialSymbol: "block"
1129
+ },
1130
+ "bookmark-plus": {
1131
+ sfSymbol: "bookmark",
1132
+ materialSymbol: "bookmark_add"
1133
+ },
1134
+ briefcase: {
1135
+ sfSymbol: "briefcase",
1136
+ materialSymbol: "work"
1137
+ },
1138
+ "building-2": {
1139
+ sfSymbol: "building.2",
1140
+ materialSymbol: "business"
1141
+ },
1142
+ "clipboard-check": {
1143
+ sfSymbol: "checklist",
1144
+ materialSymbol: "assignment_turned_in"
1145
+ },
1146
+ dices: {
1147
+ sfSymbol: "dice",
1148
+ materialSymbol: "casino"
1149
+ },
1150
+ dna: {
1151
+ sfSymbol: "cross.vial",
1152
+ materialSymbol: "biotech"
1153
+ },
1154
+ "door-open": {
1155
+ sfSymbol: "door.left.hand.open",
1156
+ materialSymbol: "meeting_room"
1157
+ },
1158
+ feather: {
1159
+ sfSymbol: "pencil.line",
1160
+ materialSymbol: "draw"
1161
+ },
1162
+ "file-signature": {
1163
+ sfSymbol: "signature",
1164
+ materialSymbol: "history_edu"
1165
+ },
1166
+ "file-up": {
1167
+ sfSymbol: "arrow.up.doc",
1168
+ materialSymbol: "upload_file"
1169
+ },
1170
+ flame: {
1171
+ sfSymbol: "flame",
1172
+ materialSymbol: "local_fire_department"
1173
+ },
1174
+ "flask-conical": {
1175
+ sfSymbol: "flask",
1176
+ materialSymbol: "science"
1177
+ },
1178
+ gift: {
1179
+ sfSymbol: "gift",
1180
+ materialSymbol: "card_giftcard"
1181
+ },
1182
+ handshake: {
1183
+ sfSymbol: "person.2",
1184
+ materialSymbol: "handshake"
1185
+ },
1186
+ "key-round": {
1187
+ sfSymbol: "key",
1188
+ materialSymbol: "vpn_key"
1189
+ },
1190
+ languages: {
1191
+ sfSymbol: "globe",
1192
+ materialSymbol: "translate"
1193
+ },
1194
+ leaf: {
1195
+ sfSymbol: "leaf",
1196
+ materialSymbol: "eco"
1197
+ },
1198
+ lightbulb: {
1199
+ sfSymbol: "lightbulb",
1200
+ materialSymbol: "lightbulb"
1201
+ },
1202
+ "mail-plus": {
1203
+ sfSymbol: "envelope.badge",
1204
+ materialSymbol: "forward_to_inbox"
1205
+ },
1206
+ "maximize-2": {
1207
+ sfSymbol: "arrow.up.left.and.arrow.down.right",
1208
+ materialSymbol: "open_in_full"
1209
+ },
1210
+ network: {
1211
+ sfSymbol: "network",
1212
+ materialSymbol: "hub"
1213
+ },
1214
+ presentation: {
1215
+ sfSymbol: "play.rectangle",
1216
+ materialSymbol: "slideshow"
1217
+ },
1218
+ repeat: {
1219
+ sfSymbol: "repeat",
1220
+ materialSymbol: "repeat"
1221
+ },
1222
+ route: {
1223
+ sfSymbol: "point.topleft.down.to.point.bottomright.curvepath",
1224
+ materialSymbol: "route"
1225
+ },
1226
+ ruler: {
1227
+ sfSymbol: "ruler",
1228
+ materialSymbol: "straighten"
1229
+ },
1230
+ scale: {
1231
+ sfSymbol: "scalemass",
1232
+ materialSymbol: "balance"
1233
+ },
1234
+ scroll: {
1235
+ sfSymbol: "scroll",
1236
+ materialSymbol: "receipt_long"
1237
+ },
1238
+ "shield-check": {
1239
+ sfSymbol: "checkmark.shield",
1240
+ materialSymbol: "verified_user"
1241
+ },
1242
+ sigma: {
1243
+ sfSymbol: "sum",
1244
+ materialSymbol: "functions"
1245
+ },
1246
+ "sticky-note": {
1247
+ sfSymbol: "note.text",
1248
+ materialSymbol: "sticky_note_2"
1249
+ },
1250
+ store: {
1251
+ sfSymbol: "storefront",
1252
+ materialSymbol: "store"
1253
+ },
1254
+ target: {
1255
+ sfSymbol: "scope",
1256
+ materialSymbol: "gps_fixed"
1257
+ },
1258
+ unlink: {
1259
+ sfSymbol: "link",
1260
+ materialSymbol: "link_off"
1261
+ }
1262
+ }};
1263
+
1264
+ // src/lib/iconNativeMap.ts
1265
+ var ICON_FALLBACK = iconNativeMap_default.fallback;
1266
+ var ICON_NATIVE_MAP = iconNativeMap_default.map;
1267
+ var ICON_ALIASES = [
1268
+ "close",
1269
+ "trash",
1270
+ "loader",
1271
+ "stop",
1272
+ "volume",
1273
+ "volume-off",
1274
+ "refresh",
1275
+ "share",
1276
+ "sort-asc",
1277
+ "sort-desc"
1278
+ ];
1279
+ function resolveNativeIcon(name) {
1280
+ const direct = ICON_NATIVE_MAP[name];
1281
+ if (direct) return direct;
1282
+ if (ICON_ALIASES.includes(name)) {
1283
+ const aliased = ICON_NATIVE_MAP[name];
1284
+ if (aliased) return aliased;
1285
+ }
1286
+ return ICON_FALLBACK;
1287
+ }
1288
+
1289
+ export { ApiError, ICON_ALIASES, ICON_FALLBACK, ICON_NATIVE_MAP, JAZARI_COLORS, apiClient, computeJazariLayout, createCommandSendPump, resolveNativeIcon };