@ddd-tool/domain-designer-cli 0.1.0-beta.9 → 0.3.1

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 (107) hide show
  1. package/README.md +12 -20
  2. package/bin/domain-designer-cli.cjs +19148 -18666
  3. package/package.json +42 -23
  4. package/packages/core/dist/README.md +43 -0
  5. package/packages/core/dist/actor.d.ts +2 -0
  6. package/packages/core/dist/agg.d.ts +2 -0
  7. package/packages/core/dist/command.d.ts +3 -0
  8. package/packages/core/dist/common.d.ts +158 -0
  9. package/packages/core/dist/event.d.ts +2 -0
  10. package/packages/core/dist/index.d.ts +33 -0
  11. package/packages/core/dist/index.js +1980 -0
  12. package/packages/core/dist/info.d.ts +2 -0
  13. package/packages/core/dist/note.d.ts +2 -0
  14. package/packages/core/dist/package.json +21 -0
  15. package/packages/core/dist/policy.d.ts +2 -0
  16. package/packages/core/dist/read-model.d.ts +2 -0
  17. package/packages/core/dist/service.d.ts +2 -0
  18. package/packages/core/dist/system.d.ts +2 -0
  19. package/packages/core/dist/types.d.ts +558 -0
  20. package/packages/playground/.env +1 -0
  21. package/packages/playground/node_modules/.vite/deps/_metadata.json +34 -0
  22. package/packages/playground/node_modules/.vite/deps/chunk-F4TQRHS6.js +2147 -0
  23. package/packages/playground/node_modules/.vite/deps/chunk-F4TQRHS6.js.map +7 -0
  24. package/packages/playground/node_modules/.vite/deps/chunk-MFAKUPMY.js +12787 -0
  25. package/packages/playground/node_modules/.vite/deps/chunk-MFAKUPMY.js.map +7 -0
  26. package/packages/playground/node_modules/.vite/deps/package.json +3 -0
  27. package/packages/playground/node_modules/.vite/deps/primevue_button.js +1215 -0
  28. package/packages/playground/node_modules/.vite/deps/primevue_button.js.map +7 -0
  29. package/packages/playground/node_modules/.vite/deps/primevue_dock.js +1236 -0
  30. package/packages/playground/node_modules/.vite/deps/primevue_dock.js.map +7 -0
  31. package/packages/playground/node_modules/.vite/deps/vue.js +346 -0
  32. package/packages/playground/node_modules/.vite/deps/vue.js.map +7 -0
  33. package/packages/playground/node_modules/.vue-global-types/vue_3.5_0.d.ts +136 -0
  34. package/packages/playground/package.json +19 -0
  35. package/{src → packages/playground/src}/App.vue +12 -12
  36. package/{src → packages/playground/src}/main.ts +27 -27
  37. package/{src → packages/playground/src}/views/Index.vue +16 -16
  38. package/packages/playground/src/views/complex-example-detail/book.ts +383 -0
  39. package/packages/playground/src/views/complex-example-detail/common.ts +4 -0
  40. package/packages/playground/src/views/complex-example-detail/user.ts +66 -0
  41. package/packages/playground/src/views/complex-example.ts +4 -0
  42. package/{src → packages/playground/src}/views/design-en.ts +110 -99
  43. package/{src → packages/playground/src}/views/design-zh.ts +97 -91
  44. package/packages/playground/src/views/index.ts +19 -0
  45. package/packages/playground/src/views/simple-example.ts +103 -0
  46. package/packages/playground/tsconfig.json +32 -0
  47. package/packages/playground/vite-env.d.ts +12 -0
  48. package/packages/playground/vite.config.ts +22 -0
  49. package/packages/ui-component/dist/LICENSE +201 -0
  50. package/packages/ui-component/dist/README.md +5 -0
  51. package/packages/ui-component/dist/UI.vue.d.ts +29 -0
  52. package/packages/ui-component/dist/common.d.ts +9 -0
  53. package/packages/ui-component/dist/components/drag-zoom/Index.vue.d.ts +37 -0
  54. package/packages/ui-component/dist/components/node-info/Index.vue.d.ts +29 -0
  55. package/packages/ui-component/dist/components/nomnoml/Index.vue.d.ts +24 -0
  56. package/packages/ui-component/dist/components/nomnoml/base-style.d.ts +2 -0
  57. package/packages/ui-component/dist/components/nomnoml/preprocess.d.ts +5 -0
  58. package/packages/ui-component/dist/components/story-bar/Index.vue.d.ts +28 -0
  59. package/packages/ui-component/dist/components/tool-bar/Index.vue.d.ts +29 -0
  60. package/packages/ui-component/dist/domain/common.d.ts +27 -0
  61. package/packages/ui-component/dist/domain/diagram-agg/gen-code.d.ts +64 -0
  62. package/packages/ui-component/dist/domain/diagram-agg/index.d.ts +8554 -0
  63. package/packages/ui-component/dist/domain/diagram-agg/plugins.d.ts +80 -0
  64. package/packages/ui-component/dist/domain/diagram-agg/types.d.ts +20 -0
  65. package/packages/ui-component/dist/domain/i18n-agg/index.d.ts +25 -0
  66. package/packages/ui-component/dist/domain/i18n-agg/locale/en-US.d.ts +3 -0
  67. package/packages/ui-component/dist/domain/i18n-agg/locale/zh-CN.d.ts +3 -0
  68. package/packages/ui-component/dist/domain/i18n-agg/message.d.ts +42 -0
  69. package/packages/ui-component/dist/domain/mount-plugin.d.ts +1 -0
  70. package/packages/ui-component/dist/favicon.ico +0 -0
  71. package/packages/ui-component/dist/index.css +144 -0
  72. package/packages/ui-component/dist/index.d.ts +6 -0
  73. package/packages/ui-component/dist/index.js +19776 -0
  74. package/packages/ui-component/dist/package.json +28 -0
  75. package/packages/ui-component/dist/ui.d.ts +8 -0
  76. package/scripts/ai-assist-worker.cjs +7123 -0
  77. package/scripts/sync-version.mjs +22 -0
  78. package/templates/CLAUDE.md +276 -0
  79. package/templates/README.md +97 -0
  80. package/templates/complex-example-detail/book.ts +383 -0
  81. package/templates/complex-example-detail/common.ts +4 -0
  82. package/templates/complex-example-detail/user.ts +66 -0
  83. package/templates/complex-example.ts +4 -0
  84. package/templates/node_modules/@ddd-tool/domain-designer-core/actor.d.ts +1 -1
  85. package/templates/node_modules/@ddd-tool/domain-designer-core/agg.d.ts +1 -1
  86. package/templates/node_modules/@ddd-tool/domain-designer-core/command.d.ts +1 -1
  87. package/templates/node_modules/@ddd-tool/domain-designer-core/common.d.ts +7 -8
  88. package/templates/node_modules/@ddd-tool/domain-designer-core/event.d.ts +1 -1
  89. package/templates/node_modules/@ddd-tool/domain-designer-core/index.d.ts +3 -3
  90. package/templates/node_modules/@ddd-tool/domain-designer-core/info.d.ts +1 -1
  91. package/templates/node_modules/@ddd-tool/domain-designer-core/note.d.ts +1 -1
  92. package/templates/node_modules/@ddd-tool/domain-designer-core/policy.d.ts +1 -1
  93. package/templates/node_modules/@ddd-tool/domain-designer-core/read-model.d.ts +1 -1
  94. package/templates/node_modules/@ddd-tool/domain-designer-core/service.d.ts +1 -1
  95. package/templates/node_modules/@ddd-tool/domain-designer-core/system.d.ts +1 -1
  96. package/templates/node_modules/@ddd-tool/domain-designer-core/{define.d.ts → types.d.ts} +23 -4
  97. package/templates/node_modules/version.txt +1 -1
  98. package/templates/simple-example.ts +103 -0
  99. package/tsconfig.json +19 -6
  100. package/scripts/sync-ver.mjs +0 -0
  101. package/src/views/index.ts +0 -15
  102. package/templates/example-agg.ts +0 -31
  103. package/templates/example.ts +0 -91
  104. package/vite.config.ts +0 -16
  105. /package/{index.html → packages/playground/index.html} +0 -0
  106. /package/{src → packages/playground/src}/assets/logo.svg +0 -0
  107. /package/{src → packages/playground/src}/assets/main.css +0 -0
