likec4 1.56.0 → 1.58.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 (207) hide show
  1. package/__app__/codegen/react.mjs +7 -8
  2. package/__app__/codegen/webcomponent.mjs +77 -736
  3. package/__app__/src/aichat/index.mjs +8 -0
  4. package/__app__/src/chunks/AIChat.mjs +959 -0
  5. package/__app__/src/chunks/DiagramActorProvider.mjs +7638 -0
  6. package/__app__/src/chunks/LikeC4Styles.mjs +1866 -0
  7. package/__app__/src/chunks/Markdown.mjs +146 -0
  8. package/__app__/src/chunks/NavigationPanel.mjs +61 -0
  9. package/__app__/src/chunks/ProjectsOverview.mjs +540 -0
  10. package/__app__/src/chunks/adhoc-editor.mjs +3386 -0
  11. package/__app__/src/chunks/es.mjs +439 -0
  12. package/__app__/src/chunks/hooks.mjs +145 -0
  13. package/__app__/src/chunks/libs/@dagrejs/dagre.mjs +1894 -0
  14. package/__app__/src/chunks/libs/@floating-ui.mjs +2218 -0
  15. package/__app__/src/chunks/libs/@mantine.mjs +12070 -0
  16. package/__app__/src/chunks/libs/@tabler/icons-react.mjs +252 -0
  17. package/__app__/src/chunks/libs/@tanstack-ai.mjs +1768 -0
  18. package/__app__/src/chunks/libs/@tanstack.mjs +2718 -0
  19. package/__app__/src/chunks/libs/@xstate/react.mjs +1982 -0
  20. package/__app__/src/chunks/libs/@xyflow/react.mjs +5256 -0
  21. package/__app__/src/chunks/libs/bezier-js.mjs +1003 -0
  22. package/__app__/src/chunks/libs/d3.mjs +2842 -0
  23. package/__app__/src/chunks/libs/fast-equals.mjs +268 -0
  24. package/__app__/src/chunks/libs/framer.mjs +5872 -0
  25. package/__app__/src/chunks/libs/remeda.mjs +642 -0
  26. package/__app__/src/chunks/libs/zod.mjs +3170 -0
  27. package/__app__/src/chunks/rolldown-runtime.mjs +23 -0
  28. package/__app__/src/chunks/styled-system.mjs +1040 -0
  29. package/__app__/src/fonts.css +1 -1
  30. package/__app__/src/main.mjs +14847 -1
  31. package/__app__/src/style.css +1 -1
  32. package/config/schema.json +14 -41
  33. package/dist/chunks/enableServer.mjs +1 -0
  34. package/dist/chunks/filenames.mjs +2 -2
  35. package/dist/chunks/index2.d.mts +2057 -722
  36. package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
  37. package/dist/chunks/libs/@logtape/logtape.mjs +4 -3
  38. package/dist/chunks/libs/@ts-graphviz/ast.mjs +3 -0
  39. package/dist/chunks/libs/@ts-graphviz/common.d.mts +9 -0
  40. package/dist/chunks/libs/@ts-graphviz/core.mjs +1 -0
  41. package/dist/chunks/libs/chevrotain-allstar.mjs +2 -2
  42. package/dist/chunks/libs/chevrotain.mjs +26 -26
  43. package/dist/chunks/libs/langium.d.mts +5 -5
  44. package/dist/chunks/libs/langium.mjs +10 -10
  45. package/dist/chunks/libs/merge-error-cause.mjs +1 -1
  46. package/dist/chunks/libs/pako.mjs +3 -1
  47. package/dist/chunks/libs/pretty-ms.mjs +1 -1
  48. package/dist/chunks/libs/remeda.mjs +1 -1
  49. package/dist/chunks/libs/ufo.mjs +1 -1
  50. package/dist/chunks/libs/unstorage.mjs +1 -1
  51. package/dist/chunks/libs/which.mjs +1 -1
  52. package/dist/chunks/libs/zod.d.mts +60 -25
  53. package/dist/chunks/libs/zod.mjs +65 -0
  54. package/dist/chunks/node.mjs +84 -56
  55. package/dist/chunks/sequence-view.mjs +1 -1
  56. package/dist/chunks/vite-plugin.mjs +593 -0
  57. package/dist/cli/index.mjs +184 -141
  58. package/dist/index.d.mts +2 -131
  59. package/dist/index.mjs +1 -1
  60. package/dist/model/index.d.mts +2 -2
  61. package/dist/vite-plugin/index.d.mts +53 -2
  62. package/dist/vite-plugin/index.mjs +1 -1
  63. package/dist/vite-plugin/internal/index.d.mts +327 -4
  64. package/dist/vite-plugin/internal/index.mjs +946 -1
  65. package/package.json +85 -72
  66. package/react/index.d.mts +174 -73
  67. package/react/index.mjs +42468 -38926
  68. package/vite-plugin-modules.d.ts +4 -0
  69. package/__app__/chunks/ColorSchemeToggle.mjs +0 -1
  70. package/__app__/chunks/DiagramActorProvider.mjs +0 -10
  71. package/__app__/chunks/Fallback.mjs +0 -1
  72. package/__app__/chunks/Header.mjs +0 -13
  73. package/__app__/chunks/IconRenderer.mjs +0 -1
  74. package/__app__/chunks/LikeC4Diagram.mjs +0 -19
  75. package/__app__/chunks/LikeC4ModelContext.mjs +0 -1
  76. package/__app__/chunks/LikeC4ModelContext2.mjs +0 -1
  77. package/__app__/chunks/LikeC4Styles.mjs +0 -48
  78. package/__app__/chunks/NavigationPanel.mjs +0 -1
  79. package/__app__/chunks/StaticLikeC4Diagram.mjs +0 -1
  80. package/__app__/chunks/ViewReact.mjs +0 -1
  81. package/__app__/chunks/__root.mjs +0 -1
  82. package/__app__/chunks/adhoc-editor.mjs +0 -1
  83. package/__app__/chunks/hooks.mjs +0 -1
  84. package/__app__/chunks/libs/@dagrejs/dagre.mjs +0 -1
  85. package/__app__/chunks/libs/@floating-ui/core.mjs +0 -1
  86. package/__app__/chunks/libs/@floating-ui/dom.mjs +0 -1
  87. package/__app__/chunks/libs/@floating-ui/react.mjs +0 -1
  88. package/__app__/chunks/libs/@mantine/core.mjs +0 -41
  89. package/__app__/chunks/libs/@mantine/hooks.mjs +0 -1
  90. package/__app__/chunks/libs/@nanostores/react.mjs +0 -1
  91. package/__app__/chunks/libs/@react-hookz/web.mjs +0 -1
  92. package/__app__/chunks/libs/@tabler/icons-react.mjs +0 -15
  93. package/__app__/chunks/libs/@tanstack/history.mjs +0 -1
  94. package/__app__/chunks/libs/@tanstack/react-router.mjs +0 -3
  95. package/__app__/chunks/libs/@tanstack/router-core.mjs +0 -1
  96. package/__app__/chunks/libs/@xstate/react.mjs +0 -1
  97. package/__app__/chunks/libs/@xstate/store.mjs +0 -1
  98. package/__app__/chunks/libs/@xyflow/react.mjs +0 -7
  99. package/__app__/chunks/libs/@zag-js/anatomy.mjs +0 -1
  100. package/__app__/chunks/libs/@zag-js/collection.mjs +0 -1
  101. package/__app__/chunks/libs/@zag-js/core.mjs +0 -1
  102. package/__app__/chunks/libs/@zag-js/react.mjs +0 -1
  103. package/__app__/chunks/libs/@zag-js/tree-view.mjs +0 -1
  104. package/__app__/chunks/libs/bezier-js.mjs +0 -1
  105. package/__app__/chunks/libs/d3-path.mjs +0 -1
  106. package/__app__/chunks/libs/d3-shape.mjs +0 -1
  107. package/__app__/chunks/libs/fast-equals.mjs +0 -1
  108. package/__app__/chunks/libs/framer-motion.mjs +0 -9
  109. package/__app__/chunks/libs/html-to-image.mjs +0 -2
  110. package/__app__/chunks/libs/motion-dom.mjs +0 -1
  111. package/__app__/chunks/libs/motion.mjs +0 -1
  112. package/__app__/chunks/libs/nanostores.mjs +0 -1
  113. package/__app__/chunks/libs/react-error-boundary.mjs +0 -1
  114. package/__app__/chunks/libs/react-resizable-panels.mjs +0 -1
  115. package/__app__/chunks/libs/remeda.mjs +0 -1
  116. package/__app__/chunks/libs/xstate.mjs +0 -1
  117. package/__app__/chunks/libs/zod.mjs +0 -39
  118. package/__app__/chunks/rolldown-runtime.mjs +0 -1
  119. package/__app__/chunks/safeCtx.mjs +0 -1
  120. package/__app__/chunks/searchParams.mjs +0 -1
  121. package/__app__/chunks/single-index.mjs +0 -1
  122. package/__app__/chunks/styled-system.mjs +0 -1
  123. package/__app__/chunks/styles.css.mjs +0 -1
  124. package/__app__/chunks/useLikeC4Project.mjs +0 -1
  125. package/__app__/chunks/useUpdateEffect.mjs +0 -1
  126. package/__app__/src/pages/AdHocViewEditor.mjs +0 -1
  127. package/__app__/src/pages/EmbedPage.mjs +0 -1
  128. package/__app__/src/pages/ExportPage.mjs +0 -1
  129. package/__app__/src/pages/ProjectsOverview.mjs +0 -1
  130. package/__app__/src/pages/ViewAsD2.mjs +0 -1
  131. package/__app__/src/pages/ViewAsDot.mjs +0 -1
  132. package/__app__/src/pages/ViewAsMmd.mjs +0 -1
  133. package/__app__/src/pages/ViewAsPuml.mjs +0 -1
  134. package/__app__/src/pages/ViewEditor.mjs +0 -1
  135. package/__app__/src/pages/ViewReact.mjs +0 -1
  136. package/__app__/src/routeTree.gen.mjs +0 -1
  137. package/__app__/src/routes/__root.mjs +0 -1
  138. package/__app__/src/routes/_single/adhoc.mjs +0 -1
  139. package/__app__/src/routes/_single/embed._viewId.mjs +0 -1
  140. package/__app__/src/routes/_single/export._viewId.mjs +0 -1
  141. package/__app__/src/routes/_single/route.mjs +0 -1
  142. package/__app__/src/routes/_single/single-index.mjs +0 -1
  143. package/__app__/src/routes/_single/view._viewId.d2.mjs +0 -1
  144. package/__app__/src/routes/_single/view._viewId.dot.mjs +0 -1
  145. package/__app__/src/routes/_single/view._viewId.index.mjs +0 -1
  146. package/__app__/src/routes/_single/view._viewId.mjs +0 -1
  147. package/__app__/src/routes/_single/view._viewId.mmd.mjs +0 -1
  148. package/__app__/src/routes/_single/view._viewId.puml.mjs +0 -1
  149. package/__app__/src/routes/_single/webcomponent._.mjs +0 -33
  150. package/__app__/src/routes/index.mjs +0 -1
  151. package/__app__/src/routes/project._projectId/-components.mjs +0 -1
  152. package/__app__/src/routes/project._projectId/adhoc.mjs +0 -1
  153. package/__app__/src/routes/project._projectId/embed._viewId.mjs +0 -1
  154. package/__app__/src/routes/project._projectId/export._viewId.mjs +0 -1
  155. package/__app__/src/routes/project._projectId/index.mjs +0 -1
  156. package/__app__/src/routes/project._projectId/route.mjs +0 -1
  157. package/__app__/src/routes/project._projectId/view._viewId.d2.mjs +0 -1
  158. package/__app__/src/routes/project._projectId/view._viewId.dot.mjs +0 -1
  159. package/__app__/src/routes/project._projectId/view._viewId.index.mjs +0 -1
  160. package/__app__/src/routes/project._projectId/view._viewId.mjs +0 -1
  161. package/__app__/src/routes/project._projectId/view._viewId.mmd.mjs +0 -1
  162. package/__app__/src/routes/project._projectId/view._viewId.puml.mjs +0 -1
  163. package/__app__/src/routes/projects.mjs +0 -1
  164. package/dist/chunks/libs/@chevrotain/utils.mjs +0 -1
  165. package/dist/chunks/libs/@hono/mcp.mjs +0 -45
  166. package/dist/chunks/libs/@hono/node-server.mjs +0 -1
  167. package/dist/chunks/libs/@logtape/logtape.d.mts +0 -1023
  168. package/dist/chunks/libs/@modelcontextprotocol/sdk.mjs +0 -12
  169. package/dist/chunks/libs/ajv.mjs +0 -1
  170. package/dist/chunks/libs/ansi-align.mjs +0 -2
  171. package/dist/chunks/libs/ansi-regex.mjs +0 -1
  172. package/dist/chunks/libs/ansi-styles.mjs +0 -1
  173. package/dist/chunks/libs/atomically.mjs +0 -1
  174. package/dist/chunks/libs/boxen.mjs +0 -22
  175. package/dist/chunks/libs/conf.mjs +0 -1
  176. package/dist/chunks/libs/defu.mjs +0 -1
  177. package/dist/chunks/libs/destr.mjs +0 -1
  178. package/dist/chunks/libs/find-up-simple.mjs +0 -1
  179. package/dist/chunks/libs/get-port.mjs +0 -1
  180. package/dist/chunks/libs/hono.mjs +0 -1
  181. package/dist/chunks/libs/is-docker.mjs +0 -1
  182. package/dist/chunks/libs/is-error-instance.mjs +0 -1
  183. package/dist/chunks/libs/is-inside-container.mjs +0 -1
  184. package/dist/chunks/libs/is-plain-obj.mjs +0 -1
  185. package/dist/chunks/libs/isexe.mjs +0 -1
  186. package/dist/chunks/libs/ky.mjs +0 -3
  187. package/dist/chunks/libs/p-debounce.mjs +0 -1
  188. package/dist/chunks/libs/p-limit.mjs +0 -1
  189. package/dist/chunks/libs/p-timeout.mjs +0 -1
  190. package/dist/chunks/libs/package-up.mjs +0 -1
  191. package/dist/chunks/libs/parse-ms.mjs +0 -1
  192. package/dist/chunks/libs/safe-stringify.mjs +0 -1
  193. package/dist/chunks/libs/strip-indent.mjs +0 -1
  194. package/dist/chunks/libs/tinyrainbow.mjs +0 -1
  195. package/dist/chunks/libs/ts-graphviz.d.mts +0 -12
  196. package/dist/chunks/libs/ts-graphviz.mjs +0 -4
  197. package/dist/chunks/libs/vscode-languageserver.mjs +0 -1
  198. package/dist/chunks/libs/word-wrap.mjs +0 -12
  199. package/dist/chunks/plugin.mjs +0 -400
  200. package/dist/vite-plugin/internal/chunks/libs/@nanostores/react.d.mts +0 -269
  201. package/dist/vite-plugin/internal/chunks/libs/@nanostores/react.mjs +0 -1
  202. package/dist/vite-plugin/internal/chunks/libs/birpc.mjs +0 -1
  203. package/dist/vite-plugin/internal/chunks/libs/fast-equals.mjs +0 -1
  204. package/dist/vite-plugin/internal/chunks/libs/nanostores.d.mts +0 -59
  205. package/dist/vite-plugin/internal/chunks/libs/nanostores.mjs +0 -1
  206. package/dist/vite-plugin/internal/chunks/libs/remeda.mjs +0 -1
  207. package/dist/vite-plugin/internal/chunks/rolldown-runtime.mjs +0 -1
