eligius 4.0.0 → 4.1.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.
@@ -1,9 +1,9 @@
1
1
 
2
- import { t as __exportAll } from "./rolldown-runtime-BOlb2svz.mjs";
3
- import { isDefined } from "ts-is-present";
2
+ import { t as __exportAll } from "./rolldown-runtime-CGzGPw9x.mjs";
4
3
  import { v4 } from "uuid";
4
+ import { isDefined } from "ts-is-present";
5
5
 
6
- //#region src/util/guards/is-plain-object.ts
6
+ // src/util/guards/is-plain-object.ts
7
7
  const functionToString = Function.prototype.toString;
8
8
  /** Source text of `Object`, the same in every realm */
9
9
  const objectConstructorSource = functionToString.call(Object);
@@ -26,65 +26,75 @@ function isPlainObject$1(value) {
26
26
  return typeof objectConstructor === "function" && functionToString.call(objectConstructor) === objectConstructorSource;
27
27
  }
28
28
 
29
- //#endregion
30
- //#region src/operation/helper/deep-copy.ts
29
+ // src/operation/helper/deep-copy.ts
31
30
  const copyFunction = typeof structuredClone !== "undefined" ? structuredClone : (original) => JSON.parse(JSON.stringify(original));
32
31
  /**
33
- * Deep copies the given value.
32
+ * Deep-copies plain data: arrays and plain objects are copied recursively (cycles are preserved),
33
+ * Date, RegExp, Map, Set, Error, ArrayBuffer and typed arrays are cloned, and everything else
34
+ * (functions, jQuery objects, DOM nodes, class instances) is kept by reference.
34
35
  *
35
- * Arrays and plain objects are copied recursively (cycles are preserved). Date, RegExp,
36
- * Map, Set, Error, ArrayBuffer and typed array values are copied with `structuredClone`.
36
+ * An own `__proto__` key (as `JSON.parse` creates) stays an own data property of the copy.
37
37
  *
38
- * Everything else is kept by reference:
39
- * - functions, so function-valued operation data (such as `mapArray`'s `mapFunction` or
40
- * `sortArray`'s `sortComparator`, supplied through the TypeScript fluent API) survives
41
- * the copy;
42
- * - jQuery instances and DOM nodes;
43
- * - class instances (controllers, actions, the eventbus and other objects whose prototype
44
- * is not `Object.prototype` or `null`). `structuredClone` would either throw on them or
45
- * return a plain object without their methods.
38
+ * This runs for every execution of every operation with nested configured data, so it avoids
39
+ * work on the common shapes: the cycle map is only created once a nested object or array
40
+ * appears, and plain keys are assigned instead of defined.
46
41
  *
47
- * @param original The value to copy.
48
- * @returns The copy.
42
+ * @param original The value to copy
43
+ * @returns The copy, or the value itself when it is not copied
49
44
  */
50
45
  function deepCopy(original) {
51
- if (isDefined(original)) return copyValue(original, /* @__PURE__ */ new WeakMap());
52
- return original;
46
+ if (original === null || typeof original !== "object" || isReferenceOnly(original)) return original;
47
+ return copyObject(original, { seen: null });
48
+ }
49
+ /**
50
+ * Copies a child value of `parentValue`, whose copy is `parentCopy`.
51
+ */
52
+ function copyChild(child, parentValue, parentCopy, context) {
53
+ if (child === null || typeof child !== "object" || isReferenceOnly(child)) return child;
54
+ if (context.seen === null) {
55
+ context.seen = /* @__PURE__ */ new WeakMap();
56
+ context.seen.set(parentValue, parentCopy);
57
+ }
58
+ return copyObject(child, context);
53
59
  }
