@quartz-community/tag-page 0.1.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.
@@ -0,0 +1,2900 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __commonJS = (cb, mod) => function __require() {
8
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ };
10
+ var __export = (target, all) => {
11
+ for (var name2 in all)
12
+ __defProp(target, name2, { get: all[name2], enumerable: true });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from))
17
+ if (!__hasOwnProp.call(to, key) && key !== except)
18
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ __defProp(target, "default", { value: mod, enumerable: true }) ,
28
+ mod
29
+ ));
30
+
31
+ // node_modules/inline-style-parser/cjs/index.js
32
+ var require_cjs = __commonJS({
33
+ "node_modules/inline-style-parser/cjs/index.js"(exports$1, module) {
34
+ var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
35
+ var NEWLINE_REGEX = /\n/g;
36
+ var WHITESPACE_REGEX = /^\s*/;
37
+ var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
38
+ var COLON_REGEX = /^:\s*/;
39
+ var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
40
+ var SEMICOLON_REGEX = /^[;\s]*/;
41
+ var TRIM_REGEX = /^\s+|\s+$/g;
42
+ var NEWLINE = "\n";
43
+ var FORWARD_SLASH = "/";
44
+ var ASTERISK = "*";
45
+ var EMPTY_STRING = "";
46
+ var TYPE_COMMENT = "comment";
47
+ var TYPE_DECLARATION = "declaration";
48
+ function index2(style, options) {
49
+ if (typeof style !== "string") {
50
+ throw new TypeError("First argument must be a string");
51
+ }
52
+ if (!style) return [];
53
+ options = options || {};
54
+ var lineno = 1;
55
+ var column = 1;
56
+ function updatePosition(str) {
57
+ var lines = str.match(NEWLINE_REGEX);
58
+ if (lines) lineno += lines.length;
59
+ var i2 = str.lastIndexOf(NEWLINE);
60
+ column = ~i2 ? str.length - i2 : column + str.length;
61
+ }
62
+ function position3() {
63
+ var start2 = { line: lineno, column };
64
+ return function(node) {
65
+ node.position = new Position(start2);
66
+ whitespace2();
67
+ return node;
68
+ };
69
+ }
70
+ function Position(start2) {
71
+ this.start = start2;
72
+ this.end = { line: lineno, column };
73
+ this.source = options.source;
74
+ }
75
+ Position.prototype.content = style;
76
+ function error(msg) {
77
+ var err = new Error(
78
+ options.source + ":" + lineno + ":" + column + ": " + msg
79
+ );
80
+ err.reason = msg;
81
+ err.filename = options.source;
82
+ err.line = lineno;
83
+ err.column = column;
84
+ err.source = style;
85
+ if (options.silent) ;
86
+ else {
87
+ throw err;
88
+ }
89
+ }
90
+ function match(re2) {
91
+ var m2 = re2.exec(style);
92
+ if (!m2) return;
93
+ var str = m2[0];
94
+ updatePosition(str);
95
+ style = style.slice(str.length);
96
+ return m2;
97
+ }
98
+ function whitespace2() {
99
+ match(WHITESPACE_REGEX);
100
+ }
101
+ function comments(rules) {
102
+ var c2;
103
+ rules = rules || [];
104
+ while (c2 = comment()) {
105
+ if (c2 !== false) {
106
+ rules.push(c2);
107
+ }
108
+ }
109
+ return rules;
110
+ }
111
+ function comment() {
112
+ var pos = position3();
113
+ if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;
114
+ var i2 = 2;
115
+ while (EMPTY_STRING != style.charAt(i2) && (ASTERISK != style.charAt(i2) || FORWARD_SLASH != style.charAt(i2 + 1))) {
116
+ ++i2;
117
+ }
118
+ i2 += 2;
119
+ if (EMPTY_STRING === style.charAt(i2 - 1)) {
120
+ return error("End of comment missing");
121
+ }
122
+ var str = style.slice(2, i2 - 2);
123
+ column += 2;
124
+ updatePosition(str);
125
+ style = style.slice(i2);
126
+ column += 2;
127
+ return pos({
128
+ type: TYPE_COMMENT,
129
+ comment: str
130
+ });
131
+ }
132
+ function declaration() {
133
+ var pos = position3();
134
+ var prop = match(PROPERTY_REGEX);
135
+ if (!prop) return;
136
+ comment();
137
+ if (!match(COLON_REGEX)) return error("property missing ':'");
138
+ var val = match(VALUE_REGEX);
139
+ var ret = pos({
140
+ type: TYPE_DECLARATION,
141
+ property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
142
+ value: val ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING)) : EMPTY_STRING
143
+ });
144
+ match(SEMICOLON_REGEX);
145
+ return ret;
146
+ }
147
+ function declarations() {
148
+ var decls = [];
149
+ comments(decls);
150
+ var decl;
151
+ while (decl = declaration()) {
152
+ if (decl !== false) {
153
+ decls.push(decl);
154
+ comments(decls);
155
+ }
156
+ }
157
+ return decls;
158
+ }
159
+ whitespace2();
160
+ return declarations();
161
+ }
162
+ function trim(str) {
163
+ return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
164
+ }
165
+ module.exports = index2;
166
+ }
167
+ });
168
+
169
+ // node_modules/style-to-object/cjs/index.js
170
+ var require_cjs2 = __commonJS({
171
+ "node_modules/style-to-object/cjs/index.js"(exports$1) {
172
+ var __importDefault = exports$1 && exports$1.__importDefault || function(mod) {
173
+ return mod && mod.__esModule ? mod : { "default": mod };
174
+ };
175
+ Object.defineProperty(exports$1, "__esModule", { value: true });
176
+ exports$1.default = StyleToObject;
177
+ var inline_style_parser_1 = __importDefault(require_cjs());
178
+ function StyleToObject(style, iterator) {
179
+ let styleObject = null;
180
+ if (!style || typeof style !== "string") {
181
+ return styleObject;
182
+ }
183
+ const declarations = (0, inline_style_parser_1.default)(style);
184
+ const hasIterator = typeof iterator === "function";
185
+ declarations.forEach((declaration) => {
186
+ if (declaration.type !== "declaration") {
187
+ return;
188
+ }
189
+ const { property, value } = declaration;
190
+ if (hasIterator) {
191
+ iterator(property, value, declaration);
192
+ } else if (value) {
193
+ styleObject = styleObject || {};
194
+ styleObject[property] = value;
195
+ }
196
+ });
197
+ return styleObject;
198
+ }
199
+ }
200
+ });
201
+
202
+ // node_modules/style-to-js/cjs/utilities.js
203
+ var require_utilities = __commonJS({
204
+ "node_modules/style-to-js/cjs/utilities.js"(exports$1) {
205
+ Object.defineProperty(exports$1, "__esModule", { value: true });
206
+ exports$1.camelCase = void 0;
207
+ var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9_-]+$/;
208
+ var HYPHEN_REGEX = /-([a-z])/g;
209
+ var NO_HYPHEN_REGEX = /^[^-]+$/;
210
+ var VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;
211
+ var MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;
212
+ var skipCamelCase = function(property) {
213
+ return !property || NO_HYPHEN_REGEX.test(property) || CUSTOM_PROPERTY_REGEX.test(property);
214
+ };
215
+ var capitalize = function(match, character) {
216
+ return character.toUpperCase();
217
+ };
218
+ var trimHyphen = function(match, prefix) {
219
+ return "".concat(prefix, "-");
220
+ };
221
+ var camelCase = function(property, options) {
222
+ if (options === void 0) {
223
+ options = {};
224
+ }
225
+ if (skipCamelCase(property)) {
226
+ return property;
227
+ }
228
+ property = property.toLowerCase();
229
+ if (options.reactCompat) {
230
+ property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);
231
+ } else {
232
+ property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);
233
+ }
234
+ return property.replace(HYPHEN_REGEX, capitalize);
235
+ };
236
+ exports$1.camelCase = camelCase;
237
+ }
238
+ });
239
+
240
+ // node_modules/style-to-js/cjs/index.js
241
+ var require_cjs3 = __commonJS({
242
+ "node_modules/style-to-js/cjs/index.js"(exports$1, module) {
243
+ var __importDefault = exports$1 && exports$1.__importDefault || function(mod) {
244
+ return mod && mod.__esModule ? mod : { "default": mod };
245
+ };
246
+ var style_to_object_1 = __importDefault(require_cjs2());
247
+ var utilities_1 = require_utilities();
248
+ function StyleToJS(style, options) {
249
+ var output = {};
250
+ if (!style || typeof style !== "string") {
251
+ return output;
252
+ }
253
+ (0, style_to_object_1.default)(style, function(property, value) {
254
+ if (property && value) {
255
+ output[(0, utilities_1.camelCase)(property, options)] = value;
256
+ }
257
+ });
258
+ return output;
259
+ }
260
+ StyleToJS.default = StyleToJS;
261
+ module.exports = StyleToJS;
262
+ }
263
+ });
264
+
265
+ // node_modules/@quartz-community/utils/dist/sort.js
266
+ function getDate(data) {
267
+ const defaultDateType = data.defaultDateType;
268
+ if (!defaultDateType) {
269
+ return void 0;
270
+ }
271
+ const dates = data.dates;
272
+ return dates?.[defaultDateType];
273
+ }
274
+ function byDateAndAlphabetical() {
275
+ return (f1, f22) => {
276
+ const f1Date = getDate(f1);
277
+ const f2Date = getDate(f22);
278
+ if (f1Date && f2Date) {
279
+ return f2Date.getTime() - f1Date.getTime();
280
+ } else if (f1Date && !f2Date) {
281
+ return -1;
282
+ } else if (!f1Date && f2Date) {
283
+ return 1;
284
+ }
285
+ const f1Title = (f1.frontmatter?.title ?? "").toLowerCase();
286
+ const f2Title = (f22.frontmatter?.title ?? "").toLowerCase();
287
+ return f1Title.localeCompare(f2Title);
288
+ };
289
+ }
290
+
291
+ // node_modules/@quartz-community/utils/dist/path.js
292
+ function simplifySlug(fp) {
293
+ const res = stripSlashes(trimSuffix(fp, "index"), true);
294
+ return res.length === 0 ? "/" : res;
295
+ }
296
+ function joinSegments(...args) {
297
+ if (args.length === 0) {
298
+ return "";
299
+ }
300
+ let joined = args.filter((segment) => segment !== "" && segment !== "/").map((segment) => stripSlashes(segment)).join("/");
301
+ const first = args[0];
302
+ const last = args[args.length - 1];
303
+ if (first?.startsWith("/")) {
304
+ joined = "/" + joined;
305
+ }
306
+ if (last?.endsWith("/")) {
307
+ joined = joined + "/";
308
+ }
309
+ return joined;
310
+ }
311
+ function endsWith(s2, suffix) {
312
+ return s2 === suffix || s2.endsWith("/" + suffix);
313
+ }
314
+ function trimSuffix(s2, suffix) {
315
+ if (endsWith(s2, suffix)) {
316
+ s2 = s2.slice(0, -suffix.length);
317
+ }
318
+ return s2;
319
+ }
320
+ function stripSlashes(s2, onlyStripPrefix) {
321
+ if (s2.startsWith("/")) {
322
+ s2 = s2.substring(1);
323
+ }
324
+ if (!onlyStripPrefix && s2.endsWith("/")) {
325
+ s2 = s2.slice(0, -1);
326
+ }
327
+ return s2;
328
+ }
329
+ function isFolderPath(fplike) {
330
+ return fplike.endsWith("/") || endsWith(fplike, "index") || endsWith(fplike, "index.md") || endsWith(fplike, "index.html");
331
+ }
332
+ function getAllSegmentPrefixes(path) {
333
+ const segments = path.split("/");
334
+ const results = [];
335
+ for (let i2 = 0; i2 < segments.length; i2++) {
336
+ results.push(segments.slice(0, i2 + 1).join("/"));
337
+ }
338
+ return results;
339
+ }
340
+ function pathToRoot(slug2) {
341
+ let rootPath = slug2.split("/").filter((x2) => x2 !== "").slice(0, -1).map((_2) => "..").join("/");
342
+ if (rootPath.length === 0) {
343
+ rootPath = ".";
344
+ }
345
+ return rootPath;
346
+ }
347
+ function resolveRelative(current, target) {
348
+ const res = joinSegments(pathToRoot(current), simplifySlug(target));
349
+ return res;
350
+ }
351
+
352
+ // node_modules/preact/dist/preact.mjs
353
+ var n;
354
+ var l;
355
+ var u;
356
+ var w = [];
357
+ function k(l2, u3, t2) {
358
+ var i2, r2, o2, e2 = {};
359
+ for (o2 in u3) "key" == o2 ? i2 = u3[o2] : "ref" == o2 ? r2 = u3[o2] : e2[o2] = u3[o2];
360
+ if (arguments.length > 2 && (e2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), "function" == typeof l2 && null != l2.defaultProps) for (o2 in l2.defaultProps) void 0 === e2[o2] && (e2[o2] = l2.defaultProps[o2]);
361
+ return x(l2, e2, i2, r2, null);
362
+ }
363
+ function x(n2, t2, i2, r2, o2) {
364
+ var e2 = { type: n2, props: t2, key: i2, ref: r2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: null == o2 ? ++u : o2, __i: -1, __u: 0 };
365
+ return null != l.vnode && l.vnode(e2), e2;
366
+ }
367
+ function S(n2) {
368
+ return n2.children;
369
+ }
370
+ n = w.slice, l = { __e: function(n2, l2, u3, t2) {
371
+ for (var i2, r2, o2; l2 = l2.__; ) if ((i2 = l2.__c) && !i2.__) try {
372
+ if ((r2 = i2.constructor) && null != r2.getDerivedStateFromError && (i2.setState(r2.getDerivedStateFromError(n2)), o2 = i2.__d), null != i2.componentDidCatch && (i2.componentDidCatch(n2, t2 || {}), o2 = i2.__d), o2) return i2.__E = i2;
373
+ } catch (l3) {
374
+ n2 = l3;
375
+ }
376
+ throw n2;
377
+ } }, u = 0, "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Math.random().toString(8);
378
+
379
+ // node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs
380
+ var f2 = 0;
381
+ function u2(e2, t2, n2, o2, i2, u3) {
382
+ t2 || (t2 = {});
383
+ var a2, c2, p2 = t2;
384
+ if ("ref" in p2) for (c2 in p2 = {}, t2) "ref" == c2 ? a2 = t2[c2] : p2[c2] = t2[c2];
385
+ var l2 = { type: e2, props: p2, key: n2, ref: a2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --f2, __i: -1, __u: 0, __source: i2, __self: u3 };
386
+ if ("function" == typeof e2 && (a2 = e2.defaultProps)) for (c2 in a2) void 0 === p2[c2] && (p2[c2] = a2[c2]);
387
+ return l.vnode && l.vnode(l2), l2;
388
+ }
389
+
390
+ // src/components/PageList.tsx
391
+ function byDateAndAlphabeticalFolderFirst(_cfg) {
392
+ return (f1, f22) => {
393
+ const f1IsFolder = isFolderPath(f1.slug ?? "");
394
+ const f2IsFolder = isFolderPath(f22.slug ?? "");
395
+ if (f1IsFolder && !f2IsFolder) return -1;
396
+ if (!f1IsFolder && f2IsFolder) return 1;
397
+ if (f1.dates && f22.dates) {
398
+ return (getDate(f22)?.getTime() ?? 0) - (getDate(f1)?.getTime() ?? 0);
399
+ } else if (f1.dates && !f22.dates) {
400
+ return -1;
401
+ } else if (!f1.dates && f22.dates) {
402
+ return 1;
403
+ }
404
+ const f1Title = f1.frontmatter?.title?.toLowerCase() ?? "";
405
+ const f2Title = f22.frontmatter?.title?.toLowerCase() ?? "";
406
+ return f1Title.localeCompare(f2Title);
407
+ };
408
+ }
409
+ function DateDisplay({ date, locale }) {
410
+ return /* @__PURE__ */ u2("time", { dateTime: date.toISOString(), children: date.toLocaleDateString(locale, {
411
+ year: "numeric",
412
+ month: "short",
413
+ day: "2-digit"
414
+ }) });
415
+ }
416
+ var PageList = ({
417
+ cfg,
418
+ fileData,
419
+ allFiles,
420
+ limit,
421
+ sort
422
+ }) => {
423
+ const sorter = sort ?? byDateAndAlphabeticalFolderFirst();
424
+ let list = [...allFiles].sort(sorter);
425
+ if (limit) {
426
+ list = list.slice(0, limit);
427
+ }
428
+ const fileSlug = fileData?.slug;
429
+ return /* @__PURE__ */ u2("ul", { class: "section-ul", children: list.map((page) => {
430
+ const title = page.frontmatter?.title;
431
+ const tags = page.frontmatter?.tags ?? [];
432
+ return /* @__PURE__ */ u2("li", { class: "section-li", children: /* @__PURE__ */ u2("div", { class: "section", children: [
433
+ /* @__PURE__ */ u2("p", { class: "meta", children: page.dates && getDate(page) && /* @__PURE__ */ u2(
434
+ DateDisplay,
435
+ {
436
+ date: getDate(page),
437
+ locale: cfg?.locale ?? "en-US"
438
+ }
439
+ ) }),
440
+ /* @__PURE__ */ u2("div", { class: "desc", children: /* @__PURE__ */ u2("h3", { children: /* @__PURE__ */ u2(
441
+ "a",
442
+ {
443
+ href: resolveRelative(fileSlug ?? "", page.slug),
444
+ class: "internal",
445
+ children: title
446
+ }
447
+ ) }) }),
448
+ /* @__PURE__ */ u2("ul", { class: "tags", children: tags.map((tag) => /* @__PURE__ */ u2("li", { children: /* @__PURE__ */ u2(
449
+ "a",
450
+ {
451
+ class: "internal tag-link",
452
+ href: resolveRelative(
453
+ fileSlug ?? "",
454
+ `tags/${tag}`
455
+ ),
456
+ children: tag
457
+ }
458
+ ) })) })
459
+ ] }) });
460
+ }) });
461
+ };
462
+ PageList.css = `
463
+ .section h3 {
464
+ margin: 0;
465
+ }
466
+
467
+ .section > .tags {
468
+ margin: 0;
469
+ }
470
+ `;
471
+
472
+ // node_modules/comma-separated-tokens/index.js
473
+ function stringify(values, options) {
474
+ const settings = {};
475
+ const input = values[values.length - 1] === "" ? [...values, ""] : values;
476
+ return input.join(
477
+ (settings.padRight ? " " : "") + "," + (settings.padLeft === false ? "" : " ")
478
+ ).trim();
479
+ }
480
+
481
+ // node_modules/devlop/lib/default.js
482
+ function ok() {
483
+ }
484
+
485
+ // node_modules/estree-util-is-identifier-name/lib/index.js
486
+ var nameRe = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u;
487
+ var nameReJsx = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u;
488
+ var emptyOptions = {};
489
+ function name(name2, options) {
490
+ const settings = emptyOptions;
491
+ const re2 = settings.jsx ? nameReJsx : nameRe;
492
+ return re2.test(name2);
493
+ }
494
+
495
+ // node_modules/hast-util-whitespace/lib/index.js
496
+ var re = /[ \t\n\f\r]/g;
497
+ function whitespace(thing) {
498
+ return typeof thing === "object" ? thing.type === "text" ? empty(thing.value) : false : empty(thing);
499
+ }
500
+ function empty(value) {
501
+ return value.replace(re, "") === "";
502
+ }
503
+
504
+ // node_modules/property-information/lib/util/schema.js
505
+ var Schema = class {
506
+ /**
507
+ * @param {SchemaType['property']} property
508
+ * Property.
509
+ * @param {SchemaType['normal']} normal
510
+ * Normal.
511
+ * @param {Space | undefined} [space]
512
+ * Space.
513
+ * @returns
514
+ * Schema.
515
+ */
516
+ constructor(property, normal, space) {
517
+ this.normal = normal;
518
+ this.property = property;
519
+ if (space) {
520
+ this.space = space;
521
+ }
522
+ }
523
+ };
524
+ Schema.prototype.normal = {};
525
+ Schema.prototype.property = {};
526
+ Schema.prototype.space = void 0;
527
+
528
+ // node_modules/property-information/lib/util/merge.js
529
+ function merge(definitions, space) {
530
+ const property = {};
531
+ const normal = {};
532
+ for (const definition of definitions) {
533
+ Object.assign(property, definition.property);
534
+ Object.assign(normal, definition.normal);
535
+ }
536
+ return new Schema(property, normal, space);
537
+ }
538
+
539
+ // node_modules/property-information/lib/normalize.js
540
+ function normalize(value) {
541
+ return value.toLowerCase();
542
+ }
543
+
544
+ // node_modules/property-information/lib/util/info.js
545
+ var Info = class {
546
+ /**
547
+ * @param {string} property
548
+ * Property.
549
+ * @param {string} attribute
550
+ * Attribute.
551
+ * @returns
552
+ * Info.
553
+ */
554
+ constructor(property, attribute) {
555
+ this.attribute = attribute;
556
+ this.property = property;
557
+ }
558
+ };
559
+ Info.prototype.attribute = "";
560
+ Info.prototype.booleanish = false;
561
+ Info.prototype.boolean = false;
562
+ Info.prototype.commaOrSpaceSeparated = false;
563
+ Info.prototype.commaSeparated = false;
564
+ Info.prototype.defined = false;
565
+ Info.prototype.mustUseProperty = false;
566
+ Info.prototype.number = false;
567
+ Info.prototype.overloadedBoolean = false;
568
+ Info.prototype.property = "";
569
+ Info.prototype.spaceSeparated = false;
570
+ Info.prototype.space = void 0;
571
+
572
+ // node_modules/property-information/lib/util/types.js
573
+ var types_exports = {};
574
+ __export(types_exports, {
575
+ boolean: () => boolean,
576
+ booleanish: () => booleanish,
577
+ commaOrSpaceSeparated: () => commaOrSpaceSeparated,
578
+ commaSeparated: () => commaSeparated,
579
+ number: () => number,
580
+ overloadedBoolean: () => overloadedBoolean,
581
+ spaceSeparated: () => spaceSeparated
582
+ });
583
+ var powers = 0;
584
+ var boolean = increment();
585
+ var booleanish = increment();
586
+ var overloadedBoolean = increment();
587
+ var number = increment();
588
+ var spaceSeparated = increment();
589
+ var commaSeparated = increment();
590
+ var commaOrSpaceSeparated = increment();
591
+ function increment() {
592
+ return 2 ** ++powers;
593
+ }
594
+
595
+ // node_modules/property-information/lib/util/defined-info.js
596
+ var checks = (
597
+ /** @type {ReadonlyArray<keyof typeof types>} */
598
+ Object.keys(types_exports)
599
+ );
600
+ var DefinedInfo = class extends Info {
601
+ /**
602
+ * @constructor
603
+ * @param {string} property
604
+ * Property.
605
+ * @param {string} attribute
606
+ * Attribute.
607
+ * @param {number | null | undefined} [mask]
608
+ * Mask.
609
+ * @param {Space | undefined} [space]
610
+ * Space.
611
+ * @returns
612
+ * Info.
613
+ */
614
+ constructor(property, attribute, mask, space) {
615
+ let index2 = -1;
616
+ super(property, attribute);
617
+ mark(this, "space", space);
618
+ if (typeof mask === "number") {
619
+ while (++index2 < checks.length) {
620
+ const check = checks[index2];
621
+ mark(this, checks[index2], (mask & types_exports[check]) === types_exports[check]);
622
+ }
623
+ }
624
+ }
625
+ };
626
+ DefinedInfo.prototype.defined = true;
627
+ function mark(values, key, value) {
628
+ if (value) {
629
+ values[key] = value;
630
+ }
631
+ }
632
+
633
+ // node_modules/property-information/lib/util/create.js
634
+ function create(definition) {
635
+ const properties = {};
636
+ const normals = {};
637
+ for (const [property, value] of Object.entries(definition.properties)) {
638
+ const info = new DefinedInfo(
639
+ property,
640
+ definition.transform(definition.attributes || {}, property),
641
+ value,
642
+ definition.space
643
+ );
644
+ if (definition.mustUseProperty && definition.mustUseProperty.includes(property)) {
645
+ info.mustUseProperty = true;
646
+ }
647
+ properties[property] = info;
648
+ normals[normalize(property)] = property;
649
+ normals[normalize(info.attribute)] = property;
650
+ }
651
+ return new Schema(properties, normals, definition.space);
652
+ }
653
+
654
+ // node_modules/property-information/lib/aria.js
655
+ var aria = create({
656
+ properties: {
657
+ ariaActiveDescendant: null,
658
+ ariaAtomic: booleanish,
659
+ ariaAutoComplete: null,
660
+ ariaBusy: booleanish,
661
+ ariaChecked: booleanish,
662
+ ariaColCount: number,
663
+ ariaColIndex: number,
664
+ ariaColSpan: number,
665
+ ariaControls: spaceSeparated,
666
+ ariaCurrent: null,
667
+ ariaDescribedBy: spaceSeparated,
668
+ ariaDetails: null,
669
+ ariaDisabled: booleanish,
670
+ ariaDropEffect: spaceSeparated,
671
+ ariaErrorMessage: null,
672
+ ariaExpanded: booleanish,
673
+ ariaFlowTo: spaceSeparated,
674
+ ariaGrabbed: booleanish,
675
+ ariaHasPopup: null,
676
+ ariaHidden: booleanish,
677
+ ariaInvalid: null,
678
+ ariaKeyShortcuts: null,
679
+ ariaLabel: null,
680
+ ariaLabelledBy: spaceSeparated,
681
+ ariaLevel: number,
682
+ ariaLive: null,
683
+ ariaModal: booleanish,
684
+ ariaMultiLine: booleanish,
685
+ ariaMultiSelectable: booleanish,
686
+ ariaOrientation: null,
687
+ ariaOwns: spaceSeparated,
688
+ ariaPlaceholder: null,
689
+ ariaPosInSet: number,
690
+ ariaPressed: booleanish,
691
+ ariaReadOnly: booleanish,
692
+ ariaRelevant: null,
693
+ ariaRequired: booleanish,
694
+ ariaRoleDescription: spaceSeparated,
695
+ ariaRowCount: number,
696
+ ariaRowIndex: number,
697
+ ariaRowSpan: number,
698
+ ariaSelected: booleanish,
699
+ ariaSetSize: number,
700
+ ariaSort: null,
701
+ ariaValueMax: number,
702
+ ariaValueMin: number,
703
+ ariaValueNow: number,
704
+ ariaValueText: null,
705
+ role: null
706
+ },
707
+ transform(_2, property) {
708
+ return property === "role" ? property : "aria-" + property.slice(4).toLowerCase();
709
+ }
710
+ });
711
+
712
+ // node_modules/property-information/lib/util/case-sensitive-transform.js
713
+ function caseSensitiveTransform(attributes, attribute) {
714
+ return attribute in attributes ? attributes[attribute] : attribute;
715
+ }
716
+
717
+ // node_modules/property-information/lib/util/case-insensitive-transform.js
718
+ function caseInsensitiveTransform(attributes, property) {
719
+ return caseSensitiveTransform(attributes, property.toLowerCase());
720
+ }
721
+
722
+ // node_modules/property-information/lib/html.js
723
+ var html = create({
724
+ attributes: {
725
+ acceptcharset: "accept-charset",
726
+ classname: "class",
727
+ htmlfor: "for",
728
+ httpequiv: "http-equiv"
729
+ },
730
+ mustUseProperty: ["checked", "multiple", "muted", "selected"],
731
+ properties: {
732
+ // Standard Properties.
733
+ abbr: null,
734
+ accept: commaSeparated,
735
+ acceptCharset: spaceSeparated,
736
+ accessKey: spaceSeparated,
737
+ action: null,
738
+ allow: null,
739
+ allowFullScreen: boolean,
740
+ allowPaymentRequest: boolean,
741
+ allowUserMedia: boolean,
742
+ alt: null,
743
+ as: null,
744
+ async: boolean,
745
+ autoCapitalize: null,
746
+ autoComplete: spaceSeparated,
747
+ autoFocus: boolean,
748
+ autoPlay: boolean,
749
+ blocking: spaceSeparated,
750
+ capture: null,
751
+ charSet: null,
752
+ checked: boolean,
753
+ cite: null,
754
+ className: spaceSeparated,
755
+ cols: number,
756
+ colSpan: null,
757
+ content: null,
758
+ contentEditable: booleanish,
759
+ controls: boolean,
760
+ controlsList: spaceSeparated,
761
+ coords: number | commaSeparated,
762
+ crossOrigin: null,
763
+ data: null,
764
+ dateTime: null,
765
+ decoding: null,
766
+ default: boolean,
767
+ defer: boolean,
768
+ dir: null,
769
+ dirName: null,
770
+ disabled: boolean,
771
+ download: overloadedBoolean,
772
+ draggable: booleanish,
773
+ encType: null,
774
+ enterKeyHint: null,
775
+ fetchPriority: null,
776
+ form: null,
777
+ formAction: null,
778
+ formEncType: null,
779
+ formMethod: null,
780
+ formNoValidate: boolean,
781
+ formTarget: null,
782
+ headers: spaceSeparated,
783
+ height: number,
784
+ hidden: overloadedBoolean,
785
+ high: number,
786
+ href: null,
787
+ hrefLang: null,
788
+ htmlFor: spaceSeparated,
789
+ httpEquiv: spaceSeparated,
790
+ id: null,
791
+ imageSizes: null,
792
+ imageSrcSet: null,
793
+ inert: boolean,
794
+ inputMode: null,
795
+ integrity: null,
796
+ is: null,
797
+ isMap: boolean,
798
+ itemId: null,
799
+ itemProp: spaceSeparated,
800
+ itemRef: spaceSeparated,
801
+ itemScope: boolean,
802
+ itemType: spaceSeparated,
803
+ kind: null,
804
+ label: null,
805
+ lang: null,
806
+ language: null,
807
+ list: null,
808
+ loading: null,
809
+ loop: boolean,
810
+ low: number,
811
+ manifest: null,
812
+ max: null,
813
+ maxLength: number,
814
+ media: null,
815
+ method: null,
816
+ min: null,
817
+ minLength: number,
818
+ multiple: boolean,
819
+ muted: boolean,
820
+ name: null,
821
+ nonce: null,
822
+ noModule: boolean,
823
+ noValidate: boolean,
824
+ onAbort: null,
825
+ onAfterPrint: null,
826
+ onAuxClick: null,
827
+ onBeforeMatch: null,
828
+ onBeforePrint: null,
829
+ onBeforeToggle: null,
830
+ onBeforeUnload: null,
831
+ onBlur: null,
832
+ onCancel: null,
833
+ onCanPlay: null,
834
+ onCanPlayThrough: null,
835
+ onChange: null,
836
+ onClick: null,
837
+ onClose: null,
838
+ onContextLost: null,
839
+ onContextMenu: null,
840
+ onContextRestored: null,
841
+ onCopy: null,
842
+ onCueChange: null,
843
+ onCut: null,
844
+ onDblClick: null,
845
+ onDrag: null,
846
+ onDragEnd: null,
847
+ onDragEnter: null,
848
+ onDragExit: null,
849
+ onDragLeave: null,
850
+ onDragOver: null,
851
+ onDragStart: null,
852
+ onDrop: null,
853
+ onDurationChange: null,
854
+ onEmptied: null,
855
+ onEnded: null,
856
+ onError: null,
857
+ onFocus: null,
858
+ onFormData: null,
859
+ onHashChange: null,
860
+ onInput: null,
861
+ onInvalid: null,
862
+ onKeyDown: null,
863
+ onKeyPress: null,
864
+ onKeyUp: null,
865
+ onLanguageChange: null,
866
+ onLoad: null,
867
+ onLoadedData: null,
868
+ onLoadedMetadata: null,
869
+ onLoadEnd: null,
870
+ onLoadStart: null,
871
+ onMessage: null,
872
+ onMessageError: null,
873
+ onMouseDown: null,
874
+ onMouseEnter: null,
875
+ onMouseLeave: null,
876
+ onMouseMove: null,
877
+ onMouseOut: null,
878
+ onMouseOver: null,
879
+ onMouseUp: null,
880
+ onOffline: null,
881
+ onOnline: null,
882
+ onPageHide: null,
883
+ onPageShow: null,
884
+ onPaste: null,
885
+ onPause: null,
886
+ onPlay: null,
887
+ onPlaying: null,
888
+ onPopState: null,
889
+ onProgress: null,
890
+ onRateChange: null,
891
+ onRejectionHandled: null,
892
+ onReset: null,
893
+ onResize: null,
894
+ onScroll: null,
895
+ onScrollEnd: null,
896
+ onSecurityPolicyViolation: null,
897
+ onSeeked: null,
898
+ onSeeking: null,
899
+ onSelect: null,
900
+ onSlotChange: null,
901
+ onStalled: null,
902
+ onStorage: null,
903
+ onSubmit: null,
904
+ onSuspend: null,
905
+ onTimeUpdate: null,
906
+ onToggle: null,
907
+ onUnhandledRejection: null,
908
+ onUnload: null,
909
+ onVolumeChange: null,
910
+ onWaiting: null,
911
+ onWheel: null,
912
+ open: boolean,
913
+ optimum: number,
914
+ pattern: null,
915
+ ping: spaceSeparated,
916
+ placeholder: null,
917
+ playsInline: boolean,
918
+ popover: null,
919
+ popoverTarget: null,
920
+ popoverTargetAction: null,
921
+ poster: null,
922
+ preload: null,
923
+ readOnly: boolean,
924
+ referrerPolicy: null,
925
+ rel: spaceSeparated,
926
+ required: boolean,
927
+ reversed: boolean,
928
+ rows: number,
929
+ rowSpan: number,
930
+ sandbox: spaceSeparated,
931
+ scope: null,
932
+ scoped: boolean,
933
+ seamless: boolean,
934
+ selected: boolean,
935
+ shadowRootClonable: boolean,
936
+ shadowRootDelegatesFocus: boolean,
937
+ shadowRootMode: null,
938
+ shape: null,
939
+ size: number,
940
+ sizes: null,
941
+ slot: null,
942
+ span: number,
943
+ spellCheck: booleanish,
944
+ src: null,
945
+ srcDoc: null,
946
+ srcLang: null,
947
+ srcSet: null,
948
+ start: number,
949
+ step: null,
950
+ style: null,
951
+ tabIndex: number,
952
+ target: null,
953
+ title: null,
954
+ translate: null,
955
+ type: null,
956
+ typeMustMatch: boolean,
957
+ useMap: null,
958
+ value: booleanish,
959
+ width: number,
960
+ wrap: null,
961
+ writingSuggestions: null,
962
+ // Legacy.
963
+ // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
964
+ align: null,
965
+ // Several. Use CSS `text-align` instead,
966
+ aLink: null,
967
+ // `<body>`. Use CSS `a:active {color}` instead
968
+ archive: spaceSeparated,
969
+ // `<object>`. List of URIs to archives
970
+ axis: null,
971
+ // `<td>` and `<th>`. Use `scope` on `<th>`
972
+ background: null,
973
+ // `<body>`. Use CSS `background-image` instead
974
+ bgColor: null,
975
+ // `<body>` and table elements. Use CSS `background-color` instead
976
+ border: number,
977
+ // `<table>`. Use CSS `border-width` instead,
978
+ borderColor: null,
979
+ // `<table>`. Use CSS `border-color` instead,
980
+ bottomMargin: number,
981
+ // `<body>`
982
+ cellPadding: null,
983
+ // `<table>`
984
+ cellSpacing: null,
985
+ // `<table>`
986
+ char: null,
987
+ // Several table elements. When `align=char`, sets the character to align on
988
+ charOff: null,
989
+ // Several table elements. When `char`, offsets the alignment
990
+ classId: null,
991
+ // `<object>`
992
+ clear: null,
993
+ // `<br>`. Use CSS `clear` instead
994
+ code: null,
995
+ // `<object>`
996
+ codeBase: null,
997
+ // `<object>`
998
+ codeType: null,
999
+ // `<object>`
1000
+ color: null,
1001
+ // `<font>` and `<hr>`. Use CSS instead
1002
+ compact: boolean,
1003
+ // Lists. Use CSS to reduce space between items instead
1004
+ declare: boolean,
1005
+ // `<object>`
1006
+ event: null,
1007
+ // `<script>`
1008
+ face: null,
1009
+ // `<font>`. Use CSS instead
1010
+ frame: null,
1011
+ // `<table>`
1012
+ frameBorder: null,
1013
+ // `<iframe>`. Use CSS `border` instead
1014
+ hSpace: number,
1015
+ // `<img>` and `<object>`
1016
+ leftMargin: number,
1017
+ // `<body>`
1018
+ link: null,
1019
+ // `<body>`. Use CSS `a:link {color: *}` instead
1020
+ longDesc: null,
1021
+ // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
1022
+ lowSrc: null,
1023
+ // `<img>`. Use a `<picture>`
1024
+ marginHeight: number,
1025
+ // `<body>`
1026
+ marginWidth: number,
1027
+ // `<body>`
1028
+ noResize: boolean,
1029
+ // `<frame>`
1030
+ noHref: boolean,
1031
+ // `<area>`. Use no href instead of an explicit `nohref`
1032
+ noShade: boolean,
1033
+ // `<hr>`. Use background-color and height instead of borders
1034
+ noWrap: boolean,
1035
+ // `<td>` and `<th>`
1036
+ object: null,
1037
+ // `<applet>`
1038
+ profile: null,
1039
+ // `<head>`
1040
+ prompt: null,
1041
+ // `<isindex>`
1042
+ rev: null,
1043
+ // `<link>`
1044
+ rightMargin: number,
1045
+ // `<body>`
1046
+ rules: null,
1047
+ // `<table>`
1048
+ scheme: null,
1049
+ // `<meta>`
1050
+ scrolling: booleanish,
1051
+ // `<frame>`. Use overflow in the child context
1052
+ standby: null,
1053
+ // `<object>`
1054
+ summary: null,
1055
+ // `<table>`
1056
+ text: null,
1057
+ // `<body>`. Use CSS `color` instead
1058
+ topMargin: number,
1059
+ // `<body>`
1060
+ valueType: null,
1061
+ // `<param>`
1062
+ version: null,
1063
+ // `<html>`. Use a doctype.
1064
+ vAlign: null,
1065
+ // Several. Use CSS `vertical-align` instead
1066
+ vLink: null,
1067
+ // `<body>`. Use CSS `a:visited {color}` instead
1068
+ vSpace: number,
1069
+ // `<img>` and `<object>`
1070
+ // Non-standard Properties.
1071
+ allowTransparency: null,
1072
+ autoCorrect: null,
1073
+ autoSave: null,
1074
+ disablePictureInPicture: boolean,
1075
+ disableRemotePlayback: boolean,
1076
+ prefix: null,
1077
+ property: null,
1078
+ results: number,
1079
+ security: null,
1080
+ unselectable: null
1081
+ },
1082
+ space: "html",
1083
+ transform: caseInsensitiveTransform
1084
+ });
1085
+
1086
+ // node_modules/property-information/lib/svg.js
1087
+ var svg = create({
1088
+ attributes: {
1089
+ accentHeight: "accent-height",
1090
+ alignmentBaseline: "alignment-baseline",
1091
+ arabicForm: "arabic-form",
1092
+ baselineShift: "baseline-shift",
1093
+ capHeight: "cap-height",
1094
+ className: "class",
1095
+ clipPath: "clip-path",
1096
+ clipRule: "clip-rule",
1097
+ colorInterpolation: "color-interpolation",
1098
+ colorInterpolationFilters: "color-interpolation-filters",
1099
+ colorProfile: "color-profile",
1100
+ colorRendering: "color-rendering",
1101
+ crossOrigin: "crossorigin",
1102
+ dataType: "datatype",
1103
+ dominantBaseline: "dominant-baseline",
1104
+ enableBackground: "enable-background",
1105
+ fillOpacity: "fill-opacity",
1106
+ fillRule: "fill-rule",
1107
+ floodColor: "flood-color",
1108
+ floodOpacity: "flood-opacity",
1109
+ fontFamily: "font-family",
1110
+ fontSize: "font-size",
1111
+ fontSizeAdjust: "font-size-adjust",
1112
+ fontStretch: "font-stretch",
1113
+ fontStyle: "font-style",
1114
+ fontVariant: "font-variant",
1115
+ fontWeight: "font-weight",
1116
+ glyphName: "glyph-name",
1117
+ glyphOrientationHorizontal: "glyph-orientation-horizontal",
1118
+ glyphOrientationVertical: "glyph-orientation-vertical",
1119
+ hrefLang: "hreflang",
1120
+ horizAdvX: "horiz-adv-x",
1121
+ horizOriginX: "horiz-origin-x",
1122
+ horizOriginY: "horiz-origin-y",
1123
+ imageRendering: "image-rendering",
1124
+ letterSpacing: "letter-spacing",
1125
+ lightingColor: "lighting-color",
1126
+ markerEnd: "marker-end",
1127
+ markerMid: "marker-mid",
1128
+ markerStart: "marker-start",
1129
+ navDown: "nav-down",
1130
+ navDownLeft: "nav-down-left",
1131
+ navDownRight: "nav-down-right",
1132
+ navLeft: "nav-left",
1133
+ navNext: "nav-next",
1134
+ navPrev: "nav-prev",
1135
+ navRight: "nav-right",
1136
+ navUp: "nav-up",
1137
+ navUpLeft: "nav-up-left",
1138
+ navUpRight: "nav-up-right",
1139
+ onAbort: "onabort",
1140
+ onActivate: "onactivate",
1141
+ onAfterPrint: "onafterprint",
1142
+ onBeforePrint: "onbeforeprint",
1143
+ onBegin: "onbegin",
1144
+ onCancel: "oncancel",
1145
+ onCanPlay: "oncanplay",
1146
+ onCanPlayThrough: "oncanplaythrough",
1147
+ onChange: "onchange",
1148
+ onClick: "onclick",
1149
+ onClose: "onclose",
1150
+ onCopy: "oncopy",
1151
+ onCueChange: "oncuechange",
1152
+ onCut: "oncut",
1153
+ onDblClick: "ondblclick",
1154
+ onDrag: "ondrag",
1155
+ onDragEnd: "ondragend",
1156
+ onDragEnter: "ondragenter",
1157
+ onDragExit: "ondragexit",
1158
+ onDragLeave: "ondragleave",
1159
+ onDragOver: "ondragover",
1160
+ onDragStart: "ondragstart",
1161
+ onDrop: "ondrop",
1162
+ onDurationChange: "ondurationchange",
1163
+ onEmptied: "onemptied",
1164
+ onEnd: "onend",
1165
+ onEnded: "onended",
1166
+ onError: "onerror",
1167
+ onFocus: "onfocus",
1168
+ onFocusIn: "onfocusin",
1169
+ onFocusOut: "onfocusout",
1170
+ onHashChange: "onhashchange",
1171
+ onInput: "oninput",
1172
+ onInvalid: "oninvalid",
1173
+ onKeyDown: "onkeydown",
1174
+ onKeyPress: "onkeypress",
1175
+ onKeyUp: "onkeyup",
1176
+ onLoad: "onload",
1177
+ onLoadedData: "onloadeddata",
1178
+ onLoadedMetadata: "onloadedmetadata",
1179
+ onLoadStart: "onloadstart",
1180
+ onMessage: "onmessage",
1181
+ onMouseDown: "onmousedown",
1182
+ onMouseEnter: "onmouseenter",
1183
+ onMouseLeave: "onmouseleave",
1184
+ onMouseMove: "onmousemove",
1185
+ onMouseOut: "onmouseout",
1186
+ onMouseOver: "onmouseover",
1187
+ onMouseUp: "onmouseup",
1188
+ onMouseWheel: "onmousewheel",
1189
+ onOffline: "onoffline",
1190
+ onOnline: "ononline",
1191
+ onPageHide: "onpagehide",
1192
+ onPageShow: "onpageshow",
1193
+ onPaste: "onpaste",
1194
+ onPause: "onpause",
1195
+ onPlay: "onplay",
1196
+ onPlaying: "onplaying",
1197
+ onPopState: "onpopstate",
1198
+ onProgress: "onprogress",
1199
+ onRateChange: "onratechange",
1200
+ onRepeat: "onrepeat",
1201
+ onReset: "onreset",
1202
+ onResize: "onresize",
1203
+ onScroll: "onscroll",
1204
+ onSeeked: "onseeked",
1205
+ onSeeking: "onseeking",
1206
+ onSelect: "onselect",
1207
+ onShow: "onshow",
1208
+ onStalled: "onstalled",
1209
+ onStorage: "onstorage",
1210
+ onSubmit: "onsubmit",
1211
+ onSuspend: "onsuspend",
1212
+ onTimeUpdate: "ontimeupdate",
1213
+ onToggle: "ontoggle",
1214
+ onUnload: "onunload",
1215
+ onVolumeChange: "onvolumechange",
1216
+ onWaiting: "onwaiting",
1217
+ onZoom: "onzoom",
1218
+ overlinePosition: "overline-position",
1219
+ overlineThickness: "overline-thickness",
1220
+ paintOrder: "paint-order",
1221
+ panose1: "panose-1",
1222
+ pointerEvents: "pointer-events",
1223
+ referrerPolicy: "referrerpolicy",
1224
+ renderingIntent: "rendering-intent",
1225
+ shapeRendering: "shape-rendering",
1226
+ stopColor: "stop-color",
1227
+ stopOpacity: "stop-opacity",
1228
+ strikethroughPosition: "strikethrough-position",
1229
+ strikethroughThickness: "strikethrough-thickness",
1230
+ strokeDashArray: "stroke-dasharray",
1231
+ strokeDashOffset: "stroke-dashoffset",
1232
+ strokeLineCap: "stroke-linecap",
1233
+ strokeLineJoin: "stroke-linejoin",
1234
+ strokeMiterLimit: "stroke-miterlimit",
1235
+ strokeOpacity: "stroke-opacity",
1236
+ strokeWidth: "stroke-width",
1237
+ tabIndex: "tabindex",
1238
+ textAnchor: "text-anchor",
1239
+ textDecoration: "text-decoration",
1240
+ textRendering: "text-rendering",
1241
+ transformOrigin: "transform-origin",
1242
+ typeOf: "typeof",
1243
+ underlinePosition: "underline-position",
1244
+ underlineThickness: "underline-thickness",
1245
+ unicodeBidi: "unicode-bidi",
1246
+ unicodeRange: "unicode-range",
1247
+ unitsPerEm: "units-per-em",
1248
+ vAlphabetic: "v-alphabetic",
1249
+ vHanging: "v-hanging",
1250
+ vIdeographic: "v-ideographic",
1251
+ vMathematical: "v-mathematical",
1252
+ vectorEffect: "vector-effect",
1253
+ vertAdvY: "vert-adv-y",
1254
+ vertOriginX: "vert-origin-x",
1255
+ vertOriginY: "vert-origin-y",
1256
+ wordSpacing: "word-spacing",
1257
+ writingMode: "writing-mode",
1258
+ xHeight: "x-height",
1259
+ // These were camelcased in Tiny. Now lowercased in SVG 2
1260
+ playbackOrder: "playbackorder",
1261
+ timelineBegin: "timelinebegin"
1262
+ },
1263
+ properties: {
1264
+ about: commaOrSpaceSeparated,
1265
+ accentHeight: number,
1266
+ accumulate: null,
1267
+ additive: null,
1268
+ alignmentBaseline: null,
1269
+ alphabetic: number,
1270
+ amplitude: number,
1271
+ arabicForm: null,
1272
+ ascent: number,
1273
+ attributeName: null,
1274
+ attributeType: null,
1275
+ azimuth: number,
1276
+ bandwidth: null,
1277
+ baselineShift: null,
1278
+ baseFrequency: null,
1279
+ baseProfile: null,
1280
+ bbox: null,
1281
+ begin: null,
1282
+ bias: number,
1283
+ by: null,
1284
+ calcMode: null,
1285
+ capHeight: number,
1286
+ className: spaceSeparated,
1287
+ clip: null,
1288
+ clipPath: null,
1289
+ clipPathUnits: null,
1290
+ clipRule: null,
1291
+ color: null,
1292
+ colorInterpolation: null,
1293
+ colorInterpolationFilters: null,
1294
+ colorProfile: null,
1295
+ colorRendering: null,
1296
+ content: null,
1297
+ contentScriptType: null,
1298
+ contentStyleType: null,
1299
+ crossOrigin: null,
1300
+ cursor: null,
1301
+ cx: null,
1302
+ cy: null,
1303
+ d: null,
1304
+ dataType: null,
1305
+ defaultAction: null,
1306
+ descent: number,
1307
+ diffuseConstant: number,
1308
+ direction: null,
1309
+ display: null,
1310
+ dur: null,
1311
+ divisor: number,
1312
+ dominantBaseline: null,
1313
+ download: boolean,
1314
+ dx: null,
1315
+ dy: null,
1316
+ edgeMode: null,
1317
+ editable: null,
1318
+ elevation: number,
1319
+ enableBackground: null,
1320
+ end: null,
1321
+ event: null,
1322
+ exponent: number,
1323
+ externalResourcesRequired: null,
1324
+ fill: null,
1325
+ fillOpacity: number,
1326
+ fillRule: null,
1327
+ filter: null,
1328
+ filterRes: null,
1329
+ filterUnits: null,
1330
+ floodColor: null,
1331
+ floodOpacity: null,
1332
+ focusable: null,
1333
+ focusHighlight: null,
1334
+ fontFamily: null,
1335
+ fontSize: null,
1336
+ fontSizeAdjust: null,
1337
+ fontStretch: null,
1338
+ fontStyle: null,
1339
+ fontVariant: null,
1340
+ fontWeight: null,
1341
+ format: null,
1342
+ fr: null,
1343
+ from: null,
1344
+ fx: null,
1345
+ fy: null,
1346
+ g1: commaSeparated,
1347
+ g2: commaSeparated,
1348
+ glyphName: commaSeparated,
1349
+ glyphOrientationHorizontal: null,
1350
+ glyphOrientationVertical: null,
1351
+ glyphRef: null,
1352
+ gradientTransform: null,
1353
+ gradientUnits: null,
1354
+ handler: null,
1355
+ hanging: number,
1356
+ hatchContentUnits: null,
1357
+ hatchUnits: null,
1358
+ height: null,
1359
+ href: null,
1360
+ hrefLang: null,
1361
+ horizAdvX: number,
1362
+ horizOriginX: number,
1363
+ horizOriginY: number,
1364
+ id: null,
1365
+ ideographic: number,
1366
+ imageRendering: null,
1367
+ initialVisibility: null,
1368
+ in: null,
1369
+ in2: null,
1370
+ intercept: number,
1371
+ k: number,
1372
+ k1: number,
1373
+ k2: number,
1374
+ k3: number,
1375
+ k4: number,
1376
+ kernelMatrix: commaOrSpaceSeparated,
1377
+ kernelUnitLength: null,
1378
+ keyPoints: null,
1379
+ // SEMI_COLON_SEPARATED
1380
+ keySplines: null,
1381
+ // SEMI_COLON_SEPARATED
1382
+ keyTimes: null,
1383
+ // SEMI_COLON_SEPARATED
1384
+ kerning: null,
1385
+ lang: null,
1386
+ lengthAdjust: null,
1387
+ letterSpacing: null,
1388
+ lightingColor: null,
1389
+ limitingConeAngle: number,
1390
+ local: null,
1391
+ markerEnd: null,
1392
+ markerMid: null,
1393
+ markerStart: null,
1394
+ markerHeight: null,
1395
+ markerUnits: null,
1396
+ markerWidth: null,
1397
+ mask: null,
1398
+ maskContentUnits: null,
1399
+ maskUnits: null,
1400
+ mathematical: null,
1401
+ max: null,
1402
+ media: null,
1403
+ mediaCharacterEncoding: null,
1404
+ mediaContentEncodings: null,
1405
+ mediaSize: number,
1406
+ mediaTime: null,
1407
+ method: null,
1408
+ min: null,
1409
+ mode: null,
1410
+ name: null,
1411
+ navDown: null,
1412
+ navDownLeft: null,
1413
+ navDownRight: null,
1414
+ navLeft: null,
1415
+ navNext: null,
1416
+ navPrev: null,
1417
+ navRight: null,
1418
+ navUp: null,
1419
+ navUpLeft: null,
1420
+ navUpRight: null,
1421
+ numOctaves: null,
1422
+ observer: null,
1423
+ offset: null,
1424
+ onAbort: null,
1425
+ onActivate: null,
1426
+ onAfterPrint: null,
1427
+ onBeforePrint: null,
1428
+ onBegin: null,
1429
+ onCancel: null,
1430
+ onCanPlay: null,
1431
+ onCanPlayThrough: null,
1432
+ onChange: null,
1433
+ onClick: null,
1434
+ onClose: null,
1435
+ onCopy: null,
1436
+ onCueChange: null,
1437
+ onCut: null,
1438
+ onDblClick: null,
1439
+ onDrag: null,
1440
+ onDragEnd: null,
1441
+ onDragEnter: null,
1442
+ onDragExit: null,
1443
+ onDragLeave: null,
1444
+ onDragOver: null,
1445
+ onDragStart: null,
1446
+ onDrop: null,
1447
+ onDurationChange: null,
1448
+ onEmptied: null,
1449
+ onEnd: null,
1450
+ onEnded: null,
1451
+ onError: null,
1452
+ onFocus: null,
1453
+ onFocusIn: null,
1454
+ onFocusOut: null,
1455
+ onHashChange: null,
1456
+ onInput: null,
1457
+ onInvalid: null,
1458
+ onKeyDown: null,
1459
+ onKeyPress: null,
1460
+ onKeyUp: null,
1461
+ onLoad: null,
1462
+ onLoadedData: null,
1463
+ onLoadedMetadata: null,
1464
+ onLoadStart: null,
1465
+ onMessage: null,
1466
+ onMouseDown: null,
1467
+ onMouseEnter: null,
1468
+ onMouseLeave: null,
1469
+ onMouseMove: null,
1470
+ onMouseOut: null,
1471
+ onMouseOver: null,
1472
+ onMouseUp: null,
1473
+ onMouseWheel: null,
1474
+ onOffline: null,
1475
+ onOnline: null,
1476
+ onPageHide: null,
1477
+ onPageShow: null,
1478
+ onPaste: null,
1479
+ onPause: null,
1480
+ onPlay: null,
1481
+ onPlaying: null,
1482
+ onPopState: null,
1483
+ onProgress: null,
1484
+ onRateChange: null,
1485
+ onRepeat: null,
1486
+ onReset: null,
1487
+ onResize: null,
1488
+ onScroll: null,
1489
+ onSeeked: null,
1490
+ onSeeking: null,
1491
+ onSelect: null,
1492
+ onShow: null,
1493
+ onStalled: null,
1494
+ onStorage: null,
1495
+ onSubmit: null,
1496
+ onSuspend: null,
1497
+ onTimeUpdate: null,
1498
+ onToggle: null,
1499
+ onUnload: null,
1500
+ onVolumeChange: null,
1501
+ onWaiting: null,
1502
+ onZoom: null,
1503
+ opacity: null,
1504
+ operator: null,
1505
+ order: null,
1506
+ orient: null,
1507
+ orientation: null,
1508
+ origin: null,
1509
+ overflow: null,
1510
+ overlay: null,
1511
+ overlinePosition: number,
1512
+ overlineThickness: number,
1513
+ paintOrder: null,
1514
+ panose1: null,
1515
+ path: null,
1516
+ pathLength: number,
1517
+ patternContentUnits: null,
1518
+ patternTransform: null,
1519
+ patternUnits: null,
1520
+ phase: null,
1521
+ ping: spaceSeparated,
1522
+ pitch: null,
1523
+ playbackOrder: null,
1524
+ pointerEvents: null,
1525
+ points: null,
1526
+ pointsAtX: number,
1527
+ pointsAtY: number,
1528
+ pointsAtZ: number,
1529
+ preserveAlpha: null,
1530
+ preserveAspectRatio: null,
1531
+ primitiveUnits: null,
1532
+ propagate: null,
1533
+ property: commaOrSpaceSeparated,
1534
+ r: null,
1535
+ radius: null,
1536
+ referrerPolicy: null,
1537
+ refX: null,
1538
+ refY: null,
1539
+ rel: commaOrSpaceSeparated,
1540
+ rev: commaOrSpaceSeparated,
1541
+ renderingIntent: null,
1542
+ repeatCount: null,
1543
+ repeatDur: null,
1544
+ requiredExtensions: commaOrSpaceSeparated,
1545
+ requiredFeatures: commaOrSpaceSeparated,
1546
+ requiredFonts: commaOrSpaceSeparated,
1547
+ requiredFormats: commaOrSpaceSeparated,
1548
+ resource: null,
1549
+ restart: null,
1550
+ result: null,
1551
+ rotate: null,
1552
+ rx: null,
1553
+ ry: null,
1554
+ scale: null,
1555
+ seed: null,
1556
+ shapeRendering: null,
1557
+ side: null,
1558
+ slope: null,
1559
+ snapshotTime: null,
1560
+ specularConstant: number,
1561
+ specularExponent: number,
1562
+ spreadMethod: null,
1563
+ spacing: null,
1564
+ startOffset: null,
1565
+ stdDeviation: null,
1566
+ stemh: null,
1567
+ stemv: null,
1568
+ stitchTiles: null,
1569
+ stopColor: null,
1570
+ stopOpacity: null,
1571
+ strikethroughPosition: number,
1572
+ strikethroughThickness: number,
1573
+ string: null,
1574
+ stroke: null,
1575
+ strokeDashArray: commaOrSpaceSeparated,
1576
+ strokeDashOffset: null,
1577
+ strokeLineCap: null,
1578
+ strokeLineJoin: null,
1579
+ strokeMiterLimit: number,
1580
+ strokeOpacity: number,
1581
+ strokeWidth: null,
1582
+ style: null,
1583
+ surfaceScale: number,
1584
+ syncBehavior: null,
1585
+ syncBehaviorDefault: null,
1586
+ syncMaster: null,
1587
+ syncTolerance: null,
1588
+ syncToleranceDefault: null,
1589
+ systemLanguage: commaOrSpaceSeparated,
1590
+ tabIndex: number,
1591
+ tableValues: null,
1592
+ target: null,
1593
+ targetX: number,
1594
+ targetY: number,
1595
+ textAnchor: null,
1596
+ textDecoration: null,
1597
+ textRendering: null,
1598
+ textLength: null,
1599
+ timelineBegin: null,
1600
+ title: null,
1601
+ transformBehavior: null,
1602
+ type: null,
1603
+ typeOf: commaOrSpaceSeparated,
1604
+ to: null,
1605
+ transform: null,
1606
+ transformOrigin: null,
1607
+ u1: null,
1608
+ u2: null,
1609
+ underlinePosition: number,
1610
+ underlineThickness: number,
1611
+ unicode: null,
1612
+ unicodeBidi: null,
1613
+ unicodeRange: null,
1614
+ unitsPerEm: number,
1615
+ values: null,
1616
+ vAlphabetic: number,
1617
+ vMathematical: number,
1618
+ vectorEffect: null,
1619
+ vHanging: number,
1620
+ vIdeographic: number,
1621
+ version: null,
1622
+ vertAdvY: number,
1623
+ vertOriginX: number,
1624
+ vertOriginY: number,
1625
+ viewBox: null,
1626
+ viewTarget: null,
1627
+ visibility: null,
1628
+ width: null,
1629
+ widths: null,
1630
+ wordSpacing: null,
1631
+ writingMode: null,
1632
+ x: null,
1633
+ x1: null,
1634
+ x2: null,
1635
+ xChannelSelector: null,
1636
+ xHeight: number,
1637
+ y: null,
1638
+ y1: null,
1639
+ y2: null,
1640
+ yChannelSelector: null,
1641
+ z: null,
1642
+ zoomAndPan: null
1643
+ },
1644
+ space: "svg",
1645
+ transform: caseSensitiveTransform
1646
+ });
1647
+
1648
+ // node_modules/property-information/lib/xlink.js
1649
+ var xlink = create({
1650
+ properties: {
1651
+ xLinkActuate: null,
1652
+ xLinkArcRole: null,
1653
+ xLinkHref: null,
1654
+ xLinkRole: null,
1655
+ xLinkShow: null,
1656
+ xLinkTitle: null,
1657
+ xLinkType: null
1658
+ },
1659
+ space: "xlink",
1660
+ transform(_2, property) {
1661
+ return "xlink:" + property.slice(5).toLowerCase();
1662
+ }
1663
+ });
1664
+
1665
+ // node_modules/property-information/lib/xmlns.js
1666
+ var xmlns = create({
1667
+ attributes: { xmlnsxlink: "xmlns:xlink" },
1668
+ properties: { xmlnsXLink: null, xmlns: null },
1669
+ space: "xmlns",
1670
+ transform: caseInsensitiveTransform
1671
+ });
1672
+
1673
+ // node_modules/property-information/lib/xml.js
1674
+ var xml = create({
1675
+ properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
1676
+ space: "xml",
1677
+ transform(_2, property) {
1678
+ return "xml:" + property.slice(3).toLowerCase();
1679
+ }
1680
+ });
1681
+
1682
+ // node_modules/property-information/lib/hast-to-react.js
1683
+ var hastToReact = {
1684
+ classId: "classID",
1685
+ dataType: "datatype",
1686
+ itemId: "itemID",
1687
+ strokeDashArray: "strokeDasharray",
1688
+ strokeDashOffset: "strokeDashoffset",
1689
+ strokeLineCap: "strokeLinecap",
1690
+ strokeLineJoin: "strokeLinejoin",
1691
+ strokeMiterLimit: "strokeMiterlimit",
1692
+ typeOf: "typeof",
1693
+ xLinkActuate: "xlinkActuate",
1694
+ xLinkArcRole: "xlinkArcrole",
1695
+ xLinkHref: "xlinkHref",
1696
+ xLinkRole: "xlinkRole",
1697
+ xLinkShow: "xlinkShow",
1698
+ xLinkTitle: "xlinkTitle",
1699
+ xLinkType: "xlinkType",
1700
+ xmlnsXLink: "xmlnsXlink"
1701
+ };
1702
+
1703
+ // node_modules/property-information/lib/find.js
1704
+ var cap = /[A-Z]/g;
1705
+ var dash = /-[a-z]/g;
1706
+ var valid = /^data[-\w.:]+$/i;
1707
+ function find(schema, value) {
1708
+ const normal = normalize(value);
1709
+ let property = value;
1710
+ let Type = Info;
1711
+ if (normal in schema.normal) {
1712
+ return schema.property[schema.normal[normal]];
1713
+ }
1714
+ if (normal.length > 4 && normal.slice(0, 4) === "data" && valid.test(value)) {
1715
+ if (value.charAt(4) === "-") {
1716
+ const rest = value.slice(5).replace(dash, camelcase);
1717
+ property = "data" + rest.charAt(0).toUpperCase() + rest.slice(1);
1718
+ } else {
1719
+ const rest = value.slice(4);
1720
+ if (!dash.test(rest)) {
1721
+ let dashes = rest.replace(cap, kebab);
1722
+ if (dashes.charAt(0) !== "-") {
1723
+ dashes = "-" + dashes;
1724
+ }
1725
+ value = "data" + dashes;
1726
+ }
1727
+ }
1728
+ Type = DefinedInfo;
1729
+ }
1730
+ return new Type(property, value);
1731
+ }
1732
+ function kebab($0) {
1733
+ return "-" + $0.toLowerCase();
1734
+ }
1735
+ function camelcase($0) {
1736
+ return $0.charAt(1).toUpperCase();
1737
+ }
1738
+
1739
+ // node_modules/property-information/index.js
1740
+ var html2 = merge([aria, html, xlink, xmlns, xml], "html");
1741
+ var svg2 = merge([aria, svg, xlink, xmlns, xml], "svg");
1742
+
1743
+ // node_modules/space-separated-tokens/index.js
1744
+ function stringify2(values) {
1745
+ return values.join(" ").trim();
1746
+ }
1747
+
1748
+ // node_modules/hast-util-to-jsx-runtime/lib/index.js
1749
+ var import_style_to_js = __toESM(require_cjs3());
1750
+ var pointStart = point("start");
1751
+ function point(type) {
1752
+ return point3;
1753
+ function point3(node) {
1754
+ const point4 = node && node.position && node.position[type] || {};
1755
+ if (typeof point4.line === "number" && point4.line > 0 && typeof point4.column === "number" && point4.column > 0) {
1756
+ return {
1757
+ line: point4.line,
1758
+ column: point4.column,
1759
+ offset: typeof point4.offset === "number" && point4.offset > -1 ? point4.offset : void 0
1760
+ };
1761
+ }
1762
+ }
1763
+ }
1764
+
1765
+ // node_modules/unist-util-stringify-position/lib/index.js
1766
+ function stringifyPosition(value) {
1767
+ if (!value || typeof value !== "object") {
1768
+ return "";
1769
+ }
1770
+ if ("position" in value || "type" in value) {
1771
+ return position2(value.position);
1772
+ }
1773
+ if ("start" in value || "end" in value) {
1774
+ return position2(value);
1775
+ }
1776
+ if ("line" in value || "column" in value) {
1777
+ return point2(value);
1778
+ }
1779
+ return "";
1780
+ }
1781
+ function point2(point3) {
1782
+ return index(point3 && point3.line) + ":" + index(point3 && point3.column);
1783
+ }
1784
+ function position2(pos) {
1785
+ return point2(pos && pos.start) + "-" + point2(pos && pos.end);
1786
+ }
1787
+ function index(value) {
1788
+ return value && typeof value === "number" ? value : 1;
1789
+ }
1790
+
1791
+ // node_modules/vfile-message/lib/index.js
1792
+ var VFileMessage = class extends Error {
1793
+ /**
1794
+ * Create a message for `reason`.
1795
+ *
1796
+ * > 🪦 **Note**: also has obsolete signatures.
1797
+ *
1798
+ * @overload
1799
+ * @param {string} reason
1800
+ * @param {Options | null | undefined} [options]
1801
+ * @returns
1802
+ *
1803
+ * @overload
1804
+ * @param {string} reason
1805
+ * @param {Node | NodeLike | null | undefined} parent
1806
+ * @param {string | null | undefined} [origin]
1807
+ * @returns
1808
+ *
1809
+ * @overload
1810
+ * @param {string} reason
1811
+ * @param {Point | Position | null | undefined} place
1812
+ * @param {string | null | undefined} [origin]
1813
+ * @returns
1814
+ *
1815
+ * @overload
1816
+ * @param {string} reason
1817
+ * @param {string | null | undefined} [origin]
1818
+ * @returns
1819
+ *
1820
+ * @overload
1821
+ * @param {Error | VFileMessage} cause
1822
+ * @param {Node | NodeLike | null | undefined} parent
1823
+ * @param {string | null | undefined} [origin]
1824
+ * @returns
1825
+ *
1826
+ * @overload
1827
+ * @param {Error | VFileMessage} cause
1828
+ * @param {Point | Position | null | undefined} place
1829
+ * @param {string | null | undefined} [origin]
1830
+ * @returns
1831
+ *
1832
+ * @overload
1833
+ * @param {Error | VFileMessage} cause
1834
+ * @param {string | null | undefined} [origin]
1835
+ * @returns
1836
+ *
1837
+ * @param {Error | VFileMessage | string} causeOrReason
1838
+ * Reason for message, should use markdown.
1839
+ * @param {Node | NodeLike | Options | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
1840
+ * Configuration (optional).
1841
+ * @param {string | null | undefined} [origin]
1842
+ * Place in code where the message originates (example:
1843
+ * `'my-package:my-rule'` or `'my-rule'`).
1844
+ * @returns
1845
+ * Instance of `VFileMessage`.
1846
+ */
1847
+ // eslint-disable-next-line complexity
1848
+ constructor(causeOrReason, optionsOrParentOrPlace, origin) {
1849
+ super();
1850
+ if (typeof optionsOrParentOrPlace === "string") {
1851
+ origin = optionsOrParentOrPlace;
1852
+ optionsOrParentOrPlace = void 0;
1853
+ }
1854
+ let reason = "";
1855
+ let options = {};
1856
+ let legacyCause = false;
1857
+ if (optionsOrParentOrPlace) {
1858
+ if ("line" in optionsOrParentOrPlace && "column" in optionsOrParentOrPlace) {
1859
+ options = { place: optionsOrParentOrPlace };
1860
+ } else if ("start" in optionsOrParentOrPlace && "end" in optionsOrParentOrPlace) {
1861
+ options = { place: optionsOrParentOrPlace };
1862
+ } else if ("type" in optionsOrParentOrPlace) {
1863
+ options = {
1864
+ ancestors: [optionsOrParentOrPlace],
1865
+ place: optionsOrParentOrPlace.position
1866
+ };
1867
+ } else {
1868
+ options = { ...optionsOrParentOrPlace };
1869
+ }
1870
+ }
1871
+ if (typeof causeOrReason === "string") {
1872
+ reason = causeOrReason;
1873
+ } else if (!options.cause && causeOrReason) {
1874
+ legacyCause = true;
1875
+ reason = causeOrReason.message;
1876
+ options.cause = causeOrReason;
1877
+ }
1878
+ if (!options.ruleId && !options.source && typeof origin === "string") {
1879
+ const index2 = origin.indexOf(":");
1880
+ if (index2 === -1) {
1881
+ options.ruleId = origin;
1882
+ } else {
1883
+ options.source = origin.slice(0, index2);
1884
+ options.ruleId = origin.slice(index2 + 1);
1885
+ }
1886
+ }
1887
+ if (!options.place && options.ancestors && options.ancestors) {
1888
+ const parent = options.ancestors[options.ancestors.length - 1];
1889
+ if (parent) {
1890
+ options.place = parent.position;
1891
+ }
1892
+ }
1893
+ const start2 = options.place && "start" in options.place ? options.place.start : options.place;
1894
+ this.ancestors = options.ancestors || void 0;
1895
+ this.cause = options.cause || void 0;
1896
+ this.column = start2 ? start2.column : void 0;
1897
+ this.fatal = void 0;
1898
+ this.file = "";
1899
+ this.message = reason;
1900
+ this.line = start2 ? start2.line : void 0;
1901
+ this.name = stringifyPosition(options.place) || "1:1";
1902
+ this.place = options.place || void 0;
1903
+ this.reason = this.message;
1904
+ this.ruleId = options.ruleId || void 0;
1905
+ this.source = options.source || void 0;
1906
+ this.stack = legacyCause && options.cause && typeof options.cause.stack === "string" ? options.cause.stack : "";
1907
+ this.actual = void 0;
1908
+ this.expected = void 0;
1909
+ this.note = void 0;
1910
+ this.url = void 0;
1911
+ }
1912
+ };
1913
+ VFileMessage.prototype.file = "";
1914
+ VFileMessage.prototype.name = "";
1915
+ VFileMessage.prototype.reason = "";
1916
+ VFileMessage.prototype.message = "";
1917
+ VFileMessage.prototype.stack = "";
1918
+ VFileMessage.prototype.column = void 0;
1919
+ VFileMessage.prototype.line = void 0;
1920
+ VFileMessage.prototype.ancestors = void 0;
1921
+ VFileMessage.prototype.cause = void 0;
1922
+ VFileMessage.prototype.fatal = void 0;
1923
+ VFileMessage.prototype.place = void 0;
1924
+ VFileMessage.prototype.ruleId = void 0;
1925
+ VFileMessage.prototype.source = void 0;
1926
+
1927
+ // node_modules/hast-util-to-jsx-runtime/lib/index.js
1928
+ var own2 = {}.hasOwnProperty;
1929
+ var emptyMap = /* @__PURE__ */ new Map();
1930
+ var cap2 = /[A-Z]/g;
1931
+ var tableElements = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]);
1932
+ var tableCellElement = /* @__PURE__ */ new Set(["td", "th"]);
1933
+ var docs = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
1934
+ function toJsxRuntime(tree, options) {
1935
+ if (!options || options.Fragment === void 0) {
1936
+ throw new TypeError("Expected `Fragment` in options");
1937
+ }
1938
+ const filePath = options.filePath || void 0;
1939
+ let create2;
1940
+ if (options.development) {
1941
+ if (typeof options.jsxDEV !== "function") {
1942
+ throw new TypeError(
1943
+ "Expected `jsxDEV` in options when `development: true`"
1944
+ );
1945
+ }
1946
+ create2 = developmentCreate(filePath, options.jsxDEV);
1947
+ } else {
1948
+ if (typeof options.jsx !== "function") {
1949
+ throw new TypeError("Expected `jsx` in production options");
1950
+ }
1951
+ if (typeof options.jsxs !== "function") {
1952
+ throw new TypeError("Expected `jsxs` in production options");
1953
+ }
1954
+ create2 = productionCreate(filePath, options.jsx, options.jsxs);
1955
+ }
1956
+ const state = {
1957
+ Fragment: options.Fragment,
1958
+ ancestors: [],
1959
+ components: options.components || {},
1960
+ create: create2,
1961
+ elementAttributeNameCase: options.elementAttributeNameCase || "react",
1962
+ evaluater: options.createEvaluater ? options.createEvaluater() : void 0,
1963
+ filePath,
1964
+ ignoreInvalidStyle: options.ignoreInvalidStyle || false,
1965
+ passKeys: options.passKeys !== false,
1966
+ passNode: options.passNode || false,
1967
+ schema: options.space === "svg" ? svg2 : html2,
1968
+ stylePropertyNameCase: options.stylePropertyNameCase || "dom",
1969
+ tableCellAlignToStyle: options.tableCellAlignToStyle !== false
1970
+ };
1971
+ const result = one(state, tree, void 0);
1972
+ if (result && typeof result !== "string") {
1973
+ return result;
1974
+ }
1975
+ return state.create(
1976
+ tree,
1977
+ state.Fragment,
1978
+ { children: result || void 0 },
1979
+ void 0
1980
+ );
1981
+ }
1982
+ function one(state, node, key) {
1983
+ if (node.type === "element") {
1984
+ return element(state, node, key);
1985
+ }
1986
+ if (node.type === "mdxFlowExpression" || node.type === "mdxTextExpression") {
1987
+ return mdxExpression(state, node);
1988
+ }
1989
+ if (node.type === "mdxJsxFlowElement" || node.type === "mdxJsxTextElement") {
1990
+ return mdxJsxElement(state, node, key);
1991
+ }
1992
+ if (node.type === "mdxjsEsm") {
1993
+ return mdxEsm(state, node);
1994
+ }
1995
+ if (node.type === "root") {
1996
+ return root(state, node, key);
1997
+ }
1998
+ if (node.type === "text") {
1999
+ return text(state, node);
2000
+ }
2001
+ }
2002
+ function element(state, node, key) {
2003
+ const parentSchema = state.schema;
2004
+ let schema = parentSchema;
2005
+ if (node.tagName.toLowerCase() === "svg" && parentSchema.space === "html") {
2006
+ schema = svg2;
2007
+ state.schema = schema;
2008
+ }
2009
+ state.ancestors.push(node);
2010
+ const type = findComponentFromName(state, node.tagName, false);
2011
+ const props = createElementProps(state, node);
2012
+ let children = createChildren(state, node);
2013
+ if (tableElements.has(node.tagName)) {
2014
+ children = children.filter(function(child) {
2015
+ return typeof child === "string" ? !whitespace(child) : true;
2016
+ });
2017
+ }
2018
+ addNode(state, props, type, node);
2019
+ addChildren(props, children);
2020
+ state.ancestors.pop();
2021
+ state.schema = parentSchema;
2022
+ return state.create(node, type, props, key);
2023
+ }
2024
+ function mdxExpression(state, node) {
2025
+ if (node.data && node.data.estree && state.evaluater) {
2026
+ const program = node.data.estree;
2027
+ const expression = program.body[0];
2028
+ ok(expression.type === "ExpressionStatement");
2029
+ return (
2030
+ /** @type {Child | undefined} */
2031
+ state.evaluater.evaluateExpression(expression.expression)
2032
+ );
2033
+ }
2034
+ crashEstree(state, node.position);
2035
+ }
2036
+ function mdxEsm(state, node) {
2037
+ if (node.data && node.data.estree && state.evaluater) {
2038
+ return (
2039
+ /** @type {Child | undefined} */
2040
+ state.evaluater.evaluateProgram(node.data.estree)
2041
+ );
2042
+ }
2043
+ crashEstree(state, node.position);
2044
+ }
2045
+ function mdxJsxElement(state, node, key) {
2046
+ const parentSchema = state.schema;
2047
+ let schema = parentSchema;
2048
+ if (node.name === "svg" && parentSchema.space === "html") {
2049
+ schema = svg2;
2050
+ state.schema = schema;
2051
+ }
2052
+ state.ancestors.push(node);
2053
+ const type = node.name === null ? state.Fragment : findComponentFromName(state, node.name, true);
2054
+ const props = createJsxElementProps(state, node);
2055
+ const children = createChildren(state, node);
2056
+ addNode(state, props, type, node);
2057
+ addChildren(props, children);
2058
+ state.ancestors.pop();
2059
+ state.schema = parentSchema;
2060
+ return state.create(node, type, props, key);
2061
+ }
2062
+ function root(state, node, key) {
2063
+ const props = {};
2064
+ addChildren(props, createChildren(state, node));
2065
+ return state.create(node, state.Fragment, props, key);
2066
+ }
2067
+ function text(_2, node) {
2068
+ return node.value;
2069
+ }
2070
+ function addNode(state, props, type, node) {
2071
+ if (typeof type !== "string" && type !== state.Fragment && state.passNode) {
2072
+ props.node = node;
2073
+ }
2074
+ }
2075
+ function addChildren(props, children) {
2076
+ if (children.length > 0) {
2077
+ const value = children.length > 1 ? children : children[0];
2078
+ if (value) {
2079
+ props.children = value;
2080
+ }
2081
+ }
2082
+ }
2083
+ function productionCreate(_2, jsx, jsxs) {
2084
+ return create2;
2085
+ function create2(_3, type, props, key) {
2086
+ const isStaticChildren = Array.isArray(props.children);
2087
+ const fn = isStaticChildren ? jsxs : jsx;
2088
+ return key ? fn(type, props, key) : fn(type, props);
2089
+ }
2090
+ }
2091
+ function developmentCreate(filePath, jsxDEV) {
2092
+ return create2;
2093
+ function create2(node, type, props, key) {
2094
+ const isStaticChildren = Array.isArray(props.children);
2095
+ const point3 = pointStart(node);
2096
+ return jsxDEV(
2097
+ type,
2098
+ props,
2099
+ key,
2100
+ isStaticChildren,
2101
+ {
2102
+ columnNumber: point3 ? point3.column - 1 : void 0,
2103
+ fileName: filePath,
2104
+ lineNumber: point3 ? point3.line : void 0
2105
+ },
2106
+ void 0
2107
+ );
2108
+ }
2109
+ }
2110
+ function createElementProps(state, node) {
2111
+ const props = {};
2112
+ let alignValue;
2113
+ let prop;
2114
+ for (prop in node.properties) {
2115
+ if (prop !== "children" && own2.call(node.properties, prop)) {
2116
+ const result = createProperty(state, prop, node.properties[prop]);
2117
+ if (result) {
2118
+ const [key, value] = result;
2119
+ if (state.tableCellAlignToStyle && key === "align" && typeof value === "string" && tableCellElement.has(node.tagName)) {
2120
+ alignValue = value;
2121
+ } else {
2122
+ props[key] = value;
2123
+ }
2124
+ }
2125
+ }
2126
+ }
2127
+ if (alignValue) {
2128
+ const style = (
2129
+ /** @type {Style} */
2130
+ props.style || (props.style = {})
2131
+ );
2132
+ style[state.stylePropertyNameCase === "css" ? "text-align" : "textAlign"] = alignValue;
2133
+ }
2134
+ return props;
2135
+ }
2136
+ function createJsxElementProps(state, node) {
2137
+ const props = {};
2138
+ for (const attribute of node.attributes) {
2139
+ if (attribute.type === "mdxJsxExpressionAttribute") {
2140
+ if (attribute.data && attribute.data.estree && state.evaluater) {
2141
+ const program = attribute.data.estree;
2142
+ const expression = program.body[0];
2143
+ ok(expression.type === "ExpressionStatement");
2144
+ const objectExpression = expression.expression;
2145
+ ok(objectExpression.type === "ObjectExpression");
2146
+ const property = objectExpression.properties[0];
2147
+ ok(property.type === "SpreadElement");
2148
+ Object.assign(
2149
+ props,
2150
+ state.evaluater.evaluateExpression(property.argument)
2151
+ );
2152
+ } else {
2153
+ crashEstree(state, node.position);
2154
+ }
2155
+ } else {
2156
+ const name2 = attribute.name;
2157
+ let value;
2158
+ if (attribute.value && typeof attribute.value === "object") {
2159
+ if (attribute.value.data && attribute.value.data.estree && state.evaluater) {
2160
+ const program = attribute.value.data.estree;
2161
+ const expression = program.body[0];
2162
+ ok(expression.type === "ExpressionStatement");
2163
+ value = state.evaluater.evaluateExpression(expression.expression);
2164
+ } else {
2165
+ crashEstree(state, node.position);
2166
+ }
2167
+ } else {
2168
+ value = attribute.value === null ? true : attribute.value;
2169
+ }
2170
+ props[name2] = /** @type {Props[keyof Props]} */
2171
+ value;
2172
+ }
2173
+ }
2174
+ return props;
2175
+ }
2176
+ function createChildren(state, node) {
2177
+ const children = [];
2178
+ let index2 = -1;
2179
+ const countsByName = state.passKeys ? /* @__PURE__ */ new Map() : emptyMap;
2180
+ while (++index2 < node.children.length) {
2181
+ const child = node.children[index2];
2182
+ let key;
2183
+ if (state.passKeys) {
2184
+ const name2 = child.type === "element" ? child.tagName : child.type === "mdxJsxFlowElement" || child.type === "mdxJsxTextElement" ? child.name : void 0;
2185
+ if (name2) {
2186
+ const count = countsByName.get(name2) || 0;
2187
+ key = name2 + "-" + count;
2188
+ countsByName.set(name2, count + 1);
2189
+ }
2190
+ }
2191
+ const result = one(state, child, key);
2192
+ if (result !== void 0) children.push(result);
2193
+ }
2194
+ return children;
2195
+ }
2196
+ function createProperty(state, prop, value) {
2197
+ const info = find(state.schema, prop);
2198
+ if (value === null || value === void 0 || typeof value === "number" && Number.isNaN(value)) {
2199
+ return;
2200
+ }
2201
+ if (Array.isArray(value)) {
2202
+ value = info.commaSeparated ? stringify(value) : stringify2(value);
2203
+ }
2204
+ if (info.property === "style") {
2205
+ let styleObject = typeof value === "object" ? value : parseStyle(state, String(value));
2206
+ if (state.stylePropertyNameCase === "css") {
2207
+ styleObject = transformStylesToCssCasing(styleObject);
2208
+ }
2209
+ return ["style", styleObject];
2210
+ }
2211
+ return [
2212
+ state.elementAttributeNameCase === "react" && info.space ? hastToReact[info.property] || info.property : info.attribute,
2213
+ value
2214
+ ];
2215
+ }
2216
+ function parseStyle(state, value) {
2217
+ try {
2218
+ return (0, import_style_to_js.default)(value, { reactCompat: true });
2219
+ } catch (error) {
2220
+ if (state.ignoreInvalidStyle) {
2221
+ return {};
2222
+ }
2223
+ const cause = (
2224
+ /** @type {Error} */
2225
+ error
2226
+ );
2227
+ const message = new VFileMessage("Cannot parse `style` attribute", {
2228
+ ancestors: state.ancestors,
2229
+ cause,
2230
+ ruleId: "style",
2231
+ source: "hast-util-to-jsx-runtime"
2232
+ });
2233
+ message.file = state.filePath || void 0;
2234
+ message.url = docs + "#cannot-parse-style-attribute";
2235
+ throw message;
2236
+ }
2237
+ }
2238
+ function findComponentFromName(state, name2, allowExpression) {
2239
+ let result;
2240
+ if (!allowExpression) {
2241
+ result = { type: "Literal", value: name2 };
2242
+ } else if (name2.includes(".")) {
2243
+ const identifiers = name2.split(".");
2244
+ let index2 = -1;
2245
+ let node;
2246
+ while (++index2 < identifiers.length) {
2247
+ const prop = name(identifiers[index2]) ? { type: "Identifier", name: identifiers[index2] } : { type: "Literal", value: identifiers[index2] };
2248
+ node = node ? {
2249
+ type: "MemberExpression",
2250
+ object: node,
2251
+ property: prop,
2252
+ computed: Boolean(index2 && prop.type === "Literal"),
2253
+ optional: false
2254
+ } : prop;
2255
+ }
2256
+ result = node;
2257
+ } else {
2258
+ result = name(name2) && !/^[a-z]/.test(name2) ? { type: "Identifier", name: name2 } : { type: "Literal", value: name2 };
2259
+ }
2260
+ if (result.type === "Literal") {
2261
+ const name3 = (
2262
+ /** @type {string | number} */
2263
+ result.value
2264
+ );
2265
+ return own2.call(state.components, name3) ? state.components[name3] : name3;
2266
+ }
2267
+ if (state.evaluater) {
2268
+ return state.evaluater.evaluateExpression(result);
2269
+ }
2270
+ crashEstree(state);
2271
+ }
2272
+ function crashEstree(state, place) {
2273
+ const message = new VFileMessage(
2274
+ "Cannot handle MDX estrees without `createEvaluater`",
2275
+ {
2276
+ ancestors: state.ancestors,
2277
+ place,
2278
+ ruleId: "mdx-estree",
2279
+ source: "hast-util-to-jsx-runtime"
2280
+ }
2281
+ );
2282
+ message.file = state.filePath || void 0;
2283
+ message.url = docs + "#cannot-handle-mdx-estrees-without-createevaluater";
2284
+ throw message;
2285
+ }
2286
+ function transformStylesToCssCasing(domCasing) {
2287
+ const cssCasing = {};
2288
+ let from;
2289
+ for (from in domCasing) {
2290
+ if (own2.call(domCasing, from)) {
2291
+ cssCasing[transformStyleToCssCasing(from)] = domCasing[from];
2292
+ }
2293
+ }
2294
+ return cssCasing;
2295
+ }
2296
+ function transformStyleToCssCasing(from) {
2297
+ let to = from.replace(cap2, toDash);
2298
+ if (to.slice(0, 3) === "ms-") to = "-" + to;
2299
+ return to;
2300
+ }
2301
+ function toDash($0) {
2302
+ return "-" + $0.toLowerCase();
2303
+ }
2304
+
2305
+ // node_modules/@quartz-community/utils/dist/jsx.js
2306
+ function childrenToString(children) {
2307
+ if (typeof children === "string") return children;
2308
+ if (Array.isArray(children)) return children.map(childrenToString).join("");
2309
+ return String(children ?? "");
2310
+ }
2311
+ var builtinComponents = {
2312
+ table: (props) => /* @__PURE__ */ u2("div", {
2313
+ class: "table-container",
2314
+ children: /* @__PURE__ */ u2("table", { ...props })
2315
+ }),
2316
+ style: ({ children, ...rest }) => k("style", { ...rest, dangerouslySetInnerHTML: { __html: childrenToString(children) } }),
2317
+ script: ({ children, ...rest }) => k("script", { ...rest, dangerouslySetInnerHTML: { __html: childrenToString(children) } })
2318
+ };
2319
+ function htmlToJsx(tree, components) {
2320
+ return toJsxRuntime(tree, {
2321
+ Fragment: S,
2322
+ jsx: u2,
2323
+ jsxs: u2,
2324
+ elementAttributeNameCase: "html",
2325
+ components: { ...builtinComponents, ...components }
2326
+ });
2327
+ }
2328
+
2329
+ // src/i18n/locales/en-US.ts
2330
+ var en_US_default = {
2331
+ pages: {
2332
+ tagContent: {
2333
+ tag: "Tag",
2334
+ tagIndex: "Tag Index",
2335
+ itemsUnderTag: ({ count }) => count === 1 ? "1 item with this tag." : `${count} items with this tag.`,
2336
+ showingFirst: ({ count }) => `Showing first ${count} tags.`,
2337
+ totalTags: ({ count }) => `Found ${count} total tags.`
2338
+ }
2339
+ },
2340
+ components: {}
2341
+ };
2342
+
2343
+ // src/i18n/locales/ar-SA.ts
2344
+ var ar_SA_default = {
2345
+ pages: {
2346
+ tagContent: {
2347
+ tag: "\u0627\u0644\u0648\u0633\u0645",
2348
+ tagIndex: "\u0645\u0624\u0634\u0631 \u0627\u0644\u0648\u0633\u0645",
2349
+ itemsUnderTag: ({ count }) => count === 1 ? "\u064A\u0648\u062C\u062F \u0639\u0646\u0635\u0631 \u0648\u0627\u062D\u062F \u0641\u0642\u0637 \u062A\u062D\u062A \u0647\u0630\u0627 \u0627\u0644\u0648\u0633\u0645" : `\u064A\u0648\u062C\u062F ${count} \u0639\u0646\u0627\u0635\u0631 \u062A\u062D\u062A \u0647\u0630\u0627 \u0627\u0644\u0648\u0633\u0645.`,
2350
+ showingFirst: ({ count }) => `\u0625\u0638\u0647\u0627\u0631 \u0623\u0648\u0644 ${count} \u0623\u0648\u0633\u0645\u0629.`,
2351
+ totalTags: ({ count }) => `\u064A\u0648\u062C\u062F ${count} \u0623\u0648\u0633\u0645\u0629.`
2352
+ }
2353
+ },
2354
+ components: {}
2355
+ };
2356
+
2357
+ // src/i18n/locales/ca-ES.ts
2358
+ var ca_ES_default = {
2359
+ pages: {
2360
+ tagContent: {
2361
+ tag: "Etiqueta",
2362
+ tagIndex: "\xEDndex d'Etiquetes",
2363
+ itemsUnderTag: ({ count }) => count === 1 ? "1 article amb aquesta etiqueta." : `${count} article amb aquesta etiqueta.`,
2364
+ showingFirst: ({ count }) => `Mostrant les primeres ${count} etiquetes.`,
2365
+ totalTags: ({ count }) => `S'han trobat ${count} etiquetes en total.`
2366
+ }
2367
+ },
2368
+ components: {}
2369
+ };
2370
+
2371
+ // src/i18n/locales/cs-CZ.ts
2372
+ var cs_CZ_default = {
2373
+ pages: {
2374
+ tagContent: {
2375
+ tag: "Tag",
2376
+ tagIndex: "Rejst\u0159\xEDk tag\u016F",
2377
+ itemsUnderTag: ({ count }) => count === 1 ? "1 polo\u017Eka s t\xEDmto tagem." : `${count} polo\u017Eek s t\xEDmto tagem.`,
2378
+ showingFirst: ({ count }) => `Zobrazuj\xED se prvn\xED ${count} tagy.`,
2379
+ totalTags: ({ count }) => `Nalezeno celkem ${count} tag\u016F.`
2380
+ }
2381
+ },
2382
+ components: {}
2383
+ };
2384
+
2385
+ // src/i18n/locales/de-DE.ts
2386
+ var de_DE_default = {
2387
+ pages: {
2388
+ tagContent: {
2389
+ tag: "Tag",
2390
+ tagIndex: "Tag-\xDCbersicht",
2391
+ itemsUnderTag: ({ count }) => count === 1 ? "1 Datei mit diesem Tag." : `${count} Dateien mit diesem Tag.`,
2392
+ showingFirst: ({ count }) => `Die ersten ${count} Tags werden angezeigt.`,
2393
+ totalTags: ({ count }) => `${count} Tags insgesamt.`
2394
+ }
2395
+ },
2396
+ components: {}
2397
+ };
2398
+
2399
+ // src/i18n/locales/en-GB.ts
2400
+ var en_GB_default = {
2401
+ pages: {
2402
+ tagContent: {
2403
+ tag: "Tag",
2404
+ tagIndex: "Tag Index",
2405
+ itemsUnderTag: ({ count }) => count === 1 ? "1 item with this tag." : `${count} items with this tag.`,
2406
+ showingFirst: ({ count }) => `Showing first ${count} tags.`,
2407
+ totalTags: ({ count }) => `Found ${count} total tags.`
2408
+ }
2409
+ },
2410
+ components: {}
2411
+ };
2412
+
2413
+ // src/i18n/locales/es-ES.ts
2414
+ var es_ES_default = {
2415
+ pages: {
2416
+ tagContent: {
2417
+ tag: "Etiqueta",
2418
+ tagIndex: "\xCDndice de Etiquetas",
2419
+ itemsUnderTag: ({ count }) => count === 1 ? "1 art\xEDculo con esta etiqueta." : `${count} art\xEDculos con esta etiqueta.`,
2420
+ showingFirst: ({ count }) => `Mostrando las primeras ${count} etiquetas.`,
2421
+ totalTags: ({ count }) => `Se han encontrado ${count} etiquetas en total.`
2422
+ }
2423
+ },
2424
+ components: {}
2425
+ };
2426
+
2427
+ // src/i18n/locales/fa-IR.ts
2428
+ var fa_IR_default = {
2429
+ pages: {
2430
+ tagContent: {
2431
+ tag: "\u0628\u0631\u0686\u0633\u0628",
2432
+ tagIndex: "\u0641\u0647\u0631\u0633\u062A \u0628\u0631\u0686\u0633\u0628\u200C\u0647\u0627",
2433
+ itemsUnderTag: ({ count }) => count === 1 ? "\u06CC\u06A9 \u0645\u0637\u0644\u0628 \u0628\u0627 \u0627\u06CC\u0646 \u0628\u0631\u0686\u0633\u0628" : `${count} \u0645\u0637\u0644\u0628 \u0628\u0627 \u0627\u06CC\u0646 \u0628\u0631\u0686\u0633\u0628.`,
2434
+ showingFirst: ({ count }) => `\u062F\u0631 \u062D\u0627\u0644 \u0646\u0645\u0627\u06CC\u0634 ${count} \u0628\u0631\u0686\u0633\u0628.`,
2435
+ totalTags: ({ count }) => `${count} \u0628\u0631\u0686\u0633\u0628 \u06CC\u0627\u0641\u062A \u0634\u062F.`
2436
+ }
2437
+ },
2438
+ components: {}
2439
+ };
2440
+
2441
+ // src/i18n/locales/fi-FI.ts
2442
+ var fi_FI_default = {
2443
+ pages: {
2444
+ tagContent: {
2445
+ tag: "Tunniste",
2446
+ tagIndex: "Tunnisteluettelo",
2447
+ itemsUnderTag: ({ count }) => count === 1 ? "1 kohde t\xE4ll\xE4 tunnisteella." : `${count} kohdetta t\xE4ll\xE4 tunnisteella.`,
2448
+ showingFirst: ({ count }) => `N\xE4ytet\xE4\xE4n ensimm\xE4iset ${count} tunnistetta.`,
2449
+ totalTags: ({ count }) => `L\xF6ytyi yhteens\xE4 ${count} tunnistetta.`
2450
+ }
2451
+ },
2452
+ components: {}
2453
+ };
2454
+
2455
+ // src/i18n/locales/fr-FR.ts
2456
+ var fr_FR_default = {
2457
+ pages: {
2458
+ tagContent: {
2459
+ tag: "\xC9tiquette",
2460
+ tagIndex: "Index des \xE9tiquettes",
2461
+ itemsUnderTag: ({ count }) => count === 1 ? "1 \xE9l\xE9ment avec cette \xE9tiquette." : `${count} \xE9l\xE9ments avec cette \xE9tiquette.`,
2462
+ showingFirst: ({ count }) => `Affichage des premi\xE8res ${count} \xE9tiquettes.`,
2463
+ totalTags: ({ count }) => `Trouv\xE9 ${count} \xE9tiquettes au total.`
2464
+ }
2465
+ },
2466
+ components: {}
2467
+ };
2468
+
2469
+ // src/i18n/locales/he-IL.ts
2470
+ var he_IL_default = {
2471
+ pages: {
2472
+ tagContent: {
2473
+ tag: "\u05EA\u05D2\u05D9\u05EA",
2474
+ tagIndex: "\u05DE\u05E4\u05EA\u05D7 \u05D4\u05EA\u05D2\u05D9\u05D5\u05EA",
2475
+ itemsUnderTag: ({ count }) => count === 1 ? "\u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3 \u05E2\u05DD \u05EA\u05D2\u05D9\u05EA \u05D6\u05D5." : `${count} \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05E2\u05DD \u05EA\u05D2\u05D9\u05EA \u05D6\u05D5.`,
2476
+ showingFirst: ({ count }) => `\u05DE\u05E8\u05D0\u05D4 \u05D0\u05EA \u05D4-${count} \u05EA\u05D2\u05D9\u05D5\u05EA \u05D4\u05E8\u05D0\u05E9\u05D5\u05E0\u05D5\u05EA.`,
2477
+ totalTags: ({ count }) => `${count} \u05EA\u05D2\u05D9\u05D5\u05EA \u05E0\u05DE\u05E6\u05D0\u05D5 \u05E1\u05DA \u05D4\u05DB\u05DC.`
2478
+ }
2479
+ },
2480
+ components: {}
2481
+ };
2482
+
2483
+ // src/i18n/locales/hu-HU.ts
2484
+ var hu_HU_default = {
2485
+ pages: {
2486
+ tagContent: {
2487
+ tag: "C\xEDmke",
2488
+ tagIndex: "C\xEDmke index",
2489
+ itemsUnderTag: ({ count }) => `${count} elem tal\xE1lhat\xF3 ezzel a c\xEDmk\xE9vel.`,
2490
+ showingFirst: ({ count }) => `Els\u0151 ${count} c\xEDmke megjelen\xEDtve.`,
2491
+ totalTags: ({ count }) => `\xD6sszesen ${count} c\xEDmke tal\xE1lhat\xF3.`
2492
+ }
2493
+ },
2494
+ components: {}
2495
+ };
2496
+
2497
+ // src/i18n/locales/id-ID.ts
2498
+ var id_ID_default = {
2499
+ pages: {
2500
+ tagContent: {
2501
+ tag: "Tag",
2502
+ tagIndex: "Indeks Tag",
2503
+ itemsUnderTag: ({ count }) => count === 1 ? "1 item dengan tag ini." : `${count} item dengan tag ini.`,
2504
+ showingFirst: ({ count }) => `Menampilkan ${count} tag pertama.`,
2505
+ totalTags: ({ count }) => `Ditemukan total ${count} tag.`
2506
+ }
2507
+ },
2508
+ components: {}
2509
+ };
2510
+
2511
+ // src/i18n/locales/it-IT.ts
2512
+ var it_IT_default = {
2513
+ pages: {
2514
+ tagContent: {
2515
+ tag: "Etichetta",
2516
+ tagIndex: "Indice etichette",
2517
+ itemsUnderTag: ({ count }) => count === 1 ? "1 oggetto con questa etichetta." : `${count} oggetti con questa etichetta.`,
2518
+ showingFirst: ({ count }) => count === 1 ? "Prima etichetta." : `Prime ${count} etichette.`,
2519
+ totalTags: ({ count }) => count === 1 ? "Trovata 1 etichetta in totale." : `Trovate ${count} etichette totali.`
2520
+ }
2521
+ },
2522
+ components: {}
2523
+ };
2524
+
2525
+ // src/i18n/locales/ja-JP.ts
2526
+ var ja_JP_default = {
2527
+ pages: {
2528
+ tagContent: {
2529
+ tag: "\u30BF\u30B0",
2530
+ tagIndex: "\u30BF\u30B0\u4E00\u89A7",
2531
+ itemsUnderTag: ({ count }) => `${count}\u4EF6\u306E\u30DA\u30FC\u30B8`,
2532
+ showingFirst: ({ count }) => `\u306E\u3046\u3061\u6700\u521D\u306E${count}\u4EF6\u3092\u8868\u793A\u3057\u3066\u3044\u307E\u3059`,
2533
+ totalTags: ({ count }) => `\u5168${count}\u500B\u306E\u30BF\u30B0\u3092\u8868\u793A\u4E2D`
2534
+ }
2535
+ },
2536
+ components: {}
2537
+ };
2538
+
2539
+ // src/i18n/locales/kk-KZ.ts
2540
+ var kk_KZ_default = {
2541
+ pages: {
2542
+ tagContent: {
2543
+ tag: "\u0422\u0435\u0433",
2544
+ tagIndex: "\u0422\u0435\u0433\u0442\u0435\u0440 \u0438\u043D\u0434\u0435\u043A\u0441\u0456",
2545
+ itemsUnderTag: ({ count }) => count === 1 ? "\u0411\u04B1\u043B \u0442\u0435\u0433\u043F\u0435\u043D 1 \u044D\u043B\u0435\u043C\u0435\u043D\u0442." : `\u0411\u04B1\u043B \u0442\u0435\u0433\u043F\u0435\u043D ${count} \u044D\u043B\u0435\u043C\u0435\u043D\u0442.`,
2546
+ showingFirst: ({ count }) => `\u0410\u043B\u0493\u0430\u0448\u049B\u044B ${count} \u0442\u0435\u0433 \u043A\u04E9\u0440\u0441\u0435\u0442\u0456\u043B\u0443\u0434\u0435.`,
2547
+ totalTags: ({ count }) => `\u0411\u0430\u0440\u043B\u044B\u0493\u044B ${count} \u0442\u0435\u0433 \u0442\u0430\u0431\u044B\u043B\u0434\u044B.`
2548
+ }
2549
+ },
2550
+ components: {}
2551
+ };
2552
+
2553
+ // src/i18n/locales/ko-KR.ts
2554
+ var ko_KR_default = {
2555
+ pages: {
2556
+ tagContent: {
2557
+ tag: "\uD0DC\uADF8",
2558
+ tagIndex: "\uD0DC\uADF8 \uBAA9\uB85D",
2559
+ itemsUnderTag: ({ count }) => `${count}\uAC74\uC758 \uD56D\uBAA9`,
2560
+ showingFirst: ({ count }) => `\uCC98\uC74C ${count}\uAC1C\uC758 \uD0DC\uADF8`,
2561
+ totalTags: ({ count }) => `\uCD1D ${count}\uAC1C\uC758 \uD0DC\uADF8\uB97C \uCC3E\uC558\uC2B5\uB2C8\uB2E4.`
2562
+ }
2563
+ },
2564
+ components: {}
2565
+ };
2566
+
2567
+ // src/i18n/locales/lt-LT.ts
2568
+ var lt_LT_default = {
2569
+ pages: {
2570
+ tagContent: {
2571
+ tag: "\u017Dyma",
2572
+ tagIndex: "\u017Dym\u0173 indeksas",
2573
+ itemsUnderTag: ({ count }) => count === 1 ? "1 elementas su \u0161ia \u017Eyma." : count < 10 ? `${count} elementai su \u0161ia \u017Eyma.` : `${count} element\u0173 su \u0161ia \u017Eyma.`,
2574
+ showingFirst: ({ count }) => count < 10 ? `Rodomos pirmosios ${count} \u017Eymos.` : `Rodomos pirmosios ${count} \u017Eym\u0173.`,
2575
+ totalTags: ({ count }) => count === 1 ? "Rasta i\u0161 viso 1 \u017Eyma." : count < 10 ? `Rasta i\u0161 viso ${count} \u017Eymos.` : `Rasta i\u0161 viso ${count} \u017Eym\u0173.`
2576
+ }
2577
+ },
2578
+ components: {}
2579
+ };
2580
+
2581
+ // src/i18n/locales/nb-NO.ts
2582
+ var nb_NO_default = {
2583
+ pages: {
2584
+ tagContent: {
2585
+ tag: "Tagg",
2586
+ tagIndex: "Tagg Indeks",
2587
+ itemsUnderTag: ({ count }) => count === 1 ? "1 gjenstand med denne taggen." : `${count} gjenstander med denne taggen.`,
2588
+ showingFirst: ({ count }) => `Viser f\xF8rste ${count} tagger.`,
2589
+ totalTags: ({ count }) => `Fant totalt ${count} tagger.`
2590
+ }
2591
+ },
2592
+ components: {}
2593
+ };
2594
+
2595
+ // src/i18n/locales/nl-NL.ts
2596
+ var nl_NL_default = {
2597
+ pages: {
2598
+ tagContent: {
2599
+ tag: "Label",
2600
+ tagIndex: "Label-index",
2601
+ itemsUnderTag: ({ count }) => count === 1 ? "1 item met dit label." : `${count} items met dit label.`,
2602
+ showingFirst: ({ count }) => count === 1 ? "Eerste label tonen." : `Eerste ${count} labels tonen.`,
2603
+ totalTags: ({ count }) => `${count} labels gevonden.`
2604
+ }
2605
+ },
2606
+ components: {}
2607
+ };
2608
+
2609
+ // src/i18n/locales/pl-PL.ts
2610
+ var pl_PL_default = {
2611
+ pages: {
2612
+ tagContent: {
2613
+ tag: "Znacznik",
2614
+ tagIndex: "Spis znacznik\xF3w",
2615
+ itemsUnderTag: ({ count }) => count === 1 ? "Oznaczony 1 element." : `Element\xF3w z tym znacznikiem: ${count}.`,
2616
+ showingFirst: ({ count }) => `Pokazuje ${count} pierwszych znacznik\xF3w.`,
2617
+ totalTags: ({ count }) => `Znalezionych wszystkich znacznik\xF3w: ${count}.`
2618
+ }
2619
+ },
2620
+ components: {}
2621
+ };
2622
+
2623
+ // src/i18n/locales/pt-BR.ts
2624
+ var pt_BR_default = {
2625
+ pages: {
2626
+ tagContent: {
2627
+ tag: "Tag",
2628
+ tagIndex: "Sum\xE1rio de Tags",
2629
+ itemsUnderTag: ({ count }) => count === 1 ? "1 item com esta tag." : `${count} items com esta tag.`,
2630
+ showingFirst: ({ count }) => `Mostrando as ${count} primeiras tags.`,
2631
+ totalTags: ({ count }) => `Encontradas ${count} tags.`
2632
+ }
2633
+ },
2634
+ components: {}
2635
+ };
2636
+
2637
+ // src/i18n/locales/ro-RO.ts
2638
+ var ro_RO_default = {
2639
+ pages: {
2640
+ tagContent: {
2641
+ tag: "Etichet\u0103",
2642
+ tagIndex: "Indexul etichetelor",
2643
+ itemsUnderTag: ({ count }) => count === 1 ? "1 articol cu aceast\u0103 etichet\u0103." : `${count} articole cu aceast\u0103 etichet\u0103.`,
2644
+ showingFirst: ({ count }) => `Se afi\u0219eaz\u0103 primele ${count} etichete.`,
2645
+ totalTags: ({ count }) => `Au fost g\u0103site ${count} etichete \xEEn total.`
2646
+ }
2647
+ },
2648
+ components: {}
2649
+ };
2650
+
2651
+ // src/i18n/locales/ru-RU.ts
2652
+ var ru_RU_default = {
2653
+ pages: {
2654
+ tagContent: {
2655
+ tag: "\u0422\u0435\u0433",
2656
+ tagIndex: "\u0418\u043D\u0434\u0435\u043A\u0441 \u0442\u0435\u0433\u043E\u0432",
2657
+ itemsUnderTag: ({ count }) => `\u0441 \u044D\u0442\u0438\u043C \u0442\u0435\u0433\u043E\u043C ${count} \u044D\u043B\u0435\u043C\u0435\u043D\u0442${getForm(count, "", "\u0430", "\u043E\u0432")}`,
2658
+ showingFirst: ({ count }) => `\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430${getForm(count, "\u0435\u0442\u0441\u044F", "\u044E\u0442\u0441\u044F", "\u044E\u0442\u0441\u044F")} ${count} \u0442\u0435\u0433${getForm(count, "", "\u0430", "\u043E\u0432")}`,
2659
+ totalTags: ({ count }) => `\u0412\u0441\u0435\u0433\u043E ${count} \u0442\u0435\u0433${getForm(count, "", "\u0430", "\u043E\u0432")}`
2660
+ }
2661
+ },
2662
+ components: {}
2663
+ };
2664
+ function getForm(number2, form1, form2, form5) {
2665
+ const remainder100 = number2 % 100;
2666
+ const remainder10 = remainder100 % 10;
2667
+ if (remainder100 >= 10 && remainder100 <= 20) return form5;
2668
+ if (remainder10 > 1 && remainder10 < 5) return form2;
2669
+ if (remainder10 == 1) return form1;
2670
+ return form5;
2671
+ }
2672
+
2673
+ // src/i18n/locales/th-TH.ts
2674
+ var th_TH_default = {
2675
+ pages: {
2676
+ tagContent: {
2677
+ tag: "\u0E41\u0E17\u0E47\u0E01",
2678
+ tagIndex: "\u0E41\u0E17\u0E47\u0E01\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
2679
+ itemsUnderTag: ({ count }) => `\u0E21\u0E35 ${count} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E43\u0E19\u0E41\u0E17\u0E47\u0E01\u0E19\u0E35\u0E49`,
2680
+ showingFirst: ({ count }) => `\u0E41\u0E2A\u0E14\u0E07 ${count} \u0E41\u0E17\u0E47\u0E01\u0E41\u0E23\u0E01`,
2681
+ totalTags: ({ count }) => `\u0E21\u0E35\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14 ${count} \u0E41\u0E17\u0E47\u0E01`
2682
+ }
2683
+ },
2684
+ components: {}
2685
+ };
2686
+
2687
+ // src/i18n/locales/tr-TR.ts
2688
+ var tr_TR_default = {
2689
+ pages: {
2690
+ tagContent: {
2691
+ tag: "Etiket",
2692
+ tagIndex: "Etiket S\u0131ras\u0131",
2693
+ itemsUnderTag: ({ count }) => count === 1 ? "Bu etikete sahip 1 \xF6\u011Fe." : `Bu etiket alt\u0131ndaki ${count} \xF6\u011Fe.`,
2694
+ showingFirst: ({ count }) => `\u0130lk ${count} etiket g\xF6steriliyor.`,
2695
+ totalTags: ({ count }) => `Toplam ${count} adet etiket bulundu.`
2696
+ }
2697
+ },
2698
+ components: {}
2699
+ };
2700
+
2701
+ // src/i18n/locales/uk-UA.ts
2702
+ var uk_UA_default = {
2703
+ pages: {
2704
+ tagContent: {
2705
+ tag: "\u041C\u0456\u0442\u043A\u0430",
2706
+ tagIndex: "\u0406\u043D\u0434\u0435\u043A\u0441 \u043C\u0456\u0442\u043A\u0438",
2707
+ itemsUnderTag: ({ count }) => count === 1 ? "1 \u0435\u043B\u0435\u043C\u0435\u043D\u0442 \u0437 \u0446\u0456\u0454\u044E \u043C\u0456\u0442\u043A\u043E\u044E." : `\u0415\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432 \u0437 \u0446\u0456\u0454\u044E \u043C\u0456\u0442\u043A\u043E\u044E: ${count}.`,
2708
+ showingFirst: ({ count }) => `\u041F\u043E\u043A\u0430\u0437 \u043F\u0435\u0440\u0448\u0438\u0445 ${count} \u043C\u0456\u0442\u043E\u043A.`,
2709
+ totalTags: ({ count }) => `\u0412\u0441\u044C\u043E\u0433\u043E \u0437\u043D\u0430\u0439\u0434\u0435\u043D\u043E \u043C\u0456\u0442\u043E\u043A: ${count}.`
2710
+ }
2711
+ },
2712
+ components: {}
2713
+ };
2714
+
2715
+ // src/i18n/locales/vi-VN.ts
2716
+ var vi_VN_default = {
2717
+ pages: {
2718
+ tagContent: {
2719
+ tag: "Th\u1EBB",
2720
+ tagIndex: "Danh s\xE1ch th\u1EBB",
2721
+ itemsUnderTag: ({ count }) => `C\xF3 ${count} trang g\u1EAFn th\u1EBB n\xE0y.`,
2722
+ showingFirst: ({ count }) => `\u0110ang hi\u1EC3n th\u1ECB ${count} trang \u0111\u1EA7u ti\xEAn.`,
2723
+ totalTags: ({ count }) => `C\xF3 t\u1ED5ng c\u1ED9ng ${count} th\u1EBB.`
2724
+ }
2725
+ },
2726
+ components: {}
2727
+ };
2728
+
2729
+ // src/i18n/locales/zh-CN.ts
2730
+ var zh_CN_default = {
2731
+ pages: {
2732
+ tagContent: {
2733
+ tag: "\u6807\u7B7E",
2734
+ tagIndex: "\u6807\u7B7E\u7D22\u5F15",
2735
+ itemsUnderTag: ({ count }) => `\u6B64\u6807\u7B7E\u4E0B\u6709${count}\u6761\u7B14\u8BB0\u3002`,
2736
+ showingFirst: ({ count }) => `\u663E\u793A\u524D${count}\u4E2A\u6807\u7B7E\u3002`,
2737
+ totalTags: ({ count }) => `\u603B\u5171\u6709${count}\u4E2A\u6807\u7B7E\u3002`
2738
+ }
2739
+ },
2740
+ components: {}
2741
+ };
2742
+
2743
+ // src/i18n/locales/zh-TW.ts
2744
+ var zh_TW_default = {
2745
+ pages: {
2746
+ tagContent: {
2747
+ tag: "\u6A19\u7C64",
2748
+ tagIndex: "\u6A19\u7C64\u7D22\u5F15",
2749
+ itemsUnderTag: ({ count }) => `\u6B64\u6A19\u7C64\u4E0B\u6709 ${count} \u689D\u7B46\u8A18\u3002`,
2750
+ showingFirst: ({ count }) => `\u986F\u793A\u524D ${count} \u500B\u6A19\u7C64\u3002`,
2751
+ totalTags: ({ count }) => `\u7E3D\u5171\u6709 ${count} \u500B\u6A19\u7C64\u3002`
2752
+ }
2753
+ },
2754
+ components: {}
2755
+ };
2756
+
2757
+ // src/i18n/index.ts
2758
+ var locales = {
2759
+ "en-US": en_US_default,
2760
+ "ar-SA": ar_SA_default,
2761
+ "ca-ES": ca_ES_default,
2762
+ "cs-CZ": cs_CZ_default,
2763
+ "de-DE": de_DE_default,
2764
+ "en-GB": en_GB_default,
2765
+ "es-ES": es_ES_default,
2766
+ "fa-IR": fa_IR_default,
2767
+ "fi-FI": fi_FI_default,
2768
+ "fr-FR": fr_FR_default,
2769
+ "he-IL": he_IL_default,
2770
+ "hu-HU": hu_HU_default,
2771
+ "id-ID": id_ID_default,
2772
+ "it-IT": it_IT_default,
2773
+ "ja-JP": ja_JP_default,
2774
+ "kk-KZ": kk_KZ_default,
2775
+ "ko-KR": ko_KR_default,
2776
+ "lt-LT": lt_LT_default,
2777
+ "nb-NO": nb_NO_default,
2778
+ "nl-NL": nl_NL_default,
2779
+ "pl-PL": pl_PL_default,
2780
+ "pt-BR": pt_BR_default,
2781
+ "ro-RO": ro_RO_default,
2782
+ "ru-RU": ru_RU_default,
2783
+ "th-TH": th_TH_default,
2784
+ "tr-TR": tr_TR_default,
2785
+ "uk-UA": uk_UA_default,
2786
+ "vi-VN": vi_VN_default,
2787
+ "zh-CN": zh_CN_default,
2788
+ "zh-TW": zh_TW_default
2789
+ };
2790
+ function i18n(locale) {
2791
+ return locales[locale] || en_US_default;
2792
+ }
2793
+
2794
+ // src/components/styles/listPage.scss
2795
+ var listPage_default = "ul.section-ul {\n list-style: none;\n margin-top: 2em;\n padding-left: 0;\n}\n\nli.section-li {\n margin-bottom: 1em;\n}\nli.section-li > .section {\n display: grid;\n grid-template-columns: fit-content(8em) 3fr 1fr;\n}\n@media all and (max-width: 600px) {\n li.section-li > .section > .tags {\n display: none;\n }\n}\nli.section-li > .section > .desc > h3 > a {\n background-color: transparent;\n}\nli.section-li > .section .meta {\n margin: 0 1em 0 0;\n opacity: 0.6;\n}\n\n.popover .section {\n grid-template-columns: fit-content(8em) 1fr !important;\n}\n.popover .section > .tags {\n display: none;\n}";
2796
+
2797
+ // src/components/TagContent.tsx
2798
+ var defaultOptions = {
2799
+ numPages: 10
2800
+ };
2801
+ function concatenateResources(...resources) {
2802
+ const result = resources.filter((r2) => r2 !== void 0).flat();
2803
+ return result.length === 0 ? void 0 : result;
2804
+ }
2805
+ function isListed(file) {
2806
+ return file.unlisted !== true;
2807
+ }
2808
+ var TagContent_default = ((opts) => {
2809
+ const options = { ...defaultOptions, ...opts };
2810
+ const TagContent = (props) => {
2811
+ const { tree, fileData, allFiles, cfg } = props;
2812
+ const fd = fileData;
2813
+ const slug2 = fd.slug;
2814
+ const locale = cfg?.locale ?? "en-US";
2815
+ if (!(slug2?.startsWith("tags/") || slug2 === "tags")) {
2816
+ throw new Error(`Component "TagContent" tried to render a non-tag page: ${slug2}`);
2817
+ }
2818
+ const tag = simplifySlug(slug2.slice("tags/".length));
2819
+ const allPagesWithTag = (t2) => allFiles.filter(isListed).filter(
2820
+ (file) => (file.frontmatter?.tags ?? []).flatMap(getAllSegmentPrefixes).includes(t2)
2821
+ );
2822
+ const hastRoot = tree;
2823
+ const content = hastRoot.children.length === 0 ? fd.description : htmlToJsx(hastRoot);
2824
+ const cssClasses = fd.frontmatter?.cssclasses ?? [];
2825
+ const classes = cssClasses.join(" ");
2826
+ if (tag === "/") {
2827
+ const tags = [
2828
+ ...new Set(
2829
+ allFiles.filter(isListed).flatMap((data) => data.frontmatter?.tags ?? []).flatMap(getAllSegmentPrefixes)
2830
+ )
2831
+ ].sort((a2, b2) => a2.localeCompare(b2));
2832
+ const tagItemMap = /* @__PURE__ */ new Map();
2833
+ for (const t2 of tags) {
2834
+ tagItemMap.set(t2, allPagesWithTag(t2));
2835
+ }
2836
+ return /* @__PURE__ */ u2("div", { class: "popover-hint", children: [
2837
+ /* @__PURE__ */ u2("article", { class: classes, children: /* @__PURE__ */ u2("div", { class: "markdown-preview-view markdown-rendered", children: /* @__PURE__ */ u2("p", { children: content }) }) }),
2838
+ /* @__PURE__ */ u2("p", { children: i18n(locale).pages.tagContent.totalTags({ count: tags.length }) }),
2839
+ /* @__PURE__ */ u2("div", { children: tags.map((t2) => {
2840
+ const pages = tagItemMap.get(t2);
2841
+ const listProps = {
2842
+ ...props,
2843
+ allFiles: pages
2844
+ };
2845
+ const pageListContent = PageList({
2846
+ ...listProps,
2847
+ limit: options.numPages,
2848
+ sort: options?.sort
2849
+ });
2850
+ const contentPage = allFiles.find(
2851
+ (file) => file.slug === `tags/${t2}`
2852
+ );
2853
+ const root2 = contentPage?.filePath ? contentPage?.htmlAst : void 0;
2854
+ const tagDesc = !root2 || root2.children.length === 0 ? contentPage?.description : htmlToJsx(root2);
2855
+ const tagListingPage = `/tags/${t2}`;
2856
+ const href = resolveRelative(slug2, tagListingPage);
2857
+ return /* @__PURE__ */ u2("div", { children: [
2858
+ /* @__PURE__ */ u2("h2", { children: /* @__PURE__ */ u2("a", { class: "internal tag-link", href, children: t2 }) }),
2859
+ tagDesc && /* @__PURE__ */ u2("p", { children: tagDesc }),
2860
+ /* @__PURE__ */ u2("div", { class: "page-listing", children: [
2861
+ /* @__PURE__ */ u2("p", { children: [
2862
+ i18n(locale).pages.tagContent.itemsUnderTag({ count: pages.length }),
2863
+ pages.length > options.numPages && /* @__PURE__ */ u2(S, { children: [
2864
+ " ",
2865
+ /* @__PURE__ */ u2("span", { children: i18n(locale).pages.tagContent.showingFirst({
2866
+ count: options.numPages
2867
+ }) })
2868
+ ] })
2869
+ ] }),
2870
+ pageListContent
2871
+ ] })
2872
+ ] });
2873
+ }) })
2874
+ ] });
2875
+ } else {
2876
+ const pages = allPagesWithTag(tag);
2877
+ const listProps = {
2878
+ ...props,
2879
+ allFiles: pages
2880
+ };
2881
+ const pageListContent = PageList({
2882
+ ...listProps,
2883
+ sort: options?.sort
2884
+ });
2885
+ return /* @__PURE__ */ u2("div", { class: "popover-hint", children: [
2886
+ /* @__PURE__ */ u2("article", { class: classes, children: /* @__PURE__ */ u2("div", { class: "markdown-preview-view markdown-rendered", children: content }) }),
2887
+ /* @__PURE__ */ u2("div", { class: "page-listing", children: [
2888
+ /* @__PURE__ */ u2("p", { children: i18n(locale).pages.tagContent.itemsUnderTag({ count: pages.length }) }),
2889
+ /* @__PURE__ */ u2("div", { children: pageListContent })
2890
+ ] })
2891
+ ] });
2892
+ }
2893
+ };
2894
+ TagContent.css = concatenateResources(listPage_default, PageList.css);
2895
+ return TagContent;
2896
+ });
2897
+
2898
+ export { PageList, TagContent_default as TagContent, byDateAndAlphabetical, byDateAndAlphabeticalFolderFirst };
2899
+ //# sourceMappingURL=index.js.map
2900
+ //# sourceMappingURL=index.js.map