@digipair/skill-web-chatbot 0.91.0-0 → 0.91.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/SAP-icons.cjs.js +2489 -0
  2. package/SAP-icons.cjs2.js +2489 -0
  3. package/SAP-icons.esm.js +2482 -0
  4. package/SAP-icons.esm2.js +2482 -0
  5. package/Tableau10-558cc280.cjs.js +9 -0
  6. package/Tableau10-558cc280.esm.js +7 -0
  7. package/arc-d1f6357e.cjs.js +88 -0
  8. package/arc-d1f6357e.esm.js +86 -0
  9. package/array-2ff2c7a6.cjs.js +7 -0
  10. package/array-2ff2c7a6.esm.js +5 -0
  11. package/blockDiagram-5dc23a45.cjs.js +2921 -0
  12. package/blockDiagram-5dc23a45.esm.js +2919 -0
  13. package/c4Diagram-1e775db3.cjs.js +4387 -0
  14. package/c4Diagram-1e775db3.esm.js +4385 -0
  15. package/channel-ebbc4130.cjs.js +9 -0
  16. package/channel-ebbc4130.esm.js +7 -0
  17. package/classDiagram-f52caa06.cjs.js +209 -0
  18. package/classDiagram-f52caa06.esm.js +207 -0
  19. package/classDiagram-v2-640c694e.cjs.js +401 -0
  20. package/classDiagram-v2-640c694e.esm.js +399 -0
  21. package/clone-afc2f047.cjs.js +10 -0
  22. package/clone-afc2f047.esm.js +8 -0
  23. package/createText-03b82060.cjs.js +2936 -0
  24. package/createText-03b82060.esm.js +2933 -0
  25. package/edges-16357fde.cjs.js +1998 -0
  26. package/edges-16357fde.esm.js +1981 -0
  27. package/erDiagram-c7ff1bec.cjs.js +1807 -0
  28. package/erDiagram-c7ff1bec.esm.js +1805 -0
  29. package/flowDb-9a89ea33.cjs.js +5542 -0
  30. package/flowDb-9a89ea33.esm.js +5538 -0
  31. package/flowDiagram-aadb13b0.cjs.js +1351 -0
  32. package/flowDiagram-aadb13b0.esm.js +1349 -0
  33. package/flowDiagram-v2-f2119625.cjs.js +31 -0
  34. package/flowDiagram-v2-f2119625.esm.js +29 -0
  35. package/flowchart-elk-definition-cf813a97.cjs.js +50257 -0
  36. package/flowchart-elk-definition-cf813a97.esm.js +50255 -0
  37. package/ganttDiagram-3c2fde2b.cjs.js +3710 -0
  38. package/ganttDiagram-3c2fde2b.esm.js +3708 -0
  39. package/gitGraphDiagram-c3a0619c.cjs.js +3820 -0
  40. package/gitGraphDiagram-c3a0619c.esm.js +3818 -0
  41. package/graph-0ee63739.cjs.js +961 -0
  42. package/graph-0ee63739.esm.js +938 -0
  43. package/index-bb6d8841.cjs.js +648 -0
  44. package/index-bb6d8841.esm.js +646 -0
  45. package/index.cjs.d.ts +1 -0
  46. package/index.cjs.js +17 -0
  47. package/index.cjs2.js +60723 -0
  48. package/index.esm.js +1 -0
  49. package/index.esm2.js +60574 -0
  50. package/infoDiagram-2f5c50c0.cjs.js +460 -0
  51. package/infoDiagram-2f5c50c0.esm.js +458 -0
  52. package/init-f9637058.cjs.js +17 -0
  53. package/init-f9637058.esm.js +15 -0
  54. package/journeyDiagram-14fe341a.cjs.js +1061 -0
  55. package/journeyDiagram-14fe341a.esm.js +1059 -0
  56. package/katex-d90b6d29.cjs.js +25690 -0
  57. package/katex-d90b6d29.esm.js +25688 -0
  58. package/layout-fd473db2.cjs.js +1626 -0
  59. package/layout-fd473db2.esm.js +1619 -0
  60. package/libs/engine/src/index.d.ts +2 -0
  61. package/libs/engine/src/lib/alias.interface.d.ts +9 -0
  62. package/libs/engine/src/lib/engine.d.ts +13 -0
  63. package/libs/engine/src/lib/pins-settings.interface.d.ts +15 -0
  64. package/libs/skill-web-chatbot/src/lib/chat.element.d.ts +28 -0
  65. package/libs/skill-web-chatbot/src/lib/common.data.d.ts +1 -0
  66. package/libs/skill-web-chatbot/src/lib/config.d.ts +9 -0
  67. package/libs/skill-web-chatbot/src/lib/digipair-full.data.d.ts +1 -0
  68. package/libs/skill-web-chatbot/src/lib/digipair-full.element.d.ts +36 -0
  69. package/libs/skill-web-chatbot/src/lib/digipair.data.d.ts +1 -0
  70. package/libs/skill-web-chatbot/src/lib/digipair.element.d.ts +44 -0
  71. package/libs/skill-web-chatbot/src/lib/inputs.element.d.ts +10 -0
  72. package/libs/skill-web-chatbot/src/lib/message.interface.d.ts +10 -0
  73. package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +1 -0
  74. package/libs/skill-web-chatbot/src/lib/tools/css-selector.d.ts +1 -0
  75. package/line-24d93f1b.cjs.js +34 -0
  76. package/line-24d93f1b.esm.js +32 -0
  77. package/linear-9bcf74c4.cjs.js +537 -0
  78. package/linear-9bcf74c4.esm.js +531 -0
  79. package/mindmap-definition-9399c7e6.cjs.js +20489 -0
  80. package/mindmap-definition-9399c7e6.esm.js +20487 -0
  81. package/ordinal-5695958c.cjs.js +331 -0
  82. package/ordinal-5695958c.esm.js +329 -0
  83. package/package.json +7 -22
  84. package/path-428ebac9.cjs.js +317 -0
  85. package/path-428ebac9.esm.js +314 -0
  86. package/pieDiagram-828dae43.cjs.js +951 -0
  87. package/pieDiagram-828dae43.esm.js +949 -0
  88. package/quadrantDiagram-5fa00455.cjs.js +2410 -0
  89. package/quadrantDiagram-5fa00455.esm.js +2408 -0
  90. package/requirementDiagram-03163dc4.cjs.js +2267 -0
  91. package/requirementDiagram-03163dc4.esm.js +2265 -0
  92. package/sankeyDiagram-52ec8976.cjs.js +1848 -0
  93. package/sankeyDiagram-52ec8976.esm.js +1846 -0
  94. package/sequenceDiagram-b517d154.cjs.js +5949 -0
  95. package/sequenceDiagram-b517d154.esm.js +5947 -0
  96. package/stateDiagram-fca82b5b.cjs.js +283 -0
  97. package/stateDiagram-fca82b5b.esm.js +281 -0
  98. package/stateDiagram-v2-ed04200a.cjs.js +373 -0
  99. package/stateDiagram-v2-ed04200a.esm.js +371 -0
  100. package/styles-11e81fdd.cjs.js +3944 -0
  101. package/styles-11e81fdd.esm.js +3940 -0
  102. package/styles-cacbff60.cjs.js +2120 -0
  103. package/styles-cacbff60.esm.js +2111 -0
  104. package/styles-e75131e4.cjs.js +671 -0
  105. package/styles-e75131e4.esm.js +661 -0
  106. package/svgDrawCommon-ecc5f780.cjs.js +68 -0
  107. package/svgDrawCommon-ecc5f780.esm.js +60 -0
  108. package/timeline-definition-4ee9bff4.cjs.js +1161 -0
  109. package/timeline-definition-4ee9bff4.esm.js +1159 -0
  110. package/xychartDiagram-e5e6b652.cjs.js +3150 -0
  111. package/xychartDiagram-e5e6b652.esm.js +3148 -0
  112. package/.swcrc +0 -28
  113. package/README.md +0 -7
  114. package/eslint.config.mjs +0 -22
  115. package/rollup.config.cjs +0 -28
  116. package/src/digipair__engine.d.ts +0 -2
  117. package/src/handlebars.d.ts +0 -1
  118. package/src/index.html +0 -18
  119. package/src/lib/chat.element.ts +0 -603
  120. package/src/lib/common.data.ts +0 -1
  121. package/src/lib/config.ts +0 -30
  122. package/src/lib/digipair-full.data.ts +0 -101
  123. package/src/lib/digipair-full.element.ts +0 -358
  124. package/src/lib/digipair.data.ts +0 -103
  125. package/src/lib/digipair.element.ts +0 -446
  126. package/src/lib/inputs.element.ts +0 -46
  127. package/src/lib/mermaid.d.ts +0 -1
  128. package/src/lib/message.interface.ts +0 -10
  129. package/src/lib/pins/chatbot.actions.ts +0 -32
  130. package/src/lib/tools/css-selector.ts +0 -12
  131. package/tsconfig.json +0 -13
  132. package/tsconfig.lib.json +0 -19
  133. /package/{src/index.d.ts → index.d.ts} +0 -0
  134. /package/{src/index.ts → libs/skill-web-chatbot/src/index.d.ts} +0 -0
  135. /package/{src/schema.fr.json → schema.fr.json} +0 -0
  136. /package/{src/schema.json → schema.json} +0 -0
