@markuplint/ml-core 3.13.0 → 4.0.0-alpha.2

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 (95) hide show
  1. package/lib/configs.browser.js +1 -5
  2. package/lib/configs.js +33 -30
  3. package/lib/convert-ruleset.d.ts +1 -1
  4. package/lib/convert-ruleset.js +3 -8
  5. package/lib/debug.js +9 -14
  6. package/lib/index.d.ts +12 -12
  7. package/lib/index.js +13 -29
  8. package/lib/ml-core.d.ts +2 -2
  9. package/lib/ml-core.js +60 -66
  10. package/lib/ml-dom/helper/accname.d.ts +1 -1
  11. package/lib/ml-dom/helper/accname.js +9 -16
  12. package/lib/ml-dom/helper/create-node.d.ts +2 -2
  13. package/lib/ml-dom/helper/create-node.js +11 -15
  14. package/lib/ml-dom/helper/debug.d.ts +1 -1
  15. package/lib/ml-dom/helper/debug.js +2 -7
  16. package/lib/ml-dom/helper/getIndent.d.ts +2 -2
  17. package/lib/ml-dom/helper/getIndent.js +15 -19
  18. package/lib/ml-dom/helper/walkers.d.ts +1 -1
  19. package/lib/ml-dom/helper/walkers.js +2 -7
  20. package/lib/ml-dom/index.d.ts +9 -9
  21. package/lib/ml-dom/index.js +1 -5
  22. package/lib/ml-dom/manipulations/child-node-methods.d.ts +2 -2
  23. package/lib/ml-dom/manipulations/child-node-methods.js +13 -25
  24. package/lib/ml-dom/manipulations/get-children.d.ts +2 -2
  25. package/lib/ml-dom/manipulations/get-children.js +3 -7
  26. package/lib/ml-dom/node/attr.d.ts +5 -5
  27. package/lib/ml-dom/node/attr.js +28 -33
  28. package/lib/ml-dom/node/block.d.ts +4 -4
  29. package/lib/ml-dom/node/block.js +7 -11
  30. package/lib/ml-dom/node/character-data.d.ts +2 -2
  31. package/lib/ml-dom/node/character-data.js +11 -16
  32. package/lib/ml-dom/node/child-node.d.ts +6 -6
  33. package/lib/ml-dom/node/child-node.js +1 -5
  34. package/lib/ml-dom/node/comment.d.ts +2 -2
  35. package/lib/ml-dom/node/comment.js +2 -6
  36. package/lib/ml-dom/node/document-fragment.d.ts +2 -2
  37. package/lib/ml-dom/node/document-fragment.js +4 -9
  38. package/lib/ml-dom/node/document-type.d.ts +4 -4
  39. package/lib/ml-dom/node/document-type.js +7 -11
  40. package/lib/ml-dom/node/document.d.ts +13 -13
  41. package/lib/ml-dom/node/document.js +234 -242
  42. package/lib/ml-dom/node/dom-token-list.d.ts +1 -1
  43. package/lib/ml-dom/node/dom-token-list.js +25 -31
  44. package/lib/ml-dom/node/element.d.ts +8 -8
  45. package/lib/ml-dom/node/element.js +283 -301
  46. package/lib/ml-dom/node/named-node-map.d.ts +1 -1
  47. package/lib/ml-dom/node/named-node-map.js +10 -18
  48. package/lib/ml-dom/node/node-list.d.ts +2 -2
  49. package/lib/ml-dom/node/node-list.js +6 -14
  50. package/lib/ml-dom/node/node-store.d.ts +2 -2
  51. package/lib/ml-dom/node/node-store.js +9 -12
  52. package/lib/ml-dom/node/node.d.ts +8 -8
  53. package/lib/ml-dom/node/node.js +58 -66
  54. package/lib/ml-dom/node/parent-node.d.ts +2 -2
  55. package/lib/ml-dom/node/parent-node.js +22 -29
  56. package/lib/ml-dom/node/rule-mapper.d.ts +2 -2
  57. package/lib/ml-dom/node/rule-mapper.js +11 -16
  58. package/lib/ml-dom/node/text.d.ts +2 -2
  59. package/lib/ml-dom/node/text.js +6 -11
  60. package/lib/ml-dom/node/types.d.ts +10 -10
  61. package/lib/ml-dom/node/types.js +1 -2
  62. package/lib/ml-dom/node/unexpected-call-error.js +1 -4
  63. package/lib/ml-dom/token/token.js +19 -23
  64. package/lib/ml-rule/create-rule.d.ts +1 -1
  65. package/lib/ml-rule/create-rule.js +1 -5
  66. package/lib/ml-rule/create-test-rule.d.ts +2 -2
  67. package/lib/ml-rule/create-test-rule.js +3 -7
  68. package/lib/ml-rule/index.d.ts +3 -3
  69. package/lib/ml-rule/index.js +3 -6
  70. package/lib/ml-rule/ml-rule-context.d.ts +2 -2
  71. package/lib/ml-rule/ml-rule-context.js +7 -11
  72. package/lib/ml-rule/ml-rule.d.ts +3 -3
  73. package/lib/ml-rule/ml-rule.js +23 -30
  74. package/lib/ml-rule/types.d.ts +2 -2
  75. package/lib/ml-rule/types.js +1 -2
  76. package/lib/plugin/index.d.ts +2 -2
  77. package/lib/plugin/index.js +2 -5
  78. package/lib/plugin/plugin.d.ts +1 -1
  79. package/lib/plugin/plugin.js +1 -5
  80. package/lib/plugin/types.d.ts +1 -1
  81. package/lib/plugin/types.js +1 -2
  82. package/lib/ruleset/index.js +4 -8
  83. package/lib/test/index.d.ts +4 -4
  84. package/lib/test/index.js +13 -23
  85. package/lib/types.d.ts +2 -2
  86. package/lib/types.js +1 -2
  87. package/lib/utils/get-location-from-chars.js +1 -5
  88. package/lib/utils/index.d.ts +1 -1
  89. package/lib/utils/index.js +1 -5
  90. package/lib/utils/string-splice.js +1 -5
  91. package/package.json +19 -14
  92. package/test/ml-dom/helper/accname.spec.js +0 -85
  93. package/test/ml-dom/helper/create-node.spec.js +0 -18
  94. package/test/ml-dom/index.spec.js +0 -680
  95. package/test/ml-dom/ml-rule/create-rule.spec.js +0 -108
@@ -1,24 +1,21 @@
1
- "use strict";
2
1
  var _MLDocument_filename, _MLDocument_tokenList;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.MLDocument = void 0;
5
- const tslib_1 = require("tslib");
6
- const ml_config_1 = require("@markuplint/ml-config");
7
- const ml_spec_1 = require("@markuplint/ml-spec");
8
- const parser_utils_1 = require("@markuplint/parser-utils");
9
- const selector_1 = require("@markuplint/selector");
10
- const debug_1 = require("../../debug");
11
- const create_node_1 = require("../helper/create-node");
12
- const debug_2 = require("../helper/debug");
13
- const walkers_1 = require("../helper/walkers");
14
- const node_list_1 = require("./node-list");
15
- const parent_node_1 = require("./parent-node");
16
- const rule_mapper_1 = require("./rule-mapper");
17
- const unexpected_call_error_1 = tslib_1.__importDefault(require("./unexpected-call-error"));
18
- const log = debug_1.log.extend('ml-dom');
2
+ import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
3
+ import { exchangeValueOnRule, mergeRule } from '@markuplint/ml-config';
4
+ import { schemaToSpec } from '@markuplint/ml-spec';
5
+ import { ConfigParserError } from '@markuplint/parser-utils';
6
+ import { InvalidSelectorError, matchSelector } from '@markuplint/selector';
7
+ import { log as coreLog } from '../../debug.js';
8
+ import { createNode } from '../helper/create-node.js';
9
+ import { nodeListToDebugMaps } from '../helper/debug.js';
10
+ import { sequentialWalker, syncWalk } from '../helper/walkers.js';
11
+ import { nodeListToHTMLCollection } from './node-list.js';
12
+ import { MLParentNode } from './parent-node.js';
13
+ import { RuleMapper } from './rule-mapper.js';
14
+ import UnexpectedCallError from './unexpected-call-error.js';
15
+ const log = coreLog.extend('ml-dom');
19
16
  const docLog = log.extend('document');
20
17
  const ruleLog = docLog.extend('rule');