54
- function copyValue(value, seen) {
55
- if (value === null || typeof value !== "object") return value;
56
- if (isReferenceOnly(value)) return value;
57
- if (seen.has(value)) return seen.get(value);
60
+ /**
61
+ * Copies an object that is not reference-only.
62
+ */
63
+ function copyObject(value, context) {
64
+ const { seen } = context;
65
+ const prior = seen?.get(value);
66
+ if (prior !== void 0) return prior;
58
67
  if (Array.isArray(value)) {
59
68
  const copy = new Array(value.length);
60
- seen.set(value, copy);
69
+ if (seen !== null) seen.set(value, copy);
61
70
  value.forEach((item, index) => {
62
- copy[index] = copyValue(item, seen);
71
+ copy[index] = copyChild(item, value, copy, context);
63
72
  });
64
73
  return copy;
65
74
  }
66
75
  if (isPlainObject$1(value)) {
67
76
  const copy = {};
68
- seen.set(value, copy);
69
- for (const key of Object.keys(value)) Object.defineProperty(copy, key, {
70
- value: copyValue(value[key], seen),
71
- writable: true,
72
- enumerable: true,
73
- configurable: true
74
- });
77
+ if (seen !== null) seen.set(value, copy);
78
+ for (const key of Object.keys(value)) {
79
+ const copied = copyChild(value[key], value, copy, context);
80
+ if (key === "__proto__") Object.defineProperty(copy, key, {
81
+ value: copied,
82
+ writable: true,
83
+ enumerable: true,
84
+ configurable: true
85
+ });
86
+ else copy[key] = copied;
87
+ }
75
88
  return copy;
76
89
  }
77
90
  if (!isStructuredCloneable(value)) return value;
78
91
  const copy = copyFunction(value);
79
- seen.set(value, copy);
92
+ if (seen !== null) seen.set(value, copy);
80
93
  return copy;
81
94
  }
82
95
  function isReferenceOnly(value) {
83
96
  return typeof value.jquery === "string" || typeof Node !== "undefined" && value instanceof Node;
84
97
  }
85
- /**
86
- * Built-in value types that `structuredClone` copies faithfully.
87
- */
88
98
  function isStructuredCloneable(value) {
89
99
  return cloneableTags.has(Object.prototype.toString.call(value)) || ArrayBuffer.isView(value);
90
100
  }
@@ -97,8 +107,7 @@ const cloneableTags = /* @__PURE__ */ new Set([
97
107
  "[object ArrayBuffer]"
98
108
  ]);
99
109
 
100
- //#endregion
101
- //#region src/operation/metadata/add-class.ts
110
+ // src/operation/metadata/add-class.ts
102
111
  function addClass() {
103
112
  return {
104
113
  description: `This operation adds the specified class name to the specified selected element.`,
@@ -112,8 +121,7 @@ function addClass() {
112
121
  };
113
122
  }
114
123
 
115
- //#endregion
116
- //#region src/operation/metadata/add-controller-to-element.ts
124
+ // src/operation/metadata/add-controller-to-element.ts
117
125
  function addControllerToElement() {
118
126
  return {
119
127
  description: `This operation adds the specified controller instance to the given selected element.
@@ -127,8 +135,7 @@ the element again when the promise rejects.`,
127
135
  };
128
136
  }
129
137
 
130
- //#endregion
131
- //#region src/operation/metadata/add-globals-to-operation.ts
138
+ // src/operation/metadata/add-globals-to-operation.ts
132
139
  function addGlobalsToOperation() {
133
140
  return {
134
141
  description: `This operation adds the specified global property names to the current operation data.
@@ -146,8 +153,7 @@ nodes, functions and class instances (such as controllers) are added by referenc
146
153
  };
147
154
  }
148
155
 
149
- //#endregion
150
- //#region src/operation/metadata/animate-with-class.ts
156
+ // src/operation/metadata/animate-with-class.ts
151
157
  function animateWithClass() {
152
158
  return {
153
159
  description: `This operation adds the specified class name to the specified selected element and assumes that this
@@ -184,8 +190,7 @@ animation is waited for until it is ended by an \`animationend\` event.`,
184
190
  };
185
191
  }
186
192
 
187
- //#endregion
188
- //#region src/operation/metadata/animate.ts
193
+ // src/operation/metadata/animate.ts
189
194
  function animate() {
190
195
  return {
191
196
  description: `This operation animates the specified selected element with the given [jQuery animation](https://api.jquery.com/animate/) properties, duration and easing.
@@ -211,8 +216,7 @@ It resolves after the animation completes, or immediately when the selected elem
211
216
  };
212
217
  }
213
218
 
214
- //#endregion
215
- //#region src/operation/metadata/announce-to-screen-reader.ts
219
+ // src/operation/metadata/announce-to-screen-reader.ts
216
220
  function announceToScreenReader() {
217
221
  return {
218
222
  description: `Announces a message to screen readers using an ARIA live region.
@@ -238,8 +242,7 @@ The operation returns at once and does not wait for the message to be written.`,
238
242
  };
239
243
  }
240
244
 
241
- //#endregion
242
- //#region src/operation/metadata/break-for-each.ts
245
+ // src/operation/metadata/break-for-each.ts
243
246
  function breakForEach() {
244
247
  return {
245
248
  description: `This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
@@ -250,8 +253,7 @@ It can be placed inside a \`when\`/\`otherwise\`/\`endWhen\` block within the lo
250
253
  };
251
254
  }
252
255
 
253
- //#endregion
254
- //#region src/operation/metadata/broadcast-event.ts
256
+ // src/operation/metadata/broadcast-event.ts
255
257
  function broadcastEvent() {
256
258
  return {
257
259
  description: `This operation broadcasts the given event through the eventbus, along with the
@@ -276,8 +278,7 @@ event arguments and optional event topic.`,
276
278
  };
277
279
  }
278
280
 
279
- //#endregion
280
- //#region src/operation/metadata/calc.ts
281
+ // src/operation/metadata/calc.ts
281
282
  function calc() {
282
283
  return {
283
284
  description: `This operation calculates the given left and right hand operands using the specified operator.
@@ -314,8 +315,7 @@ it is.`,
314
315
  };
315
316
  }
316
317
 
317
- //#endregion
318
- //#region src/operation/metadata/clear-element.ts
318
+ // src/operation/metadata/clear-element.ts
319
319
  function clearElement() {
320
320
  return {
321
321
  description: `This operation removes all of the children from the given selected element.
@@ -327,8 +327,7 @@ are detached first. Controllers on the selected element itself stay attached.`,
327
327
  };
328
328
  }
329
329
 
330
- //#endregion
331
- //#region src/operation/metadata/clear-operation-data.ts
330
+ // src/operation/metadata/clear-operation-data.ts
332
331
  function clearOperationData() {
333
332
  return {
334
333
  description: `This operation removes all of the properties on the current operation date.
@@ -342,8 +341,7 @@ Or, if the \`properties\` property is set only removes the properties defined by
342
341
  };
343
342
  }
344
343
 
345
- //#endregion
346
- //#region src/operation/metadata/clear-storage.ts
344
+ // src/operation/metadata/clear-storage.ts
347
345
  function clearStorage() {
348
346
  return {
349
347
  description: `Clears data from browser storage (localStorage or sessionStorage).
@@ -366,8 +364,7 @@ from missing data never wipes the whole storage.`,
366
364
  };
367
365
  }
368
366
 
369
- //#endregion
370
- //#region src/operation/metadata/compare-date.ts
367
+ // src/operation/metadata/compare-date.ts
371
368
  function compareDate() {
372
369
  return {
373
370
  description: `Compares two dates.
@@ -394,8 +391,7 @@ comparison: -1 (before), 0 (equal), 1 (after)`,
394
391
  };
395
392
  }
396
393
 
397
- //#endregion
398
- //#region src/operation/metadata/concatenate-strings.ts
394
+ // src/operation/metadata/concatenate-strings.ts
399
395
  function concatenateStrings() {
400
396
  return {
401
397
  description: `Concatenates multiple strings with an optional separator.`,
@@ -416,8 +412,7 @@ function concatenateStrings() {
416
412
  };
417
413
  }
418
414
 
419
- //#endregion
420
- //#region src/operation/metadata/continue-for-each.ts
415
+ // src/operation/metadata/continue-for-each.ts
421
416
  function continueForEach() {
422
417
  return {
423
418
  description: `This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
@@ -429,8 +424,7 @@ It can be placed inside a \`when\`/\`otherwise\`/\`endWhen\` block within the lo
429
424
  };
430
425
  }
431
426
 
432
- //#endregion
433
- //#region src/operation/metadata/create-element.ts
427
+ // src/operation/metadata/create-element.ts
434
428
  function createElement() {
435
429
  return {
436
430
  description: `This operation creates the DOM element described by the given elementName and attributes and assigns
@@ -462,8 +456,7 @@ URLs in URL attributes such as \`href\`, \`src\` and \`formaction\` are refused.
462
456
  };
463
457
  }
464
458
 
465
- //#endregion
466
- //#region src/operation/metadata/custom-function.ts
459
+ // src/operation/metadata/custom-function.ts
467
460
  function customFunction() {
468
461
  return {
469
462
  description: `This operation retrieves a custom function defined by the given system name
@@ -489,8 +482,7 @@ operation runs in.`,
489
482
  };
490
483
  }
491
484
 
492
- //#endregion
493
- //#region src/operation/metadata/end-action.ts
485
+ // src/operation/metadata/end-action.ts
494
486
  function endAction() {
495
487
  return {
496
488
  description: `This operation invokes the {@link EndableAction}.end method on the specified action instance.
@@ -508,8 +500,7 @@ had before, without the \`actionOperationData\` property.`,
508
500
  };
509
501
  }
510
502
 
511
- //#endregion
512
- //#region src/operation/metadata/end-for-each.ts
503
+ // src/operation/metadata/end-for-each.ts
513
504
  function endForEach() {
514
505
  return {
515
506
  description: `This operation checks if the current loop should end or start the next iteration.`,
@@ -517,8 +508,7 @@ function endForEach() {
517
508
  };
518
509
  }
519
510
 
520
- //#endregion
521
- //#region src/operation/metadata/end-when.ts
511
+ // src/operation/metadata/end-when.ts
522
512
  function endWhen() {
523
513
  return {
524
514
  description: `This operation cleans up after the {@link when}/{@link otherwise}/{@link endWhen} control flow ends.`,
@@ -526,8 +516,7 @@ function endWhen() {
526
516
  };
527
517
  }
528
518
 
529
- //#endregion
530
- //#region src/operation/metadata/extend-controller.ts
519
+ // src/operation/metadata/extend-controller.ts
531
520
  function extendController() {
532
521
  return {
533
522
  description: `Extends the current controller with given extension.
@@ -543,8 +532,7 @@ The extension's own properties are copied onto the controller instance.`,
543
532
  };
544
533
  }
545
534
 
546
- //#endregion
547
- //#region src/operation/metadata/filter-array.ts
535
+ // src/operation/metadata/filter-array.ts
548
536
  function filterArray() {
549
537
  return {
550
538
  description: `Filters an array based on property equality or custom predicate function.
@@ -573,8 +561,7 @@ Supports two filtering modes:
573
561
  };
574
562
  }
575
563
 
576
- //#endregion
577
- //#region src/operation/metadata/find-in-array.ts
564
+ // src/operation/metadata/find-in-array.ts
578
565
  function findInArray() {
579
566
  return {
580
567
  description: `Finds the first element in an array matching criteria.
@@ -608,8 +595,7 @@ Returns \`undefined\` for \`foundItem\` and \`-1\` for \`foundIndex\` if no matc
608
595
  };
609
596
  }
610
597
 
611
- //#endregion
612
- //#region src/operation/metadata/for-each.ts
598
+ // src/operation/metadata/for-each.ts
613
599
  function forEach() {
614
600
  return {
615
601
  description: `This operation iterates over the given collection.
@@ -634,8 +620,7 @@ change the items or the number of iterations of the running loop.`,
634
620
  };
635
621
  }
636
622
 
637
- //#endregion
638
- //#region src/operation/metadata/format-date.ts
623
+ // src/operation/metadata/format-date.ts
639
624
  function formatDate() {
640
625
  return {
641
626
  description: `Formats a date with a simple token pattern, in the local time zone.
@@ -658,8 +643,7 @@ Supported tokens (every occurrence is replaced, other characters are kept as is)
658
643
  };
659
644
  }
660
645
 
661
- //#endregion
662
- //#region src/operation/metadata/format-text.ts
646
+ // src/operation/metadata/format-text.ts
663
647
  function formatText() {
664
648
  return {
665
649
  description: `Transforms text using format operations: uppercase, lowercase, capitalize, titlecase, or trim.
@@ -689,8 +673,7 @@ Transformations:
689
673
  };
690
674
  }
691
675
 
692
- //#endregion
693
- //#region src/operation/metadata/get-attributes-from-element.ts
676
+ // src/operation/metadata/get-attributes-from-element.ts
694
677
  function getAttributesFromElement() {
695
678
  return {
696
679
  description: `This operation retrieves the values for the specified attribute names from the given selected element.`,
@@ -706,8 +689,7 @@ function getAttributesFromElement() {
706
689
  };
707
690
  }
708
691
 
709
- //#endregion
710
- //#region src/operation/metadata/get-controller-from-element.ts
692
+ // src/operation/metadata/get-controller-from-element.ts
711
693
  function getControllerFromElement() {
712
694
  return {
713
695
  description: `This operation retrieves the controller instance with the specified name that is assigned to the given selected element.`,
@@ -722,8 +704,7 @@ function getControllerFromElement() {
722
704
  };
723
705
  }
724
706
 
725
- //#endregion
726
- //#region src/operation/metadata/get-controller-instance.ts
707
+ // src/operation/metadata/get-controller-instance.ts
727
708
  function getControllerInstance() {
728
709
  return {
729
710
  description: `This operation retrieves an instance of the given controller name.
@@ -738,8 +719,7 @@ It assigns this instance to the \`controllerInstance\` property on the current o
738
719
  };
739
720
  }
740
721
 
741
- //#endregion
742
- //#region src/operation/metadata/get-current-time.ts
722
+ // src/operation/metadata/get-current-time.ts
743
723
  function getCurrentTime() {
744
724
  return {
745
725
  description: `Gets the current time as timestamp and Date object.`,
@@ -751,8 +731,7 @@ function getCurrentTime() {
751
731
  };
752
732
  }
753
733
 
754
- //#endregion
755
- //#region src/operation/metadata/get-element-dimensions.ts
734
+ // src/operation/metadata/get-element-dimensions.ts
756
735
  function getElementDimensions() {
757
736
  return {
758
737
  description: `This operation calculates the width and height of the given selected element.
@@ -778,8 +757,7 @@ it will add a value of 100 to the height and modify the width by a ratio of 8 to
778
757
  };
779
758
  }
780
759
 
781
- //#endregion
782
- //#region src/operation/metadata/get-focused-element.ts
760
+ // src/operation/metadata/get-focused-element.ts
783
761
  function getFocusedElement() {
784
762
  return {
785
763
  description: `Gets the currently focused element.`,
@@ -788,8 +766,7 @@ function getFocusedElement() {
788
766
  };
789
767
  }
790
768
 
791
- //#endregion
792
- //#region src/operation/metadata/get-form-data.ts
769
+ // src/operation/metadata/get-form-data.ts
793
770
  function getFormData() {
794
771
  return {
795
772
  description: `Extracts all input, select, and textarea values from form element into operation data.
@@ -803,8 +780,7 @@ select elements, textareas, and text inputs.`,
803
780
  };
804
781
  }
805
782
 
806
- //#endregion
807
- //#region src/operation/metadata/get-import.ts
783
+ // src/operation/metadata/get-import.ts
808
784
  function getImport() {
809
785
  return {
810
786
  description: `This operation retrieves the import specified by the given \`systemName\` and
@@ -825,8 +801,7 @@ way, as can every built-in operation, controller and provider export.`,
825
801
  };
826
802
  }
827
803
 
828
- //#endregion
829
- //#region src/operation/metadata/get-query-params.ts
804
+ // src/operation/metadata/get-query-params.ts
830
805
  function getQueryParams() {
831
806
  return {
832
807
  description: `This operation retrieves the current query parameters from the browser's address bar and places
@@ -840,8 +815,7 @@ them on the returned operation data.`,
840
815
  };
841
816
  }
842
817
 
843
- //#endregion
844
- //#region src/operation/metadata/get-scroll-position.ts
818
+ // src/operation/metadata/get-scroll-position.ts
845
819
  function getScrollPosition() {
846
820
  return {
847
821
  description: `Gets the current scroll position of the viewport.
@@ -856,8 +830,7 @@ Uses cross-browser compatible methods to retrieve scroll position.`,
856
830
  };
857
831
  }
858
832
 
859
- //#endregion
860
- //#region src/operation/metadata/get-text-content.ts
833
+ // src/operation/metadata/get-text-content.ts
861
834
  function getTextContent() {
862
835
  return {
863
836
  description: `Extracts text content from element, stripping all HTML markup.
@@ -870,8 +843,7 @@ without any HTML tags. Preserves whitespace and text from nested elements.`,
870
843
  };
871
844
  }
872
845
 
873
- //#endregion
874
- //#region src/operation/metadata/http-delete.ts
846
+ // src/operation/metadata/http-delete.ts
875
847
  function httpDelete() {
876
848
  return {
877
849
  description: `Performs an HTTP DELETE request to the specified URL.`,
@@ -894,8 +866,7 @@ function httpDelete() {
894
866
  };
895
867
  }
896
868
 
897
- //#endregion
898
- //#region src/operation/metadata/http-post.ts
869
+ // src/operation/metadata/http-post.ts
899
870
  function httpPost() {
900
871
  return {
901
872
  description: `Performs an HTTP POST request to the specified URL.
@@ -926,8 +897,7 @@ body is sent as is; other bodies are still JSON encoded.`,
926
897
  };
927
898
  }
928
899
 
929
- //#endregion
930
- //#region src/operation/metadata/http-put.ts
900
+ // src/operation/metadata/http-put.ts
931
901
  function httpPut() {
932
902
  return {
933
903
  description: `Performs an HTTP PUT request to the specified URL.
@@ -958,8 +928,7 @@ body is sent as is; other bodies are still JSON encoded.`,
958
928
  };
959
929
  }
960
930
 
961
- //#endregion
962
- //#region src/operation/metadata/invoke-object-method.ts
931
+ // src/operation/metadata/invoke-object-method.ts
963
932
  function invokeObjectMethod() {
964
933
  return {
965
934
  description: `This operation invokes the specified method on the given object with the given optional arguments
@@ -996,8 +965,7 @@ only expose methods that are safe to call with configured data.`,
996
965
  };
997
966
  }
998
967
 
999
- //#endregion
1000
- //#region src/operation/metadata/is-element-in-viewport.ts
968
+ // src/operation/metadata/is-element-in-viewport.ts
1001
969
  function isElementInViewport() {
1002
970
  return {
1003
971
  description: `Checks if an element is currently visible within the viewport.
@@ -1009,8 +977,7 @@ Uses \`getBoundingClientRect()\` to determine if the element is within the viewp
1009
977
  };
1010
978
  }
1011
979
 
1012
- //#endregion
1013
- //#region src/operation/metadata/load-from-storage.ts
980
+ // src/operation/metadata/load-from-storage.ts
1014
981
  function loadFromStorage() {
1015
982
  return {
1016
983
  description: `Loads data from browser storage (localStorage or sessionStorage).
@@ -1034,8 +1001,7 @@ When \`storageType\` is omitted, localStorage is used.`,
1034
1001
  };
1035
1002
  }
1036
1003
 
1037
- //#endregion
1038
- //#region src/operation/metadata/load-json.ts
1004
+ // src/operation/metadata/load-json.ts
1039
1005
  function loadJson() {
1040
1006
  return {
1041
1007
  description: `This operation loads a JSON file from the specified url and assigns it to the json
@@ -1062,8 +1028,7 @@ The cache is shared by every engine. It is emptied when the last live engine cre
1062
1028
  };
1063
1029
  }
1064
1030
 
1065
- //#endregion
1066
- //#region src/operation/metadata/log.ts
1031
+ // src/operation/metadata/log.ts
1067
1032
  function log() {
1068
1033
  return {
1069
1034
  description: `This operation logs the specified value, or, when no logValue property has been assigned
@@ -1082,8 +1047,7 @@ it will log the current operation data, global data and scope to the console`,
1082
1047
  };
1083
1048
  }
1084
1049
 
1085
- //#endregion
1086
- //#region src/operation/metadata/map-array.ts
1050
+ // src/operation/metadata/map-array.ts
1087
1051
  function mapArray() {
1088
1052
  return {
1089
1053
  description: `Transforms each element of an array using a mapping function.
@@ -1101,8 +1065,7 @@ The mapFunction receives each item and optionally its index.`,
1101
1065
  };
1102
1066
  }
1103
1067
 
1104
- //#endregion
1105
- //#region src/operation/metadata/math.ts
1068
+ // src/operation/metadata/math.ts
1106
1069
  function math() {
1107
1070
  return {
1108
1071
  description: `This operation performs the given math function with the specified arguments.
@@ -1127,8 +1090,7 @@ is. Arguments that name a Math constant (such as \`'PI'\`) are replaced by its v
1127
1090
  };
1128
1091
  }
1129
1092
 
1130
- //#endregion
1131
- //#region src/operation/metadata/otherwise.ts
1093
+ // src/operation/metadata/otherwise.ts
1132
1094
  function otherwise() {
1133
1095
  return {
1134
1096
  description: `If the preceeding {@link when} operation evaluates to \`true\` subsequent operations will
@@ -1137,8 +1099,7 @@ be skipped until an {@link endWhen} operation is encountered.`,
1137
1099
  };
1138
1100
  }
1139
1101
 
1140
- //#endregion
1141
- //#region src/operation/metadata/remove-class.ts
1102
+ // src/operation/metadata/remove-class.ts
1142
1103
  function removeClass() {
1143
1104
  return {
1144
1105
  description: `This operation removes the spcified class name from the given selected element.`,
@@ -1152,8 +1113,7 @@ function removeClass() {
1152
1113
  };
1153
1114
  }
1154
1115
 
1155
- //#endregion
1156
- //#region src/operation/metadata/remove-controller-from-element.ts
1116
+ // src/operation/metadata/remove-controller-from-element.ts
1157
1117
  function removeControllerFromElement() {
1158
1118
  return {
1159
1119
  description: `This operation removes the controller with the specified name from the given selected element.`,
@@ -1167,8 +1127,7 @@ function removeControllerFromElement() {
1167
1127
  };
1168
1128
  }
1169
1129
 
1170
- //#endregion
1171
- //#region src/operation/metadata/remove-element.ts
1130
+ // src/operation/metadata/remove-element.ts
1172
1131
  function removeElement() {
1173
1132
  return {
1174
1133
  description: `This operation removes the given selected element from the DOM.
@@ -1180,8 +1139,7 @@ detached first, so their eventbus and window listeners do not outlive the elemen
1180
1139
  };
1181
1140
  }
1182
1141
 
1183
- //#endregion
1184
- //#region src/operation/metadata/remove-properties-from-operation-data.ts
1142
+ // src/operation/metadata/remove-properties-from-operation-data.ts
1185
1143
  function removePropertiesFromOperationData() {
1186
1144
  return {
1187
1145
  description: `This operation removes the given list of properties from the current operation data.
@@ -1196,8 +1154,7 @@ It will also remove the property \`propertyNames\` from the result.`,
1196
1154
  };
1197
1155
  }
1198
1156
 
1199
- //#endregion
1200
- //#region src/operation/metadata/reparent-element.ts
1157
+ // src/operation/metadata/reparent-element.ts
1201
1158
  function reparentElement() {
1202
1159
  return {
1203
1160
  description: `This operation moves the given selected element to the new parent that is defined
@@ -1217,8 +1174,7 @@ not accepted.`,
1217
1174
  };
1218
1175
  }
1219
1176
 
1220
- //#endregion
1221
- //#region src/operation/metadata/replace-string.ts
1177
+ // src/operation/metadata/replace-string.ts
1222
1178
  function replaceString() {
1223
1179
  return {
1224
1180
  description: `Replaces occurrences of a pattern in a string (alias for replaceText for string context).
@@ -1246,8 +1202,7 @@ and \`textContent\` is left unchanged.`,
1246
1202
  };
1247
1203
  }
1248
1204
 
1249
- //#endregion
1250
- //#region src/operation/metadata/replace-text.ts
1205
+ // src/operation/metadata/replace-text.ts
1251
1206
  function replaceText() {
1252
1207
  return {
1253
1208
  description: `Finds and replaces text using literal string or regex pattern.
@@ -1275,8 +1230,7 @@ A string pattern replaces every occurrence and inserts the replacement literally
1275
1230
  };
1276
1231
  }
1277
1232
 
1278
- //#endregion
1279
- //#region src/operation/metadata/request-action.ts
1233
+ // src/operation/metadata/request-action.ts
1280
1234
  function requestAction() {
1281
1235
  return {
1282
1236
  description: `This operation requests an action instance with the specified name and assigns it
@@ -1291,8 +1245,7 @@ to the \`actionInstance\` property on the current operation data.`,
1291
1245
  };
1292
1246
  }
1293
1247
 
1294
- //#endregion
1295
- //#region src/operation/metadata/save-to-storage.ts
1248
+ // src/operation/metadata/save-to-storage.ts
1296
1249
  function saveToStorage() {
1297
1250
  return {
1298
1251
  description: `Saves data to browser storage (localStorage or sessionStorage).
@@ -1321,8 +1274,7 @@ When \`storageType\` is omitted, localStorage is used.`,
1321
1274
  };
1322
1275
  }
1323
1276
 
1324
- //#endregion
1325
- //#region src/operation/metadata/scroll-to-element.ts
1277
+ // src/operation/metadata/scroll-to-element.ts
1326
1278
  function scrollToElement() {
1327
1279
  return {
1328
1280
  description: `Scrolls the viewport to bring the selected element into view.
@@ -1357,8 +1309,7 @@ Uses the browser's \`scrollIntoView\` API with configurable behavior.`,
1357
1309
  };
1358
1310
  }
1359
1311
 
1360
- //#endregion
1361
- //#region src/operation/metadata/scroll-to-position.ts
1312
+ // src/operation/metadata/scroll-to-position.ts
1362
1313
  function scrollToPosition() {
1363
1314
  return {
1364
1315
  description: `Scrolls the viewport to a specific x,y coordinate position.
@@ -1384,8 +1335,7 @@ Uses the browser's \`window.scrollTo\` API with configurable behavior.`,
1384
1335
  };
1385
1336
  }
1386
1337
 
1387
- //#endregion
1388
- //#region src/operation/metadata/select-element.ts
1338
+ // src/operation/metadata/select-element.ts
1389
1339
  function selectElement() {
1390
1340
  return {
1391
1341
  description: `This operation selects one or more elements using the specified selector.
@@ -1409,8 +1359,7 @@ then the element will be looked for only in the descendant elements of this DOM
1409
1359
  };
1410
1360
  }
1411
1361
 
1412
- //#endregion
1413
- //#region src/operation/metadata/set-data.ts
1362
+ // src/operation/metadata/set-data.ts
1414
1363
  function setData() {
1415
1364
  return {
1416
1365
  description: `This operation assigns the specified properties to the specified data targets.`,
@@ -1423,8 +1372,7 @@ function setData() {
1423
1372
  };
1424
1373
  }
1425
1374
 
1426
- //#endregion
1427
- //#region src/operation/metadata/set-element-attributes.ts
1375
+ // src/operation/metadata/set-element-attributes.ts
1428
1376
  function setElementAttributes() {
1429
1377
  return {
1430
1378
  description: `This operation sets the specified set of attributes on the given selected element.
@@ -1441,8 +1389,7 @@ attributes such as \`href\`, \`src\` and \`formaction\`, are refused, the same a
1441
1389
  };
1442
1390
  }
1443
1391
 
1444
- //#endregion
1445
- //#region src/operation/metadata/set-element-content.ts
1392
+ // src/operation/metadata/set-element-content.ts
1446
1393
  function setElementContent() {
1447
1394
  return {
1448
1395
  description: `This operation sets the specified content defined by the value assigned to the template property
@@ -1479,8 +1426,7 @@ never parsed as HTML.`,
1479
1426
  };
1480
1427
  }
1481
1428
 
1482
- //#endregion
1483
- //#region src/operation/metadata/set-focus.ts
1429
+ // src/operation/metadata/set-focus.ts
1484
1430
  function setFocus() {
1485
1431
  return {
1486
1432
  description: `Sets focus to the selected element.`,
@@ -1489,8 +1435,7 @@ function setFocus() {
1489
1435
  };
1490
1436
  }
1491
1437
 
1492
- //#endregion
1493
- //#region src/operation/metadata/set-form-value.ts
1438
+ // src/operation/metadata/set-form-value.ts
1494
1439
  function setFormValue() {
1495
1440
  return {
1496
1441
  description: `Sets the value of an input, select, or textarea element.
@@ -1510,8 +1455,7 @@ Handles different input types appropriately:
1510
1455
  };
1511
1456
  }
1512
1457
 
1513
- //#endregion
1514
- //#region src/operation/metadata/set-global-data.ts
1458
+ // src/operation/metadata/set-global-data.ts
1515
1459
  function setGlobalData() {
1516
1460
  return {
1517
1461
  description: `This operation copies the specified properties from the operationData to the global data.
@@ -1529,8 +1473,7 @@ are stored by reference.`,
1529
1473
  };
1530
1474
  }
1531
1475
 
1532
- //#endregion
1533
- //#region src/operation/metadata/set-operation-data.ts
1476
+ // src/operation/metadata/set-operation-data.ts
1534
1477
  function setOperationData() {
1535
1478
  return {
1536
1479
  description: `This operation assigns the specified properties to the current operation data.
@@ -1550,8 +1493,7 @@ When override is set to true the properties replace the current operation data e
1550
1493
  };
1551
1494
  }
1552
1495
 
1553
- //#endregion
1554
- //#region src/operation/metadata/set-style.ts
1496
+ // src/operation/metadata/set-style.ts
1555
1497
  function setStyle() {
1556
1498
  return {
1557
1499
  description: `This operation assigns the specified CSS style properties to the
@@ -1566,8 +1508,7 @@ given selected element.`,
1566
1508
  };
1567
1509
  }
1568
1510
 
1569
- //#endregion
1570
- //#region src/operation/metadata/set-variable.ts
1511
+ // src/operation/metadata/set-variable.ts
1571
1512
  function setVariable() {
1572
1513
  return {
1573
1514
  description: `This operation sets a variable with the specified name on the scope with the specified value.
@@ -1592,8 +1533,7 @@ variables set before the block can be read and changed inside it. Read variables
1592
1533
  };
1593
1534
  }
1594
1535
 
1595
- //#endregion
1596
- //#region src/operation/metadata/sort-array.ts
1536
+ // src/operation/metadata/sort-array.ts
1597
1537
  function sortArray() {
1598
1538
  return {
1599
1539
  description: `Sorts an array by property, natural order, or custom comparator function.
@@ -1623,8 +1563,7 @@ Supports three sorting modes:
1623
1563
  };
1624
1564
  }
1625
1565
 
1626
- //#endregion
1627
- //#region src/operation/metadata/split-string.ts
1566
+ // src/operation/metadata/split-string.ts
1628
1567
  function splitString() {
1629
1568
  return {
1630
1569
  description: `Splits a string into an array by delimiter (string or regex).`,
@@ -1648,8 +1587,7 @@ function splitString() {
1648
1587
  };
1649
1588
  }
1650
1589
 
1651
- //#endregion
1652
- //#region src/operation/metadata/start-action.ts
1590
+ // src/operation/metadata/start-action.ts
1653
1591
  function startAction() {
1654
1592
  return {
1655
1593
  description: `This operation starts the specified action instance using the given action operation data.
@@ -1667,8 +1605,7 @@ had before, plus \`actionInstance\`, without the \`actionOperationData\` propert
1667
1605
  };
1668
1606
  }
1669
1607
 
1670
- //#endregion
1671
- //#region src/operation/metadata/substring-text.ts
1608
+ // src/operation/metadata/substring-text.ts
1672
1609
  function substringText() {
1673
1610
  return {
1674
1611
  description: `Extracts a substring from text between start and end indices.`,
@@ -1689,8 +1626,7 @@ function substringText() {
1689
1626
  };
1690
1627
  }
1691
1628
 
1692
- //#endregion
1693
- //#region src/operation/metadata/toggle-class.ts
1629
+ // src/operation/metadata/toggle-class.ts
1694
1630
  function toggleClass() {
1695
1631
  return {
1696
1632
  description: `This operation toggles the specfied class name on the given selected element.
@@ -1707,8 +1643,7 @@ otherwise it will be added.`,
1707
1643
  };
1708
1644
  }
1709
1645
 
1710
- //#endregion
1711
- //#region src/operation/metadata/toggle-element.ts
1646
+ // src/operation/metadata/toggle-element.ts
1712
1647
  function toggleElement() {
1713
1648
  return {
1714
1649
  description: `This operation toggles the visibility of the given selected element.
@@ -1720,8 +1655,7 @@ it will be hidden.`,
1720
1655
  };
1721
1656
  }
1722
1657
 
1723
- //#endregion
1724
- //#region src/operation/metadata/toggle-form-element.ts
1658
+ // src/operation/metadata/toggle-form-element.ts
1725
1659
  function toggleFormElement() {
1726
1660
  return {
1727
1661
  description: `Enables or disables form input elements (inputs, selects, textareas, buttons).
@@ -1738,8 +1672,7 @@ attribute; when false, adds the disabled attribute.`,
1738
1672
  };
1739
1673
  }
1740
1674
 
1741
- //#endregion
1742
- //#region src/operation/metadata/validate-form.ts
1675
+ // src/operation/metadata/validate-form.ts
1743
1676
  function validateForm() {
1744
1677
  return {
1745
1678
  description: `Validates form fields against HTML5 validation and custom rules.
@@ -1764,8 +1697,7 @@ apply to each selected value.`,
1764
1697
  };
1765
1698
  }
1766
1699
 
1767
- //#endregion
1768
- //#region src/operation/metadata/wait.ts
1700
+ // src/operation/metadata/wait.ts
1769
1701
  function wait() {
1770
1702
  return {
1771
1703
  description: `This operation waits for the specified amount of milliseconds.`,
@@ -1778,8 +1710,7 @@ function wait() {
1778
1710
  };
1779
1711
  }
1780
1712
 
1781
- //#endregion
1782
- //#region src/operation/metadata/when.ts
1713
+ // src/operation/metadata/when.ts
1783
1714
  function when() {
1784
1715
  return {
1785
1716
  description: `When the given expression evaluates to false, subsequent operations will be skipped
@@ -1829,8 +1760,7 @@ guards.`,
1829
1760
  };
1830
1761
  }
1831
1762
 
1832
- //#endregion
1833
- //#region src/operation/metadata/index.ts
1763
+ // src/operation/metadata/index.ts
1834
1764
  var metadata_exports$1 = /* @__PURE__ */ __exportAll({
1835
1765
  addClass: () => addClass,
1836
1766
  addControllerToElement: () => addControllerToElement,
@@ -1913,8 +1843,7 @@ var metadata_exports$1 = /* @__PURE__ */ __exportAll({
1913
1843
  when: () => when
1914
1844
  });
1915
1845
 
1916
- //#endregion
1917
- //#region src/util/find-closest-names.ts
1846
+ // src/util/find-closest-names.ts
1918
1847
  /**
1919
1848
  * Returns the known names closest to `name`, for "did you mean" hints in error
1920
1849
  * messages. Matching ignores case and uses the Levenshtein edit distance; only
@@ -1957,8 +1886,7 @@ function levenshtein(a, b) {
1957
1886
  return previous[b.length];
1958
1887
  }
1959
1888
 
1960
- //#endregion
1961
- //#region src/configuration/api/operation-lookup.ts
1889
+ // src/configuration/api/operation-lookup.ts
1962
1890
  /**
1963
1891
  * Operation names are validated against the generated operation metadata, not
1964
1892
  * against the operation implementations. The metadata is plain data, so the
@@ -2016,8 +1944,7 @@ function getOperationNameByType(operationType, methodName, nameBasedMethodName)
2016
1944
  throw new Error(`Operation class not found: ${String(operationType)}`);
2017
1945
  }
2018
1946
 
2019
- //#endregion
2020
- //#region src/configuration/api/sync-in-place.ts
1947
+ // src/configuration/api/sync-in-place.ts
2021
1948
  /**
2022
1949
  * Keys that are never copied into the target. Assigning `__proto__` through the
2023
1950
  * inherited accessor would replace a prototype (or, when the existing value is
@@ -2122,8 +2049,7 @@ function isPlainObject(value) {
2122
2049
  return proto === Object.prototype || proto === null;
2123
2050
  }
2124
2051
 
2125
- //#endregion
2126
- //#region src/configuration/api/action-creator-factory.ts
2052
+ // src/configuration/api/action-creator-factory.ts
2127
2053
  /**
2128
2054
  *
2129
2055
  * Container factory capable of creating the different kinds of actions.
@@ -2384,8 +2310,7 @@ var TimelineActionCreator = class extends EndableActionCreator {
2384
2310
  }
2385
2311
  };
2386
2312
 
2387
- //#endregion
2388
- //#region src/configuration/api/action-editor.ts
2313
+ // src/configuration/api/action-editor.ts
2389
2314
  function array_move(arr, old_index, new_index) {
2390
2315
  if (new_index >= arr.length) new_index = 0;
2391
2316
  else if (new_index < 0) new_index = arr.length - 1;
@@ -2780,8 +2705,7 @@ var OperationEditor = class {
2780
2705
  }
2781
2706
  };
2782
2707
 
2783
- //#endregion
2784
- //#region src/configuration/api/timeline-provider-settings-editor.ts
2708
+ // src/configuration/api/timeline-provider-settings-editor.ts
2785
2709
  /**
2786
2710
  * Default position source system names for convenience methods.
2787
2711
  */
@@ -2944,8 +2868,7 @@ var TimelineProviderSettingsEditor = class {
2944
2868
  }
2945
2869
  };
2946
2870
 
2947
- //#endregion
2948
- //#region src/util/merge-if-missing.ts
2871
+ // src/util/merge-if-missing.ts
2949
2872
  /**
2950
2873
  *
2951
2874
  * Merges the properties of the target object into the source object, only the properties that do not exist yet on the source.
@@ -2963,8 +2886,7 @@ const mergeIfMissing = (target, source) => Object.entries(source).reduce((acc, [
2963
2886
  [key]: value
2964
2887
  }, target);
2965
2888
 
2966
- //#endregion
2967
- //#region src/configuration/api/configuration-factory.ts
2889
+ // src/configuration/api/configuration-factory.ts
2968
2890
  /**
2969
2891
  * Action names must be unique across these lists.
2970
2892
  */
@@ -3509,8 +3431,7 @@ var ConfigurationFactory = class ConfigurationFactory {
3509
3431
  }
3510
3432
  };
3511
3433
 
3512
- //#endregion
3513
- //#region src/controllers/metadata/dom-event-listener-controller.ts
3434
+ // src/controllers/metadata/dom-event-listener-controller.ts
3514
3435
  function DOMEventListenerController() {
3515
3436
  return {
3516
3437
  description: `This controller attaches to the given selected element and adds a DOM event listener for the specified event name that
@@ -3540,8 +3461,7 @@ this controller, the action and the DOM event, with the original error as \`caus
3540
3461
  };
3541
3462
  }
3542
3463
 
3543
- //#endregion
3544
- //#region src/controllers/metadata/keyboard-controller.ts
3464
+ // src/controllers/metadata/keyboard-controller.ts
3545
3465
  function KeyboardController() {
3546
3466
  return {
3547
3467
  description: `This controller runs the given actions when one of the given keys is pressed.
@@ -3583,8 +3503,7 @@ hotkeys-js global \`filter\` still applies. Detaching removes only this controll
3583
3503
  };
3584
3504
  }
3585
3505
 
3586
- //#endregion
3587
- //#region src/controllers/metadata/label-controller.ts
3506
+ // src/controllers/metadata/label-controller.ts
3588
3507
  function LabelController() {
3589
3508
  return {
3590
3509
  description: `This controller attaches to the given selected element and renders the text
@@ -3610,8 +3529,7 @@ Uses the rosetta-based locale system via \`request-translation\` event.`,
3610
3529
  };
3611
3530
  }
3612
3531
 
3613
- //#endregion
3614
- //#region src/controllers/metadata/lottie-controller.ts
3532
+ // src/controllers/metadata/lottie-controller.ts
3615
3533
  function LottieController() {
3616
3534
  return {
3617
3535
  description: `This controller renders a [lottie-web](https://github.com/airbnb/lottie-web) animation inside the given selected element.
@@ -3625,8 +3543,7 @@ never use this controller do not need it installed.`,
3625
3543
  };
3626
3544
  }
3627
3545
 
3628
- //#endregion
3629
- //#region src/controllers/metadata/mutation-observer-controller.ts
3546
+ // src/controllers/metadata/mutation-observer-controller.ts
3630
3547
  function MutationObserverController() {
3631
3548
  return {
3632
3549
  description: `Controller that observes DOM mutations on a selected element and broadcasts events.
@@ -3655,8 +3572,7 @@ The controller follows the standard Eligius lifecycle:
3655
3572
  };
3656
3573
  }
3657
3574
 
3658
- //#endregion
3659
- //#region src/controllers/metadata/navigation-controller.ts
3575
+ // src/controllers/metadata/navigation-controller.ts
3660
3576
  function NavigationController() {
3661
3577
  return {
3662
3578
  description: `Renders a navigation menu in the selected element and keeps it in sync with
@@ -3680,8 +3596,7 @@ When the engine switches to a timeline that an entry names
3680
3596
  };
3681
3597
  }
3682
3598
 
3683
- //#endregion
3684
- //#region src/controllers/metadata/progressbar-controller.ts
3599
+ // src/controllers/metadata/progressbar-controller.ts
3685
3600
  function ProgressbarController() {
3686
3601
  return {
3687
3602
  description: `This controller renders a progressbar that displays the progress of the current timeline in the given selected element.
@@ -3691,8 +3606,7 @@ The current progress as a percentage is rendered in the given text element.`,
3691
3606
  };
3692
3607
  }
3693
3608
 
3694
- //#endregion
3695
- //#region src/controllers/metadata/routing-controller.ts
3609
+ // src/controllers/metadata/routing-controller.ts
3696
3610
  function RoutingController() {
3697
3611
  return {
3698
3612
  description: `Keeps the browser history in sync with the navigation entries: each entry
@@ -3712,8 +3626,7 @@ This is a work in progress, do not use this yet please....`,
3712
3626
  };
3713
3627
  }
3714
3628
 
3715
- //#endregion
3716
- //#region src/controllers/metadata/subtitles-controller.ts
3629
+ // src/controllers/metadata/subtitles-controller.ts
3717
3630
  function SubtitlesController() {
3718
3631
  return {
3719
3632
  description: `This controller shows the subtitle whose duration contains the current
@@ -3736,8 +3649,7 @@ Subtitle texts may contain simple inline markup. They are passed through
3736
3649
  };
3737
3650
  }
3738
3651
 
3739
- //#endregion
3740
- //#region src/controllers/metadata/index.ts
3652
+ // src/controllers/metadata/index.ts
3741
3653
  var metadata_exports = /* @__PURE__ */ __exportAll({
3742
3654
  DOMEventListenerController: () => DOMEventListenerController,
3743
3655
  KeyboardController: () => KeyboardController,
@@ -3750,8 +3662,7 @@ var metadata_exports = /* @__PURE__ */ __exportAll({
3750
3662
  SubtitlesController: () => SubtitlesController
3751
3663
  });
3752
3664
 
3753
- //#endregion
3754
- //#region src/configuration/api/name-providers.ts
3665
+ // src/configuration/api/name-providers.ts
3755
3666
  /**
3756
3667
  *
3757
3668
  * Provider for all the available operation names
@@ -3785,8 +3696,7 @@ var OperationMetadataProvider = class {
3785
3696
  }
3786
3697
  };
3787
3698
 
3788
- //#endregion
3789
- //#region src/configuration/api/subtitle-converter.ts
3699
+ // src/configuration/api/subtitle-converter.ts
3790
3700
  /**
3791
3701
  * This class converts an AVID subtitle file to an `ISubtitle` array.
3792
3702
  *
@@ -3841,8 +3751,7 @@ var SubtitleImporter = class {
3841
3751
  }
3842
3752
  };
3843
3753
 
3844
- //#endregion
3845
- //#region src/configuration/api/subtitle-editor.ts
3754
+ // src/configuration/api/subtitle-editor.ts
3846
3755
  /**
3847
3756
  * Used to edit and add to an {@link ISubtitleCollection}.
3848
3757
  */
@@ -3919,6 +3828,5 @@ var SubtitleEditor = class {
3919
3828
  }
3920
3829
  };
3921
3830
 
3922
- //#endregion
3923
3831
  export { ActionCreator, ActionCreatorFactory, ActionEditor, ConfigurationFactory, ControllerNamesProvider, EndableActionCreator, EndableActionEditor, OperationEditor, OperationMetadataProvider, OperationNamesProvider, SubtitleEditor, SubtitleImporter, TimelineActionCreator, TimelineActionEditor, TimelineProviderSettingsEditor, TimelineProvidersSettingsEditor };
3924
3832
  //# sourceMappingURL=configuration-api.mjs.map