@@ -0,0 +1,642 @@
1
+ import { i as s } from "../rolldown-runtime.mjs";
2
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
3
+ function e$16(s, c, l) {
4
+ let r = (l) => s(l, ...c);
5
+ return l === void 0 ? r : Object.assign(r, {
6
+ lazy: l,
7
+ lazyArgs: c
8
+ });
9
+ }
10
+ s(e$16, "e");
11
+ //#endregion
12
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/purry.js
13
+ function t$29(s, c, l) {
14
+ let u = s.length - c.length;
15
+ if (u === 0) return s(...c);
16
+ if (u === 1) return e$16(s, c, l);
17
+ throw Error("Wrong number of arguments");
18
+ }
19
+ s(t$29, "t");
20
+ //#endregion
21
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/clamp.js
22
+ function t$28(...s) {
23
+ return t$29(c, s);
24
+ }
25
+ s(t$28, "t");
26
+ var c = /* @__PURE__ */ s((s, { min: c, max: l }) => c !== void 0 && s < c ? c : l !== void 0 && s > l ? l : s, "n");
27
+ //#endregion
28
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/concat.js
29
+ function t$27(...s) {
30
+ return t$29(l, s);
31
+ }
32
+ s(t$27, "t");
33
+ var l = /* @__PURE__ */ s((s, c) => [...s, ...c], "n"), u = {
34
+ done: !1,
35
+ hasNext: !1
36
+ }, d = /* @__PURE__ */ s((s) => ({
37
+ hasNext: !0,
38
+ next: s,
39
+ done: !1
40
+ }), "r");
41
+ //#endregion
42
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/pipe.js
43
+ function t$25(s, ...c) {
44
+ let l = s, u = c.map((s) => "lazy" in s ? r$13(s) : void 0), d = 0;
45
+ for (; d < c.length;) {
46
+ if (u[d] === void 0 || !i$7(l)) {
47
+ let s = c[d];
48
+ l = s(l), d += 1;
49
+ continue;
50
+ }
51
+ let s = [];
52
+ for (let l = d; l < c.length; l++) {
53
+ let c = u[l];
54
+ if (c === void 0 || (s.push(c), c.isSingle)) break;
55
+ }
56
+ let f = [];
57
+ for (let c of l) if (n$26(c, f, s)) break;
58
+ let { isSingle: p } = s.at(-1);
59
+ l = p ? f[0] : f, d += s.length;
60
+ }
61
+ return l;
62
+ }
63
+ s(t$25, "t");
64
+ function n$26(s, c, l) {
65
+ if (l.length === 0) return c.push(s), !1;
66
+ let d = s, f = u, p = !1;
67
+ for (let [s, u] of l.entries()) {
68
+ let { index: m, items: h } = u;
69
+ if (h.push(d), f = u(d, m, h), u.index += 1, f.hasNext) {
70
+ if (f.hasMany ?? !1) {
71
+ for (let u of f.next) if (n$26(u, c, l.slice(s + 1))) return !0;
72
+ return p;
73
+ }
74
+ d = f.next;
75
+ }
76
+ if (!f.hasNext) break;
77
+ f.done && (p = !0);
78
+ }
79
+ return f.hasNext && c.push(d), p;
80
+ }
81
+ s(n$26, "n");
82
+ function r$13(s) {
83
+ let { lazy: c, lazyArgs: l } = s, u = c(...l);
84
+ return Object.assign(u, {
85
+ isSingle: c.single ?? !1,
86
+ index: 0,
87
+ items: []
88
+ });
89
+ }
90
+ s(r$13, "r");
91
+ function i$7(s) {
92
+ return typeof s == "string" || typeof s == "object" && !!s && Symbol.iterator in s;
93
+ }
94
+ s(i$7, "i");
95
+ //#endregion
96
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/purryFromLazy-DELFL6Wm.js
97
+ function t$24(s, c) {
98
+ let l = c.length - s.length;
99
+ if (l === 1) {
100
+ let [l, ...u] = c;
101
+ return t$25(l, {
102
+ lazy: s,
103
+ lazyArgs: u
104
+ });
105
+ }
106
+ if (l === 0) {
107
+ let l = {
108
+ lazy: s,
109
+ lazyArgs: c
110
+ };
111
+ return Object.assign((s) => t$25(s, l), l);
112
+ }
113
+ throw Error("Wrong number of arguments");
114
+ }
115
+ s(t$24, "t");
116
+ //#endregion
117
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/difference.js
118
+ function r$12(...s) {
119
+ return t$24(i$6, s);
120
+ }
121
+ s(r$12, "r");
122
+ function i$6(s) {
123
+ if (s.length === 0) return d;
124
+ let c = /* @__PURE__ */ new Map();
125
+ for (let l of s) c.set(l, (c.get(l) ?? 0) + 1);
126
+ return (s) => {
127
+ let l = c.get(s);
128
+ return l === void 0 || l === 0 ? {
129
+ done: !1,
130
+ hasNext: !0,
131
+ next: s
132
+ } : (c.set(s, l - 1), u);
133
+ };
134
+ }
135
+ s(i$6, "i");
136
+ //#endregion
137
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/hasAtLeast.js
138
+ function t$23(...s) {
139
+ return t$29(f, s);
140
+ }
141
+ s(t$23, "t");
142
+ var f = /* @__PURE__ */ s((s, c) => s.length >= c, "n"), p = {
143
+ asc: (s, c) => s > c,
144
+ desc: (s, c) => s < c
145
+ };
146
+ function t$22(s, c) {
147
+ let [l, ...u] = c;
148
+ if (!i$5(l)) return s(l, r$11(...u));
149
+ let d = r$11(l, ...u);
150
+ return (c) => s(c, d);
151
+ }
152
+ s(t$22, "t");
153
+ function r$11(s, c, ...l) {
154
+ let u = typeof s == "function" ? s : s[0], d = typeof s == "function" ? "asc" : s[1], { [d]: f } = p, m = c === void 0 ? void 0 : r$11(c, ...l);
155
+ return (s, c) => {
156
+ let l = u(s), d = u(c);
157
+ return f(l, d) ? 1 : f(d, l) ? -1 : m?.(s, c) ?? 0;
158
+ };
159
+ }
160
+ s(r$11, "r");
161
+ function i$5(s) {
162
+ if (m(s)) return !0;
163
+ if (typeof s != "object" || !Array.isArray(s)) return !1;
164
+ let [c, l, ...u] = s;
165
+ return m(c) && typeof l == "string" && l in p && u.length === 0;
166
+ }
167
+ s(i$5, "i");
168
+ var m = /* @__PURE__ */ s((s) => typeof s == "function" && s.length === 1, "a");
169
+ //#endregion
170
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/entries.js
171
+ function t$21(...s) {
172
+ return t$29(Object.entries, s);
173
+ }
174
+ s(t$21, "t");
175
+ //#endregion
176
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/filter.js
177
+ function n$24(...s) {
178
+ return t$29(h, s, g);
179
+ }
180
+ s(n$24, "n");
181
+ var h = /* @__PURE__ */ s((s, c) => s.filter(c), "r"), g = /* @__PURE__ */ s((s) => (c, l, d) => s(c, l, d) ? {
182
+ done: !1,
183
+ hasNext: !0,
184
+ next: c
185
+ } : u, "i"), _ = /* @__PURE__ */ s((s) => Object.assign(s, { single: !0 }), "e");
186
+ //#endregion
187
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/find.js
188
+ function r$9(...s) {
189
+ return t$29(v, s, _(y));
190
+ }
191
+ s(r$9, "r");
192
+ var v = /* @__PURE__ */ s((s, c) => s.find(c), "i"), y = /* @__PURE__ */ s((s) => (c, l, d) => s(c, l, d) ? {
193
+ done: !0,
194
+ hasNext: !0,
195
+ next: c
196
+ } : u, "a");
197
+ //#endregion
198
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/findLast.js
199
+ function t$20(...s) {
200
+ return t$29(b, s);
201
+ }
202
+ s(t$20, "t");
203
+ var b = /* @__PURE__ */ s((s, c) => {
204
+ for (let l = s.length - 1; l >= 0; l--) {
205
+ let u = s[l];
206
+ if (c(u, l, s)) return u;
207
+ }
208
+ }, "n");
209
+ //#endregion
210
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/first.js
211
+ function n$22(...s) {
212
+ return t$29(x, s, _(S));
213
+ }
214
+ s(n$22, "n");
215
+ var x = /* @__PURE__ */ s(([s]) => s, "r"), S = /* @__PURE__ */ s(() => C, "i"), C = /* @__PURE__ */ s((s) => ({
216
+ hasNext: !0,
217
+ next: s,
218
+ done: !0
219
+ }), "a");
220
+ //#endregion
221
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/flatMap.js
222
+ function t$19(...s) {
223
+ return t$29(w, s, T);
224
+ }
225
+ s(t$19, "t");
226
+ var w = /* @__PURE__ */ s((s, c) => s.flatMap(c), "n"), T = /* @__PURE__ */ s((s) => (c, l, u) => {
227
+ let d = s(c, l, u);
228
+ return Array.isArray(d) ? {
229
+ done: !1,
230
+ hasNext: !0,
231
+ hasMany: !0,
232
+ next: d
233
+ } : {
234
+ done: !1,
235
+ hasNext: !0,
236
+ next: d
237
+ };
238
+ }, "r");
239
+ //#endregion
240
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/forEachObj.js
241
+ function t$18(...s) {
242
+ return t$29(n$20, s);
243
+ }
244
+ s(t$18, "t");
245
+ function n$20(s, c) {
246
+ for (let [l, u] of Object.entries(s)) c(u, l, s);
247
+ return s;
248
+ }
249
+ s(n$20, "n");
250
+ //#endregion
251
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/groupBy.js
252
+ function t$17(...s) {
253
+ return t$29(E, s);
254
+ }
255
+ s(t$17, "t");
256
+ var E = /* @__PURE__ */ s((s, c) => {
257
+ let l = Object.create(null);
258
+ for (let u = 0; u < s.length; u++) {
259
+ let d = s[u], f = c(d, u, s);
260
+ if (f !== void 0) {
261
+ let s = l[f];
262
+ s === void 0 ? l[f] = [d] : s.push(d);
263
+ }
264
+ }
265
+ return Object.setPrototypeOf(l, Object.prototype), l;
266
+ }, "n");
267
+ //#endregion
268
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/isDeepEqual.js
269
+ function t$16(...s) {
270
+ return t$29(n$18, s);
271
+ }
272
+ s(t$16, "t");
273
+ function n$18(s, c) {
274
+ if (s === c || Object.is(s, c)) return !0;
275
+ if (typeof s != "object" || typeof c != "object" || s === null || c === null || !r$6(s, c)) return !1;
276
+ if (Array.isArray(s)) return i$1(s, c);
277
+ if (s instanceof Map) return a(s, c);
278
+ if (s instanceof Set) return o(s, c);
279
+ if (s instanceof Date) return s.getTime() === c.getTime();
280
+ if (s instanceof RegExp) return s.toString() === c.toString();
281
+ if (Object.keys(s).length !== Object.keys(c).length) return !1;
282
+ for (let [l, u] of Object.entries(s)) if (!(l in c) || !n$18(u, c[l])) return !1;
283
+ return !0;
284
+ }
285
+ s(n$18, "n");
286
+ function r$6(s, c) {
287
+ let l = Object.getPrototypeOf(s), u = Object.getPrototypeOf(c);
288
+ return l === u ? !0 : l === null ? u === Object.prototype : l === Object.prototype && u === null;
289
+ }
290
+ s(r$6, "r");
291
+ function i$1(s, c) {
292
+ if (s.length !== c.length) return !1;
293
+ for (let [l, u] of s.entries()) if (!n$18(u, c[l])) return !1;
294
+ return !0;
295
+ }
296
+ s(i$1, "i");
297
+ function a(s, c) {
298
+ if (s.size !== c.size) return !1;
299
+ for (let [l, u] of s.entries()) if (!c.has(l) || !n$18(u, c.get(l))) return !1;
300
+ return !0;
301
+ }
302
+ function o(s, c) {
303
+ if (s.size !== c.size) return !1;
304
+ let l = [...c];
305
+ for (let c of s) {
306
+ let s = !1;
307
+ for (let [u, d] of l.entries()) if (n$18(c, d)) {
308
+ s = !0, l.splice(u, 1);
309
+ break;
310
+ }
311
+ if (!s) return !1;
312
+ }
313
+ return !0;
314
+ }
315
+ //#endregion
316
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/hasSubObject.js
317
+ function n$17(...s) {
318
+ return t$29(r$5, s);
319
+ }
320
+ s(n$17, "n");
321
+ function r$5(s, c) {
322
+ for (let [l, u] of Object.entries(c)) if (!Object.hasOwn(s, l) || !t$16(u, s[l])) return !1;
323
+ return !0;
324
+ }
325
+ s(r$5, "r");
326
+ //#endregion
327
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/isArray.js
328
+ function e$13(s) {
329
+ return Array.isArray(s);
330
+ }
331
+ s(e$13, "e");
332
+ //#endregion
333
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/isBoolean.js
334
+ function e$12(s) {
335
+ return typeof s == "boolean";
336
+ }
337
+ s(e$12, "e");
338
+ //#endregion
339
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/isDefined.js
340
+ function e$11(s) {
341
+ return s !== void 0;
342
+ }
343
+ s(e$11, "e");
344
+ //#endregion
345
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/isEmpty.js
346
+ function e$10(s) {
347
+ return s === "" || s === void 0 ? !0 : Array.isArray(s) ? s.length === 0 : Object.keys(s).length === 0;
348
+ }
349
+ s(e$10, "e");
350
+ //#endregion
351
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/isEmptyish.js
352
+ function e$9(s) {
353
+ if (s == null || s === "") return !0;
354
+ if (typeof s != "object") return !1;
355
+ if ("length" in s && typeof s.length == "number") return s.length === 0;
356
+ if ("size" in s && typeof s.size == "number") return s.size === 0;
357
+ for (let c in s) return !1;
358
+ return Object.getOwnPropertySymbols(s).length === 0;
359
+ }
360
+ s(e$9, "e");
361
+ //#endregion
362
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/isFunction.js
363
+ var D = /* @__PURE__ */ s((s) => typeof s == "function", "e");
364
+ //#endregion
365
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/isNonNullish.js
366
+ function e$7(s) {
367
+ return s != null;
368
+ }
369
+ s(e$7, "e");
370
+ //#endregion
371
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/isNot.js
372
+ function e$6(s) {
373
+ return (c) => !s(c);
374
+ }
375
+ s(e$6, "e");
376
+ //#endregion
377
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/isNullish.js
378
+ function e$5(s) {
379
+ return s == null;
380
+ }
381
+ s(e$5, "e");
382
+ //#endregion
383
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/isNumber.js
384
+ function e$4(s) {
385
+ return typeof s == "number" && !Number.isNaN(s);
386
+ }
387
+ s(e$4, "e");
388
+ //#endregion
389
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/isPlainObject.js
390
+ function e$3(s) {
391
+ if (typeof s != "object" || !s) return !1;
392
+ let c = Object.getPrototypeOf(s);
393
+ return c === null || c === Object.prototype;
394
+ }
395
+ s(e$3, "e");
396
+ //#endregion
397
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/isShallowEqual.js
398
+ function t$15(...s) {
399
+ return t$29(n$16, s);
400
+ }
401
+ s(t$15, "t");
402
+ function n$16(s, c) {
403
+ if (s === c || Object.is(s, c)) return !0;
404
+ if (typeof s != "object" || !s || typeof c != "object" || !c) return !1;
405
+ if (s instanceof Map && c instanceof Map) return r$4(s, c);
406
+ if (s instanceof Set && c instanceof Set) return i(s, c);
407
+ let l = Object.keys(s);
408
+ if (l.length !== Object.keys(c).length) return !1;
409
+ for (let u of l) {
410
+ if (!Object.hasOwn(c, u)) return !1;
411
+ let { [u]: l } = s, { [u]: d } = c;
412
+ if (l !== d || !Object.is(l, d)) return !1;
413
+ }
414
+ return !0;
415
+ }
416
+ s(n$16, "n");
417
+ function r$4(s, c) {
418
+ if (s.size !== c.size) return !1;
419
+ for (let [l, u] of s) {
420
+ let s = c.get(l);
421
+ if (u !== s || !Object.is(u, s)) return !1;
422
+ }
423
+ return !0;
424
+ }
425
+ s(r$4, "r");
426
+ function i(s, c) {
427
+ if (s.size !== c.size) return !1;
428
+ for (let l of s) if (!c.has(l)) return !1;
429
+ return !0;
430
+ }
431
+ //#endregion
432
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/isString.js
433
+ function e$2(s) {
434
+ return typeof s == "string";
435
+ }
436
+ s(e$2, "e");
437
+ //#endregion
438
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/isTruthy.js
439
+ function e$1(s) {
440
+ return !!s;
441
+ }
442
+ s(e$1, "e");
443
+ //#endregion
444
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/join.js
445
+ function t$14(...s) {
446
+ return t$29(O, s);
447
+ }
448
+ s(t$14, "t");
449
+ var O = /* @__PURE__ */ s((s, c) => s.join(c), "n");
450
+ //#endregion
451
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/keys.js
452
+ function t$13(...s) {
453
+ return t$29(Object.keys, s);
454
+ }
455
+ s(t$13, "t");
456
+ //#endregion
457
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/last.js
458
+ function t$12(...s) {
459
+ return t$29(k, s);
460
+ }
461
+ s(t$12, "t");
462
+ var k = /* @__PURE__ */ s((s) => s.at(-1), "n");
463
+ //#endregion
464
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/map.js
465
+ function t$11(...s) {
466
+ return t$29(A, s, j);
467
+ }
468
+ s(t$11, "t");
469
+ var A = /* @__PURE__ */ s((s, c) => s.map(c), "n"), j = /* @__PURE__ */ s((s) => (c, l, u) => ({
470
+ done: !1,
471
+ hasNext: !0,
472
+ next: s(c, l, u)
473
+ }), "r");
474
+ //#endregion
475
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/mapToObj.js
476
+ function t$10(...s) {
477
+ return t$29(n$12, s);
478
+ }
479
+ s(t$10, "t");
480
+ function n$12(s, c) {
481
+ let l = {};
482
+ for (let [u, d] of s.entries()) {
483
+ let [f, p] = c(d, u, s);
484
+ l[f] = p;
485
+ }
486
+ return l;
487
+ }
488
+ s(n$12, "n");
489
+ //#endregion
490
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/mapValues.js
491
+ function t$9(...s) {
492
+ return t$29(n$11, s);
493
+ }
494
+ s(t$9, "t");
495
+ function n$11(s, c) {
496
+ let l = {};
497
+ for (let [u, d] of Object.entries(s)) l[u] = c(d, u, s);
498
+ return l;
499
+ }
500
+ s(n$11, "n");
501
+ //#endregion
502
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/mergeDeep.js
503
+ function n$10(...s) {
504
+ return t$29(r$2, s);
505
+ }
506
+ s(n$10, "n");
507
+ function r$2(s, c) {
508
+ let l = {
509
+ ...s,
510
+ ...c
511
+ };
512
+ for (let u in c) {
513
+ if (!(u in s)) continue;
514
+ let { [u]: d } = s;
515
+ if (!e$3(d)) continue;
516
+ let { [u]: f } = c;
517
+ e$3(f) && (l[u] = r$2(d, f));
518
+ }
519
+ return l;
520
+ }
521
+ s(r$2, "r");
522
+ //#endregion
523
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/omit.js
524
+ function n$9(...s) {
525
+ return t$29(r$1, s);
526
+ }
527
+ s(n$9, "n");
528
+ function r$1(s, c) {
529
+ if (!t$23(c, 1)) return { ...s };
530
+ if (!t$23(c, 2)) {
531
+ let { [c[0]]: l, ...u } = s;
532
+ return u;
533
+ }
534
+ let l = { ...s };
535
+ for (let s of c) delete l[s];
536
+ return l;
537
+ }
538
+ s(r$1, "r");
539
+ //#endregion
540
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/only.js
541
+ function t$8(...s) {
542
+ return t$29(M, s);
543
+ }
544
+ s(t$8, "t");
545
+ var M = /* @__PURE__ */ s((s) => s.length === 1 ? s[0] : void 0, "n");
546
+ //#endregion
547
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/pick.js
548
+ function t$7(...s) {
549
+ return t$29(n$7, s);
550
+ }
551
+ s(t$7, "t");
552
+ function n$7(s, c) {
553
+ let l = {};
554
+ for (let u of c) u in s && (l[u] = s[u]);
555
+ return l;
556
+ }
557
+ s(n$7, "n");
558
+ //#endregion
559
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/pickBy.js
560
+ function t$6(...s) {
561
+ return t$29(n$6, s);
562
+ }
563
+ s(t$6, "t");
564
+ function n$6(s, c) {
565
+ let l = {};
566
+ for (let [u, d] of Object.entries(s)) c(d, u, s) && (l[u] = d);
567
+ return l;
568
+ }
569
+ s(n$6, "n");
570
+ //#endregion
571
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/prop.js
572
+ function e(s, ...c) {
573
+ return typeof s == "string" || typeof s == "number" || typeof s == "symbol" ? (l) => t$5(l, s, ...c) : t$5(s, ...c);
574
+ }
575
+ function t$5(s, ...c) {
576
+ let l = s;
577
+ for (let s of c) {
578
+ if (l == null) return;
579
+ l = l[s];
580
+ }
581
+ return l;
582
+ }
583
+ s(t$5, "t");
584
+ //#endregion
585
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/reduce.js
586
+ function t$4(...s) {
587
+ return t$29(N, s);
588
+ }
589
+ s(t$4, "t");
590
+ var N = /* @__PURE__ */ s((s, c, l) => s.reduce(c, l), "n");
591
+ //#endregion
592
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/reverse.js
593
+ function t$3(...s) {
594
+ return t$29(n$4, s);
595
+ }
596
+ s(t$3, "t");
597
+ function n$4(s) {
598
+ return [...s].reverse();
599
+ }
600
+ s(n$4, "n");
601
+ //#endregion
602
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/sort.js
603
+ function t$2(...s) {
604
+ return t$29(n$3, s);
605
+ }
606
+ s(t$2, "t");
607
+ function n$3(s, c) {
608
+ let l = [...s];
609
+ return l.sort(c), l;
610
+ }
611
+ s(n$3, "n");
612
+ //#endregion
613
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/sortBy.js
614
+ function t$1(...s) {
615
+ return t$22(P, s);
616
+ }
617
+ s(t$1, "t");
618
+ var P = /* @__PURE__ */ s((s, c) => [...s].sort(c), "n");
619
+ //#endregion
620
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/tap.js
621
+ function t(...s) {
622
+ return t$29(n$1, s);
623
+ }
624
+ function n$1(s, c) {
625
+ return c(s), s;
626
+ }
627
+ s(n$1, "n");
628
+ //#endregion
629
+ //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/unique.js
630
+ function n(...s) {
631
+ return t$24(r, s);
632
+ }
633
+ function r() {
634
+ let s = /* @__PURE__ */ new Set();
635
+ return (c) => s.has(c) ? u : (s.add(c), {
636
+ done: !1,
637
+ hasNext: !0,
638
+ next: c
639
+ });
640
+ }
641
+ //#endregion
642
+ export { e$11 as A, n$24 as B, e$4 as C, D, e$7 as E, t$18 as F, t$27 as G, t$23 as H, t$19 as I, t$28 as K, n$22 as L, e$13 as M, n$17 as N, e$9 as O, t$17 as P, t$20 as R, e$3 as S, e$6 as T, r$12 as U, t$21 as V, t$25 as W, t$13 as _, t$3 as a, e$2 as b, t$6 as c, n$9 as d, n$10 as f, t$12 as g, t$11 as h, t$2 as i, e$12 as j, e$10 as k, t$7 as l, t$10 as m, t as n, t$4 as o, t$9 as p, t$29 as q, t$1 as r, e as s, n as t, t$8 as u, t$14 as v, e$5 as w, t$15 as x, e$1 as y, r$9 as z };