@digipair/skill-web-chatbot 0.89.0 → 0.91.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/.swcrc +28 -0
  2. package/README.md +7 -0
  3. package/eslint.config.mjs +22 -0
  4. package/package.json +22 -7
  5. package/rollup.config.cjs +28 -0
  6. package/src/digipair__engine.d.ts +2 -0
  7. package/src/handlebars.d.ts +1 -0
  8. package/src/index.html +18 -0
  9. package/src/lib/chat.element.ts +603 -0
  10. package/src/lib/common.data.ts +1 -0
  11. package/src/lib/config.ts +30 -0
  12. package/src/lib/digipair-full.data.ts +101 -0
  13. package/src/lib/digipair-full.element.ts +358 -0
  14. package/src/lib/digipair.data.ts +103 -0
  15. package/src/lib/digipair.element.ts +446 -0
  16. package/src/lib/inputs.element.ts +46 -0
  17. package/src/lib/mermaid.d.ts +1 -0
  18. package/src/lib/message.interface.ts +10 -0
  19. package/src/lib/pins/chatbot.actions.ts +32 -0
  20. package/src/lib/tools/css-selector.ts +12 -0
  21. package/tsconfig.json +13 -0
  22. package/tsconfig.lib.json +19 -0
  23. package/SAP-icons.cjs.js +0 -2489
  24. package/SAP-icons.cjs2.js +0 -2489
  25. package/SAP-icons.esm.js +0 -2482
  26. package/SAP-icons.esm2.js +0 -2482
  27. package/Tableau10-558cc280.cjs.js +0 -9
  28. package/Tableau10-558cc280.esm.js +0 -7
  29. package/arc-d1f6357e.cjs.js +0 -88
  30. package/arc-d1f6357e.esm.js +0 -86
  31. package/array-2ff2c7a6.cjs.js +0 -7
  32. package/array-2ff2c7a6.esm.js +0 -5
  33. package/blockDiagram-5dc23a45.cjs.js +0 -2921
  34. package/blockDiagram-5dc23a45.esm.js +0 -2919
  35. package/c4Diagram-1e775db3.cjs.js +0 -4387
  36. package/c4Diagram-1e775db3.esm.js +0 -4385
  37. package/channel-ebbc4130.cjs.js +0 -9
  38. package/channel-ebbc4130.esm.js +0 -7
  39. package/classDiagram-f52caa06.cjs.js +0 -209
  40. package/classDiagram-f52caa06.esm.js +0 -207
  41. package/classDiagram-v2-640c694e.cjs.js +0 -401
  42. package/classDiagram-v2-640c694e.esm.js +0 -399
  43. package/clone-afc2f047.cjs.js +0 -10
  44. package/clone-afc2f047.esm.js +0 -8
  45. package/createText-03b82060.cjs.js +0 -2936
  46. package/createText-03b82060.esm.js +0 -2933
  47. package/edges-16357fde.cjs.js +0 -1998
  48. package/edges-16357fde.esm.js +0 -1981
  49. package/erDiagram-c7ff1bec.cjs.js +0 -1807
  50. package/erDiagram-c7ff1bec.esm.js +0 -1805
  51. package/flowDb-9a89ea33.cjs.js +0 -5542
  52. package/flowDb-9a89ea33.esm.js +0 -5538
  53. package/flowDiagram-aadb13b0.cjs.js +0 -1351
  54. package/flowDiagram-aadb13b0.esm.js +0 -1349
  55. package/flowDiagram-v2-f2119625.cjs.js +0 -31
  56. package/flowDiagram-v2-f2119625.esm.js +0 -29
  57. package/flowchart-elk-definition-cf813a97.cjs.js +0 -50257
  58. package/flowchart-elk-definition-cf813a97.esm.js +0 -50255
  59. package/ganttDiagram-3c2fde2b.cjs.js +0 -3710
  60. package/ganttDiagram-3c2fde2b.esm.js +0 -3708
  61. package/gitGraphDiagram-c3a0619c.cjs.js +0 -3820
  62. package/gitGraphDiagram-c3a0619c.esm.js +0 -3818
  63. package/graph-0ee63739.cjs.js +0 -961
  64. package/graph-0ee63739.esm.js +0 -938
  65. package/index-bb6d8841.cjs.js +0 -648
  66. package/index-bb6d8841.esm.js +0 -646
  67. package/index.cjs.d.ts +0 -1
  68. package/index.cjs.js +0 -17
  69. package/index.cjs2.js +0 -60723
  70. package/index.esm.js +0 -1
  71. package/index.esm2.js +0 -60574
  72. package/infoDiagram-2f5c50c0.cjs.js +0 -460
  73. package/infoDiagram-2f5c50c0.esm.js +0 -458
  74. package/init-f9637058.cjs.js +0 -17
  75. package/init-f9637058.esm.js +0 -15
  76. package/journeyDiagram-14fe341a.cjs.js +0 -1061
  77. package/journeyDiagram-14fe341a.esm.js +0 -1059
  78. package/katex-d90b6d29.cjs.js +0 -25690
  79. package/katex-d90b6d29.esm.js +0 -25688
  80. package/layout-fd473db2.cjs.js +0 -1626
  81. package/layout-fd473db2.esm.js +0 -1619
  82. package/libs/engine/src/index.d.ts +0 -2
  83. package/libs/engine/src/lib/alias.interface.d.ts +0 -9
  84. package/libs/engine/src/lib/engine.d.ts +0 -13
  85. package/libs/engine/src/lib/pins-settings.interface.d.ts +0 -15
  86. package/libs/skill-web-chatbot/src/lib/chat.element.d.ts +0 -28
  87. package/libs/skill-web-chatbot/src/lib/common.data.d.ts +0 -1
  88. package/libs/skill-web-chatbot/src/lib/config.d.ts +0 -9
  89. package/libs/skill-web-chatbot/src/lib/digipair-full.data.d.ts +0 -1
  90. package/libs/skill-web-chatbot/src/lib/digipair-full.element.d.ts +0 -36
  91. package/libs/skill-web-chatbot/src/lib/digipair.data.d.ts +0 -1
  92. package/libs/skill-web-chatbot/src/lib/digipair.element.d.ts +0 -44
  93. package/libs/skill-web-chatbot/src/lib/inputs.element.d.ts +0 -10
  94. package/libs/skill-web-chatbot/src/lib/message.interface.d.ts +0 -10
  95. package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +0 -1
  96. package/libs/skill-web-chatbot/src/lib/tools/css-selector.d.ts +0 -1
  97. package/line-24d93f1b.cjs.js +0 -34
  98. package/line-24d93f1b.esm.js +0 -32
  99. package/linear-9bcf74c4.cjs.js +0 -537
  100. package/linear-9bcf74c4.esm.js +0 -531
  101. package/mindmap-definition-9399c7e6.cjs.js +0 -20489
  102. package/mindmap-definition-9399c7e6.esm.js +0 -20487
  103. package/ordinal-5695958c.cjs.js +0 -331
  104. package/ordinal-5695958c.esm.js +0 -329
  105. package/path-428ebac9.cjs.js +0 -317
  106. package/path-428ebac9.esm.js +0 -314
  107. package/pieDiagram-828dae43.cjs.js +0 -951
  108. package/pieDiagram-828dae43.esm.js +0 -949
  109. package/quadrantDiagram-5fa00455.cjs.js +0 -2410
  110. package/quadrantDiagram-5fa00455.esm.js +0 -2408
  111. package/requirementDiagram-03163dc4.cjs.js +0 -2267
  112. package/requirementDiagram-03163dc4.esm.js +0 -2265
  113. package/sankeyDiagram-52ec8976.cjs.js +0 -1848
  114. package/sankeyDiagram-52ec8976.esm.js +0 -1846
  115. package/sequenceDiagram-b517d154.cjs.js +0 -5949
  116. package/sequenceDiagram-b517d154.esm.js +0 -5947
  117. package/stateDiagram-fca82b5b.cjs.js +0 -283
  118. package/stateDiagram-fca82b5b.esm.js +0 -281
  119. package/stateDiagram-v2-ed04200a.cjs.js +0 -373
  120. package/stateDiagram-v2-ed04200a.esm.js +0 -371
  121. package/styles-11e81fdd.cjs.js +0 -3944
  122. package/styles-11e81fdd.esm.js +0 -3940
  123. package/styles-cacbff60.cjs.js +0 -2120
  124. package/styles-cacbff60.esm.js +0 -2111
  125. package/styles-e75131e4.cjs.js +0 -671
  126. package/styles-e75131e4.esm.js +0 -661
  127. package/svgDrawCommon-ecc5f780.cjs.js +0 -68
  128. package/svgDrawCommon-ecc5f780.esm.js +0 -60
  129. package/timeline-definition-4ee9bff4.cjs.js +0 -1161
  130. package/timeline-definition-4ee9bff4.esm.js +0 -1159
  131. package/xychartDiagram-e5e6b652.cjs.js +0 -3150
  132. package/xychartDiagram-e5e6b652.esm.js +0 -3148
  133. /package/{index.d.ts → src/index.d.ts} +0 -0
  134. /package/{libs/skill-web-chatbot/src/index.d.ts → src/index.ts} +0 -0
  135. /package/{schema.fr.json → src/schema.fr.json} +0 -0
  136. /package/{schema.json → src/schema.json} +0 -0
