securemark 0.247.2 → 0.249.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/design.md +7 -4
- package/dist/index.js +111 -246
- package/markdown.d.ts +10 -11
- package/package.json +6 -6
- package/src/combinator/control/manipulation/indent.ts +1 -2
- package/src/parser/inline/annotation.test.ts +2 -2
- package/src/parser/inline/annotation.ts +4 -5
- package/src/parser/inline/comment.ts +1 -1
- package/src/parser/inline/deletion.ts +3 -3
- package/src/parser/inline/emphasis.test.ts +5 -4
- package/src/parser/inline/emphasis.ts +8 -3
- package/src/parser/inline/emstrong.ts +14 -6
- package/src/parser/inline/extension/index.ts +1 -2
- package/src/parser/inline/extension/label.ts +1 -2
- package/src/parser/inline/html.test.ts +8 -5
- package/src/parser/inline/html.ts +17 -86
- package/src/parser/inline/insertion.ts +3 -3
- package/src/parser/inline/link.test.ts +2 -2
- package/src/parser/inline/link.ts +3 -4
- package/src/parser/inline/mark.test.ts +5 -4
- package/src/parser/inline/mark.ts +3 -3
- package/src/parser/inline/media.ts +3 -3
- package/src/parser/inline/reference.test.ts +5 -5
- package/src/parser/inline/reference.ts +8 -10
- package/src/parser/inline/ruby.ts +4 -4
- package/src/parser/inline/strong.test.ts +5 -4
- package/src/parser/inline/strong.ts +7 -3
- package/src/parser/inline.test.ts +1 -0
- package/src/parser/processor/figure.ts +18 -19
- package/src/parser/source/escapable.test.ts +4 -3
- package/src/parser/source/escapable.ts +3 -3
- package/src/parser/source/text.test.ts +4 -4
- package/src/parser/source/text.ts +3 -3
- package/src/parser/source/unescapable.test.ts +4 -3
- package/src/parser/source/unescapable.ts +3 -3
- package/src/parser/util.ts +26 -13
- package/src/renderer/render/media/image.ts +3 -3
- package/src/renderer/render/media/video.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! securemark v0.
|
|
1
|
+
/*! securemark v0.249.0 https://github.com/falsandtru/securemark | (c) 2017, falsandtru | UNLICENSED License */
|
|
2
2
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
3
3
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
4
4
|
module.exports = factory(require("DOMPurify"), require("Prism"));
|
|
@@ -64,50 +64,18 @@ __exportStar(__webpack_require__(256), exports);
|
|
|
64
64
|
Object.defineProperty(exports, "__esModule", ({
|
|
65
65
|
value: true
|
|
66
66
|
}));
|
|
67
|
-
exports.
|
|
67
|
+
exports.ObjectSetPrototypeOf = exports.ObjectGetPrototypeOf = exports.ObjectCreate = exports.ObjectAssign = exports.toString = exports.isEnumerable = exports.isPrototypeOf = exports.hasOwnProperty = exports.isArray = exports.sign = exports.round = exports.random = exports.min = exports.max = exports.floor = exports.ceil = exports.abs = exports.parseInt = exports.parseFloat = exports.isSafeInteger = exports.isNaN = exports.isInteger = exports.isFinite = exports[NaN] = void 0;
|
|
68
68
|
exports[NaN] = Number.NaN, exports.isFinite = Number.isFinite, exports.isInteger = Number.isInteger, exports.isNaN = Number.isNaN, exports.isSafeInteger = Number.isSafeInteger, exports.parseFloat = Number.parseFloat, exports.parseInt = Number.parseInt;
|
|
69
|
-
exports.abs = Math.abs, exports.ceil = Math.ceil, exports.floor = Math.floor, exports.max = Math.max, exports.min = Math.min, exports.random = Math.random, exports.round = Math.round, exports.sign = Math.sign;
|
|
70
|
-
|
|
71
|
-
exports.SymbolFor = Symbol.for; //export const SymbolHasInstance: typeof Symbol.hasInstance = Symbol.hasInstance;
|
|
72
|
-
//export const SymbolIsConcatSpreadable: typeof Symbol.isConcatSpreadable = Symbol.isConcatSpreadable;
|
|
73
|
-
//export const SymbolIterator: typeof Symbol.iterator = Symbol.iterator;
|
|
74
|
-
|
|
75
|
-
exports.SymbolKeyFor = Symbol.keyFor; //export const SymbolMatch: typeof Symbol.match = Symbol.match;
|
|
76
|
-
//export const SymbolReplace: typeof Symbol.replace = Symbol.replace;
|
|
77
|
-
//export const SymbolSearch: typeof Symbol.search = Symbol.search;
|
|
78
|
-
//export const SymbolSpecies: typeof Symbol.species = Symbol.species;
|
|
79
|
-
//export const SymbolSplit: typeof Symbol.split = Symbol.split;
|
|
80
|
-
//export const SymbolToPrimitive: typeof Symbol.toPrimitive = Symbol.toPrimitive;
|
|
81
|
-
//export const SymbolToStringTag: typeof Symbol.toStringTag = Symbol.toStringTag;
|
|
82
|
-
//export const SymbolUnscopables: typeof Symbol.unscopables = Symbol.unscopables;
|
|
83
|
-
|
|
69
|
+
exports.abs = Math.abs, exports.ceil = Math.ceil, exports.floor = Math.floor, exports.max = Math.max, exports.min = Math.min, exports.random = Math.random, exports.round = Math.round, exports.sign = Math.sign;
|
|
70
|
+
exports.isArray = Array.isArray;
|
|
84
71
|
exports.hasOwnProperty = Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty);
|
|
85
72
|
exports.isPrototypeOf = Object.prototype.isPrototypeOf.call.bind(Object.prototype.isPrototypeOf);
|
|
86
73
|
exports.isEnumerable = Object.prototype.propertyIsEnumerable.call.bind(Object.prototype.propertyIsEnumerable);
|
|
87
74
|
exports.toString = Object.prototype.toString.call.bind(Object.prototype.toString);
|
|
88
75
|
exports.ObjectAssign = Object.assign;
|
|
89
76
|
exports.ObjectCreate = Object.create;
|
|
90
|
-
exports.ObjectDefineProperties = Object.defineProperties;
|
|
91
|
-
exports.ObjectDefineProperty = Object.defineProperty;
|
|
92
|
-
exports.ObjectEntries = Object.entries;
|
|
93
|
-
exports.ObjectFreeze = Object.freeze; // @ts-ignore
|
|
94
|
-
|
|
95
|
-
exports.ObjectFromEntries = Object.fromEntries;
|
|
96
|
-
exports.ObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
97
|
-
exports.ObjectGetOwnPropertyDescriptors = Object.getOwnPropertyDescriptors;
|
|
98
|
-
exports.ObjectGetOwnPropertyNames = Object.getOwnPropertyNames;
|
|
99
|
-
exports.ObjectGetOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
100
77
|
exports.ObjectGetPrototypeOf = Object.getPrototypeOf;
|
|
101
|
-
exports.ObjectIs = Object.is;
|
|
102
|
-
exports.isExtensible = Object.isExtensible;
|
|
103
|
-
exports.isFrozen = Object.isFrozen;
|
|
104
|
-
exports.isSealed = Object.isSealed;
|
|
105
|
-
exports.ObjectKeys = Object.keys;
|
|
106
|
-
exports.ObjectPreventExtensions = Object.preventExtensions;
|
|
107
|
-
exports.ObjectSeal = Object.seal;
|
|
108
78
|
exports.ObjectSetPrototypeOf = Object.setPrototypeOf;
|
|
109
|
-
exports.ObjectValues = Object.values;
|
|
110
|
-
exports.isArray = Array.isArray;
|
|
111
79
|
|
|
112
80
|
/***/ }),
|
|
113
81
|
|
|
@@ -120,7 +88,7 @@ exports.isArray = Array.isArray;
|
|
|
120
88
|
Object.defineProperty(exports, "__esModule", ({
|
|
121
89
|
value: true
|
|
122
90
|
}));
|
|
123
|
-
exports.
|
|
91
|
+
exports.splice = exports.pop = exports.push = exports.shift = exports.unshift = exports.indexOf = void 0;
|
|
124
92
|
|
|
125
93
|
const global_1 = __webpack_require__(4128);
|
|
126
94
|
|
|
@@ -218,18 +186,6 @@ function splice(as, index, count, ...inserts) {
|
|
|
218
186
|
|
|
219
187
|
exports.splice = splice;
|
|
220
188
|
|
|
221
|
-
function join(as, sep = '') {
|
|
222
|
-
let acc = '';
|
|
223
|
-
|
|
224
|
-
for (let i = 0; i < as.length; ++i) {
|
|
225
|
-
acc += i === 0 ? as[i] : sep + as[i];
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
return acc;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
exports.join = join;
|
|
232
|
-
|
|
233
189
|
/***/ }),
|
|
234
190
|
|
|
235
191
|
/***/ 4401:
|
|
@@ -368,7 +324,7 @@ function template(strategy) {
|
|
|
368
324
|
const source = sources[i];
|
|
369
325
|
if (source === target) continue;
|
|
370
326
|
if ((0, type_1.isPrimitive)(source)) continue;
|
|
371
|
-
const keys =
|
|
327
|
+
const keys = global_1.Object.keys(source);
|
|
372
328
|
|
|
373
329
|
for (let i = 0; i < keys.length; ++i) {
|
|
374
330
|
strategy(keys[i], target, source);
|
|
@@ -539,6 +495,8 @@ class Cache {
|
|
|
539
495
|
LRU.head.value.overlap = OVL.unshift(LRU.head.value);
|
|
540
496
|
}
|
|
541
497
|
|
|
498
|
+
// fallthrough
|
|
499
|
+
|
|
542
500
|
default:
|
|
543
501
|
target = LRU.last !== skip ? LRU.last : LRU.length >= 2 ? LRU.last.prev : LFU.last;
|
|
544
502
|
}
|
|
@@ -1470,7 +1428,6 @@ const global_1 = __webpack_require__(4128);
|
|
|
1470
1428
|
|
|
1471
1429
|
const alias_1 = __webpack_require__(5406);
|
|
1472
1430
|
|
|
1473
|
-
const toString = Object.prototype.toString.call.bind(Object.prototype.toString);
|
|
1474
1431
|
const ObjectPrototype = Object.prototype;
|
|
1475
1432
|
const ArrayPrototype = Array.prototype;
|
|
1476
1433
|
|
|
@@ -1484,7 +1441,7 @@ function type(value) {
|
|
|
1484
1441
|
const proto = (0, alias_1.ObjectGetPrototypeOf)(value);
|
|
1485
1442
|
if (proto === ObjectPrototype) return 'Object';
|
|
1486
1443
|
if (proto === ArrayPrototype) return 'Array';
|
|
1487
|
-
return toString(value).slice(8, -1);
|
|
1444
|
+
return (0, alias_1.toString)(value).slice(8, -1);
|
|
1488
1445
|
}
|
|
1489
1446
|
|
|
1490
1447
|
if (type === 'function') return 'Function';
|
|
@@ -2254,11 +2211,9 @@ const surround_1 = __webpack_require__(7130);
|
|
|
2254
2211
|
|
|
2255
2212
|
const memoize_1 = __webpack_require__(1808);
|
|
2256
2213
|
|
|
2257
|
-
const array_1 = __webpack_require__(8112);
|
|
2258
|
-
|
|
2259
2214
|
function indent(parser, separation = false) {
|
|
2260
2215
|
return (0, bind_1.bind)((0, block_1.block)((0, match_1.match)(/^(?=(([ \t])\2*))/, (0, memoize_1.memoize)(([, indent]) => (0, some_1.some)((0, line_1.line)((0, surround_1.open)(indent, source => [[unline(source)], '']))), ([, indent]) => indent.length * 2 + +(indent[0] === ' '), [])), separation), (nodes, rest, context) => {
|
|
2261
|
-
const result = parser(
|
|
2216
|
+
const result = parser(nodes.join('\n'), context);
|
|
2262
2217
|
return result && (0, parser_1.exec)(result) === '' ? [(0, parser_1.eval)(result), rest] : global_1.undefined;
|
|
2263
2218
|
});
|
|
2264
2219
|
}
|
|
@@ -5353,7 +5308,7 @@ const util_1 = __webpack_require__(9437);
|
|
|
5353
5308
|
|
|
5354
5309
|
const dom_1 = __webpack_require__(3252);
|
|
5355
5310
|
|
|
5356
|
-
exports.annotation = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.validate)('((', '))', '\n', (0, combinator_1.fmap)((0, combinator_1.surround)('((', (0, combinator_1.guard)(context => context.syntax?.inline?.annotation ?? true, (0,
|
|
5311
|
+
exports.annotation = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.validate)('((', '))', '\n', (0, combinator_1.fmap)((0, combinator_1.surround)('((', (0, combinator_1.guard)(context => context.syntax?.inline?.annotation ?? true, (0, combinator_1.context)({
|
|
5357
5312
|
syntax: {
|
|
5358
5313
|
inline: {
|
|
5359
5314
|
annotation: false,
|
|
@@ -5367,11 +5322,10 @@ exports.annotation = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0,
|
|
|
5367
5322
|
|
|
5368
5323
|
}
|
|
5369
5324
|
},
|
|
5370
|
-
state: global_1.undefined,
|
|
5371
5325
|
delimiters: global_1.undefined
|
|
5372
|
-
}, (0, util_1.
|
|
5326
|
+
}, (0, util_1.trimBlankInline)((0, combinator_1.some)((0, combinator_1.union)([inline_1.inline]), ')', /^\\?\n/)))), '))'), ns => [(0, dom_1.html)('sup', {
|
|
5373
5327
|
class: 'annotation'
|
|
5374
|
-
}, (0,
|
|
5328
|
+
}, (0, dom_1.defrag)(ns))]))));
|
|
5375
5329
|
|
|
5376
5330
|
/***/ }),
|
|
5377
5331
|
|
|
@@ -5723,7 +5677,7 @@ const memoize_1 = __webpack_require__(1808);
|
|
|
5723
5677
|
|
|
5724
5678
|
const array_1 = __webpack_require__(8112);
|
|
5725
5679
|
|
|
5726
|
-
exports.comment = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.validate)('[#', (0, combinator_1.match)(/^(?=\[(#+)\s)/, (0, memoize_1.memoize)(([, fence]) => (0, combinator_1.surround)((0, combinator_1.open)((0, source_1.str)(`[${fence}`), (0, combinator_1.some)(source_1.text, new RegExp(String.raw`^\s+${fence}\]|^\S`)), true), (0, combinator_1.
|
|
5680
|
+
exports.comment = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.validate)('[#', (0, combinator_1.match)(/^(?=\[(#+)\s)/, (0, memoize_1.memoize)(([, fence]) => (0, combinator_1.surround)((0, combinator_1.open)((0, source_1.str)(`[${fence}`), (0, combinator_1.some)(source_1.text, new RegExp(String.raw`^\s+${fence}\]|^\S`)), true), (0, combinator_1.some)((0, combinator_1.union)([inline_1.inline]), new RegExp(String.raw`^\s+${fence}\]`)), (0, combinator_1.close)((0, combinator_1.some)(source_1.text, /^\S/), (0, source_1.str)(`${fence}]`)), true, ([as, bs = [], cs], rest) => [[(0, dom_1.html)('span', {
|
|
5727
5681
|
class: 'comment'
|
|
5728
5682
|
}, [(0, dom_1.html)('input', {
|
|
5729
5683
|
type: 'checkbox'
|
|
@@ -5754,7 +5708,7 @@ const dom_1 = __webpack_require__(3252);
|
|
|
5754
5708
|
|
|
5755
5709
|
const array_1 = __webpack_require__(8112);
|
|
5756
5710
|
|
|
5757
|
-
exports.deletion = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.surround)((0, source_1.str)('~~'), (0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, util_1.
|
|
5711
|
+
exports.deletion = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.surround)((0, source_1.str)('~~'), (0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, util_1.blankWith)('\n', '~~')), (0, combinator_1.open)('\n', (0, combinator_1.some)(inline_1.inline, '~'), true)])), (0, source_1.str)('~~'), false, ([, bs], rest) => [[(0, dom_1.html)('del', (0, dom_1.defrag)(bs))], rest], ([as, bs], rest) => [(0, array_1.unshift)(as, bs), rest])));
|
|
5758
5712
|
|
|
5759
5713
|
/***/ }),
|
|
5760
5714
|
|
|
@@ -5773,6 +5727,8 @@ const combinator_1 = __webpack_require__(2087);
|
|
|
5773
5727
|
|
|
5774
5728
|
const inline_1 = __webpack_require__(1160);
|
|
5775
5729
|
|
|
5730
|
+
const emstrong_1 = __webpack_require__(6132);
|
|
5731
|
+
|
|
5776
5732
|
const strong_1 = __webpack_require__(8072);
|
|
5777
5733
|
|
|
5778
5734
|
const source_1 = __webpack_require__(6743);
|
|
@@ -5783,7 +5739,7 @@ const dom_1 = __webpack_require__(3252);
|
|
|
5783
5739
|
|
|
5784
5740
|
const array_1 = __webpack_require__(8112);
|
|
5785
5741
|
|
|
5786
|
-
exports.emphasis = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.surround)((0, source_1.str)('*'), (0, util_1.startTight)((0, combinator_1.some)((0, combinator_1.union)([strong_1.strong, (0, combinator_1.some)(inline_1.inline, (0, util_1.
|
|
5742
|
+
exports.emphasis = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.surround)((0, source_1.str)('*'), (0, util_1.startTight)((0, combinator_1.some)((0, combinator_1.union)([strong_1.strong, (0, combinator_1.some)(inline_1.inline, (0, util_1.blankWith)('*')), (0, combinator_1.open)((0, combinator_1.some)(inline_1.inline, '*'), (0, combinator_1.union)([emstrong_1.emstrong, strong_1.strong, exports.emphasis]))])), '*'), (0, source_1.str)('*'), false, ([, bs], rest) => [[(0, dom_1.html)('em', (0, dom_1.defrag)(bs))], rest], ([as, bs], rest) => [(0, array_1.unshift)(as, bs), rest])));
|
|
5787
5743
|
|
|
5788
5744
|
/***/ }),
|
|
5789
5745
|
|
|
@@ -5804,6 +5760,8 @@ const inline_1 = __webpack_require__(1160);
|
|
|
5804
5760
|
|
|
5805
5761
|
const strong_1 = __webpack_require__(8072);
|
|
5806
5762
|
|
|
5763
|
+
const emphasis_1 = __webpack_require__(3867);
|
|
5764
|
+
|
|
5807
5765
|
const source_1 = __webpack_require__(6743);
|
|
5808
5766
|
|
|
5809
5767
|
const util_1 = __webpack_require__(9437);
|
|
@@ -5812,9 +5770,9 @@ const dom_1 = __webpack_require__(3252);
|
|
|
5812
5770
|
|
|
5813
5771
|
const array_1 = __webpack_require__(8112);
|
|
5814
5772
|
|
|
5815
|
-
const substrong = (0, combinator_1.lazy)(() => (0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, util_1.
|
|
5816
|
-
const subemphasis = (0, combinator_1.lazy)(() => (0, combinator_1.some)((0, combinator_1.union)([strong_1.strong, (0, combinator_1.some)(inline_1.inline, (0, util_1.
|
|
5817
|
-
exports.emstrong = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.surround)((0, source_1.str)('***'), (0, util_1.startTight)((0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, util_1.
|
|
5773
|
+
const substrong = (0, combinator_1.lazy)(() => (0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, util_1.blankWith)('**')), (0, combinator_1.open)((0, combinator_1.some)(inline_1.inline, '*'), (0, combinator_1.union)([exports.emstrong, strong_1.strong]))])));
|
|
5774
|
+
const subemphasis = (0, combinator_1.lazy)(() => (0, combinator_1.some)((0, combinator_1.union)([strong_1.strong, (0, combinator_1.some)(inline_1.inline, (0, util_1.blankWith)('*')), (0, combinator_1.open)((0, combinator_1.some)(inline_1.inline, '*'), (0, combinator_1.union)([exports.emstrong, strong_1.strong, emphasis_1.emphasis]))])));
|
|
5775
|
+
exports.emstrong = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.surround)((0, source_1.str)('***'), (0, util_1.startTight)((0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, util_1.blankWith)('*')), (0, combinator_1.open)((0, combinator_1.some)(inline_1.inline, '*'), inline_1.inline)]))), (0, source_1.str)(/^\*{1,3}/), false, ([, bs, cs], rest, context) => {
|
|
5818
5776
|
switch (cs[0]) {
|
|
5819
5777
|
case '***':
|
|
5820
5778
|
return [[(0, dom_1.html)('em', [(0, dom_1.html)('strong', (0, dom_1.defrag)(bs))])], rest];
|
|
@@ -5915,8 +5873,6 @@ const util_1 = __webpack_require__(9437);
|
|
|
5915
5873
|
|
|
5916
5874
|
const dom_1 = __webpack_require__(3252);
|
|
5917
5875
|
|
|
5918
|
-
const array_1 = __webpack_require__(8112);
|
|
5919
|
-
|
|
5920
5876
|
exports.index = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.validate)('[#', ']', '\n', (0, combinator_1.fmap)((0, indexee_1.indexee)((0, combinator_1.fmap)((0, combinator_1.surround)('[#', (0, combinator_1.guard)(context => context.syntax?.inline?.index ?? true, (0, util_1.startTight)((0, combinator_1.context)({
|
|
5921
5877
|
syntax: {
|
|
5922
5878
|
inline: {
|
|
@@ -5936,7 +5892,7 @@ exports.index = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combi
|
|
|
5936
5892
|
}, el.childNodes)]))));
|
|
5937
5893
|
const signature = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.fmap)((0, combinator_1.open)('|#', (0, util_1.startTight)((0, combinator_1.some)((0, combinator_1.union)([bracket, source_1.txt]), ']'))), ns => [(0, dom_1.html)('span', {
|
|
5938
5894
|
class: 'indexer',
|
|
5939
|
-
'data-index': (0, indexee_1.identity)(
|
|
5895
|
+
'data-index': (0, indexee_1.identity)(ns.join('')).slice(6)
|
|
5940
5896
|
})])));
|
|
5941
5897
|
const bracket = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.union)([(0, combinator_1.surround)((0, source_1.str)('('), (0, combinator_1.some)((0, combinator_1.union)([bracket, source_1.txt]), ')'), (0, source_1.str)(')'), true), (0, combinator_1.surround)((0, source_1.str)('['), (0, combinator_1.some)((0, combinator_1.union)([bracket, source_1.txt]), ']'), (0, source_1.str)(']'), true), (0, combinator_1.surround)((0, source_1.str)('{'), (0, combinator_1.some)((0, combinator_1.union)([bracket, source_1.txt]), '}'), (0, source_1.str)('}'), true), (0, combinator_1.surround)((0, source_1.str)('"'), (0, combinator_1.some)(source_1.txt, '"'), (0, source_1.str)('"'), true)])));
|
|
5942
5898
|
|
|
@@ -6076,8 +6032,6 @@ const source_1 = __webpack_require__(6743);
|
|
|
6076
6032
|
|
|
6077
6033
|
const dom_1 = __webpack_require__(3252);
|
|
6078
6034
|
|
|
6079
|
-
const array_1 = __webpack_require__(8112);
|
|
6080
|
-
|
|
6081
6035
|
const body = (0, source_1.str)(/^\$[A-Za-z]*(?:(?:-[A-Za-z][0-9A-Za-z]*)+|-(?:(?:0|[1-9][0-9]*)\.)*(?:0|[1-9][0-9]*)(?![0-9A-Za-z]))/);
|
|
6082
6036
|
exports.segment = (0, combinator_1.clear)((0, combinator_1.validate)(['[$', '$'], (0, combinator_1.union)([(0, combinator_1.surround)('[', body, ']'), body])));
|
|
6083
6037
|
exports.label = (0, combinator_1.creator)((0, combinator_1.validate)(['[$', '$'], (0, combinator_1.fmap)((0, combinator_1.guard)(context => context.syntax?.inline?.label ?? true, (0, combinator_1.union)([(0, combinator_1.surround)('[', body, ']'), body])), ([text]) => [(0, dom_1.html)('a', {
|
|
@@ -6106,7 +6060,7 @@ function increment(number, position) {
|
|
|
6106
6060
|
ms[i] = i < ns.length ? i + 1 < position ? +ns[i] : +ns[i] + 1 : i + 1 < position ? 0 : 1;
|
|
6107
6061
|
}
|
|
6108
6062
|
|
|
6109
|
-
return
|
|
6063
|
+
return ms.join('.');
|
|
6110
6064
|
}
|
|
6111
6065
|
|
|
6112
6066
|
/***/ }),
|
|
@@ -6158,8 +6112,6 @@ exports.attributes = exports.attribute = exports.html = void 0;
|
|
|
6158
6112
|
|
|
6159
6113
|
const global_1 = __webpack_require__(4128);
|
|
6160
6114
|
|
|
6161
|
-
const alias_1 = __webpack_require__(5406);
|
|
6162
|
-
|
|
6163
6115
|
const combinator_1 = __webpack_require__(2087);
|
|
6164
6116
|
|
|
6165
6117
|
const inline_1 = __webpack_require__(1160);
|
|
@@ -6176,85 +6128,21 @@ const cache_1 = __webpack_require__(9210);
|
|
|
6176
6128
|
|
|
6177
6129
|
const array_1 = __webpack_require__(8112);
|
|
6178
6130
|
|
|
6179
|
-
const tags = Object.freeze(['wbr', 'sup', 'sub', 'small', 'bdo', 'bdi']);
|
|
6131
|
+
const tags = global_1.Object.freeze(['wbr', 'sup', 'sub', 'small', 'bdo', 'bdi']);
|
|
6180
6132
|
const attrspec = {
|
|
6181
6133
|
bdo: {
|
|
6182
|
-
dir: Object.freeze(['ltr', 'rtl'])
|
|
6134
|
+
dir: global_1.Object.freeze(['ltr', 'rtl'])
|
|
6183
6135
|
}
|
|
6184
6136
|
};
|
|
6185
|
-
Object.setPrototypeOf(attrspec, null);
|
|
6186
|
-
Object.values(attrspec).forEach(o => Object.setPrototypeOf(o, null));
|
|
6187
|
-
exports.html = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.validate)('<', (0, combinator_1.validate)(/^<[a-z]+(?=[^\S\n]|>)/, (0, combinator_1.union)([(0, combinator_1.match)(/^(?=<(wbr)(?=[^\S\n]|>))/, (0, memoize_1.memoize)(([, tag]) => (0, combinator_1.surround)(`<${tag}`, (0, combinator_1.some)((0, combinator_1.union)([exports.attribute])), /^\s*>/, true, ([, bs = []], rest) => [[(0, dom_1.html)(tag, attributes('html', [], attrspec[tag], bs))], rest]), ([, tag]) => tags.indexOf(tag), [])), (0, combinator_1.match)(/^(?=<(sup|sub|small)(?=[^\S\n]|>))/, (0, memoize_1.memoize)(([, tag]) => (0, combinator_1.
|
|
6188
|
-
switch (tag) {
|
|
6189
|
-
case 'sup':
|
|
6190
|
-
case 'sub':
|
|
6191
|
-
return {
|
|
6192
|
-
state: {
|
|
6193
|
-
in: {
|
|
6194
|
-
supsub: true
|
|
6195
|
-
}
|
|
6196
|
-
},
|
|
6197
|
-
syntax: {
|
|
6198
|
-
inline: {
|
|
6199
|
-
annotation: false,
|
|
6200
|
-
reference: false,
|
|
6201
|
-
media: false
|
|
6202
|
-
}
|
|
6203
|
-
}
|
|
6204
|
-
};
|
|
6205
|
-
|
|
6206
|
-
case 'small':
|
|
6207
|
-
return {
|
|
6208
|
-
state: {
|
|
6209
|
-
in: {
|
|
6210
|
-
small: true
|
|
6211
|
-
}
|
|
6212
|
-
},
|
|
6213
|
-
syntax: {
|
|
6214
|
-
inline: {
|
|
6215
|
-
media: false
|
|
6216
|
-
}
|
|
6217
|
-
}
|
|
6218
|
-
};
|
|
6219
|
-
|
|
6220
|
-
default:
|
|
6221
|
-
return {};
|
|
6222
|
-
}
|
|
6223
|
-
})(), (0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, util_1.blank)(/\n?/, `</${tag}>`)), (0, combinator_1.open)(/^\n?/, (0, combinator_1.some)(inline_1.inline, '</'), true)]), `</${tag}>`)), `</${tag}>`), (0, source_1.str)(`</${tag}>`), false, ([as, bs, cs], rest, context) => [[elem(tag, as, (0, dom_1.defrag)(bs), cs, context)], rest])), ([, tag]) => tags.indexOf(tag), [])), (0, combinator_1.match)(/^(?=<(bdo|bdi)(?=[^\S\n]|>))/, (0, memoize_1.memoize)(([, tag]) => (0, combinator_1.validate)(`<${tag}`, `</${tag}>`, (0, combinator_1.surround)((0, combinator_1.surround)((0, source_1.str)(`<${tag}`), (0, combinator_1.some)(exports.attribute), (0, source_1.str)(/^\s*>/), true), (0, util_1.startLoose)((0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, util_1.blank)(/\n?/, `</${tag}>`)), (0, combinator_1.open)(/^\n?/, (0, combinator_1.some)(inline_1.inline, '</'), true)]), `</${tag}>`), `</${tag}>`), (0, source_1.str)(`</${tag}>`), false, ([as, bs, cs], rest, context) => [[elem(tag, as, (0, dom_1.defrag)(bs), cs, context)], rest], ([as, bs], rest) => as.length === 1 ? [(0, array_1.unshift)(as, bs), rest] : global_1.undefined)), ([, tag]) => tags.indexOf(tag), [])), (0, combinator_1.match)(/^(?=<([a-z]+)(?=[^\S\n]|>))/, (0, memoize_1.memoize)(([, tag]) => (0, combinator_1.validate)(`<${tag}`, `</${tag}>`, (0, combinator_1.surround)((0, combinator_1.surround)((0, source_1.str)(`<${tag}`), (0, combinator_1.some)(exports.attribute), (0, source_1.str)(/^\s*>/), true), (0, util_1.startLoose)((0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, util_1.blank)(/\n?/, `</${tag}>`)), (0, combinator_1.open)(/^\n?/, (0, combinator_1.some)(inline_1.inline, '</'), true)]), `</${tag}>`), `</${tag}>`), (0, source_1.str)(`</${tag}>`), false, ([as, bs, cs], rest, context) => [[elem(tag, as, (0, dom_1.defrag)(bs), cs, context)], rest], ([as, bs], rest) => as.length === 1 ? [(0, array_1.unshift)(as, bs), rest] : global_1.undefined)), ([, tag]) => tag, new cache_1.Cache(10000)))])))));
|
|
6137
|
+
global_1.Object.setPrototypeOf(attrspec, null);
|
|
6138
|
+
global_1.Object.values(attrspec).forEach(o => global_1.Object.setPrototypeOf(o, null));
|
|
6139
|
+
exports.html = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.validate)('<', (0, combinator_1.validate)(/^<[a-z]+(?=[^\S\n]|>)/, (0, combinator_1.union)([(0, combinator_1.match)(/^(?=<(wbr)(?=[^\S\n]|>))/, (0, memoize_1.memoize)(([, tag]) => (0, combinator_1.surround)(`<${tag}`, (0, combinator_1.some)((0, combinator_1.union)([exports.attribute])), /^\s*>/, true, ([, bs = []], rest) => [[(0, dom_1.html)(tag, attributes('html', [], attrspec[tag], bs))], rest]), ([, tag]) => tags.indexOf(tag), [])), (0, combinator_1.match)(/^(?=<(sup|sub|small|bdo|bdi)(?=[^\S\n]|>))/, (0, memoize_1.memoize)(([, tag]) => (0, combinator_1.surround)((0, combinator_1.surround)((0, source_1.str)(`<${tag}`), (0, combinator_1.some)(exports.attribute), (0, source_1.str)(/^\s*>/), true), (0, util_1.startLoose)((0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.open)(/^\n?/, (0, combinator_1.some)(inline_1.inline, (0, util_1.blankWith)('\n', `</${tag}>`)), true)]), `</${tag}>`), `</${tag}>`), (0, source_1.str)(`</${tag}>`), false, ([as, bs, cs], rest) => [[elem(tag, as, (0, dom_1.defrag)(bs), cs)], rest]), ([, tag]) => tags.indexOf(tag), [])), (0, combinator_1.match)(/^(?=<([a-z]+)(?=[^\S\n]|>))/, (0, memoize_1.memoize)(([, tag]) => (0, combinator_1.surround)((0, combinator_1.surround)((0, source_1.str)(`<${tag}`), (0, combinator_1.some)(exports.attribute), (0, source_1.str)(/^\s*>/), true), (0, util_1.startLoose)((0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.open)(/^\n?/, (0, combinator_1.some)(inline_1.inline, (0, util_1.blankWith)('\n', `</${tag}>`)), true)]), `</${tag}>`), `</${tag}>`), (0, source_1.str)(`</${tag}>`), false, ([as, bs, cs], rest) => [[elem(tag, as, (0, dom_1.defrag)(bs), cs)], rest]), ([, tag]) => tag, new cache_1.Cache(10000)))])))));
|
|
6224
6140
|
exports.attribute = (0, combinator_1.union)([(0, source_1.str)(/^[^\S\n]+[a-z]+(?:-[a-z]+)*(?:="(?:\\[^\n]|[^\\\n"])*")?(?=[^\S\n]|>)/)]);
|
|
6225
6141
|
|
|
6226
|
-
function elem(tag, as, bs, cs
|
|
6142
|
+
function elem(tag, as, bs, cs) {
|
|
6227
6143
|
if (!tags.includes(tag)) return invalid('tag', `Invalid HTML tag <${tag}>`, as, bs, cs);
|
|
6228
|
-
|
|
6229
|
-
switch (tag) {
|
|
6230
|
-
case 'sup':
|
|
6231
|
-
case 'sub':
|
|
6232
|
-
switch (true) {
|
|
6233
|
-
case context.state?.in?.supsub:
|
|
6234
|
-
return invalid('nest', `<${tag}> HTML tag cannot be used in <sup> or <sub> HTML tag`, as, bs, cs);
|
|
6235
|
-
}
|
|
6236
|
-
|
|
6237
|
-
break;
|
|
6238
|
-
|
|
6239
|
-
case 'small':
|
|
6240
|
-
switch (true) {
|
|
6241
|
-
case context.state?.in?.supsub:
|
|
6242
|
-
case context.state?.in?.small:
|
|
6243
|
-
return invalid('nest', `<${tag}> HTML tag cannot be used in <sup>, <sub>, or <small> HTML tag`, as, bs, cs);
|
|
6244
|
-
}
|
|
6245
|
-
|
|
6246
|
-
break;
|
|
6247
|
-
}
|
|
6248
|
-
|
|
6249
6144
|
const attrs = attributes('html', [], attrspec[tag], as.slice(1, -1));
|
|
6250
|
-
|
|
6251
|
-
switch (true) {
|
|
6252
|
-
case 'data-invalid-syntax' in attrs:
|
|
6253
|
-
return invalid('attribute', 'Invalid HTML attribute', as, bs, cs);
|
|
6254
|
-
|
|
6255
|
-
default:
|
|
6256
|
-
return (0, dom_1.html)(tag, attrs, bs);
|
|
6257
|
-
}
|
|
6145
|
+
return 'data-invalid-syntax' in attrs ? invalid('attribute', 'Invalid HTML attribute', as, bs, cs) : (0, dom_1.html)(tag, attrs, bs);
|
|
6258
6146
|
}
|
|
6259
6147
|
|
|
6260
6148
|
function invalid(type, message, as, bs, cs) {
|
|
@@ -6266,7 +6154,7 @@ function invalid(type, message, as, bs, cs) {
|
|
|
6266
6154
|
}, (0, dom_1.defrag)((0, array_1.push)((0, array_1.unshift)(as, bs), cs)));
|
|
6267
6155
|
}
|
|
6268
6156
|
|
|
6269
|
-
const requiredAttributes = (0, memoize_1.memoize)(spec =>
|
|
6157
|
+
const requiredAttributes = (0, memoize_1.memoize)(spec => global_1.Object.entries(spec).flatMap(([k, v]) => v && global_1.Object.isFrozen(v) ? [k] : []), new WeakMap());
|
|
6270
6158
|
|
|
6271
6159
|
function attributes(syntax, classes, spec, params) {
|
|
6272
6160
|
let invalid = false;
|
|
@@ -6285,7 +6173,7 @@ function attributes(syntax, classes, spec, params) {
|
|
|
6285
6173
|
invalid ||= !!spec && !requiredAttributes(spec).every(name => name in attrs);
|
|
6286
6174
|
|
|
6287
6175
|
if (invalid) {
|
|
6288
|
-
attrs['class'] = (
|
|
6176
|
+
attrs['class'] = (classes.includes('invalid') ? classes : (0, array_1.unshift)(classes, ['invalid'])).join(' ');
|
|
6289
6177
|
attrs['data-invalid-syntax'] = syntax;
|
|
6290
6178
|
attrs['data-invalid-type'] = 'argument';
|
|
6291
6179
|
attrs['data-invalid-message'] = 'Invalid argument';
|
|
@@ -6356,7 +6244,7 @@ const dom_1 = __webpack_require__(3252);
|
|
|
6356
6244
|
|
|
6357
6245
|
const array_1 = __webpack_require__(8112);
|
|
6358
6246
|
|
|
6359
|
-
exports.insertion = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.surround)((0, source_1.str)('++'), (0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, util_1.
|
|
6247
|
+
exports.insertion = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.surround)((0, source_1.str)('++'), (0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, util_1.blankWith)('\n', '++')), (0, combinator_1.open)('\n', (0, combinator_1.some)(inline_1.inline, '+'), true)])), (0, source_1.str)('++'), false, ([, bs], rest) => [[(0, dom_1.html)('ins', (0, dom_1.defrag)(bs))], rest], ([as, bs], rest) => [(0, array_1.unshift)(as, bs), rest])));
|
|
6360
6248
|
|
|
6361
6249
|
/***/ }),
|
|
6362
6250
|
|
|
@@ -6401,7 +6289,7 @@ exports.link = (0, combinator_1.lazy)(() => (0, combinator_1.creator)(10, (0, co
|
|
|
6401
6289
|
link: false
|
|
6402
6290
|
}
|
|
6403
6291
|
}
|
|
6404
|
-
}, (0, combinator_1.dup)((0, combinator_1.union)([(0, combinator_1.surround)('[', inline_1.media, ']'), (0, combinator_1.surround)('[', inline_1.shortmedia, ']'), (0, combinator_1.surround)('[', (0,
|
|
6292
|
+
}, (0, combinator_1.dup)((0, combinator_1.union)([(0, combinator_1.surround)('[', inline_1.media, ']'), (0, combinator_1.surround)('[', inline_1.shortmedia, ']'), (0, combinator_1.surround)('[', (0, combinator_1.context)({
|
|
6405
6293
|
syntax: {
|
|
6406
6294
|
inline: {
|
|
6407
6295
|
annotation: false,
|
|
@@ -6414,10 +6302,10 @@ exports.link = (0, combinator_1.lazy)(() => (0, combinator_1.creator)(10, (0, co
|
|
|
6414
6302
|
autolink: false
|
|
6415
6303
|
}
|
|
6416
6304
|
}
|
|
6417
|
-
}, (0, util_1.
|
|
6305
|
+
}, (0, util_1.trimBlankInline)((0, combinator_1.some)(inline_1.inline, ']', /^\\?\n/))), ']', true)]))), (0, combinator_1.dup)((0, combinator_1.surround)(/^{(?![{}])/, (0, combinator_1.inits)([exports.uri, (0, combinator_1.some)(exports.option)]), /^[^\S\n]*}/))]))), ([params, content = []], rest, context) => {
|
|
6418
6306
|
if ((0, parser_1.eval)((0, combinator_1.some)(autolink_1.autolink)((0, util_1.stringify)(content), context))?.some(node => typeof node === 'object')) return;
|
|
6419
6307
|
const INSECURE_URI = params.shift();
|
|
6420
|
-
const el = elem(INSECURE_URI, (0,
|
|
6308
|
+
const el = elem(INSECURE_URI, (0, dom_1.defrag)(content), new url_1.ReadonlyURL(resolve(INSECURE_URI, context.host ?? global_1.location, context.url ?? context.host ?? global_1.location), context.host?.href || global_1.location.href), context.host?.origin || global_1.location.origin);
|
|
6421
6309
|
if (el.classList.contains('invalid')) return [[el], rest];
|
|
6422
6310
|
return [[(0, dom_1.define)(el, (0, html_1.attributes)('link', [], optspec, params))], rest];
|
|
6423
6311
|
}))));
|
|
@@ -6523,7 +6411,7 @@ const dom_1 = __webpack_require__(3252);
|
|
|
6523
6411
|
|
|
6524
6412
|
const array_1 = __webpack_require__(8112);
|
|
6525
6413
|
|
|
6526
|
-
exports.mark = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.surround)((0, source_1.str)('=='), (0, util_1.startTight)((0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, util_1.
|
|
6414
|
+
exports.mark = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.surround)((0, source_1.str)('=='), (0, util_1.startTight)((0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, util_1.blankWith)('==')), (0, combinator_1.open)((0, combinator_1.some)(inline_1.inline, '='), exports.mark)]))), (0, source_1.str)('=='), false, ([, bs], rest) => [[(0, dom_1.html)('mark', (0, dom_1.defrag)(bs))], rest], ([as, bs], rest) => [(0, array_1.unshift)(as, bs), rest])));
|
|
6527
6415
|
|
|
6528
6416
|
/***/ }),
|
|
6529
6417
|
|
|
@@ -6602,7 +6490,7 @@ const optspec = {
|
|
|
6602
6490
|
rel: global_1.undefined
|
|
6603
6491
|
};
|
|
6604
6492
|
Object.setPrototypeOf(optspec, null);
|
|
6605
|
-
exports.media = (0, combinator_1.lazy)(() => (0, combinator_1.creator)(10, (0, combinator_1.validate)(['![', '!{'], '}', '\n', (0, combinator_1.bind)((0, combinator_1.verify)((0, combinator_1.fmap)((0, combinator_1.open)('!', (0, combinator_1.guard)(context => context.syntax?.inline?.media ?? true, (0, combinator_1.tails)([(0, combinator_1.dup)((0, combinator_1.surround)(/^\[(?!\s*\\\s)/, (0, combinator_1.some)((0, combinator_1.union)([htmlentity_1.unsafehtmlentity, bracket, source_1.txt]), ']', /^\\?\n/), ']', true)), (0, combinator_1.dup)((0, combinator_1.surround)(/^{(?![{}])/, (0, combinator_1.inits)([link_1.uri, (0, combinator_1.some)(option)]), /^[^\S\n]*}/))]))), ([as, bs]) => bs ? [[
|
|
6493
|
+
exports.media = (0, combinator_1.lazy)(() => (0, combinator_1.creator)(10, (0, combinator_1.validate)(['![', '!{'], '}', '\n', (0, combinator_1.bind)((0, combinator_1.verify)((0, combinator_1.fmap)((0, combinator_1.open)('!', (0, combinator_1.guard)(context => context.syntax?.inline?.media ?? true, (0, combinator_1.tails)([(0, combinator_1.dup)((0, combinator_1.surround)(/^\[(?!\s*\\\s)/, (0, combinator_1.some)((0, combinator_1.union)([htmlentity_1.unsafehtmlentity, bracket, source_1.txt]), ']', /^\\?\n/), ']', true)), (0, combinator_1.dup)((0, combinator_1.surround)(/^{(?![{}])/, (0, combinator_1.inits)([link_1.uri, (0, combinator_1.some)(option)]), /^[^\S\n]*}/))]))), ([as, bs]) => bs ? [[as.join('').trim() || as.join('')], bs] : [[''], as]), ([[text]]) => text === '' || text.trim() !== ''), ([[text], params], rest, context) => {
|
|
6606
6494
|
const INSECURE_URI = params.shift();
|
|
6607
6495
|
const url = new url_1.ReadonlyURL((0, link_1.resolve)(INSECURE_URI, context.host ?? global_1.location, context.url ?? context.host ?? global_1.location), context.host?.href || global_1.location.href);
|
|
6608
6496
|
let cache;
|
|
@@ -6617,7 +6505,7 @@ exports.media = (0, combinator_1.lazy)(() => (0, combinator_1.creator)(10, (0, c
|
|
|
6617
6505
|
if (context.syntax?.inline?.link === false || cache && cache.tagName !== 'IMG') return [[el], rest];
|
|
6618
6506
|
return (0, combinator_1.fmap)(link_1.link, ([link]) => [(0, dom_1.define)(link, {
|
|
6619
6507
|
target: '_blank'
|
|
6620
|
-
}, [el])])(`{ ${INSECURE_URI}${
|
|
6508
|
+
}, [el])])(`{ ${INSECURE_URI}${params.join('')} }${rest}`, context);
|
|
6621
6509
|
}))));
|
|
6622
6510
|
const bracket = (0, combinator_1.lazy)(() => (0, combinator_1.union)([(0, combinator_1.surround)((0, source_1.str)('('), (0, combinator_1.some)((0, combinator_1.union)([htmlentity_1.unsafehtmlentity, bracket, source_1.txt]), ')'), (0, source_1.str)(')'), true, global_1.undefined, ([as, bs = []], rest) => [(0, array_1.unshift)(as, bs), rest]), (0, combinator_1.surround)((0, source_1.str)('['), (0, combinator_1.some)((0, combinator_1.union)([htmlentity_1.unsafehtmlentity, bracket, source_1.txt]), ']'), (0, source_1.str)(']'), true, global_1.undefined, ([as, bs = []], rest) => [(0, array_1.unshift)(as, bs), rest]), (0, combinator_1.surround)((0, source_1.str)('{'), (0, combinator_1.some)((0, combinator_1.union)([htmlentity_1.unsafehtmlentity, bracket, source_1.txt]), '}'), (0, source_1.str)('}'), true, global_1.undefined, ([as, bs = []], rest) => [(0, array_1.unshift)(as, bs), rest]), (0, combinator_1.surround)((0, source_1.str)('"'), (0, combinator_1.some)((0, combinator_1.union)([htmlentity_1.unsafehtmlentity, source_1.txt]), '"'), (0, source_1.str)('"'), true)]));
|
|
6623
6511
|
const option = (0, combinator_1.union)([(0, combinator_1.fmap)((0, source_1.str)(/^[^\S\n]+[1-9][0-9]*x[1-9][0-9]*(?=[^\S\n]|})/), ([opt]) => [` width="${opt.slice(1).split('x')[0]}"`, ` height="${opt.slice(1).split('x')[1]}"`]), (0, combinator_1.fmap)((0, source_1.str)(/^[^\S\n]+[1-9][0-9]*:[1-9][0-9]*(?=[^\S\n]|})/), ([opt]) => [` aspect-ratio="${opt.slice(1).split(':').join('/')}"`]), link_1.option]);
|
|
@@ -6687,7 +6575,7 @@ const util_1 = __webpack_require__(9437);
|
|
|
6687
6575
|
|
|
6688
6576
|
const dom_1 = __webpack_require__(3252);
|
|
6689
6577
|
|
|
6690
|
-
exports.reference = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.validate)('[[', ']]', '\n', (0, combinator_1.fmap)((0, combinator_1.surround)('[[', (0, combinator_1.guard)(context => context.syntax?.inline?.reference ?? true, (0,
|
|
6578
|
+
exports.reference = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.validate)('[[', ']]', '\n', (0, combinator_1.fmap)((0, combinator_1.surround)('[[', (0, combinator_1.guard)(context => context.syntax?.inline?.reference ?? true, (0, combinator_1.context)({
|
|
6691
6579
|
syntax: {
|
|
6692
6580
|
inline: {
|
|
6693
6581
|
annotation: false,
|
|
@@ -6700,10 +6588,9 @@ exports.reference = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, c
|
|
|
6700
6588
|
|
|
6701
6589
|
}
|
|
6702
6590
|
},
|
|
6703
|
-
state: global_1.undefined,
|
|
6704
6591
|
delimiters: global_1.undefined
|
|
6705
|
-
}, (0, combinator_1.subsequence)([abbr, (0, combinator_1.focus)(/^\^[^\S\n]*/, source => [['', source], '']), (0, util_1.
|
|
6706
|
-
const abbr = (0, combinator_1.creator)((0, combinator_1.
|
|
6592
|
+
}, (0, combinator_1.subsequence)([abbr, (0, combinator_1.focus)(/^\^[^\S\n]*/, source => [['', source], '']), (0, util_1.trimBlankInline)((0, combinator_1.some)(inline_1.inline, ']', /^\\?\n/))]))), ']]'), ns => [(0, dom_1.html)('sup', attributes(ns), (0, dom_1.defrag)(ns))]))));
|
|
6593
|
+
const abbr = (0, combinator_1.creator)((0, combinator_1.bind)((0, combinator_1.surround)('^', (0, combinator_1.union)([(0, source_1.str)(/^(?![0-9]+\s?[|\]])[0-9A-Za-z]+(?:(?:-|(?=\W)(?!'\d)'?(?!\.\d)\.?(?!,\S),? ?)[0-9A-Za-z]+)*(?:-|'?\.?,? ?)?/)]), /^\|?(?=]])|^\|[^\S\n]*/), ([source], rest) => [[(0, dom_1.html)('abbr', source)], rest.replace(util_1.regBlankInlineStart, '')]));
|
|
6707
6594
|
|
|
6708
6595
|
function attributes(ns) {
|
|
6709
6596
|
return typeof ns[0] === 'object' && ns[0].tagName === 'ABBR' ? {
|
|
@@ -6760,7 +6647,7 @@ exports.ruby = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combin
|
|
|
6760
6647
|
return [[(0, dom_1.html)('ruby', attributes(texts, rubies), (0, dom_1.defrag)((0, array_1.push)([...texts[0]].reduce((acc, _, i, texts) => (0, array_1.push)(acc, (0, array_1.unshift)([texts[i]], i < rubies.length && rubies[i] ? [(0, dom_1.html)('rp', '('), (0, dom_1.html)('rt', rubies[i]), (0, dom_1.html)('rp', ')')] : [(0, dom_1.html)('rt')])), []), tail)))], rest];
|
|
6761
6648
|
|
|
6762
6649
|
default:
|
|
6763
|
-
return [[(0, dom_1.html)('ruby', attributes(texts, rubies), (0, dom_1.defrag)((0, array_1.push)((0, array_1.unshift)([
|
|
6650
|
+
return [[(0, dom_1.html)('ruby', attributes(texts, rubies), (0, dom_1.defrag)((0, array_1.push)((0, array_1.unshift)([texts.join(' ')], [(0, dom_1.html)('rp', '('), (0, dom_1.html)('rt', rubies.join(' ').trim()), (0, dom_1.html)('rp', ')')]), tail)))], rest];
|
|
6764
6651
|
}
|
|
6765
6652
|
}))));
|
|
6766
6653
|
const text = (0, combinator_1.creator)((source, context) => {
|
|
@@ -6797,7 +6684,7 @@ const text = (0, combinator_1.creator)((source, context) => {
|
|
|
6797
6684
|
}
|
|
6798
6685
|
}
|
|
6799
6686
|
|
|
6800
|
-
return
|
|
6687
|
+
return acc.join('').trimStart() ? [[acc], ''] : global_1.undefined;
|
|
6801
6688
|
});
|
|
6802
6689
|
|
|
6803
6690
|
function attributes(texts, rubies) {
|
|
@@ -6857,6 +6744,8 @@ const combinator_1 = __webpack_require__(2087);
|
|
|
6857
6744
|
|
|
6858
6745
|
const inline_1 = __webpack_require__(1160);
|
|
6859
6746
|
|
|
6747
|
+
const emstrong_1 = __webpack_require__(6132);
|
|
6748
|
+
|
|
6860
6749
|
const source_1 = __webpack_require__(6743);
|
|
6861
6750
|
|
|
6862
6751
|
const util_1 = __webpack_require__(9437);
|
|
@@ -6865,7 +6754,7 @@ const dom_1 = __webpack_require__(3252);
|
|
|
6865
6754
|
|
|
6866
6755
|
const array_1 = __webpack_require__(8112);
|
|
6867
6756
|
|
|
6868
|
-
exports.strong = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.surround)((0, source_1.str)('**'), (0, util_1.startTight)((0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, util_1.
|
|
6757
|
+
exports.strong = (0, combinator_1.lazy)(() => (0, combinator_1.creator)((0, combinator_1.surround)((0, source_1.str)('**'), (0, util_1.startTight)((0, combinator_1.some)((0, combinator_1.union)([(0, combinator_1.some)(inline_1.inline, (0, util_1.blankWith)('**')), (0, combinator_1.open)((0, combinator_1.some)(inline_1.inline, '*'), (0, combinator_1.union)([emstrong_1.emstrong, exports.strong]))])), '*'), (0, source_1.str)('**'), false, ([, bs], rest) => [[(0, dom_1.html)('strong', (0, dom_1.defrag)(bs))], rest], ([as, bs], rest) => [(0, array_1.unshift)(as, bs), rest])));
|
|
6869
6758
|
|
|
6870
6759
|
/***/ }),
|
|
6871
6760
|
|
|
@@ -7092,16 +6981,16 @@ function* figure(target, footnotes, opts = {}) {
|
|
|
7092
6981
|
}
|
|
7093
6982
|
|
|
7094
6983
|
const group = label.split('-', 1)[0];
|
|
7095
|
-
let number = (0, label_1.number)(label, numbers.has(group) && !(0, label_1.isFixed)(label) ?
|
|
6984
|
+
let number = (0, label_1.number)(label, numbers.has(group) && !(0, label_1.isFixed)(label) ? numbers.get(group).split('.').slice(0, bases.length).join('.') : base);
|
|
7096
6985
|
|
|
7097
6986
|
if (number.endsWith('.0')) {
|
|
7098
6987
|
if (group !== '$' || tagName === 'FIGURE' && def.firstChild) continue;
|
|
7099
6988
|
|
|
7100
6989
|
if (number.startsWith('0.')) {
|
|
7101
|
-
number =
|
|
6990
|
+
number = index.slice(0).reduce((ns, _, i, xs) => {
|
|
7102
6991
|
i === ns.length ? xs.length = i : ns[i] = +ns[i] > +xs[i] ? ns[i] : +ns[i] === 0 ? xs[i] : `${+xs[i] + 1}`;
|
|
7103
6992
|
return ns;
|
|
7104
|
-
}, number.split('.'))
|
|
6993
|
+
}, number.split('.')).join('.');
|
|
7105
6994
|
}
|
|
7106
6995
|
|
|
7107
6996
|
base = number;
|
|
@@ -7180,7 +7069,7 @@ const messages = {
|
|
|
7180
7069
|
|
|
7181
7070
|
function increment(bases, el) {
|
|
7182
7071
|
const index = (+el.tagName[1] - 1 || 1) - 1;
|
|
7183
|
-
return index + 1 < bases.length ?
|
|
7072
|
+
return index + 1 < bases.length ? bases.slice(0, index + 2).map((v, i) => {
|
|
7184
7073
|
switch (true) {
|
|
7185
7074
|
case i < index:
|
|
7186
7075
|
return v;
|
|
@@ -7191,7 +7080,7 @@ function increment(bases, el) {
|
|
|
7191
7080
|
default:
|
|
7192
7081
|
return 0;
|
|
7193
7082
|
}
|
|
7194
|
-
})
|
|
7083
|
+
}).join('.') : '';
|
|
7195
7084
|
}
|
|
7196
7085
|
|
|
7197
7086
|
function capitalize(label) {
|
|
@@ -7517,10 +7406,10 @@ const combinator_1 = __webpack_require__(2087);
|
|
|
7517
7406
|
|
|
7518
7407
|
const text_1 = __webpack_require__(7763);
|
|
7519
7408
|
|
|
7520
|
-
const
|
|
7409
|
+
const delimiter = /[\s\x00-\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]/;
|
|
7521
7410
|
exports.escsource = (0, combinator_1.creator)(source => {
|
|
7522
7411
|
if (source === '') return;
|
|
7523
|
-
const i = source.search(
|
|
7412
|
+
const i = source.search(delimiter);
|
|
7524
7413
|
|
|
7525
7414
|
switch (i) {
|
|
7526
7415
|
case -1:
|
|
@@ -7537,7 +7426,7 @@ exports.escsource = (0, combinator_1.creator)(source => {
|
|
|
7537
7426
|
default:
|
|
7538
7427
|
const b = source[0] !== '\n' && source[0].trimStart() === '';
|
|
7539
7428
|
const i = b ? source.search(text_1.nonWhitespace) : 1;
|
|
7540
|
-
return [[source.slice(0, i)], source.slice(i)];
|
|
7429
|
+
return [[source.slice(0, i - +b || 1)], source.slice(i - +b || 1)];
|
|
7541
7430
|
}
|
|
7542
7431
|
|
|
7543
7432
|
default:
|
|
@@ -7620,7 +7509,7 @@ exports.stropt = stropt;
|
|
|
7620
7509
|
Object.defineProperty(exports, "__esModule", ({
|
|
7621
7510
|
value: true
|
|
7622
7511
|
}));
|
|
7623
|
-
exports.isAlphanumeric = exports.linebreak = exports.txt = exports.text = exports.nonAlphanumeric = exports.nonWhitespace = exports.
|
|
7512
|
+
exports.isAlphanumeric = exports.linebreak = exports.txt = exports.text = exports.nonAlphanumeric = exports.nonWhitespace = exports.delimiter = void 0;
|
|
7624
7513
|
|
|
7625
7514
|
const global_1 = __webpack_require__(4128);
|
|
7626
7515
|
|
|
@@ -7630,13 +7519,13 @@ const str_1 = __webpack_require__(2790);
|
|
|
7630
7519
|
|
|
7631
7520
|
const dom_1 = __webpack_require__(3252);
|
|
7632
7521
|
|
|
7633
|
-
exports.
|
|
7522
|
+
exports.delimiter = /[\s\x00-\x7F]|\S#|[、。!?][^\S\n]*(?=\\\n)/;
|
|
7634
7523
|
exports.nonWhitespace = /[\S\n]|$/;
|
|
7635
7524
|
exports.nonAlphanumeric = /[^0-9A-Za-z]|\S#|$/;
|
|
7636
7525
|
const repeat = (0, str_1.str)(/^(.)\1*/);
|
|
7637
7526
|
exports.text = (0, combinator_1.creator)((source, context) => {
|
|
7638
7527
|
if (source === '') return;
|
|
7639
|
-
const i = source.search(exports.
|
|
7528
|
+
const i = source.search(exports.delimiter);
|
|
7640
7529
|
|
|
7641
7530
|
switch (i) {
|
|
7642
7531
|
case -1:
|
|
@@ -7695,7 +7584,7 @@ exports.text = (0, combinator_1.creator)((source, context) => {
|
|
|
7695
7584
|
default:
|
|
7696
7585
|
const b = source[0].trimStart() === '';
|
|
7697
7586
|
const i = b || isAlphanumeric(source[0]) ? source.search(b ? exports.nonWhitespace : exports.nonAlphanumeric) || 1 : 1;
|
|
7698
|
-
return b && i === source.length || b && source[i] === '\n' || b && source[i] === '\\' && source[i + 1] === '\n' ? [[], source.slice(i)] : [[source.slice(0, i)], source.slice(i)];
|
|
7587
|
+
return b && i === source.length || b && source[i] === '\n' || b && source[i] === '\\' && source[i + 1] === '\n' ? [[], source.slice(i)] : [[source.slice(0, i - +b || 1)], source.slice(i - +b || 1)];
|
|
7699
7588
|
}
|
|
7700
7589
|
|
|
7701
7590
|
default:
|
|
@@ -7731,7 +7620,7 @@ const text_1 = __webpack_require__(7763);
|
|
|
7731
7620
|
|
|
7732
7621
|
exports.unescsource = (0, combinator_1.creator)(source => {
|
|
7733
7622
|
if (source === '') return;
|
|
7734
|
-
const i = source.search(text_1.
|
|
7623
|
+
const i = source.search(text_1.delimiter);
|
|
7735
7624
|
|
|
7736
7625
|
switch (i) {
|
|
7737
7626
|
case -1:
|
|
@@ -7741,7 +7630,7 @@ exports.unescsource = (0, combinator_1.creator)(source => {
|
|
|
7741
7630
|
{
|
|
7742
7631
|
const b = source[0] !== '\n' && source[0].trimStart() === '';
|
|
7743
7632
|
const i = b || (0, text_1.isAlphanumeric)(source[0]) ? source.search(b ? text_1.nonWhitespace : text_1.nonAlphanumeric) || 1 : 1;
|
|
7744
|
-
return [[source.slice(0, i)], source.slice(i)];
|
|
7633
|
+
return [[source.slice(0, i - +b || 1)], source.slice(i - +b || 1)];
|
|
7745
7634
|
}
|
|
7746
7635
|
|
|
7747
7636
|
default:
|
|
@@ -7760,7 +7649,7 @@ exports.unescsource = (0, combinator_1.creator)(source => {
|
|
|
7760
7649
|
Object.defineProperty(exports, "__esModule", ({
|
|
7761
7650
|
value: true
|
|
7762
7651
|
}));
|
|
7763
|
-
exports.stringify = exports.trimNodeEnd = exports.
|
|
7652
|
+
exports.stringify = exports.trimNodeEnd = exports.trimBlankInline = exports.isStartTightNodes = exports.startTight = exports.startLoose = exports.visualize = exports.blankWith = exports.regBlankInlineStart = void 0;
|
|
7764
7653
|
|
|
7765
7654
|
const global_1 = __webpack_require__(4128);
|
|
7766
7655
|
|
|
@@ -7778,11 +7667,14 @@ const memoize_1 = __webpack_require__(1808);
|
|
|
7778
7667
|
|
|
7779
7668
|
const array_1 = __webpack_require__(8112);
|
|
7780
7669
|
|
|
7781
|
-
|
|
7782
|
-
|
|
7670
|
+
exports.regBlankInlineStart = new RegExp(String.raw`^(?:\\?[^\S\n]|&(?:${normalize_1.invisibleHTMLEntityNames.join('|')});|<wbr>)+`);
|
|
7671
|
+
|
|
7672
|
+
function blankWith(starting, delimiter) {
|
|
7673
|
+
if (delimiter === global_1.undefined) return blankWith('', starting);
|
|
7674
|
+
return new RegExp(String.raw`^(?:(?=${starting})(?:\\?\s|&(?:${normalize_1.invisibleHTMLEntityNames.join('|')});|<wbr>)${starting && '+'})?${typeof delimiter === 'string' ? delimiter.replace(/[*+()\[\]]/g, '\\$&') : delimiter.source}`);
|
|
7783
7675
|
}
|
|
7784
7676
|
|
|
7785
|
-
exports.
|
|
7677
|
+
exports.blankWith = blankWith;
|
|
7786
7678
|
|
|
7787
7679
|
function visualize(parser) {
|
|
7788
7680
|
const blankline = new RegExp(String.raw`^(?:\\$|\\?[^\S\n]|&(?:${normalize_1.invisibleHTMLEntityNames.join('|')});|<wbr>)+$`, 'gm');
|
|
@@ -7813,12 +7705,12 @@ function hasVisible(nodes, {
|
|
|
7813
7705
|
}
|
|
7814
7706
|
|
|
7815
7707
|
function startLoose(parser, except) {
|
|
7816
|
-
return (source, context) =>
|
|
7708
|
+
return (source, context) => isStartLoose(source, context, except) ? parser(source, context) : global_1.undefined;
|
|
7817
7709
|
}
|
|
7818
7710
|
|
|
7819
7711
|
exports.startLoose = startLoose;
|
|
7820
|
-
|
|
7821
|
-
return isStartTight(source.replace(
|
|
7712
|
+
const isStartLoose = (0, memoize_1.reduce)((source, context, except) => {
|
|
7713
|
+
return isStartTight(source.replace(exports.regBlankInlineStart, ''), context, except);
|
|
7822
7714
|
}, (source, _, except = '') => `${source}\x1E${except}`);
|
|
7823
7715
|
|
|
7824
7716
|
function startTight(parser, except) {
|
|
@@ -7903,11 +7795,15 @@ function isVisible(node, strpos) {
|
|
|
7903
7795
|
}
|
|
7904
7796
|
}
|
|
7905
7797
|
|
|
7906
|
-
function
|
|
7907
|
-
return (0, combinator_1.
|
|
7798
|
+
function trimBlankInline(parser) {
|
|
7799
|
+
return (0, combinator_1.fmap)(trimBlankInlineStart(parser), trimNodeEnd);
|
|
7908
7800
|
}
|
|
7909
7801
|
|
|
7910
|
-
exports.
|
|
7802
|
+
exports.trimBlankInline = trimBlankInline;
|
|
7803
|
+
|
|
7804
|
+
function trimBlankInlineStart(parser) {
|
|
7805
|
+
return (0, combinator_1.convert)((0, memoize_1.reduce)(source => source.replace(exports.regBlankInlineStart, '')), parser);
|
|
7806
|
+
} //export function trimNode(nodes: (HTMLElement | string)[]): (HTMLElement | string)[] {
|
|
7911
7807
|
// return trimNodeStart(trimNodeEnd(nodes));
|
|
7912
7808
|
//}
|
|
7913
7809
|
//function trimNodeStart(nodes: (HTMLElement | string)[]): (HTMLElement | string)[] {
|
|
@@ -7925,6 +7821,7 @@ exports.trimSpaceStart = trimSpaceStart; //export function trimNode(nodes: (HTML
|
|
|
7925
7821
|
// return nodes;
|
|
7926
7822
|
//}
|
|
7927
7823
|
|
|
7824
|
+
|
|
7928
7825
|
function trimNodeEnd(nodes) {
|
|
7929
7826
|
const skip = nodes.length > 0 && typeof nodes[nodes.length - 1] === 'object' && nodes[nodes.length - 1]['className'] === 'indexer' ? [nodes.pop()] : [];
|
|
7930
7827
|
|
|
@@ -8214,18 +8111,18 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
8214
8111
|
}));
|
|
8215
8112
|
exports.image = void 0;
|
|
8216
8113
|
|
|
8217
|
-
const
|
|
8114
|
+
const global_1 = __webpack_require__(4128);
|
|
8218
8115
|
|
|
8219
8116
|
const dom_1 = __webpack_require__(3252);
|
|
8220
8117
|
|
|
8221
8118
|
function image(source, url, cache) {
|
|
8222
|
-
if (cache?.has(url.href)) return (0, dom_1.define)(cache.get(url.href).cloneNode(true),
|
|
8119
|
+
if (cache?.has(url.href)) return (0, dom_1.define)(cache.get(url.href).cloneNode(true), global_1.Object.fromEntries([...source.attributes].map(attr => [attr.name, attr.value])));
|
|
8223
8120
|
(0, dom_1.define)(source, {
|
|
8224
8121
|
'data-type': 'image',
|
|
8225
8122
|
src: source.getAttribute('data-src'),
|
|
8226
8123
|
loading: 'lazy'
|
|
8227
8124
|
});
|
|
8228
|
-
cache?.set(url.href, (0, dom_1.define)(source.cloneNode(true),
|
|
8125
|
+
cache?.set(url.href, (0, dom_1.define)(source.cloneNode(true), global_1.Object.fromEntries([...source.attributes].filter(attr => !['class', 'data-type', 'data-src', 'src', 'loading'].includes(attr.name)).map(attr => [attr.name, null]))));
|
|
8229
8126
|
return source;
|
|
8230
8127
|
}
|
|
8231
8128
|
|
|
@@ -8346,7 +8243,7 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
8346
8243
|
}));
|
|
8347
8244
|
exports.video = void 0;
|
|
8348
8245
|
|
|
8349
|
-
const
|
|
8246
|
+
const global_1 = __webpack_require__(4128);
|
|
8350
8247
|
|
|
8351
8248
|
const dom_1 = __webpack_require__(3252);
|
|
8352
8249
|
|
|
@@ -8357,7 +8254,7 @@ function video(source, url) {
|
|
|
8357
8254
|
return (0, dom_1.html)('video', {
|
|
8358
8255
|
src: source.getAttribute('data-src'),
|
|
8359
8256
|
'data-type': 'video',
|
|
8360
|
-
...
|
|
8257
|
+
...global_1.Object.fromEntries([...source.attributes].map(attr => [attr.name, attr.value])),
|
|
8361
8258
|
muted: '',
|
|
8362
8259
|
controls: ''
|
|
8363
8260
|
});
|
|
@@ -8732,7 +8629,7 @@ function fix(h) {
|
|
|
8732
8629
|
/***/ 3252:
|
|
8733
8630
|
/***/ (function(module) {
|
|
8734
8631
|
|
|
8735
|
-
/*! typed-dom v0.0.
|
|
8632
|
+
/*! typed-dom v0.0.297 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
|
|
8736
8633
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
8737
8634
|
if(true)
|
|
8738
8635
|
module.exports = factory();
|
|
@@ -8750,50 +8647,18 @@ return /******/ (() => { // webpackBootstrap
|
|
|
8750
8647
|
Object.defineProperty(exports, "__esModule", ({
|
|
8751
8648
|
value: true
|
|
8752
8649
|
}));
|
|
8753
|
-
exports.
|
|
8650
|
+
exports.ObjectSetPrototypeOf = exports.ObjectGetPrototypeOf = exports.ObjectCreate = exports.ObjectAssign = exports.toString = exports.isEnumerable = exports.isPrototypeOf = exports.hasOwnProperty = exports.isArray = exports.sign = exports.round = exports.random = exports.min = exports.max = exports.floor = exports.ceil = exports.abs = exports.parseInt = exports.parseFloat = exports.isSafeInteger = exports.isNaN = exports.isInteger = exports.isFinite = exports[NaN] = void 0;
|
|
8754
8651
|
exports[NaN] = Number.NaN, exports.isFinite = Number.isFinite, exports.isInteger = Number.isInteger, exports.isNaN = Number.isNaN, exports.isSafeInteger = Number.isSafeInteger, exports.parseFloat = Number.parseFloat, exports.parseInt = Number.parseInt;
|
|
8755
|
-
exports.abs = Math.abs, exports.ceil = Math.ceil, exports.floor = Math.floor, exports.max = Math.max, exports.min = Math.min, exports.random = Math.random, exports.round = Math.round, exports.sign = Math.sign;
|
|
8756
|
-
|
|
8757
|
-
exports.SymbolFor = Symbol.for; //export const SymbolHasInstance: typeof Symbol.hasInstance = Symbol.hasInstance;
|
|
8758
|
-
//export const SymbolIsConcatSpreadable: typeof Symbol.isConcatSpreadable = Symbol.isConcatSpreadable;
|
|
8759
|
-
//export const SymbolIterator: typeof Symbol.iterator = Symbol.iterator;
|
|
8760
|
-
|
|
8761
|
-
exports.SymbolKeyFor = Symbol.keyFor; //export const SymbolMatch: typeof Symbol.match = Symbol.match;
|
|
8762
|
-
//export const SymbolReplace: typeof Symbol.replace = Symbol.replace;
|
|
8763
|
-
//export const SymbolSearch: typeof Symbol.search = Symbol.search;
|
|
8764
|
-
//export const SymbolSpecies: typeof Symbol.species = Symbol.species;
|
|
8765
|
-
//export const SymbolSplit: typeof Symbol.split = Symbol.split;
|
|
8766
|
-
//export const SymbolToPrimitive: typeof Symbol.toPrimitive = Symbol.toPrimitive;
|
|
8767
|
-
//export const SymbolToStringTag: typeof Symbol.toStringTag = Symbol.toStringTag;
|
|
8768
|
-
//export const SymbolUnscopables: typeof Symbol.unscopables = Symbol.unscopables;
|
|
8769
|
-
|
|
8652
|
+
exports.abs = Math.abs, exports.ceil = Math.ceil, exports.floor = Math.floor, exports.max = Math.max, exports.min = Math.min, exports.random = Math.random, exports.round = Math.round, exports.sign = Math.sign;
|
|
8653
|
+
exports.isArray = Array.isArray;
|
|
8770
8654
|
exports.hasOwnProperty = Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty);
|
|
8771
8655
|
exports.isPrototypeOf = Object.prototype.isPrototypeOf.call.bind(Object.prototype.isPrototypeOf);
|
|
8772
8656
|
exports.isEnumerable = Object.prototype.propertyIsEnumerable.call.bind(Object.prototype.propertyIsEnumerable);
|
|
8773
8657
|
exports.toString = Object.prototype.toString.call.bind(Object.prototype.toString);
|
|
8774
8658
|
exports.ObjectAssign = Object.assign;
|
|
8775
8659
|
exports.ObjectCreate = Object.create;
|
|
8776
|
-
exports.ObjectDefineProperties = Object.defineProperties;
|
|
8777
|
-
exports.ObjectDefineProperty = Object.defineProperty;
|
|
8778
|
-
exports.ObjectEntries = Object.entries;
|
|
8779
|
-
exports.ObjectFreeze = Object.freeze; // @ts-ignore
|
|
8780
|
-
|
|
8781
|
-
exports.ObjectFromEntries = Object.fromEntries;
|
|
8782
|
-
exports.ObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
8783
|
-
exports.ObjectGetOwnPropertyDescriptors = Object.getOwnPropertyDescriptors;
|
|
8784
|
-
exports.ObjectGetOwnPropertyNames = Object.getOwnPropertyNames;
|
|
8785
|
-
exports.ObjectGetOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
8786
8660
|
exports.ObjectGetPrototypeOf = Object.getPrototypeOf;
|
|
8787
|
-
exports.ObjectIs = Object.is;
|
|
8788
|
-
exports.isExtensible = Object.isExtensible;
|
|
8789
|
-
exports.isFrozen = Object.isFrozen;
|
|
8790
|
-
exports.isSealed = Object.isSealed;
|
|
8791
|
-
exports.ObjectKeys = Object.keys;
|
|
8792
|
-
exports.ObjectPreventExtensions = Object.preventExtensions;
|
|
8793
|
-
exports.ObjectSeal = Object.seal;
|
|
8794
8661
|
exports.ObjectSetPrototypeOf = Object.setPrototypeOf;
|
|
8795
|
-
exports.ObjectValues = Object.values;
|
|
8796
|
-
exports.isArray = Array.isArray;
|
|
8797
8662
|
|
|
8798
8663
|
/***/ }),
|
|
8799
8664
|
|
|
@@ -8816,11 +8681,11 @@ exports.equal = equal;
|
|
|
8816
8681
|
/***/ }),
|
|
8817
8682
|
|
|
8818
8683
|
/***/ 128:
|
|
8819
|
-
/***/ ((module, __unused_webpack_exports,
|
|
8684
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_2590__) => {
|
|
8820
8685
|
|
|
8821
8686
|
|
|
8822
8687
|
|
|
8823
|
-
|
|
8688
|
+
__nested_webpack_require_2590__(921);
|
|
8824
8689
|
|
|
8825
8690
|
const global = void 0 || typeof globalThis !== 'undefined' && globalThis // @ts-ignore
|
|
8826
8691
|
|| typeof self !== 'undefined' && self || Function('return this')();
|
|
@@ -8841,7 +8706,7 @@ var global = (/* unused pure expression or super */ null && (0));
|
|
|
8841
8706
|
/***/ }),
|
|
8842
8707
|
|
|
8843
8708
|
/***/ 808:
|
|
8844
|
-
/***/ ((__unused_webpack_module, exports,
|
|
8709
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_3077__) => {
|
|
8845
8710
|
|
|
8846
8711
|
|
|
8847
8712
|
|
|
@@ -8850,11 +8715,11 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
8850
8715
|
}));
|
|
8851
8716
|
exports.reduce = exports.memoize = void 0;
|
|
8852
8717
|
|
|
8853
|
-
const global_1 =
|
|
8718
|
+
const global_1 = __nested_webpack_require_3077__(128);
|
|
8854
8719
|
|
|
8855
|
-
const alias_1 =
|
|
8720
|
+
const alias_1 = __nested_webpack_require_3077__(406);
|
|
8856
8721
|
|
|
8857
|
-
const compare_1 =
|
|
8722
|
+
const compare_1 = __nested_webpack_require_3077__(529);
|
|
8858
8723
|
|
|
8859
8724
|
function memoize(f, identify = (...as) => as[0], memory) {
|
|
8860
8725
|
if (typeof identify === 'object') return memoize(f, void 0, identify);
|
|
@@ -8912,7 +8777,7 @@ exports.reduce = reduce;
|
|
|
8912
8777
|
/***/ }),
|
|
8913
8778
|
|
|
8914
8779
|
/***/ 521:
|
|
8915
|
-
/***/ ((__unused_webpack_module, exports,
|
|
8780
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_4467__) => {
|
|
8916
8781
|
|
|
8917
8782
|
|
|
8918
8783
|
|
|
@@ -8921,11 +8786,11 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
8921
8786
|
}));
|
|
8922
8787
|
exports.defrag = exports.prepend = exports.append = exports.isChildren = exports.define = exports.element = exports.text = exports.svg = exports.html = exports.frag = exports.shadow = void 0;
|
|
8923
8788
|
|
|
8924
|
-
const global_1 =
|
|
8789
|
+
const global_1 = __nested_webpack_require_4467__(128);
|
|
8925
8790
|
|
|
8926
|
-
const alias_1 =
|
|
8791
|
+
const alias_1 = __nested_webpack_require_4467__(406);
|
|
8927
8792
|
|
|
8928
|
-
const memoize_1 =
|
|
8793
|
+
const memoize_1 = __nested_webpack_require_4467__(808);
|
|
8929
8794
|
|
|
8930
8795
|
var caches;
|
|
8931
8796
|
|
|
@@ -8953,10 +8818,10 @@ function frag(children) {
|
|
|
8953
8818
|
|
|
8954
8819
|
exports.frag = frag;
|
|
8955
8820
|
exports.html = element(global_1.document, "HTML"
|
|
8956
|
-
/* HTML */
|
|
8821
|
+
/* NS.HTML */
|
|
8957
8822
|
);
|
|
8958
8823
|
exports.svg = element(global_1.document, "SVG"
|
|
8959
|
-
/* SVG */
|
|
8824
|
+
/* NS.SVG */
|
|
8960
8825
|
);
|
|
8961
8826
|
|
|
8962
8827
|
function text(source) {
|
|
@@ -8980,17 +8845,17 @@ function elem(context, ns, tag) {
|
|
|
8980
8845
|
|
|
8981
8846
|
switch (ns) {
|
|
8982
8847
|
case "HTML"
|
|
8983
|
-
/* HTML */
|
|
8848
|
+
/* NS.HTML */
|
|
8984
8849
|
:
|
|
8985
8850
|
return context.createElement(tag);
|
|
8986
8851
|
|
|
8987
8852
|
case "SVG"
|
|
8988
|
-
/* SVG */
|
|
8853
|
+
/* NS.SVG */
|
|
8989
8854
|
:
|
|
8990
8855
|
return context.createElementNS('http://www.w3.org/2000/svg', tag);
|
|
8991
8856
|
|
|
8992
8857
|
case "MathML"
|
|
8993
|
-
/* MathML */
|
|
8858
|
+
/* NS.MathML */
|
|
8994
8859
|
:
|
|
8995
8860
|
return context.createElementNS('http://www.w3.org/1998/Math/MathML', tag);
|
|
8996
8861
|
}
|
|
@@ -9026,7 +8891,7 @@ function defineAttrs(el, attrs) {
|
|
|
9026
8891
|
case 'connect':
|
|
9027
8892
|
case 'disconnect':
|
|
9028
8893
|
const prop = `on${type}`;
|
|
9029
|
-
el[prop] ??
|
|
8894
|
+
el[prop] ?? global_1.Object.defineProperty(el, prop, {
|
|
9030
8895
|
configurable: true,
|
|
9031
8896
|
enumerable: false,
|
|
9032
8897
|
writable: true,
|
|
@@ -9053,7 +8918,7 @@ function defineAttrs(el, attrs) {
|
|
|
9053
8918
|
case 'connect':
|
|
9054
8919
|
case 'disconnect':
|
|
9055
8920
|
const prop = `on${type}`;
|
|
9056
|
-
el[prop] ??
|
|
8921
|
+
el[prop] ?? global_1.Object.defineProperty(el, prop, {
|
|
9057
8922
|
configurable: true,
|
|
9058
8923
|
enumerable: false,
|
|
9059
8924
|
writable: true,
|
|
@@ -9161,7 +9026,7 @@ exports.defrag = defrag;
|
|
|
9161
9026
|
/******/ var __webpack_module_cache__ = {};
|
|
9162
9027
|
/******/
|
|
9163
9028
|
/******/ // The require function
|
|
9164
|
-
/******/ function
|
|
9029
|
+
/******/ function __nested_webpack_require_11560__(moduleId) {
|
|
9165
9030
|
/******/ // Check if module is in cache
|
|
9166
9031
|
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
9167
9032
|
/******/ if (cachedModule !== undefined) {
|
|
@@ -9175,7 +9040,7 @@ exports.defrag = defrag;
|
|
|
9175
9040
|
/******/ };
|
|
9176
9041
|
/******/
|
|
9177
9042
|
/******/ // Execute the module function
|
|
9178
|
-
/******/ __webpack_modules__[moduleId](module, module.exports,
|
|
9043
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_11560__);
|
|
9179
9044
|
/******/
|
|
9180
9045
|
/******/ // Return the exports of the module
|
|
9181
9046
|
/******/ return module.exports;
|
|
@@ -9186,7 +9051,7 @@ exports.defrag = defrag;
|
|
|
9186
9051
|
/******/ // startup
|
|
9187
9052
|
/******/ // Load entry module and return exports
|
|
9188
9053
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
9189
|
-
/******/ var __webpack_exports__ =
|
|
9054
|
+
/******/ var __webpack_exports__ = __nested_webpack_require_11560__(521);
|
|
9190
9055
|
/******/
|
|
9191
9056
|
/******/ return __webpack_exports__;
|
|
9192
9057
|
/******/ })()
|
|
@@ -9198,7 +9063,7 @@ exports.defrag = defrag;
|
|
|
9198
9063
|
/***/ 6120:
|
|
9199
9064
|
/***/ (function(module) {
|
|
9200
9065
|
|
|
9201
|
-
/*! typed-dom v0.0.
|
|
9066
|
+
/*! typed-dom v0.0.297 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
|
|
9202
9067
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
9203
9068
|
if(true)
|
|
9204
9069
|
module.exports = factory();
|