@burger-editor/client 4.0.0-alpha.77 → 4.0.0-alpha.78
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.
- package/README.md +42 -41
- package/dist/block-swap-view-transition-css.d.ts +7 -0
- package/dist/block-swap-view-transition-css.d.ts.map +1 -0
- package/dist/client.css +158 -18
- package/dist/client.js +354 -281
- package/dist/client.js.map +1 -1
- package/dist/components/block-catalog.d.ts.map +1 -1
- package/dist/components/block-menu-anchors.d.ts +25 -0
- package/dist/components/block-menu-anchors.d.ts.map +1 -0
- package/dist/components/block-menu-button.d.ts +7 -2
- package/dist/components/block-menu-button.d.ts.map +1 -1
- package/dist/components/block-menu-view.d.ts +35 -29
- package/dist/components/block-menu-view.d.ts.map +1 -1
- package/dist/components/block-menu.d.ts.map +1 -1
- package/dist/components/block-options.d.ts.map +1 -1
- package/dist/components/editable-area-view.d.ts.map +1 -1
- package/dist/components/front-matter-editor.d.ts +16 -5
- package/dist/components/front-matter-editor.d.ts.map +1 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/thumbnail-button.d.ts +39 -0
- package/dist/components/thumbnail-button.d.ts.map +1 -0
- package/dist/create-mock-engine-BloCpuEu.js +87 -0
- package/dist/create-mock-engine-BloCpuEu.js.map +1 -0
- package/dist/{engine-context-j4-LLPEh.js → dist-DYydjVsL.js} +772 -516
- package/dist/dist-DYydjVsL.js.map +1 -0
- package/dist/{editable-area-view-BRYT222Y.js → editable-area-view-CAeVDyOh.js} +538 -532
- package/dist/editable-area-view-CAeVDyOh.js.map +1 -0
- package/dist/engine-context-oEEsvNSx.js +49 -0
- package/dist/engine-context-oEEsvNSx.js.map +1 -0
- package/dist/form/select-field.d.ts +4 -1
- package/dist/form/select-field.d.ts.map +1 -1
- package/dist/form/text-field.d.ts +11 -1
- package/dist/form/text-field.d.ts.map +1 -1
- package/dist/interest-hints.d.ts +21 -0
- package/dist/interest-hints.d.ts.map +1 -0
- package/dist/replace-element.d.ts +12 -4
- package/dist/replace-element.d.ts.map +1 -1
- package/dist/testing/create-mock-engine.d.ts +3 -0
- package/dist/testing/create-mock-engine.d.ts.map +1 -1
- package/dist/testing-mock-engine.js +1 -0
- package/dist/testing.js +4 -55
- package/dist/testing.js.map +1 -1
- package/dist/ui.d.ts +1 -0
- package/dist/ui.d.ts.map +1 -1
- package/dist/ui.js +267 -160
- package/dist/ui.js.map +1 -1
- package/package.json +25 -21
- package/dist/editable-area-view-BRYT222Y.js.map +0 -1
- package/dist/engine-context-j4-LLPEh.js.map +0 -1
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
//#region \0rolldown/runtime.js
|
|
1
|
+
// \0rolldown/runtime.js
|
|
3
2
|
var __create = Object.create;
|
|
4
3
|
var __defProp = Object.defineProperty;
|
|
5
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
8
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
|
|
10
9
|
var __copyProps = (to, from, except, desc) => {
|
|
11
10
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
11
|
key = keys[i];
|
|
@@ -21,8 +20,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
20
|
value: mod,
|
|
22
21
|
enumerable: true
|
|
23
22
|
}) : target, mod));
|
|
24
|
-
|
|
25
|
-
//#region ../core/dist/block/change-frame-semantics.js
|
|
23
|
+
// ../core/dist/block/change-frame-semantics.js
|
|
26
24
|
/**
|
|
27
25
|
*
|
|
28
26
|
* @param el
|
|
@@ -53,8 +51,7 @@ function copyAttributes(source, target) {
|
|
|
53
51
|
for (const attr of source.attributes) target.setAttribute(attr.name, attr.value);
|
|
54
52
|
if (source.className) target.className = source.className;
|
|
55
53
|
}
|
|
56
|
-
|
|
57
|
-
//#region ../core/dist/const.js
|
|
54
|
+
// ../core/dist/const.js
|
|
58
55
|
var CSS_LAYER = {
|
|
59
56
|
base: "bge-component-bases",
|
|
60
57
|
components: "bge-components",
|
|
@@ -80,8 +77,7 @@ var BLOCK_OPTION_SCOPE_SELECTOR = `[data-bge-container]`;
|
|
|
80
77
|
* ```
|
|
81
78
|
*/
|
|
82
79
|
var EMPTY_CUSTOM_PROPERTY_VALUE = "--bge-empty-custom-property-value";
|
|
83
|
-
|
|
84
|
-
//#region ../core/dist/dom-helpers/sanitize-attrs.js
|
|
80
|
+
// ../core/dist/dom-helpers/sanitize-attrs.js
|
|
85
81
|
var removeAttrNameIgnoreList = /* @__PURE__ */ new Set([
|
|
86
82
|
"data-bge-container",
|
|
87
83
|
"data-bge-name",
|
|
@@ -110,8 +106,7 @@ function sanitizeStyle(el) {
|
|
|
110
106
|
el.removeAttribute("style");
|
|
111
107
|
for (const [property, value] of customProperties) style.setProperty(property, value);
|
|
112
108
|
}
|
|
113
|
-
|
|
114
|
-
//#region ../core/dist/block/import-container-props.js
|
|
109
|
+
// ../core/dist/block/import-container-props.js
|
|
115
110
|
/**
|
|
116
111
|
*
|
|
117
112
|
* @param containerProps
|
|
@@ -131,8 +126,7 @@ function importContainerProps(containerProps) {
|
|
|
131
126
|
if (repeatMinInlineSize) options.add(`--${repeatMinInlineSize}`);
|
|
132
127
|
return [type, ...options].join(":");
|
|
133
128
|
}
|
|
134
|
-
|
|
135
|
-
//#region ../core/dist/block/import-style-options.js
|
|
129
|
+
// ../core/dist/block/import-style-options.js
|
|
136
130
|
/**
|
|
137
131
|
*
|
|
138
132
|
* @param el
|
|
@@ -146,8 +140,7 @@ function importStyleOptions(el, style) {
|
|
|
146
140
|
el.style.setProperty(name, variable);
|
|
147
141
|
}
|
|
148
142
|
}
|
|
149
|
-
|
|
150
|
-
//#region ../core/dist/block/import-options.js
|
|
143
|
+
// ../core/dist/block/import-options.js
|
|
151
144
|
/**
|
|
152
145
|
*
|
|
153
146
|
* @param el
|
|
@@ -168,8 +161,7 @@ function importOptions(el, options) {
|
|
|
168
161
|
for (const group of groups) if (containerProps?.linkarea) group.dataset.bgeLinkarea = "";
|
|
169
162
|
else delete group.dataset.bgeLinkarea;
|
|
170
163
|
}
|
|
171
|
-
|
|
172
|
-
//#region ../core/dist/block/create-plain-structured-block-element.js
|
|
164
|
+
// ../core/dist/block/create-plain-structured-block-element.js
|
|
173
165
|
/**
|
|
174
166
|
* BlockDataからHTML要素を生成する
|
|
175
167
|
*
|
|
@@ -211,8 +203,7 @@ async function createItemElements(items, createItemElement) {
|
|
|
211
203
|
}
|
|
212
204
|
return itemElements;
|
|
213
205
|
}
|
|
214
|
-
|
|
215
|
-
//#region ../core/dist/utils/find-value-from-array.js
|
|
206
|
+
// ../core/dist/utils/find-value-from-array.js
|
|
216
207
|
/**
|
|
217
208
|
*
|
|
218
209
|
* @param array
|
|
@@ -222,8 +213,7 @@ function findValueFromArray(array, searchValues) {
|
|
|
222
213
|
for (const value of searchValues) if (array.includes(value)) return value;
|
|
223
214
|
return null;
|
|
224
215
|
}
|
|
225
|
-
|
|
226
|
-
//#region ../core/dist/utils/find-value-pattern-from-array.js
|
|
216
|
+
// ../core/dist/utils/find-value-pattern-from-array.js
|
|
227
217
|
/**
|
|
228
218
|
*
|
|
229
219
|
* @param array
|
|
@@ -233,8 +223,7 @@ function findValuePatternFromArray(array, pattern) {
|
|
|
233
223
|
for (const value of array) if (pattern.test(value)) return value;
|
|
234
224
|
return null;
|
|
235
225
|
}
|
|
236
|
-
|
|
237
|
-
//#region ../core/dist/block/export-container-props.js
|
|
226
|
+
// ../core/dist/block/export-container-props.js
|
|
238
227
|
/**
|
|
239
228
|
* コンテナ特性の文字列を解析してオブジェクトに変換する
|
|
240
229
|
* @param containerPropsQuery - コンテナ特性の文字列(例: "grid:1", "inline:center:wrap", "float:start")
|
|
@@ -291,8 +280,7 @@ function exportContainerProps(containerPropsQuery) {
|
|
|
291
280
|
repeatMinInlineSize: findValuePatternFromArray(options, /^--(.+)$/)?.slice(2) ?? null
|
|
292
281
|
};
|
|
293
282
|
}
|
|
294
|
-
|
|
295
|
-
//#region ../core/dist/block/parse-style-option-name.js
|
|
283
|
+
// ../core/dist/block/parse-style-option-name.js
|
|
296
284
|
/**
|
|
297
285
|
* Split a style option custom property name into its category and key.
|
|
298
286
|
*
|
|
@@ -317,8 +305,7 @@ function parseStyleOptionName(property) {
|
|
|
317
305
|
key: key ?? null
|
|
318
306
|
};
|
|
319
307
|
}
|
|
320
|
-
|
|
321
|
-
//#region ../core/dist/block/export-style-options.js
|
|
308
|
+
// ../core/dist/block/export-style-options.js
|
|
322
309
|
/**
|
|
323
310
|
* Read the selected style options back from a block container's inline
|
|
324
311
|
* `style`.
|
|
@@ -353,8 +340,7 @@ function exportStyleOptions(el) {
|
|
|
353
340
|
}
|
|
354
341
|
return style;
|
|
355
342
|
}
|
|
356
|
-
|
|
357
|
-
//#region ../core/dist/block/export-options.js
|
|
343
|
+
// ../core/dist/block/export-options.js
|
|
358
344
|
/**
|
|
359
345
|
*
|
|
360
346
|
* @param el
|
|
@@ -375,8 +361,7 @@ function exportOptions(el) {
|
|
|
375
361
|
style
|
|
376
362
|
};
|
|
377
363
|
}
|
|
378
|
-
|
|
379
|
-
//#region ../core/dist/block/highlight.js
|
|
364
|
+
// ../core/dist/block/highlight.js
|
|
380
365
|
var SCROLL_FALLBACK_MS = 400;
|
|
381
366
|
var BLINK_FALLBACK_MS = 2e3;
|
|
382
367
|
/**
|
|
@@ -453,8 +438,7 @@ function blinkOnce(el) {
|
|
|
453
438
|
el.dataset.bgeHighlight = "";
|
|
454
439
|
});
|
|
455
440
|
}
|
|
456
|
-
|
|
457
|
-
//#region ../utils/dist/camel-case.js
|
|
441
|
+
// ../utils/dist/camel-case.js
|
|
458
442
|
var camelCaseCache = /* @__PURE__ */ new Map();
|
|
459
443
|
/**
|
|
460
444
|
*
|
|
@@ -466,8 +450,7 @@ function camelCase(str) {
|
|
|
466
450
|
camelCaseCache.set(str, result);
|
|
467
451
|
return result;
|
|
468
452
|
}
|
|
469
|
-
|
|
470
|
-
//#region ../utils/dist/kebab-case.js
|
|
453
|
+
// ../utils/dist/kebab-case.js
|
|
471
454
|
var kebabCaseCache = /* @__PURE__ */ new Map();
|
|
472
455
|
/**
|
|
473
456
|
*
|
|
@@ -479,8 +462,7 @@ function kebabCase(str) {
|
|
|
479
462
|
kebabCaseCache.set(str, result);
|
|
480
463
|
return result;
|
|
481
464
|
}
|
|
482
|
-
|
|
483
|
-
//#region ../../../node_modules/marked/lib/marked.esm.js
|
|
465
|
+
// ../../../node_modules/marked/lib/marked.esm.js
|
|
484
466
|
/**
|
|
485
467
|
* marked v17.0.6 - a markdown parser
|
|
486
468
|
* Copyright (c) 2018-2026, MarkedJS. (MIT License)
|
|
@@ -2056,8 +2038,7 @@ var Ut = g.walkTokens;
|
|
|
2056
2038
|
var Kt = g.parseInline;
|
|
2057
2039
|
var Xt = b.parse;
|
|
2058
2040
|
var Jt = x.lex;
|
|
2059
|
-
|
|
2060
|
-
//#region ../../../node_modules/turndown/lib/turndown.browser.es.js
|
|
2041
|
+
// ../../../node_modules/turndown/lib/turndown.browser.es.js
|
|
2061
2042
|
function extend(destination) {
|
|
2062
2043
|
for (var i = 1; i < arguments.length; i++) {
|
|
2063
2044
|
var source = arguments[i];
|
|
@@ -2767,8 +2748,8 @@ TurndownService.prototype = {
|
|
|
2767
2748
|
* Reduces a DOM node down to its Markdown string equivalent
|
|
2768
2749
|
* @private
|
|
2769
2750
|
* @param {HTMLElement} parentNode The node to convert
|
|
2770
|
-
* @returns
|
|
2771
|
-
* @type
|
|
2751
|
+
* @returns Accumulator with Markdown representation parts of the node
|
|
2752
|
+
* @type Array
|
|
2772
2753
|
*/
|
|
2773
2754
|
function process(parentNode) {
|
|
2774
2755
|
var self = this;
|
|
@@ -2777,22 +2758,23 @@ function process(parentNode) {
|
|
|
2777
2758
|
var replacement = "";
|
|
2778
2759
|
if (node.nodeType === 3) replacement = node.isCode ? node.nodeValue : self.escape(node.nodeValue);
|
|
2779
2760
|
else if (node.nodeType === 1) replacement = replacementForNode.call(self, node);
|
|
2780
|
-
|
|
2781
|
-
|
|
2761
|
+
join(output, replacement);
|
|
2762
|
+
return output;
|
|
2763
|
+
}, []);
|
|
2782
2764
|
}
|
|
2783
2765
|
/**
|
|
2784
2766
|
* Appends strings as each rule requires and trims the output
|
|
2785
2767
|
* @private
|
|
2786
|
-
* @param {
|
|
2768
|
+
* @param {Array} output The conversion output accumulator
|
|
2787
2769
|
* @returns A trimmed version of the ouput
|
|
2788
2770
|
* @type String
|
|
2789
2771
|
*/
|
|
2790
2772
|
function postProcess(output) {
|
|
2791
2773
|
var self = this;
|
|
2792
2774
|
this.rules.forEach(function(rule) {
|
|
2793
|
-
if (typeof rule.append === "function")
|
|
2775
|
+
if (typeof rule.append === "function") join(output, rule.append(self.options));
|
|
2794
2776
|
});
|
|
2795
|
-
return output.replace(/^[\t\r\n]+/, "").replace(/[\t\r\n\s]+$/, "");
|
|
2777
|
+
return output.join("").replace(/^[\t\r\n]+/, "").replace(/[\t\r\n\s]+$/, "");
|
|
2796
2778
|
}
|
|
2797
2779
|
/**
|
|
2798
2780
|
* Converts an element node to its Markdown equivalent
|
|
@@ -2803,24 +2785,27 @@ function postProcess(output) {
|
|
|
2803
2785
|
*/
|
|
2804
2786
|
function replacementForNode(node) {
|
|
2805
2787
|
var rule = this.rules.forNode(node);
|
|
2806
|
-
var content = process.call(this, node);
|
|
2788
|
+
var content = process.call(this, node).join("");
|
|
2807
2789
|
var whitespace = node.flankingWhitespace;
|
|
2808
2790
|
if (whitespace.leading || whitespace.trailing) content = content.trim();
|
|
2809
2791
|
return whitespace.leading + rule.replacement(content, node, this.options) + whitespace.trailing;
|
|
2810
2792
|
}
|
|
2811
2793
|
/**
|
|
2812
|
-
* Joins replacement
|
|
2794
|
+
* Joins replacement with the current output accumulator using the appropriate number of new lines
|
|
2795
|
+
* (makes sure the only trailing whitespace will be in the last array element)
|
|
2813
2796
|
* @private
|
|
2814
|
-
* @param {String} output The current conversion output
|
|
2797
|
+
* @param {String} output The current conversion output accumulator
|
|
2815
2798
|
* @param {String} replacement The string to append to the output
|
|
2816
|
-
* @returns Joined output
|
|
2817
|
-
* @type String
|
|
2818
2799
|
*/
|
|
2819
2800
|
function join(output, replacement) {
|
|
2820
|
-
var
|
|
2801
|
+
var tail = output.pop() || "";
|
|
2802
|
+
var s1 = trimTrailingNewlines(tail);
|
|
2821
2803
|
var s2 = trimLeadingNewlines(replacement);
|
|
2822
|
-
var nls = Math.max(
|
|
2823
|
-
|
|
2804
|
+
var nls = Math.max(tail.length - s1.length, replacement.length - s2.length);
|
|
2805
|
+
var separator = "\n\n".substring(0, nls);
|
|
2806
|
+
if (s1) output.push(s1);
|
|
2807
|
+
if (separator) output.push(separator);
|
|
2808
|
+
if (s2) output.push(s2);
|
|
2824
2809
|
}
|
|
2825
2810
|
/**
|
|
2826
2811
|
* Determines whether an input can be converted
|
|
@@ -2832,12 +2817,11 @@ function join(output, replacement) {
|
|
|
2832
2817
|
function canConvert(input) {
|
|
2833
2818
|
return input != null && (typeof input === "string" || input.nodeType && (input.nodeType === 1 || input.nodeType === 9 || input.nodeType === 11));
|
|
2834
2819
|
}
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
var require_dayjs_min = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2820
|
+
// ../../../node_modules/dayjs/dayjs.min.js
|
|
2821
|
+
var require_dayjs_min = /* @__PURE__ */ __commonJSMin(((exports, module, this$2) => {
|
|
2838
2822
|
(function(t, e) {
|
|
2839
2823
|
"object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
|
|
2840
|
-
})(
|
|
2824
|
+
})(this$2, (function() {
|
|
2841
2825
|
"use strict";
|
|
2842
2826
|
var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = {
|
|
2843
2827
|
name: "en",
|
|
@@ -3130,8 +3114,7 @@ var require_dayjs_min = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3130
3114
|
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
3131
3115
|
}));
|
|
3132
3116
|
}));
|
|
3133
|
-
|
|
3134
|
-
//#region ../utils/dist/utils.js
|
|
3117
|
+
// ../utils/dist/utils.js
|
|
3135
3118
|
var import_dayjs_min = /* @__PURE__ */ __toESM(require_dayjs_min(), 1);
|
|
3136
3119
|
/**
|
|
3137
3120
|
* 数値をバイトサイズ単位にフォーマットする
|
|
@@ -3169,8 +3152,7 @@ function formatByteSize(byteSize, digits = 2, autoFormat = true) {
|
|
|
3169
3152
|
function formatDate(timestamp, format) {
|
|
3170
3153
|
return import_dayjs_min.default.unix(timestamp).format(format);
|
|
3171
3154
|
}
|
|
3172
|
-
|
|
3173
|
-
//#region ../frozen-patty/dist/normalize-indent.js
|
|
3155
|
+
// ../frozen-patty/dist/normalize-indent.js
|
|
3174
3156
|
/**
|
|
3175
3157
|
* Normalizes the indentation of a multi-line HTML string by detecting the indentation
|
|
3176
3158
|
* of the first line and removing the same amount of leading whitespace (spaces or tabs)
|
|
@@ -3196,8 +3178,7 @@ function normalizeIndent(html) {
|
|
|
3196
3178
|
if (firstLineIndent.length === 0) return trimmedHtml.trimEnd();
|
|
3197
3179
|
return lines.map((line) => line.replace(firstLineIndent, "")).join("").trimEnd();
|
|
3198
3180
|
}
|
|
3199
|
-
|
|
3200
|
-
//#region ../frozen-patty/dist/parse-fields.js
|
|
3181
|
+
// ../frozen-patty/dist/parse-fields.js
|
|
3201
3182
|
var cache = /* @__PURE__ */ new Map();
|
|
3202
3183
|
/**
|
|
3203
3184
|
*
|
|
@@ -3226,10 +3207,26 @@ function parseField(field) {
|
|
|
3226
3207
|
propName
|
|
3227
3208
|
};
|
|
3228
3209
|
}
|
|
3229
|
-
|
|
3230
|
-
|
|
3210
|
+
// ../frozen-patty/dist/get-values.js
|
|
3211
|
+
/**
|
|
3212
|
+
* 属性が無いときに `null` として読む `<source>` の属性。要素のプロパティが
|
|
3213
|
+
* 属性の有無を隠す(空文字や `0` になる)ものだけを挙げる
|
|
3214
|
+
*/
|
|
3215
|
+
var SOURCE_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
3216
|
+
"srcset",
|
|
3217
|
+
"media",
|
|
3218
|
+
"sizes",
|
|
3219
|
+
"width",
|
|
3220
|
+
"height"
|
|
3221
|
+
]);
|
|
3231
3222
|
/**
|
|
3232
3223
|
* Get value from an element
|
|
3224
|
+
*
|
|
3225
|
+
* For a `<source>` element, an attribute that is not set (`srcset`, `media`,
|
|
3226
|
+
* `sizes`, `width`, `height`) is read as `null` instead of the empty string
|
|
3227
|
+
* or `0` that the element property would report. An attribute that is set
|
|
3228
|
+
* to an empty string stays an empty string, so "not set" and "empty" remain
|
|
3229
|
+
* distinguishable and a round trip does not leave `srcset=""` / `width="0"`.
|
|
3233
3230
|
* @param el A target element
|
|
3234
3231
|
* @param convertType Auto covert type of value
|
|
3235
3232
|
* @param attr Data attribute name for specifying the node that FrozenPatty treats as a field
|
|
@@ -3265,6 +3262,7 @@ function getValues(el, convertType = false, attr = "field", filter) {
|
|
|
3265
3262
|
else style = window.getComputedStyle(el);
|
|
3266
3263
|
value = style.getPropertyValue(css);
|
|
3267
3264
|
if (css === "background-image") value = getBackgroundImagePath(value);
|
|
3265
|
+
if (css.startsWith("--") && convertType) value = parse(value.trim());
|
|
3268
3266
|
break;
|
|
3269
3267
|
}
|
|
3270
3268
|
value = getAttribute(el, propName, attr, convertType);
|
|
@@ -3291,6 +3289,7 @@ function getValues(el, convertType = false, attr = "field", filter) {
|
|
|
3291
3289
|
* @param typeConvert
|
|
3292
3290
|
*/
|
|
3293
3291
|
function getAttribute(el, keyAttr, attr, typeConvert) {
|
|
3292
|
+
if (el.localName === "source" && SOURCE_ATTRIBUTES.has(keyAttr) && !el.hasAttribute(keyAttr)) return null;
|
|
3294
3293
|
switch (keyAttr) {
|
|
3295
3294
|
case "contenteditable": if (el instanceof HTMLElement) return el.contentEditable === "" || el.contentEditable === "true";
|
|
3296
3295
|
else return el.getAttribute(keyAttr) === "" || el.getAttribute(keyAttr) === "true";
|
|
@@ -3351,10 +3350,27 @@ function getBackgroundImagePath(value) {
|
|
|
3351
3350
|
const origin = `${location.protocol}//${location.hostname}${location.port ? `:${location.port}` : ""}`;
|
|
3352
3351
|
return decodeURI(value.replace(/^url\(["']?([^"']+)["']?\)$/i, "$1").replace(origin, ""));
|
|
3353
3352
|
}
|
|
3354
|
-
|
|
3355
|
-
//#region ../frozen-patty/dist/utils.js
|
|
3353
|
+
// ../frozen-patty/dist/utils.js
|
|
3356
3354
|
/**
|
|
3357
|
-
*
|
|
3355
|
+
* Elements (lower-case local names) that are always removed, together with their
|
|
3356
|
+
* content, for XSS protection.
|
|
3357
|
+
*
|
|
3358
|
+
* - `noscript` is parsed as elements when scripting is off (the inert document the
|
|
3359
|
+
* sanitizer parses in) and as raw text when it is on (a published page), so a
|
|
3360
|
+
* `</noscript>` inside an attribute value ends the element only in the page. No
|
|
3361
|
+
* amount of re-parsing in the sanitizer can see that, so the element goes.
|
|
3362
|
+
* - `base` rewrites every relative URL of the page.
|
|
3363
|
+
*
|
|
3364
|
+
* Entries are compared with the lower-cased `localName`.
|
|
3365
|
+
*
|
|
3366
|
+
* `meta`, `link` and the SVG animation elements (`animate`, `set`, `animateMotion`,
|
|
3367
|
+
* `animateTransform`) are not listed: only some of them do harm, depending on their
|
|
3368
|
+
* attributes (see {@link isDangerousElement}), so they are decided per element.
|
|
3369
|
+
* @example
|
|
3370
|
+
* ```ts
|
|
3371
|
+
* DANGEROUS_ELEMENTS.includes('noscript'); // true
|
|
3372
|
+
* DANGEROUS_ELEMENTS.includes('span'); // false
|
|
3373
|
+
* ```
|
|
3358
3374
|
*/
|
|
3359
3375
|
var DANGEROUS_ELEMENTS = [
|
|
3360
3376
|
"script",
|
|
@@ -3365,7 +3381,9 @@ var DANGEROUS_ELEMENTS = [
|
|
|
3365
3381
|
"iframe",
|
|
3366
3382
|
"frame",
|
|
3367
3383
|
"frameset",
|
|
3368
|
-
"applet"
|
|
3384
|
+
"applet",
|
|
3385
|
+
"noscript",
|
|
3386
|
+
"base"
|
|
3369
3387
|
];
|
|
3370
3388
|
/**
|
|
3371
3389
|
* `data-*-list` の子要素で、DOM 順と配列データの index が逆になる要素。
|
|
@@ -3382,33 +3400,25 @@ function isReverseListElement(el) {
|
|
|
3382
3400
|
return REVERSE_LIST_ELEMENTS.includes(el.localName);
|
|
3383
3401
|
}
|
|
3384
3402
|
/**
|
|
3403
|
+
* Replaces `el` with an element named `nodeName`, carrying over its children and the
|
|
3404
|
+
* attributes that no field is bound to (the bound ones are written later, by the
|
|
3405
|
+
* fields).
|
|
3385
3406
|
*
|
|
3386
|
-
*
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
}
|
|
3402
|
-
result[k] = k in result ? [arrayPropVal, v] : [v];
|
|
3403
|
-
}
|
|
3404
|
-
return result;
|
|
3405
|
-
}
|
|
3406
|
-
/**
|
|
3407
|
-
*
|
|
3408
|
-
* @param el
|
|
3409
|
-
* @param nodeName
|
|
3410
|
-
* @param attr
|
|
3411
|
-
* @param xssSanitize
|
|
3407
|
+
* With `xssSanitize`, the original `el` is returned and stays in place when the new
|
|
3408
|
+
* element would be dangerous. The name is checked first against {@link DANGEROUS_ELEMENTS}.
|
|
3409
|
+
* `meta` and `link` are decided by their attributes, so they are checked again once the
|
|
3410
|
+
* attributes are copied; `setComponent` checks them a third time after the fields have
|
|
3411
|
+
* written theirs.
|
|
3412
|
+
* @param el The element to replace
|
|
3413
|
+
* @param nodeName The local name of the new element
|
|
3414
|
+
* @param attr Data attribute name for specifying the node that FrozenPatty treats as a field
|
|
3415
|
+
* @param xssSanitize Enable XSS protection
|
|
3416
|
+
* @returns The new element, or `el` when nothing was replaced
|
|
3417
|
+
* @example
|
|
3418
|
+
* ```ts
|
|
3419
|
+
* replaceNode(document.createElement('div'), 'span', 'bge').localName; // 'span' (when `el` has a parent)
|
|
3420
|
+
* replaceNode(el, 'script', 'bge') === el; // true
|
|
3421
|
+
* ```
|
|
3412
3422
|
*/
|
|
3413
3423
|
function replaceNode(el, nodeName, attr, xssSanitize = true) {
|
|
3414
3424
|
nodeName = nodeName.toLowerCase();
|
|
@@ -3427,49 +3437,235 @@ function replaceNode(el, nodeName, attr, xssSanitize = true) {
|
|
|
3427
3437
|
}
|
|
3428
3438
|
node.setAttribute(name, value);
|
|
3429
3439
|
}
|
|
3440
|
+
if (xssSanitize && isDangerousElement(node)) return el;
|
|
3430
3441
|
el.replaceWith(node);
|
|
3431
3442
|
return node;
|
|
3432
3443
|
}
|
|
3433
3444
|
/**
|
|
3434
|
-
*
|
|
3445
|
+
* The number of parse → clean → serialize rounds {@link sanitizeHtml} tries before it
|
|
3446
|
+
* gives up and returns an empty string.
|
|
3447
|
+
*/
|
|
3448
|
+
var MAX_SANITIZE_PASSES = 5;
|
|
3449
|
+
/**
|
|
3450
|
+
* Elements whose content is run as script or applied as CSS, so that data written into
|
|
3451
|
+
* them is an injection by itself, whatever it contains
|
|
3452
|
+
*/
|
|
3453
|
+
var CODE_CONTEXTS = /* @__PURE__ */ new Set(["script", "style"]);
|
|
3454
|
+
/**
|
|
3455
|
+
* One inert document per `document`, reused by every call: creating one costs more
|
|
3456
|
+
* than parsing a field's worth of HTML in it.
|
|
3457
|
+
*/
|
|
3458
|
+
var inertDocuments = /* @__PURE__ */ new WeakMap();
|
|
3459
|
+
/**
|
|
3460
|
+
* @returns A document in which nothing is loaded and nothing runs
|
|
3461
|
+
*/
|
|
3462
|
+
function getInertDocument() {
|
|
3463
|
+
let inert = inertDocuments.get(document);
|
|
3464
|
+
if (!inert) {
|
|
3465
|
+
inert = document.implementation.createHTMLDocument("");
|
|
3466
|
+
inertDocuments.set(document, inert);
|
|
3467
|
+
}
|
|
3468
|
+
return inert;
|
|
3469
|
+
}
|
|
3470
|
+
/**
|
|
3471
|
+
* Removes what could run script from an HTML string, and returns HTML that parses
|
|
3472
|
+
* to the same tree again.
|
|
3473
|
+
*
|
|
3474
|
+
* - The string is parsed once per round in an inert document (nothing is loaded,
|
|
3475
|
+
* nothing runs), as the children of an element like `context`. The context
|
|
3476
|
+
* matters: `<tr>` and `<td>` survive only inside a table-ish context, and the text
|
|
3477
|
+
* of `<style>` is raw text in HTML but elements in SVG. Pass the element itself, so
|
|
3478
|
+
* its namespace is kept, and what was checked is the tree that gets re-parsed on the
|
|
3479
|
+
* published page.
|
|
3480
|
+
* - Rounds repeat until the serialization stops changing (a parse → serialize
|
|
3481
|
+
* round trip of MathML / SVG with `style` is not stable, which is what mXSS
|
|
3482
|
+
* uses). A string that has not settled after {@link MAX_SANITIZE_PASSES}
|
|
3483
|
+
* rounds is dropped entirely rather than returned half-cleaned, and a warning says so.
|
|
3484
|
+
* - What is removed: the elements {@link isDangerousElement} reports, with their
|
|
3485
|
+
* content (a microdata `<link itemprop>` without `rel` is content and stays), and
|
|
3486
|
+
* the attributes {@link sanitizeAttributeValue} rejects.
|
|
3487
|
+
* - A string without `<` has no markup to clean (a character reference such as `<`
|
|
3488
|
+
* decodes to text, never to an element) and is returned as it is.
|
|
3489
|
+
* - Nothing can be made safe to put in a `<script>` or a `<style>` (the data is the
|
|
3490
|
+
* code), so an empty string is returned for such a `context`.
|
|
3491
|
+
*
|
|
3492
|
+
* The result is only as safe as the place it is inserted: put it in the element, or an
|
|
3493
|
+
* element of the same name and namespace, that was passed as `context`.
|
|
3435
3494
|
* @param html HTML string
|
|
3436
|
-
* @
|
|
3495
|
+
* @param context The element the result is inserted into, or its local name (HTML namespace)
|
|
3496
|
+
* @returns Sanitized HTML, an empty string when it cannot be made stable, and an empty
|
|
3497
|
+
* string when `html` is not a string or `context` is a `script` or a `style`
|
|
3498
|
+
* @example
|
|
3499
|
+
* ```ts
|
|
3500
|
+
* sanitizeHtml('<a href="java	script:alert(1)">x</a>'); // '<a>x</a>'
|
|
3501
|
+
* sanitizeHtml('a<script>alert(1)<\/script>b'); // 'ab'
|
|
3502
|
+
* sanitizeHtml('<td>x</td>', 'tr'); // '<td>x</td>'
|
|
3503
|
+
*
|
|
3504
|
+
* const text = document.createElementNS('http://www.w3.org/2000/svg', 'text');
|
|
3505
|
+
* sanitizeHtml('<tspan>x</tspan><animate attributeName="href"/>', text); // '<tspan>x</tspan>'
|
|
3506
|
+
* ```
|
|
3437
3507
|
*/
|
|
3438
|
-
function sanitizeHtml(html) {
|
|
3508
|
+
function sanitizeHtml(html, context = "div") {
|
|
3439
3509
|
if (typeof html !== "string") return "";
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3510
|
+
if (CODE_CONTEXTS.has((typeof context === "string" ? context : context.localName).toLowerCase())) return "";
|
|
3511
|
+
if (!html.includes("<")) return html;
|
|
3512
|
+
const inert = getInertDocument();
|
|
3513
|
+
let current = html;
|
|
3514
|
+
for (let pass = 0; pass < MAX_SANITIZE_PASSES; pass++) {
|
|
3515
|
+
const host = typeof context === "string" ? inert.createElement(context) : inert.createElementNS(context.namespaceURI, context.localName);
|
|
3516
|
+
host.innerHTML = current;
|
|
3517
|
+
sanitizeChildren(host instanceof HTMLTemplateElement ? host.content : host);
|
|
3518
|
+
const next = host.innerHTML;
|
|
3519
|
+
if (next === current) return next;
|
|
3520
|
+
current = next;
|
|
3521
|
+
}
|
|
3522
|
+
console.warn(`[frozen-patty] An HTML string did not settle within ${MAX_SANITIZE_PASSES} sanitizing rounds and was dropped.`);
|
|
3523
|
+
return "";
|
|
3524
|
+
}
|
|
3525
|
+
/**
|
|
3526
|
+
* Removes dangerous elements and attributes below `parent`
|
|
3527
|
+
* @param parent
|
|
3528
|
+
*/
|
|
3529
|
+
function sanitizeChildren(parent) {
|
|
3530
|
+
const dangerous = [];
|
|
3531
|
+
for (const child of parent.children) {
|
|
3532
|
+
if (isDangerousElement(child)) {
|
|
3533
|
+
dangerous.push(child);
|
|
3534
|
+
continue;
|
|
3535
|
+
}
|
|
3536
|
+
sanitizeAttributes(child);
|
|
3537
|
+
sanitizeChildren(child instanceof HTMLTemplateElement ? child.content : child);
|
|
3538
|
+
}
|
|
3539
|
+
for (const child of dangerous) child.remove();
|
|
3540
|
+
}
|
|
3541
|
+
/**
|
|
3542
|
+
* SVG elements that set an attribute of their target at run time
|
|
3543
|
+
*/
|
|
3544
|
+
var ANIMATION_ELEMENTS = /* @__PURE__ */ new Set([
|
|
3545
|
+
"animate",
|
|
3546
|
+
"set",
|
|
3547
|
+
"animatemotion",
|
|
3548
|
+
"animatetransform"
|
|
3549
|
+
]);
|
|
3550
|
+
/**
|
|
3551
|
+
* Whether an SVG animation element sets `href` or an event handler of its target.
|
|
3552
|
+
* The value of what it sets (`to`, `values`, …) is never looked at by the attribute
|
|
3553
|
+
* checks, so a `javascript:` URL there reaches a link; the element goes instead. Only
|
|
3554
|
+
* `attributeName` decides, read as the SMIL engine does (case ignored, `xlink:` dropped).
|
|
3555
|
+
* @param el
|
|
3556
|
+
*/
|
|
3557
|
+
function animatesDangerousAttribute(el) {
|
|
3558
|
+
for (const { name, value } of el.attributes) if (name.toLowerCase() === "attributename") {
|
|
3559
|
+
const target = value.trim().toLowerCase().replace(/^xlink:/, "");
|
|
3560
|
+
return target === "href" || target.startsWith("on");
|
|
3444
3561
|
}
|
|
3445
|
-
|
|
3446
|
-
sanitizeElementAndChildren(fragment);
|
|
3447
|
-
return [...fragment.childNodes].map((node) => {
|
|
3448
|
-
if (node instanceof Element) return node.outerHTML;
|
|
3449
|
-
return node.textContent ?? node.nodeValue ?? "";
|
|
3450
|
-
}).join("");
|
|
3562
|
+
return false;
|
|
3451
3563
|
}
|
|
3452
3564
|
/**
|
|
3453
|
-
*
|
|
3454
|
-
* @
|
|
3565
|
+
* Whether the XSS protection removes an element together with its content: an element
|
|
3566
|
+
* in {@link DANGEROUS_ELEMENTS}, a `<meta>` with `http-equiv` (a redirect), a
|
|
3567
|
+
* `<link>` that is not plain microdata (without `itemprop`, or with `rel`, which loads
|
|
3568
|
+
* a stylesheet or a resource hint), and an SVG animation element (`animate`, `set`,
|
|
3569
|
+
* `animateMotion`, `animateTransform`) whose `attributeName` is `href` or an event
|
|
3570
|
+
* handler. Other animations (`attributeName="opacity"`) are content and stay.
|
|
3571
|
+
* @param el The element to judge, by its name and its attributes at this moment
|
|
3572
|
+
* @returns `true` when the element is removed together with its content
|
|
3573
|
+
* @example
|
|
3574
|
+
* ```ts
|
|
3575
|
+
* isDangerousElement(document.createElement('script')); // true
|
|
3576
|
+
* // <meta http-equiv="refresh" content="0;url=…"> redirects the page
|
|
3577
|
+
* // <meta itemprop="name" content="x"> is microdata
|
|
3578
|
+
* // <link rel="stylesheet" href="…"> and <link href="…"> load a resource
|
|
3579
|
+
* // <link itemprop="url" href="…"> is microdata
|
|
3580
|
+
* // <animate attributeName="href" to="javascript:…"> rewrites a link
|
|
3581
|
+
* // <animate attributeName="opacity" from="0" to="1"> is an animation
|
|
3582
|
+
* ```
|
|
3455
3583
|
*/
|
|
3456
|
-
function
|
|
3457
|
-
|
|
3458
|
-
|
|
3584
|
+
function isDangerousElement(el) {
|
|
3585
|
+
const name = el.localName.toLowerCase();
|
|
3586
|
+
if (DANGEROUS_ELEMENTS.includes(name)) return true;
|
|
3587
|
+
if (name === "meta") return el.hasAttribute("http-equiv");
|
|
3588
|
+
if (name === "link") return !el.hasAttribute("itemprop") || el.hasAttribute("rel");
|
|
3589
|
+
if (ANIMATION_ELEMENTS.has(name)) return animatesDangerousAttribute(el);
|
|
3590
|
+
return false;
|
|
3459
3591
|
}
|
|
3460
3592
|
/**
|
|
3461
|
-
*
|
|
3462
|
-
*
|
|
3593
|
+
* Attributes whose value is a URL that the browser follows or loads. `poster`, `ping`,
|
|
3594
|
+
* `cite` and `background` do not run script in current browsers; they are checked
|
|
3595
|
+
* defensively, so that a stored page carries no `javascript:` or `data:` URL in any URL
|
|
3596
|
+
* attribute. (`ping` is a list: only its first URL is checked.)
|
|
3597
|
+
*/
|
|
3598
|
+
var URL_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
3599
|
+
"href",
|
|
3600
|
+
"src",
|
|
3601
|
+
"action",
|
|
3602
|
+
"formaction",
|
|
3603
|
+
"xlink:href",
|
|
3604
|
+
"poster",
|
|
3605
|
+
"ping",
|
|
3606
|
+
"cite",
|
|
3607
|
+
"background"
|
|
3608
|
+
]);
|
|
3609
|
+
/**
|
|
3610
|
+
* Names of the event handler attributes (`onclick`, `onerror`, …)
|
|
3611
|
+
*/
|
|
3612
|
+
var EVENT_HANDLER_NAME = /^on[a-z]+$/;
|
|
3613
|
+
/**
|
|
3614
|
+
* The attributes in which an image is loaded as an image, so that a `data:` URL of a
|
|
3615
|
+
* raster image is content and cannot run script
|
|
3616
|
+
*/
|
|
3617
|
+
var DATA_IMAGE_ATTRIBUTES = /* @__PURE__ */ new Set(["src", "poster"]);
|
|
3618
|
+
/**
|
|
3619
|
+
* A `data:` URL of a raster image. SVG is left out: in `<img>` it does not run script,
|
|
3620
|
+
* but the same value is no safer for being named `src`.
|
|
3621
|
+
*/
|
|
3622
|
+
var SAFE_DATA_IMAGE = /^data:image\/(?:png|jpeg|gif|webp|avif)[;,]/;
|
|
3623
|
+
/**
|
|
3624
|
+
* Reduces a URL attribute value to what the URL parser sees: leading C0 controls and
|
|
3625
|
+
* spaces dropped, ASCII tabs and newlines removed anywhere, lower-cased.
|
|
3626
|
+
* @param value
|
|
3627
|
+
*/
|
|
3628
|
+
function normalizeUrl(value) {
|
|
3629
|
+
const noBreaks = value.replaceAll(/[\t\n\r]/g, "");
|
|
3630
|
+
let start = 0;
|
|
3631
|
+
while (start < noBreaks.length && noBreaks.codePointAt(start) <= 32) start++;
|
|
3632
|
+
return noBreaks.slice(start).toLowerCase();
|
|
3633
|
+
}
|
|
3634
|
+
/**
|
|
3635
|
+
* Judges whether an attribute may be written with the given value.
|
|
3636
|
+
*
|
|
3637
|
+
* - Event handler attributes (`on` and letters: `onclick`, `onerror`, …) and `manifest`
|
|
3638
|
+
* are never allowed.
|
|
3639
|
+
* - For the URL attributes (`href`, `src`, `action`, `formaction`, `xlink:href`,
|
|
3640
|
+
* `poster`, `ping`, `cite`, `background`) a value that starts with `javascript:`,
|
|
3641
|
+
* `data:` or `vbscript:` is not allowed. The value is read the way the URL parser
|
|
3642
|
+
* reads it (leading control characters and spaces dropped, tabs and newlines removed
|
|
3643
|
+
* anywhere, case ignored), because `java	script:alert(1)` is a `javascript:` URL
|
|
3644
|
+
* to the browser but not to a plain `startsWith`.
|
|
3645
|
+
* - The exception is a `data:` URL of a raster image (`png`, `jpeg`, `gif`, `webp`,
|
|
3646
|
+
* `avif`) in `src` or `poster`, which loads as an image and runs nothing.
|
|
3647
|
+
* - Anything else, and any value that is not a string, passes.
|
|
3648
|
+
* @param name Attribute name (case is ignored)
|
|
3463
3649
|
* @param value Attribute value
|
|
3464
|
-
* @returns
|
|
3650
|
+
* @returns The value itself, or `null` when the attribute must not be written
|
|
3651
|
+
* @example
|
|
3652
|
+
* ```ts
|
|
3653
|
+
* sanitizeAttributeValue('href', 'java\tscript:alert(1)'); // null
|
|
3654
|
+
* sanitizeAttributeValue('onclick', 'x()'); // null
|
|
3655
|
+
* sanitizeAttributeValue('href', 'https://example.com/'); // 'https://example.com/'
|
|
3656
|
+
* sanitizeAttributeValue('title', 'javascript: is a language'); // 'javascript: is a language'
|
|
3657
|
+
* sanitizeAttributeValue('one-time', 'x'); // 'x'
|
|
3658
|
+
* sanitizeAttributeValue('src', 'data:image/png;base64,AAAA'); // 'data:image/png;base64,AAAA'
|
|
3659
|
+
* sanitizeAttributeValue('href', 'data:image/png;base64,AAAA'); // null
|
|
3660
|
+
* ```
|
|
3465
3661
|
*/
|
|
3466
3662
|
function sanitizeAttributeValue(name, value) {
|
|
3467
3663
|
if (typeof value !== "string") return value;
|
|
3468
3664
|
name = name.toLowerCase();
|
|
3469
|
-
if (
|
|
3470
|
-
if (name
|
|
3471
|
-
const
|
|
3472
|
-
if (
|
|
3665
|
+
if (EVENT_HANDLER_NAME.test(name)) return null;
|
|
3666
|
+
if (URL_ATTRIBUTES.has(name)) {
|
|
3667
|
+
const url = normalizeUrl(value);
|
|
3668
|
+
if (url.startsWith("javascript:") || url.startsWith("vbscript:") || url.startsWith("data:") && !(DATA_IMAGE_ATTRIBUTES.has(name) && SAFE_DATA_IMAGE.test(url))) return null;
|
|
3473
3669
|
}
|
|
3474
3670
|
if (["manifest"].includes(name)) return null;
|
|
3475
3671
|
return value;
|
|
@@ -3557,7 +3753,11 @@ function flattenData(data, index) {
|
|
|
3557
3753
|
/**
|
|
3558
3754
|
* 特定の要素で、`propName in element`で判定できない属性名
|
|
3559
3755
|
*/
|
|
3560
|
-
var specificProp = {
|
|
3756
|
+
var specificProp = {
|
|
3757
|
+
source: ["width", "height"],
|
|
3758
|
+
img: ["loading"],
|
|
3759
|
+
button: ["command"]
|
|
3760
|
+
};
|
|
3561
3761
|
/**
|
|
3562
3762
|
*
|
|
3563
3763
|
* @param el
|
|
@@ -3567,8 +3767,7 @@ function propInElement(el, name) {
|
|
|
3567
3767
|
if (name in el) return true;
|
|
3568
3768
|
return specificProp[el.localName]?.includes(name) ?? false;
|
|
3569
3769
|
}
|
|
3570
|
-
|
|
3571
|
-
//#region ../frozen-patty/dist/get-component.js
|
|
3770
|
+
// ../frozen-patty/dist/get-component.js
|
|
3572
3771
|
/**
|
|
3573
3772
|
*
|
|
3574
3773
|
* @param el
|
|
@@ -3587,13 +3786,103 @@ function getComponent(el, attr, typeConvert, filter) {
|
|
|
3587
3786
|
}
|
|
3588
3787
|
reverseListElement.append(...children);
|
|
3589
3788
|
}
|
|
3789
|
+
const listAttr = `data-${attr}-list`;
|
|
3590
3790
|
const filedElements = el.querySelectorAll(`[data-${attr}]`);
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3791
|
+
const values = [];
|
|
3792
|
+
const childIndexes = /* @__PURE__ */ new Map();
|
|
3793
|
+
for (const _el of filedElements) {
|
|
3794
|
+
const positions = listPositions(_el, listAttr, childIndexes);
|
|
3795
|
+
for (const [key, value, forceArray] of getValues(_el, typeConvert, attr, filter)) values.push([
|
|
3796
|
+
key,
|
|
3797
|
+
value,
|
|
3798
|
+
forceArray,
|
|
3799
|
+
positions
|
|
3800
|
+
]);
|
|
3801
|
+
}
|
|
3802
|
+
return nestedArrayToHash(values);
|
|
3803
|
+
}
|
|
3804
|
+
/**
|
|
3805
|
+
* 要素を含むリスト(祖先のみ。自分自身は含まない)ごとの位置を、外側から順に返す。
|
|
3806
|
+
* `picture` の子は呼び出し側が先に反転しているので、DOM の順がデータの順になる
|
|
3807
|
+
* @param el
|
|
3808
|
+
* @param listAttr
|
|
3809
|
+
* @param childIndexes - リストの根ごとの、子の位置。フィールドの要素ごとに子を数え直さない
|
|
3810
|
+
* (数え直すと、リストの項目数とフィールド数の積の手間になる)よう、読み取り 1 回の間で使い回す
|
|
3811
|
+
*/
|
|
3812
|
+
function listPositions(el, listAttr, childIndexes) {
|
|
3813
|
+
const positions = [];
|
|
3814
|
+
let child = el;
|
|
3815
|
+
let parent = child.parentElement;
|
|
3816
|
+
while (parent) {
|
|
3817
|
+
if (parent.hasAttribute(listAttr)) {
|
|
3818
|
+
let indexes = childIndexes.get(parent);
|
|
3819
|
+
if (!indexes) {
|
|
3820
|
+
indexes = new Map([...parent.children].map((item, index) => [item, index]));
|
|
3821
|
+
childIndexes.set(parent, indexes);
|
|
3822
|
+
}
|
|
3823
|
+
positions.unshift({
|
|
3824
|
+
index: indexes.get(child) ?? -1,
|
|
3825
|
+
length: parent.children.length
|
|
3826
|
+
});
|
|
3827
|
+
}
|
|
3828
|
+
child = parent;
|
|
3829
|
+
parent = parent.parentElement;
|
|
3830
|
+
}
|
|
3831
|
+
return positions;
|
|
3832
|
+
}
|
|
3833
|
+
/**
|
|
3834
|
+
* 値をキーごとにまとめる。入れ子でない値(リストの外・深さ 1 のリスト)は
|
|
3835
|
+
* `arrayToHash` と同じ規則で、入れ子の値は外側の項目の位置ごとの配列に置く
|
|
3836
|
+
* @param values
|
|
3837
|
+
*/
|
|
3838
|
+
function nestedArrayToHash(values) {
|
|
3839
|
+
const result = {};
|
|
3840
|
+
for (const [key, value, forceArray, positions] of values) {
|
|
3841
|
+
if (!forceArray) {
|
|
3842
|
+
result[key] = value;
|
|
3843
|
+
continue;
|
|
3844
|
+
}
|
|
3845
|
+
const outer = positions.slice(0, -1);
|
|
3846
|
+
const current = result[key];
|
|
3847
|
+
if (outer.length === 0) {
|
|
3848
|
+
if (Array.isArray(current)) {
|
|
3849
|
+
current.push(value);
|
|
3850
|
+
continue;
|
|
3851
|
+
}
|
|
3852
|
+
result[key] = key in result ? [current, value] : [value];
|
|
3853
|
+
continue;
|
|
3854
|
+
}
|
|
3855
|
+
let container;
|
|
3856
|
+
if (Array.isArray(current)) container = current;
|
|
3857
|
+
else {
|
|
3858
|
+
container = key in result ? [current] : [];
|
|
3859
|
+
result[key] = container;
|
|
3860
|
+
}
|
|
3861
|
+
place(container, outer, value);
|
|
3862
|
+
}
|
|
3863
|
+
return result;
|
|
3864
|
+
}
|
|
3865
|
+
/**
|
|
3866
|
+
* 外側の段の位置に従って、値を入れ子の配列に置く。最も内側では文書順に積む
|
|
3867
|
+
* @param container
|
|
3868
|
+
* @param outer
|
|
3869
|
+
* @param value
|
|
3870
|
+
*/
|
|
3871
|
+
function place(container, outer, value) {
|
|
3872
|
+
const [position, ...rest] = outer;
|
|
3873
|
+
if (!position) {
|
|
3874
|
+
container.push(value);
|
|
3875
|
+
return;
|
|
3876
|
+
}
|
|
3877
|
+
while (container.length < position.length) container.push([]);
|
|
3878
|
+
let slot = container[position.index];
|
|
3879
|
+
if (!Array.isArray(slot)) {
|
|
3880
|
+
slot = slot === void 0 ? [] : [slot];
|
|
3881
|
+
container[position.index] = slot;
|
|
3882
|
+
}
|
|
3883
|
+
place(slot, rest, value);
|
|
3594
3884
|
}
|
|
3595
|
-
|
|
3596
|
-
//#region ../frozen-patty/dist/set-value.js
|
|
3885
|
+
// ../frozen-patty/dist/set-value.js
|
|
3597
3886
|
/**
|
|
3598
3887
|
* Set value to an element
|
|
3599
3888
|
*
|
|
@@ -3935,7 +4224,7 @@ function setContent(el, datum, asHtml = true, xssSanitize = true) {
|
|
|
3935
4224
|
}
|
|
3936
4225
|
if (asHtml) {
|
|
3937
4226
|
const htmlStr = datum == null ? "" : `${datum}`;
|
|
3938
|
-
if (xssSanitize && typeof htmlStr === "string") el.innerHTML = sanitizeHtml(htmlStr);
|
|
4227
|
+
if (xssSanitize && typeof htmlStr === "string") el.innerHTML = sanitizeHtml(htmlStr, el);
|
|
3939
4228
|
else el.innerHTML = htmlStr;
|
|
3940
4229
|
return;
|
|
3941
4230
|
}
|
|
@@ -3959,8 +4248,7 @@ function toNum(datum) {
|
|
|
3959
4248
|
function toInt(datum) {
|
|
3960
4249
|
return Math.floor(toNum(datum));
|
|
3961
4250
|
}
|
|
3962
|
-
|
|
3963
|
-
//#region ../frozen-patty/dist/stringify-fields.js
|
|
4251
|
+
// ../frozen-patty/dist/stringify-fields.js
|
|
3964
4252
|
/**
|
|
3965
4253
|
* Combines multiple field definitions with comma separation
|
|
3966
4254
|
* @param fields Array of field definitions
|
|
@@ -3980,8 +4268,7 @@ function stringifyField(fieldName, propName) {
|
|
|
3980
4268
|
if (fieldName === propName) return `:${propName}`;
|
|
3981
4269
|
return `${fieldName}:${propName}`;
|
|
3982
4270
|
}
|
|
3983
|
-
|
|
3984
|
-
//#region ../frozen-patty/dist/set-component.js
|
|
4271
|
+
// ../frozen-patty/dist/set-component.js
|
|
3985
4272
|
/**
|
|
3986
4273
|
* `picture` 内の `source` で無効な、`img` 専用の属性。
|
|
3987
4274
|
* `source` で有効な属性の allowlist にしないのは、グローバル属性・`data-*`・
|
|
@@ -4043,7 +4330,9 @@ function setComponent(el, data, attr, filter, xssSanitize = true) {
|
|
|
4043
4330
|
const targetList = [el, ...el.querySelectorAll(`[data-${attr}*="${kebabCase(dataKeyName)}"]`)].filter((el) => hasField(el, attr, dataKeyName));
|
|
4044
4331
|
for (const targetEl of targetList) setValue(targetEl, dataKeyName, datum, attr, filter, xssSanitize);
|
|
4045
4332
|
}
|
|
4333
|
+
if (xssSanitize) for (const dangerous of [...el.querySelectorAll("meta, link")].filter((child) => isDangerousElement(child))) dangerous.remove();
|
|
4046
4334
|
for (const listRoot of el.querySelectorAll(`[data-${attr}-list]`)) {
|
|
4335
|
+
if (!el.contains(listRoot)) continue;
|
|
4047
4336
|
const reverse = isReverseListElement(listRoot);
|
|
4048
4337
|
const decendants = listRoot.querySelectorAll("*");
|
|
4049
4338
|
const maxLength = maxLengthOf(data, [...new Set([...decendants].flatMap((el) => definedFields(el, attr)))]);
|
|
@@ -4080,14 +4369,14 @@ function setComponent(el, data, attr, filter, xssSanitize = true) {
|
|
|
4080
4369
|
}
|
|
4081
4370
|
}
|
|
4082
4371
|
const newEl = setComponent(item, itemData, attr, filter, xssSanitize);
|
|
4372
|
+
if (xssSanitize && isDangerousElement(newEl)) continue;
|
|
4083
4373
|
if (reverse) listRoot.prepend(newEl);
|
|
4084
4374
|
else listRoot.append(newEl);
|
|
4085
4375
|
}
|
|
4086
4376
|
}
|
|
4087
4377
|
return el;
|
|
4088
4378
|
}
|
|
4089
|
-
|
|
4090
|
-
//#region ../frozen-patty/dist/frozen-patty.js
|
|
4379
|
+
// ../frozen-patty/dist/frozen-patty.js
|
|
4091
4380
|
var FrozenPatty = class {
|
|
4092
4381
|
#attr = "field";
|
|
4093
4382
|
#dom;
|
|
@@ -4106,11 +4395,11 @@ var FrozenPatty = class {
|
|
|
4106
4395
|
* @param options Options
|
|
4107
4396
|
*/
|
|
4108
4397
|
constructor(html, options) {
|
|
4109
|
-
this.#dom = document.createElement("fp-
|
|
4398
|
+
this.#dom = document.createElement("fp-placeholder");
|
|
4110
4399
|
if (options?.xssSanitize === false) {
|
|
4111
4400
|
this.#dom.innerHTML = html;
|
|
4112
4401
|
this.#xssSanitize = false;
|
|
4113
|
-
} else this.#dom.innerHTML = sanitizeHtml(html);
|
|
4402
|
+
} else this.#dom.innerHTML = sanitizeHtml(html, this.#dom);
|
|
4114
4403
|
if (options) {
|
|
4115
4404
|
if (options.attr) this.#attr = options.attr;
|
|
4116
4405
|
this.#typeConvert = !!options.typeConvert;
|
|
@@ -4134,8 +4423,7 @@ var FrozenPatty = class {
|
|
|
4134
4423
|
return getComponent(this.#dom, this.#attr, this.#typeConvert, filter);
|
|
4135
4424
|
}
|
|
4136
4425
|
};
|
|
4137
|
-
|
|
4138
|
-
//#region ../frozen-patty/dist/index.js
|
|
4426
|
+
// ../frozen-patty/dist/index.js
|
|
4139
4427
|
/**
|
|
4140
4428
|
* Pure HTML to JSON converter that not use template engine.
|
|
4141
4429
|
* @param html Original HTML
|
|
@@ -4149,8 +4437,7 @@ var FrozenPatty = class {
|
|
|
4149
4437
|
function frozenPatty(html, options) {
|
|
4150
4438
|
return new FrozenPatty(html, options);
|
|
4151
4439
|
}
|
|
4152
|
-
|
|
4153
|
-
//#region ../../../node_modules/jaco/dist/fn/replaceFromMap.js
|
|
4440
|
+
// ../../../node_modules/jaco/dist/fn/replaceFromMap.js
|
|
4154
4441
|
/**
|
|
4155
4442
|
* キーがパターン・値が置換文字列のハッシュマップによって置換する
|
|
4156
4443
|
*
|
|
@@ -4162,8 +4449,7 @@ function replaceFromMap_default(str, convMap) {
|
|
|
4162
4449
|
for (const [needle, replace] of Object.entries(convMap)) if (replace) str = str.replace(new RegExp(needle, "g"), replace);
|
|
4163
4450
|
return str;
|
|
4164
4451
|
}
|
|
4165
|
-
|
|
4166
|
-
//#region ../../../node_modules/jaco/dist/fn/combineSoundMarks.js
|
|
4452
|
+
// ../../../node_modules/jaco/dist/fn/combineSoundMarks.js
|
|
4167
4453
|
/**
|
|
4168
4454
|
* 濁点・半濁点とひらがな・かたかなを結合させる
|
|
4169
4455
|
*
|
|
@@ -4241,8 +4527,7 @@ function combineSoundMarks(str, convertOnly = false) {
|
|
|
4241
4527
|
});
|
|
4242
4528
|
return str;
|
|
4243
4529
|
}
|
|
4244
|
-
|
|
4245
|
-
//#region ../core/dist/item/value-filter.js
|
|
4530
|
+
// ../core/dist/item/value-filter.js
|
|
4246
4531
|
/**
|
|
4247
4532
|
*
|
|
4248
4533
|
* @param datum
|
|
@@ -4252,22 +4537,18 @@ function valueFilter(datum) {
|
|
|
4252
4537
|
let str = datum;
|
|
4253
4538
|
str = combineSoundMarks(str);
|
|
4254
4539
|
if (str.trim().startsWith("<")) {
|
|
4255
|
-
const d = document.createElement("div");
|
|
4540
|
+
const d = document.implementation.createHTMLDocument("").createElement("div");
|
|
4256
4541
|
d.innerHTML = str;
|
|
4257
4542
|
const elements = d.querySelectorAll("*");
|
|
4258
4543
|
for (const element of elements) {
|
|
4259
|
-
const
|
|
4260
|
-
for (
|
|
4261
|
-
const attr = attrs.item(i);
|
|
4262
|
-
if (attr && /data-bg[ebt](?:-.+)?/i.test(attr.name)) element.removeAttribute(attr.name);
|
|
4263
|
-
}
|
|
4544
|
+
const markers = [...element.attributes].filter((attr) => /data-bg[ebt](?:-.+)?/i.test(attr.name));
|
|
4545
|
+
for (const attr of markers) element.removeAttribute(attr.name);
|
|
4264
4546
|
}
|
|
4265
4547
|
str = d.innerHTML;
|
|
4266
4548
|
}
|
|
4267
4549
|
return str;
|
|
4268
4550
|
}
|
|
4269
|
-
|
|
4270
|
-
//#region ../core/dist/item/data-from-html.js
|
|
4551
|
+
// ../core/dist/item/data-from-html.js
|
|
4271
4552
|
/**
|
|
4272
4553
|
*
|
|
4273
4554
|
* @param html
|
|
@@ -4279,8 +4560,7 @@ function dataFromHtml(html) {
|
|
|
4279
4560
|
valueFilter
|
|
4280
4561
|
}).toJSON();
|
|
4281
4562
|
}
|
|
4282
|
-
|
|
4283
|
-
//#region ../core/dist/block/parse-html-to-definition.js
|
|
4563
|
+
// ../core/dist/block/parse-html-to-definition.js
|
|
4284
4564
|
/**
|
|
4285
4565
|
* HTMLElement(ブロック要素)をBlockDataに変換する
|
|
4286
4566
|
* @param el HTMLElement(data-bge-name属性を持つ要素)
|
|
@@ -4330,8 +4610,7 @@ function getItemFromElement(el) {
|
|
|
4330
4610
|
};
|
|
4331
4611
|
});
|
|
4332
4612
|
}
|
|
4333
|
-
|
|
4334
|
-
//#region ../core/dist/utils/replace-placeholders.js
|
|
4613
|
+
// ../core/dist/utils/replace-placeholders.js
|
|
4335
4614
|
/**
|
|
4336
4615
|
* テンプレート文字列のプレースホルダーを設定値で置換する
|
|
4337
4616
|
* @param template
|
|
@@ -4340,8 +4619,7 @@ function getItemFromElement(el) {
|
|
|
4340
4619
|
function replacePlaceholders(template, config) {
|
|
4341
4620
|
return template.replaceAll("%sampleImagePath%", config.sampleImagePath).replaceAll("%sampleFilePath%", config.sampleFilePath).replaceAll("%googleMapsApiKey%", config.googleMapsApiKey ?? "");
|
|
4342
4621
|
}
|
|
4343
|
-
|
|
4344
|
-
//#region ../core/dist/item/create-item.js
|
|
4622
|
+
// ../core/dist/item/create-item.js
|
|
4345
4623
|
/**
|
|
4346
4624
|
* アイテム定義(seed)を作成する
|
|
4347
4625
|
*
|
|
@@ -4390,8 +4668,7 @@ function createUnknownContentItem(el, fallbackName = "unknown-content") {
|
|
|
4390
4668
|
style: ""
|
|
4391
4669
|
});
|
|
4392
4670
|
}
|
|
4393
|
-
|
|
4394
|
-
//#region ../core/dist/item/data-to-html.js
|
|
4671
|
+
// ../core/dist/item/data-to-html.js
|
|
4395
4672
|
/**
|
|
4396
4673
|
*
|
|
4397
4674
|
* @param html
|
|
@@ -4405,8 +4682,68 @@ function dataToHtml(html, data) {
|
|
|
4405
4682
|
xssSanitize: !data.dangerouslySetInnerHTML
|
|
4406
4683
|
}).merge(data).toHTML();
|
|
4407
4684
|
}
|
|
4408
|
-
|
|
4409
|
-
|
|
4685
|
+
// ../core/dist/item/normalize-item-data.js
|
|
4686
|
+
/**
|
|
4687
|
+
* Pass item data through a seed's `normalizeItemData` right before it becomes
|
|
4688
|
+
* HTML. A seed without `normalizeItemData` leaves the data as it is.
|
|
4689
|
+
*
|
|
4690
|
+
* Every writer that turns item data into HTML (`Item.import`, `render()`, and
|
|
4691
|
+
* the agent tools that write to disk) calls this at the same point. A separate
|
|
4692
|
+
* normalization per path would let a save from the editor and a save from an
|
|
4693
|
+
* agent produce different HTML for the same data.
|
|
4694
|
+
*
|
|
4695
|
+
* The same object comes back when nothing changed, so a writer that reads
|
|
4696
|
+
* items back from raw HTML can tell whether it has to render again.
|
|
4697
|
+
* @param seed - The item definition. `null` / `undefined` (an item that is not
|
|
4698
|
+
* defined) leaves the data as it is
|
|
4699
|
+
* @param data - The data to become HTML: the merged data of an existing item,
|
|
4700
|
+
* or the supplied data (possibly partial) of a new one
|
|
4701
|
+
* @param config - The editor config
|
|
4702
|
+
* @example
|
|
4703
|
+
* ```ts
|
|
4704
|
+
* const data = normalizeItemData(
|
|
4705
|
+
* items.image,
|
|
4706
|
+
* { path: ['/img/pc.png', '/img/sp.png'], media: ['', ''] },
|
|
4707
|
+
* config,
|
|
4708
|
+
* );
|
|
4709
|
+
* // data.media is ['', '(max-width: 767px)']: the image seed fills the default
|
|
4710
|
+
* ```
|
|
4711
|
+
*/
|
|
4712
|
+
function normalizeItemData(seed, data, config) {
|
|
4713
|
+
return seed?.normalizeItemData?.(data, config) ?? data;
|
|
4714
|
+
}
|
|
4715
|
+
// ../core/dist/item/import-item-html.js
|
|
4716
|
+
/**
|
|
4717
|
+
* Write data into an item's HTML: read the current data back from `html`,
|
|
4718
|
+
* shallow-merge `newData` over it, pass the result through the seed's
|
|
4719
|
+
* `normalizeItemData`, and render it with `html` as the template.
|
|
4720
|
+
*
|
|
4721
|
+
* `Item.import` and the agent tools that write to disk both use this, so a
|
|
4722
|
+
* save from the editor and a save from an agent go through the same steps in
|
|
4723
|
+
* the same order and produce the same HTML for the same data.
|
|
4724
|
+
* @param html - The item's current inner HTML (the content of `[data-bgi]`)
|
|
4725
|
+
* @param newData - The keys to change; the others keep their current values
|
|
4726
|
+
* @param seed - The item definition. `null` / `undefined` (an item that is not
|
|
4727
|
+
* defined) renders the merged data as it is
|
|
4728
|
+
* @param config - The editor config
|
|
4729
|
+
* @returns The new inner HTML
|
|
4730
|
+
* @example
|
|
4731
|
+
* ```ts
|
|
4732
|
+
* wrapper.innerHTML = importItemHtml(
|
|
4733
|
+
* wrapper.innerHTML,
|
|
4734
|
+
* { path: ['/img/pc.png', '/img/sp.png'] },
|
|
4735
|
+
* items.image,
|
|
4736
|
+
* config,
|
|
4737
|
+
* );
|
|
4738
|
+
* ```
|
|
4739
|
+
*/
|
|
4740
|
+
function importItemHtml(html, newData, seed, config) {
|
|
4741
|
+
return dataToHtml(html, normalizeItemData(seed, {
|
|
4742
|
+
...dataFromHtml(html),
|
|
4743
|
+
...newData
|
|
4744
|
+
}, config));
|
|
4745
|
+
}
|
|
4746
|
+
// ../core/dist/item/item.js
|
|
4410
4747
|
var elMap = /* @__PURE__ */ new WeakMap();
|
|
4411
4748
|
var Item = class Item {
|
|
4412
4749
|
config;
|
|
@@ -4432,12 +4769,20 @@ var Item = class Item {
|
|
|
4432
4769
|
export() {
|
|
4433
4770
|
return dataFromHtml(this.el.innerHTML);
|
|
4434
4771
|
}
|
|
4772
|
+
/**
|
|
4773
|
+
* Write data into the item: the current data is read back from the item's
|
|
4774
|
+
* HTML, merged with `newData`, passed through the seed's `normalizeItemData`,
|
|
4775
|
+
* and rendered again. The saved HTML can therefore differ from `newData`
|
|
4776
|
+
* where the seed normalizes it (for example, an image's second `<source>` never
|
|
4777
|
+
* keeps an empty `media`).
|
|
4778
|
+
* @param newData - The keys to change; the others keep their current values
|
|
4779
|
+
* @example
|
|
4780
|
+
* ```ts
|
|
4781
|
+
* item.import({ path: ['/a.png', '/b.png'] });
|
|
4782
|
+
* ```
|
|
4783
|
+
*/
|
|
4435
4784
|
import(newData) {
|
|
4436
|
-
|
|
4437
|
-
...this.export(),
|
|
4438
|
-
...newData
|
|
4439
|
-
};
|
|
4440
|
-
this.el.innerHTML = Item.createElement(this.el.innerHTML, data);
|
|
4785
|
+
this.el.innerHTML = importItemHtml(this.el.innerHTML, newData, this.seed, this.config);
|
|
4441
4786
|
}
|
|
4442
4787
|
isDisable() {
|
|
4443
4788
|
return this.seed.editorOptions?.isDisable?.(this) ?? "";
|
|
@@ -4472,8 +4817,7 @@ var Item = class Item {
|
|
|
4472
4817
|
return elMap.get(el);
|
|
4473
4818
|
}
|
|
4474
4819
|
};
|
|
4475
|
-
|
|
4476
|
-
//#region ../core/dist/block/update-grid-items.js
|
|
4820
|
+
// ../core/dist/block/update-grid-items.js
|
|
4477
4821
|
/**
|
|
4478
4822
|
* グリッドアイテムを追加または削除する
|
|
4479
4823
|
* @param $items - 子要素の配列
|
|
@@ -4512,8 +4856,7 @@ function updateGridItems($items, engine, addOrRemove, items, updateItem) {
|
|
|
4512
4856
|
newItems.splice(-removeCount);
|
|
4513
4857
|
updateItem(newItems);
|
|
4514
4858
|
}
|
|
4515
|
-
|
|
4516
|
-
//#region ../core/dist/block/block.js
|
|
4859
|
+
// ../core/dist/block/block.js
|
|
4517
4860
|
var bbMap = /* @__PURE__ */ new WeakMap();
|
|
4518
4861
|
var _lastUID = 0;
|
|
4519
4862
|
var BurgerBlock = class BurgerBlock {
|
|
@@ -4698,8 +5041,7 @@ function fallbackBlockData(html) {
|
|
|
4698
5041
|
function isBurgerBlockElement(el) {
|
|
4699
5042
|
return el.matches(["[data-bge-name][data-bge-container]:has(>[data-bge-container-frame]>[data-bge-group]>[data-bge-item])"].join(","));
|
|
4700
5043
|
}
|
|
4701
|
-
|
|
4702
|
-
//#region ../core/dist/utils/as-disposable-fn.js
|
|
5044
|
+
// ../core/dist/utils/as-disposable-fn.js
|
|
4703
5045
|
/**
|
|
4704
5046
|
* Wraps a teardown function so it is also `Disposable`, letting callers
|
|
4705
5047
|
* either invoke it directly (`detach()`) or hold it in a `using`
|
|
@@ -4719,8 +5061,7 @@ function isBurgerBlockElement(el) {
|
|
|
4719
5061
|
function asDisposableFn(fn) {
|
|
4720
5062
|
return Object.assign(fn, { [Symbol.dispose]: fn });
|
|
4721
5063
|
}
|
|
4722
|
-
|
|
4723
|
-
//#region ../core/dist/command/command-bus.js
|
|
5064
|
+
// ../core/dist/command/command-bus.js
|
|
4724
5065
|
/**
|
|
4725
5066
|
* Prefix for the id assigned to every command bus receiver element.
|
|
4726
5067
|
*
|
|
@@ -4836,8 +5177,7 @@ var CommandBus = class {
|
|
|
4836
5177
|
this.#detachers.clear();
|
|
4837
5178
|
}
|
|
4838
5179
|
};
|
|
4839
|
-
|
|
4840
|
-
//#region ../core/dist/dom-helpers/create-stylesheet.js
|
|
5180
|
+
// ../core/dist/dom-helpers/create-stylesheet.js
|
|
4841
5181
|
/**
|
|
4842
5182
|
*
|
|
4843
5183
|
* @param cssContents
|
|
@@ -4848,8 +5188,7 @@ function createStylesheet(cssContents, layer) {
|
|
|
4848
5188
|
const blob = new Blob([css], { type: "text/css" });
|
|
4849
5189
|
return URL.createObjectURL(blob);
|
|
4850
5190
|
}
|
|
4851
|
-
|
|
4852
|
-
//#region ../core/dist/dom-helpers/editor-stylesheet-texts.js
|
|
5191
|
+
// ../core/dist/dom-helpers/editor-stylesheet-texts.js
|
|
4853
5192
|
/**
|
|
4854
5193
|
* The first two texts of {@link editorStylesheetTexts}: the layer order
|
|
4855
5194
|
* statement and the base layer. Separate so the engine can create them
|
|
@@ -4870,8 +5209,7 @@ function editorBaseStylesheetTexts(items, generalCSS) {
|
|
|
4870
5209
|
function editorProjectStylesheetText(css, layer = CSS_LAYER.components) {
|
|
4871
5210
|
return layer ? `@layer ${layer} {${css}}` : css;
|
|
4872
5211
|
}
|
|
4873
|
-
|
|
4874
|
-
//#region ../core/dist/utils/compare-priority.js
|
|
5212
|
+
// ../core/dist/utils/compare-priority.js
|
|
4875
5213
|
/**
|
|
4876
5214
|
* Compare two priority arrays
|
|
4877
5215
|
* Smaller numbers have higher priority.
|
|
@@ -4899,8 +5237,7 @@ function comparePriority(a, b) {
|
|
|
4899
5237
|
if (a.length > b.length) return -1;
|
|
4900
5238
|
return 0;
|
|
4901
5239
|
}
|
|
4902
|
-
|
|
4903
|
-
//#region ../core/dist/dom-helpers/get-custom-properties.js
|
|
5240
|
+
// ../core/dist/dom-helpers/get-custom-properties.js
|
|
4904
5241
|
/**
|
|
4905
5242
|
* Get all `--bge-options-*` custom properties from document, grouped by
|
|
4906
5243
|
* category. See the file-level comment for the detection rules.
|
|
@@ -5087,7 +5424,7 @@ function searchCustomProperty(scope, found) {
|
|
|
5087
5424
|
for (const cssRule of styleRules) {
|
|
5088
5425
|
const rawSelector = cssRule.rule.selectorText.trim();
|
|
5089
5426
|
const selector = rawSelector.replace(/^&/, "").trim();
|
|
5090
|
-
if (selector ===
|
|
5427
|
+
if (selector === "[data-bge-container]" || selector === ":scope" && cssRule.scopeRoot === "[data-bge-container]") {
|
|
5091
5428
|
const isNested = rawSelector !== selector;
|
|
5092
5429
|
const declarations = cssRule.rule.style;
|
|
5093
5430
|
for (let i = 0; i < declarations.length; i++) {
|
|
@@ -5171,8 +5508,7 @@ function compareCustomPropertyByLayerPriority(a, b) {
|
|
|
5171
5508
|
if (comparePriority(a.priority, b.priority) === 1) return a;
|
|
5172
5509
|
return b;
|
|
5173
5510
|
}
|
|
5174
|
-
|
|
5175
|
-
//#region ../core/dist/error/errors.js
|
|
5511
|
+
// ../core/dist/error/errors.js
|
|
5176
5512
|
var ElementNotFoundError = class extends Error {
|
|
5177
5513
|
static {
|
|
5178
5514
|
this.prototype.name = "ElementNotFoundError";
|
|
@@ -5194,8 +5530,7 @@ var NoHTMLElementError = class extends Error {
|
|
|
5194
5530
|
super(message, rest);
|
|
5195
5531
|
}
|
|
5196
5532
|
};
|
|
5197
|
-
|
|
5198
|
-
//#region ../core/dist/dom-helpers/get-element.js
|
|
5533
|
+
// ../core/dist/dom-helpers/get-element.js
|
|
5199
5534
|
/**
|
|
5200
5535
|
* Resolve the engine's root element.
|
|
5201
5536
|
*
|
|
@@ -5216,8 +5551,7 @@ function getElement(target) {
|
|
|
5216
5551
|
if (node instanceof HTMLElement) return node;
|
|
5217
5552
|
throw new NoHTMLElementError(target);
|
|
5218
5553
|
}
|
|
5219
|
-
|
|
5220
|
-
//#region ../core/dist/engine/processing-scope.js
|
|
5554
|
+
// ../core/dist/engine/processing-scope.js
|
|
5221
5555
|
/**
|
|
5222
5556
|
* Marks `engine.isProcessed` as `true` for the current scope and guarantees
|
|
5223
5557
|
* it is reset to `false` when the scope exits, including via an exception.
|
|
@@ -5239,8 +5573,7 @@ function beginProcessing(engine) {
|
|
|
5239
5573
|
engine.isProcessed = false;
|
|
5240
5574
|
} };
|
|
5241
5575
|
}
|
|
5242
|
-
|
|
5243
|
-
//#region ../core/dist/insertion-point.js
|
|
5576
|
+
// ../core/dist/insertion-point.js
|
|
5244
5577
|
var InsertionPoint = class {
|
|
5245
5578
|
el;
|
|
5246
5579
|
#engine;
|
|
@@ -5273,8 +5606,7 @@ var InsertionPoint = class {
|
|
|
5273
5606
|
};
|
|
5274
5607
|
}
|
|
5275
5608
|
};
|
|
5276
|
-
|
|
5277
|
-
//#region ../core/dist/editable-content.js
|
|
5609
|
+
// ../core/dist/editable-content.js
|
|
5278
5610
|
/**
|
|
5279
5611
|
* The engine-side half of an editable area: block restoration,
|
|
5280
5612
|
* serialization and sanitization of the content container.
|
|
@@ -5370,8 +5702,7 @@ var EditableContent = class EditableContent {
|
|
|
5370
5702
|
return editableContent;
|
|
5371
5703
|
}
|
|
5372
5704
|
};
|
|
5373
|
-
|
|
5374
|
-
//#region ../core/dist/event/create-bge-event.js
|
|
5705
|
+
// ../core/dist/event/create-bge-event.js
|
|
5375
5706
|
/**
|
|
5376
5707
|
*
|
|
5377
5708
|
* @param type
|
|
@@ -5380,8 +5711,7 @@ var EditableContent = class EditableContent {
|
|
|
5380
5711
|
function createBgeEvent(type, eventData) {
|
|
5381
5712
|
return new CustomEvent(type, { detail: eventData });
|
|
5382
5713
|
}
|
|
5383
|
-
|
|
5384
|
-
//#region ../core/dist/health-monitor.js
|
|
5714
|
+
// ../core/dist/health-monitor.js
|
|
5385
5715
|
/**
|
|
5386
5716
|
* Monitors server health status and notifies offline/online state changes via events
|
|
5387
5717
|
*/
|
|
@@ -5508,8 +5838,30 @@ var HealthMonitor = class {
|
|
|
5508
5838
|
}
|
|
5509
5839
|
}
|
|
5510
5840
|
};
|
|
5511
|
-
|
|
5512
|
-
|
|
5841
|
+
// ../core/dist/item/normalize-item-html.js
|
|
5842
|
+
/**
|
|
5843
|
+
* Apply a seed's `normalizeItemData` to an item's HTML that was written as HTML
|
|
5844
|
+
* (source mode, an agent's raw block HTML) rather than through item data. The
|
|
5845
|
+
* item's data is read back, normalized and rendered again only when the seed
|
|
5846
|
+
* changes it; an item that needs nothing, or whose seed has no
|
|
5847
|
+
* `normalizeItemData`, keeps the markup as written (and is not even read back).
|
|
5848
|
+
* @param html - The item's inner HTML (the content of `[data-bgi]`)
|
|
5849
|
+
* @param seed - The item definition (`null` / `undefined` for an item that is not defined)
|
|
5850
|
+
* @param config - The editor config
|
|
5851
|
+
* @returns The new inner HTML, or `null` when nothing changed
|
|
5852
|
+
* @example
|
|
5853
|
+
* ```ts
|
|
5854
|
+
* const next = normalizeItemHtml(wrapper.innerHTML, items.image, config);
|
|
5855
|
+
* if (next !== null) wrapper.innerHTML = next;
|
|
5856
|
+
* ```
|
|
5857
|
+
*/
|
|
5858
|
+
function normalizeItemHtml(html, seed, config) {
|
|
5859
|
+
if (!seed?.normalizeItemData) return null;
|
|
5860
|
+
const data = dataFromHtml(html);
|
|
5861
|
+
const normalized = normalizeItemData(seed, data, config);
|
|
5862
|
+
return normalized === data ? null : dataToHtml(html, normalized);
|
|
5863
|
+
}
|
|
5864
|
+
// ../core/dist/engine/copy-editable-area.js
|
|
5513
5865
|
/**
|
|
5514
5866
|
* 編集エリア間のコンテンツコピー(下書き⇄本稿)を安全に実行する
|
|
5515
5867
|
*
|
|
@@ -5526,8 +5878,7 @@ async function copyEditableArea(source, destination, confirm) {
|
|
|
5526
5878
|
await source.copyTo(destination);
|
|
5527
5879
|
return true;
|
|
5528
5880
|
}
|
|
5529
|
-
|
|
5530
|
-
//#region ../core/dist/engine/default-view.js
|
|
5881
|
+
// ../core/dist/engine/default-view.js
|
|
5531
5882
|
/**
|
|
5532
5883
|
* Headless fallback used when `BurgerEditorEngineOptions.view` is not
|
|
5533
5884
|
* provided: each area is a bare `div` appended to the engine's view
|
|
@@ -5561,8 +5912,7 @@ function createDefaultView() {
|
|
|
5561
5912
|
[Symbol.dispose]: teardown
|
|
5562
5913
|
};
|
|
5563
5914
|
}
|
|
5564
|
-
|
|
5565
|
-
//#region ../core/dist/engine/live-block-ops.js
|
|
5915
|
+
// ../core/dist/engine/live-block-ops.js
|
|
5566
5916
|
/** Thrown when an `insert` op's block can't be added because it's disabled — the live-DOM twin of `engine.addBlock`'s `alert()` path, converted to a catchable error instead. */
|
|
5567
5917
|
var DisabledBlockError = class extends Error {
|
|
5568
5918
|
constructor(message) {
|
|
@@ -5763,8 +6113,7 @@ async function applyLiveBlockOp(engine, content, op, options = {}) {
|
|
|
5763
6113
|
}
|
|
5764
6114
|
}
|
|
5765
6115
|
}
|
|
5766
|
-
|
|
5767
|
-
//#region ../core/dist/engine/ui-state.js
|
|
6116
|
+
// ../core/dist/engine/ui-state.js
|
|
5768
6117
|
/**
|
|
5769
6118
|
* External store for UI state, shaped for `useSyncExternalStore`:
|
|
5770
6119
|
* `subscribe` registers an invalidation callback and `getSnapshot`
|
|
@@ -5908,8 +6257,7 @@ var UIStateStore = class {
|
|
|
5908
6257
|
for (const listener of this.#listeners) listener();
|
|
5909
6258
|
}
|
|
5910
6259
|
};
|
|
5911
|
-
|
|
5912
|
-
//#region ../core/dist/engine/engine.js
|
|
6260
|
+
// ../core/dist/engine/engine.js
|
|
5913
6261
|
var BurgerEditorEngine = class BurgerEditorEngine {
|
|
5914
6262
|
catalog;
|
|
5915
6263
|
commandBus = new CommandBus();
|
|
@@ -6025,7 +6373,8 @@ var BurgerEditorEngine = class BurgerEditorEngine {
|
|
|
6025
6373
|
}
|
|
6026
6374
|
/**
|
|
6027
6375
|
* Replace an editable area's content with hand-edited HTML source and
|
|
6028
|
-
* save.
|
|
6376
|
+
* save. Each item's `normalizeItemData` is applied to what was written (an
|
|
6377
|
+
* image's second `<source>` never keeps an empty `media`, for example). Used when leaving HTML-source editing mode, or whenever the UI
|
|
6029
6378
|
* layer wants to commit an in-progress edit (e.g. the source textarea
|
|
6030
6379
|
* losing focus). A no-op when the area doesn't exist (e.g. no draft).
|
|
6031
6380
|
* @param type - The editable area to commit into
|
|
@@ -6039,6 +6388,12 @@ var BurgerEditorEngine = class BurgerEditorEngine {
|
|
|
6039
6388
|
const content = this.getEditableContent(type);
|
|
6040
6389
|
if (!content) return;
|
|
6041
6390
|
await content.replaceContents(html);
|
|
6391
|
+
for (const el of content.containerElement.querySelectorAll("[data-bgi]")) {
|
|
6392
|
+
const item = Item.getInstance(el);
|
|
6393
|
+
if (!item) continue;
|
|
6394
|
+
const html = normalizeItemHtml(item.el.innerHTML, item.seed, this.config);
|
|
6395
|
+
if (html !== null) item.el.innerHTML = html;
|
|
6396
|
+
}
|
|
6042
6397
|
this.save();
|
|
6043
6398
|
}
|
|
6044
6399
|
/**
|
|
@@ -6376,8 +6731,7 @@ var BurgerEditorEngine = class BurgerEditorEngine {
|
|
|
6376
6731
|
return engine;
|
|
6377
6732
|
}
|
|
6378
6733
|
};
|
|
6379
|
-
|
|
6380
|
-
//#region ../core/dist/dom-helpers/get-css-property-as-number.js
|
|
6734
|
+
// ../core/dist/dom-helpers/get-css-property-as-number.js
|
|
6381
6735
|
var getCSSPropertyAsNumberCache = /* @__PURE__ */ new Map();
|
|
6382
6736
|
/**
|
|
6383
6737
|
*
|
|
@@ -6394,8 +6748,7 @@ function getCSSPropertyAsNumber(el, property) {
|
|
|
6394
6748
|
getCSSPropertyAsNumberCache.set(value, result);
|
|
6395
6749
|
return result;
|
|
6396
6750
|
}
|
|
6397
|
-
|
|
6398
|
-
//#region ../core/dist/get-block-at-position.js
|
|
6751
|
+
// ../core/dist/get-block-at-position.js
|
|
6399
6752
|
/**
|
|
6400
6753
|
*
|
|
6401
6754
|
* @param doc
|
|
@@ -6415,13 +6768,11 @@ function getBlockAtPosition(doc, x, y) {
|
|
|
6415
6768
|
}
|
|
6416
6769
|
return null;
|
|
6417
6770
|
}
|
|
6418
|
-
|
|
6419
|
-
//#region __vite-browser-external
|
|
6771
|
+
// __vite-browser-external
|
|
6420
6772
|
var require___vite_browser_external = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6421
6773
|
module.exports = {};
|
|
6422
6774
|
}));
|
|
6423
|
-
|
|
6424
|
-
//#region ../../../node_modules/kind-of/index.js
|
|
6775
|
+
// ../../../node_modules/kind-of/index.js
|
|
6425
6776
|
var require_kind_of = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6426
6777
|
var toString = Object.prototype.toString;
|
|
6427
6778
|
module.exports = function kindOf(val) {
|
|
@@ -6508,8 +6859,7 @@ var require_kind_of = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6508
6859
|
return false;
|
|
6509
6860
|
}
|
|
6510
6861
|
}));
|
|
6511
|
-
|
|
6512
|
-
//#region ../../../node_modules/is-extendable/index.js
|
|
6862
|
+
// ../../../node_modules/is-extendable/index.js
|
|
6513
6863
|
/*!
|
|
6514
6864
|
* is-extendable <https://github.com/jonschlinkert/is-extendable>
|
|
6515
6865
|
*
|
|
@@ -6521,8 +6871,7 @@ var require_is_extendable = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
6521
6871
|
return typeof val !== "undefined" && val !== null && (typeof val === "object" || typeof val === "function");
|
|
6522
6872
|
};
|
|
6523
6873
|
}));
|
|
6524
|
-
|
|
6525
|
-
//#region ../../../node_modules/extend-shallow/index.js
|
|
6874
|
+
// ../../../node_modules/extend-shallow/index.js
|
|
6526
6875
|
var require_extend_shallow = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6527
6876
|
var isObject = require_is_extendable();
|
|
6528
6877
|
module.exports = function extend(o) {
|
|
@@ -6544,8 +6893,7 @@ var require_extend_shallow = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
6544
6893
|
return Object.prototype.hasOwnProperty.call(obj, key);
|
|
6545
6894
|
}
|
|
6546
6895
|
}));
|
|
6547
|
-
|
|
6548
|
-
//#region ../../../node_modules/section-matter/index.js
|
|
6896
|
+
// ../../../node_modules/section-matter/index.js
|
|
6549
6897
|
var require_section_matter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6550
6898
|
var typeOf = require_kind_of();
|
|
6551
6899
|
var extend = require_extend_shallow();
|
|
@@ -6648,8 +6996,7 @@ var require_section_matter = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
6648
6996
|
return false;
|
|
6649
6997
|
}
|
|
6650
6998
|
}));
|
|
6651
|
-
|
|
6652
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/common.js
|
|
6999
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/common.js
|
|
6653
7000
|
var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6654
7001
|
function isNothing(subject) {
|
|
6655
7002
|
return typeof subject === "undefined" || subject === null;
|
|
@@ -6688,8 +7035,7 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6688
7035
|
module.exports.isNegativeZero = isNegativeZero;
|
|
6689
7036
|
module.exports.extend = extend;
|
|
6690
7037
|
}));
|
|
6691
|
-
|
|
6692
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/exception.js
|
|
7038
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/exception.js
|
|
6693
7039
|
var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6694
7040
|
function YAMLException(reason, mark) {
|
|
6695
7041
|
Error.call(this);
|
|
@@ -6710,8 +7056,7 @@ var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6710
7056
|
};
|
|
6711
7057
|
module.exports = YAMLException;
|
|
6712
7058
|
}));
|
|
6713
|
-
|
|
6714
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/mark.js
|
|
7059
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/mark.js
|
|
6715
7060
|
var require_mark = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6716
7061
|
var common = require_common();
|
|
6717
7062
|
function Mark(name, buffer, position, line, column) {
|
|
@@ -6761,8 +7106,7 @@ var require_mark = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6761
7106
|
};
|
|
6762
7107
|
module.exports = Mark;
|
|
6763
7108
|
}));
|
|
6764
|
-
|
|
6765
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type.js
|
|
7109
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type.js
|
|
6766
7110
|
var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6767
7111
|
var YAMLException = require_exception();
|
|
6768
7112
|
var TYPE_CONSTRUCTOR_OPTIONS = [
|
|
@@ -6811,8 +7155,7 @@ var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6811
7155
|
}
|
|
6812
7156
|
module.exports = Type;
|
|
6813
7157
|
}));
|
|
6814
|
-
|
|
6815
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/schema.js
|
|
7158
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/schema.js
|
|
6816
7159
|
var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6817
7160
|
var common = require_common();
|
|
6818
7161
|
var YAMLException = require_exception();
|
|
@@ -6885,8 +7228,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6885
7228
|
};
|
|
6886
7229
|
module.exports = Schema;
|
|
6887
7230
|
}));
|
|
6888
|
-
|
|
6889
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/str.js
|
|
7231
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/str.js
|
|
6890
7232
|
var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6891
7233
|
module.exports = new (require_type())("tag:yaml.org,2002:str", {
|
|
6892
7234
|
kind: "scalar",
|
|
@@ -6895,8 +7237,7 @@ var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6895
7237
|
}
|
|
6896
7238
|
});
|
|
6897
7239
|
}));
|
|
6898
|
-
|
|
6899
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/seq.js
|
|
7240
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/seq.js
|
|
6900
7241
|
var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6901
7242
|
module.exports = new (require_type())("tag:yaml.org,2002:seq", {
|
|
6902
7243
|
kind: "sequence",
|
|
@@ -6905,8 +7246,7 @@ var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6905
7246
|
}
|
|
6906
7247
|
});
|
|
6907
7248
|
}));
|
|
6908
|
-
|
|
6909
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/map.js
|
|
7249
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/map.js
|
|
6910
7250
|
var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6911
7251
|
module.exports = new (require_type())("tag:yaml.org,2002:map", {
|
|
6912
7252
|
kind: "mapping",
|
|
@@ -6915,8 +7255,7 @@ var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6915
7255
|
}
|
|
6916
7256
|
});
|
|
6917
7257
|
}));
|
|
6918
|
-
|
|
6919
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js
|
|
7258
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js
|
|
6920
7259
|
var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6921
7260
|
module.exports = new (require_schema())({ explicit: [
|
|
6922
7261
|
require_str(),
|
|
@@ -6924,8 +7263,7 @@ var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6924
7263
|
require_map()
|
|
6925
7264
|
] });
|
|
6926
7265
|
}));
|
|
6927
|
-
|
|
6928
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/null.js
|
|
7266
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/null.js
|
|
6929
7267
|
var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6930
7268
|
var Type = require_type();
|
|
6931
7269
|
function resolveYamlNull(data) {
|
|
@@ -6961,8 +7299,7 @@ var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6961
7299
|
defaultStyle: "lowercase"
|
|
6962
7300
|
});
|
|
6963
7301
|
}));
|
|
6964
|
-
|
|
6965
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/bool.js
|
|
7302
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/bool.js
|
|
6966
7303
|
var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6967
7304
|
var Type = require_type();
|
|
6968
7305
|
function resolveYamlBoolean(data) {
|
|
@@ -6995,8 +7332,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6995
7332
|
defaultStyle: "lowercase"
|
|
6996
7333
|
});
|
|
6997
7334
|
}));
|
|
6998
|
-
|
|
6999
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/int.js
|
|
7335
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/int.js
|
|
7000
7336
|
var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7001
7337
|
var common = require_common();
|
|
7002
7338
|
var Type = require_type();
|
|
@@ -7118,8 +7454,7 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7118
7454
|
}
|
|
7119
7455
|
});
|
|
7120
7456
|
}));
|
|
7121
|
-
|
|
7122
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/float.js
|
|
7457
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/float.js
|
|
7123
7458
|
var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7124
7459
|
var common = require_common();
|
|
7125
7460
|
var Type = require_type();
|
|
@@ -7182,8 +7517,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7182
7517
|
defaultStyle: "lowercase"
|
|
7183
7518
|
});
|
|
7184
7519
|
}));
|
|
7185
|
-
|
|
7186
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/schema/json.js
|
|
7520
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/schema/json.js
|
|
7187
7521
|
var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7188
7522
|
module.exports = new (require_schema())({
|
|
7189
7523
|
include: [require_failsafe()],
|
|
@@ -7195,13 +7529,11 @@ var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7195
7529
|
]
|
|
7196
7530
|
});
|
|
7197
7531
|
}));
|
|
7198
|
-
|
|
7199
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/schema/core.js
|
|
7532
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/schema/core.js
|
|
7200
7533
|
var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7201
7534
|
module.exports = new (require_schema())({ include: [require_json()] });
|
|
7202
7535
|
}));
|
|
7203
|
-
|
|
7204
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/timestamp.js
|
|
7536
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/timestamp.js
|
|
7205
7537
|
var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7206
7538
|
var Type = require_type();
|
|
7207
7539
|
var YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
|
@@ -7250,8 +7582,7 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7250
7582
|
represent: representYamlTimestamp
|
|
7251
7583
|
});
|
|
7252
7584
|
}));
|
|
7253
|
-
|
|
7254
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/merge.js
|
|
7585
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/merge.js
|
|
7255
7586
|
var require_merge = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7256
7587
|
var Type = require_type();
|
|
7257
7588
|
function resolveYamlMerge(data) {
|
|
@@ -7262,8 +7593,7 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7262
7593
|
resolve: resolveYamlMerge
|
|
7263
7594
|
});
|
|
7264
7595
|
}));
|
|
7265
|
-
|
|
7266
|
-
//#region ../../../node_modules/base64-js/index.js
|
|
7596
|
+
// ../../../node_modules/base64-js/index.js
|
|
7267
7597
|
var require_base64_js = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7268
7598
|
exports.byteLength = byteLength;
|
|
7269
7599
|
exports.toByteArray = toByteArray;
|
|
@@ -7350,8 +7680,7 @@ var require_base64_js = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7350
7680
|
return parts.join("");
|
|
7351
7681
|
}
|
|
7352
7682
|
}));
|
|
7353
|
-
|
|
7354
|
-
//#region ../../../node_modules/ieee754/index.js
|
|
7683
|
+
// ../../../node_modules/ieee754/index.js
|
|
7355
7684
|
var require_ieee754 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7356
7685
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
7357
7686
|
exports.read = function(buffer, offset, isLE, mLen, nBytes) {
|
|
@@ -7423,8 +7752,7 @@ var require_ieee754 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7423
7752
|
buffer[offset + i - d] |= s * 128;
|
|
7424
7753
|
};
|
|
7425
7754
|
}));
|
|
7426
|
-
|
|
7427
|
-
//#region ../../../node_modules/buffer/index.js
|
|
7755
|
+
// ../../../node_modules/buffer/index.js
|
|
7428
7756
|
/*!
|
|
7429
7757
|
* The buffer module from node.js, for the browser.
|
|
7430
7758
|
*
|
|
@@ -8534,8 +8862,7 @@ var require_buffer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8534
8862
|
return table;
|
|
8535
8863
|
})();
|
|
8536
8864
|
}));
|
|
8537
|
-
|
|
8538
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/binary.js
|
|
8865
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/binary.js
|
|
8539
8866
|
var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8540
8867
|
var NodeBuffer;
|
|
8541
8868
|
try {
|
|
@@ -8617,8 +8944,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8617
8944
|
represent: representYamlBinary
|
|
8618
8945
|
});
|
|
8619
8946
|
}));
|
|
8620
|
-
|
|
8621
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/omap.js
|
|
8947
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/omap.js
|
|
8622
8948
|
var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8623
8949
|
var Type = require_type();
|
|
8624
8950
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -8649,8 +8975,7 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8649
8975
|
construct: constructYamlOmap
|
|
8650
8976
|
});
|
|
8651
8977
|
}));
|
|
8652
|
-
|
|
8653
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/pairs.js
|
|
8978
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/pairs.js
|
|
8654
8979
|
var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8655
8980
|
var Type = require_type();
|
|
8656
8981
|
var _toString = Object.prototype.toString;
|
|
@@ -8684,8 +9009,7 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8684
9009
|
construct: constructYamlPairs
|
|
8685
9010
|
});
|
|
8686
9011
|
}));
|
|
8687
|
-
|
|
8688
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/set.js
|
|
9012
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/set.js
|
|
8689
9013
|
var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8690
9014
|
var Type = require_type();
|
|
8691
9015
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -8706,8 +9030,7 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8706
9030
|
construct: constructYamlSet
|
|
8707
9031
|
});
|
|
8708
9032
|
}));
|
|
8709
|
-
|
|
8710
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js
|
|
9033
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js
|
|
8711
9034
|
var require_default_safe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8712
9035
|
module.exports = new (require_schema())({
|
|
8713
9036
|
include: [require_core()],
|
|
@@ -8720,8 +9043,7 @@ var require_default_safe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8720
9043
|
]
|
|
8721
9044
|
});
|
|
8722
9045
|
}));
|
|
8723
|
-
|
|
8724
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
|
|
9046
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
|
|
8725
9047
|
var require_undefined = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8726
9048
|
var Type = require_type();
|
|
8727
9049
|
function resolveJavascriptUndefined() {
|
|
@@ -8742,8 +9064,7 @@ var require_undefined = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8742
9064
|
represent: representJavascriptUndefined
|
|
8743
9065
|
});
|
|
8744
9066
|
}));
|
|
8745
|
-
|
|
8746
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js
|
|
9067
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js
|
|
8747
9068
|
var require_regexp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8748
9069
|
var Type = require_type();
|
|
8749
9070
|
function resolveJavascriptRegExp(data) {
|
|
@@ -8783,38 +9104,37 @@ var require_regexp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8783
9104
|
represent: representJavascriptRegExp
|
|
8784
9105
|
});
|
|
8785
9106
|
}));
|
|
8786
|
-
|
|
8787
|
-
|
|
8788
|
-
var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9107
|
+
// ../../../node_modules/esprima/dist/esprima.js
|
|
9108
|
+
var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module, this$1) => {
|
|
8789
9109
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
8790
9110
|
/* istanbul ignore next */
|
|
8791
9111
|
if (typeof exports === "object" && typeof module === "object") module.exports = factory();
|
|
8792
9112
|
else if (typeof define === "function" && define.amd) define([], factory);
|
|
8793
9113
|
else if (typeof exports === "object") exports["esprima"] = factory();
|
|
8794
9114
|
else root["esprima"] = factory();
|
|
8795
|
-
})(
|
|
9115
|
+
})(this$1, function() {
|
|
8796
9116
|
return (function(modules) {
|
|
8797
9117
|
var installedModules = {};
|
|
8798
9118
|
function __webpack_require__(moduleId) {
|
|
8799
9119
|
/* istanbul ignore if */
|
|
8800
9120
|
if (installedModules[moduleId]) return installedModules[moduleId].exports;
|
|
8801
|
-
var module
|
|
9121
|
+
var module = installedModules[moduleId] = {
|
|
8802
9122
|
exports: {},
|
|
8803
9123
|
id: moduleId,
|
|
8804
9124
|
loaded: false
|
|
8805
9125
|
};
|
|
8806
|
-
modules[moduleId].call(module
|
|
8807
|
-
module
|
|
8808
|
-
return module
|
|
9126
|
+
modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
9127
|
+
module.loaded = true;
|
|
9128
|
+
return module.exports;
|
|
8809
9129
|
}
|
|
8810
9130
|
__webpack_require__.m = modules;
|
|
8811
9131
|
__webpack_require__.c = installedModules;
|
|
8812
9132
|
__webpack_require__.p = "";
|
|
8813
9133
|
return __webpack_require__(0);
|
|
8814
9134
|
})([
|
|
8815
|
-
function(module
|
|
9135
|
+
function(module, exports, __webpack_require__) {
|
|
8816
9136
|
"use strict";
|
|
8817
|
-
Object.defineProperty(exports
|
|
9137
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8818
9138
|
var comment_handler_1 = __webpack_require__(1);
|
|
8819
9139
|
var jsx_parser_1 = __webpack_require__(3);
|
|
8820
9140
|
var parser_1 = __webpack_require__(8);
|
|
@@ -8848,19 +9168,19 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8848
9168
|
if (parser.config.tolerant) ast.errors = parser.errorHandler.errors;
|
|
8849
9169
|
return ast;
|
|
8850
9170
|
}
|
|
8851
|
-
exports
|
|
9171
|
+
exports.parse = parse;
|
|
8852
9172
|
function parseModule(code, options, delegate) {
|
|
8853
9173
|
var parsingOptions = options || {};
|
|
8854
9174
|
parsingOptions.sourceType = "module";
|
|
8855
9175
|
return parse(code, parsingOptions, delegate);
|
|
8856
9176
|
}
|
|
8857
|
-
exports
|
|
9177
|
+
exports.parseModule = parseModule;
|
|
8858
9178
|
function parseScript(code, options, delegate) {
|
|
8859
9179
|
var parsingOptions = options || {};
|
|
8860
9180
|
parsingOptions.sourceType = "script";
|
|
8861
9181
|
return parse(code, parsingOptions, delegate);
|
|
8862
9182
|
}
|
|
8863
|
-
exports
|
|
9183
|
+
exports.parseScript = parseScript;
|
|
8864
9184
|
function tokenize(code, options, delegate) {
|
|
8865
9185
|
var tokenizer = new tokenizer_1.Tokenizer(code, options);
|
|
8866
9186
|
var tokens = [];
|
|
@@ -8877,15 +9197,15 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8877
9197
|
if (tokenizer.errorHandler.tolerant) tokens.errors = tokenizer.errors();
|
|
8878
9198
|
return tokens;
|
|
8879
9199
|
}
|
|
8880
|
-
exports
|
|
8881
|
-
exports
|
|
8882
|
-
exports
|
|
9200
|
+
exports.tokenize = tokenize;
|
|
9201
|
+
exports.Syntax = __webpack_require__(2).Syntax;
|
|
9202
|
+
exports.version = "4.0.1";
|
|
8883
9203
|
},
|
|
8884
|
-
function(module
|
|
9204
|
+
function(module, exports, __webpack_require__) {
|
|
8885
9205
|
"use strict";
|
|
8886
|
-
Object.defineProperty(exports
|
|
9206
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8887
9207
|
var syntax_1 = __webpack_require__(2);
|
|
8888
|
-
exports
|
|
9208
|
+
exports.CommentHandler = function() {
|
|
8889
9209
|
function CommentHandler() {
|
|
8890
9210
|
this.attach = false;
|
|
8891
9211
|
this.comments = [];
|
|
@@ -9001,10 +9321,10 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9001
9321
|
return CommentHandler;
|
|
9002
9322
|
}();
|
|
9003
9323
|
},
|
|
9004
|
-
function(module
|
|
9324
|
+
function(module, exports) {
|
|
9005
9325
|
"use strict";
|
|
9006
|
-
Object.defineProperty(exports
|
|
9007
|
-
exports
|
|
9326
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9327
|
+
exports.Syntax = {
|
|
9008
9328
|
AssignmentExpression: "AssignmentExpression",
|
|
9009
9329
|
AssignmentPattern: "AssignmentPattern",
|
|
9010
9330
|
ArrayExpression: "ArrayExpression",
|
|
@@ -9073,7 +9393,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9073
9393
|
YieldExpression: "YieldExpression"
|
|
9074
9394
|
};
|
|
9075
9395
|
},
|
|
9076
|
-
function(module
|
|
9396
|
+
function(module, exports, __webpack_require__) {
|
|
9077
9397
|
"use strict";
|
|
9078
9398
|
/* istanbul ignore next */
|
|
9079
9399
|
var __extends = this && this.__extends || (function() {
|
|
@@ -9090,7 +9410,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9090
9410
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
9091
9411
|
};
|
|
9092
9412
|
})();
|
|
9093
|
-
Object.defineProperty(exports
|
|
9413
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9094
9414
|
var character_1 = __webpack_require__(4);
|
|
9095
9415
|
var JSXNode = __webpack_require__(5);
|
|
9096
9416
|
var jsx_syntax_1 = __webpack_require__(6);
|
|
@@ -9116,7 +9436,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9116
9436
|
}
|
|
9117
9437
|
return qualifiedName;
|
|
9118
9438
|
}
|
|
9119
|
-
exports
|
|
9439
|
+
exports.JSXParser = function(_super) {
|
|
9120
9440
|
__extends(JSXParser, _super);
|
|
9121
9441
|
function JSXParser(code, options, delegate) {
|
|
9122
9442
|
return _super.call(this, code, options, delegate) || this;
|
|
@@ -9531,14 +9851,14 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9531
9851
|
return JSXParser;
|
|
9532
9852
|
}(parser_1.Parser);
|
|
9533
9853
|
},
|
|
9534
|
-
function(module
|
|
9854
|
+
function(module, exports) {
|
|
9535
9855
|
"use strict";
|
|
9536
|
-
Object.defineProperty(exports
|
|
9856
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9537
9857
|
var Regex = {
|
|
9538
9858
|
NonAsciiIdentifierStart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,
|
|
9539
9859
|
NonAsciiIdentifierPart: /[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/
|
|
9540
9860
|
};
|
|
9541
|
-
exports
|
|
9861
|
+
exports.Character = {
|
|
9542
9862
|
fromCodePoint: function(cp) {
|
|
9543
9863
|
return cp < 65536 ? String.fromCharCode(cp) : String.fromCharCode(55296 + (cp - 65536 >> 10)) + String.fromCharCode(56320 + (cp - 65536 & 1023));
|
|
9544
9864
|
},
|
|
@@ -9566,10 +9886,10 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9566
9886
|
return cp === 10 || cp === 13 || cp === 8232 || cp === 8233;
|
|
9567
9887
|
},
|
|
9568
9888
|
isIdentifierStart: function(cp) {
|
|
9569
|
-
return cp === 36 || cp === 95 || cp >= 65 && cp <= 90 || cp >= 97 && cp <= 122 || cp === 92 || cp >= 128 && Regex.NonAsciiIdentifierStart.test(exports
|
|
9889
|
+
return cp === 36 || cp === 95 || cp >= 65 && cp <= 90 || cp >= 97 && cp <= 122 || cp === 92 || cp >= 128 && Regex.NonAsciiIdentifierStart.test(exports.Character.fromCodePoint(cp));
|
|
9570
9890
|
},
|
|
9571
9891
|
isIdentifierPart: function(cp) {
|
|
9572
|
-
return cp === 36 || cp === 95 || cp >= 65 && cp <= 90 || cp >= 97 && cp <= 122 || cp >= 48 && cp <= 57 || cp === 92 || cp >= 128 && Regex.NonAsciiIdentifierPart.test(exports
|
|
9892
|
+
return cp === 36 || cp === 95 || cp >= 65 && cp <= 90 || cp >= 97 && cp <= 122 || cp >= 48 && cp <= 57 || cp === 92 || cp >= 128 && Regex.NonAsciiIdentifierPart.test(exports.Character.fromCodePoint(cp));
|
|
9573
9893
|
},
|
|
9574
9894
|
isDecimalDigit: function(cp) {
|
|
9575
9895
|
return cp >= 48 && cp <= 57;
|
|
@@ -9582,18 +9902,18 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9582
9902
|
}
|
|
9583
9903
|
};
|
|
9584
9904
|
},
|
|
9585
|
-
function(module
|
|
9905
|
+
function(module, exports, __webpack_require__) {
|
|
9586
9906
|
"use strict";
|
|
9587
|
-
Object.defineProperty(exports
|
|
9907
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9588
9908
|
var jsx_syntax_1 = __webpack_require__(6);
|
|
9589
|
-
exports
|
|
9909
|
+
exports.JSXClosingElement = function() {
|
|
9590
9910
|
function JSXClosingElement(name) {
|
|
9591
9911
|
this.type = jsx_syntax_1.JSXSyntax.JSXClosingElement;
|
|
9592
9912
|
this.name = name;
|
|
9593
9913
|
}
|
|
9594
9914
|
return JSXClosingElement;
|
|
9595
9915
|
}();
|
|
9596
|
-
exports
|
|
9916
|
+
exports.JSXElement = function() {
|
|
9597
9917
|
function JSXElement(openingElement, children, closingElement) {
|
|
9598
9918
|
this.type = jsx_syntax_1.JSXSyntax.JSXElement;
|
|
9599
9919
|
this.openingElement = openingElement;
|
|
@@ -9602,27 +9922,27 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9602
9922
|
}
|
|
9603
9923
|
return JSXElement;
|
|
9604
9924
|
}();
|
|
9605
|
-
exports
|
|
9925
|
+
exports.JSXEmptyExpression = function() {
|
|
9606
9926
|
function JSXEmptyExpression() {
|
|
9607
9927
|
this.type = jsx_syntax_1.JSXSyntax.JSXEmptyExpression;
|
|
9608
9928
|
}
|
|
9609
9929
|
return JSXEmptyExpression;
|
|
9610
9930
|
}();
|
|
9611
|
-
exports
|
|
9931
|
+
exports.JSXExpressionContainer = function() {
|
|
9612
9932
|
function JSXExpressionContainer(expression) {
|
|
9613
9933
|
this.type = jsx_syntax_1.JSXSyntax.JSXExpressionContainer;
|
|
9614
9934
|
this.expression = expression;
|
|
9615
9935
|
}
|
|
9616
9936
|
return JSXExpressionContainer;
|
|
9617
9937
|
}();
|
|
9618
|
-
exports
|
|
9938
|
+
exports.JSXIdentifier = function() {
|
|
9619
9939
|
function JSXIdentifier(name) {
|
|
9620
9940
|
this.type = jsx_syntax_1.JSXSyntax.JSXIdentifier;
|
|
9621
9941
|
this.name = name;
|
|
9622
9942
|
}
|
|
9623
9943
|
return JSXIdentifier;
|
|
9624
9944
|
}();
|
|
9625
|
-
exports
|
|
9945
|
+
exports.JSXMemberExpression = function() {
|
|
9626
9946
|
function JSXMemberExpression(object, property) {
|
|
9627
9947
|
this.type = jsx_syntax_1.JSXSyntax.JSXMemberExpression;
|
|
9628
9948
|
this.object = object;
|
|
@@ -9630,7 +9950,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9630
9950
|
}
|
|
9631
9951
|
return JSXMemberExpression;
|
|
9632
9952
|
}();
|
|
9633
|
-
exports
|
|
9953
|
+
exports.JSXAttribute = function() {
|
|
9634
9954
|
function JSXAttribute(name, value) {
|
|
9635
9955
|
this.type = jsx_syntax_1.JSXSyntax.JSXAttribute;
|
|
9636
9956
|
this.name = name;
|
|
@@ -9638,7 +9958,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9638
9958
|
}
|
|
9639
9959
|
return JSXAttribute;
|
|
9640
9960
|
}();
|
|
9641
|
-
exports
|
|
9961
|
+
exports.JSXNamespacedName = function() {
|
|
9642
9962
|
function JSXNamespacedName(namespace, name) {
|
|
9643
9963
|
this.type = jsx_syntax_1.JSXSyntax.JSXNamespacedName;
|
|
9644
9964
|
this.namespace = namespace;
|
|
@@ -9646,7 +9966,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9646
9966
|
}
|
|
9647
9967
|
return JSXNamespacedName;
|
|
9648
9968
|
}();
|
|
9649
|
-
exports
|
|
9969
|
+
exports.JSXOpeningElement = function() {
|
|
9650
9970
|
function JSXOpeningElement(name, selfClosing, attributes) {
|
|
9651
9971
|
this.type = jsx_syntax_1.JSXSyntax.JSXOpeningElement;
|
|
9652
9972
|
this.name = name;
|
|
@@ -9655,14 +9975,14 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9655
9975
|
}
|
|
9656
9976
|
return JSXOpeningElement;
|
|
9657
9977
|
}();
|
|
9658
|
-
exports
|
|
9978
|
+
exports.JSXSpreadAttribute = function() {
|
|
9659
9979
|
function JSXSpreadAttribute(argument) {
|
|
9660
9980
|
this.type = jsx_syntax_1.JSXSyntax.JSXSpreadAttribute;
|
|
9661
9981
|
this.argument = argument;
|
|
9662
9982
|
}
|
|
9663
9983
|
return JSXSpreadAttribute;
|
|
9664
9984
|
}();
|
|
9665
|
-
exports
|
|
9985
|
+
exports.JSXText = function() {
|
|
9666
9986
|
function JSXText(value, raw) {
|
|
9667
9987
|
this.type = jsx_syntax_1.JSXSyntax.JSXText;
|
|
9668
9988
|
this.value = value;
|
|
@@ -9671,10 +9991,10 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9671
9991
|
return JSXText;
|
|
9672
9992
|
}();
|
|
9673
9993
|
},
|
|
9674
|
-
function(module
|
|
9994
|
+
function(module, exports) {
|
|
9675
9995
|
"use strict";
|
|
9676
|
-
Object.defineProperty(exports
|
|
9677
|
-
exports
|
|
9996
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9997
|
+
exports.JSXSyntax = {
|
|
9678
9998
|
JSXAttribute: "JSXAttribute",
|
|
9679
9999
|
JSXClosingElement: "JSXClosingElement",
|
|
9680
10000
|
JSXElement: "JSXElement",
|
|
@@ -9688,25 +10008,25 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9688
10008
|
JSXText: "JSXText"
|
|
9689
10009
|
};
|
|
9690
10010
|
},
|
|
9691
|
-
function(module
|
|
10011
|
+
function(module, exports, __webpack_require__) {
|
|
9692
10012
|
"use strict";
|
|
9693
|
-
Object.defineProperty(exports
|
|
10013
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9694
10014
|
var syntax_1 = __webpack_require__(2);
|
|
9695
|
-
exports
|
|
10015
|
+
exports.ArrayExpression = function() {
|
|
9696
10016
|
function ArrayExpression(elements) {
|
|
9697
10017
|
this.type = syntax_1.Syntax.ArrayExpression;
|
|
9698
10018
|
this.elements = elements;
|
|
9699
10019
|
}
|
|
9700
10020
|
return ArrayExpression;
|
|
9701
10021
|
}();
|
|
9702
|
-
exports
|
|
10022
|
+
exports.ArrayPattern = function() {
|
|
9703
10023
|
function ArrayPattern(elements) {
|
|
9704
10024
|
this.type = syntax_1.Syntax.ArrayPattern;
|
|
9705
10025
|
this.elements = elements;
|
|
9706
10026
|
}
|
|
9707
10027
|
return ArrayPattern;
|
|
9708
10028
|
}();
|
|
9709
|
-
exports
|
|
10029
|
+
exports.ArrowFunctionExpression = function() {
|
|
9710
10030
|
function ArrowFunctionExpression(params, body, expression) {
|
|
9711
10031
|
this.type = syntax_1.Syntax.ArrowFunctionExpression;
|
|
9712
10032
|
this.id = null;
|
|
@@ -9718,7 +10038,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9718
10038
|
}
|
|
9719
10039
|
return ArrowFunctionExpression;
|
|
9720
10040
|
}();
|
|
9721
|
-
exports
|
|
10041
|
+
exports.AssignmentExpression = function() {
|
|
9722
10042
|
function AssignmentExpression(operator, left, right) {
|
|
9723
10043
|
this.type = syntax_1.Syntax.AssignmentExpression;
|
|
9724
10044
|
this.operator = operator;
|
|
@@ -9727,7 +10047,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9727
10047
|
}
|
|
9728
10048
|
return AssignmentExpression;
|
|
9729
10049
|
}();
|
|
9730
|
-
exports
|
|
10050
|
+
exports.AssignmentPattern = function() {
|
|
9731
10051
|
function AssignmentPattern(left, right) {
|
|
9732
10052
|
this.type = syntax_1.Syntax.AssignmentPattern;
|
|
9733
10053
|
this.left = left;
|
|
@@ -9735,7 +10055,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9735
10055
|
}
|
|
9736
10056
|
return AssignmentPattern;
|
|
9737
10057
|
}();
|
|
9738
|
-
exports
|
|
10058
|
+
exports.AsyncArrowFunctionExpression = function() {
|
|
9739
10059
|
function AsyncArrowFunctionExpression(params, body, expression) {
|
|
9740
10060
|
this.type = syntax_1.Syntax.ArrowFunctionExpression;
|
|
9741
10061
|
this.id = null;
|
|
@@ -9747,7 +10067,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9747
10067
|
}
|
|
9748
10068
|
return AsyncArrowFunctionExpression;
|
|
9749
10069
|
}();
|
|
9750
|
-
exports
|
|
10070
|
+
exports.AsyncFunctionDeclaration = function() {
|
|
9751
10071
|
function AsyncFunctionDeclaration(id, params, body) {
|
|
9752
10072
|
this.type = syntax_1.Syntax.FunctionDeclaration;
|
|
9753
10073
|
this.id = id;
|
|
@@ -9759,7 +10079,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9759
10079
|
}
|
|
9760
10080
|
return AsyncFunctionDeclaration;
|
|
9761
10081
|
}();
|
|
9762
|
-
exports
|
|
10082
|
+
exports.AsyncFunctionExpression = function() {
|
|
9763
10083
|
function AsyncFunctionExpression(id, params, body) {
|
|
9764
10084
|
this.type = syntax_1.Syntax.FunctionExpression;
|
|
9765
10085
|
this.id = id;
|
|
@@ -9771,14 +10091,14 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9771
10091
|
}
|
|
9772
10092
|
return AsyncFunctionExpression;
|
|
9773
10093
|
}();
|
|
9774
|
-
exports
|
|
10094
|
+
exports.AwaitExpression = function() {
|
|
9775
10095
|
function AwaitExpression(argument) {
|
|
9776
10096
|
this.type = syntax_1.Syntax.AwaitExpression;
|
|
9777
10097
|
this.argument = argument;
|
|
9778
10098
|
}
|
|
9779
10099
|
return AwaitExpression;
|
|
9780
10100
|
}();
|
|
9781
|
-
exports
|
|
10101
|
+
exports.BinaryExpression = function() {
|
|
9782
10102
|
function BinaryExpression(operator, left, right) {
|
|
9783
10103
|
var logical = operator === "||" || operator === "&&";
|
|
9784
10104
|
this.type = logical ? syntax_1.Syntax.LogicalExpression : syntax_1.Syntax.BinaryExpression;
|
|
@@ -9788,21 +10108,21 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9788
10108
|
}
|
|
9789
10109
|
return BinaryExpression;
|
|
9790
10110
|
}();
|
|
9791
|
-
exports
|
|
10111
|
+
exports.BlockStatement = function() {
|
|
9792
10112
|
function BlockStatement(body) {
|
|
9793
10113
|
this.type = syntax_1.Syntax.BlockStatement;
|
|
9794
10114
|
this.body = body;
|
|
9795
10115
|
}
|
|
9796
10116
|
return BlockStatement;
|
|
9797
10117
|
}();
|
|
9798
|
-
exports
|
|
10118
|
+
exports.BreakStatement = function() {
|
|
9799
10119
|
function BreakStatement(label) {
|
|
9800
10120
|
this.type = syntax_1.Syntax.BreakStatement;
|
|
9801
10121
|
this.label = label;
|
|
9802
10122
|
}
|
|
9803
10123
|
return BreakStatement;
|
|
9804
10124
|
}();
|
|
9805
|
-
exports
|
|
10125
|
+
exports.CallExpression = function() {
|
|
9806
10126
|
function CallExpression(callee, args) {
|
|
9807
10127
|
this.type = syntax_1.Syntax.CallExpression;
|
|
9808
10128
|
this.callee = callee;
|
|
@@ -9810,7 +10130,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9810
10130
|
}
|
|
9811
10131
|
return CallExpression;
|
|
9812
10132
|
}();
|
|
9813
|
-
exports
|
|
10133
|
+
exports.CatchClause = function() {
|
|
9814
10134
|
function CatchClause(param, body) {
|
|
9815
10135
|
this.type = syntax_1.Syntax.CatchClause;
|
|
9816
10136
|
this.param = param;
|
|
@@ -9818,14 +10138,14 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9818
10138
|
}
|
|
9819
10139
|
return CatchClause;
|
|
9820
10140
|
}();
|
|
9821
|
-
exports
|
|
10141
|
+
exports.ClassBody = function() {
|
|
9822
10142
|
function ClassBody(body) {
|
|
9823
10143
|
this.type = syntax_1.Syntax.ClassBody;
|
|
9824
10144
|
this.body = body;
|
|
9825
10145
|
}
|
|
9826
10146
|
return ClassBody;
|
|
9827
10147
|
}();
|
|
9828
|
-
exports
|
|
10148
|
+
exports.ClassDeclaration = function() {
|
|
9829
10149
|
function ClassDeclaration(id, superClass, body) {
|
|
9830
10150
|
this.type = syntax_1.Syntax.ClassDeclaration;
|
|
9831
10151
|
this.id = id;
|
|
@@ -9834,7 +10154,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9834
10154
|
}
|
|
9835
10155
|
return ClassDeclaration;
|
|
9836
10156
|
}();
|
|
9837
|
-
exports
|
|
10157
|
+
exports.ClassExpression = function() {
|
|
9838
10158
|
function ClassExpression(id, superClass, body) {
|
|
9839
10159
|
this.type = syntax_1.Syntax.ClassExpression;
|
|
9840
10160
|
this.id = id;
|
|
@@ -9843,7 +10163,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9843
10163
|
}
|
|
9844
10164
|
return ClassExpression;
|
|
9845
10165
|
}();
|
|
9846
|
-
exports
|
|
10166
|
+
exports.ComputedMemberExpression = function() {
|
|
9847
10167
|
function ComputedMemberExpression(object, property) {
|
|
9848
10168
|
this.type = syntax_1.Syntax.MemberExpression;
|
|
9849
10169
|
this.computed = true;
|
|
@@ -9852,7 +10172,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9852
10172
|
}
|
|
9853
10173
|
return ComputedMemberExpression;
|
|
9854
10174
|
}();
|
|
9855
|
-
exports
|
|
10175
|
+
exports.ConditionalExpression = function() {
|
|
9856
10176
|
function ConditionalExpression(test, consequent, alternate) {
|
|
9857
10177
|
this.type = syntax_1.Syntax.ConditionalExpression;
|
|
9858
10178
|
this.test = test;
|
|
@@ -9861,20 +10181,20 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9861
10181
|
}
|
|
9862
10182
|
return ConditionalExpression;
|
|
9863
10183
|
}();
|
|
9864
|
-
exports
|
|
10184
|
+
exports.ContinueStatement = function() {
|
|
9865
10185
|
function ContinueStatement(label) {
|
|
9866
10186
|
this.type = syntax_1.Syntax.ContinueStatement;
|
|
9867
10187
|
this.label = label;
|
|
9868
10188
|
}
|
|
9869
10189
|
return ContinueStatement;
|
|
9870
10190
|
}();
|
|
9871
|
-
exports
|
|
10191
|
+
exports.DebuggerStatement = function() {
|
|
9872
10192
|
function DebuggerStatement() {
|
|
9873
10193
|
this.type = syntax_1.Syntax.DebuggerStatement;
|
|
9874
10194
|
}
|
|
9875
10195
|
return DebuggerStatement;
|
|
9876
10196
|
}();
|
|
9877
|
-
exports
|
|
10197
|
+
exports.Directive = function() {
|
|
9878
10198
|
function Directive(expression, directive) {
|
|
9879
10199
|
this.type = syntax_1.Syntax.ExpressionStatement;
|
|
9880
10200
|
this.expression = expression;
|
|
@@ -9882,7 +10202,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9882
10202
|
}
|
|
9883
10203
|
return Directive;
|
|
9884
10204
|
}();
|
|
9885
|
-
exports
|
|
10205
|
+
exports.DoWhileStatement = function() {
|
|
9886
10206
|
function DoWhileStatement(body, test) {
|
|
9887
10207
|
this.type = syntax_1.Syntax.DoWhileStatement;
|
|
9888
10208
|
this.body = body;
|
|
@@ -9890,27 +10210,27 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9890
10210
|
}
|
|
9891
10211
|
return DoWhileStatement;
|
|
9892
10212
|
}();
|
|
9893
|
-
exports
|
|
10213
|
+
exports.EmptyStatement = function() {
|
|
9894
10214
|
function EmptyStatement() {
|
|
9895
10215
|
this.type = syntax_1.Syntax.EmptyStatement;
|
|
9896
10216
|
}
|
|
9897
10217
|
return EmptyStatement;
|
|
9898
10218
|
}();
|
|
9899
|
-
exports
|
|
10219
|
+
exports.ExportAllDeclaration = function() {
|
|
9900
10220
|
function ExportAllDeclaration(source) {
|
|
9901
10221
|
this.type = syntax_1.Syntax.ExportAllDeclaration;
|
|
9902
10222
|
this.source = source;
|
|
9903
10223
|
}
|
|
9904
10224
|
return ExportAllDeclaration;
|
|
9905
10225
|
}();
|
|
9906
|
-
exports
|
|
10226
|
+
exports.ExportDefaultDeclaration = function() {
|
|
9907
10227
|
function ExportDefaultDeclaration(declaration) {
|
|
9908
10228
|
this.type = syntax_1.Syntax.ExportDefaultDeclaration;
|
|
9909
10229
|
this.declaration = declaration;
|
|
9910
10230
|
}
|
|
9911
10231
|
return ExportDefaultDeclaration;
|
|
9912
10232
|
}();
|
|
9913
|
-
exports
|
|
10233
|
+
exports.ExportNamedDeclaration = function() {
|
|
9914
10234
|
function ExportNamedDeclaration(declaration, specifiers, source) {
|
|
9915
10235
|
this.type = syntax_1.Syntax.ExportNamedDeclaration;
|
|
9916
10236
|
this.declaration = declaration;
|
|
@@ -9919,7 +10239,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9919
10239
|
}
|
|
9920
10240
|
return ExportNamedDeclaration;
|
|
9921
10241
|
}();
|
|
9922
|
-
exports
|
|
10242
|
+
exports.ExportSpecifier = function() {
|
|
9923
10243
|
function ExportSpecifier(local, exported) {
|
|
9924
10244
|
this.type = syntax_1.Syntax.ExportSpecifier;
|
|
9925
10245
|
this.exported = exported;
|
|
@@ -9927,14 +10247,14 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9927
10247
|
}
|
|
9928
10248
|
return ExportSpecifier;
|
|
9929
10249
|
}();
|
|
9930
|
-
exports
|
|
10250
|
+
exports.ExpressionStatement = function() {
|
|
9931
10251
|
function ExpressionStatement(expression) {
|
|
9932
10252
|
this.type = syntax_1.Syntax.ExpressionStatement;
|
|
9933
10253
|
this.expression = expression;
|
|
9934
10254
|
}
|
|
9935
10255
|
return ExpressionStatement;
|
|
9936
10256
|
}();
|
|
9937
|
-
exports
|
|
10257
|
+
exports.ForInStatement = function() {
|
|
9938
10258
|
function ForInStatement(left, right, body) {
|
|
9939
10259
|
this.type = syntax_1.Syntax.ForInStatement;
|
|
9940
10260
|
this.left = left;
|
|
@@ -9944,7 +10264,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9944
10264
|
}
|
|
9945
10265
|
return ForInStatement;
|
|
9946
10266
|
}();
|
|
9947
|
-
exports
|
|
10267
|
+
exports.ForOfStatement = function() {
|
|
9948
10268
|
function ForOfStatement(left, right, body) {
|
|
9949
10269
|
this.type = syntax_1.Syntax.ForOfStatement;
|
|
9950
10270
|
this.left = left;
|
|
@@ -9953,7 +10273,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9953
10273
|
}
|
|
9954
10274
|
return ForOfStatement;
|
|
9955
10275
|
}();
|
|
9956
|
-
exports
|
|
10276
|
+
exports.ForStatement = function() {
|
|
9957
10277
|
function ForStatement(init, test, update, body) {
|
|
9958
10278
|
this.type = syntax_1.Syntax.ForStatement;
|
|
9959
10279
|
this.init = init;
|
|
@@ -9963,7 +10283,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9963
10283
|
}
|
|
9964
10284
|
return ForStatement;
|
|
9965
10285
|
}();
|
|
9966
|
-
exports
|
|
10286
|
+
exports.FunctionDeclaration = function() {
|
|
9967
10287
|
function FunctionDeclaration(id, params, body, generator) {
|
|
9968
10288
|
this.type = syntax_1.Syntax.FunctionDeclaration;
|
|
9969
10289
|
this.id = id;
|
|
@@ -9975,7 +10295,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9975
10295
|
}
|
|
9976
10296
|
return FunctionDeclaration;
|
|
9977
10297
|
}();
|
|
9978
|
-
exports
|
|
10298
|
+
exports.FunctionExpression = function() {
|
|
9979
10299
|
function FunctionExpression(id, params, body, generator) {
|
|
9980
10300
|
this.type = syntax_1.Syntax.FunctionExpression;
|
|
9981
10301
|
this.id = id;
|
|
@@ -9987,14 +10307,14 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9987
10307
|
}
|
|
9988
10308
|
return FunctionExpression;
|
|
9989
10309
|
}();
|
|
9990
|
-
exports
|
|
10310
|
+
exports.Identifier = function() {
|
|
9991
10311
|
function Identifier(name) {
|
|
9992
10312
|
this.type = syntax_1.Syntax.Identifier;
|
|
9993
10313
|
this.name = name;
|
|
9994
10314
|
}
|
|
9995
10315
|
return Identifier;
|
|
9996
10316
|
}();
|
|
9997
|
-
exports
|
|
10317
|
+
exports.IfStatement = function() {
|
|
9998
10318
|
function IfStatement(test, consequent, alternate) {
|
|
9999
10319
|
this.type = syntax_1.Syntax.IfStatement;
|
|
10000
10320
|
this.test = test;
|
|
@@ -10003,7 +10323,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10003
10323
|
}
|
|
10004
10324
|
return IfStatement;
|
|
10005
10325
|
}();
|
|
10006
|
-
exports
|
|
10326
|
+
exports.ImportDeclaration = function() {
|
|
10007
10327
|
function ImportDeclaration(specifiers, source) {
|
|
10008
10328
|
this.type = syntax_1.Syntax.ImportDeclaration;
|
|
10009
10329
|
this.specifiers = specifiers;
|
|
@@ -10011,21 +10331,21 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10011
10331
|
}
|
|
10012
10332
|
return ImportDeclaration;
|
|
10013
10333
|
}();
|
|
10014
|
-
exports
|
|
10334
|
+
exports.ImportDefaultSpecifier = function() {
|
|
10015
10335
|
function ImportDefaultSpecifier(local) {
|
|
10016
10336
|
this.type = syntax_1.Syntax.ImportDefaultSpecifier;
|
|
10017
10337
|
this.local = local;
|
|
10018
10338
|
}
|
|
10019
10339
|
return ImportDefaultSpecifier;
|
|
10020
10340
|
}();
|
|
10021
|
-
exports
|
|
10341
|
+
exports.ImportNamespaceSpecifier = function() {
|
|
10022
10342
|
function ImportNamespaceSpecifier(local) {
|
|
10023
10343
|
this.type = syntax_1.Syntax.ImportNamespaceSpecifier;
|
|
10024
10344
|
this.local = local;
|
|
10025
10345
|
}
|
|
10026
10346
|
return ImportNamespaceSpecifier;
|
|
10027
10347
|
}();
|
|
10028
|
-
exports
|
|
10348
|
+
exports.ImportSpecifier = function() {
|
|
10029
10349
|
function ImportSpecifier(local, imported) {
|
|
10030
10350
|
this.type = syntax_1.Syntax.ImportSpecifier;
|
|
10031
10351
|
this.local = local;
|
|
@@ -10033,7 +10353,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10033
10353
|
}
|
|
10034
10354
|
return ImportSpecifier;
|
|
10035
10355
|
}();
|
|
10036
|
-
exports
|
|
10356
|
+
exports.LabeledStatement = function() {
|
|
10037
10357
|
function LabeledStatement(label, body) {
|
|
10038
10358
|
this.type = syntax_1.Syntax.LabeledStatement;
|
|
10039
10359
|
this.label = label;
|
|
@@ -10041,7 +10361,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10041
10361
|
}
|
|
10042
10362
|
return LabeledStatement;
|
|
10043
10363
|
}();
|
|
10044
|
-
exports
|
|
10364
|
+
exports.Literal = function() {
|
|
10045
10365
|
function Literal(value, raw) {
|
|
10046
10366
|
this.type = syntax_1.Syntax.Literal;
|
|
10047
10367
|
this.value = value;
|
|
@@ -10049,7 +10369,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10049
10369
|
}
|
|
10050
10370
|
return Literal;
|
|
10051
10371
|
}();
|
|
10052
|
-
exports
|
|
10372
|
+
exports.MetaProperty = function() {
|
|
10053
10373
|
function MetaProperty(meta, property) {
|
|
10054
10374
|
this.type = syntax_1.Syntax.MetaProperty;
|
|
10055
10375
|
this.meta = meta;
|
|
@@ -10057,7 +10377,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10057
10377
|
}
|
|
10058
10378
|
return MetaProperty;
|
|
10059
10379
|
}();
|
|
10060
|
-
exports
|
|
10380
|
+
exports.MethodDefinition = function() {
|
|
10061
10381
|
function MethodDefinition(key, computed, value, kind, isStatic) {
|
|
10062
10382
|
this.type = syntax_1.Syntax.MethodDefinition;
|
|
10063
10383
|
this.key = key;
|
|
@@ -10068,7 +10388,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10068
10388
|
}
|
|
10069
10389
|
return MethodDefinition;
|
|
10070
10390
|
}();
|
|
10071
|
-
exports
|
|
10391
|
+
exports.Module = function() {
|
|
10072
10392
|
function Module(body) {
|
|
10073
10393
|
this.type = syntax_1.Syntax.Program;
|
|
10074
10394
|
this.body = body;
|
|
@@ -10076,7 +10396,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10076
10396
|
}
|
|
10077
10397
|
return Module;
|
|
10078
10398
|
}();
|
|
10079
|
-
exports
|
|
10399
|
+
exports.NewExpression = function() {
|
|
10080
10400
|
function NewExpression(callee, args) {
|
|
10081
10401
|
this.type = syntax_1.Syntax.NewExpression;
|
|
10082
10402
|
this.callee = callee;
|
|
@@ -10084,21 +10404,21 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10084
10404
|
}
|
|
10085
10405
|
return NewExpression;
|
|
10086
10406
|
}();
|
|
10087
|
-
exports
|
|
10407
|
+
exports.ObjectExpression = function() {
|
|
10088
10408
|
function ObjectExpression(properties) {
|
|
10089
10409
|
this.type = syntax_1.Syntax.ObjectExpression;
|
|
10090
10410
|
this.properties = properties;
|
|
10091
10411
|
}
|
|
10092
10412
|
return ObjectExpression;
|
|
10093
10413
|
}();
|
|
10094
|
-
exports
|
|
10414
|
+
exports.ObjectPattern = function() {
|
|
10095
10415
|
function ObjectPattern(properties) {
|
|
10096
10416
|
this.type = syntax_1.Syntax.ObjectPattern;
|
|
10097
10417
|
this.properties = properties;
|
|
10098
10418
|
}
|
|
10099
10419
|
return ObjectPattern;
|
|
10100
10420
|
}();
|
|
10101
|
-
exports
|
|
10421
|
+
exports.Property = function() {
|
|
10102
10422
|
function Property(kind, key, computed, value, method, shorthand) {
|
|
10103
10423
|
this.type = syntax_1.Syntax.Property;
|
|
10104
10424
|
this.key = key;
|
|
@@ -10110,7 +10430,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10110
10430
|
}
|
|
10111
10431
|
return Property;
|
|
10112
10432
|
}();
|
|
10113
|
-
exports
|
|
10433
|
+
exports.RegexLiteral = function() {
|
|
10114
10434
|
function RegexLiteral(value, raw, pattern, flags) {
|
|
10115
10435
|
this.type = syntax_1.Syntax.Literal;
|
|
10116
10436
|
this.value = value;
|
|
@@ -10122,21 +10442,21 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10122
10442
|
}
|
|
10123
10443
|
return RegexLiteral;
|
|
10124
10444
|
}();
|
|
10125
|
-
exports
|
|
10445
|
+
exports.RestElement = function() {
|
|
10126
10446
|
function RestElement(argument) {
|
|
10127
10447
|
this.type = syntax_1.Syntax.RestElement;
|
|
10128
10448
|
this.argument = argument;
|
|
10129
10449
|
}
|
|
10130
10450
|
return RestElement;
|
|
10131
10451
|
}();
|
|
10132
|
-
exports
|
|
10452
|
+
exports.ReturnStatement = function() {
|
|
10133
10453
|
function ReturnStatement(argument) {
|
|
10134
10454
|
this.type = syntax_1.Syntax.ReturnStatement;
|
|
10135
10455
|
this.argument = argument;
|
|
10136
10456
|
}
|
|
10137
10457
|
return ReturnStatement;
|
|
10138
10458
|
}();
|
|
10139
|
-
exports
|
|
10459
|
+
exports.Script = function() {
|
|
10140
10460
|
function Script(body) {
|
|
10141
10461
|
this.type = syntax_1.Syntax.Program;
|
|
10142
10462
|
this.body = body;
|
|
@@ -10144,21 +10464,21 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10144
10464
|
}
|
|
10145
10465
|
return Script;
|
|
10146
10466
|
}();
|
|
10147
|
-
exports
|
|
10467
|
+
exports.SequenceExpression = function() {
|
|
10148
10468
|
function SequenceExpression(expressions) {
|
|
10149
10469
|
this.type = syntax_1.Syntax.SequenceExpression;
|
|
10150
10470
|
this.expressions = expressions;
|
|
10151
10471
|
}
|
|
10152
10472
|
return SequenceExpression;
|
|
10153
10473
|
}();
|
|
10154
|
-
exports
|
|
10474
|
+
exports.SpreadElement = function() {
|
|
10155
10475
|
function SpreadElement(argument) {
|
|
10156
10476
|
this.type = syntax_1.Syntax.SpreadElement;
|
|
10157
10477
|
this.argument = argument;
|
|
10158
10478
|
}
|
|
10159
10479
|
return SpreadElement;
|
|
10160
10480
|
}();
|
|
10161
|
-
exports
|
|
10481
|
+
exports.StaticMemberExpression = function() {
|
|
10162
10482
|
function StaticMemberExpression(object, property) {
|
|
10163
10483
|
this.type = syntax_1.Syntax.MemberExpression;
|
|
10164
10484
|
this.computed = false;
|
|
@@ -10167,13 +10487,13 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10167
10487
|
}
|
|
10168
10488
|
return StaticMemberExpression;
|
|
10169
10489
|
}();
|
|
10170
|
-
exports
|
|
10490
|
+
exports.Super = function() {
|
|
10171
10491
|
function Super() {
|
|
10172
10492
|
this.type = syntax_1.Syntax.Super;
|
|
10173
10493
|
}
|
|
10174
10494
|
return Super;
|
|
10175
10495
|
}();
|
|
10176
|
-
exports
|
|
10496
|
+
exports.SwitchCase = function() {
|
|
10177
10497
|
function SwitchCase(test, consequent) {
|
|
10178
10498
|
this.type = syntax_1.Syntax.SwitchCase;
|
|
10179
10499
|
this.test = test;
|
|
@@ -10181,7 +10501,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10181
10501
|
}
|
|
10182
10502
|
return SwitchCase;
|
|
10183
10503
|
}();
|
|
10184
|
-
exports
|
|
10504
|
+
exports.SwitchStatement = function() {
|
|
10185
10505
|
function SwitchStatement(discriminant, cases) {
|
|
10186
10506
|
this.type = syntax_1.Syntax.SwitchStatement;
|
|
10187
10507
|
this.discriminant = discriminant;
|
|
@@ -10189,7 +10509,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10189
10509
|
}
|
|
10190
10510
|
return SwitchStatement;
|
|
10191
10511
|
}();
|
|
10192
|
-
exports
|
|
10512
|
+
exports.TaggedTemplateExpression = function() {
|
|
10193
10513
|
function TaggedTemplateExpression(tag, quasi) {
|
|
10194
10514
|
this.type = syntax_1.Syntax.TaggedTemplateExpression;
|
|
10195
10515
|
this.tag = tag;
|
|
@@ -10197,7 +10517,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10197
10517
|
}
|
|
10198
10518
|
return TaggedTemplateExpression;
|
|
10199
10519
|
}();
|
|
10200
|
-
exports
|
|
10520
|
+
exports.TemplateElement = function() {
|
|
10201
10521
|
function TemplateElement(value, tail) {
|
|
10202
10522
|
this.type = syntax_1.Syntax.TemplateElement;
|
|
10203
10523
|
this.value = value;
|
|
@@ -10205,7 +10525,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10205
10525
|
}
|
|
10206
10526
|
return TemplateElement;
|
|
10207
10527
|
}();
|
|
10208
|
-
exports
|
|
10528
|
+
exports.TemplateLiteral = function() {
|
|
10209
10529
|
function TemplateLiteral(quasis, expressions) {
|
|
10210
10530
|
this.type = syntax_1.Syntax.TemplateLiteral;
|
|
10211
10531
|
this.quasis = quasis;
|
|
@@ -10213,20 +10533,20 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10213
10533
|
}
|
|
10214
10534
|
return TemplateLiteral;
|
|
10215
10535
|
}();
|
|
10216
|
-
exports
|
|
10536
|
+
exports.ThisExpression = function() {
|
|
10217
10537
|
function ThisExpression() {
|
|
10218
10538
|
this.type = syntax_1.Syntax.ThisExpression;
|
|
10219
10539
|
}
|
|
10220
10540
|
return ThisExpression;
|
|
10221
10541
|
}();
|
|
10222
|
-
exports
|
|
10542
|
+
exports.ThrowStatement = function() {
|
|
10223
10543
|
function ThrowStatement(argument) {
|
|
10224
10544
|
this.type = syntax_1.Syntax.ThrowStatement;
|
|
10225
10545
|
this.argument = argument;
|
|
10226
10546
|
}
|
|
10227
10547
|
return ThrowStatement;
|
|
10228
10548
|
}();
|
|
10229
|
-
exports
|
|
10549
|
+
exports.TryStatement = function() {
|
|
10230
10550
|
function TryStatement(block, handler, finalizer) {
|
|
10231
10551
|
this.type = syntax_1.Syntax.TryStatement;
|
|
10232
10552
|
this.block = block;
|
|
@@ -10235,7 +10555,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10235
10555
|
}
|
|
10236
10556
|
return TryStatement;
|
|
10237
10557
|
}();
|
|
10238
|
-
exports
|
|
10558
|
+
exports.UnaryExpression = function() {
|
|
10239
10559
|
function UnaryExpression(operator, argument) {
|
|
10240
10560
|
this.type = syntax_1.Syntax.UnaryExpression;
|
|
10241
10561
|
this.operator = operator;
|
|
@@ -10244,7 +10564,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10244
10564
|
}
|
|
10245
10565
|
return UnaryExpression;
|
|
10246
10566
|
}();
|
|
10247
|
-
exports
|
|
10567
|
+
exports.UpdateExpression = function() {
|
|
10248
10568
|
function UpdateExpression(operator, argument, prefix) {
|
|
10249
10569
|
this.type = syntax_1.Syntax.UpdateExpression;
|
|
10250
10570
|
this.operator = operator;
|
|
@@ -10253,7 +10573,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10253
10573
|
}
|
|
10254
10574
|
return UpdateExpression;
|
|
10255
10575
|
}();
|
|
10256
|
-
exports
|
|
10576
|
+
exports.VariableDeclaration = function() {
|
|
10257
10577
|
function VariableDeclaration(declarations, kind) {
|
|
10258
10578
|
this.type = syntax_1.Syntax.VariableDeclaration;
|
|
10259
10579
|
this.declarations = declarations;
|
|
@@ -10261,7 +10581,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10261
10581
|
}
|
|
10262
10582
|
return VariableDeclaration;
|
|
10263
10583
|
}();
|
|
10264
|
-
exports
|
|
10584
|
+
exports.VariableDeclarator = function() {
|
|
10265
10585
|
function VariableDeclarator(id, init) {
|
|
10266
10586
|
this.type = syntax_1.Syntax.VariableDeclarator;
|
|
10267
10587
|
this.id = id;
|
|
@@ -10269,7 +10589,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10269
10589
|
}
|
|
10270
10590
|
return VariableDeclarator;
|
|
10271
10591
|
}();
|
|
10272
|
-
exports
|
|
10592
|
+
exports.WhileStatement = function() {
|
|
10273
10593
|
function WhileStatement(test, body) {
|
|
10274
10594
|
this.type = syntax_1.Syntax.WhileStatement;
|
|
10275
10595
|
this.test = test;
|
|
@@ -10277,7 +10597,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10277
10597
|
}
|
|
10278
10598
|
return WhileStatement;
|
|
10279
10599
|
}();
|
|
10280
|
-
exports
|
|
10600
|
+
exports.WithStatement = function() {
|
|
10281
10601
|
function WithStatement(object, body) {
|
|
10282
10602
|
this.type = syntax_1.Syntax.WithStatement;
|
|
10283
10603
|
this.object = object;
|
|
@@ -10285,7 +10605,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10285
10605
|
}
|
|
10286
10606
|
return WithStatement;
|
|
10287
10607
|
}();
|
|
10288
|
-
exports
|
|
10608
|
+
exports.YieldExpression = function() {
|
|
10289
10609
|
function YieldExpression(argument, delegate) {
|
|
10290
10610
|
this.type = syntax_1.Syntax.YieldExpression;
|
|
10291
10611
|
this.argument = argument;
|
|
@@ -10294,9 +10614,9 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10294
10614
|
return YieldExpression;
|
|
10295
10615
|
}();
|
|
10296
10616
|
},
|
|
10297
|
-
function(module
|
|
10617
|
+
function(module, exports, __webpack_require__) {
|
|
10298
10618
|
"use strict";
|
|
10299
|
-
Object.defineProperty(exports
|
|
10619
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10300
10620
|
var assert_1 = __webpack_require__(9);
|
|
10301
10621
|
var error_handler_1 = __webpack_require__(10);
|
|
10302
10622
|
var messages_1 = __webpack_require__(11);
|
|
@@ -10305,7 +10625,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10305
10625
|
var syntax_1 = __webpack_require__(2);
|
|
10306
10626
|
var token_1 = __webpack_require__(13);
|
|
10307
10627
|
var ArrowParameterPlaceHolder = "ArrowParameterPlaceHolder";
|
|
10308
|
-
exports
|
|
10628
|
+
exports.Parser = function() {
|
|
10309
10629
|
function Parser(code, options, delegate) {
|
|
10310
10630
|
if (options === void 0) options = {};
|
|
10311
10631
|
this.config = {
|
|
@@ -12714,19 +13034,19 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
12714
13034
|
return Parser;
|
|
12715
13035
|
}();
|
|
12716
13036
|
},
|
|
12717
|
-
function(module
|
|
13037
|
+
function(module, exports) {
|
|
12718
13038
|
"use strict";
|
|
12719
|
-
Object.defineProperty(exports
|
|
13039
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12720
13040
|
function assert(condition, message) {
|
|
12721
13041
|
/* istanbul ignore if */
|
|
12722
13042
|
if (!condition) throw new Error("ASSERT: " + message);
|
|
12723
13043
|
}
|
|
12724
|
-
exports
|
|
13044
|
+
exports.assert = assert;
|
|
12725
13045
|
},
|
|
12726
|
-
function(module
|
|
13046
|
+
function(module, exports) {
|
|
12727
13047
|
"use strict";
|
|
12728
|
-
Object.defineProperty(exports
|
|
12729
|
-
exports
|
|
13048
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13049
|
+
exports.ErrorHandler = function() {
|
|
12730
13050
|
function ErrorHandler() {
|
|
12731
13051
|
this.errors = [];
|
|
12732
13052
|
this.tolerant = false;
|
|
@@ -12771,10 +13091,10 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
12771
13091
|
return ErrorHandler;
|
|
12772
13092
|
}();
|
|
12773
13093
|
},
|
|
12774
|
-
function(module
|
|
13094
|
+
function(module, exports) {
|
|
12775
13095
|
"use strict";
|
|
12776
|
-
Object.defineProperty(exports
|
|
12777
|
-
exports
|
|
13096
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13097
|
+
exports.Messages = {
|
|
12778
13098
|
BadGetterArity: "Getter must not have any formal parameters",
|
|
12779
13099
|
BadSetterArity: "Setter must have exactly one formal parameter",
|
|
12780
13100
|
BadSetterRestParameter: "Setter function argument must not be a rest parameter",
|
|
@@ -12835,9 +13155,9 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
12835
13155
|
UnterminatedRegExp: "Invalid regular expression: missing /"
|
|
12836
13156
|
};
|
|
12837
13157
|
},
|
|
12838
|
-
function(module
|
|
13158
|
+
function(module, exports, __webpack_require__) {
|
|
12839
13159
|
"use strict";
|
|
12840
|
-
Object.defineProperty(exports
|
|
13160
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12841
13161
|
var assert_1 = __webpack_require__(9);
|
|
12842
13162
|
var character_1 = __webpack_require__(4);
|
|
12843
13163
|
var messages_1 = __webpack_require__(11);
|
|
@@ -12847,7 +13167,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
12847
13167
|
function octalValue(ch) {
|
|
12848
13168
|
return "01234567".indexOf(ch);
|
|
12849
13169
|
}
|
|
12850
|
-
exports
|
|
13170
|
+
exports.Scanner = function() {
|
|
12851
13171
|
function Scanner(code, handler) {
|
|
12852
13172
|
this.source = code;
|
|
12853
13173
|
this.errorHandler = handler;
|
|
@@ -13663,25 +13983,25 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
13663
13983
|
return Scanner;
|
|
13664
13984
|
}();
|
|
13665
13985
|
},
|
|
13666
|
-
function(module
|
|
13986
|
+
function(module, exports) {
|
|
13667
13987
|
"use strict";
|
|
13668
|
-
Object.defineProperty(exports
|
|
13669
|
-
exports
|
|
13670
|
-
exports
|
|
13671
|
-
exports
|
|
13672
|
-
exports
|
|
13673
|
-
exports
|
|
13674
|
-
exports
|
|
13675
|
-
exports
|
|
13676
|
-
exports
|
|
13677
|
-
exports
|
|
13678
|
-
exports
|
|
13679
|
-
exports
|
|
13988
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13989
|
+
exports.TokenName = {};
|
|
13990
|
+
exports.TokenName[1] = "Boolean";
|
|
13991
|
+
exports.TokenName[2] = "<end>";
|
|
13992
|
+
exports.TokenName[3] = "Identifier";
|
|
13993
|
+
exports.TokenName[4] = "Keyword";
|
|
13994
|
+
exports.TokenName[5] = "Null";
|
|
13995
|
+
exports.TokenName[6] = "Numeric";
|
|
13996
|
+
exports.TokenName[7] = "Punctuator";
|
|
13997
|
+
exports.TokenName[8] = "String";
|
|
13998
|
+
exports.TokenName[9] = "RegularExpression";
|
|
13999
|
+
exports.TokenName[10] = "Template";
|
|
13680
14000
|
},
|
|
13681
|
-
function(module
|
|
14001
|
+
function(module, exports) {
|
|
13682
14002
|
"use strict";
|
|
13683
|
-
Object.defineProperty(exports
|
|
13684
|
-
exports
|
|
14003
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14004
|
+
exports.XHTMLEntities = {
|
|
13685
14005
|
quot: "\"",
|
|
13686
14006
|
amp: "&",
|
|
13687
14007
|
apos: "'",
|
|
@@ -13936,9 +14256,9 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
13936
14256
|
rang: "⟩"
|
|
13937
14257
|
};
|
|
13938
14258
|
},
|
|
13939
|
-
function(module
|
|
14259
|
+
function(module, exports, __webpack_require__) {
|
|
13940
14260
|
"use strict";
|
|
13941
|
-
Object.defineProperty(exports
|
|
14261
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13942
14262
|
var error_handler_1 = __webpack_require__(10);
|
|
13943
14263
|
var scanner_1 = __webpack_require__(12);
|
|
13944
14264
|
var token_1 = __webpack_require__(13);
|
|
@@ -14038,7 +14358,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14038
14358
|
};
|
|
14039
14359
|
return Reader;
|
|
14040
14360
|
}();
|
|
14041
|
-
exports
|
|
14361
|
+
exports.Tokenizer = function() {
|
|
14042
14362
|
function Tokenizer(code, config) {
|
|
14043
14363
|
this.errorHandler = new error_handler_1.ErrorHandler();
|
|
14044
14364
|
this.errorHandler.tolerant = config ? typeof config.tolerant === "boolean" && config.tolerant : false;
|
|
@@ -14104,8 +14424,7 @@ var require_esprima = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14104
14424
|
]);
|
|
14105
14425
|
});
|
|
14106
14426
|
}));
|
|
14107
|
-
|
|
14108
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/js/function.js
|
|
14427
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/type/js/function.js
|
|
14109
14428
|
var require_function = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14110
14429
|
var esprima;
|
|
14111
14430
|
try {
|
|
@@ -14148,8 +14467,7 @@ var require_function = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14148
14467
|
represent: representJavascriptFunction
|
|
14149
14468
|
});
|
|
14150
14469
|
}));
|
|
14151
|
-
|
|
14152
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/schema/default_full.js
|
|
14470
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/schema/default_full.js
|
|
14153
14471
|
var require_default_full = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14154
14472
|
var Schema = require_schema();
|
|
14155
14473
|
module.exports = Schema.DEFAULT = new Schema({
|
|
@@ -14161,8 +14479,7 @@ var require_default_full = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14161
14479
|
]
|
|
14162
14480
|
});
|
|
14163
14481
|
}));
|
|
14164
|
-
|
|
14165
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/loader.js
|
|
14482
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/loader.js
|
|
14166
14483
|
var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14167
14484
|
var common = require_common();
|
|
14168
14485
|
var YAMLException = require_exception();
|
|
@@ -14987,8 +15304,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14987
15304
|
module.exports.safeLoadAll = safeLoadAll;
|
|
14988
15305
|
module.exports.safeLoad = safeLoad;
|
|
14989
15306
|
}));
|
|
14990
|
-
|
|
14991
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/dumper.js
|
|
15307
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml/dumper.js
|
|
14992
15308
|
var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14993
15309
|
var common = require_common();
|
|
14994
15310
|
var YAMLException = require_exception();
|
|
@@ -15431,8 +15747,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15431
15747
|
module.exports.dump = dump;
|
|
15432
15748
|
module.exports.safeDump = safeDump;
|
|
15433
15749
|
}));
|
|
15434
|
-
|
|
15435
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml.js
|
|
15750
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/lib/js-yaml.js
|
|
15436
15751
|
var require_js_yaml$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
15437
15752
|
var loader = require_loader();
|
|
15438
15753
|
var dumper = require_dumper();
|
|
@@ -15463,13 +15778,11 @@ var require_js_yaml$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15463
15778
|
module.exports.compose = deprecated("compose");
|
|
15464
15779
|
module.exports.addConstructor = deprecated("addConstructor");
|
|
15465
15780
|
}));
|
|
15466
|
-
|
|
15467
|
-
//#region ../../../node_modules/gray-matter/node_modules/js-yaml/index.js
|
|
15781
|
+
// ../../../node_modules/gray-matter/node_modules/js-yaml/index.js
|
|
15468
15782
|
var require_js_yaml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
15469
15783
|
module.exports = require_js_yaml$1();
|
|
15470
15784
|
}));
|
|
15471
|
-
|
|
15472
|
-
//#region ../../../node_modules/gray-matter/lib/engines.js
|
|
15785
|
+
// ../../../node_modules/gray-matter/lib/engines.js
|
|
15473
15786
|
var require_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
15474
15787
|
var yaml = require_js_yaml();
|
|
15475
15788
|
/**
|
|
@@ -15514,8 +15827,7 @@ var require_engines = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15514
15827
|
}
|
|
15515
15828
|
};
|
|
15516
15829
|
}));
|
|
15517
|
-
|
|
15518
|
-
//#region ../../../node_modules/strip-bom-string/index.js
|
|
15830
|
+
// ../../../node_modules/strip-bom-string/index.js
|
|
15519
15831
|
/*!
|
|
15520
15832
|
* strip-bom-string <https://github.com/jonschlinkert/strip-bom-string>
|
|
15521
15833
|
*
|
|
@@ -15528,8 +15840,7 @@ var require_strip_bom_string = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
15528
15840
|
return str;
|
|
15529
15841
|
};
|
|
15530
15842
|
}));
|
|
15531
|
-
|
|
15532
|
-
//#region ../../../node_modules/gray-matter/lib/utils.js
|
|
15843
|
+
// ../../../node_modules/gray-matter/lib/utils.js
|
|
15533
15844
|
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
15534
15845
|
var stripBom = require_strip_bom_string();
|
|
15535
15846
|
var typeOf = require_kind_of();
|
|
@@ -15581,8 +15892,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
15581
15892
|
return str.slice(0, len) === substr;
|
|
15582
15893
|
};
|
|
15583
15894
|
}));
|
|
15584
|
-
|
|
15585
|
-
//#region ../../../node_modules/gray-matter/lib/defaults.js
|
|
15895
|
+
// ../../../node_modules/gray-matter/lib/defaults.js
|
|
15586
15896
|
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
15587
15897
|
var engines = require_engines();
|
|
15588
15898
|
var utils = require_utils();
|
|
@@ -15595,8 +15905,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15595
15905
|
return opts;
|
|
15596
15906
|
};
|
|
15597
15907
|
}));
|
|
15598
|
-
|
|
15599
|
-
//#region ../../../node_modules/gray-matter/lib/engine.js
|
|
15908
|
+
// ../../../node_modules/gray-matter/lib/engine.js
|
|
15600
15909
|
var require_engine = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
15601
15910
|
module.exports = function(name, options) {
|
|
15602
15911
|
let engine = options.engines[name] || options.engines[aliase(name)];
|
|
@@ -15617,8 +15926,7 @@ var require_engine = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15617
15926
|
}
|
|
15618
15927
|
}
|
|
15619
15928
|
}));
|
|
15620
|
-
|
|
15621
|
-
//#region ../../../node_modules/gray-matter/lib/stringify.js
|
|
15929
|
+
// ../../../node_modules/gray-matter/lib/stringify.js
|
|
15622
15930
|
var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
15623
15931
|
var typeOf = require_kind_of();
|
|
15624
15932
|
var getEngine = require_engine();
|
|
@@ -15656,8 +15964,7 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15656
15964
|
return str.slice(-1) !== "\n" ? str + "\n" : str;
|
|
15657
15965
|
}
|
|
15658
15966
|
}));
|
|
15659
|
-
|
|
15660
|
-
//#region ../../../node_modules/gray-matter/lib/excerpt.js
|
|
15967
|
+
// ../../../node_modules/gray-matter/lib/excerpt.js
|
|
15661
15968
|
var require_excerpt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
15662
15969
|
var defaults = require_defaults();
|
|
15663
15970
|
module.exports = function(file, options) {
|
|
@@ -15672,8 +15979,7 @@ var require_excerpt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15672
15979
|
return file;
|
|
15673
15980
|
};
|
|
15674
15981
|
}));
|
|
15675
|
-
|
|
15676
|
-
//#region ../../../node_modules/gray-matter/lib/to-file.js
|
|
15982
|
+
// ../../../node_modules/gray-matter/lib/to-file.js
|
|
15677
15983
|
var require_to_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
15678
15984
|
var typeOf = require_kind_of();
|
|
15679
15985
|
var stringify = require_stringify();
|
|
@@ -15699,8 +16005,7 @@ var require_to_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15699
16005
|
return file;
|
|
15700
16006
|
};
|
|
15701
16007
|
}));
|
|
15702
|
-
|
|
15703
|
-
//#region ../../../node_modules/gray-matter/lib/parse.js
|
|
16008
|
+
// ../../../node_modules/gray-matter/lib/parse.js
|
|
15704
16009
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
15705
16010
|
var getEngine = require_engine();
|
|
15706
16011
|
var defaults = require_defaults();
|
|
@@ -15711,8 +16016,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15711
16016
|
return engine.parse(str, opts);
|
|
15712
16017
|
};
|
|
15713
16018
|
}));
|
|
15714
|
-
|
|
15715
|
-
//#region ../../../node_modules/gray-matter/index.js
|
|
16019
|
+
// ../../../node_modules/gray-matter/index.js
|
|
15716
16020
|
var require_gray_matter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
15717
16021
|
var fs = require___vite_browser_external();
|
|
15718
16022
|
var sections = require_section_matter();
|
|
@@ -15877,56 +16181,8 @@ var require_gray_matter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15877
16181
|
};
|
|
15878
16182
|
module.exports = matter;
|
|
15879
16183
|
}));
|
|
15880
|
-
|
|
15881
|
-
//#region ../core/dist/document/front-matter.js
|
|
16184
|
+
// ../core/dist/document/front-matter.js
|
|
15882
16185
|
var import_gray_matter = /* @__PURE__ */ __toESM(require_gray_matter(), 1);
|
|
15883
|
-
|
|
15884
|
-
//#region src/engine-context.ts
|
|
15885
|
-
var EngineContext = createContext(null);
|
|
15886
|
-
/**
|
|
15887
|
-
* Wrap a subtree with the engine instance it belongs to. Every component
|
|
15888
|
-
* rendered under a `BurgerEditorRoot` / editable-area tree reads the engine
|
|
15889
|
-
* through {@link useEngine} instead of taking it as a prop — this is the
|
|
15890
|
-
* single dependency-injection point for the whole client UI.
|
|
15891
|
-
* @param root0 - Provider props
|
|
15892
|
-
* @param root0.engine - The engine instance to expose to the subtree
|
|
15893
|
-
* @param root0.children - The subtree that reads the engine
|
|
15894
|
-
* @example
|
|
15895
|
-
* ```tsx
|
|
15896
|
-
* <EngineProvider engine={engine}>
|
|
15897
|
-
* <BurgerEditorRoot />
|
|
15898
|
-
* </EngineProvider>
|
|
15899
|
-
* ```
|
|
15900
|
-
*/
|
|
15901
|
-
function EngineProvider({ engine, children }) {
|
|
15902
|
-
return createElement(EngineContext, { value: engine }, children);
|
|
15903
|
-
}
|
|
15904
|
-
/**
|
|
15905
|
-
* Read the engine instance from the nearest {@link EngineProvider}.
|
|
15906
|
-
*
|
|
15907
|
-
* Every root the client mounts (`BurgerEditorRoot`, the editable-area
|
|
15908
|
-
* tree, `DraftSwitcher`) wraps itself in an `EngineProvider`, so item
|
|
15909
|
-
* `Editor` components and every `@burger-editor/client/ui` component can
|
|
15910
|
-
* call this instead of taking `engine` as a prop.
|
|
15911
|
-
* @returns The engine instance
|
|
15912
|
-
* @throws {Error} When called outside an `EngineProvider`
|
|
15913
|
-
* @example
|
|
15914
|
-
* ```tsx
|
|
15915
|
-
* function SamplePreview() {
|
|
15916
|
-
* const { config } = useEngine();
|
|
15917
|
-
* if (!config.sampleImagePath) {
|
|
15918
|
-
* return null;
|
|
15919
|
-
* }
|
|
15920
|
-
* return <img src={config.sampleImagePath} alt="" />;
|
|
15921
|
-
* }
|
|
15922
|
-
* ```
|
|
15923
|
-
*/
|
|
15924
|
-
function useEngine() {
|
|
15925
|
-
const engine = use(EngineContext);
|
|
15926
|
-
if (!engine) throw new Error("useEngine() must be called under an <EngineProvider>.");
|
|
15927
|
-
return engine;
|
|
15928
|
-
}
|
|
15929
|
-
//#endregion
|
|
15930
|
-
export { UIStateStore as a, CommandBus as c, formatDate as d, CSS_LAYER as f, BurgerEditorEngine as i, Item as l, useEngine as n, createBgeEvent as o, getBlockAtPosition as r, beginProcessing as s, EngineProvider as t, formatByteSize as u };
|
|
16186
|
+
export { beginProcessing as a, formatByteSize as c, createBgeEvent as i, formatDate as l, BurgerEditorEngine as n, CommandBus as o, UIStateStore as r, Item as s, getBlockAtPosition as t, CSS_LAYER as u };
|
|
15931
16187
|
|
|
15932
|
-
//# sourceMappingURL=
|
|
16188
|
+
//# sourceMappingURL=dist-DYydjVsL.js.map
|