@@ -0,0 +1,1980 @@
1
+ let _e = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce((e, n) => (n &= 63, n < 36 ? e += n.toString(36) : n < 62 ? e += (n - 26).toString(36).toUpperCase() : n > 62 ? e += "-" : e += "_", e), "");
2
+ class Ft {
3
+ record = {};
4
+ add(e) {
5
+ const n = e._attributes.__id;
6
+ this.record[n] === void 0 && (this.record[n] = e);
7
+ }
8
+ has(e) {
9
+ return this.record[e._attributes.__id] !== void 0;
10
+ }
11
+ getById(e) {
12
+ return this.record[e];
13
+ }
14
+ delete(e) {
15
+ return delete this.record[e._attributes.__id];
16
+ }
17
+ [Symbol.iterator]() {
18
+ let e = 0;
19
+ const n = Object.values(this.record);
20
+ return {
21
+ next() {
22
+ return e < n.length ? { value: n[e++], done: !1 } : { value: null, done: !0 };
23
+ }
24
+ };
25
+ }
26
+ }
27
+ const jn = Object.freeze({
28
+ Note: "Note",
29
+ Info: "Info",
30
+ Actor: "Actor",
31
+ Command: "Command",
32
+ FacadeCommand: "FacadeCommand",
33
+ Event: "Event",
34
+ Agg: "Agg",
35
+ System: "System",
36
+ Policy: "Policy",
37
+ Service: "Service",
38
+ ReadModel: "ReadModel"
39
+ });
40
+ function Mn(t) {
41
+ return t && t._attributes && t._attributes.rule === "Info";
42
+ }
43
+ function kn(t) {
44
+ return t._attributes.rule === "Info" && t._attributes.type === "Function";
45
+ }
46
+ function $n(t) {
47
+ return t && t._attributes && t._attributes.rule === "Actor";
48
+ }
49
+ function Un(t) {
50
+ return t && t._attributes && t._attributes.rule === "Agg";
51
+ }
52
+ function Ln(t) {
53
+ return t && t._attributes && t._attributes.rule === "Command";
54
+ }
55
+ function Kn(t) {
56
+ return t && t._attributes && t._attributes.rule === "FacadeCommand";
57
+ }
58
+ function Hn(t) {
59
+ return t && t._attributes && t._attributes.rule === "Event";
60
+ }
61
+ function Wn(t) {
62
+ return t && t._attributes && t._attributes.rule === "Policy";
63
+ }
64
+ function Bn(t) {
65
+ return t && t._attributes && t._attributes.rule === "ReadModel";
66
+ }
67
+ function Jn(t) {
68
+ return t && t._attributes && t._attributes.rule === "Service";
69
+ }
70
+ function Yn(t) {
71
+ return t && t._attributes && t._attributes.rule === "System";
72
+ }
73
+ function qn(t) {
74
+ const e = t;
75
+ return e && typeof e.actor == "function" && typeof e.startWorkflow == "function" && typeof e.defineUserStory == "function" && typeof e._getContext == "function" && typeof e.note == "function" && typeof e.info == "object" && typeof e.command == "function" && typeof e.facadeCmd == "function" && typeof e.agg == "function" && typeof e.event == "function" && typeof e.system == "function" && typeof e.policy == "function" && typeof e.service == "function" && typeof e.readModel == "function";
76
+ }
77
+ function E() {
78
+ try {
79
+ return _e();
80
+ } catch (t) {
81
+ throw new Error(`Failed to generate ID: ${t}`);
82
+ }
83
+ }
84
+ const Y = {};
85
+ function pe(t) {
86
+ const e = t(), n = e.createInfo(), s = {}, r = {}, o = {}, i = [], c = [], l = [], _ = [], a = [], u = [], f = [], d = [], g = [], b = {}, lt = {};
87
+ let x;
88
+ return {
89
+ startWorkflow(p) {
90
+ if (b[p] !== void 0)
91
+ throw new Error(`flow ${p} already exists`);
92
+ return b[p] = [], x = p, p;
93
+ },
94
+ defineUserStory(p, m) {
95
+ if (lt[p] !== void 0)
96
+ throw new Error(`userStory ${p} already exists`);
97
+ lt[p] = m;
98
+ },
99
+ linkTo(p, m, y, v, J = "Association") {
100
+ x && b[x] && ((b[x].length === 0 || b[x][b[x].length - 1] !== m) && b[x].push(m), b[x].push(v)), s[`${p},${m},${y},${v}`] = J, o[m] === void 0 && (o[m] = new Ft()), o[m].add(r[v]), o[v] === void 0 && (o[v] = new Ft()), o[v].add(r[m]);
101
+ },
102
+ getDesignerId() {
103
+ return e.id;
104
+ },
105
+ getDesignerOptions() {
106
+ return e.options;
107
+ },
108
+ getWorkflows() {
109
+ return b;
110
+ },
111
+ getUserStories() {
112
+ return lt;
113
+ },
114
+ getLinks() {
115
+ return s;
116
+ },
117
+ getIdMap() {
118
+ return r;
119
+ },
120
+ getAssociationMap() {
121
+ return o;
122
+ },
123
+ getCommands() {
124
+ return i;
125
+ },
126
+ getFacadeCommands() {
127
+ return c;
128
+ },
129
+ getActors() {
130
+ return l;
131
+ },
132
+ getEvents() {
133
+ return _;
134
+ },
135
+ getPolicies() {
136
+ return a;
137
+ },
138
+ getServices() {
139
+ return u;
140
+ },
141
+ getSystems() {
142
+ return f;
143
+ },
144
+ getAggs() {
145
+ return d;
146
+ },
147
+ getReadModels() {
148
+ return g;
149
+ },
150
+ registerInfo(p) {
151
+ r[p._attributes.__id] = p;
152
+ },
153
+ registerCommand(p) {
154
+ r[p._attributes.__id] = p, i.push(p);
155
+ },
156
+ registerFacadeCommand(p) {
157
+ r[p._attributes.__id] = p, c.push(p);
158
+ },
159
+ registerActor(p) {
160
+ r[p._attributes.__id] = p, l.push(p);
161
+ },
162
+ registerEvent(p) {
163
+ r[p._attributes.__id] = p, _.push(p);
164
+ },
165
+ registerPolicy(p) {
166
+ r[p._attributes.__id] = p, a.push(p);
167
+ },
168
+ registerService(p) {
169
+ r[p._attributes.__id] = p, u.push(p);
170
+ },
171
+ registerSystem(p) {
172
+ r[p._attributes.__id] = p, f.push(p);
173
+ },
174
+ registerAgg(p) {
175
+ r[p._attributes.__id] = p, d.push(p);
176
+ },
177
+ registerReadModel(p) {
178
+ r[p._attributes.__id] = p, g.push(p);
179
+ },
180
+ customInfoArrToInfoObj(p) {
181
+ return p.reduce((m, y) => {
182
+ if (typeof y == "string")
183
+ m[y] = n.valueObj(y);
184
+ else if (y instanceof Array) {
185
+ const [v, J] = y;
186
+ m[v] = n.valueObj(v, J);
187
+ } else
188
+ m[y._attributes.name] = y;
189
+ return m;
190
+ }, {});
191
+ },
192
+ customInfoArrToInfoArr(p) {
193
+ return p.reduce((m, y) => {
194
+ if (typeof y == "string")
195
+ m.push(n.valueObj(y));
196
+ else if (y instanceof Array) {
197
+ const [v, J] = y;
198
+ m.push(n.valueObj(v, J));
199
+ } else
200
+ m.push(y);
201
+ return m;
202
+ }, []);
203
+ },
204
+ toFormat(p) {
205
+ return e.options?.__toFormatType === "BngleBrackets" ? `<${p._attributes.name}>` : e.options?.__toFormatType === "JSON" ? JSON.stringify(p) : e.options?.__toFormatType === "JSONPretty" ? JSON.stringify(p, null, 2) : (e.options?.__toFormatType === void 0 || isNever(e.options?.__toFormatType), p.toString());
206
+ },
207
+ createNote: e.createNote,
208
+ info: n,
209
+ createPersion: e.createActor,
210
+ createCommand: e.createCommand,
211
+ createFacadeCommand: e.createFacadeCommand,
212
+ createAgg: e.createAgg,
213
+ createEvent: e.createEvent,
214
+ createPolicy: e.createPolicy,
215
+ createService: e.createService,
216
+ createSystem: e.createSystem,
217
+ createReadModel: e.createReadModel
218
+ };
219
+ }
220
+ function w(t, e) {
221
+ if (Y[t])
222
+ return Y[t];
223
+ if (!Y[t] && e)
224
+ return Y[t] = pe(e), Y[t];
225
+ throw new Error("initFn is required");
226
+ }
227
+ function he(t) {
228
+ return () => {
229
+ function e(n, s, r) {
230
+ const o = w(t);
231
+ let i = [], c;
232
+ s instanceof Array ? (i = o.customInfoArrToInfoArr(s), c = r) : c = s;
233
+ const l = {
234
+ _attributes: {
235
+ __id: E(),
236
+ rule: "Info",
237
+ type: "Function",
238
+ subtype: i,
239
+ name: n,
240
+ note: o.createNote(c)
241
+ },
242
+ toFormat() {
243
+ return o.toFormat(this);
244
+ }
245
+ };
246
+ return o.registerInfo(l), l;
247
+ }
248
+ return {
249
+ document(n, s) {
250
+ const r = w(t), o = {
251
+ _attributes: {
252
+ __id: E(),
253
+ rule: "Info",
254
+ type: "Document",
255
+ subtype: "None",
256
+ name: n,
257
+ note: r.createNote(s)
258
+ },
259
+ toFormat() {
260
+ return r.toFormat(this);
261
+ }
262
+ };
263
+ return r.registerInfo(o), o;
264
+ },
265
+ func: e,
266
+ id(n, s) {
267
+ const r = w(t), o = {
268
+ _attributes: {
269
+ __id: E(),
270
+ rule: "Info",
271
+ type: "Id",
272
+ subtype: "None",
273
+ name: n,
274
+ note: r.createNote(s)
275
+ },
276
+ toFormat() {
277
+ return r.toFormat(this);
278
+ }
279
+ };
280
+ return r.registerInfo(o), o;
281
+ },
282
+ valueObj(n, s) {
283
+ const r = w(t), o = {
284
+ _attributes: {
285
+ __id: E(),
286
+ rule: "Info",
287
+ type: "ValueObject",
288
+ subtype: "None",
289
+ name: n,
290
+ note: r.createNote(s)
291
+ },
292
+ toFormat() {
293
+ return r.toFormat(this);
294
+ }
295
+ };
296
+ return r.registerInfo(o), o;
297
+ },
298
+ version(n, s) {
299
+ const r = w(t), o = {
300
+ _attributes: {
301
+ __id: E(),
302
+ rule: "Info",
303
+ type: "Version",
304
+ subtype: "None",
305
+ name: n,
306
+ note: r.createNote(s)
307
+ },
308
+ toFormat() {
309
+ return r.toFormat(this);
310
+ }
311
+ };
312
+ return r.registerInfo(o), o;
313
+ }
314
+ };
315
+ };
316
+ }
317
+ function ge(t) {
318
+ const e = "Command";
319
+ return (n, s, r) => {
320
+ const o = w(t), i = o.customInfoArrToInfoObj(
321
+ s instanceof Function ? s() : s
322
+ ), c = E();
323
+ function l(a, u, f) {
324
+ if (typeof a == "object")
325
+ return o.linkTo(e, c, a._attributes.rule, a._attributes.__id), a;
326
+ {
327
+ const d = o.createAgg(a, u, f);
328
+ return o.linkTo(e, c, d._attributes.rule, d._attributes.__id), d;
329
+ }
330
+ }
331
+ const _ = {
332
+ _attributes: {
333
+ __id: c,
334
+ rule: e,
335
+ name: n,
336
+ infos: i,
337
+ note: o.createNote(r)
338
+ },
339
+ inner: i,
340
+ agg: l,
341
+ toFormat() {
342
+ return o.toFormat(this);
343
+ }
344
+ };
345
+ return o.registerCommand(_), _;
346
+ };
347
+ }
348
+ function be(t) {
349
+ const e = "FacadeCommand";
350
+ return (n, s, r) => {
351
+ const o = w(t), i = o.customInfoArrToInfoObj(
352
+ s instanceof Function ? s() : s
353
+ ), c = E();
354
+ function l(u, f, d) {
355
+ if (typeof u == "object")
356
+ return o.linkTo(e, c, u._attributes.rule, u._attributes.__id), u;
357
+ {
358
+ const g = o.createAgg(u, f, d);
359
+ return o.linkTo(e, c, g._attributes.rule, g._attributes.__id), g;
360
+ }
361
+ }
362
+ function _(u, f) {
363
+ if (typeof u == "object")
364
+ return o.linkTo(e, c, u._attributes.rule, u._attributes.__id), u;
365
+ const d = o.createService(u, f);
366
+ return o.linkTo(e, c, d._attributes.rule, d._attributes.__id), d;
367
+ }
368
+ const a = {
369
+ _attributes: {
370
+ __id: c,
371
+ rule: e,
372
+ name: n,
373
+ infos: i,
374
+ note: o.createNote(r)
375
+ },
376
+ inner: i,
377
+ agg: l,
378
+ service: _,
379
+ toFormat() {
380
+ return o.toFormat(this);
381
+ }
382
+ };
383
+ return o.registerFacadeCommand(a), a;
384
+ };
385
+ }
386
+ function me(t) {
387
+ const e = "Event";
388
+ return (n, s, r) => {
389
+ const o = w(t), i = o.customInfoArrToInfoObj(
390
+ s instanceof Function ? s() : s
391
+ ), c = E();
392
+ function l(f, d) {
393
+ if (typeof f == "object")
394
+ return o.linkTo(e, c, f._attributes.rule, f._attributes.__id), f;
395
+ const g = o.createPolicy(f, d);
396
+ return o.linkTo(e, c, g._attributes.rule, g._attributes.__id), g;
397
+ }
398
+ function _(f, d) {
399
+ if (typeof f == "object")
400
+ return o.linkTo(e, c, f._attributes.rule, f._attributes.__id), f;
401
+ const g = o.createSystem(f, d);
402
+ return o.linkTo(e, c, g._attributes.rule, g._attributes.__id), g;
403
+ }
404
+ function a(f, d, g) {
405
+ if (typeof f == "object")
406
+ return o.linkTo(e, c, f._attributes.rule, f._attributes.__id, "Aggregation"), f;
407
+ const b = o.createReadModel(n, d, g);
408
+ return o.linkTo(e, c, b._attributes.rule, b._attributes.__id, "Aggregation"), b;
409
+ }
410
+ const u = {
411
+ _attributes: {
412
+ __id: c,
413
+ rule: e,
414
+ name: n,
415
+ infos: i,
416
+ note: o.createNote(r)
417
+ },
418
+ inner: i,
419
+ policy: l,
420
+ system: _,
421
+ readModel: a,
422
+ toFormat() {
423
+ return o.toFormat(this);
424
+ }
425
+ };
426
+ return o.registerEvent(u), u;
427
+ };
428
+ }
429
+ function ye(t) {
430
+ const e = "Actor";
431
+ return (n, s) => {
432
+ const r = w(t), o = E();
433
+ function i(a, u, f) {
434
+ if (typeof a == "object")
435
+ return r.linkTo(e, o, a._attributes.rule, a._attributes.__id), a;
436
+ const d = r.createCommand(n, u, f);
437
+ return r.linkTo(e, o, d._attributes.rule, d._attributes.__id), d;
438
+ }
439
+ function c(a, u, f) {
440
+ if (typeof a == "object")
441
+ return r.linkTo(e, o, a._attributes.rule, a._attributes.__id), a;
442
+ const d = r.createFacadeCommand(n, u, f);
443
+ return r.linkTo(e, o, d._attributes.rule, d._attributes.__id), d;
444
+ }
445
+ function l(a, u, f) {
446
+ if (typeof a == "object")
447
+ return r.linkTo(e, o, a._attributes.rule, a._attributes.__id, "Dependency"), a;
448
+ const d = r.createReadModel(n, u, f);
449
+ return r.linkTo(e, o, d._attributes.rule, d._attributes.__id, "Dependency"), d;
450
+ }
451
+ const _ = {
452
+ _attributes: {
453
+ __id: o,
454
+ rule: e,
455
+ name: n,
456
+ note: r.createNote(s)
457
+ },
458
+ command: i,
459
+ facadeCmd: c,
460
+ readModel: l,
461
+ toFormat() {
462
+ return r.toFormat(this);
463
+ }
464
+ };
465
+ return r.registerActor(_), _;
466
+ };
467
+ }
468
+ // @__NO_SIDE_EFFECTS__
469
+ function Ee(t) {
470
+ const e = /* @__PURE__ */ Object.create(null);
471
+ for (const n of t.split(",")) e[n] = 1;
472
+ return (n) => n in e;
473
+ }
474
+ const mt = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
475
+ process.env.NODE_ENV !== "production" && Object.freeze([]);
476
+ const Mt = () => {
477
+ }, we = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
478
+ (t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), B = Object.assign, Ne = Object.prototype.hasOwnProperty, yt = (t, e) => Ne.call(t, e), N = Array.isArray, z = (t) => kt(t) === "[object Map]", k = (t) => typeof t == "function", F = (t) => typeof t == "string", X = (t) => typeof t == "symbol", O = (t) => t !== null && typeof t == "object", Se = Object.prototype.toString, kt = (t) => Se.call(t), $t = (t) => kt(t).slice(8, -1), Nt = (t) => F(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, Oe = (t) => {
479
+ const e = /* @__PURE__ */ Object.create(null);
480
+ return ((n) => e[n] || (e[n] = t(n)));
481
+ }, ve = Oe((t) => t.charAt(0).toUpperCase() + t.slice(1)), Ut = (t, e) => !Object.is(t, e);
482
+ let Dt;
483
+ const at = () => Dt || (Dt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
484
+ function St(t) {
485
+ if (N(t)) {
486
+ const e = {};
487
+ for (let n = 0; n < t.length; n++) {
488
+ const s = t[n], r = F(s) ? Fe(s) : St(s);
489
+ if (r)
490
+ for (const o in r)
491
+ e[o] = r[o];
492
+ }
493
+ return e;
494
+ } else if (F(t) || O(t))
495
+ return t;
496
+ }
497
+ const Te = /;(?![^(]*\))/g, Re = /:([^]+)/, Ce = /\/\*[^]*?\*\//g;
498
+ function Fe(t) {
499
+ const e = {};
500
+ return t.replace(Ce, "").split(Te).forEach((n) => {
501
+ if (n) {
502
+ const s = n.split(Re);
503
+ s.length > 1 && (e[s[0].trim()] = s[1].trim());
504
+ }
505
+ }), e;
506
+ }
507
+ function Ot(t) {
508
+ let e = "";
509
+ if (F(t))
510
+ e = t;
511
+ else if (N(t))
512
+ for (let n = 0; n < t.length; n++) {
513
+ const s = Ot(t[n]);
514
+ s && (e += s + " ");
515
+ }
516
+ else if (O(t))
517
+ for (const n in t)
518
+ t[n] && (e += n + " ");
519
+ return e.trim();
520
+ }
521
+ function H(t, ...e) {
522
+ }
523
+ let Lt = 0, ft;
524
+ function Kt() {
525
+ Lt++;
526
+ }
527
+ function Ht() {
528
+ if (--Lt > 0)
529
+ return;
530
+ let t;
531
+ for (; ft; ) {
532
+ let e = ft;
533
+ for (ft = void 0; e; ) {
534
+ const n = e.next;
535
+ if (e.next = void 0, e.flags &= -9, e.flags & 1)
536
+ try {
537
+ e.trigger();
538
+ } catch (s) {
539
+ t || (t = s);
540
+ }
541
+ e = n;
542
+ }
543
+ }
544
+ if (t) throw t;
545
+ }
546
+ const De = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ Symbol(
547
+ process.env.NODE_ENV !== "production" ? "Object iterate" : ""
548
+ ), xt = /* @__PURE__ */ Symbol(
549
+ process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
550
+ ), At = /* @__PURE__ */ Symbol(
551
+ process.env.NODE_ENV !== "production" ? "Array iterate" : ""
552
+ );
553
+ function V(t, e, n, s, r, o) {
554
+ const i = De.get(t);
555
+ if (!i)
556
+ return;
557
+ const c = (l) => {
558
+ l && (process.env.NODE_ENV !== "production" ? l.trigger({
559
+ target: t,
560
+ type: e,
561
+ key: n,
562
+ newValue: s,
563
+ oldValue: r,
564
+ oldTarget: o
565
+ }) : l.trigger());
566
+ };
567
+ if (Kt(), e === "clear")
568
+ i.forEach(c);
569
+ else {
570
+ const l = N(t), _ = l && Nt(n);
571
+ if (l && n === "length") {
572
+ const a = Number(s);
573
+ i.forEach((u, f) => {
574
+ (f === "length" || f === At || !X(f) && f >= a) && c(u);
575
+ });
576
+ } else
577
+ switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), _ && c(i.get(At)), e) {
578
+ case "add":
579
+ l ? _ && c(i.get("length")) : (c(i.get(dt)), z(t) && c(i.get(xt)));
580
+ break;
581
+ case "delete":
582
+ l || (c(i.get(dt)), z(t) && c(i.get(xt)));
583
+ break;
584
+ case "set":
585
+ z(t) && c(i.get(dt));
586
+ break;
587
+ }
588
+ }
589
+ Ht();
590
+ }
591
+ function $(t) {
592
+ const e = /* @__PURE__ */ h(t);
593
+ return e === t || /* @__PURE__ */ T(t) ? e : e.map(M);
594
+ }
595
+ function vt(t) {
596
+ return t = /* @__PURE__ */ h(t), t;
597
+ }
598
+ function A(t, e) {
599
+ return /* @__PURE__ */ D(t) ? G(/* @__PURE__ */ Tt(t) ? M(e) : e) : M(e);
600
+ }
601
+ const xe = {
602
+ __proto__: null,
603
+ [Symbol.iterator]() {
604
+ return _t(this, Symbol.iterator, (t) => A(this, t));
605
+ },
606
+ concat(...t) {
607
+ return $(this).concat(
608
+ ...t.map((e) => N(e) ? $(e) : e)
609
+ );
610
+ },
611
+ entries() {
612
+ return _t(this, "entries", (t) => (t[1] = A(this, t[1]), t));
613
+ },
614
+ every(t, e) {
615
+ return R(this, "every", t, e, void 0, arguments);
616
+ },
617
+ filter(t, e) {
618
+ return R(
619
+ this,
620
+ "filter",
621
+ t,
622
+ e,
623
+ (n) => n.map((s) => A(this, s)),
624
+ arguments
625
+ );
626
+ },
627
+ find(t, e) {
628
+ return R(
629
+ this,
630
+ "find",
631
+ t,
632
+ e,
633
+ (n) => A(this, n),
634
+ arguments
635
+ );
636
+ },
637
+ findIndex(t, e) {
638
+ return R(this, "findIndex", t, e, void 0, arguments);
639
+ },
640
+ findLast(t, e) {
641
+ return R(
642
+ this,
643
+ "findLast",
644
+ t,
645
+ e,
646
+ (n) => A(this, n),
647
+ arguments
648
+ );
649
+ },
650
+ findLastIndex(t, e) {
651
+ return R(this, "findLastIndex", t, e, void 0, arguments);
652
+ },
653
+ // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
654
+ forEach(t, e) {
655
+ return R(this, "forEach", t, e, void 0, arguments);
656
+ },
657
+ includes(...t) {
658
+ return pt(this, "includes", t);
659
+ },
660
+ indexOf(...t) {
661
+ return pt(this, "indexOf", t);
662
+ },
663
+ join(t) {
664
+ return $(this).join(t);
665
+ },
666
+ // keys() iterator only reads `length`, no optimization required
667
+ lastIndexOf(...t) {
668
+ return pt(this, "lastIndexOf", t);
669
+ },
670
+ map(t, e) {
671
+ return R(this, "map", t, e, void 0, arguments);
672
+ },
673
+ pop() {
674
+ return q(this, "pop");
675
+ },
676
+ push(...t) {
677
+ return q(this, "push", t);
678
+ },
679
+ reduce(t, ...e) {
680
+ return It(this, "reduce", t, e);
681
+ },
682
+ reduceRight(t, ...e) {
683
+ return It(this, "reduceRight", t, e);
684
+ },
685
+ shift() {
686
+ return q(this, "shift");
687
+ },
688
+ // slice could use ARRAY_ITERATE but also seems to beg for range tracking
689
+ some(t, e) {
690
+ return R(this, "some", t, e, void 0, arguments);
691
+ },
692
+ splice(...t) {
693
+ return q(this, "splice", t);
694
+ },
695
+ toReversed() {
696
+ return $(this).toReversed();
697
+ },
698
+ toSorted(t) {
699
+ return $(this).toSorted(t);
700
+ },
701
+ toSpliced(...t) {
702
+ return $(this).toSpliced(...t);
703
+ },
704
+ unshift(...t) {
705
+ return q(this, "unshift", t);
706
+ },
707
+ values() {
708
+ return _t(this, "values", (t) => A(this, t));
709
+ }
710
+ };
711
+ function _t(t, e, n) {
712
+ const s = vt(t), r = s[e]();
713
+ return s !== t && !/* @__PURE__ */ T(t) && (r._next = r.next, r.next = () => {
714
+ const o = r._next();
715
+ return o.done || (o.value = n(o.value)), o;
716
+ }), r;
717
+ }
718
+ const Ae = Array.prototype;
719
+ function R(t, e, n, s, r, o) {
720
+ const i = vt(t), c = i !== t && !/* @__PURE__ */ T(t), l = i[e];
721
+ if (l !== Ae[e]) {
722
+ const u = l.apply(t, o);
723
+ return c ? M(u) : u;
724
+ }
725
+ let _ = n;
726
+ i !== t && (c ? _ = function(u, f) {
727
+ return n.call(this, A(t, u), f, t);
728
+ } : n.length > 2 && (_ = function(u, f) {
729
+ return n.call(this, u, f, t);
730
+ }));
731
+ const a = l.call(i, _, s);
732
+ return c && r ? r(a) : a;
733
+ }
734
+ function It(t, e, n, s) {
735
+ const r = vt(t);
736
+ let o = n;
737
+ return r !== t && (/* @__PURE__ */ T(t) ? n.length > 3 && (o = function(i, c, l) {
738
+ return n.call(this, i, c, l, t);
739
+ }) : o = function(i, c, l) {
740
+ return n.call(this, i, A(t, c), l, t);
741
+ }), r[e](o, ...s);
742
+ }
743
+ function pt(t, e, n) {
744
+ const s = /* @__PURE__ */ h(t), r = s[e](...n);
745
+ return (r === -1 || r === !1) && /* @__PURE__ */ ot(n[0]) ? (n[0] = /* @__PURE__ */ h(n[0]), s[e](...n)) : r;
746
+ }
747
+ function q(t, e, n = []) {
748
+ Kt();
749
+ const s = (/* @__PURE__ */ h(t))[e].apply(t, n);
750
+ return Ht(), s;
751
+ }
752
+ const Ie = /* @__PURE__ */ Ee("__proto__,__v_isRef,__isVue"), Wt = new Set(
753
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(X)
754
+ );
755
+ function Ve(t) {
756
+ return X(t) || (t = String(t)), (/* @__PURE__ */ h(this)).hasOwnProperty(t);
757
+ }
758
+ class Bt {
759
+ constructor(e = !1, n = !1) {
760
+ this._isReadonly = e, this._isShallow = n;
761
+ }
762
+ get(e, n, s) {
763
+ if (n === "__v_skip") return e.__v_skip;
764
+ const r = this._isReadonly, o = this._isShallow;
765
+ if (n === "__v_isReactive")
766
+ return !r;
767
+ if (n === "__v_isReadonly")
768
+ return r;
769
+ if (n === "__v_isShallow")
770
+ return o;
771
+ if (n === "__v_raw")
772
+ return s === (r ? o ? We : qt : o ? He : Yt).get(e) || // receiver is not the reactive proxy, but has the same prototype
773
+ // this means the receiver is a user proxy of the reactive proxy
774
+ Object.getPrototypeOf(e) === Object.getPrototypeOf(s) ? e : void 0;
775
+ const i = N(e);
776
+ if (!r) {
777
+ let l;
778
+ if (i && (l = xe[n]))
779
+ return l;
780
+ if (n === "hasOwnProperty")
781
+ return Ve;
782
+ }
783
+ const c = Reflect.get(
784
+ e,
785
+ n,
786
+ // if this is a proxy wrapping a ref, return methods using the raw ref
787
+ // as receiver so that we don't have to call `toRaw` on the ref in all
788
+ // its class methods
789
+ /* @__PURE__ */ P(e) ? e : s
790
+ );
791
+ if ((X(n) ? Wt.has(n) : Ie(n)) || o)
792
+ return c;
793
+ if (/* @__PURE__ */ P(c)) {
794
+ const l = i && Nt(n) ? c : c.value;
795
+ return r && O(l) ? /* @__PURE__ */ rt(l) : l;
796
+ }
797
+ return O(c) ? r ? /* @__PURE__ */ rt(c) : /* @__PURE__ */ zt(c) : c;
798
+ }
799
+ }
800
+ class Pe extends Bt {
801
+ constructor(e = !1) {
802
+ super(!1, e);
803
+ }
804
+ set(e, n, s, r) {
805
+ let o = e[n];
806
+ const i = N(e) && Nt(n);
807
+ if (!this._isShallow) {
808
+ const _ = /* @__PURE__ */ D(o);
809
+ if (!/* @__PURE__ */ T(s) && !/* @__PURE__ */ D(s) && (o = /* @__PURE__ */ h(o), s = /* @__PURE__ */ h(s)), !i && /* @__PURE__ */ P(o) && !/* @__PURE__ */ P(s))
810
+ return _ ? (process.env.NODE_ENV !== "production" && H(
811
+ `Set operation on key "${String(n)}" failed: target is readonly.`,
812
+ e[n]
813
+ ), !0) : (o.value = s, !0);
814
+ }
815
+ const c = i ? Number(n) < e.length : yt(e, n), l = Reflect.set(
816
+ e,
817
+ n,
818
+ s,
819
+ /* @__PURE__ */ P(e) ? e : r
820
+ );
821
+ return e === /* @__PURE__ */ h(r) && (c ? Ut(s, o) && V(e, "set", n, s, o) : V(e, "add", n, s)), l;
822
+ }
823
+ deleteProperty(e, n) {
824
+ const s = yt(e, n), r = e[n], o = Reflect.deleteProperty(e, n);
825
+ return o && s && V(e, "delete", n, void 0, r), o;
826
+ }
827
+ has(e, n) {
828
+ const s = Reflect.has(e, n);
829
+ return !X(n) || Wt.has(n), s;
830
+ }
831
+ ownKeys(e) {
832
+ return Reflect.ownKeys(e);
833
+ }
834
+ }
835
+ class je extends Bt {
836
+ constructor(e = !1) {
837
+ super(!0, e);
838
+ }
839
+ set(e, n) {
840
+ return process.env.NODE_ENV !== "production" && H(
841
+ `Set operation on key "${String(n)}" failed: target is readonly.`,
842
+ e
843
+ ), !0;
844
+ }
845
+ deleteProperty(e, n) {
846
+ return process.env.NODE_ENV !== "production" && H(
847
+ `Delete operation on key "${String(n)}" failed: target is readonly.`,
848
+ e
849
+ ), !0;
850
+ }
851
+ }
852
+ const Me = /* @__PURE__ */ new Pe(), ke = /* @__PURE__ */ new je(), Et = (t) => t, Z = (t) => Reflect.getPrototypeOf(t);
853
+ function $e(t, e, n) {
854
+ return function(...s) {
855
+ const r = this.__v_raw, i = z(/* @__PURE__ */ h(r)), c = t === "entries" || t === Symbol.iterator && i, l = r[t](...s), _ = n ? Et : e ? G : M;
856
+ return B(
857
+ // inheriting all iterator properties
858
+ Object.create(l),
859
+ {
860
+ // iterator protocol
861
+ next() {
862
+ const { value: a, done: u } = l.next();
863
+ return u ? { value: a, done: u } : {
864
+ value: c ? [_(a[0]), _(a[1])] : _(a),
865
+ done: u
866
+ };
867
+ }
868
+ }
869
+ );
870
+ };
871
+ }
872
+ function tt(t) {
873
+ return function(...e) {
874
+ if (process.env.NODE_ENV !== "production") {
875
+ const n = e[0] ? `on key "${e[0]}" ` : "";
876
+ H(
877
+ `${ve(t)} operation ${n}failed: target is readonly.`,
878
+ /* @__PURE__ */ h(this)
879
+ );
880
+ }
881
+ return t === "delete" ? !1 : t === "clear" ? void 0 : this;
882
+ };
883
+ }
884
+ function Ue(t, e) {
885
+ const n = {
886
+ get(r) {
887
+ const o = this.__v_raw, i = /* @__PURE__ */ h(o), c = /* @__PURE__ */ h(r), { has: l } = Z(i), _ = e ? Et : t ? G : M;
888
+ if (l.call(i, r))
889
+ return _(o.get(r));
890
+ if (l.call(i, c))
891
+ return _(o.get(c));
892
+ o !== i && o.get(r);
893
+ },
894
+ get size() {
895
+ return this.__v_raw.size;
896
+ },
897
+ has(r) {
898
+ const o = this.__v_raw, i = /* @__PURE__ */ h(r);
899
+ return r === i ? o.has(r) : o.has(r) || o.has(i);
900
+ },
901
+ forEach(r, o) {
902
+ const i = this, c = i.__v_raw, l = e ? Et : t ? G : M;
903
+ return c.forEach((_, a) => r.call(o, l(_), l(a), i));
904
+ }
905
+ };
906
+ return B(
907
+ n,
908
+ t ? {
909
+ add: tt("add"),
910
+ set: tt("set"),
911
+ delete: tt("delete"),
912
+ clear: tt("clear")
913
+ } : {
914
+ add(r) {
915
+ !e && !/* @__PURE__ */ T(r) && !/* @__PURE__ */ D(r) && (r = /* @__PURE__ */ h(r));
916
+ const o = /* @__PURE__ */ h(this);
917
+ return Z(o).has.call(o, r) || (o.add(r), V(o, "add", r, r)), this;
918
+ },
919
+ set(r, o) {
920
+ !e && !/* @__PURE__ */ T(o) && !/* @__PURE__ */ D(o) && (o = /* @__PURE__ */ h(o));
921
+ const i = /* @__PURE__ */ h(this), { has: c, get: l } = Z(i);
922
+ let _ = c.call(i, r);
923
+ _ ? process.env.NODE_ENV !== "production" && Vt(i, c, r) : (r = /* @__PURE__ */ h(r), _ = c.call(i, r));
924
+ const a = l.call(i, r);
925
+ return i.set(r, o), _ ? Ut(o, a) && V(i, "set", r, o, a) : V(i, "add", r, o), this;
926
+ },
927
+ delete(r) {
928
+ const o = /* @__PURE__ */ h(this), { has: i, get: c } = Z(o);
929
+ let l = i.call(o, r);
930
+ l ? process.env.NODE_ENV !== "production" && Vt(o, i, r) : (r = /* @__PURE__ */ h(r), l = i.call(o, r));
931
+ const _ = c ? c.call(o, r) : void 0, a = o.delete(r);
932
+ return l && V(o, "delete", r, void 0, _), a;
933
+ },
934
+ clear() {
935
+ const r = /* @__PURE__ */ h(this), o = r.size !== 0, i = process.env.NODE_ENV !== "production" ? z(r) ? new Map(r) : new Set(r) : void 0, c = r.clear();
936
+ return o && V(
937
+ r,
938
+ "clear",
939
+ void 0,
940
+ void 0,
941
+ i
942
+ ), c;
943
+ }
944
+ }
945
+ ), [
946
+ "keys",
947
+ "values",
948
+ "entries",
949
+ Symbol.iterator
950
+ ].forEach((r) => {
951
+ n[r] = $e(r, t, e);
952
+ }), n;
953
+ }
954
+ function Jt(t, e) {
955
+ const n = Ue(t, e);
956
+ return (s, r, o) => r === "__v_isReactive" ? !t : r === "__v_isReadonly" ? t : r === "__v_raw" ? s : Reflect.get(
957
+ yt(n, r) && r in s ? n : s,
958
+ r,
959
+ o
960
+ );
961
+ }
962
+ const Le = {
963
+ get: /* @__PURE__ */ Jt(!1, !1)
964
+ }, Ke = {
965
+ get: /* @__PURE__ */ Jt(!0, !1)
966
+ };
967
+ function Vt(t, e, n) {
968
+ const s = /* @__PURE__ */ h(n);
969
+ if (s !== n && e.call(t, s)) {
970
+ const r = $t(t);
971
+ H(
972
+ `Reactive ${r} contains both the raw and reactive versions of the same object${r === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
973
+ );
974
+ }
975
+ }
976
+ const Yt = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap();
977
+ function Be(t) {
978
+ switch (t) {
979
+ case "Object":
980
+ case "Array":
981
+ return 1;
982
+ case "Map":
983
+ case "Set":
984
+ case "WeakMap":
985
+ case "WeakSet":
986
+ return 2;
987
+ default:
988
+ return 0;
989
+ }
990
+ }
991
+ function Je(t) {
992
+ return t.__v_skip || !Object.isExtensible(t) ? 0 : Be($t(t));
993
+ }
994
+ // @__NO_SIDE_EFFECTS__
995
+ function zt(t) {
996
+ return /* @__PURE__ */ D(t) ? t : Gt(
997
+ t,
998
+ !1,
999
+ Me,
1000
+ Le,
1001
+ Yt
1002
+ );
1003
+ }
1004
+ // @__NO_SIDE_EFFECTS__
1005
+ function rt(t) {
1006
+ return Gt(
1007
+ t,
1008
+ !0,
1009
+ ke,
1010
+ Ke,
1011
+ qt
1012
+ );
1013
+ }
1014
+ function Gt(t, e, n, s, r) {
1015
+ if (!O(t))
1016
+ return process.env.NODE_ENV !== "production" && H(
1017
+ `value cannot be made ${e ? "readonly" : "reactive"}: ${String(
1018
+ t
1019
+ )}`
1020
+ ), t;
1021
+ if (t.__v_raw && !(e && t.__v_isReactive))
1022
+ return t;
1023
+ const o = Je(t);
1024
+ if (o === 0)
1025
+ return t;
1026
+ const i = r.get(t);
1027
+ if (i)
1028
+ return i;
1029
+ const c = new Proxy(
1030
+ t,
1031
+ o === 2 ? s : n
1032
+ );
1033
+ return r.set(t, c), c;
1034
+ }
1035
+ // @__NO_SIDE_EFFECTS__
1036
+ function Tt(t) {
1037
+ return /* @__PURE__ */ D(t) ? /* @__PURE__ */ Tt(t.__v_raw) : !!(t && t.__v_isReactive);
1038
+ }
1039
+ // @__NO_SIDE_EFFECTS__
1040
+ function D(t) {
1041
+ return !!(t && t.__v_isReadonly);
1042
+ }
1043
+ // @__NO_SIDE_EFFECTS__
1044
+ function T(t) {
1045
+ return !!(t && t.__v_isShallow);
1046
+ }
1047
+ // @__NO_SIDE_EFFECTS__
1048
+ function ot(t) {
1049
+ return t ? !!t.__v_raw : !1;
1050
+ }
1051
+ // @__NO_SIDE_EFFECTS__
1052
+ function h(t) {
1053
+ const e = t && t.__v_raw;
1054
+ return e ? /* @__PURE__ */ h(e) : t;
1055
+ }
1056
+ const M = (t) => O(t) ? /* @__PURE__ */ zt(t) : t, G = (t) => O(t) ? /* @__PURE__ */ rt(t) : t;
1057
+ // @__NO_SIDE_EFFECTS__
1058
+ function P(t) {
1059
+ return t ? t.__v_isRef === !0 : !1;
1060
+ }
1061
+ const j = [];
1062
+ function Ye(t) {
1063
+ j.push(t);
1064
+ }
1065
+ function qe() {
1066
+ j.pop();
1067
+ }
1068
+ let ht = !1;
1069
+ function W(t, ...e) {
1070
+ if (ht) return;
1071
+ ht = !0;
1072
+ const n = j.length ? j[j.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = ze();
1073
+ if (s)
1074
+ Rt(
1075
+ s,
1076
+ n,
1077
+ 11,
1078
+ [
1079
+ // eslint-disable-next-line no-restricted-syntax
1080
+ t + e.map((o) => {
1081
+ var i, c;
1082
+ return (c = (i = o.toString) == null ? void 0 : i.call(o)) != null ? c : JSON.stringify(o);
1083
+ }).join(""),
1084
+ n && n.proxy,
1085
+ r.map(
1086
+ ({ vnode: o }) => `at <${fe(n, o.type)}>`
1087
+ ).join(`
1088
+ `),
1089
+ r
1090
+ ]
1091
+ );
1092
+ else {
1093
+ const o = [`[Vue warn]: ${t}`, ...e];
1094
+ r.length && o.push(`
1095
+ `, ...Ge(r));
1096
+ }
1097
+ ht = !1;
1098
+ }
1099
+ function ze() {
1100
+ let t = j[j.length - 1];
1101
+ if (!t)
1102
+ return [];
1103
+ const e = [];
1104
+ for (; t; ) {
1105
+ const n = e[0];
1106
+ n && n.vnode === t ? n.recurseCount++ : e.push({
1107
+ vnode: t,
1108
+ recurseCount: 0
1109
+ });
1110
+ const s = t.component && t.component.parent;
1111
+ t = s && s.vnode;
1112
+ }
1113
+ return e;
1114
+ }
1115
+ function Ge(t) {
1116
+ const e = [];
1117
+ return t.forEach((n, s) => {
1118
+ e.push(...s === 0 ? [] : [`
1119
+ `], ...Qe(n));
1120
+ }), e;
1121
+ }
1122
+ function Qe({ vnode: t, recurseCount: e }) {
1123
+ const n = e > 0 ? `... (${e} recursive calls)` : "", s = t.component ? t.component.parent == null : !1, r = ` at <${fe(
1124
+ t.component,
1125
+ t.type,
1126
+ s
1127
+ )}`, o = ">" + n;
1128
+ return t.props ? [r, ...Xe(t.props), o] : [r + o];
1129
+ }
1130
+ function Xe(t) {
1131
+ const e = [], n = Object.keys(t);
1132
+ return n.slice(0, 3).forEach((s) => {
1133
+ e.push(...Qt(s, t[s]));
1134
+ }), n.length > 3 && e.push(" ..."), e;
1135
+ }
1136
+ function Qt(t, e, n) {
1137
+ return F(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : /* @__PURE__ */ P(e) ? (e = Qt(t, /* @__PURE__ */ h(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) : k(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = /* @__PURE__ */ h(e), n ? e : [`${t}=`, e]);
1138
+ }
1139
+ const Xt = {
1140
+ sp: "serverPrefetch hook",
1141
+ bc: "beforeCreate hook",
1142
+ c: "created hook",
1143
+ bm: "beforeMount hook",
1144
+ m: "mounted hook",
1145
+ bu: "beforeUpdate hook",
1146
+ u: "updated",
1147
+ bum: "beforeUnmount hook",
1148
+ um: "unmounted hook",
1149
+ a: "activated hook",
1150
+ da: "deactivated hook",
1151
+ ec: "errorCaptured hook",
1152
+ rtc: "renderTracked hook",
1153
+ rtg: "renderTriggered hook",
1154
+ 0: "setup function",
1155
+ 1: "render function",
1156
+ 2: "watcher getter",
1157
+ 3: "watcher callback",
1158
+ 4: "watcher cleanup function",
1159
+ 5: "native event handler",
1160
+ 6: "component event handler",
1161
+ 7: "vnode hook",
1162
+ 8: "directive hook",
1163
+ 9: "transition hook",
1164
+ 10: "app errorHandler",
1165
+ 11: "app warnHandler",
1166
+ 12: "ref function",
1167
+ 13: "async component loader",
1168
+ 14: "scheduler flush",
1169
+ 15: "component update",
1170
+ 16: "app unmount cleanup function"
1171
+ };
1172
+ function Rt(t, e, n, s) {
1173
+ try {
1174
+ return s ? t(...s) : t();
1175
+ } catch (r) {
1176
+ Zt(r, e, n);
1177
+ }
1178
+ }
1179
+ function Zt(t, e, n, s = !0) {
1180
+ const r = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = e && e.appContext.config || mt;
1181
+ if (e) {
1182
+ let c = e.parent;
1183
+ const l = e.proxy, _ = process.env.NODE_ENV !== "production" ? Xt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
1184
+ for (; c; ) {
1185
+ const a = c.ec;
1186
+ if (a) {
1187
+ for (let u = 0; u < a.length; u++)
1188
+ if (a[u](t, l, _) === !1)
1189
+ return;
1190
+ }
1191
+ c = c.parent;
1192
+ }
1193
+ if (o) {
1194
+ Rt(o, null, 10, [
1195
+ t,
1196
+ l,
1197
+ _
1198
+ ]);
1199
+ return;
1200
+ }
1201
+ }
1202
+ Ze(t, n, r, s, i);
1203
+ }
1204
+ function Ze(t, e, n, s = !0, r = !1) {
1205
+ if (process.env.NODE_ENV !== "production") {
1206
+ const o = Xt[e];
1207
+ if (n && Ye(n), W(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && qe(), s)
1208
+ throw t;
1209
+ } else if (r)
1210
+ throw t;
1211
+ }
1212
+ const S = [];
1213
+ let C = -1;
1214
+ const K = [];
1215
+ let I = null, U = 0;
1216
+ const tn = /* @__PURE__ */ Promise.resolve();
1217
+ let wt = null;
1218
+ const en = 100;
1219
+ function nn(t) {
1220
+ let e = C + 1, n = S.length;
1221
+ for (; e < n; ) {
1222
+ const s = e + n >>> 1, r = S[s], o = Q(r);
1223
+ o < t || o === t && r.flags & 2 ? e = s + 1 : n = s;
1224
+ }
1225
+ return e;
1226
+ }
1227
+ function rn(t) {
1228
+ if (!(t.flags & 1)) {
1229
+ const e = Q(t), n = S[S.length - 1];
1230
+ !n || // fast path when the job id is larger than the tail
1231
+ !(t.flags & 2) && e >= Q(n) ? S.push(t) : S.splice(nn(e), 0, t), t.flags |= 1, te();
1232
+ }
1233
+ }
1234
+ function te() {
1235
+ wt || (wt = tn.then(ee));
1236
+ }
1237
+ function on(t) {
1238
+ N(t) ? K.push(...t) : I && t.id === -1 ? I.splice(U + 1, 0, t) : t.flags & 1 || (K.push(t), t.flags |= 1), te();
1239
+ }
1240
+ function sn(t) {
1241
+ if (K.length) {
1242
+ const e = [...new Set(K)].sort(
1243
+ (n, s) => Q(n) - Q(s)
1244
+ );
1245
+ if (K.length = 0, I) {
1246
+ I.push(...e);
1247
+ return;
1248
+ }
1249
+ for (I = e, process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()), U = 0; U < I.length; U++) {
1250
+ const n = I[U];
1251
+ process.env.NODE_ENV !== "production" && ne(t, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
1252
+ }
1253
+ I = null, U = 0;
1254
+ }
1255
+ }
1256
+ const Q = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id;
1257
+ function ee(t) {
1258
+ process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map());
1259
+ const e = process.env.NODE_ENV !== "production" ? (n) => ne(t, n) : Mt;
1260
+ try {
1261
+ for (C = 0; C < S.length; C++) {
1262
+ const n = S[C];
1263
+ if (n && !(n.flags & 8)) {
1264
+ if (process.env.NODE_ENV !== "production" && e(n))
1265
+ continue;
1266
+ n.flags & 4 && (n.flags &= -2), Rt(
1267
+ n,
1268
+ n.i,
1269
+ n.i ? 15 : 14
1270
+ ), n.flags & 4 || (n.flags &= -2);
1271
+ }
1272
+ }
1273
+ } finally {
1274
+ for (; C < S.length; C++) {
1275
+ const n = S[C];
1276
+ n && (n.flags &= -2);
1277
+ }
1278
+ C = -1, S.length = 0, sn(t), wt = null, (S.length || K.length) && ee(t);
1279
+ }
1280
+ }
1281
+ function ne(t, e) {
1282
+ const n = t.get(e) || 0;
1283
+ if (n > en) {
1284
+ const s = e.i, r = s && le(s.type);
1285
+ return Zt(
1286
+ `Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
1287
+ null,
1288
+ 10
1289
+ ), !0;
1290
+ }
1291
+ return t.set(e, n + 1), !1;
1292
+ }
1293
+ const gt = /* @__PURE__ */ new Map();
1294
+ process.env.NODE_ENV !== "production" && (at().__VUE_HMR_RUNTIME__ = {
1295
+ createRecord: bt(cn),
1296
+ rerender: bt(un),
1297
+ reload: bt(an)
1298
+ });
1299
+ const st = /* @__PURE__ */ new Map();
1300
+ function cn(t, e) {
1301
+ return st.has(t) ? !1 : (st.set(t, {
1302
+ initialDef: it(e),
1303
+ instances: /* @__PURE__ */ new Set()
1304
+ }), !0);
1305
+ }
1306
+ function it(t) {
1307
+ return de(t) ? t.__vccOpts : t;
1308
+ }
1309
+ function un(t, e) {
1310
+ const n = st.get(t);
1311
+ n && (n.initialDef.render = e, [...n.instances].forEach((s) => {
1312
+ e && (s.render = e, it(s.type).render = e), s.renderCache = [], s.job.flags & 8 || s.update();
1313
+ }));
1314
+ }
1315
+ function an(t, e) {
1316
+ const n = st.get(t);
1317
+ if (!n) return;
1318
+ e = it(e), Pt(n.initialDef, e);
1319
+ const s = [...n.instances];
1320
+ for (let r = 0; r < s.length; r++) {
1321
+ const o = s[r], i = it(o.type);
1322
+ let c = gt.get(i);
1323
+ c || (i !== n.initialDef && Pt(i, e), gt.set(i, c = /* @__PURE__ */ new Set())), c.add(o), o.appContext.propsCache.delete(o.type), o.appContext.emitsCache.delete(o.type), o.appContext.optionsCache.delete(o.type), o.ceReload ? (c.add(o), o.ceReload(e.styles), c.delete(o)) : o.parent ? rn(() => {
1324
+ o.job.flags & 8 || (o.parent.update(), c.delete(o));
1325
+ }) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" && window.location.reload(), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
1326
+ }
1327
+ on(() => {
1328
+ gt.clear();
1329
+ });
1330
+ }
1331
+ function Pt(t, e) {
1332
+ B(t, e);
1333
+ for (const n in t)
1334
+ n !== "__file" && !(n in e) && delete t[n];
1335
+ }
1336
+ function bt(t) {
1337
+ return (e, n) => {
1338
+ try {
1339
+ return t(e, n);
1340
+ } catch {
1341
+ }
1342
+ };
1343
+ }
1344
+ let L, et = [];
1345
+ function re(t, e) {
1346
+ var n, s;
1347
+ L = t, L ? (L.enabled = !0, et.forEach(({ event: r, args: o }) => L.emit(r, ...o)), et = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
1348
+ window.HTMLElement && // also exclude jsdom
1349
+ // eslint-disable-next-line no-restricted-syntax
1350
+ !((s = (n = window.navigator) == null ? void 0 : n.userAgent) != null && s.includes("jsdom")) ? ((e.__VUE_DEVTOOLS_HOOK_REPLAY__ = e.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
1351
+ re(o, e);
1352
+ }), setTimeout(() => {
1353
+ L || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, et = []);
1354
+ }, 3e3)) : et = [];
1355
+ }
1356
+ let ct = null, ln = null;
1357
+ const fn = (t) => t.__isTeleport;
1358
+ function oe(t, e) {
1359
+ t.shapeFlag & 6 && t.component ? (t.transition = e, oe(t.component.subTree, e)) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
1360
+ }
1361
+ at().requestIdleCallback;
1362
+ at().cancelIdleCallback;
1363
+ const dn = /* @__PURE__ */ Symbol.for("v-ndc"), _n = {};
1364
+ process.env.NODE_ENV !== "production" && (_n.ownKeys = (t) => (W(
1365
+ "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
1366
+ ), Reflect.ownKeys(t)));
1367
+ const pn = {}, se = (t) => Object.getPrototypeOf(t) === pn, hn = (t) => t.__isSuspense, ie = /* @__PURE__ */ Symbol.for("v-fgt"), gn = /* @__PURE__ */ Symbol.for("v-txt"), bn = /* @__PURE__ */ Symbol.for("v-cmt");
1368
+ function mn(t) {
1369
+ return t ? t.__v_isVNode === !0 : !1;
1370
+ }
1371
+ const yn = (...t) => ue(
1372
+ ...t
1373
+ ), ce = ({ key: t }) => t ?? null, nt = ({
1374
+ ref: t,
1375
+ ref_key: e,
1376
+ ref_for: n
1377
+ }) => (typeof t == "number" && (t = "" + t), t != null ? F(t) || /* @__PURE__ */ P(t) || k(t) ? { i: ct, r: t, k: e, f: !!n } : t : null);
1378
+ function En(t, e = null, n = null, s = 0, r = null, o = t === ie ? 0 : 1, i = !1, c = !1) {
1379
+ const l = {
1380
+ __v_isVNode: !0,
1381
+ __v_skip: !0,
1382
+ type: t,
1383
+ props: e,
1384
+ key: e && ce(e),
1385
+ ref: e && nt(e),
1386
+ scopeId: ln,
1387
+ slotScopeIds: null,
1388
+ children: n,
1389
+ component: null,
1390
+ suspense: null,
1391
+ ssContent: null,
1392
+ ssFallback: null,
1393
+ dirs: null,
1394
+ transition: null,
1395
+ el: null,
1396
+ anchor: null,
1397
+ target: null,
1398
+ targetStart: null,
1399
+ targetAnchor: null,
1400
+ staticCount: 0,
1401
+ shapeFlag: o,
1402
+ patchFlag: s,
1403
+ dynamicProps: r,
1404
+ dynamicChildren: null,
1405
+ appContext: null,
1406
+ ctx: ct
1407
+ };
1408
+ return c ? (Ct(l, n), o & 128 && t.normalize(l)) : n && (l.shapeFlag |= F(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && W("VNode created with invalid key (NaN). VNode type:", l.type), l;
1409
+ }
1410
+ const wn = process.env.NODE_ENV !== "production" ? yn : ue;
1411
+ function ue(t, e = null, n = null, s = 0, r = null, o = !1) {
1412
+ if ((!t || t === dn) && (process.env.NODE_ENV !== "production" && !t && W(`Invalid vnode type when creating vnode: ${t}.`), t = bn), mn(t)) {
1413
+ const c = ut(
1414
+ t,
1415
+ e,
1416
+ !0
1417
+ /* mergeRef: true */
1418
+ );
1419
+ return n && Ct(c, n), c.patchFlag = -2, c;
1420
+ }
1421
+ if (de(t) && (t = t.__vccOpts), e) {
1422
+ e = Nn(e);
1423
+ let { class: c, style: l } = e;
1424
+ c && !F(c) && (e.class = Ot(c)), O(l) && (/* @__PURE__ */ ot(l) && !N(l) && (l = B({}, l)), e.style = St(l));
1425
+ }
1426
+ const i = F(t) ? 1 : hn(t) ? 128 : fn(t) ? 64 : O(t) ? 4 : k(t) ? 2 : 0;
1427
+ return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ ot(t) && (t = /* @__PURE__ */ h(t), W(
1428
+ "Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
1429
+ `
1430
+ Component that was made reactive: `,
1431
+ t
1432
+ )), En(
1433
+ t,
1434
+ e,
1435
+ n,
1436
+ s,
1437
+ r,
1438
+ i,
1439
+ o,
1440
+ !0
1441
+ );
1442
+ }
1443
+ function Nn(t) {
1444
+ return t ? /* @__PURE__ */ ot(t) || se(t) ? B({}, t) : t : null;
1445
+ }
1446
+ function ut(t, e, n = !1, s = !1) {
1447
+ const { props: r, ref: o, patchFlag: i, children: c, transition: l } = t, _ = e ? On(r || {}, e) : r, a = {
1448
+ __v_isVNode: !0,
1449
+ __v_skip: !0,
1450
+ type: t.type,
1451
+ props: _,
1452
+ key: _ && ce(_),
1453
+ ref: e && e.ref ? (
1454
+ // #2078 in the case of <component :is="vnode" ref="extra"/>
1455
+ // if the vnode itself already has a ref, cloneVNode will need to merge
1456
+ // the refs so the single vnode can be set on multiple refs
1457
+ n && o ? N(o) ? o.concat(nt(e)) : [o, nt(e)] : nt(e)
1458
+ ) : o,
1459
+ scopeId: t.scopeId,
1460
+ slotScopeIds: t.slotScopeIds,
1461
+ children: process.env.NODE_ENV !== "production" && i === -1 && N(c) ? c.map(ae) : c,
1462
+ target: t.target,
1463
+ targetStart: t.targetStart,
1464
+ targetAnchor: t.targetAnchor,
1465
+ staticCount: t.staticCount,
1466
+ shapeFlag: t.shapeFlag,
1467
+ // if the vnode is cloned with extra props, we can no longer assume its
1468
+ // existing patch flag to be reliable and need to add the FULL_PROPS flag.
1469
+ // note: preserve flag for fragments since they use the flag for children
1470
+ // fast paths only.
1471
+ patchFlag: e && t.type !== ie ? i === -1 ? 16 : i | 16 : i,
1472
+ dynamicProps: t.dynamicProps,
1473
+ dynamicChildren: t.dynamicChildren,
1474
+ appContext: t.appContext,
1475
+ dirs: t.dirs,
1476
+ transition: l,
1477
+ // These should technically only be non-null on mounted VNodes. However,
1478
+ // they *should* be copied for kept-alive vnodes. So we just always copy
1479
+ // them since them being non-null during a mount doesn't affect the logic as
1480
+ // they will simply be overwritten.
1481
+ component: t.component,
1482
+ suspense: t.suspense,
1483
+ ssContent: t.ssContent && ut(t.ssContent),
1484
+ ssFallback: t.ssFallback && ut(t.ssFallback),
1485
+ placeholder: t.placeholder,
1486
+ el: t.el,
1487
+ anchor: t.anchor,
1488
+ ctx: t.ctx,
1489
+ ce: t.ce
1490
+ };
1491
+ return l && s && oe(
1492
+ a,
1493
+ l.clone(a)
1494
+ ), a;
1495
+ }
1496
+ function ae(t) {
1497
+ const e = ut(t);
1498
+ return N(t.children) && (e.children = t.children.map(ae)), e;
1499
+ }
1500
+ function Sn(t = " ", e = 0) {
1501
+ return wn(gn, null, t, e);
1502
+ }
1503
+ function Ct(t, e) {
1504
+ let n = 0;
1505
+ const { shapeFlag: s } = t;
1506
+ if (e == null)
1507
+ e = null;
1508
+ else if (N(e))
1509
+ n = 16;
1510
+ else if (typeof e == "object")
1511
+ if (s & 65) {
1512
+ const r = e.default;
1513
+ r && (r._c && (r._d = !1), Ct(t, r()), r._c && (r._d = !0));
1514
+ return;
1515
+ } else
1516
+ n = 32, !e._ && !se(e) && (e._ctx = ct);
1517
+ else k(e) ? (e = { default: e, _ctx: ct }, n = 32) : (e = String(e), s & 64 ? (n = 16, e = [Sn(e)]) : n = 8);
1518
+ t.children = e, t.shapeFlag |= n;
1519
+ }
1520
+ function On(...t) {
1521
+ const e = {};
1522
+ for (let n = 0; n < t.length; n++) {
1523
+ const s = t[n];
1524
+ for (const r in s)
1525
+ if (r === "class")
1526
+ e.class !== s.class && (e.class = Ot([e.class, s.class]));
1527
+ else if (r === "style")
1528
+ e.style = St([e.style, s.style]);
1529
+ else if (we(r)) {
1530
+ const o = e[r], i = s[r];
1531
+ i && o !== i && !(N(o) && o.includes(i)) && (e[r] = o ? [].concat(o, i) : i);
1532
+ } else r !== "" && (e[r] = s[r]);
1533
+ }
1534
+ return e;
1535
+ }
1536
+ {
1537
+ const t = at(), e = (n, s) => {
1538
+ let r;
1539
+ return (r = t[n]) || (r = t[n] = []), r.push(s), (o) => {
1540
+ r.length > 1 ? r.forEach((i) => i(o)) : r[0](o);
1541
+ };
1542
+ };
1543
+ e(
1544
+ "__VUE_INSTANCE_SETTERS__",
1545
+ (n) => n
1546
+ ), e(
1547
+ "__VUE_SSR_SETTERS__",
1548
+ (n) => n
1549
+ );
1550
+ }
1551
+ process.env.NODE_ENV;
1552
+ const vn = /(?:^|[-_])\w/g, Tn = (t) => t.replace(vn, (e) => e.toUpperCase()).replace(/[-_]/g, "");
1553
+ function le(t, e = !0) {
1554
+ return k(t) ? t.displayName || t.name : t.name || e && t.__name;
1555
+ }
1556
+ function fe(t, e, n = !1) {
1557
+ let s = le(e);
1558
+ if (!s && e.__file) {
1559
+ const r = e.__file.match(/([^/\\]+)\.\w+$/);
1560
+ r && (s = r[1]);
1561
+ }
1562
+ if (!s && t) {
1563
+ const r = (o) => {
1564
+ for (const i in o)
1565
+ if (o[i] === e)
1566
+ return i;
1567
+ };
1568
+ s = r(t.components) || t.parent && r(
1569
+ t.parent.type.components
1570
+ ) || r(t.appContext.components);
1571
+ }
1572
+ return s ? Tn(s) : n ? "App" : "Anonymous";
1573
+ }
1574
+ function de(t) {
1575
+ return k(t) && "__vccOpts" in t;
1576
+ }
1577
+ function Rn() {
1578
+ if (process.env.NODE_ENV === "production" || typeof window > "u")
1579
+ return;
1580
+ const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
1581
+ __vue_custom_formatter: !0,
1582
+ header(u) {
1583
+ if (!O(u))
1584
+ return null;
1585
+ if (u.__isVue)
1586
+ return ["div", t, "VueInstance"];
1587
+ if (/* @__PURE__ */ P(u)) {
1588
+ const f = u.value;
1589
+ return [
1590
+ "div",
1591
+ {},
1592
+ ["span", t, a(u)],
1593
+ "<",
1594
+ c(f),
1595
+ ">"
1596
+ ];
1597
+ } else {
1598
+ if (/* @__PURE__ */ Tt(u))
1599
+ return [
1600
+ "div",
1601
+ {},
1602
+ ["span", t, /* @__PURE__ */ T(u) ? "ShallowReactive" : "Reactive"],
1603
+ "<",
1604
+ c(u),
1605
+ `>${/* @__PURE__ */ D(u) ? " (readonly)" : ""}`
1606
+ ];
1607
+ if (/* @__PURE__ */ D(u))
1608
+ return [
1609
+ "div",
1610
+ {},
1611
+ ["span", t, /* @__PURE__ */ T(u) ? "ShallowReadonly" : "Readonly"],
1612
+ "<",
1613
+ c(u),
1614
+ ">"
1615
+ ];
1616
+ }
1617
+ return null;
1618
+ },
1619
+ hasBody(u) {
1620
+ return u && u.__isVue;
1621
+ },
1622
+ body(u) {
1623
+ if (u && u.__isVue)
1624
+ return [
1625
+ "div",
1626
+ {},
1627
+ ...o(u.$)
1628
+ ];
1629
+ }
1630
+ };
1631
+ function o(u) {
1632
+ const f = [];
1633
+ u.type.props && u.props && f.push(i("props", /* @__PURE__ */ h(u.props))), u.setupState !== mt && f.push(i("setup", u.setupState)), u.data !== mt && f.push(i("data", /* @__PURE__ */ h(u.data)));
1634
+ const d = l(u, "computed");
1635
+ d && f.push(i("computed", d));
1636
+ const g = l(u, "inject");
1637
+ return g && f.push(i("injected", g)), f.push([
1638
+ "div",
1639
+ {},
1640
+ [
1641
+ "span",
1642
+ {
1643
+ style: s.style + ";opacity:0.66"
1644
+ },
1645
+ "$ (internal): "
1646
+ ],
1647
+ ["object", { object: u }]
1648
+ ]), f;
1649
+ }
1650
+ function i(u, f) {
1651
+ return f = B({}, f), Object.keys(f).length ? [
1652
+ "div",
1653
+ { style: "line-height:1.25em;margin-bottom:0.6em" },
1654
+ [
1655
+ "div",
1656
+ {
1657
+ style: "color:#476582"
1658
+ },
1659
+ u
1660
+ ],
1661
+ [
1662
+ "div",
1663
+ {
1664
+ style: "padding-left:1.25em"
1665
+ },
1666
+ ...Object.keys(f).map((d) => [
1667
+ "div",
1668
+ {},
1669
+ ["span", s, d + ": "],
1670
+ c(f[d], !1)
1671
+ ])
1672
+ ]
1673
+ ] : ["span", {}];
1674
+ }
1675
+ function c(u, f = !0) {
1676
+ return typeof u == "number" ? ["span", e, u] : typeof u == "string" ? ["span", n, JSON.stringify(u)] : typeof u == "boolean" ? ["span", s, u] : O(u) ? ["object", { object: f ? /* @__PURE__ */ h(u) : u }] : ["span", n, String(u)];
1677
+ }
1678
+ function l(u, f) {
1679
+ const d = u.type;
1680
+ if (k(d))
1681
+ return;
1682
+ const g = {};
1683
+ for (const b in u.ctx)
1684
+ _(d, b, f) && (g[b] = u.ctx[b]);
1685
+ return g;
1686
+ }
1687
+ function _(u, f, d) {
1688
+ const g = u[d];
1689
+ if (N(g) && g.includes(f) || O(g) && f in g || u.extends && _(u.extends, f, d) || u.mixins && u.mixins.some((b) => _(b, f, d)))
1690
+ return !0;
1691
+ }
1692
+ function a(u) {
1693
+ return /* @__PURE__ */ T(u) ? "ShallowRef" : u.effect ? "ComputedRef" : "Ref";
1694
+ }
1695
+ window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
1696
+ }
1697
+ process.env.NODE_ENV;
1698
+ process.env.NODE_ENV;
1699
+ process.env.NODE_ENV;
1700
+ function Cn() {
1701
+ Rn();
1702
+ }
1703
+ process.env.NODE_ENV !== "production" && Cn();
1704
+ function Fn(t) {
1705
+ function e(n, ...s) {
1706
+ if (n === void 0)
1707
+ return;
1708
+ if (Dn(n))
1709
+ return n;
1710
+ let r;
1711
+ if (typeof n == "string") {
1712
+ const o = new Array();
1713
+ o.push(n), Object.defineProperty(o, "raw", {
1714
+ value: Object.freeze([n]),
1715
+ writable: !1
1716
+ }), r = /* @__PURE__ */ rt(o);
1717
+ } else
1718
+ r = n;
1719
+ return {
1720
+ _attributes: {
1721
+ rule: "Note",
1722
+ template: r,
1723
+ inject: s
1724
+ }
1725
+ };
1726
+ }
1727
+ return e;
1728
+ }
1729
+ function Dn(t) {
1730
+ return t._attributes && t._attributes.rule === "Note";
1731
+ }
1732
+ function xn(t) {
1733
+ return (n, s, r) => {
1734
+ const o = w(t), i = o.customInfoArrToInfoObj(
1735
+ s instanceof Function ? s() : s
1736
+ ), c = E();
1737
+ function l(a, u, f) {
1738
+ if (typeof a == "object")
1739
+ return o.linkTo("Agg", c, a._attributes.rule, a._attributes.__id), a;
1740
+ const d = o.createEvent(a, u, f);
1741
+ return o.linkTo("Agg", c, d._attributes.rule, d._attributes.__id), d;
1742
+ }
1743
+ const _ = {
1744
+ _attributes: {
1745
+ __id: c,
1746
+ rule: "Agg",
1747
+ name: n,
1748
+ infos: i,
1749
+ note: o.createNote(r)
1750
+ },
1751
+ inner: i,
1752
+ event: l,
1753
+ toFormat() {
1754
+ return o.toFormat(this);
1755
+ }
1756
+ };
1757
+ return o.registerAgg(_), _;
1758
+ };
1759
+ }
1760
+ function An(t) {
1761
+ const e = "System";
1762
+ return (n, s) => {
1763
+ const r = w(t), o = E();
1764
+ function i(a, u, f) {
1765
+ if (typeof a == "object")
1766
+ return r.linkTo(e, o, a._attributes.rule, a._attributes.__id), a;
1767
+ const d = r.createCommand(a, u, f);
1768
+ return r.linkTo(e, o, d._attributes.rule, d._attributes.__id), d;
1769
+ }
1770
+ function c(a, u, f) {
1771
+ if (typeof a == "object")
1772
+ return r.linkTo(e, o, a._attributes.rule, a._attributes.__id), a;
1773
+ {
1774
+ const d = r.createFacadeCommand(a, u, f);
1775
+ return r.linkTo(e, o, d._attributes.rule, d._attributes.__id), d;
1776
+ }
1777
+ }
1778
+ function l(a, u, f) {
1779
+ if (typeof a == "object")
1780
+ return r.linkTo(e, o, a._attributes.rule, a._attributes.__id), a;
1781
+ {
1782
+ const d = r.createEvent(a, u, f);
1783
+ return r.linkTo(e, o, d._attributes.rule, d._attributes.__id), d;
1784
+ }
1785
+ }
1786
+ const _ = {
1787
+ _attributes: {
1788
+ __id: o,
1789
+ rule: e,
1790
+ name: n,
1791
+ note: r.createNote(s)
1792
+ },
1793
+ command: i,
1794
+ facadeCmd: c,
1795
+ event: l,
1796
+ toFormat() {
1797
+ return r.toFormat(this);
1798
+ }
1799
+ };
1800
+ return r.registerSystem(_), _;
1801
+ };
1802
+ }
1803
+ function In(t) {
1804
+ const e = "Policy";
1805
+ return (n, s) => {
1806
+ const r = w(t), o = E();
1807
+ function i(a, u, f) {
1808
+ if (typeof a == "object")
1809
+ return r.linkTo(e, o, a._attributes.rule, a._attributes.__id), a;
1810
+ const d = r.createCommand(n, u, f);
1811
+ return r.linkTo(e, o, d._attributes.rule, d._attributes.__id), d;
1812
+ }
1813
+ function c(a, u, f) {
1814
+ if (typeof a == "object")
1815
+ return r.linkTo(e, o, a._attributes.rule, a._attributes.__id), a;
1816
+ const d = r.createFacadeCommand(n, u, f);
1817
+ return r.linkTo(e, o, d._attributes.rule, d._attributes.__id), d;
1818
+ }
1819
+ function l(a, u) {
1820
+ if (typeof a == "object")
1821
+ return r.linkTo(e, o, a._attributes.rule, a._attributes.__id), a;
1822
+ const f = r.createService(a, u);
1823
+ return r.linkTo(e, o, f._attributes.rule, f._attributes.__id), f;
1824
+ }
1825
+ const _ = {
1826
+ _attributes: {
1827
+ __id: o,
1828
+ rule: e,
1829
+ name: n,
1830
+ note: r.createNote(s)
1831
+ },
1832
+ command: i,
1833
+ facadeCmd: c,
1834
+ service: l,
1835
+ toFormat() {
1836
+ return r.toFormat(this);
1837
+ }
1838
+ };
1839
+ return r.registerPolicy(_), _;
1840
+ };
1841
+ }
1842
+ function Vn(t) {
1843
+ const e = "Service";
1844
+ return (n, s) => {
1845
+ const r = w(t), o = E();
1846
+ function i(a, u, f) {
1847
+ if (typeof a == "object")
1848
+ return r.linkTo(e, o, a._attributes.rule, a._attributes.__id), a;
1849
+ {
1850
+ const d = r.createAgg(a, u, f);
1851
+ return r.linkTo(e, o, d._attributes.rule, d._attributes.__id), d;
1852
+ }
1853
+ }
1854
+ function c(a, u, f) {
1855
+ if (typeof a == "object")
1856
+ return r.linkTo(e, o, a._attributes.rule, a._attributes.__id), a;
1857
+ const d = r.createCommand(a, u, f);
1858
+ return r.linkTo(e, o, d._attributes.rule, d._attributes.__id), d;
1859
+ }
1860
+ function l(a, u, f) {
1861
+ if (typeof a == "object")
1862
+ return r.linkTo(e, o, a._attributes.rule, a._attributes.__id), a;
1863
+ {
1864
+ const d = r.createFacadeCommand(a, u, f);
1865
+ return r.linkTo(e, o, d._attributes.rule, d._attributes.__id), d;
1866
+ }
1867
+ }
1868
+ const _ = {
1869
+ _attributes: {
1870
+ __id: o,
1871
+ rule: e,
1872
+ name: n,
1873
+ note: r.createNote(s)
1874
+ },
1875
+ agg: i,
1876
+ command: c,
1877
+ facadeCmd: l,
1878
+ toFormat() {
1879
+ return r.toFormat(this);
1880
+ }
1881
+ };
1882
+ return r.registerService(_), _;
1883
+ };
1884
+ }
1885
+ function Pn(t) {
1886
+ const e = "ReadModel";
1887
+ return (n, s, r) => {
1888
+ const o = w(t), i = E(), c = o.customInfoArrToInfoObj(
1889
+ s instanceof Function ? s() : s
1890
+ ), l = {
1891
+ _attributes: {
1892
+ __id: i,
1893
+ rule: e,
1894
+ name: n,
1895
+ infos: c,
1896
+ note: o.createNote(r)
1897
+ },
1898
+ inner: c,
1899
+ toFormat() {
1900
+ return o.toFormat(this);
1901
+ }
1902
+ };
1903
+ return o.registerReadModel(l), l;
1904
+ };
1905
+ }
1906
+ function jt() {
1907
+ return {
1908
+ moduleName: "",
1909
+ ignoreValueObjects: [
1910
+ "time",
1911
+ "id",
1912
+ "pid",
1913
+ "name",
1914
+ "state",
1915
+ "status",
1916
+ "version",
1917
+ "code",
1918
+ "message",
1919
+ "type",
1920
+ "result",
1921
+ "data",
1922
+ "payload",
1923
+ "meta",
1924
+ "context",
1925
+ "sorting"
1926
+ ],
1927
+ __toFormatType: "BngleBrackets"
1928
+ };
1929
+ }
1930
+ function zn(t) {
1931
+ t ? t = Object.assign(jt(), t) : t = jt();
1932
+ const e = E(), n = Fn(), s = he(e), r = ye(e), o = ge(e), i = be(e), c = xn(e), l = me(e), _ = An(e), a = In(e), u = Vn(e), f = Pn(e), d = w(e, () => ({
1933
+ id: e,
1934
+ options: t,
1935
+ createNote: n,
1936
+ createInfo: s,
1937
+ createActor: r,
1938
+ createCommand: o,
1939
+ createFacadeCommand: i,
1940
+ createAgg: c,
1941
+ createEvent: l,
1942
+ createSystem: _,
1943
+ createPolicy: a,
1944
+ createService: u,
1945
+ createReadModel: f
1946
+ }));
1947
+ return {
1948
+ startWorkflow: d.startWorkflow,
1949
+ defineUserStory: d.defineUserStory,
1950
+ note: n,
1951
+ info: d.info,
1952
+ actor: r,
1953
+ command: o,
1954
+ facadeCmd: i,
1955
+ agg: c,
1956
+ event: l,
1957
+ system: _,
1958
+ policy: a,
1959
+ service: u,
1960
+ readModel: f,
1961
+ _getContext: () => d
1962
+ };
1963
+ }
1964
+ export {
1965
+ jn as DomainDesignRule,
1966
+ zn as createDomainDesigner,
1967
+ jt as defaultOptions,
1968
+ $n as isDomainDesignActor,
1969
+ Un as isDomainDesignAgg,
1970
+ Ln as isDomainDesignCommand,
1971
+ Hn as isDomainDesignEvent,
1972
+ Kn as isDomainDesignFacadeCommand,
1973
+ Mn as isDomainDesignInfo,
1974
+ kn as isDomainDesignInfoFunc,
1975
+ Wn as isDomainDesignPolicy,
1976
+ Bn as isDomainDesignReadModel,
1977
+ Jn as isDomainDesignService,
1978
+ Yn as isDomainDesignSystem,
1979
+ qn as isDomainDesigner
1980
+ };