21
- class MLDocument extends parent_node_1.MLParentNode {
18
+ export class MLDocument extends MLParentNode {
22
19
  /**
23
20
  *
24
21
  * @param ast node list of markuplint AST
@@ -27,7 +24,6 @@ class MLDocument extends parent_node_1.MLParentNode {
27
24
  constructor(
28
25
  // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
29
26
  ast, ruleset, schemas, options) {
30
- var _a, _b;
31
27
  // @ts-ignore
32
28
  super(ast, null);
33
29
  /**
@@ -40,26 +36,26 @@ class MLDocument extends parent_node_1.MLParentNode {
40
36
  _MLDocument_filename.set(this, void 0);
41
37
  _MLDocument_tokenList.set(this, null);
42
38
  this.isFragment = ast.isFragment;
43
- this.specs = (0, ml_spec_1.schemaToSpec)(schemas);
44
- this.booleanish = (_a = options === null || options === void 0 ? void 0 : options.booleanish) !== null && _a !== void 0 ? _a : false;
45
- this.endTag = (_b = options === null || options === void 0 ? void 0 : options.endTag) !== null && _b !== void 0 ? _b : 'omittable';
46
- tslib_1.__classPrivateFieldSet(this, _MLDocument_filename, options === null || options === void 0 ? void 0 : options.filename, "f");
39
+ this.specs = schemaToSpec(schemas);
40
+ this.booleanish = options?.booleanish ?? false;
41
+ this.endTag = options?.endTag ?? 'omittable';
42
+ __classPrivateFieldSet(this, _MLDocument_filename, options?.filename, "f");
47
43
  // console.log(ast.nodeList.map((n, i) => `${i}: ${n.uuid} "${n.raw.trim()}"(${n.type})`));
48
44
  this.nodeList = Object.freeze(ast.nodeList
49
45
  .map(astNode => {
50
46
  if (astNode.type === 'endtag') {
51
47
  return;
52
48
  }
53
- return (0, create_node_1.createNode)(astNode, this);
49
+ return createNode(astNode, this);
54
50
  })
55
51
  .filter((n) => !!n));
56
- this._pretending(options === null || options === void 0 ? void 0 : options.pretenders);
52
+ this._pretending(options?.pretenders);
57
53
  try {
58
54
  this._ruleMapping(ruleset);
59
55
  }
60
56
  catch (error) {
61
- if (error instanceof selector_1.InvalidSelectorError) {
62
- throw new parser_utils_1.ConfigParserError(error.message, {
57
+ if (error instanceof InvalidSelectorError) {
58
+ throw new ConfigParserError(error.message, {
63
59
  filePath: 'the configuration',
64
60
  });
65
61
  }
@@ -73,7 +69,7 @@ class MLDocument extends parent_node_1.MLParentNode {
73
69
  * @implements DOM API: `Document`
74
70
  */
75
71
  get URL() {
76
- throw new unexpected_call_error_1.default('Not supported "URL" property');
72
+ throw new UnexpectedCallError('Not supported "URL" property');
77
73
  }
78
74
  /**
79
75
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -82,7 +78,7 @@ class MLDocument extends parent_node_1.MLParentNode {
82
78
  * @implements DOM API: `Document`
83
79
  */
84
80
  get activeElement() {
85
- throw new unexpected_call_error_1.default('Not supported "activeElement" property');
81
+ throw new UnexpectedCallError('Not supported "activeElement" property');
86
82
  }
87
83
  /**
88
84
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -91,7 +87,7 @@ class MLDocument extends parent_node_1.MLParentNode {
91
87
  * @implements DOM API: `Document`
92
88
  */
93
89
  get adoptedStyleSheets() {
94
- throw new unexpected_call_error_1.default('Not supported "adoptedStyleSheets" property');
90
+ throw new UnexpectedCallError('Not supported "adoptedStyleSheets" property');
95
91
  }
96
92
  /**
97
93
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -101,7 +97,7 @@ class MLDocument extends parent_node_1.MLParentNode {
101
97
  * @implements DOM API: `Document`
102
98
  */
103
99
  get alinkColor() {
104
- throw new unexpected_call_error_1.default('Not supported "alinkColor" property');
100
+ throw new UnexpectedCallError('Not supported "alinkColor" property');
105
101
  }
106
102
  /**
107
103
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -111,7 +107,7 @@ class MLDocument extends parent_node_1.MLParentNode {
111
107
  * @implements DOM API: `Document`
112
108
  */
113
109
  get all() {
114
- throw new unexpected_call_error_1.default('Not supported "all" property');
110
+ throw new UnexpectedCallError('Not supported "all" property');
115
111
  }
116
112
  /**
117
113
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -121,7 +117,7 @@ class MLDocument extends parent_node_1.MLParentNode {
121
117
  * @implements DOM API: `Document`
122
118
  */
123
119
  get anchors() {
124
- throw new unexpected_call_error_1.default('Not supported "anchors" property');
120
+ throw new UnexpectedCallError('Not supported "anchors" property');
125
121
  }
126
122
  /**
127
123
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -131,7 +127,7 @@ class MLDocument extends parent_node_1.MLParentNode {
131
127
  * @implements DOM API: `Document`
132
128
  */
133
129
  get applets() {
134
- throw new unexpected_call_error_1.default('Not supported "applets" property');
130
+ throw new UnexpectedCallError('Not supported "applets" property');
135
131
  }
136
132
  /**
137
133
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -141,7 +137,7 @@ class MLDocument extends parent_node_1.MLParentNode {
141
137
  * @implements DOM API: `Document`
142
138
  */
143
139
  get bgColor() {
144
- throw new unexpected_call_error_1.default('Not supported "bgColor" property');
140
+ throw new UnexpectedCallError('Not supported "bgColor" property');
145
141
  }
146
142
  /**
147
143
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -150,7 +146,7 @@ class MLDocument extends parent_node_1.MLParentNode {
150
146
  * @implements DOM API: `Document`
151
147
  */
152
148
  get body() {
153
- throw new unexpected_call_error_1.default('Not supported "body" property');
149
+ throw new UnexpectedCallError('Not supported "body" property');
154
150
  }
155
151
  /**
156
152
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -159,7 +155,7 @@ class MLDocument extends parent_node_1.MLParentNode {
159
155
  * @implements DOM API: `Document`
160
156
  */
161
157
  get characterSet() {
162
- throw new unexpected_call_error_1.default('Not supported "characterSet" property');
158
+ throw new UnexpectedCallError('Not supported "characterSet" property');
163
159
  }
164
160
  /**
165
161
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -169,7 +165,7 @@ class MLDocument extends parent_node_1.MLParentNode {
169
165
  * @implements DOM API: `Document`
170
166
  */
171
167
  get charset() {
172
- throw new unexpected_call_error_1.default('Not supported "charset" property');
168
+ throw new UnexpectedCallError('Not supported "charset" property');
173
169
  }
174
170
  /**
175
171
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -178,7 +174,7 @@ class MLDocument extends parent_node_1.MLParentNode {
178
174
  * @implements DOM API: `Document`
179
175
  */
180
176
  get compatMode() {
181
- throw new unexpected_call_error_1.default('Not supported "compatMode" property');
177
+ throw new UnexpectedCallError('Not supported "compatMode" property');
182
178
  }
183
179
  /**
184
180
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -187,7 +183,7 @@ class MLDocument extends parent_node_1.MLParentNode {
187
183
  * @implements DOM API: `Document`
188
184
  */
189
185
  get contentType() {
190
- throw new unexpected_call_error_1.default('Not supported "contentType" property');
186
+ throw new UnexpectedCallError('Not supported "contentType" property');
191
187
  }
192
188
  /**
193
189
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -196,7 +192,7 @@ class MLDocument extends parent_node_1.MLParentNode {
196
192
  * @implements DOM API: `Document`
197
193
  */
198
194
  get cookie() {
199
- throw new unexpected_call_error_1.default('Not supported "cookie" property');
195
+ throw new UnexpectedCallError('Not supported "cookie" property');
200
196
  }
201
197
  /**
202
198
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -205,7 +201,7 @@ class MLDocument extends parent_node_1.MLParentNode {
205
201
  * @implements DOM API: `Document`
206
202
  */
207
203
  get currentScript() {
208
- throw new unexpected_call_error_1.default('Not supported "currentScript" property');
204
+ throw new UnexpectedCallError('Not supported "currentScript" property');
209
205
  }
210
206
  /**
211
207
  * Window object for calling the `getComputedStyle` and the `getPropertyValue` that
@@ -235,7 +231,7 @@ class MLDocument extends parent_node_1.MLParentNode {
235
231
  * @implements DOM API: `Document`
236
232
  */
237
233
  get designMode() {
238
- throw new unexpected_call_error_1.default('Not supported "designMode" property');
234
+ throw new UnexpectedCallError('Not supported "designMode" property');
239
235
  }
240
236
  /**
241
237
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -244,7 +240,7 @@ class MLDocument extends parent_node_1.MLParentNode {
244
240
  * @implements DOM API: `Document`
245
241
  */
246
242
  get dir() {
247
- throw new unexpected_call_error_1.default('Not supported "dir" property');
243
+ throw new UnexpectedCallError('Not supported "dir" property');
248
244
  }
249
245
  /**
250
246
  * @implements DOM API: `Document`
@@ -264,7 +260,7 @@ class MLDocument extends parent_node_1.MLParentNode {
264
260
  * @implements DOM API: `Document`
265
261
  */
266
262
  get documentElement() {
267
- throw new unexpected_call_error_1.default('Not supported "documentElement" property');
263
+ throw new UnexpectedCallError('Not supported "documentElement" property');
268
264
  }
269
265
  /**
270
266
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -273,7 +269,7 @@ class MLDocument extends parent_node_1.MLParentNode {
273
269
  * @implements DOM API: `Document`
274
270
  */
275
271
  get documentURI() {
276
- throw new unexpected_call_error_1.default('Not supported "documentURI" property');
272
+ throw new UnexpectedCallError('Not supported "documentURI" property');
277
273
  }
278
274
  /**
279
275
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -282,7 +278,7 @@ class MLDocument extends parent_node_1.MLParentNode {
282
278
  * @implements DOM API: `Document`
283
279
  */
284
280
  get domain() {
285
- throw new unexpected_call_error_1.default('Not supported "domain" property');
281
+ throw new UnexpectedCallError('Not supported "domain" property');
286
282
  }
287
283
  /**
288
284
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -291,7 +287,7 @@ class MLDocument extends parent_node_1.MLParentNode {
291
287
  * @implements DOM API: `Document`
292
288
  */
293
289
  get embeds() {
294
- throw new unexpected_call_error_1.default('Not supported "embeds" property');
290
+ throw new UnexpectedCallError('Not supported "embeds" property');
295
291
  }
296
292
  /**
297
293
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -301,7 +297,7 @@ class MLDocument extends parent_node_1.MLParentNode {
301
297
  * @implements DOM API: `Document`
302
298
  */
303
299
  get fgColor() {
304
- throw new unexpected_call_error_1.default('Not supported "fgColor" property');
300
+ throw new UnexpectedCallError('Not supported "fgColor" property');
305
301
  }
306
302
  /**
307
303
  * It could be used in rule, make sure it is immutable
@@ -309,7 +305,7 @@ class MLDocument extends parent_node_1.MLParentNode {
309
305
  * @implements `@markuplint/ml-core` API: `MLDOMDocument`
310
306
  */
311
307
  get filename() {
312
- return tslib_1.__classPrivateFieldGet(this, _MLDocument_filename, "f");
308
+ return __classPrivateFieldGet(this, _MLDocument_filename, "f");
313
309
  }
314
310
  /**
315
311
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -318,7 +314,7 @@ class MLDocument extends parent_node_1.MLParentNode {
318
314
  * @implements DOM API: `Document`
319
315
  */
320
316
  get fonts() {
321
- throw new unexpected_call_error_1.default('Not supported "fonts" property');
317
+ throw new UnexpectedCallError('Not supported "fonts" property');
322
318
  }
323
319
  /**
324
320
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -327,7 +323,7 @@ class MLDocument extends parent_node_1.MLParentNode {
327
323
  * @implements DOM API: `Document`
328
324
  */
329
325
  get forms() {
330
- throw new unexpected_call_error_1.default('Not supported "forms" property');
326
+ throw new UnexpectedCallError('Not supported "forms" property');
331
327
  }
332
328
  /**
333
329
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -337,7 +333,7 @@ class MLDocument extends parent_node_1.MLParentNode {
337
333
  * @implements DOM API: `Document`
338
334
  */
339
335
  get fullscreen() {
340
- throw new unexpected_call_error_1.default('Not supported "fullscreen" property');
336
+ throw new UnexpectedCallError('Not supported "fullscreen" property');
341
337
  }
342
338
  /**
343
339
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -346,7 +342,7 @@ class MLDocument extends parent_node_1.MLParentNode {
346
342
  * @implements DOM API: `Document`
347
343
  */
348
344
  get fullscreenElement() {
349
- throw new unexpected_call_error_1.default('Not supported "fullscreenElement" property');
345
+ throw new UnexpectedCallError('Not supported "fullscreenElement" property');
350
346
  }
351
347
  /**
352
348
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -355,7 +351,7 @@ class MLDocument extends parent_node_1.MLParentNode {
355
351
  * @implements DOM API: `Document`
356
352
  */
357
353
  get fullscreenEnabled() {
358
- throw new unexpected_call_error_1.default('Not supported "FullscreenEnabledURL" property');
354
+ throw new UnexpectedCallError('Not supported "FullscreenEnabledURL" property');
359
355
  }
360
356
  /**
361
357
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -364,7 +360,7 @@ class MLDocument extends parent_node_1.MLParentNode {
364
360
  * @implements DOM API: `Document`
365
361
  */
366
362
  get head() {
367
- throw new unexpected_call_error_1.default('Not supported "head" property');
363
+ throw new UnexpectedCallError('Not supported "head" property');
368
364
  }
369
365
  /**
370
366
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -373,7 +369,7 @@ class MLDocument extends parent_node_1.MLParentNode {
373
369
  * @implements DOM API: `Document`
374
370
  */
375
371
  get hidden() {
376
- throw new unexpected_call_error_1.default('Not supported "hidden" property');
372
+ throw new UnexpectedCallError('Not supported "hidden" property');
377
373
  }
378
374
  /**
379
375
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -382,7 +378,7 @@ class MLDocument extends parent_node_1.MLParentNode {
382
378
  * @implements DOM API: `Document`
383
379
  */
384
380
  get images() {
385
- throw new unexpected_call_error_1.default('Not supported "images" property');
381
+ throw new UnexpectedCallError('Not supported "images" property');
386
382
  }
387
383
  /**
388
384
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -391,7 +387,7 @@ class MLDocument extends parent_node_1.MLParentNode {
391
387
  * @implements DOM API: `Document`
392
388
  */
393
389
  get implementation() {
394
- throw new unexpected_call_error_1.default('Not supported "implementation" property');
390
+ throw new UnexpectedCallError('Not supported "implementation" property');
395
391
  }
396
392
  /**
397
393
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -401,7 +397,7 @@ class MLDocument extends parent_node_1.MLParentNode {
401
397
  * @implements DOM API: `Document`
402
398
  */
403
399
  get inputEncoding() {
404
- throw new unexpected_call_error_1.default('Not supported "inputEncoding" property');
400
+ throw new UnexpectedCallError('Not supported "inputEncoding" property');
405
401
  }
406
402
  /**
407
403
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -410,7 +406,7 @@ class MLDocument extends parent_node_1.MLParentNode {
410
406
  * @implements DOM API: `Document`
411
407
  */
412
408
  get lastModified() {
413
- throw new unexpected_call_error_1.default('Not supported "lastModified" property');
409
+ throw new UnexpectedCallError('Not supported "lastModified" property');
414
410
  }
415
411
  /**
416
412
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -420,7 +416,7 @@ class MLDocument extends parent_node_1.MLParentNode {
420
416
  * @implements DOM API: `Document`
421
417
  */
422
418
  get linkColor() {
423
- throw new unexpected_call_error_1.default('Not supported "linkColor" property');
419
+ throw new UnexpectedCallError('Not supported "linkColor" property');
424
420
  }
425
421
  /**
426
422
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -429,7 +425,7 @@ class MLDocument extends parent_node_1.MLParentNode {
429
425
  * @implements DOM API: `Document`
430
426
  */
431
427
  get links() {
432
- throw new unexpected_call_error_1.default('Not supported "links" property');
428
+ throw new UnexpectedCallError('Not supported "links" property');
433
429
  }
434
430
  /**
435
431
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -438,7 +434,7 @@ class MLDocument extends parent_node_1.MLParentNode {
438
434
  * @implements DOM API: `Document`
439
435
  */
440
436
  get location() {
441
- throw new unexpected_call_error_1.default('Not supported "location" property');
437
+ throw new UnexpectedCallError('Not supported "location" property');
442
438
  }
443
439
  /**
444
440
  * Returns a string appropriate for the type of node as `Document`
@@ -462,7 +458,7 @@ class MLDocument extends parent_node_1.MLParentNode {
462
458
  * @implements DOM API: `Document`
463
459
  */
464
460
  get onabort() {
465
- throw new unexpected_call_error_1.default('Not supported "onabort" property');
461
+ throw new UnexpectedCallError('Not supported "onabort" property');
466
462
  }
467
463
  /**
468
464
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -472,7 +468,7 @@ class MLDocument extends parent_node_1.MLParentNode {
472
468
  * @implements DOM API: `Document`
473
469
  */
474
470
  get onanimationcancel() {
475
- throw new unexpected_call_error_1.default('Not supported "onanimationcancel" property');
471
+ throw new UnexpectedCallError('Not supported "onanimationcancel" property');
476
472
  }
477
473
  /**
478
474
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -482,7 +478,7 @@ class MLDocument extends parent_node_1.MLParentNode {
482
478
  * @implements DOM API: `Document`
483
479
  */
484
480
  get onanimationend() {
485
- throw new unexpected_call_error_1.default('Not supported "onanimationend" property');
481
+ throw new UnexpectedCallError('Not supported "onanimationend" property');
486
482
  }
487
483
  /**
488
484
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -492,7 +488,7 @@ class MLDocument extends parent_node_1.MLParentNode {
492
488
  * @implements DOM API: `Document`
493
489
  */
494
490
  get onanimationiteration() {
495
- throw new unexpected_call_error_1.default('Not supported "onanimationiteration" property');
491
+ throw new UnexpectedCallError('Not supported "onanimationiteration" property');
496
492
  }
497
493
  /**
498
494
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -502,7 +498,7 @@ class MLDocument extends parent_node_1.MLParentNode {
502
498
  * @implements DOM API: `Document`
503
499
  */
504
500
  get onanimationstart() {
505
- throw new unexpected_call_error_1.default('Not supported "onanimationstart" property');
501
+ throw new UnexpectedCallError('Not supported "onanimationstart" property');
506
502
  }
507
503
  /**
508
504
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -512,7 +508,7 @@ class MLDocument extends parent_node_1.MLParentNode {
512
508
  * @implements DOM API: `Document`
513
509
  */
514
510
  get onauxclick() {
515
- throw new unexpected_call_error_1.default('Not supported "onauxclick" property');
511
+ throw new UnexpectedCallError('Not supported "onauxclick" property');
516
512
  }
517
513
  /**
518
514
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -522,7 +518,7 @@ class MLDocument extends parent_node_1.MLParentNode {
522
518
  * @implements DOM API: `Document`
523
519
  */
524
520
  get onbeforeinput() {
525
- throw new unexpected_call_error_1.default('Not supported "onbeforeinput" property');
521
+ throw new UnexpectedCallError('Not supported "onbeforeinput" property');
526
522
  }
527
523
  /**
528
524
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -532,7 +528,7 @@ class MLDocument extends parent_node_1.MLParentNode {
532
528
  * @implements DOM API: `Document`
533
529
  */
534
530
  get onblur() {
535
- throw new unexpected_call_error_1.default('Not supported "onblur" property');
531
+ throw new UnexpectedCallError('Not supported "onblur" property');
536
532
  }
537
533
  /**
538
534
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -542,7 +538,7 @@ class MLDocument extends parent_node_1.MLParentNode {
542
538
  * @implements DOM API: `Document`
543
539
  */
544
540
  get oncancel() {
545
- throw new unexpected_call_error_1.default('Not supported "oncanplay" property');
541
+ throw new UnexpectedCallError('Not supported "oncanplay" property');
546
542
  }
547
543
  /**
548
544
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -552,7 +548,7 @@ class MLDocument extends parent_node_1.MLParentNode {
552
548
  * @implements DOM API: `Document`
553
549
  */
554
550
  get oncanplay() {
555
- throw new unexpected_call_error_1.default('Not supported "oncanplay" property');
551
+ throw new UnexpectedCallError('Not supported "oncanplay" property');
556
552
  }
557
553
  /**
558
554
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -562,7 +558,7 @@ class MLDocument extends parent_node_1.MLParentNode {
562
558
  * @implements DOM API: `Document`
563
559
  */
564
560
  get oncanplaythrough() {
565
- throw new unexpected_call_error_1.default('Not supported "oncanplaythrough" property');
561
+ throw new UnexpectedCallError('Not supported "oncanplaythrough" property');
566
562
  }
567
563
  /**
568
564
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -572,7 +568,7 @@ class MLDocument extends parent_node_1.MLParentNode {
572
568
  * @implements DOM API: `Document`
573
569
  */
574
570
  get onchange() {
575
- throw new unexpected_call_error_1.default('Not supported "onchange" property');
571
+ throw new UnexpectedCallError('Not supported "onchange" property');
576
572
  }
577
573
  /**
578
574
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -582,7 +578,7 @@ class MLDocument extends parent_node_1.MLParentNode {
582
578
  * @implements DOM API: `Document`
583
579
  */
584
580
  get onclick() {
585
- throw new unexpected_call_error_1.default('Not supported "onclick" property');
581
+ throw new UnexpectedCallError('Not supported "onclick" property');
586
582
  }
587
583
  /**
588
584
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -592,7 +588,7 @@ class MLDocument extends parent_node_1.MLParentNode {
592
588
  * @implements DOM API: `Document`
593
589
  */
594
590
  get onclose() {
595
- throw new unexpected_call_error_1.default('Not supported "onclose" property');
591
+ throw new UnexpectedCallError('Not supported "onclose" property');
596
592
  }
597
593
  /**
598
594
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -602,7 +598,7 @@ class MLDocument extends parent_node_1.MLParentNode {
602
598
  * @implements DOM API: `Document`
603
599
  */
604
600
  get oncontextmenu() {
605
- throw new unexpected_call_error_1.default('Not supported "oncontextmenu" property');
601
+ throw new UnexpectedCallError('Not supported "oncontextmenu" property');
606
602
  }
607
603
  /**
608
604
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -612,7 +608,7 @@ class MLDocument extends parent_node_1.MLParentNode {
612
608
  * @implements DOM API: `Document`
613
609
  */
614
610
  get oncopy() {
615
- throw new unexpected_call_error_1.default('Not supported "oncopy" property');
611
+ throw new UnexpectedCallError('Not supported "oncopy" property');
616
612
  }
617
613
  /**
618
614
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -622,7 +618,7 @@ class MLDocument extends parent_node_1.MLParentNode {
622
618
  * @implements DOM API: `Document`
623
619
  */
624
620
  get oncuechange() {
625
- throw new unexpected_call_error_1.default('Not supported "oncuechange" property');
621
+ throw new UnexpectedCallError('Not supported "oncuechange" property');
626
622
  }
627
623
  /**
628
624
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -632,7 +628,7 @@ class MLDocument extends parent_node_1.MLParentNode {
632
628
  * @implements DOM API: `Document`
633
629
  */
634
630
  get oncut() {
635
- throw new unexpected_call_error_1.default('Not supported "oncut" property');
631
+ throw new UnexpectedCallError('Not supported "oncut" property');
636
632
  }
637
633
  /**
638
634
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -642,7 +638,7 @@ class MLDocument extends parent_node_1.MLParentNode {
642
638
  * @implements DOM API: `Document`
643
639
  */
644
640
  get ondblclick() {
645
- throw new unexpected_call_error_1.default('Not supported "ondblclick" property');
641
+ throw new UnexpectedCallError('Not supported "ondblclick" property');
646
642
  }
647
643
  /**
648
644
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -652,7 +648,7 @@ class MLDocument extends parent_node_1.MLParentNode {
652
648
  * @implements DOM API: `Document`
653
649
  */
654
650
  get ondrag() {
655
- throw new unexpected_call_error_1.default('Not supported "ondrag" property');
651
+ throw new UnexpectedCallError('Not supported "ondrag" property');
656
652
  }
657
653
  /**
658
654
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -662,7 +658,7 @@ class MLDocument extends parent_node_1.MLParentNode {
662
658
  * @implements DOM API: `Document`
663
659
  */
664
660
  get ondragend() {
665
- throw new unexpected_call_error_1.default('Not supported "ondragend" property');
661
+ throw new UnexpectedCallError('Not supported "ondragend" property');
666
662
  }
667
663
  /**
668
664
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -672,7 +668,7 @@ class MLDocument extends parent_node_1.MLParentNode {
672
668
  * @implements DOM API: `Document`
673
669
  */
674
670
  get ondragenter() {
675
- throw new unexpected_call_error_1.default('Not supported "ondragenter" property');
671
+ throw new UnexpectedCallError('Not supported "ondragenter" property');
676
672
  }
677
673
  /**
678
674
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -682,7 +678,7 @@ class MLDocument extends parent_node_1.MLParentNode {
682
678
  * @implements DOM API: `Document`
683
679
  */
684
680
  get ondragleave() {
685
- throw new unexpected_call_error_1.default('Not supported "ondragleave" property');
681
+ throw new UnexpectedCallError('Not supported "ondragleave" property');
686
682
  }
687
683
  /**
688
684
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -692,7 +688,7 @@ class MLDocument extends parent_node_1.MLParentNode {
692
688
  * @implements DOM API: `Document`
693
689
  */
694
690
  get ondragover() {
695
- throw new unexpected_call_error_1.default('Not supported "ondragover" property');
691
+ throw new UnexpectedCallError('Not supported "ondragover" property');
696
692
  }
697
693
  /**
698
694
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -702,7 +698,7 @@ class MLDocument extends parent_node_1.MLParentNode {
702
698
  * @implements DOM API: `Document`
703
699
  */
704
700
  get ondragstart() {
705
- throw new unexpected_call_error_1.default('Not supported "ondragstart" property');
701
+ throw new UnexpectedCallError('Not supported "ondragstart" property');
706
702
  }
707
703
  /**
708
704
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -712,7 +708,7 @@ class MLDocument extends parent_node_1.MLParentNode {
712
708
  * @implements DOM API: `Document`
713
709
  */
714
710
  get ondrop() {
715
- throw new unexpected_call_error_1.default('Not supported "ondrop" property');
711
+ throw new UnexpectedCallError('Not supported "ondrop" property');
716
712
  }
717
713
  /**
718
714
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -722,7 +718,7 @@ class MLDocument extends parent_node_1.MLParentNode {
722
718
  * @implements DOM API: `Document`
723
719
  */
724
720
  get ondurationchange() {
725
- throw new unexpected_call_error_1.default('Not supported "ondurationchange" property');
721
+ throw new UnexpectedCallError('Not supported "ondurationchange" property');
726
722
  }
727
723
  /**
728
724
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -732,7 +728,7 @@ class MLDocument extends parent_node_1.MLParentNode {
732
728
  * @implements DOM API: `Document`
733
729
  */
734
730
  get onemptied() {
735
- throw new unexpected_call_error_1.default('Not supported "onemptied" property');
731
+ throw new UnexpectedCallError('Not supported "onemptied" property');
736
732
  }
737
733
  /**
738
734
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -742,7 +738,7 @@ class MLDocument extends parent_node_1.MLParentNode {
742
738
  * @implements DOM API: `Document`
743
739
  */
744
740
  get onended() {
745
- throw new unexpected_call_error_1.default('Not supported "onended" property');
741
+ throw new UnexpectedCallError('Not supported "onended" property');
746
742
  }
747
743
  /**
748
744
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -752,7 +748,7 @@ class MLDocument extends parent_node_1.MLParentNode {
752
748
  * @implements DOM API: `Document`
753
749
  */
754
750
  get onerror() {
755
- throw new unexpected_call_error_1.default('Not supported "onerror" property');
751
+ throw new UnexpectedCallError('Not supported "onerror" property');
756
752
  }
757
753
  /**
758
754
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -762,7 +758,7 @@ class MLDocument extends parent_node_1.MLParentNode {
762
758
  * @implements DOM API: `Document`
763
759
  */
764
760
  get onfocus() {
765
- throw new unexpected_call_error_1.default('Not supported "onfocus" property');
761
+ throw new UnexpectedCallError('Not supported "onfocus" property');
766
762
  }
767
763
  /**
768
764
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -772,7 +768,7 @@ class MLDocument extends parent_node_1.MLParentNode {
772
768
  * @implements DOM API: `Document`
773
769
  */
774
770
  get onformdata() {
775
- throw new unexpected_call_error_1.default('Not supported "onformdata" property');
771
+ throw new UnexpectedCallError('Not supported "onformdata" property');
776
772
  }
777
773
  /**
778
774
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -782,7 +778,7 @@ class MLDocument extends parent_node_1.MLParentNode {
782
778
  * @implements DOM API: `Document`
783
779
  */
784
780
  get onfullscreenchange() {
785
- throw new unexpected_call_error_1.default('Not supported "onfullscreenchange" property');
781
+ throw new UnexpectedCallError('Not supported "onfullscreenchange" property');
786
782
  }
787
783
  /**
788
784
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -792,7 +788,7 @@ class MLDocument extends parent_node_1.MLParentNode {
792
788
  * @implements DOM API: `Document`
793
789
  */
794
790
  get onfullscreenerror() {
795
- throw new unexpected_call_error_1.default('Not supported "onfullscreenerror" property');
791
+ throw new UnexpectedCallError('Not supported "onfullscreenerror" property');
796
792
  }
797
793
  /**
798
794
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -802,7 +798,7 @@ class MLDocument extends parent_node_1.MLParentNode {
802
798
  * @implements DOM API: `Document`
803
799
  */
804
800
  get ongotpointercapture() {
805
- throw new unexpected_call_error_1.default('Not supported "ongotpointercapture" property');
801
+ throw new UnexpectedCallError('Not supported "ongotpointercapture" property');
806
802
  }
807
803
  /**
808
804
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -812,7 +808,7 @@ class MLDocument extends parent_node_1.MLParentNode {
812
808
  * @implements DOM API: `Document`
813
809
  */
814
810
  get oninput() {
815
- throw new unexpected_call_error_1.default('Not supported "oninput" property');
811
+ throw new UnexpectedCallError('Not supported "oninput" property');
816
812
  }
817
813
  /**
818
814
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -822,7 +818,7 @@ class MLDocument extends parent_node_1.MLParentNode {
822
818
  * @implements DOM API: `Document`
823
819
  */
824
820
  get oninvalid() {
825
- throw new unexpected_call_error_1.default('Not supported "oninvalid" property');
821
+ throw new UnexpectedCallError('Not supported "oninvalid" property');
826
822
  }
827
823
  /**
828
824
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -832,7 +828,7 @@ class MLDocument extends parent_node_1.MLParentNode {
832
828
  * @implements DOM API: `Document`
833
829
  */
834
830
  get onkeydown() {
835
- throw new unexpected_call_error_1.default('Not supported "onkeydown" property');
831
+ throw new UnexpectedCallError('Not supported "onkeydown" property');
836
832
  }
837
833
  /**
838
834
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -842,7 +838,7 @@ class MLDocument extends parent_node_1.MLParentNode {
842
838
  * @implements DOM API: `Document`
843
839
  */
844
840
  get onkeypress() {
845
- throw new unexpected_call_error_1.default('Not supported "onkeypress" property');
841
+ throw new UnexpectedCallError('Not supported "onkeypress" property');
846
842
  }
847
843
  /**
848
844
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -852,7 +848,7 @@ class MLDocument extends parent_node_1.MLParentNode {
852
848
  * @implements DOM API: `Document`
853
849
  */
854
850
  get onkeyup() {
855
- throw new unexpected_call_error_1.default('Not supported "onkeyup" property');
851
+ throw new UnexpectedCallError('Not supported "onkeyup" property');
856
852
  }
857
853
  /**
858
854
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -862,7 +858,7 @@ class MLDocument extends parent_node_1.MLParentNode {
862
858
  * @implements DOM API: `Document`
863
859
  */
864
860
  get onload() {
865
- throw new unexpected_call_error_1.default('Not supported "onload" property');
861
+ throw new UnexpectedCallError('Not supported "onload" property');
866
862
  }
867
863
  /**
868
864
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -872,7 +868,7 @@ class MLDocument extends parent_node_1.MLParentNode {
872
868
  * @implements DOM API: `Document`
873
869
  */
874
870
  get onloadeddata() {
875
- throw new unexpected_call_error_1.default('Not supported "onloadeddata" property');
871
+ throw new UnexpectedCallError('Not supported "onloadeddata" property');
876
872
  }
877
873
  /**
878
874
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -882,7 +878,7 @@ class MLDocument extends parent_node_1.MLParentNode {
882
878
  * @implements DOM API: `Document`
883
879
  */
884
880
  get onloadedmetadata() {
885
- throw new unexpected_call_error_1.default('Not supported "onloadedmetadata" property');
881
+ throw new UnexpectedCallError('Not supported "onloadedmetadata" property');
886
882
  }
887
883
  /**
888
884
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -892,7 +888,7 @@ class MLDocument extends parent_node_1.MLParentNode {
892
888
  * @implements DOM API: `Document`
893
889
  */
894
890
  get onloadstart() {
895
- throw new unexpected_call_error_1.default('Not supported "onloadstart" property');
891
+ throw new UnexpectedCallError('Not supported "onloadstart" property');
896
892
  }
897
893
  /**
898
894
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -902,7 +898,7 @@ class MLDocument extends parent_node_1.MLParentNode {
902
898
  * @implements DOM API: `Document`
903
899
  */
904
900
  get onlostpointercapture() {
905
- throw new unexpected_call_error_1.default('Not supported "onlostpointercapture" property');
901
+ throw new UnexpectedCallError('Not supported "onlostpointercapture" property');
906
902
  }
907
903
  /**
908
904
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -912,7 +908,7 @@ class MLDocument extends parent_node_1.MLParentNode {
912
908
  * @implements DOM API: `Document`
913
909
  */
914
910
  get onmousedown() {
915
- throw new unexpected_call_error_1.default('Not supported "onmousedown" property');
911
+ throw new UnexpectedCallError('Not supported "onmousedown" property');
916
912
  }
917
913
  /**
918
914
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -922,7 +918,7 @@ class MLDocument extends parent_node_1.MLParentNode {
922
918
  * @implements DOM API: `Document`
923
919
  */
924
920
  get onmouseenter() {
925
- throw new unexpected_call_error_1.default('Not supported "onmouseenter" property');
921
+ throw new UnexpectedCallError('Not supported "onmouseenter" property');
926
922
  }
927
923
  /**
928
924
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -932,7 +928,7 @@ class MLDocument extends parent_node_1.MLParentNode {
932
928
  * @implements DOM API: `Document`
933
929
  */
934
930
  get onmouseleave() {
935
- throw new unexpected_call_error_1.default('Not supported "onmouseleave" property');
931
+ throw new UnexpectedCallError('Not supported "onmouseleave" property');
936
932
  }
937
933
  /**
938
934
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -942,7 +938,7 @@ class MLDocument extends parent_node_1.MLParentNode {
942
938
  * @implements DOM API: `Document`
943
939
  */
944
940
  get onmousemove() {
945
- throw new unexpected_call_error_1.default('Not supported "onmousemove" property');
941
+ throw new UnexpectedCallError('Not supported "onmousemove" property');
946
942
  }
947
943
  /**
948
944
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -952,7 +948,7 @@ class MLDocument extends parent_node_1.MLParentNode {
952
948
  * @implements DOM API: `Document`
953
949
  */
954
950
  get onmouseout() {
955
- throw new unexpected_call_error_1.default('Not supported "onmouseout" property');
951
+ throw new UnexpectedCallError('Not supported "onmouseout" property');
956
952
  }
957
953
  /**
958
954
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -962,7 +958,7 @@ class MLDocument extends parent_node_1.MLParentNode {
962
958
  * @implements DOM API: `Document`
963
959
  */
964
960
  get onmouseover() {
965
- throw new unexpected_call_error_1.default('Not supported "onmouseover" property');
961
+ throw new UnexpectedCallError('Not supported "onmouseover" property');
966
962
  }
967
963
  /**
968
964
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -972,7 +968,7 @@ class MLDocument extends parent_node_1.MLParentNode {
972
968
  * @implements DOM API: `Document`
973
969
  */
974
970
  get onmouseup() {
975
- throw new unexpected_call_error_1.default('Not supported "onmouseup" property');
971
+ throw new UnexpectedCallError('Not supported "onmouseup" property');
976
972
  }
977
973
  /**
978
974
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -982,7 +978,7 @@ class MLDocument extends parent_node_1.MLParentNode {
982
978
  * @implements DOM API: `Document`
983
979
  */
984
980
  get onpaste() {
985
- throw new unexpected_call_error_1.default('Not supported "onpaste" property');
981
+ throw new UnexpectedCallError('Not supported "onpaste" property');
986
982
  }
987
983
  /**
988
984
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -992,7 +988,7 @@ class MLDocument extends parent_node_1.MLParentNode {
992
988
  * @implements DOM API: `Document`
993
989
  */
994
990
  get onpause() {
995
- throw new unexpected_call_error_1.default('Not supported "onpause" property');
991
+ throw new UnexpectedCallError('Not supported "onpause" property');
996
992
  }
997
993
  /**
998
994
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1002,7 +998,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1002
998
  * @implements DOM API: `Document`
1003
999
  */
1004
1000
  get onplay() {
1005
- throw new unexpected_call_error_1.default('Not supported "onplay" property');
1001
+ throw new UnexpectedCallError('Not supported "onplay" property');
1006
1002
  }
1007
1003
  /**
1008
1004
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1012,7 +1008,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1012
1008
  * @implements DOM API: `Document`
1013
1009
  */
1014
1010
  get onplaying() {
1015
- throw new unexpected_call_error_1.default('Not supported "onplaying" property');
1011
+ throw new UnexpectedCallError('Not supported "onplaying" property');
1016
1012
  }
1017
1013
  /**
1018
1014
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1022,7 +1018,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1022
1018
  * @implements DOM API: `Document`
1023
1019
  */
1024
1020
  get onpointercancel() {
1025
- throw new unexpected_call_error_1.default('Not supported "onpointercancel" property');
1021
+ throw new UnexpectedCallError('Not supported "onpointercancel" property');
1026
1022
  }
1027
1023
  /**
1028
1024
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1032,7 +1028,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1032
1028
  * @implements DOM API: `Document`
1033
1029
  */
1034
1030
  get onpointerdown() {
1035
- throw new unexpected_call_error_1.default('Not supported "onpointerdown" property');
1031
+ throw new UnexpectedCallError('Not supported "onpointerdown" property');
1036
1032
  }
1037
1033
  /**
1038
1034
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1042,7 +1038,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1042
1038
  * @implements DOM API: `Document`
1043
1039
  */
1044
1040
  get onpointerenter() {
1045
- throw new unexpected_call_error_1.default('Not supported "onpointerenter" property');
1041
+ throw new UnexpectedCallError('Not supported "onpointerenter" property');
1046
1042
  }
1047
1043
  /**
1048
1044
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1052,7 +1048,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1052
1048
  * @implements DOM API: `Document`
1053
1049
  */
1054
1050
  get onpointerleave() {
1055
- throw new unexpected_call_error_1.default('Not supported "onpointerleave" property');
1051
+ throw new UnexpectedCallError('Not supported "onpointerleave" property');
1056
1052
  }
1057
1053
  /**
1058
1054
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1062,7 +1058,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1062
1058
  * @implements DOM API: `Document`
1063
1059
  */
1064
1060
  get onpointerlockchange() {
1065
- throw new unexpected_call_error_1.default('Not supported "onpointerlockchange" property');
1061
+ throw new UnexpectedCallError('Not supported "onpointerlockchange" property');
1066
1062
  }
1067
1063
  /**
1068
1064
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1072,7 +1068,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1072
1068
  * @implements DOM API: `Document`
1073
1069
  */
1074
1070
  get onpointerlockerror() {
1075
- throw new unexpected_call_error_1.default('Not supported "onpointerlockerror" property');
1071
+ throw new UnexpectedCallError('Not supported "onpointerlockerror" property');
1076
1072
  }
1077
1073
  /**
1078
1074
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1082,7 +1078,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1082
1078
  * @implements DOM API: `Document`
1083
1079
  */
1084
1080
  get onpointermove() {
1085
- throw new unexpected_call_error_1.default('Not supported "onpointermove" property');
1081
+ throw new UnexpectedCallError('Not supported "onpointermove" property');
1086
1082
  }
1087
1083
  /**
1088
1084
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1092,7 +1088,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1092
1088
  * @implements DOM API: `Document`
1093
1089
  */
1094
1090
  get onpointerout() {
1095
- throw new unexpected_call_error_1.default('Not supported "onpointerout" property');
1091
+ throw new UnexpectedCallError('Not supported "onpointerout" property');
1096
1092
  }
1097
1093
  /**
1098
1094
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1102,7 +1098,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1102
1098
  * @implements DOM API: `Document`
1103
1099
  */
1104
1100
  get onpointerover() {
1105
- throw new unexpected_call_error_1.default('Not supported "onpointerover" property');
1101
+ throw new UnexpectedCallError('Not supported "onpointerover" property');
1106
1102
  }
1107
1103
  /**
1108
1104
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1112,7 +1108,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1112
1108
  * @implements DOM API: `Document`
1113
1109
  */
1114
1110
  get onpointerup() {
1115
- throw new unexpected_call_error_1.default('Not supported "onpointerup" property');
1111
+ throw new UnexpectedCallError('Not supported "onpointerup" property');
1116
1112
  }
1117
1113
  /**
1118
1114
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1122,7 +1118,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1122
1118
  * @implements DOM API: `Document`
1123
1119
  */
1124
1120
  get onprogress() {
1125
- throw new unexpected_call_error_1.default('Not supported "onprogress" property');
1121
+ throw new UnexpectedCallError('Not supported "onprogress" property');
1126
1122
  }
1127
1123
  /**
1128
1124
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1132,7 +1128,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1132
1128
  * @implements DOM API: `Document`
1133
1129
  */
1134
1130
  get onratechange() {
1135
- throw new unexpected_call_error_1.default('Not supported "onratechange" property');
1131
+ throw new UnexpectedCallError('Not supported "onratechange" property');
1136
1132
  }
1137
1133
  /**
1138
1134
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1142,7 +1138,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1142
1138
  * @implements DOM API: `Document`
1143
1139
  */
1144
1140
  get onreadystatechange() {
1145
- throw new unexpected_call_error_1.default('Not supported "onreadystatechange" property');
1141
+ throw new UnexpectedCallError('Not supported "onreadystatechange" property');
1146
1142
  }
1147
1143
  /**
1148
1144
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1152,7 +1148,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1152
1148
  * @implements DOM API: `Document`
1153
1149
  */
1154
1150
  get onreset() {
1155
- throw new unexpected_call_error_1.default('Not supported "onreset" property');
1151
+ throw new UnexpectedCallError('Not supported "onreset" property');
1156
1152
  }
1157
1153
  /**
1158
1154
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1162,7 +1158,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1162
1158
  * @implements DOM API: `Document`
1163
1159
  */
1164
1160
  get onresize() {
1165
- throw new unexpected_call_error_1.default('Not supported "onresize" property');
1161
+ throw new UnexpectedCallError('Not supported "onresize" property');
1166
1162
  }
1167
1163
  /**
1168
1164
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1172,10 +1168,10 @@ class MLDocument extends parent_node_1.MLParentNode {
1172
1168
  * @implements DOM API: `Document`
1173
1169
  */
1174
1170
  get onscroll() {
1175
- throw new unexpected_call_error_1.default('Not supported "onscroll" property');
1171
+ throw new UnexpectedCallError('Not supported "onscroll" property');
1176
1172
  }
1177
1173
  get onscrollend() {
1178
- throw new unexpected_call_error_1.default('Not supported "onscrollend" property');
1174
+ throw new UnexpectedCallError('Not supported "onscrollend" property');
1179
1175
  }
1180
1176
  /**
1181
1177
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1185,7 +1181,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1185
1181
  * @implements DOM API: `Document`
1186
1182
  */
1187
1183
  get onsecuritypolicyviolation() {
1188
- throw new unexpected_call_error_1.default('Not supported "onsecuritypolicyviolation" property');
1184
+ throw new UnexpectedCallError('Not supported "onsecuritypolicyviolation" property');
1189
1185
  }
1190
1186
  /**
1191
1187
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1195,7 +1191,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1195
1191
  * @implements DOM API: `Document`
1196
1192
  */
1197
1193
  get onseeked() {
1198
- throw new unexpected_call_error_1.default('Not supported "onseeked" property');
1194
+ throw new UnexpectedCallError('Not supported "onseeked" property');
1199
1195
  }
1200
1196
  /**
1201
1197
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1205,7 +1201,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1205
1201
  * @implements DOM API: `Document`
1206
1202
  */
1207
1203
  get onseeking() {
1208
- throw new unexpected_call_error_1.default('Not supported "onseeking" property');
1204
+ throw new UnexpectedCallError('Not supported "onseeking" property');
1209
1205
  }
1210
1206
  /**
1211
1207
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1215,7 +1211,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1215
1211
  * @implements DOM API: `Document`
1216
1212
  */
1217
1213
  get onselect() {
1218
- throw new unexpected_call_error_1.default('Not supported "onselect" property');
1214
+ throw new UnexpectedCallError('Not supported "onselect" property');
1219
1215
  }
1220
1216
  /**
1221
1217
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1225,7 +1221,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1225
1221
  * @implements DOM API: `Document`
1226
1222
  */
1227
1223
  get onselectionchange() {
1228
- throw new unexpected_call_error_1.default('Not supported "onselectionchange" property');
1224
+ throw new UnexpectedCallError('Not supported "onselectionchange" property');
1229
1225
  }
1230
1226
  /**
1231
1227
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1235,7 +1231,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1235
1231
  * @implements DOM API: `Document`
1236
1232
  */
1237
1233
  get onselectstart() {
1238
- throw new unexpected_call_error_1.default('Not supported "onselectstart" property');
1234
+ throw new UnexpectedCallError('Not supported "onselectstart" property');
1239
1235
  }
1240
1236
  /**
1241
1237
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1245,7 +1241,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1245
1241
  * @implements DOM API: `Document`
1246
1242
  */
1247
1243
  get onslotchange() {
1248
- throw new unexpected_call_error_1.default('Not supported "onslotchange" property');
1244
+ throw new UnexpectedCallError('Not supported "onslotchange" property');
1249
1245
  }
1250
1246
  /**
1251
1247
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1255,7 +1251,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1255
1251
  * @implements DOM API: `Document`
1256
1252
  */
1257
1253
  get onstalled() {
1258
- throw new unexpected_call_error_1.default('Not supported "onstalled" property');
1254
+ throw new UnexpectedCallError('Not supported "onstalled" property');
1259
1255
  }
1260
1256
  /**
1261
1257
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1265,7 +1261,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1265
1261
  * @implements DOM API: `Document`
1266
1262
  */
1267
1263
  get onsubmit() {
1268
- throw new unexpected_call_error_1.default('Not supported "onsubmit" property');
1264
+ throw new UnexpectedCallError('Not supported "onsubmit" property');
1269
1265
  }
1270
1266
  /**
1271
1267
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1275,7 +1271,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1275
1271
  * @implements DOM API: `Document`
1276
1272
  */
1277
1273
  get onsuspend() {
1278
- throw new unexpected_call_error_1.default('Not supported "onsuspend" property');
1274
+ throw new UnexpectedCallError('Not supported "onsuspend" property');
1279
1275
  }
1280
1276
  /**
1281
1277
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1285,7 +1281,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1285
1281
  * @implements DOM API: `Document`
1286
1282
  */
1287
1283
  get ontimeupdate() {
1288
- throw new unexpected_call_error_1.default('Not supported "ontimeupdate" property');
1284
+ throw new UnexpectedCallError('Not supported "ontimeupdate" property');
1289
1285
  }
1290
1286
  /**
1291
1287
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1295,7 +1291,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1295
1291
  * @implements DOM API: `Document`
1296
1292
  */
1297
1293
  get ontoggle() {
1298
- throw new unexpected_call_error_1.default('Not supported "ontoggle" property');
1294
+ throw new UnexpectedCallError('Not supported "ontoggle" property');
1299
1295
  }
1300
1296
  /**
1301
1297
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1305,7 +1301,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1305
1301
  * @implements DOM API: `Document`
1306
1302
  */
1307
1303
  get ontransitioncancel() {
1308
- throw new unexpected_call_error_1.default('Not supported "ontransitioncancel" property');
1304
+ throw new UnexpectedCallError('Not supported "ontransitioncancel" property');
1309
1305
  }
1310
1306
  /**
1311
1307
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1315,7 +1311,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1315
1311
  * @implements DOM API: `Document`
1316
1312
  */
1317
1313
  get ontransitionend() {
1318
- throw new unexpected_call_error_1.default('Not supported "ontransitionend" property');
1314
+ throw new UnexpectedCallError('Not supported "ontransitionend" property');
1319
1315
  }
1320
1316
  /**
1321
1317
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1325,7 +1321,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1325
1321
  * @implements DOM API: `Document`
1326
1322
  */
1327
1323
  get ontransitionrun() {
1328
- throw new unexpected_call_error_1.default('Not supported "ontransitionrun" property');
1324
+ throw new UnexpectedCallError('Not supported "ontransitionrun" property');
1329
1325
  }
1330
1326
  /**
1331
1327
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1335,7 +1331,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1335
1331
  * @implements DOM API: `Document`
1336
1332
  */
1337
1333
  get ontransitionstart() {
1338
- throw new unexpected_call_error_1.default('Not supported "ontransitionstart" property');
1334
+ throw new UnexpectedCallError('Not supported "ontransitionstart" property');
1339
1335
  }
1340
1336
  /**
1341
1337
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1345,7 +1341,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1345
1341
  * @implements DOM API: `Document`
1346
1342
  */
1347
1343
  get onvisibilitychange() {
1348
- throw new unexpected_call_error_1.default('Not supported "onvisibilitychange" property');
1344
+ throw new UnexpectedCallError('Not supported "onvisibilitychange" property');
1349
1345
  }
1350
1346
  /**
1351
1347
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1355,7 +1351,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1355
1351
  * @implements DOM API: `Document`
1356
1352
  */
1357
1353
  get onvolumechange() {
1358
- throw new unexpected_call_error_1.default('Not supported "onvolumechange" property');
1354
+ throw new UnexpectedCallError('Not supported "onvolumechange" property');
1359
1355
  }
1360
1356
  /**
1361
1357
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1365,7 +1361,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1365
1361
  * @implements DOM API: `Document`
1366
1362
  */
1367
1363
  get onwaiting() {
1368
- throw new unexpected_call_error_1.default('Not supported "onwaiting" property');
1364
+ throw new UnexpectedCallError('Not supported "onwaiting" property');
1369
1365
  }
1370
1366
  /**
1371
1367
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1375,7 +1371,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1375
1371
  * @implements DOM API: `Document`
1376
1372
  */
1377
1373
  get onwebkitanimationend() {
1378
- throw new unexpected_call_error_1.default('Not supported "onwebkitanimationend" property');
1374
+ throw new UnexpectedCallError('Not supported "onwebkitanimationend" property');
1379
1375
  }
1380
1376
  /**
1381
1377
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1385,7 +1381,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1385
1381
  * @implements DOM API: `Document`
1386
1382
  */
1387
1383
  get onwebkitanimationiteration() {
1388
- throw new unexpected_call_error_1.default('Not supported "onwebkitanimationiteration" property');
1384
+ throw new UnexpectedCallError('Not supported "onwebkitanimationiteration" property');
1389
1385
  }
1390
1386
  /**
1391
1387
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1395,7 +1391,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1395
1391
  * @implements DOM API: `Document`
1396
1392
  */
1397
1393
  get onwebkitanimationstart() {
1398
- throw new unexpected_call_error_1.default('Not supported "onwebkitanimationstart" property');
1394
+ throw new UnexpectedCallError('Not supported "onwebkitanimationstart" property');
1399
1395
  }
1400
1396
  /**
1401
1397
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1405,7 +1401,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1405
1401
  * @implements DOM API: `Document`
1406
1402
  */
1407
1403
  get onwebkittransitionend() {
1408
- throw new unexpected_call_error_1.default('Not supported "onwebkittransitionend" property');
1404
+ throw new UnexpectedCallError('Not supported "onwebkittransitionend" property');
1409
1405
  }
1410
1406
  /**
1411
1407
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1415,7 +1411,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1415
1411
  * @implements DOM API: `Document`
1416
1412
  */
1417
1413
  get onwheel() {
1418
- throw new unexpected_call_error_1.default('Not supported "onwheel" property');
1414
+ throw new UnexpectedCallError('Not supported "onwheel" property');
1419
1415
  }
1420
1416
  get ownerDocument() {
1421
1417
  return null;
@@ -1437,7 +1433,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1437
1433
  * @implements DOM API: `Document`
1438
1434
  */
1439
1435
  get pictureInPictureElement() {
1440
- throw new unexpected_call_error_1.default('Not supported "pictureInPictureElement" property');
1436
+ throw new UnexpectedCallError('Not supported "pictureInPictureElement" property');
1441
1437
  }
1442
1438
  /**
1443
1439
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1446,7 +1442,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1446
1442
  * @implements DOM API: `Document`
1447
1443
  */
1448
1444
  get pictureInPictureEnabled() {
1449
- throw new unexpected_call_error_1.default('Not supported "pictureInPictureEnabled" property');
1445
+ throw new UnexpectedCallError('Not supported "pictureInPictureEnabled" property');
1450
1446
  }
1451
1447
  /**
1452
1448
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1455,7 +1451,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1455
1451
  * @implements DOM API: `Document`
1456
1452
  */
1457
1453
  get plugins() {
1458
- throw new unexpected_call_error_1.default('Not supported "plugins" property');
1454
+ throw new UnexpectedCallError('Not supported "plugins" property');
1459
1455
  }
1460
1456
  /**
1461
1457
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1464,7 +1460,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1464
1460
  * @implements DOM API: `Document`
1465
1461
  */
1466
1462
  get pointerLockElement() {
1467
- throw new unexpected_call_error_1.default('Not supported "pointerLockElement" property');
1463
+ throw new UnexpectedCallError('Not supported "pointerLockElement" property');
1468
1464
  }
1469
1465
  /**
1470
1466
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1473,7 +1469,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1473
1469
  * @implements DOM API: `Document`
1474
1470
  */
1475
1471
  get readyState() {
1476
- throw new unexpected_call_error_1.default('Not supported "readyState" property');
1472
+ throw new UnexpectedCallError('Not supported "readyState" property');
1477
1473
  }
1478
1474
  /**
1479
1475
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1482,7 +1478,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1482
1478
  * @implements DOM API: `Document`
1483
1479
  */
1484
1480
  get referrer() {
1485
- throw new unexpected_call_error_1.default('Not supported "referrer" property');
1481
+ throw new UnexpectedCallError('Not supported "referrer" property');
1486
1482
  }
1487
1483
  /**
1488
1484
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1492,7 +1488,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1492
1488
  * @implements DOM API: `Document`
1493
1489
  */
1494
1490
  get rootElement() {
1495
- throw new unexpected_call_error_1.default('Not supported "rootElement" property');
1491
+ throw new UnexpectedCallError('Not supported "rootElement" property');
1496
1492
  }
1497
1493
  /**
1498
1494
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1501,7 +1497,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1501
1497
  * @implements DOM API: `Document`
1502
1498
  */
1503
1499
  get scripts() {
1504
- throw new unexpected_call_error_1.default('Not supported "scripts" property');
1500
+ throw new UnexpectedCallError('Not supported "scripts" property');
1505
1501
  }
1506
1502
  /**
1507
1503
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1510,7 +1506,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1510
1506
  * @implements DOM API: `Document`
1511
1507
  */
1512
1508
  get scrollingElement() {
1513
- throw new unexpected_call_error_1.default('Not supported "scrollingElement" property');
1509
+ throw new UnexpectedCallError('Not supported "scrollingElement" property');
1514
1510
  }
1515
1511
  /**
1516
1512
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1519,7 +1515,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1519
1515
  * @implements DOM API: `Document`
1520
1516
  */
1521
1517
  get styleSheets() {
1522
- throw new unexpected_call_error_1.default('Not supported "styleSheets" property');
1518
+ throw new UnexpectedCallError('Not supported "styleSheets" property');
1523
1519
  }
1524
1520
  /**
1525
1521
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1528,7 +1524,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1528
1524
  * @implements DOM API: `Document`
1529
1525
  */
1530
1526
  get timeline() {
1531
- throw new unexpected_call_error_1.default('Not supported "timeline" property');
1527
+ throw new UnexpectedCallError('Not supported "timeline" property');
1532
1528
  }
1533
1529
  /**
1534
1530
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1537,7 +1533,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1537
1533
  * @implements DOM API: `Document`
1538
1534
  */
1539
1535
  get title() {
1540
- throw new unexpected_call_error_1.default('Not supported "title" property');
1536
+ throw new UnexpectedCallError('Not supported "title" property');
1541
1537
  }
1542
1538
  /**
1543
1539
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1546,7 +1542,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1546
1542
  * @implements DOM API: `Document`
1547
1543
  */
1548
1544
  get visibilityState() {
1549
- throw new unexpected_call_error_1.default('Not supported "visibilityState" property');
1545
+ throw new UnexpectedCallError('Not supported "visibilityState" property');
1550
1546
  }
1551
1547
  /**
1552
1548
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1556,7 +1552,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1556
1552
  * @implements DOM API: `Document`
1557
1553
  */
1558
1554
  get vlinkColor() {
1559
- throw new unexpected_call_error_1.default('Not supported "vlinkColor" property');
1555
+ throw new UnexpectedCallError('Not supported "vlinkColor" property');
1560
1556
  }
1561
1557
  /**
1562
1558
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1565,7 +1561,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1565
1561
  * @implements DOM API: `Document`
1566
1562
  */
1567
1563
  adoptNode(node) {
1568
- throw new unexpected_call_error_1.default('Not supported "adoptNode" method');
1564
+ throw new UnexpectedCallError('Not supported "adoptNode" method');
1569
1565
  }
1570
1566
  /**
1571
1567
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1575,7 +1571,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1575
1571
  * @implements DOM API: `Document`
1576
1572
  */
1577
1573
  captureEvents() {
1578
- throw new unexpected_call_error_1.default('Not supported "captureEvents" method');
1574
+ throw new UnexpectedCallError('Not supported "captureEvents" method');
1579
1575
  }
1580
1576
  /**
1581
1577
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1584,7 +1580,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1584
1580
  * @implements DOM API: `Document`
1585
1581
  */
1586
1582
  caretRangeFromPoint(x, y) {
1587
- throw new unexpected_call_error_1.default('Not supported "caretRangeFromPoint" method');
1583
+ throw new UnexpectedCallError('Not supported "caretRangeFromPoint" method');
1588
1584
  }
1589
1585
  /**
1590
1586
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1594,7 +1590,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1594
1590
  * @implements DOM API: `Document`
1595
1591
  */
1596
1592
  clear() {
1597
- throw new unexpected_call_error_1.default('Not supported "clear" method');
1593
+ throw new UnexpectedCallError('Not supported "clear" method');
1598
1594
  }
1599
1595
  /**
1600
1596
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1603,7 +1599,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1603
1599
  * @implements DOM API: `Document`
1604
1600
  */
1605
1601
  close() {
1606
- throw new unexpected_call_error_1.default('Not supported "close" method');
1602
+ throw new UnexpectedCallError('Not supported "close" method');
1607
1603
  }
1608
1604
  /**
1609
1605
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1612,7 +1608,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1612
1608
  * @implements DOM API: `Document`
1613
1609
  */
1614
1610
  createAttribute(localName) {
1615
- throw new unexpected_call_error_1.default('Not supported "createAttribute" method');
1611
+ throw new UnexpectedCallError('Not supported "createAttribute" method');
1616
1612
  }
1617
1613
  /**
1618
1614
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1621,7 +1617,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1621
1617
  * @implements DOM API: `Document`
1622
1618
  */
1623
1619
  createAttributeNS(namespace, qualifiedName) {
1624
- throw new unexpected_call_error_1.default('Not supported "createAttributeNS" method');
1620
+ throw new UnexpectedCallError('Not supported "createAttributeNS" method');
1625
1621
  }
1626
1622
  /**
1627
1623
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1630,7 +1626,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1630
1626
  * @implements DOM API: `Document`
1631
1627
  */
1632
1628
  createCDATASection(data) {
1633
- throw new unexpected_call_error_1.default('Not supported "createCDATASection" method');
1629
+ throw new UnexpectedCallError('Not supported "createCDATASection" method');
1634
1630
  }
1635
1631
  /**
1636
1632
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1639,7 +1635,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1639
1635
  * @implements DOM API: `Document`
1640
1636
  */
1641
1637
  createComment(data) {
1642
- throw new unexpected_call_error_1.default('Not supported "createComment" method');
1638
+ throw new UnexpectedCallError('Not supported "createComment" method');
1643
1639
  }
1644
1640
  /**
1645
1641
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1648,7 +1644,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1648
1644
  * @implements DOM API: `Document`
1649
1645
  */
1650
1646
  createDocumentFragment() {
1651
- throw new unexpected_call_error_1.default('Not supported "createDocumentFragment" method');
1647
+ throw new UnexpectedCallError('Not supported "createDocumentFragment" method');
1652
1648
  }
1653
1649
  /**
1654
1650
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1657,7 +1653,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1657
1653
  * @implements DOM API: `Document`
1658
1654
  */
1659
1655
  createElement(tagName, options) {
1660
- throw new unexpected_call_error_1.default('Not supported "createElement" method');
1656
+ throw new UnexpectedCallError('Not supported "createElement" method');
1661
1657
  }
1662
1658
  /**
1663
1659
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1666,7 +1662,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1666
1662
  * @implements DOM API: `Document`
1667
1663
  */
1668
1664
  createElementNS(namespace, qualifiedName, options) {
1669
- throw new unexpected_call_error_1.default('Not supported "createElementNS" method');
1665
+ throw new UnexpectedCallError('Not supported "createElementNS" method');
1670
1666
  }
1671
1667
  /**
1672
1668
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1675,7 +1671,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1675
1671
  * @implements DOM API: `Document`
1676
1672
  */
1677
1673
  createEvent(eventInterface) {
1678
- throw new unexpected_call_error_1.default('Not supported "createEvent" method');
1674
+ throw new UnexpectedCallError('Not supported "createEvent" method');
1679
1675
  }
1680
1676
  /**
1681
1677
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1686,7 +1682,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1686
1682
  createExpression(expression,
1687
1683
  // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
1688
1684
  resolver) {
1689
- throw new unexpected_call_error_1.default('Not supported "createExpression" method');
1685
+ throw new UnexpectedCallError('Not supported "createExpression" method');
1690
1686
  }
1691
1687
  /**
1692
1688
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1697,7 +1693,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1697
1693
  createNSResolver(
1698
1694
  // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
1699
1695
  nodeResolver) {
1700
- throw new unexpected_call_error_1.default('Not supported "createNSResolver" method');
1696
+ throw new UnexpectedCallError('Not supported "createNSResolver" method');
1701
1697
  }
1702
1698
  /**
1703
1699
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1710,7 +1706,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1710
1706
  root, whatToShow,
1711
1707
  // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
1712
1708
  filter) {
1713
- throw new unexpected_call_error_1.default('Not supported "createNodeIterator" method');
1709
+ throw new UnexpectedCallError('Not supported "createNodeIterator" method');
1714
1710
  }
1715
1711
  /**
1716
1712
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1719,7 +1715,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1719
1715
  * @implements DOM API: `Document`
1720
1716
  */
1721
1717
  createProcessingInstruction(target, data) {
1722
- throw new unexpected_call_error_1.default('Not supported "createProcessingInstruction" method');
1718
+ throw new UnexpectedCallError('Not supported "createProcessingInstruction" method');
1723
1719
  }
1724
1720
  /**
1725
1721
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1728,7 +1724,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1728
1724
  * @implements DOM API: `Document`
1729
1725
  */
1730
1726
  createRange() {
1731
- throw new unexpected_call_error_1.default('Not supported "createRange" method');
1727
+ throw new UnexpectedCallError('Not supported "createRange" method');
1732
1728
  }
1733
1729
  /**
1734
1730
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1737,7 +1733,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1737
1733
  * @implements DOM API: `Document`
1738
1734
  */
1739
1735
  createTextNode(data) {
1740
- throw new unexpected_call_error_1.default('Not supported "createTextNode" method');
1736
+ throw new UnexpectedCallError('Not supported "createTextNode" method');
1741
1737
  }
1742
1738
  /**
1743
1739
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1750,13 +1746,13 @@ class MLDocument extends parent_node_1.MLParentNode {
1750
1746
  root, whatToShow,
1751
1747
  // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
1752
1748
  filter) {
1753
- throw new unexpected_call_error_1.default('Not supported "createTreeWalker" method');
1749
+ throw new UnexpectedCallError('Not supported "createTreeWalker" method');
1754
1750
  }
1755
1751
  /**
1756
1752
  * @implements `@markuplint/ml-core` API: `MLDocument`
1757
1753
  */
1758
1754
  debugMap() {
1759
- return (0, debug_2.nodeListToDebugMaps)(this.nodeList, true);
1755
+ return nodeListToDebugMaps(this.nodeList, true);
1760
1756
  }
1761
1757
  /**
1762
1758
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1765,7 +1761,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1765
1761
  * @implements DOM API: `Document`
1766
1762
  */
1767
1763
  elementFromPoint(x, y) {
1768
- throw new unexpected_call_error_1.default('Not supported "elementFromPoint" method');
1764
+ throw new UnexpectedCallError('Not supported "elementFromPoint" method');
1769
1765
  }
1770
1766
  /**
1771
1767
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1774,7 +1770,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1774
1770
  * @implements DOM API: `Document`
1775
1771
  */
1776
1772
  elementsFromPoint(x, y) {
1777
- throw new unexpected_call_error_1.default('Not supported "elementsFromPoint" method');
1773
+ throw new UnexpectedCallError('Not supported "elementsFromPoint" method');
1778
1774
  }
1779
1775
  /**
1780
1776
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1789,7 +1785,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1789
1785
  resolver, type,
1790
1786
  // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
1791
1787
  result) {
1792
- throw new unexpected_call_error_1.default('Not supported "evaluate" method');
1788
+ throw new UnexpectedCallError('Not supported "evaluate" method');
1793
1789
  }
1794
1790
  /**
1795
1791
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1799,7 +1795,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1799
1795
  * @implements DOM API: `Document`
1800
1796
  */
1801
1797
  execCommand(commandId, showUI, value) {
1802
- throw new unexpected_call_error_1.default('Not supported "execCommand" method');
1798
+ throw new UnexpectedCallError('Not supported "execCommand" method');
1803
1799
  }
1804
1800
  /**
1805
1801
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1808,7 +1804,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1808
1804
  * @implements DOM API: `Document`
1809
1805
  */
1810
1806
  exitFullscreen() {
1811
- throw new unexpected_call_error_1.default('Not supported "exitFullscreen" method');
1807
+ throw new UnexpectedCallError('Not supported "exitFullscreen" method');
1812
1808
  }
1813
1809
  /**
1814
1810
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1817,7 +1813,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1817
1813
  * @implements DOM API: `Document`
1818
1814
  */
1819
1815
  exitPictureInPicture() {
1820
- throw new unexpected_call_error_1.default('Not supported "exitPictureInPicture" method');
1816
+ throw new UnexpectedCallError('Not supported "exitPictureInPicture" method');
1821
1817
  }
1822
1818
  /**
1823
1819
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1826,7 +1822,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1826
1822
  * @implements DOM API: `Document`
1827
1823
  */
1828
1824
  exitPointerLock() {
1829
- throw new unexpected_call_error_1.default('Not supported "exitPointerLock" method');
1825
+ throw new UnexpectedCallError('Not supported "exitPointerLock" method');
1830
1826
  }
1831
1827
  /**
1832
1828
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1835,7 +1831,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1835
1831
  * @implements DOM API: `Document`
1836
1832
  */
1837
1833
  getAnimations() {
1838
- throw new unexpected_call_error_1.default('Not supported "getAnimations" method');
1834
+ throw new UnexpectedCallError('Not supported "getAnimations" method');
1839
1835
  }
1840
1836
  /**
1841
1837
  * @implements DOM API: `Document`
@@ -1851,7 +1847,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1851
1847
  * @implements DOM API: `Document`
1852
1848
  */
1853
1849
  getElementsByClassName(classNames) {
1854
- return (0, node_list_1.nodeListToHTMLCollection)(this.querySelectorAll(classNames));
1850
+ return nodeListToHTMLCollection(this.querySelectorAll(classNames));
1855
1851
  }
1856
1852
  /**
1857
1853
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1860,7 +1856,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1860
1856
  * @implements DOM API: `Document`
1861
1857
  */
1862
1858
  getElementsByName(elementName) {
1863
- throw new unexpected_call_error_1.default('Not supported "getElementsByName" method');
1859
+ throw new UnexpectedCallError('Not supported "getElementsByName" method');
1864
1860
  }
1865
1861
  /**
1866
1862
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1869,7 +1865,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1869
1865
  * @implements DOM API: `Document`
1870
1866
  */
1871
1867
  getElementsByTagName(qualifiedName) {
1872
- return (0, node_list_1.nodeListToHTMLCollection)(this.querySelectorAll(qualifiedName));
1868
+ return nodeListToHTMLCollection(this.querySelectorAll(qualifiedName));
1873
1869
  }
1874
1870
  /**
1875
1871
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1878,7 +1874,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1878
1874
  * @implements DOM API: `Document`
1879
1875
  */
1880
1876
  getElementsByTagNameNS(namespace, localName) {
1881
- throw new unexpected_call_error_1.default('Not supported "getElementsByTagNameNS" method');
1877
+ throw new UnexpectedCallError('Not supported "getElementsByTagNameNS" method');
1882
1878
  }
1883
1879
  /**
1884
1880
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1887,14 +1883,14 @@ class MLDocument extends parent_node_1.MLParentNode {
1887
1883
  * @implements DOM API: `Document`
1888
1884
  */
1889
1885
  getSelection() {
1890
- throw new unexpected_call_error_1.default('Not supported "getSelection" method');
1886
+ throw new UnexpectedCallError('Not supported "getSelection" method');
1891
1887
  }
1892
1888
  /**
1893
1889
  * @implements `@markuplint/ml-core` API: `MLDocument`
1894
1890
  */
1895
1891
  getTokenList() {
1896
- if (tslib_1.__classPrivateFieldGet(this, _MLDocument_tokenList, "f")) {
1897
- return tslib_1.__classPrivateFieldGet(this, _MLDocument_tokenList, "f");
1892
+ if (__classPrivateFieldGet(this, _MLDocument_tokenList, "f")) {
1893
+ return __classPrivateFieldGet(this, _MLDocument_tokenList, "f");
1898
1894
  }
1899
1895
  const tokens = [];
1900
1896
  for (const node of this.nodeList) {
@@ -1904,8 +1900,8 @@ class MLDocument extends parent_node_1.MLParentNode {
1904
1900
  }
1905
1901
  }
1906
1902
  tokens.sort((a, b) => a.startOffset - b.startOffset);
1907
- tslib_1.__classPrivateFieldSet(this, _MLDocument_tokenList, Object.freeze(tokens), "f");
1908
- return tslib_1.__classPrivateFieldGet(this, _MLDocument_tokenList, "f");
1903
+ __classPrivateFieldSet(this, _MLDocument_tokenList, Object.freeze(tokens), "f");
1904
+ return __classPrivateFieldGet(this, _MLDocument_tokenList, "f");
1909
1905
  }
1910
1906
  /**
1911
1907
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1914,7 +1910,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1914
1910
  * @implements DOM API: `Document`
1915
1911
  */
1916
1912
  hasFocus() {
1917
- throw new unexpected_call_error_1.default('Not supported "hasFocus" method');
1913
+ throw new UnexpectedCallError('Not supported "hasFocus" method');
1918
1914
  }
1919
1915
  /**
1920
1916
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1923,7 +1919,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1923
1919
  * @implements DOM API: `Document`
1924
1920
  */
1925
1921
  hasStorageAccess() {
1926
- throw new unexpected_call_error_1.default('Not supported "hasStorageAccess" method');
1922
+ throw new UnexpectedCallError('Not supported "hasStorageAccess" method');
1927
1923
  }
1928
1924
  /**
1929
1925
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1932,7 +1928,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1932
1928
  * @implements DOM API: `Document`
1933
1929
  */
1934
1930
  importNode(node, deep) {
1935
- throw new unexpected_call_error_1.default('Not supported "importNode" method');
1931
+ throw new UnexpectedCallError('Not supported "importNode" method');
1936
1932
  }
1937
1933
  /**
1938
1934
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1941,7 +1937,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1941
1937
  * @implements DOM API: `Document`
1942
1938
  */
1943
1939
  open(url, name, features) {
1944
- throw new unexpected_call_error_1.default('Not supported "open" method');
1940
+ throw new UnexpectedCallError('Not supported "open" method');
1945
1941
  }
1946
1942
  /**
1947
1943
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1951,7 +1947,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1951
1947
  * @implements DOM API: `Document`
1952
1948
  */
1953
1949
  queryCommandEnabled(commandId) {
1954
- throw new unexpected_call_error_1.default('Not supported "queryCommandEnabled" method');
1950
+ throw new UnexpectedCallError('Not supported "queryCommandEnabled" method');
1955
1951
  }
1956
1952
  /**
1957
1953
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1961,7 +1957,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1961
1957
  * @implements DOM API: `Document`
1962
1958
  */
1963
1959
  queryCommandIndeterm(commandId) {
1964
- throw new unexpected_call_error_1.default('Not supported "queryCommandIndeterm" method');
1960
+ throw new UnexpectedCallError('Not supported "queryCommandIndeterm" method');
1965
1961
  }
1966
1962
  /**
1967
1963
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1971,7 +1967,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1971
1967
  * @implements DOM API: `Document`
1972
1968
  */
1973
1969
  queryCommandState(commandId) {
1974
- throw new unexpected_call_error_1.default('Not supported "queryCommandState" method');
1970
+ throw new UnexpectedCallError('Not supported "queryCommandState" method');
1975
1971
  }
1976
1972
  /**
1977
1973
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1981,7 +1977,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1981
1977
  * @implements DOM API: `Document`
1982
1978
  */
1983
1979
  queryCommandSupported(commandId) {
1984
- throw new unexpected_call_error_1.default('Not supported "queryCommandSupported" method');
1980
+ throw new UnexpectedCallError('Not supported "queryCommandSupported" method');
1985
1981
  }
1986
1982
  /**
1987
1983
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -1991,7 +1987,7 @@ class MLDocument extends parent_node_1.MLParentNode {
1991
1987
  * @implements DOM API: `Document`
1992
1988
  */
1993
1989
  queryCommandValue(commandId) {
1994
- throw new unexpected_call_error_1.default('Not supported "queryCommandValue" method');
1990
+ throw new UnexpectedCallError('Not supported "queryCommandValue" method');
1995
1991
  }
1996
1992
  /**
1997
1993
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -2001,7 +1997,7 @@ class MLDocument extends parent_node_1.MLParentNode {
2001
1997
  * @implements DOM API: `Document`
2002
1998
  */
2003
1999
  releaseEvents() {
2004
- throw new unexpected_call_error_1.default('Not supported "releaseEvents" method');
2000
+ throw new UnexpectedCallError('Not supported "releaseEvents" method');
2005
2001
  }
2006
2002
  /**
2007
2003
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -2010,7 +2006,7 @@ class MLDocument extends parent_node_1.MLParentNode {
2010
2006
  * @implements DOM API: `Document`
2011
2007
  */
2012
2008
  requestStorageAccess() {
2013
- throw new unexpected_call_error_1.default('Not supported "requestStorageAccess" method');
2009
+ throw new UnexpectedCallError('Not supported "requestStorageAccess" method');
2014
2010
  }
2015
2011
  /**
2016
2012
  * @implements `@markuplint/ml-core` API: `MLDocument`
@@ -2040,7 +2036,7 @@ class MLDocument extends parent_node_1.MLParentNode {
2040
2036
  return html.join('');
2041
2037
  }
2042
2038
  walkOn(type, walker, skipWhenRuleIsDisabled = true) {
2043
- return (0, walkers_1.sequentialWalker)(this.nodeList, node => {
2039
+ return sequentialWalker(this.nodeList, node => {
2044
2040
  if (skipWhenRuleIsDisabled && node.rule.disabled) {
2045
2041
  return;
2046
2042
  }
@@ -2054,7 +2050,7 @@ class MLDocument extends parent_node_1.MLParentNode {
2054
2050
  return walker(node);
2055
2051
  }
2056
2052
  if (type === 'Attr' && node.is(node.ELEMENT_NODE)) {
2057
- return (0, walkers_1.sequentialWalker)(Array.from(node.attributes), attr => walker(attr));
2053
+ return sequentialWalker(Array.from(node.attributes), attr => walker(attr));
2058
2054
  }
2059
2055
  if (type === 'ElementCloseTag' && node.is(node.ELEMENT_NODE) && node.closeTag) {
2060
2056
  return walker(node.closeTag);
@@ -2068,7 +2064,7 @@ class MLDocument extends parent_node_1.MLParentNode {
2068
2064
  * @implements DOM API: `Document`
2069
2065
  */
2070
2066
  write(...text) {
2071
- throw new unexpected_call_error_1.default('Not supported "write" method');
2067
+ throw new UnexpectedCallError('Not supported "write" method');
2072
2068
  }
2073
2069
  /**
2074
2070
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
@@ -2077,7 +2073,7 @@ class MLDocument extends parent_node_1.MLParentNode {
2077
2073
  * @implements DOM API: `Document`
2078
2074
  */
2079
2075
  writeln(...text) {
2080
- throw new unexpected_call_error_1.default('Not supported "writeln" method');
2076
+ throw new UnexpectedCallError('Not supported "writeln" method');
2081
2077
  }
2082
2078
  _pretending(pretenders) {
2083
2079
  if (docLog.enabled) {
@@ -2096,7 +2092,7 @@ class MLDocument extends parent_node_1.MLParentNode {
2096
2092
  if (docLog.enabled) {
2097
2093
  docLog('Rule Mapping: %O', Object.keys(ruleset.rules));
2098
2094
  }
2099
- const ruleMapper = new rule_mapper_1.RuleMapper(this);
2095
+ const ruleMapper = new RuleMapper(this);
2100
2096
  // global rules to #document
2101
2097
  Object.keys(ruleset.rules).forEach(ruleName => {
2102
2098
  const rule = ruleset.rules[ruleName];
@@ -2132,15 +2128,14 @@ class MLDocument extends parent_node_1.MLParentNode {
2132
2128
  const selectorTarget = node.is(node.ELEMENT_NODE) ? node : null;
2133
2129
  // node specs and special rules for node by selector
2134
2130
  ruleset.nodeRules.forEach(nodeRule => {
2135
- var _a, _b;
2136
2131
  if (!nodeRule.rules) {
2137
2132
  return;
2138
2133
  }
2139
2134
  if (!selectorTarget) {
2140
2135
  return;
2141
2136
  }
2142
- const selector = (_a = nodeRule.selector) !== null && _a !== void 0 ? _a : nodeRule.regexSelector;
2143
- const matches = (0, selector_1.matchSelector)(selectorTarget, selector);
2137
+ const selector = nodeRule.selector ?? nodeRule.regexSelector;
2138
+ const matches = matchSelector(selectorTarget, selector);
2144
2139
  if (!matches.matched) {
2145
2140
  return;
2146
2141
  }
@@ -2153,12 +2148,12 @@ class MLDocument extends parent_node_1.MLParentNode {
2153
2148
  if (rule == null) {
2154
2149
  continue;
2155
2150
  }
2156
- const convertedRule = (0, ml_config_1.exchangeValueOnRule)(rule, (_b = matches.data) !== null && _b !== void 0 ? _b : {});
2151
+ const convertedRule = exchangeValueOnRule(rule, matches.data ?? {});
2157
2152
  if (convertedRule === undefined) {
2158
2153
  continue;
2159
2154
  }
2160
2155
  const globalRule = ruleset.rules[ruleName];
2161
- const mergedRule = globalRule != null ? (0, ml_config_1.mergeRule)(globalRule, convertedRule) : convertedRule;
2156
+ const mergedRule = globalRule != null ? mergeRule(globalRule, convertedRule) : convertedRule;
2162
2157
  ruleLog('↑ nodeRule (%s): %O', ruleName, mergedRule);
2163
2158
  ruleMapper.set(node, ruleName, {
2164
2159
  from: 'nodeRules',
@@ -2171,20 +2166,19 @@ class MLDocument extends parent_node_1.MLParentNode {
2171
2166
  if (selectorTarget && ruleset.childNodeRules.length > 0) {
2172
2167
  const descendants = [];
2173
2168
  const children = Array.from(selectorTarget.childNodes);
2174
- (0, walkers_1.syncWalk)(children, childNode => {
2169
+ syncWalk(children, childNode => {
2175
2170
  descendants.push(childNode);
2176
2171
  });
2177
2172
  ruleset.childNodeRules.forEach(nodeRule => {
2178
- var _a;
2179
2173
  if (!nodeRule.rules) {
2180
2174
  return;
2181
2175
  }
2182
2176
  const nodeRuleRules = nodeRule.rules;
2183
- const selector = (_a = nodeRule.selector) !== null && _a !== void 0 ? _a : nodeRule.regexSelector;
2177
+ const selector = nodeRule.selector ?? nodeRule.regexSelector;
2184
2178
  if (selector == null) {
2185
2179
  return;
2186
2180
  }
2187
- const matches = (0, selector_1.matchSelector)(selectorTarget, selector);
2181
+ const matches = matchSelector(selectorTarget, selector);
2188
2182
  if (!matches.matched) {
2189
2183
  return;
2190
2184
  }
@@ -2193,17 +2187,16 @@ class MLDocument extends parent_node_1.MLParentNode {
2193
2187
  }
2194
2188
  const targetDescendants = nodeRule.inheritance ? descendants : children;
2195
2189
  Object.keys(nodeRuleRules).forEach(ruleName => {
2196
- var _a;
2197
2190
  const rule = nodeRuleRules[ruleName];
2198
2191
  if (rule == null) {
2199
2192
  return;
2200
2193
  }
2201
- const convertedRule = (0, ml_config_1.exchangeValueOnRule)(rule, (_a = matches.data) !== null && _a !== void 0 ? _a : {});
2194
+ const convertedRule = exchangeValueOnRule(rule, matches.data ?? {});
2202
2195
  if (convertedRule === undefined) {
2203
2196
  return;
2204
2197
  }
2205
2198
  const globalRule = ruleset.rules[ruleName];
2206
- const mergedRule = globalRule != null ? (0, ml_config_1.mergeRule)(globalRule, convertedRule) : convertedRule;
2199
+ const mergedRule = globalRule != null ? mergeRule(globalRule, convertedRule) : convertedRule;
2207
2200
  ruleLog('↑ childNodeRule (%s): %O', ruleName, mergedRule);
2208
2201
  targetDescendants.forEach(descendant => {
2209
2202
  ruleMapper.set(descendant, ruleName, {
@@ -2219,5 +2212,4 @@ class MLDocument extends parent_node_1.MLParentNode {
2219
2212
  ruleMapper.apply();
2220
2213
  }
2221
2214
  }
2222
- exports.MLDocument = MLDocument;
2223
2215
  _MLDocument_filename = new WeakMap(), _MLDocument_tokenList = new WeakMap();