@@ -0,0 +1,2408 @@
1
+ import { a$ as up, V as Vn, F as F_, A as A_, M as M_, h as O_, E as E_, L as L_, aL as yp, c as L, j as B_, b as bt, O as Ol, a as ai } from './index.esm2.js';
2
+ import { H as Hn } from './linear-9bcf74c4.esm.js';
3
+ import './init-f9637058.esm.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_without_holes(arr) {
11
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
12
+ }
13
+ function _class_call_check(instance, Constructor) {
14
+ if (!(instance instanceof Constructor)) {
15
+ throw new TypeError("Cannot call a class as a function");
16
+ }
17
+ }
18
+ function _defineProperties(target, props) {
19
+ for(var i = 0; i < props.length; i++){
20
+ var descriptor = props[i];
21
+ descriptor.enumerable = descriptor.enumerable || false;
22
+ descriptor.configurable = true;
23
+ if ("value" in descriptor) descriptor.writable = true;
24
+ Object.defineProperty(target, descriptor.key, descriptor);
25
+ }
26
+ }
27
+ function _create_class(Constructor, protoProps, staticProps) {
28
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
29
+ if (staticProps) _defineProperties(Constructor, staticProps);
30
+ return Constructor;
31
+ }
32
+ function _define_property(obj, key, value) {
33
+ if (key in obj) {
34
+ Object.defineProperty(obj, key, {
35
+ value: value,
36
+ enumerable: true,
37
+ configurable: true,
38
+ writable: true
39
+ });
40
+ } else {
41
+ obj[key] = value;
42
+ }
43
+ return obj;
44
+ }
45
+ function _instanceof(left, right) {
46
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
47
+ return !!right[Symbol.hasInstance](left);
48
+ } else {
49
+ return left instanceof right;
50
+ }
51
+ }
52
+ function _iterable_to_array(iter) {
53
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
54
+ }
55
+ function _non_iterable_spread() {
56
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
57
+ }
58
+ function _object_spread(target) {
59
+ for(var i = 1; i < arguments.length; i++){
60
+ var source = arguments[i] != null ? arguments[i] : {};
61
+ var ownKeys = Object.keys(source);
62
+ if (typeof Object.getOwnPropertySymbols === "function") {
63
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
64
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
65
+ }));
66
+ }
67
+ ownKeys.forEach(function(key) {
68
+ _define_property(target, key, source[key]);
69
+ });
70
+ }
71
+ return target;
72
+ }
73
+ function _to_consumable_array(arr) {
74
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
75
+ }
76
+ function _type_of(obj) {
77
+ "@swc/helpers - typeof";
78
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
79
+ }
80
+ function _unsupported_iterable_to_array(o, minLen) {
81
+ if (!o) return;
82
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
83
+ var n = Object.prototype.toString.call(o).slice(8, -1);
84
+ if (n === "Object" && o.constructor) n = o.constructor.name;
85
+ if (n === "Map" || n === "Set") return Array.from(n);
86
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
87
+ }
88
+ var pt = function() {
89
+ var e = function e($, n, r, o) {
90
+ for(r = r || {}, o = $.length; o--; r[$[o]] = n);
91
+ return r;
92
+ }, s = [
93
+ 1,
94
+ 3
95
+ ], c = [
96
+ 1,
97
+ 4
98
+ ], x = [
99
+ 1,
100
+ 5
101
+ ], f = [
102
+ 1,
103
+ 6
104
+ ], d = [
105
+ 1,
106
+ 7
107
+ ], l = [
108
+ 1,
109
+ 5,
110
+ 13,
111
+ 15,
112
+ 17,
113
+ 19,
114
+ 20,
115
+ 25,
116
+ 27,
117
+ 28,
118
+ 29,
119
+ 30,
120
+ 31,
121
+ 32,
122
+ 33,
123
+ 34,
124
+ 37,
125
+ 38,
126
+ 40,
127
+ 41,
128
+ 42,
129
+ 43,
130
+ 44,
131
+ 45,
132
+ 46,
133
+ 47,
134
+ 48,
135
+ 49,
136
+ 50
137
+ ], g = [
138
+ 1,
139
+ 5,
140
+ 6,
141
+ 13,
142
+ 15,
143
+ 17,
144
+ 19,
145
+ 20,
146
+ 25,
147
+ 27,
148
+ 28,
149
+ 29,
150
+ 30,
151
+ 31,
152
+ 32,
153
+ 33,
154
+ 34,
155
+ 37,
156
+ 38,
157
+ 40,
158
+ 41,
159
+ 42,
160
+ 43,
161
+ 44,
162
+ 45,
163
+ 46,
164
+ 47,
165
+ 48,
166
+ 49,
167
+ 50
168
+ ], i = [
169
+ 32,
170
+ 33,
171
+ 34
172
+ ], q = [
173
+ 2,
174
+ 7
175
+ ], b = [
176
+ 1,
177
+ 13
178
+ ], D = [
179
+ 1,
180
+ 17
181
+ ], w = [
182
+ 1,
183
+ 18
184
+ ], I = [
185
+ 1,
186
+ 19
187
+ ], B = [
188
+ 1,
189
+ 20
190
+ ], p = [
191
+ 1,
192
+ 21
193
+ ], H = [
194
+ 1,
195
+ 22
196
+ ], G = [
197
+ 1,
198
+ 23
199
+ ], K = [
200
+ 1,
201
+ 24
202
+ ], at = [
203
+ 1,
204
+ 25
205
+ ], nt = [
206
+ 1,
207
+ 26
208
+ ], et = [
209
+ 1,
210
+ 27
211
+ ], Q = [
212
+ 1,
213
+ 30
214
+ ], N = [
215
+ 1,
216
+ 31
217
+ ], T = [
218
+ 1,
219
+ 32
220
+ ], m = [
221
+ 1,
222
+ 33
223
+ ], A = [
224
+ 1,
225
+ 34
226
+ ], t = [
227
+ 1,
228
+ 35
229
+ ], _ = [
230
+ 1,
231
+ 36
232
+ ], S = [
233
+ 1,
234
+ 37
235
+ ], k = [
236
+ 1,
237
+ 38
238
+ ], F = [
239
+ 1,
240
+ 39
241
+ ], P = [
242
+ 1,
243
+ 40
244
+ ], v = [
245
+ 1,
246
+ 41
247
+ ], L = [
248
+ 1,
249
+ 42
250
+ ], M = [
251
+ 1,
252
+ 57
253
+ ], X = [
254
+ 1,
255
+ 58
256
+ ], C = [
257
+ 5,
258
+ 22,
259
+ 26,
260
+ 32,
261
+ 33,
262
+ 34,
263
+ 40,
264
+ 41,
265
+ 42,
266
+ 43,
267
+ 44,
268
+ 45,
269
+ 46,
270
+ 47,
271
+ 48,
272
+ 49,
273
+ 50,
274
+ 51
275
+ ], ht = {
276
+ trace: function trace() {},
277
+ yy: {},
278
+ symbols_: {
279
+ error: 2,
280
+ start: 3,
281
+ eol: 4,
282
+ SPACE: 5,
283
+ QUADRANT: 6,
284
+ document: 7,
285
+ line: 8,
286
+ statement: 9,
287
+ axisDetails: 10,
288
+ quadrantDetails: 11,
289
+ points: 12,
290
+ title: 13,
291
+ title_value: 14,
292
+ acc_title: 15,
293
+ acc_title_value: 16,
294
+ acc_descr: 17,
295
+ acc_descr_value: 18,
296
+ acc_descr_multiline_value: 19,
297
+ section: 20,
298
+ text: 21,
299
+ point_start: 22,
300
+ point_x: 23,
301
+ point_y: 24,
302
+ "X-AXIS": 25,
303
+ "AXIS-TEXT-DELIMITER": 26,
304
+ "Y-AXIS": 27,
305
+ QUADRANT_1: 28,
306
+ QUADRANT_2: 29,
307
+ QUADRANT_3: 30,
308
+ QUADRANT_4: 31,
309
+ NEWLINE: 32,
310
+ SEMI: 33,
311
+ EOF: 34,
312
+ alphaNumToken: 35,
313
+ textNoTagsToken: 36,
314
+ STR: 37,
315
+ MD_STR: 38,
316
+ alphaNum: 39,
317
+ PUNCTUATION: 40,
318
+ AMP: 41,
319
+ NUM: 42,
320
+ ALPHA: 43,
321
+ COMMA: 44,
322
+ PLUS: 45,
323
+ EQUALS: 46,
324
+ MULT: 47,
325
+ DOT: 48,
326
+ BRKT: 49,
327
+ UNDERSCORE: 50,
328
+ MINUS: 51,
329
+ $accept: 0,
330
+ $end: 1
331
+ },
332
+ terminals_: {
333
+ 2: "error",
334
+ 5: "SPACE",
335
+ 6: "QUADRANT",
336
+ 13: "title",
337
+ 14: "title_value",
338
+ 15: "acc_title",
339
+ 16: "acc_title_value",
340
+ 17: "acc_descr",
341
+ 18: "acc_descr_value",
342
+ 19: "acc_descr_multiline_value",
343
+ 20: "section",
344
+ 22: "point_start",
345
+ 23: "point_x",
346
+ 24: "point_y",
347
+ 25: "X-AXIS",
348
+ 26: "AXIS-TEXT-DELIMITER",
349
+ 27: "Y-AXIS",
350
+ 28: "QUADRANT_1",
351
+ 29: "QUADRANT_2",
352
+ 30: "QUADRANT_3",
353
+ 31: "QUADRANT_4",
354
+ 32: "NEWLINE",
355
+ 33: "SEMI",
356
+ 34: "EOF",
357
+ 37: "STR",
358
+ 38: "MD_STR",
359
+ 40: "PUNCTUATION",
360
+ 41: "AMP",
361
+ 42: "NUM",
362
+ 43: "ALPHA",
363
+ 44: "COMMA",
364
+ 45: "PLUS",
365
+ 46: "EQUALS",
366
+ 47: "MULT",
367
+ 48: "DOT",
368
+ 49: "BRKT",
369
+ 50: "UNDERSCORE",
370
+ 51: "MINUS"
371
+ },
372
+ productions_: [
373
+ 0,
374
+ [
375
+ 3,
376
+ 2
377
+ ],
378
+ [
379
+ 3,
380
+ 2
381
+ ],
382
+ [
383
+ 3,
384
+ 2
385
+ ],
386
+ [
387
+ 7,
388
+ 0
389
+ ],
390
+ [
391
+ 7,
392
+ 2
393
+ ],
394
+ [
395
+ 8,
396
+ 2
397
+ ],
398
+ [
399
+ 9,
400
+ 0
401
+ ],
402
+ [
403
+ 9,
404
+ 2
405
+ ],
406
+ [
407
+ 9,
408
+ 1
409
+ ],
410
+ [
411
+ 9,
412
+ 1
413
+ ],
414
+ [
415
+ 9,
416
+ 1
417
+ ],
418
+ [
419
+ 9,
420
+ 2
421
+ ],
422
+ [
423
+ 9,
424
+ 2
425
+ ],
426
+ [
427
+ 9,
428
+ 2
429
+ ],
430
+ [
431
+ 9,
432
+ 1
433
+ ],
434
+ [
435
+ 9,
436
+ 1
437
+ ],
438
+ [
439
+ 12,
440
+ 4
441
+ ],
442
+ [
443
+ 10,
444
+ 4
445
+ ],
446
+ [
447
+ 10,
448
+ 3
449
+ ],
450
+ [
451
+ 10,
452
+ 2
453
+ ],
454
+ [
455
+ 10,
456
+ 4
457
+ ],
458
+ [
459
+ 10,
460
+ 3
461
+ ],
462
+ [
463
+ 10,
464
+ 2
465
+ ],
466
+ [
467
+ 11,
468
+ 2
469
+ ],
470
+ [
471
+ 11,
472
+ 2
473
+ ],
474
+ [
475
+ 11,
476
+ 2
477
+ ],
478
+ [
479
+ 11,
480
+ 2
481
+ ],
482
+ [
483
+ 4,
484
+ 1
485
+ ],
486
+ [
487
+ 4,
488
+ 1
489
+ ],
490
+ [
491
+ 4,
492
+ 1
493
+ ],
494
+ [
495
+ 21,
496
+ 1
497
+ ],
498
+ [
499
+ 21,
500
+ 2
501
+ ],
502
+ [
503
+ 21,
504
+ 1
505
+ ],
506
+ [
507
+ 21,
508
+ 1
509
+ ],
510
+ [
511
+ 39,
512
+ 1
513
+ ],
514
+ [
515
+ 39,
516
+ 2
517
+ ],
518
+ [
519
+ 35,
520
+ 1
521
+ ],
522
+ [
523
+ 35,
524
+ 1
525
+ ],
526
+ [
527
+ 35,
528
+ 1
529
+ ],
530
+ [
531
+ 35,
532
+ 1
533
+ ],
534
+ [
535
+ 35,
536
+ 1
537
+ ],
538
+ [
539
+ 35,
540
+ 1
541
+ ],
542
+ [
543
+ 35,
544
+ 1
545
+ ],
546
+ [
547
+ 35,
548
+ 1
549
+ ],
550
+ [
551
+ 35,
552
+ 1
553
+ ],
554
+ [
555
+ 35,
556
+ 1
557
+ ],
558
+ [
559
+ 35,
560
+ 1
561
+ ],
562
+ [
563
+ 36,
564
+ 1
565
+ ],
566
+ [
567
+ 36,
568
+ 1
569
+ ],
570
+ [
571
+ 36,
572
+ 1
573
+ ]
574
+ ],
575
+ performAction: function performAction(n, r, o, h, y, a, it) {
576
+ var u = a.length - 1;
577
+ switch(y){
578
+ case 12:
579
+ this.$ = a[u].trim(), h.setDiagramTitle(this.$);
580
+ break;
581
+ case 13:
582
+ this.$ = a[u].trim(), h.setAccTitle(this.$);
583
+ break;
584
+ case 14:
585
+ case 15:
586
+ this.$ = a[u].trim(), h.setAccDescription(this.$);
587
+ break;
588
+ case 16:
589
+ h.addSection(a[u].substr(8)), this.$ = a[u].substr(8);
590
+ break;
591
+ case 17:
592
+ h.addPoint(a[u - 3], a[u - 1], a[u]);
593
+ break;
594
+ case 18:
595
+ h.setXAxisLeftText(a[u - 2]), h.setXAxisRightText(a[u]);
596
+ break;
597
+ case 19:
598
+ a[u - 1].text += " ⟶ ", h.setXAxisLeftText(a[u - 1]);
599
+ break;
600
+ case 20:
601
+ h.setXAxisLeftText(a[u]);
602
+ break;
603
+ case 21:
604
+ h.setYAxisBottomText(a[u - 2]), h.setYAxisTopText(a[u]);
605
+ break;
606
+ case 22:
607
+ a[u - 1].text += " ⟶ ", h.setYAxisBottomText(a[u - 1]);
608
+ break;
609
+ case 23:
610
+ h.setYAxisBottomText(a[u]);
611
+ break;
612
+ case 24:
613
+ h.setQuadrant1Text(a[u]);
614
+ break;
615
+ case 25:
616
+ h.setQuadrant2Text(a[u]);
617
+ break;
618
+ case 26:
619
+ h.setQuadrant3Text(a[u]);
620
+ break;
621
+ case 27:
622
+ h.setQuadrant4Text(a[u]);
623
+ break;
624
+ case 31:
625
+ this.$ = {
626
+ text: a[u],
627
+ type: "text"
628
+ };
629
+ break;
630
+ case 32:
631
+ this.$ = {
632
+ text: a[u - 1].text + "" + a[u],
633
+ type: a[u - 1].type
634
+ };
635
+ break;
636
+ case 33:
637
+ this.$ = {
638
+ text: a[u],
639
+ type: "text"
640
+ };
641
+ break;
642
+ case 34:
643
+ this.$ = {
644
+ text: a[u],
645
+ type: "markdown"
646
+ };
647
+ break;
648
+ case 35:
649
+ this.$ = a[u];
650
+ break;
651
+ case 36:
652
+ this.$ = a[u - 1] + "" + a[u];
653
+ break;
654
+ }
655
+ },
656
+ table: [
657
+ {
658
+ 3: 1,
659
+ 4: 2,
660
+ 5: s,
661
+ 6: c,
662
+ 32: x,
663
+ 33: f,
664
+ 34: d
665
+ },
666
+ {
667
+ 1: [
668
+ 3
669
+ ]
670
+ },
671
+ {
672
+ 3: 8,
673
+ 4: 2,
674
+ 5: s,
675
+ 6: c,
676
+ 32: x,
677
+ 33: f,
678
+ 34: d
679
+ },
680
+ {
681
+ 3: 9,
682
+ 4: 2,
683
+ 5: s,
684
+ 6: c,
685
+ 32: x,
686
+ 33: f,
687
+ 34: d
688
+ },
689
+ e(l, [
690
+ 2,
691
+ 4
692
+ ], {
693
+ 7: 10
694
+ }),
695
+ e(g, [
696
+ 2,
697
+ 28
698
+ ]),
699
+ e(g, [
700
+ 2,
701
+ 29
702
+ ]),
703
+ e(g, [
704
+ 2,
705
+ 30
706
+ ]),
707
+ {
708
+ 1: [
709
+ 2,
710
+ 1
711
+ ]
712
+ },
713
+ {
714
+ 1: [
715
+ 2,
716
+ 2
717
+ ]
718
+ },
719
+ e(i, q, {
720
+ 8: 11,
721
+ 9: 12,
722
+ 10: 14,
723
+ 11: 15,
724
+ 12: 16,
725
+ 21: 28,
726
+ 35: 29,
727
+ 1: [
728
+ 2,
729
+ 3
730
+ ],
731
+ 5: b,
732
+ 13: D,
733
+ 15: w,
734
+ 17: I,
735
+ 19: B,
736
+ 20: p,
737
+ 25: H,
738
+ 27: G,
739
+ 28: K,
740
+ 29: at,
741
+ 30: nt,
742
+ 31: et,
743
+ 37: Q,
744
+ 38: N,
745
+ 40: T,
746
+ 41: m,
747
+ 42: A,
748
+ 43: t,
749
+ 44: _,
750
+ 45: S,
751
+ 46: k,
752
+ 47: F,
753
+ 48: P,
754
+ 49: v,
755
+ 50: L
756
+ }),
757
+ e(l, [
758
+ 2,
759
+ 5
760
+ ]),
761
+ {
762
+ 4: 43,
763
+ 32: x,
764
+ 33: f,
765
+ 34: d
766
+ },
767
+ e(i, q, {
768
+ 10: 14,
769
+ 11: 15,
770
+ 12: 16,
771
+ 21: 28,
772
+ 35: 29,
773
+ 9: 44,
774
+ 5: b,
775
+ 13: D,
776
+ 15: w,
777
+ 17: I,
778
+ 19: B,
779
+ 20: p,
780
+ 25: H,
781
+ 27: G,
782
+ 28: K,
783
+ 29: at,
784
+ 30: nt,
785
+ 31: et,
786
+ 37: Q,
787
+ 38: N,
788
+ 40: T,
789
+ 41: m,
790
+ 42: A,
791
+ 43: t,
792
+ 44: _,
793
+ 45: S,
794
+ 46: k,
795
+ 47: F,
796
+ 48: P,
797
+ 49: v,
798
+ 50: L
799
+ }),
800
+ e(i, [
801
+ 2,
802
+ 9
803
+ ]),
804
+ e(i, [
805
+ 2,
806
+ 10
807
+ ]),
808
+ e(i, [
809
+ 2,
810
+ 11
811
+ ]),
812
+ {
813
+ 14: [
814
+ 1,
815
+ 45
816
+ ]
817
+ },
818
+ {
819
+ 16: [
820
+ 1,
821
+ 46
822
+ ]
823
+ },
824
+ {
825
+ 18: [
826
+ 1,
827
+ 47
828
+ ]
829
+ },
830
+ e(i, [
831
+ 2,
832
+ 15
833
+ ]),
834
+ e(i, [
835
+ 2,
836
+ 16
837
+ ]),
838
+ {
839
+ 21: 48,
840
+ 35: 29,
841
+ 37: Q,
842
+ 38: N,
843
+ 40: T,
844
+ 41: m,
845
+ 42: A,
846
+ 43: t,
847
+ 44: _,
848
+ 45: S,
849
+ 46: k,
850
+ 47: F,
851
+ 48: P,
852
+ 49: v,
853
+ 50: L
854
+ },
855
+ {
856
+ 21: 49,
857
+ 35: 29,
858
+ 37: Q,
859
+ 38: N,
860
+ 40: T,
861
+ 41: m,
862
+ 42: A,
863
+ 43: t,
864
+ 44: _,
865
+ 45: S,
866
+ 46: k,
867
+ 47: F,
868
+ 48: P,
869
+ 49: v,
870
+ 50: L
871
+ },
872
+ {
873
+ 21: 50,
874
+ 35: 29,
875
+ 37: Q,
876
+ 38: N,
877
+ 40: T,
878
+ 41: m,
879
+ 42: A,
880
+ 43: t,
881
+ 44: _,
882
+ 45: S,
883
+ 46: k,
884
+ 47: F,
885
+ 48: P,
886
+ 49: v,
887
+ 50: L
888
+ },
889
+ {
890
+ 21: 51,
891
+ 35: 29,
892
+ 37: Q,
893
+ 38: N,
894
+ 40: T,
895
+ 41: m,
896
+ 42: A,
897
+ 43: t,
898
+ 44: _,
899
+ 45: S,
900
+ 46: k,
901
+ 47: F,
902
+ 48: P,
903
+ 49: v,
904
+ 50: L
905
+ },
906
+ {
907
+ 21: 52,
908
+ 35: 29,
909
+ 37: Q,
910
+ 38: N,
911
+ 40: T,
912
+ 41: m,
913
+ 42: A,
914
+ 43: t,
915
+ 44: _,
916
+ 45: S,
917
+ 46: k,
918
+ 47: F,
919
+ 48: P,
920
+ 49: v,
921
+ 50: L
922
+ },
923
+ {
924
+ 21: 53,
925
+ 35: 29,
926
+ 37: Q,
927
+ 38: N,
928
+ 40: T,
929
+ 41: m,
930
+ 42: A,
931
+ 43: t,
932
+ 44: _,
933
+ 45: S,
934
+ 46: k,
935
+ 47: F,
936
+ 48: P,
937
+ 49: v,
938
+ 50: L
939
+ },
940
+ {
941
+ 5: M,
942
+ 22: [
943
+ 1,
944
+ 54
945
+ ],
946
+ 35: 56,
947
+ 36: 55,
948
+ 40: T,
949
+ 41: m,
950
+ 42: A,
951
+ 43: t,
952
+ 44: _,
953
+ 45: S,
954
+ 46: k,
955
+ 47: F,
956
+ 48: P,
957
+ 49: v,
958
+ 50: L,
959
+ 51: X
960
+ },
961
+ e(C, [
962
+ 2,
963
+ 31
964
+ ]),
965
+ e(C, [
966
+ 2,
967
+ 33
968
+ ]),
969
+ e(C, [
970
+ 2,
971
+ 34
972
+ ]),
973
+ e(C, [
974
+ 2,
975
+ 37
976
+ ]),
977
+ e(C, [
978
+ 2,
979
+ 38
980
+ ]),
981
+ e(C, [
982
+ 2,
983
+ 39
984
+ ]),
985
+ e(C, [
986
+ 2,
987
+ 40
988
+ ]),
989
+ e(C, [
990
+ 2,
991
+ 41
992
+ ]),
993
+ e(C, [
994
+ 2,
995
+ 42
996
+ ]),
997
+ e(C, [
998
+ 2,
999
+ 43
1000
+ ]),
1001
+ e(C, [
1002
+ 2,
1003
+ 44
1004
+ ]),
1005
+ e(C, [
1006
+ 2,
1007
+ 45
1008
+ ]),
1009
+ e(C, [
1010
+ 2,
1011
+ 46
1012
+ ]),
1013
+ e(C, [
1014
+ 2,
1015
+ 47
1016
+ ]),
1017
+ e(l, [
1018
+ 2,
1019
+ 6
1020
+ ]),
1021
+ e(i, [
1022
+ 2,
1023
+ 8
1024
+ ]),
1025
+ e(i, [
1026
+ 2,
1027
+ 12
1028
+ ]),
1029
+ e(i, [
1030
+ 2,
1031
+ 13
1032
+ ]),
1033
+ e(i, [
1034
+ 2,
1035
+ 14
1036
+ ]),
1037
+ e(i, [
1038
+ 2,
1039
+ 20
1040
+ ], {
1041
+ 36: 55,
1042
+ 35: 56,
1043
+ 5: M,
1044
+ 26: [
1045
+ 1,
1046
+ 59
1047
+ ],
1048
+ 40: T,
1049
+ 41: m,
1050
+ 42: A,
1051
+ 43: t,
1052
+ 44: _,
1053
+ 45: S,
1054
+ 46: k,
1055
+ 47: F,
1056
+ 48: P,
1057
+ 49: v,
1058
+ 50: L,
1059
+ 51: X
1060
+ }),
1061
+ e(i, [
1062
+ 2,
1063
+ 23
1064
+ ], {
1065
+ 36: 55,
1066
+ 35: 56,
1067
+ 5: M,
1068
+ 26: [
1069
+ 1,
1070
+ 60
1071
+ ],
1072
+ 40: T,
1073
+ 41: m,
1074
+ 42: A,
1075
+ 43: t,
1076
+ 44: _,
1077
+ 45: S,
1078
+ 46: k,
1079
+ 47: F,
1080
+ 48: P,
1081
+ 49: v,
1082
+ 50: L,
1083
+ 51: X
1084
+ }),
1085
+ e(i, [
1086
+ 2,
1087
+ 24
1088
+ ], {
1089
+ 36: 55,
1090
+ 35: 56,
1091
+ 5: M,
1092
+ 40: T,
1093
+ 41: m,
1094
+ 42: A,
1095
+ 43: t,
1096
+ 44: _,
1097
+ 45: S,
1098
+ 46: k,
1099
+ 47: F,
1100
+ 48: P,
1101
+ 49: v,
1102
+ 50: L,
1103
+ 51: X
1104
+ }),
1105
+ e(i, [
1106
+ 2,
1107
+ 25
1108
+ ], {
1109
+ 36: 55,
1110
+ 35: 56,
1111
+ 5: M,
1112
+ 40: T,
1113
+ 41: m,
1114
+ 42: A,
1115
+ 43: t,
1116
+ 44: _,
1117
+ 45: S,
1118
+ 46: k,
1119
+ 47: F,
1120
+ 48: P,
1121
+ 49: v,
1122
+ 50: L,
1123
+ 51: X
1124
+ }),
1125
+ e(i, [
1126
+ 2,
1127
+ 26
1128
+ ], {
1129
+ 36: 55,
1130
+ 35: 56,
1131
+ 5: M,
1132
+ 40: T,
1133
+ 41: m,
1134
+ 42: A,
1135
+ 43: t,
1136
+ 44: _,
1137
+ 45: S,
1138
+ 46: k,
1139
+ 47: F,
1140
+ 48: P,
1141
+ 49: v,
1142
+ 50: L,
1143
+ 51: X
1144
+ }),
1145
+ e(i, [
1146
+ 2,
1147
+ 27
1148
+ ], {
1149
+ 36: 55,
1150
+ 35: 56,
1151
+ 5: M,
1152
+ 40: T,
1153
+ 41: m,
1154
+ 42: A,
1155
+ 43: t,
1156
+ 44: _,
1157
+ 45: S,
1158
+ 46: k,
1159
+ 47: F,
1160
+ 48: P,
1161
+ 49: v,
1162
+ 50: L,
1163
+ 51: X
1164
+ }),
1165
+ {
1166
+ 23: [
1167
+ 1,
1168
+ 61
1169
+ ]
1170
+ },
1171
+ e(C, [
1172
+ 2,
1173
+ 32
1174
+ ]),
1175
+ e(C, [
1176
+ 2,
1177
+ 48
1178
+ ]),
1179
+ e(C, [
1180
+ 2,
1181
+ 49
1182
+ ]),
1183
+ e(C, [
1184
+ 2,
1185
+ 50
1186
+ ]),
1187
+ e(i, [
1188
+ 2,
1189
+ 19
1190
+ ], {
1191
+ 35: 29,
1192
+ 21: 62,
1193
+ 37: Q,
1194
+ 38: N,
1195
+ 40: T,
1196
+ 41: m,
1197
+ 42: A,
1198
+ 43: t,
1199
+ 44: _,
1200
+ 45: S,
1201
+ 46: k,
1202
+ 47: F,
1203
+ 48: P,
1204
+ 49: v,
1205
+ 50: L
1206
+ }),
1207
+ e(i, [
1208
+ 2,
1209
+ 22
1210
+ ], {
1211
+ 35: 29,
1212
+ 21: 63,
1213
+ 37: Q,
1214
+ 38: N,
1215
+ 40: T,
1216
+ 41: m,
1217
+ 42: A,
1218
+ 43: t,
1219
+ 44: _,
1220
+ 45: S,
1221
+ 46: k,
1222
+ 47: F,
1223
+ 48: P,
1224
+ 49: v,
1225
+ 50: L
1226
+ }),
1227
+ {
1228
+ 24: [
1229
+ 1,
1230
+ 64
1231
+ ]
1232
+ },
1233
+ e(i, [
1234
+ 2,
1235
+ 18
1236
+ ], {
1237
+ 36: 55,
1238
+ 35: 56,
1239
+ 5: M,
1240
+ 40: T,
1241
+ 41: m,
1242
+ 42: A,
1243
+ 43: t,
1244
+ 44: _,
1245
+ 45: S,
1246
+ 46: k,
1247
+ 47: F,
1248
+ 48: P,
1249
+ 49: v,
1250
+ 50: L,
1251
+ 51: X
1252
+ }),
1253
+ e(i, [
1254
+ 2,
1255
+ 21
1256
+ ], {
1257
+ 36: 55,
1258
+ 35: 56,
1259
+ 5: M,
1260
+ 40: T,
1261
+ 41: m,
1262
+ 42: A,
1263
+ 43: t,
1264
+ 44: _,
1265
+ 45: S,
1266
+ 46: k,
1267
+ 47: F,
1268
+ 48: P,
1269
+ 49: v,
1270
+ 50: L,
1271
+ 51: X
1272
+ }),
1273
+ e(i, [
1274
+ 2,
1275
+ 17
1276
+ ])
1277
+ ],
1278
+ defaultActions: {
1279
+ 8: [
1280
+ 2,
1281
+ 1
1282
+ ],
1283
+ 9: [
1284
+ 2,
1285
+ 2
1286
+ ]
1287
+ },
1288
+ parseError: function parseError(n, r) {
1289
+ if (r.recoverable) this.trace(n);
1290
+ else {
1291
+ var o = new Error(n);
1292
+ throw o.hash = r, o;
1293
+ }
1294
+ },
1295
+ parse: function parse(n) {
1296
+ var r = this, o = [
1297
+ 0
1298
+ ], h = [], y = [
1299
+ null
1300
+ ], a = [], it = this.table, u = "", st = 0, qt = 0, St = 2, Tt = 1, kt = a.slice.call(arguments, 1), z = Object.create(this.lexer), Z = {
1301
+ yy: {}
1302
+ };
1303
+ for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy, dt) && (Z.yy[dt] = this.yy[dt]);
1304
+ z.setInput(n, Z.yy), Z.yy.lexer = z, Z.yy.parser = this, _type_of(z.yylloc) > "u" && (z.yylloc = {});
1305
+ var ut = z.yylloc;
1306
+ a.push(ut);
1307
+ var Ft = z.options && z.options.ranges;
1308
+ typeof Z.yy.parseError == "function" ? this.parseError = Z.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1309
+ function Pt() {
1310
+ var Y;
1311
+ return Y = h.pop() || z.lex() || Tt, typeof Y != "number" && (_instanceof(Y, Array) && (h = Y, Y = h.pop()), Y = r.symbols_[Y] || Y), Y;
1312
+ }
1313
+ for(var W, J, U, xt, tt = {}, rt, O, mt, ot;;){
1314
+ if (J = o[o.length - 1], this.defaultActions[J] ? U = this.defaultActions[J] : ((W === null || (typeof W === "undefined" ? "undefined" : _type_of(W)) > "u") && (W = Pt()), U = it[J] && it[J][W]), (typeof U === "undefined" ? "undefined" : _type_of(U)) > "u" || !U.length || !U[0]) {
1315
+ var ft = "";
1316
+ ot = [];
1317
+ for(rt in it[J])this.terminals_[rt] && rt > St && ot.push("'" + this.terminals_[rt] + "'");
1318
+ z.showPosition ? ft = "Parse error on line " + (st + 1) + ":\n" + z.showPosition() + "\nExpecting " + ot.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : ft = "Parse error on line " + (st + 1) + ": Unexpected " + (W == Tt ? "end of input" : "'" + (this.terminals_[W] || W) + "'"), this.parseError(ft, {
1319
+ text: z.match,
1320
+ token: this.terminals_[W] || W,
1321
+ line: z.yylineno,
1322
+ loc: ut,
1323
+ expected: ot
1324
+ });
1325
+ }
1326
+ if (_instanceof(U[0], Array) && U.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + J + ", token: " + W);
1327
+ switch(U[0]){
1328
+ case 1:
1329
+ o.push(W), y.push(z.yytext), a.push(z.yylloc), o.push(U[1]), W = null, qt = z.yyleng, u = z.yytext, st = z.yylineno, ut = z.yylloc;
1330
+ break;
1331
+ case 2:
1332
+ if (O = this.productions_[U[1]][1], tt.$ = y[y.length - O], tt._$ = {
1333
+ first_line: a[a.length - (O || 1)].first_line,
1334
+ last_line: a[a.length - 1].last_line,
1335
+ first_column: a[a.length - (O || 1)].first_column,
1336
+ last_column: a[a.length - 1].last_column
1337
+ }, Ft && (tt._$.range = [
1338
+ a[a.length - (O || 1)].range[0],
1339
+ a[a.length - 1].range[1]
1340
+ ]), xt = this.performAction.apply(tt, [
1341
+ u,
1342
+ qt,
1343
+ st,
1344
+ Z.yy,
1345
+ U[1],
1346
+ y,
1347
+ a
1348
+ ].concat(kt)), (typeof xt === "undefined" ? "undefined" : _type_of(xt)) < "u") return xt;
1349
+ O && (o = o.slice(0, -1 * O * 2), y = y.slice(0, -1 * O), a = a.slice(0, -1 * O)), o.push(this.productions_[U[1]][0]), y.push(tt.$), a.push(tt._$), mt = it[o[o.length - 2]][o[o.length - 1]], o.push(mt);
1350
+ break;
1351
+ case 3:
1352
+ return !0;
1353
+ }
1354
+ }
1355
+ return !0;
1356
+ }
1357
+ }, _t = function() {
1358
+ var $ = {
1359
+ EOF: 1,
1360
+ parseError: function parseError(r, o) {
1361
+ if (this.yy.parser) this.yy.parser.parseError(r, o);
1362
+ else throw new Error(r);
1363
+ },
1364
+ // resets the lexer, sets new input
1365
+ setInput: function setInput(n, r) {
1366
+ return this.yy = r || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = [
1367
+ "INITIAL"
1368
+ ], this.yylloc = {
1369
+ first_line: 1,
1370
+ first_column: 0,
1371
+ last_line: 1,
1372
+ last_column: 0
1373
+ }, this.options.ranges && (this.yylloc.range = [
1374
+ 0,
1375
+ 0
1376
+ ]), this.offset = 0, this;
1377
+ },
1378
+ // consumes and returns one char from the input
1379
+ input: function input() {
1380
+ var n = this._input[0];
1381
+ this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
1382
+ var r = n.match(/(?:\r\n?|\n).*/g);
1383
+ return r ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
1384
+ },
1385
+ // unshifts one char (or a string) into the input
1386
+ unput: function unput(n) {
1387
+ var r = n.length, o = n.split(/(?:\r\n?|\n)/g);
1388
+ this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - r), this.offset -= r;
1389
+ var h = this.match.split(/(?:\r\n?|\n)/g);
1390
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
1391
+ var y = this.yylloc.range;
1392
+ return this.yylloc = {
1393
+ first_line: this.yylloc.first_line,
1394
+ last_line: this.yylineno + 1,
1395
+ first_column: this.yylloc.first_column,
1396
+ last_column: o ? (o.length === h.length ? this.yylloc.first_column : 0) + h[h.length - o.length].length - o[0].length : this.yylloc.first_column - r
1397
+ }, this.options.ranges && (this.yylloc.range = [
1398
+ y[0],
1399
+ y[0] + this.yyleng - r
1400
+ ]), this.yyleng = this.yytext.length, this;
1401
+ },
1402
+ // When called from action, caches matched text and appends it on next action
1403
+ more: function more() {
1404
+ return this._more = !0, this;
1405
+ },
1406
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
1407
+ reject: function reject() {
1408
+ if (this.options.backtrack_lexer) this._backtrack = !0;
1409
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
1410
+ text: "",
1411
+ token: null,
1412
+ line: this.yylineno
1413
+ });
1414
+ return this;
1415
+ },
1416
+ // retain first n characters of the match
1417
+ less: function less(n) {
1418
+ this.unput(this.match.slice(n));
1419
+ },
1420
+ // displays already matched input, i.e. for error messages
1421
+ pastInput: function pastInput() {
1422
+ var n = this.matched.substr(0, this.matched.length - this.match.length);
1423
+ return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
1424
+ },
1425
+ // displays upcoming input, i.e. for error messages
1426
+ upcomingInput: function upcomingInput() {
1427
+ var n = this.match;
1428
+ return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
1429
+ },
1430
+ // displays the character position where the lexing error occurred, i.e. for error messages
1431
+ showPosition: function showPosition() {
1432
+ var n = this.pastInput(), r = new Array(n.length + 1).join("-");
1433
+ return n + this.upcomingInput() + "\n" + r + "^";
1434
+ },
1435
+ // test the lexed token: return FALSE when not a match, otherwise return token
1436
+ test_match: function test_match(n, r) {
1437
+ var o, h, y;
1438
+ if (this.options.backtrack_lexer && (y = {
1439
+ yylineno: this.yylineno,
1440
+ yylloc: {
1441
+ first_line: this.yylloc.first_line,
1442
+ last_line: this.last_line,
1443
+ first_column: this.yylloc.first_column,
1444
+ last_column: this.yylloc.last_column
1445
+ },
1446
+ yytext: this.yytext,
1447
+ match: this.match,
1448
+ matches: this.matches,
1449
+ matched: this.matched,
1450
+ yyleng: this.yyleng,
1451
+ offset: this.offset,
1452
+ _more: this._more,
1453
+ _input: this._input,
1454
+ yy: this.yy,
1455
+ conditionStack: this.conditionStack.slice(0),
1456
+ done: this.done
1457
+ }, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), h = n[0].match(/(?:\r\n?|\n).*/g), h && (this.yylineno += h.length), this.yylloc = {
1458
+ first_line: this.yylloc.last_line,
1459
+ last_line: this.yylineno + 1,
1460
+ first_column: this.yylloc.last_column,
1461
+ last_column: h ? h[h.length - 1].length - h[h.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
1462
+ }, this.yytext += n[0], this.match += n[0], this.matches = n, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
1463
+ this.offset,
1464
+ this.offset += this.yyleng
1465
+ ]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(n[0].length), this.matched += n[0], o = this.performAction.call(this, this.yy, this, r, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o) return o;
1466
+ if (this._backtrack) {
1467
+ for(var a in y)this[a] = y[a];
1468
+ return !1;
1469
+ }
1470
+ return !1;
1471
+ },
1472
+ // return next match in input
1473
+ next: function next() {
1474
+ if (this.done) return this.EOF;
1475
+ this._input || (this.done = !0);
1476
+ var n, r, o, h;
1477
+ this._more || (this.yytext = "", this.match = "");
1478
+ for(var y = this._currentRules(), a = 0; a < y.length; a++)if (o = this._input.match(this.rules[y[a]]), o && (!r || o[0].length > r[0].length)) {
1479
+ if (r = o, h = a, this.options.backtrack_lexer) {
1480
+ if (n = this.test_match(o, y[a]), n !== !1) return n;
1481
+ if (this._backtrack) {
1482
+ r = !1;
1483
+ continue;
1484
+ } else return !1;
1485
+ } else if (!this.options.flex) break;
1486
+ }
1487
+ return r ? (n = this.test_match(r, y[h]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1488
+ text: "",
1489
+ token: null,
1490
+ line: this.yylineno
1491
+ });
1492
+ },
1493
+ // return next match that has a token
1494
+ lex: function lex() {
1495
+ var r = this.next();
1496
+ return r || this.lex();
1497
+ },
1498
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1499
+ begin: function begin(r) {
1500
+ this.conditionStack.push(r);
1501
+ },
1502
+ // pop the previously active lexer condition state off the condition stack
1503
+ popState: function popState() {
1504
+ var r = this.conditionStack.length - 1;
1505
+ return r > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1506
+ },
1507
+ // produce the lexer rule set which is active for the currently active lexer condition state
1508
+ _currentRules: function _currentRules() {
1509
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1510
+ },
1511
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1512
+ topState: function topState(r) {
1513
+ return r = this.conditionStack.length - 1 - Math.abs(r || 0), r >= 0 ? this.conditionStack[r] : "INITIAL";
1514
+ },
1515
+ // alias for begin(condition)
1516
+ pushState: function pushState(r) {
1517
+ this.begin(r);
1518
+ },
1519
+ // return the number of states currently on the stack
1520
+ stateStackSize: function stateStackSize() {
1521
+ return this.conditionStack.length;
1522
+ },
1523
+ options: {
1524
+ "case-insensitive": !0
1525
+ },
1526
+ performAction: function performAction(r, o, h, y) {
1527
+ switch(h){
1528
+ case 0:
1529
+ break;
1530
+ case 1:
1531
+ break;
1532
+ case 2:
1533
+ return 32;
1534
+ case 3:
1535
+ break;
1536
+ case 4:
1537
+ return this.begin("title"), 13;
1538
+ case 5:
1539
+ return this.popState(), "title_value";
1540
+ case 6:
1541
+ return this.begin("acc_title"), 15;
1542
+ case 7:
1543
+ return this.popState(), "acc_title_value";
1544
+ case 8:
1545
+ return this.begin("acc_descr"), 17;
1546
+ case 9:
1547
+ return this.popState(), "acc_descr_value";
1548
+ case 10:
1549
+ this.begin("acc_descr_multiline");
1550
+ break;
1551
+ case 11:
1552
+ this.popState();
1553
+ break;
1554
+ case 12:
1555
+ return "acc_descr_multiline_value";
1556
+ case 13:
1557
+ return 25;
1558
+ case 14:
1559
+ return 27;
1560
+ case 15:
1561
+ return 26;
1562
+ case 16:
1563
+ return 28;
1564
+ case 17:
1565
+ return 29;
1566
+ case 18:
1567
+ return 30;
1568
+ case 19:
1569
+ return 31;
1570
+ case 20:
1571
+ this.begin("md_string");
1572
+ break;
1573
+ case 21:
1574
+ return "MD_STR";
1575
+ case 22:
1576
+ this.popState();
1577
+ break;
1578
+ case 23:
1579
+ this.begin("string");
1580
+ break;
1581
+ case 24:
1582
+ this.popState();
1583
+ break;
1584
+ case 25:
1585
+ return "STR";
1586
+ case 26:
1587
+ return this.begin("point_start"), 22;
1588
+ case 27:
1589
+ return this.begin("point_x"), 23;
1590
+ case 28:
1591
+ this.popState();
1592
+ break;
1593
+ case 29:
1594
+ this.popState(), this.begin("point_y");
1595
+ break;
1596
+ case 30:
1597
+ return this.popState(), 24;
1598
+ case 31:
1599
+ return 6;
1600
+ case 32:
1601
+ return 43;
1602
+ case 33:
1603
+ return "COLON";
1604
+ case 34:
1605
+ return 45;
1606
+ case 35:
1607
+ return 44;
1608
+ case 36:
1609
+ return 46;
1610
+ case 37:
1611
+ return 46;
1612
+ case 38:
1613
+ return 47;
1614
+ case 39:
1615
+ return 49;
1616
+ case 40:
1617
+ return 50;
1618
+ case 41:
1619
+ return 48;
1620
+ case 42:
1621
+ return 41;
1622
+ case 43:
1623
+ return 51;
1624
+ case 44:
1625
+ return 42;
1626
+ case 45:
1627
+ return 5;
1628
+ case 46:
1629
+ return 33;
1630
+ case 47:
1631
+ return 40;
1632
+ case 48:
1633
+ return 34;
1634
+ }
1635
+ },
1636
+ rules: [
1637
+ /^(?:%%(?!\{)[^\n]*)/i,
1638
+ /^(?:[^\}]%%[^\n]*)/i,
1639
+ /^(?:[\n\r]+)/i,
1640
+ /^(?:%%[^\n]*)/i,
1641
+ /^(?:title\b)/i,
1642
+ /^(?:(?!\n||)*[^\n]*)/i,
1643
+ /^(?:accTitle\s*:\s*)/i,
1644
+ /^(?:(?!\n||)*[^\n]*)/i,
1645
+ /^(?:accDescr\s*:\s*)/i,
1646
+ /^(?:(?!\n||)*[^\n]*)/i,
1647
+ /^(?:accDescr\s*\{\s*)/i,
1648
+ /^(?:[\}])/i,
1649
+ /^(?:[^\}]*)/i,
1650
+ /^(?: *x-axis *)/i,
1651
+ /^(?: *y-axis *)/i,
1652
+ /^(?: *--+> *)/i,
1653
+ /^(?: *quadrant-1 *)/i,
1654
+ /^(?: *quadrant-2 *)/i,
1655
+ /^(?: *quadrant-3 *)/i,
1656
+ /^(?: *quadrant-4 *)/i,
1657
+ /^(?:["][`])/i,
1658
+ /^(?:[^`"]+)/i,
1659
+ /^(?:[`]["])/i,
1660
+ /^(?:["])/i,
1661
+ /^(?:["])/i,
1662
+ /^(?:[^"]*)/i,
1663
+ /^(?:\s*:\s*\[\s*)/i,
1664
+ /^(?:(1)|(0(.\d+)?))/i,
1665
+ /^(?:\s*\] *)/i,
1666
+ /^(?:\s*,\s*)/i,
1667
+ /^(?:(1)|(0(.\d+)?))/i,
1668
+ /^(?: *quadrantChart *)/i,
1669
+ /^(?:[A-Za-z]+)/i,
1670
+ /^(?::)/i,
1671
+ /^(?:\+)/i,
1672
+ /^(?:,)/i,
1673
+ /^(?:=)/i,
1674
+ /^(?:=)/i,
1675
+ /^(?:\*)/i,
1676
+ /^(?:#)/i,
1677
+ /^(?:[\_])/i,
1678
+ /^(?:\.)/i,
1679
+ /^(?:&)/i,
1680
+ /^(?:-)/i,
1681
+ /^(?:[0-9]+)/i,
1682
+ /^(?:\s)/i,
1683
+ /^(?:;)/i,
1684
+ /^(?:[!"#$%&'*+,-.`?\\_/])/i,
1685
+ /^(?:$)/i
1686
+ ],
1687
+ conditions: {
1688
+ point_y: {
1689
+ rules: [
1690
+ 30
1691
+ ],
1692
+ inclusive: !1
1693
+ },
1694
+ point_x: {
1695
+ rules: [
1696
+ 29
1697
+ ],
1698
+ inclusive: !1
1699
+ },
1700
+ point_start: {
1701
+ rules: [
1702
+ 27,
1703
+ 28
1704
+ ],
1705
+ inclusive: !1
1706
+ },
1707
+ acc_descr_multiline: {
1708
+ rules: [
1709
+ 11,
1710
+ 12
1711
+ ],
1712
+ inclusive: !1
1713
+ },
1714
+ acc_descr: {
1715
+ rules: [
1716
+ 9
1717
+ ],
1718
+ inclusive: !1
1719
+ },
1720
+ acc_title: {
1721
+ rules: [
1722
+ 7
1723
+ ],
1724
+ inclusive: !1
1725
+ },
1726
+ title: {
1727
+ rules: [
1728
+ 5
1729
+ ],
1730
+ inclusive: !1
1731
+ },
1732
+ md_string: {
1733
+ rules: [
1734
+ 21,
1735
+ 22
1736
+ ],
1737
+ inclusive: !1
1738
+ },
1739
+ string: {
1740
+ rules: [
1741
+ 24,
1742
+ 25
1743
+ ],
1744
+ inclusive: !1
1745
+ },
1746
+ INITIAL: {
1747
+ rules: [
1748
+ 0,
1749
+ 1,
1750
+ 2,
1751
+ 3,
1752
+ 4,
1753
+ 6,
1754
+ 8,
1755
+ 10,
1756
+ 13,
1757
+ 14,
1758
+ 15,
1759
+ 16,
1760
+ 17,
1761
+ 18,
1762
+ 19,
1763
+ 20,
1764
+ 23,
1765
+ 26,
1766
+ 31,
1767
+ 32,
1768
+ 33,
1769
+ 34,
1770
+ 35,
1771
+ 36,
1772
+ 37,
1773
+ 38,
1774
+ 39,
1775
+ 40,
1776
+ 41,
1777
+ 42,
1778
+ 43,
1779
+ 44,
1780
+ 45,
1781
+ 46,
1782
+ 47,
1783
+ 48
1784
+ ],
1785
+ inclusive: !0
1786
+ }
1787
+ }
1788
+ };
1789
+ return $;
1790
+ }();
1791
+ ht.lexer = _t;
1792
+ function ct() {
1793
+ this.yy = {};
1794
+ }
1795
+ return ct.prototype = ht, ht.Parser = ct, new ct();
1796
+ }();
1797
+ pt.parser = pt;
1798
+ var Rt = pt, V = up();
1799
+ var Vt = /*#__PURE__*/ function() {
1800
+ function Vt() {
1801
+ _class_call_check(this, Vt);
1802
+ this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
1803
+ }
1804
+ _create_class(Vt, [
1805
+ {
1806
+ key: "getDefaultData",
1807
+ value: function getDefaultData() {
1808
+ return {
1809
+ titleText: "",
1810
+ quadrant1Text: "",
1811
+ quadrant2Text: "",
1812
+ quadrant3Text: "",
1813
+ quadrant4Text: "",
1814
+ xAxisLeftText: "",
1815
+ xAxisRightText: "",
1816
+ yAxisBottomText: "",
1817
+ yAxisTopText: "",
1818
+ points: []
1819
+ };
1820
+ }
1821
+ },
1822
+ {
1823
+ key: "getDefaultConfig",
1824
+ value: function getDefaultConfig() {
1825
+ var s, c, x, f, d, l, g, i, q, b, D, w, I, B, p, H, G, K;
1826
+ return {
1827
+ showXAxis: !0,
1828
+ showYAxis: !0,
1829
+ showTitle: !0,
1830
+ chartHeight: ((s = yp.quadrantChart) == null ? void 0 : s.chartWidth) || 500,
1831
+ chartWidth: ((c = yp.quadrantChart) == null ? void 0 : c.chartHeight) || 500,
1832
+ titlePadding: ((x = yp.quadrantChart) == null ? void 0 : x.titlePadding) || 10,
1833
+ titleFontSize: ((f = yp.quadrantChart) == null ? void 0 : f.titleFontSize) || 20,
1834
+ quadrantPadding: ((d = yp.quadrantChart) == null ? void 0 : d.quadrantPadding) || 5,
1835
+ xAxisLabelPadding: ((l = yp.quadrantChart) == null ? void 0 : l.xAxisLabelPadding) || 5,
1836
+ yAxisLabelPadding: ((g = yp.quadrantChart) == null ? void 0 : g.yAxisLabelPadding) || 5,
1837
+ xAxisLabelFontSize: ((i = yp.quadrantChart) == null ? void 0 : i.xAxisLabelFontSize) || 16,
1838
+ yAxisLabelFontSize: ((q = yp.quadrantChart) == null ? void 0 : q.yAxisLabelFontSize) || 16,
1839
+ quadrantLabelFontSize: ((b = yp.quadrantChart) == null ? void 0 : b.quadrantLabelFontSize) || 16,
1840
+ quadrantTextTopPadding: ((D = yp.quadrantChart) == null ? void 0 : D.quadrantTextTopPadding) || 5,
1841
+ pointTextPadding: ((w = yp.quadrantChart) == null ? void 0 : w.pointTextPadding) || 5,
1842
+ pointLabelFontSize: ((I = yp.quadrantChart) == null ? void 0 : I.pointLabelFontSize) || 12,
1843
+ pointRadius: ((B = yp.quadrantChart) == null ? void 0 : B.pointRadius) || 5,
1844
+ xAxisPosition: ((p = yp.quadrantChart) == null ? void 0 : p.xAxisPosition) || "top",
1845
+ yAxisPosition: ((H = yp.quadrantChart) == null ? void 0 : H.yAxisPosition) || "left",
1846
+ quadrantInternalBorderStrokeWidth: ((G = yp.quadrantChart) == null ? void 0 : G.quadrantInternalBorderStrokeWidth) || 1,
1847
+ quadrantExternalBorderStrokeWidth: ((K = yp.quadrantChart) == null ? void 0 : K.quadrantExternalBorderStrokeWidth) || 2
1848
+ };
1849
+ }
1850
+ },
1851
+ {
1852
+ key: "getDefaultThemeConfig",
1853
+ value: function getDefaultThemeConfig() {
1854
+ return {
1855
+ quadrant1Fill: V.quadrant1Fill,
1856
+ quadrant2Fill: V.quadrant2Fill,
1857
+ quadrant3Fill: V.quadrant3Fill,
1858
+ quadrant4Fill: V.quadrant4Fill,
1859
+ quadrant1TextFill: V.quadrant1TextFill,
1860
+ quadrant2TextFill: V.quadrant2TextFill,
1861
+ quadrant3TextFill: V.quadrant3TextFill,
1862
+ quadrant4TextFill: V.quadrant4TextFill,
1863
+ quadrantPointFill: V.quadrantPointFill,
1864
+ quadrantPointTextFill: V.quadrantPointTextFill,
1865
+ quadrantXAxisTextFill: V.quadrantXAxisTextFill,
1866
+ quadrantYAxisTextFill: V.quadrantYAxisTextFill,
1867
+ quadrantTitleFill: V.quadrantTitleFill,
1868
+ quadrantInternalBorderStrokeFill: V.quadrantInternalBorderStrokeFill,
1869
+ quadrantExternalBorderStrokeFill: V.quadrantExternalBorderStrokeFill
1870
+ };
1871
+ }
1872
+ },
1873
+ {
1874
+ key: "clear",
1875
+ value: function clear() {
1876
+ this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), L.info("clear called");
1877
+ }
1878
+ },
1879
+ {
1880
+ key: "setData",
1881
+ value: function setData(s) {
1882
+ this.data = _object_spread({}, this.data, s);
1883
+ }
1884
+ },
1885
+ {
1886
+ key: "addPoints",
1887
+ value: function addPoints(s) {
1888
+ this.data.points = _to_consumable_array(s).concat(_to_consumable_array(this.data.points));
1889
+ }
1890
+ },
1891
+ {
1892
+ key: "setConfig",
1893
+ value: function setConfig(s) {
1894
+ L.trace("setConfig called with: ", s), this.config = _object_spread({}, this.config, s);
1895
+ }
1896
+ },
1897
+ {
1898
+ key: "setThemeConfig",
1899
+ value: function setThemeConfig(s) {
1900
+ L.trace("setThemeConfig called with: ", s), this.themeConfig = _object_spread({}, this.themeConfig, s);
1901
+ }
1902
+ },
1903
+ {
1904
+ key: "calculateSpace",
1905
+ value: function calculateSpace(s, c, x, f) {
1906
+ var d = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, l = {
1907
+ top: s === "top" && c ? d : 0,
1908
+ bottom: s === "bottom" && c ? d : 0
1909
+ }, g = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, i = {
1910
+ left: this.config.yAxisPosition === "left" && x ? g : 0,
1911
+ right: this.config.yAxisPosition === "right" && x ? g : 0
1912
+ }, q = this.config.titleFontSize + this.config.titlePadding * 2, b = {
1913
+ top: f ? q : 0
1914
+ }, D = this.config.quadrantPadding + i.left, w = this.config.quadrantPadding + l.top + b.top, I = this.config.chartWidth - this.config.quadrantPadding * 2 - i.left - i.right, B = this.config.chartHeight - this.config.quadrantPadding * 2 - l.top - l.bottom - b.top, p = I / 2, H = B / 2;
1915
+ return {
1916
+ xAxisSpace: l,
1917
+ yAxisSpace: i,
1918
+ titleSpace: b,
1919
+ quadrantSpace: {
1920
+ quadrantLeft: D,
1921
+ quadrantTop: w,
1922
+ quadrantWidth: I,
1923
+ quadrantHalfWidth: p,
1924
+ quadrantHeight: B,
1925
+ quadrantHalfHeight: H
1926
+ }
1927
+ };
1928
+ }
1929
+ },
1930
+ {
1931
+ key: "getAxisLabels",
1932
+ value: function getAxisLabels(s, c, x, f) {
1933
+ var d = f.quadrantSpace, l = f.titleSpace, g = d.quadrantHalfHeight, i = d.quadrantHeight, q = d.quadrantLeft, b = d.quadrantHalfWidth, D = d.quadrantTop, w = d.quadrantWidth, I = !!this.data.xAxisRightText, B = !!this.data.yAxisTopText, p = [];
1934
+ return this.data.xAxisLeftText && c && p.push({
1935
+ text: this.data.xAxisLeftText,
1936
+ fill: this.themeConfig.quadrantXAxisTextFill,
1937
+ x: q + (I ? b / 2 : 0),
1938
+ y: s === "top" ? this.config.xAxisLabelPadding + l.top : this.config.xAxisLabelPadding + D + i + this.config.quadrantPadding,
1939
+ fontSize: this.config.xAxisLabelFontSize,
1940
+ verticalPos: I ? "center" : "left",
1941
+ horizontalPos: "top",
1942
+ rotation: 0
1943
+ }), this.data.xAxisRightText && c && p.push({
1944
+ text: this.data.xAxisRightText,
1945
+ fill: this.themeConfig.quadrantXAxisTextFill,
1946
+ x: q + b + (I ? b / 2 : 0),
1947
+ y: s === "top" ? this.config.xAxisLabelPadding + l.top : this.config.xAxisLabelPadding + D + i + this.config.quadrantPadding,
1948
+ fontSize: this.config.xAxisLabelFontSize,
1949
+ verticalPos: I ? "center" : "left",
1950
+ horizontalPos: "top",
1951
+ rotation: 0
1952
+ }), this.data.yAxisBottomText && x && p.push({
1953
+ text: this.data.yAxisBottomText,
1954
+ fill: this.themeConfig.quadrantYAxisTextFill,
1955
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + q + w + this.config.quadrantPadding,
1956
+ y: D + i - (B ? g / 2 : 0),
1957
+ fontSize: this.config.yAxisLabelFontSize,
1958
+ verticalPos: B ? "center" : "left",
1959
+ horizontalPos: "top",
1960
+ rotation: -90
1961
+ }), this.data.yAxisTopText && x && p.push({
1962
+ text: this.data.yAxisTopText,
1963
+ fill: this.themeConfig.quadrantYAxisTextFill,
1964
+ x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + q + w + this.config.quadrantPadding,
1965
+ y: D + g - (B ? g / 2 : 0),
1966
+ fontSize: this.config.yAxisLabelFontSize,
1967
+ verticalPos: B ? "center" : "left",
1968
+ horizontalPos: "top",
1969
+ rotation: -90
1970
+ }), p;
1971
+ }
1972
+ },
1973
+ {
1974
+ key: "getQuadrants",
1975
+ value: function getQuadrants(s) {
1976
+ var c = s.quadrantSpace, x = c.quadrantHalfHeight, f = c.quadrantLeft, d = c.quadrantHalfWidth, l = c.quadrantTop, g = [
1977
+ {
1978
+ text: {
1979
+ text: this.data.quadrant1Text,
1980
+ fill: this.themeConfig.quadrant1TextFill,
1981
+ x: 0,
1982
+ y: 0,
1983
+ fontSize: this.config.quadrantLabelFontSize,
1984
+ verticalPos: "center",
1985
+ horizontalPos: "middle",
1986
+ rotation: 0
1987
+ },
1988
+ x: f + d,
1989
+ y: l,
1990
+ width: d,
1991
+ height: x,
1992
+ fill: this.themeConfig.quadrant1Fill
1993
+ },
1994
+ {
1995
+ text: {
1996
+ text: this.data.quadrant2Text,
1997
+ fill: this.themeConfig.quadrant2TextFill,
1998
+ x: 0,
1999
+ y: 0,
2000
+ fontSize: this.config.quadrantLabelFontSize,
2001
+ verticalPos: "center",
2002
+ horizontalPos: "middle",
2003
+ rotation: 0
2004
+ },
2005
+ x: f,
2006
+ y: l,
2007
+ width: d,
2008
+ height: x,
2009
+ fill: this.themeConfig.quadrant2Fill
2010
+ },
2011
+ {
2012
+ text: {
2013
+ text: this.data.quadrant3Text,
2014
+ fill: this.themeConfig.quadrant3TextFill,
2015
+ x: 0,
2016
+ y: 0,
2017
+ fontSize: this.config.quadrantLabelFontSize,
2018
+ verticalPos: "center",
2019
+ horizontalPos: "middle",
2020
+ rotation: 0
2021
+ },
2022
+ x: f,
2023
+ y: l + x,
2024
+ width: d,
2025
+ height: x,
2026
+ fill: this.themeConfig.quadrant3Fill
2027
+ },
2028
+ {
2029
+ text: {
2030
+ text: this.data.quadrant4Text,
2031
+ fill: this.themeConfig.quadrant4TextFill,
2032
+ x: 0,
2033
+ y: 0,
2034
+ fontSize: this.config.quadrantLabelFontSize,
2035
+ verticalPos: "center",
2036
+ horizontalPos: "middle",
2037
+ rotation: 0
2038
+ },
2039
+ x: f + d,
2040
+ y: l + x,
2041
+ width: d,
2042
+ height: x,
2043
+ fill: this.themeConfig.quadrant4Fill
2044
+ }
2045
+ ];
2046
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
2047
+ try {
2048
+ for(var _iterator = g[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2049
+ var i = _step.value;
2050
+ i.text.x = i.x + i.width / 2, this.data.points.length === 0 ? (i.text.y = i.y + i.height / 2, i.text.horizontalPos = "middle") : (i.text.y = i.y + this.config.quadrantTextTopPadding, i.text.horizontalPos = "top");
2051
+ }
2052
+ } catch (err) {
2053
+ _didIteratorError = true;
2054
+ _iteratorError = err;
2055
+ } finally{
2056
+ try {
2057
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
2058
+ _iterator.return();
2059
+ }
2060
+ } finally{
2061
+ if (_didIteratorError) {
2062
+ throw _iteratorError;
2063
+ }
2064
+ }
2065
+ }
2066
+ return g;
2067
+ }
2068
+ },
2069
+ {
2070
+ key: "getQuadrantPoints",
2071
+ value: function getQuadrantPoints(s) {
2072
+ var _this = this;
2073
+ var c = s.quadrantSpace, x = c.quadrantHeight, f = c.quadrantLeft, d = c.quadrantTop, l = c.quadrantWidth, g = Hn().domain([
2074
+ 0,
2075
+ 1
2076
+ ]).range([
2077
+ f,
2078
+ l + f
2079
+ ]), i = Hn().domain([
2080
+ 0,
2081
+ 1
2082
+ ]).range([
2083
+ x + d,
2084
+ d
2085
+ ]);
2086
+ return this.data.points.map(function(b) {
2087
+ return {
2088
+ x: g(b.x),
2089
+ y: i(b.y),
2090
+ fill: _this.themeConfig.quadrantPointFill,
2091
+ radius: _this.config.pointRadius,
2092
+ text: {
2093
+ text: b.text,
2094
+ fill: _this.themeConfig.quadrantPointTextFill,
2095
+ x: g(b.x),
2096
+ y: i(b.y) + _this.config.pointTextPadding,
2097
+ verticalPos: "center",
2098
+ horizontalPos: "top",
2099
+ fontSize: _this.config.pointLabelFontSize,
2100
+ rotation: 0
2101
+ }
2102
+ };
2103
+ });
2104
+ }
2105
+ },
2106
+ {
2107
+ key: "getBorders",
2108
+ value: function getBorders(s) {
2109
+ var c = this.config.quadrantExternalBorderStrokeWidth / 2, x = s.quadrantSpace, f = x.quadrantHalfHeight, d = x.quadrantHeight, l = x.quadrantLeft, g = x.quadrantHalfWidth, i = x.quadrantTop, q = x.quadrantWidth;
2110
+ return [
2111
+ // top border
2112
+ {
2113
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
2114
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
2115
+ x1: l - c,
2116
+ y1: i,
2117
+ x2: l + q + c,
2118
+ y2: i
2119
+ },
2120
+ // right border
2121
+ {
2122
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
2123
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
2124
+ x1: l + q,
2125
+ y1: i + c,
2126
+ x2: l + q,
2127
+ y2: i + d - c
2128
+ },
2129
+ // bottom border
2130
+ {
2131
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
2132
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
2133
+ x1: l - c,
2134
+ y1: i + d,
2135
+ x2: l + q + c,
2136
+ y2: i + d
2137
+ },
2138
+ // left border
2139
+ {
2140
+ strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
2141
+ strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
2142
+ x1: l,
2143
+ y1: i + c,
2144
+ x2: l,
2145
+ y2: i + d - c
2146
+ },
2147
+ // vertical inner border
2148
+ {
2149
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
2150
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
2151
+ x1: l + g,
2152
+ y1: i + c,
2153
+ x2: l + g,
2154
+ y2: i + d - c
2155
+ },
2156
+ // horizontal inner border
2157
+ {
2158
+ strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
2159
+ strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
2160
+ x1: l + c,
2161
+ y1: i + f,
2162
+ x2: l + q - c,
2163
+ y2: i + f
2164
+ }
2165
+ ];
2166
+ }
2167
+ },
2168
+ {
2169
+ key: "getTitle",
2170
+ value: function getTitle(s) {
2171
+ if (s) return {
2172
+ text: this.data.titleText,
2173
+ fill: this.themeConfig.quadrantTitleFill,
2174
+ fontSize: this.config.titleFontSize,
2175
+ horizontalPos: "top",
2176
+ verticalPos: "center",
2177
+ rotation: 0,
2178
+ y: this.config.titlePadding,
2179
+ x: this.config.chartWidth / 2
2180
+ };
2181
+ }
2182
+ },
2183
+ {
2184
+ key: "build",
2185
+ value: function build() {
2186
+ var s = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), c = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), x = this.config.showTitle && !!this.data.titleText, f = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, d = this.calculateSpace(f, s, c, x);
2187
+ return {
2188
+ points: this.getQuadrantPoints(d),
2189
+ quadrants: this.getQuadrants(d),
2190
+ axisLabels: this.getAxisLabels(f, s, c, d),
2191
+ borderLines: this.getBorders(d),
2192
+ title: this.getTitle(x)
2193
+ };
2194
+ }
2195
+ }
2196
+ ]);
2197
+ return Vt;
2198
+ }();
2199
+ var Wt = Vn();
2200
+ function j(e) {
2201
+ return ai(e.trim(), Wt);
2202
+ }
2203
+ var R = new Vt();
2204
+ function Nt(e) {
2205
+ R.setData({
2206
+ quadrant1Text: j(e.text)
2207
+ });
2208
+ }
2209
+ function Ut(e) {
2210
+ R.setData({
2211
+ quadrant2Text: j(e.text)
2212
+ });
2213
+ }
2214
+ function Qt(e) {
2215
+ R.setData({
2216
+ quadrant3Text: j(e.text)
2217
+ });
2218
+ }
2219
+ function Ht(e) {
2220
+ R.setData({
2221
+ quadrant4Text: j(e.text)
2222
+ });
2223
+ }
2224
+ function Mt(e) {
2225
+ R.setData({
2226
+ xAxisLeftText: j(e.text)
2227
+ });
2228
+ }
2229
+ function Xt(e) {
2230
+ R.setData({
2231
+ xAxisRightText: j(e.text)
2232
+ });
2233
+ }
2234
+ function Ot(e) {
2235
+ R.setData({
2236
+ yAxisTopText: j(e.text)
2237
+ });
2238
+ }
2239
+ function Yt(e) {
2240
+ R.setData({
2241
+ yAxisBottomText: j(e.text)
2242
+ });
2243
+ }
2244
+ function jt(e, s, c) {
2245
+ R.addPoints([
2246
+ {
2247
+ x: s,
2248
+ y: c,
2249
+ text: j(e.text)
2250
+ }
2251
+ ]);
2252
+ }
2253
+ function Gt(e) {
2254
+ R.setConfig({
2255
+ chartWidth: e
2256
+ });
2257
+ }
2258
+ function $t(e) {
2259
+ R.setConfig({
2260
+ chartHeight: e
2261
+ });
2262
+ }
2263
+ function Kt() {
2264
+ var e = Vn(), s = e.themeVariables, c = e.quadrantChart;
2265
+ return c && R.setConfig(c), R.setThemeConfig({
2266
+ quadrant1Fill: s.quadrant1Fill,
2267
+ quadrant2Fill: s.quadrant2Fill,
2268
+ quadrant3Fill: s.quadrant3Fill,
2269
+ quadrant4Fill: s.quadrant4Fill,
2270
+ quadrant1TextFill: s.quadrant1TextFill,
2271
+ quadrant2TextFill: s.quadrant2TextFill,
2272
+ quadrant3TextFill: s.quadrant3TextFill,
2273
+ quadrant4TextFill: s.quadrant4TextFill,
2274
+ quadrantPointFill: s.quadrantPointFill,
2275
+ quadrantPointTextFill: s.quadrantPointTextFill,
2276
+ quadrantXAxisTextFill: s.quadrantXAxisTextFill,
2277
+ quadrantYAxisTextFill: s.quadrantYAxisTextFill,
2278
+ quadrantExternalBorderStrokeFill: s.quadrantExternalBorderStrokeFill,
2279
+ quadrantInternalBorderStrokeFill: s.quadrantInternalBorderStrokeFill,
2280
+ quadrantTitleFill: s.quadrantTitleFill
2281
+ }), R.setData({
2282
+ titleText: O_()
2283
+ }), R.build();
2284
+ }
2285
+ var Zt = function Zt() {
2286
+ R.clear(), B_();
2287
+ }, Jt = {
2288
+ setWidth: Gt,
2289
+ setHeight: $t,
2290
+ setQuadrant1Text: Nt,
2291
+ setQuadrant2Text: Ut,
2292
+ setQuadrant3Text: Qt,
2293
+ setQuadrant4Text: Ht,
2294
+ setXAxisLeftText: Mt,
2295
+ setXAxisRightText: Xt,
2296
+ setYAxisTopText: Ot,
2297
+ setYAxisBottomText: Yt,
2298
+ addPoint: jt,
2299
+ getQuadrantData: Kt,
2300
+ clear: Zt,
2301
+ setAccTitle: F_,
2302
+ getAccTitle: A_,
2303
+ setDiagramTitle: M_,
2304
+ getDiagramTitle: O_,
2305
+ getAccDescription: E_,
2306
+ setAccDescription: L_
2307
+ }, te = function(e, s, c, x) {
2308
+ var f = function f(t) {
2309
+ return t === "top" ? "hanging" : "middle";
2310
+ };
2311
+ var d = function d(t) {
2312
+ return t === "left" ? "start" : "middle";
2313
+ };
2314
+ var l = function l(t) {
2315
+ return "translate(".concat(t.x, ", ").concat(t.y, ") rotate(").concat(t.rotation || 0, ")");
2316
+ };
2317
+ var T, m, A;
2318
+ var g = Vn();
2319
+ L.debug("Rendering quadrant chart\n" + e);
2320
+ var i = g.securityLevel;
2321
+ var q;
2322
+ i === "sandbox" && (q = bt("#i" + s));
2323
+ var D = (i === "sandbox" ? bt(q.nodes()[0].contentDocument.body) : bt("body")).select('[id="'.concat(s, '"]')), w = D.append("g").attr("class", "main"), I = ((T = g.quadrantChart) == null ? void 0 : T.chartWidth) || 500, B = ((m = g.quadrantChart) == null ? void 0 : m.chartHeight) || 500;
2324
+ Ol(D, B, I, ((A = g.quadrantChart) == null ? void 0 : A.useMaxWidth) || !0), D.attr("viewBox", "0 0 " + I + " " + B), x.db.setHeight(B), x.db.setWidth(I);
2325
+ var p = x.db.getQuadrantData(), H = w.append("g").attr("class", "quadrants"), G = w.append("g").attr("class", "border"), K = w.append("g").attr("class", "data-points"), at = w.append("g").attr("class", "labels"), nt = w.append("g").attr("class", "title");
2326
+ p.title && nt.append("text").attr("x", 0).attr("y", 0).attr("fill", p.title.fill).attr("font-size", p.title.fontSize).attr("dominant-baseline", f(p.title.horizontalPos)).attr("text-anchor", d(p.title.verticalPos)).attr("transform", l(p.title)).text(p.title.text), p.borderLines && G.selectAll("line").data(p.borderLines).enter().append("line").attr("x1", function(t) {
2327
+ return t.x1;
2328
+ }).attr("y1", function(t) {
2329
+ return t.y1;
2330
+ }).attr("x2", function(t) {
2331
+ return t.x2;
2332
+ }).attr("y2", function(t) {
2333
+ return t.y2;
2334
+ }).style("stroke", function(t) {
2335
+ return t.strokeFill;
2336
+ }).style("stroke-width", function(t) {
2337
+ return t.strokeWidth;
2338
+ });
2339
+ var et = H.selectAll("g.quadrant").data(p.quadrants).enter().append("g").attr("class", "quadrant");
2340
+ et.append("rect").attr("x", function(t) {
2341
+ return t.x;
2342
+ }).attr("y", function(t) {
2343
+ return t.y;
2344
+ }).attr("width", function(t) {
2345
+ return t.width;
2346
+ }).attr("height", function(t) {
2347
+ return t.height;
2348
+ }).attr("fill", function(t) {
2349
+ return t.fill;
2350
+ }), et.append("text").attr("x", 0).attr("y", 0).attr("fill", function(t) {
2351
+ return t.text.fill;
2352
+ }).attr("font-size", function(t) {
2353
+ return t.text.fontSize;
2354
+ }).attr("dominant-baseline", function(t) {
2355
+ return f(t.text.horizontalPos);
2356
+ }).attr("text-anchor", function(t) {
2357
+ return d(t.text.verticalPos);
2358
+ }).attr("transform", function(t) {
2359
+ return l(t.text);
2360
+ }).text(function(t) {
2361
+ return t.text.text;
2362
+ }), at.selectAll("g.label").data(p.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text(function(t) {
2363
+ return t.text;
2364
+ }).attr("fill", function(t) {
2365
+ return t.fill;
2366
+ }).attr("font-size", function(t) {
2367
+ return t.fontSize;
2368
+ }).attr("dominant-baseline", function(t) {
2369
+ return f(t.horizontalPos);
2370
+ }).attr("text-anchor", function(t) {
2371
+ return d(t.verticalPos);
2372
+ }).attr("transform", function(t) {
2373
+ return l(t);
2374
+ });
2375
+ var N = K.selectAll("g.data-point").data(p.points).enter().append("g").attr("class", "data-point");
2376
+ N.append("circle").attr("cx", function(t) {
2377
+ return t.x;
2378
+ }).attr("cy", function(t) {
2379
+ return t.y;
2380
+ }).attr("r", function(t) {
2381
+ return t.radius;
2382
+ }).attr("fill", function(t) {
2383
+ return t.fill;
2384
+ }), N.append("text").attr("x", 0).attr("y", 0).text(function(t) {
2385
+ return t.text.text;
2386
+ }).attr("fill", function(t) {
2387
+ return t.text.fill;
2388
+ }).attr("font-size", function(t) {
2389
+ return t.text.fontSize;
2390
+ }).attr("dominant-baseline", function(t) {
2391
+ return f(t.text.horizontalPos);
2392
+ }).attr("text-anchor", function(t) {
2393
+ return d(t.text.verticalPos);
2394
+ }).attr("transform", function(t) {
2395
+ return l(t.text);
2396
+ });
2397
+ }, ee = {
2398
+ draw: te
2399
+ }, se = {
2400
+ parser: Rt,
2401
+ db: Jt,
2402
+ renderer: ee,
2403
+ styles: function() {
2404
+ return "";
2405
+ }
2406
+ };
2407
+
2408
+ export { se as diagram };