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