@@ -1,331 +0,0 @@
1
- 'use strict';
2
-
3
- var initF9637058 = require('./init-f9637058.cjs.js');
4
-
5
- function _array_like_to_array(arr, len) {
6
- if (len == null || len > arr.length) len = arr.length;
7
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
8
- return arr2;
9
- }
10
- function _array_with_holes(arr) {
11
- if (Array.isArray(arr)) return arr;
12
- }
13
- function _assert_this_initialized(self) {
14
- if (self === void 0) {
15
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
16
- }
17
- return self;
18
- }
19
- function _class_call_check(instance, Constructor) {
20
- if (!(instance instanceof Constructor)) {
21
- throw new TypeError("Cannot call a class as a function");
22
- }
23
- }
24
- function _construct(Parent, args, Class) {
25
- if (_is_native_reflect_construct()) {
26
- _construct = Reflect.construct;
27
- } else {
28
- _construct = function construct(Parent, args, Class) {
29
- var a = [
30
- null
31
- ];
32
- a.push.apply(a, args);
33
- var Constructor = Function.bind.apply(Parent, a);
34
- var instance = new Constructor();
35
- if (Class) _set_prototype_of(instance, Class.prototype);
36
- return instance;
37
- };
38
- }
39
- return _construct.apply(null, arguments);
40
- }
41
- function _defineProperties(target, props) {
42
- for(var i = 0; i < props.length; i++){
43
- var descriptor = props[i];
44
- descriptor.enumerable = descriptor.enumerable || false;
45
- descriptor.configurable = true;
46
- if ("value" in descriptor) descriptor.writable = true;
47
- Object.defineProperty(target, descriptor.key, descriptor);
48
- }
49
- }
50
- function _create_class(Constructor, protoProps, staticProps) {
51
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
52
- if (staticProps) _defineProperties(Constructor, staticProps);
53
- return Constructor;
54
- }
55
- function _get(target, property, receiver) {
56
- if (typeof Reflect !== "undefined" && Reflect.get) {
57
- _get = Reflect.get;
58
- } else {
59
- _get = function get(target, property, receiver) {
60
- var base = _super_prop_base(target, property);
61
- if (!base) return;
62
- var desc = Object.getOwnPropertyDescriptor(base, property);
63
- if (desc.get) {
64
- return desc.get.call(receiver || target);
65
- }
66
- return desc.value;
67
- };
68
- }
69
- return _get(target, property, receiver || target);
70
- }
71
- function _get_prototype_of(o) {
72
- _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
73
- return o.__proto__ || Object.getPrototypeOf(o);
74
- };
75
- return _get_prototype_of(o);
76
- }
77
- function _inherits(subClass, superClass) {
78
- if (typeof superClass !== "function" && superClass !== null) {
79
- throw new TypeError("Super expression must either be null or a function");
80
- }
81
- subClass.prototype = Object.create(superClass && superClass.prototype, {
82
- constructor: {
83
- value: subClass,
84
- writable: true,
85
- configurable: true
86
- }
87
- });
88
- if (superClass) _set_prototype_of(subClass, superClass);
89
- }
90
- function _is_native_function(fn) {
91
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
92
- }
93
- function _iterable_to_array_limit(arr, i) {
94
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
95
- if (_i == null) return;
96
- var _arr = [];
97
- var _n = true;
98
- var _d = false;
99
- var _s, _e;
100
- try {
101
- for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
102
- _arr.push(_s.value);
103
- if (i && _arr.length === i) break;
104
- }
105
- } catch (err) {
106
- _d = true;
107
- _e = err;
108
- } finally{
109
- try {
110
- if (!_n && _i["return"] != null) _i["return"]();
111
- } finally{
112
- if (_d) throw _e;
113
- }
114
- }
115
- return _arr;
116
- }
117
- function _non_iterable_rest() {
118
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
119
- }
120
- function _possible_constructor_return(self, call) {
121
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
122
- return call;
123
- }
124
- return _assert_this_initialized(self);
125
- }
126
- function _set_prototype_of(o, p) {
127
- _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
128
- o.__proto__ = p;
129
- return o;
130
- };
131
- return _set_prototype_of(o, p);
132
- }
133
- function _sliced_to_array(arr, i) {
134
- return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
135
- }
136
- function _super_prop_base(object, property) {
137
- while(!Object.prototype.hasOwnProperty.call(object, property)){
138
- object = _get_prototype_of(object);
139
- if (object === null) break;
140
- }
141
- return object;
142
- }
143
- function _type_of(obj) {
144
- "@swc/helpers - typeof";
145
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
146
- }
147
- function _unsupported_iterable_to_array(o, minLen) {
148
- if (!o) return;
149
- if (typeof o === "string") return _array_like_to_array(o, minLen);
150
- var n = Object.prototype.toString.call(o).slice(8, -1);
151
- if (n === "Object" && o.constructor) n = o.constructor.name;
152
- if (n === "Map" || n === "Set") return Array.from(n);
153
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
154
- }
155
- function _wrap_native_super(Class) {
156
- var _cache = typeof Map === "function" ? new Map() : undefined;
157
- _wrap_native_super = function wrapNativeSuper(Class) {
158
- if (Class === null || !_is_native_function(Class)) return Class;
159
- if (typeof Class !== "function") {
160
- throw new TypeError("Super expression must either be null or a function");
161
- }
162
- if (typeof _cache !== "undefined") {
163
- if (_cache.has(Class)) return _cache.get(Class);
164
- _cache.set(Class, Wrapper);
165
- }
166
- function Wrapper() {
167
- return _construct(Class, arguments, _get_prototype_of(this).constructor);
168
- }
169
- Wrapper.prototype = Object.create(Class.prototype, {
170
- constructor: {
171
- value: Wrapper,
172
- enumerable: false,
173
- writable: true,
174
- configurable: true
175
- }
176
- });
177
- return _set_prototype_of(Wrapper, Class);
178
- };
179
- return _wrap_native_super(Class);
180
- }
181
- function _is_native_reflect_construct() {
182
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
183
- if (Reflect.construct.sham) return false;
184
- if (typeof Proxy === "function") return true;
185
- try {
186
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
187
- return true;
188
- } catch (e) {
189
- return false;
190
- }
191
- }
192
- function _create_super(Derived) {
193
- var hasNativeReflectConstruct = _is_native_reflect_construct();
194
- return function _createSuperInternal() {
195
- var Super = _get_prototype_of(Derived), result;
196
- if (hasNativeReflectConstruct) {
197
- var NewTarget = _get_prototype_of(this).constructor;
198
- result = Reflect.construct(Super, arguments, NewTarget);
199
- } else {
200
- result = Super.apply(this, arguments);
201
- }
202
- return _possible_constructor_return(this, result);
203
- };
204
- }
205
- var o = /*#__PURE__*/ function(Map1) {
206
- _inherits(o, Map1);
207
- var _super = _create_super(o);
208
- function o(n) {
209
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : g;
210
- _class_call_check(this, o);
211
- var _this;
212
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
213
- if (_this = _super.call(this), Object.defineProperties(_assert_this_initialized(_this), {
214
- _intern: {
215
- value: /* @__PURE__ */ new Map()
216
- },
217
- _key: {
218
- value: t
219
- }
220
- }), n != null) try {
221
- for(var _iterator = n[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
222
- var _step_value = _sliced_to_array(_step.value, 2), r = _step_value[0], s = _step_value[1];
223
- _this.set(r, s);
224
- }
225
- } catch (err) {
226
- _didIteratorError = true;
227
- _iteratorError = err;
228
- } finally{
229
- try {
230
- if (!_iteratorNormalCompletion && _iterator.return != null) {
231
- _iterator.return();
232
- }
233
- } finally{
234
- if (_didIteratorError) {
235
- throw _iteratorError;
236
- }
237
- }
238
- }
239
- return _possible_constructor_return(_this);
240
- }
241
- _create_class(o, [
242
- {
243
- key: "get",
244
- value: function get(n) {
245
- return _get(_get_prototype_of(o.prototype), "get", this).call(this, c(this, n));
246
- }
247
- },
248
- {
249
- key: "has",
250
- value: function has(n) {
251
- return _get(_get_prototype_of(o.prototype), "has", this).call(this, c(this, n));
252
- }
253
- },
254
- {
255
- key: "set",
256
- value: function set(n, t) {
257
- return _get(_get_prototype_of(o.prototype), "set", this).call(this, l(this, n), t);
258
- }
259
- },
260
- {
261
- key: "delete",
262
- value: function _delete(n) {
263
- return _get(_get_prototype_of(o.prototype), "delete", this).call(this, p(this, n));
264
- }
265
- }
266
- ]);
267
- return o;
268
- }(_wrap_native_super(Map));
269
- function c(param, t) {
270
- var e = param._intern, n = param._key;
271
- var r = n(t);
272
- return e.has(r) ? e.get(r) : t;
273
- }
274
- function l(param, t) {
275
- var e = param._intern, n = param._key;
276
- var r = n(t);
277
- return e.has(r) ? e.get(r) : (e.set(r, t), t);
278
- }
279
- function p(param, t) {
280
- var e = param._intern, n = param._key;
281
- var r = n(t);
282
- return e.has(r) && (t = e.get(r), e.delete(r)), t;
283
- }
284
- function g(e) {
285
- return e !== null && typeof e == "object" ? e.valueOf() : e;
286
- }
287
- var f = Symbol("implicit");
288
- function h() {
289
- var e = new o(), n = [], t = [], r = f;
290
- function s(u) {
291
- var i = e.get(u);
292
- if (i === void 0) {
293
- if (r !== f) return r;
294
- e.set(u, i = n.push(u) - 1);
295
- }
296
- return t[i % t.length];
297
- }
298
- return s.domain = function(u) {
299
- if (!arguments.length) return n.slice();
300
- n = [], e = new o();
301
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
302
- try {
303
- for(var _iterator = u[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
304
- var i = _step.value;
305
- e.has(i) || e.set(i, n.push(i) - 1);
306
- }
307
- } catch (err) {
308
- _didIteratorError = true;
309
- _iteratorError = err;
310
- } finally{
311
- try {
312
- if (!_iteratorNormalCompletion && _iterator.return != null) {
313
- _iterator.return();
314
- }
315
- } finally{
316
- if (_didIteratorError) {
317
- throw _iteratorError;
318
- }
319
- }
320
- }
321
- return s;
322
- }, s.range = function(u) {
323
- return arguments.length ? (t = Array.from(u), s) : t.slice();
324
- }, s.unknown = function(u) {
325
- return arguments.length ? (r = u, s) : r;
326
- }, s.copy = function() {
327
- return h(n, t).unknown(r);
328
- }, initF9637058.t.apply(s, arguments), s;
329
- }
330
-
331
- exports.h = h;
@@ -1,329 +0,0 @@
1
- import { t } from './init-f9637058.esm.js';
2
-
3
- function _array_like_to_array(arr, len) {
4
- if (len == null || len > arr.length) len = arr.length;
5
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
6
- return arr2;
7
- }
8
- function _array_with_holes(arr) {
9
- if (Array.isArray(arr)) return arr;
10
- }
11
- function _assert_this_initialized(self) {
12
- if (self === void 0) {
13
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
14
- }
15
- return self;
16
- }
17
- function _class_call_check(instance, Constructor) {
18
- if (!(instance instanceof Constructor)) {
19
- throw new TypeError("Cannot call a class as a function");
20
- }
21
- }
22
- function _construct(Parent, args, Class) {
23
- if (_is_native_reflect_construct()) {
24
- _construct = Reflect.construct;
25
- } else {
26
- _construct = function construct(Parent, args, Class) {
27
- var a = [
28
- null
29
- ];
30
- a.push.apply(a, args);
31
- var Constructor = Function.bind.apply(Parent, a);
32
- var instance = new Constructor();
33
- if (Class) _set_prototype_of(instance, Class.prototype);
34
- return instance;
35
- };
36
- }
37
- return _construct.apply(null, arguments);
38
- }
39
- function _defineProperties(target, props) {
40
- for(var i = 0; i < props.length; i++){
41
- var descriptor = props[i];
42
- descriptor.enumerable = descriptor.enumerable || false;
43
- descriptor.configurable = true;
44
- if ("value" in descriptor) descriptor.writable = true;
45
- Object.defineProperty(target, descriptor.key, descriptor);
46
- }
47
- }
48
- function _create_class(Constructor, protoProps, staticProps) {
49
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
50
- if (staticProps) _defineProperties(Constructor, staticProps);
51
- return Constructor;
52
- }
53
- function _get(target, property, receiver) {
54
- if (typeof Reflect !== "undefined" && Reflect.get) {
55
- _get = Reflect.get;
56
- } else {
57
- _get = function get(target, property, receiver) {
58
- var base = _super_prop_base(target, property);
59
- if (!base) return;
60
- var desc = Object.getOwnPropertyDescriptor(base, property);
61
- if (desc.get) {
62
- return desc.get.call(receiver || target);
63
- }
64
- return desc.value;
65
- };
66
- }
67
- return _get(target, property, receiver || target);
68
- }
69
- function _get_prototype_of(o) {
70
- _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
71
- return o.__proto__ || Object.getPrototypeOf(o);
72
- };
73
- return _get_prototype_of(o);
74
- }
75
- function _inherits(subClass, superClass) {
76
- if (typeof superClass !== "function" && superClass !== null) {
77
- throw new TypeError("Super expression must either be null or a function");
78
- }
79
- subClass.prototype = Object.create(superClass && superClass.prototype, {
80
- constructor: {
81
- value: subClass,
82
- writable: true,
83
- configurable: true
84
- }
85
- });
86
- if (superClass) _set_prototype_of(subClass, superClass);
87
- }
88
- function _is_native_function(fn) {
89
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
90
- }
91
- function _iterable_to_array_limit(arr, i) {
92
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
93
- if (_i == null) return;
94
- var _arr = [];
95
- var _n = true;
96
- var _d = false;
97
- var _s, _e;
98
- try {
99
- for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
100
- _arr.push(_s.value);
101
- if (i && _arr.length === i) break;
102
- }
103
- } catch (err) {
104
- _d = true;
105
- _e = err;
106
- } finally{
107
- try {
108
- if (!_n && _i["return"] != null) _i["return"]();
109
- } finally{
110
- if (_d) throw _e;
111
- }
112
- }
113
- return _arr;
114
- }
115
- function _non_iterable_rest() {
116
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
117
- }
118
- function _possible_constructor_return(self, call) {
119
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
120
- return call;
121
- }
122
- return _assert_this_initialized(self);
123
- }
124
- function _set_prototype_of(o, p) {
125
- _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
126
- o.__proto__ = p;
127
- return o;
128
- };
129
- return _set_prototype_of(o, p);
130
- }
131
- function _sliced_to_array(arr, i) {
132
- return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
133
- }
134
- function _super_prop_base(object, property) {
135
- while(!Object.prototype.hasOwnProperty.call(object, property)){
136
- object = _get_prototype_of(object);
137
- if (object === null) break;
138
- }
139
- return object;
140
- }
141
- function _type_of(obj) {
142
- "@swc/helpers - typeof";
143
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
144
- }
145
- function _unsupported_iterable_to_array(o, minLen) {
146
- if (!o) return;
147
- if (typeof o === "string") return _array_like_to_array(o, minLen);
148
- var n = Object.prototype.toString.call(o).slice(8, -1);
149
- if (n === "Object" && o.constructor) n = o.constructor.name;
150
- if (n === "Map" || n === "Set") return Array.from(n);
151
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
152
- }
153
- function _wrap_native_super(Class) {
154
- var _cache = typeof Map === "function" ? new Map() : undefined;
155
- _wrap_native_super = function wrapNativeSuper(Class) {
156
- if (Class === null || !_is_native_function(Class)) return Class;
157
- if (typeof Class !== "function") {
158
- throw new TypeError("Super expression must either be null or a function");
159
- }
160
- if (typeof _cache !== "undefined") {
161
- if (_cache.has(Class)) return _cache.get(Class);
162
- _cache.set(Class, Wrapper);
163
- }
164
- function Wrapper() {
165
- return _construct(Class, arguments, _get_prototype_of(this).constructor);
166
- }
167
- Wrapper.prototype = Object.create(Class.prototype, {
168
- constructor: {
169
- value: Wrapper,
170
- enumerable: false,
171
- writable: true,
172
- configurable: true
173
- }
174
- });
175
- return _set_prototype_of(Wrapper, Class);
176
- };
177
- return _wrap_native_super(Class);
178
- }
179
- function _is_native_reflect_construct() {
180
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
181
- if (Reflect.construct.sham) return false;
182
- if (typeof Proxy === "function") return true;
183
- try {
184
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
185
- return true;
186
- } catch (e) {
187
- return false;
188
- }
189
- }
190
- function _create_super(Derived) {
191
- var hasNativeReflectConstruct = _is_native_reflect_construct();
192
- return function _createSuperInternal() {
193
- var Super = _get_prototype_of(Derived), result;
194
- if (hasNativeReflectConstruct) {
195
- var NewTarget = _get_prototype_of(this).constructor;
196
- result = Reflect.construct(Super, arguments, NewTarget);
197
- } else {
198
- result = Super.apply(this, arguments);
199
- }
200
- return _possible_constructor_return(this, result);
201
- };
202
- }
203
- var o = /*#__PURE__*/ function(Map1) {
204
- _inherits(o, Map1);
205
- var _super = _create_super(o);
206
- function o(n) {
207
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : g;
208
- _class_call_check(this, o);
209
- var _this;
210
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
211
- if (_this = _super.call(this), Object.defineProperties(_assert_this_initialized(_this), {
212
- _intern: {
213
- value: /* @__PURE__ */ new Map()
214
- },
215
- _key: {
216
- value: t
217
- }
218
- }), n != null) try {
219
- for(var _iterator = n[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
220
- var _step_value = _sliced_to_array(_step.value, 2), r = _step_value[0], s = _step_value[1];
221
- _this.set(r, s);
222
- }
223
- } catch (err) {
224
- _didIteratorError = true;
225
- _iteratorError = err;
226
- } finally{
227
- try {
228
- if (!_iteratorNormalCompletion && _iterator.return != null) {
229
- _iterator.return();
230
- }
231
- } finally{
232
- if (_didIteratorError) {
233
- throw _iteratorError;
234
- }
235
- }
236
- }
237
- return _possible_constructor_return(_this);
238
- }
239
- _create_class(o, [
240
- {
241
- key: "get",
242
- value: function get(n) {
243
- return _get(_get_prototype_of(o.prototype), "get", this).call(this, c(this, n));
244
- }
245
- },
246
- {
247
- key: "has",
248
- value: function has(n) {
249
- return _get(_get_prototype_of(o.prototype), "has", this).call(this, c(this, n));
250
- }
251
- },
252
- {
253
- key: "set",
254
- value: function set(n, t) {
255
- return _get(_get_prototype_of(o.prototype), "set", this).call(this, l(this, n), t);
256
- }
257
- },
258
- {
259
- key: "delete",
260
- value: function _delete(n) {
261
- return _get(_get_prototype_of(o.prototype), "delete", this).call(this, p(this, n));
262
- }
263
- }
264
- ]);
265
- return o;
266
- }(_wrap_native_super(Map));
267
- function c(param, t) {
268
- var e = param._intern, n = param._key;
269
- var r = n(t);
270
- return e.has(r) ? e.get(r) : t;
271
- }
272
- function l(param, t) {
273
- var e = param._intern, n = param._key;
274
- var r = n(t);
275
- return e.has(r) ? e.get(r) : (e.set(r, t), t);
276
- }
277
- function p(param, t) {
278
- var e = param._intern, n = param._key;
279
- var r = n(t);
280
- return e.has(r) && (t = e.get(r), e.delete(r)), t;
281
- }
282
- function g(e) {
283
- return e !== null && typeof e == "object" ? e.valueOf() : e;
284
- }
285
- var f = Symbol("implicit");
286
- function h() {
287
- var e = new o(), n = [], t$1 = [], r = f;
288
- function s(u) {
289
- var i = e.get(u);
290
- if (i === void 0) {
291
- if (r !== f) return r;
292
- e.set(u, i = n.push(u) - 1);
293
- }
294
- return t$1[i % t$1.length];
295
- }
296
- return s.domain = function(u) {
297
- if (!arguments.length) return n.slice();
298
- n = [], e = new o();
299
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
300
- try {
301
- for(var _iterator = u[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
302
- var i = _step.value;
303
- e.has(i) || e.set(i, n.push(i) - 1);
304
- }
305
- } catch (err) {
306
- _didIteratorError = true;
307
- _iteratorError = err;
308
- } finally{
309
- try {
310
- if (!_iteratorNormalCompletion && _iterator.return != null) {
311
- _iterator.return();
312
- }
313
- } finally{
314
- if (_didIteratorError) {
315
- throw _iteratorError;
316
- }
317
- }
318
- }
319
- return s;
320
- }, s.range = function(u) {
321
- return arguments.length ? (t$1 = Array.from(u), s) : t$1.slice();
322
- }, s.unknown = function(u) {
323
- return arguments.length ? (r = u, s) : r;
324
- }, s.copy = function() {
325
- return h(n, t$1).unknown(r);
326
- }, t.apply(s, arguments), s;
327
- }
328
-
329
- export { h };