@quartz-community/breadcrumbs 1.0.3 → 1.0.5

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 CHANGED
@@ -72,14 +72,308 @@ function resolveRelative(current, target) {
72
72
  const res = joinSegments(pathToRoot(current), simplifySlug(target));
73
73
  return res;
74
74
  }
75
+ var SLUG_OPTIONS = /* @__PURE__ */ Symbol.for("@quartz-community/utils/slugOptions");
76
+ function getSlugOptions() {
77
+ return globalThis[SLUG_OPTIONS] ?? {};
78
+ }
79
+ var LATIN_FOLDS = {
80
+ \u0142: "l",
81
+ \u0141: "L",
82
+ \u00F8: "o",
83
+ \u00D8: "O",
84
+ \u0111: "d",
85
+ \u0110: "D",
86
+ \u00F0: "d",
87
+ \u00D0: "D",
88
+ \u0127: "h",
89
+ \u0126: "H",
90
+ \u0167: "t",
91
+ \u0166: "T",
92
+ \u0140: "l",
93
+ \u013F: "L",
94
+ \u0131: "i",
95
+ \u019A: "l",
96
+ \u0180: "b",
97
+ \u0268: "i",
98
+ \u0289: "u",
99
+ \u00DF: "ss",
100
+ "\u1E9E": "SS",
101
+ \u00E6: "ae",
102
+ \u00C6: "AE",
103
+ \u0153: "oe",
104
+ \u0152: "OE",
105
+ \u00FE: "th",
106
+ \u00DE: "Th"
107
+ };
108
+ var LATIN_FOLD_RE = new RegExp(`[${Object.keys(LATIN_FOLDS).join("")}]`, "gu");
109
+ var LATIN_WITH_MARKS_RE = /(\p{Script=Latin})\p{M}+/gu;
110
+ function stripDiacritics(s) {
111
+ return s.normalize("NFD").replace(LATIN_WITH_MARKS_RE, "$1").replace(LATIN_FOLD_RE, (c) => LATIN_FOLDS[c] ?? c).normalize("NFC");
112
+ }
75
113
  function slugifyPath(s) {
76
- return s.split("/").map(
114
+ const normalized = s.normalize("NFC");
115
+ return (getSlugOptions().stripDiacritics ? stripDiacritics(normalized) : normalized).split("/").map(
77
116
  (segment) => segment.replace(/\s/g, "-").replace(/&/g, "-and-").replace(/%/g, "-percent").replace(/\?/g, "").replace(/#/g, "").replace(/[<>:"|*]/g, "").toLowerCase()
78
117
  ).join("/").replace(/\/$/, "");
79
118
  }
80
119
  function _sluggify(s) {
81
120
  return slugifyPath(s);
82
121
  }
122
+ var __create = Object.create;
123
+ var __defProp = Object.defineProperty;
124
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
125
+ var __getOwnPropNames = Object.getOwnPropertyNames;
126
+ var __getProtoOf = Object.getPrototypeOf;
127
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
128
+ var __commonJS = (cb, mod) => function __require() {
129
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
130
+ };
131
+ var __export = (target, all) => {
132
+ for (var name2 in all)
133
+ __defProp(target, name2, { get: all[name2], enumerable: true });
134
+ };
135
+ var __copyProps = (to, from, except, desc) => {
136
+ if (from && typeof from === "object" || typeof from === "function") {
137
+ for (let key of __getOwnPropNames(from))
138
+ if (!__hasOwnProp.call(to, key) && key !== except)
139
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
140
+ }
141
+ return to;
142
+ };
143
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
144
+ // If the importer is in node compatibility mode or this is not an ESM
145
+ // file that has been converted to a CommonJS file using a Babel-
146
+ // compatible transform (i.e. "__esModule" has not been set), then set
147
+ // "default" to the CommonJS "module.exports" for node compatibility.
148
+ __defProp(target, "default", { value: mod, enumerable: true }),
149
+ mod
150
+ ));
151
+ var require_cjs = __commonJS({
152
+ "node_modules/inline-style-parser/cjs/index.js"(exports, module) {
153
+ var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
154
+ var NEWLINE_REGEX = /\n/g;
155
+ var WHITESPACE_REGEX = /^\s*/;
156
+ var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
157
+ var COLON_REGEX = /^:\s*/;
158
+ var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
159
+ var SEMICOLON_REGEX = /^[;\s]*/;
160
+ var TRIM_REGEX = /^\s+|\s+$/g;
161
+ var NEWLINE = "\n";
162
+ var FORWARD_SLASH = "/";
163
+ var ASTERISK = "*";
164
+ var EMPTY_STRING = "";
165
+ var TYPE_COMMENT = "comment";
166
+ var TYPE_DECLARATION = "declaration";
167
+ function index2(style, options) {
168
+ if (typeof style !== "string") {
169
+ throw new TypeError("First argument must be a string");
170
+ }
171
+ if (!style) return [];
172
+ options = options || {};
173
+ var lineno = 1;
174
+ var column = 1;
175
+ function updatePosition(str) {
176
+ var lines = str.match(NEWLINE_REGEX);
177
+ if (lines) lineno += lines.length;
178
+ var i = str.lastIndexOf(NEWLINE);
179
+ column = ~i ? str.length - i : column + str.length;
180
+ }
181
+ function position3() {
182
+ var start2 = { line: lineno, column };
183
+ return function(node) {
184
+ node.position = new Position(start2);
185
+ whitespace2();
186
+ return node;
187
+ };
188
+ }
189
+ function Position(start2) {
190
+ this.start = start2;
191
+ this.end = { line: lineno, column };
192
+ this.source = options.source;
193
+ }
194
+ Position.prototype.content = style;
195
+ function error(msg) {
196
+ var err = new Error(
197
+ options.source + ":" + lineno + ":" + column + ": " + msg
198
+ );
199
+ err.reason = msg;
200
+ err.filename = options.source;
201
+ err.line = lineno;
202
+ err.column = column;
203
+ err.source = style;
204
+ if (options.silent) ;
205
+ else {
206
+ throw err;
207
+ }
208
+ }
209
+ function match(re2) {
210
+ var m = re2.exec(style);
211
+ if (!m) return;
212
+ var str = m[0];
213
+ updatePosition(str);
214
+ style = style.slice(str.length);
215
+ return m;
216
+ }
217
+ function whitespace2() {
218
+ match(WHITESPACE_REGEX);
219
+ }
220
+ function comments(rules) {
221
+ var c;
222
+ rules = rules || [];
223
+ while (c = comment()) {
224
+ if (c !== false) {
225
+ rules.push(c);
226
+ }
227
+ }
228
+ return rules;
229
+ }
230
+ function comment() {
231
+ var pos = position3();
232
+ if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;
233
+ var i = 2;
234
+ while (EMPTY_STRING != style.charAt(i) && (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))) {
235
+ ++i;
236
+ }
237
+ i += 2;
238
+ if (EMPTY_STRING === style.charAt(i - 1)) {
239
+ return error("End of comment missing");
240
+ }
241
+ var str = style.slice(2, i - 2);
242
+ column += 2;
243
+ updatePosition(str);
244
+ style = style.slice(i);
245
+ column += 2;
246
+ return pos({
247
+ type: TYPE_COMMENT,
248
+ comment: str
249
+ });
250
+ }
251
+ function declaration() {
252
+ var pos = position3();
253
+ var prop = match(PROPERTY_REGEX);
254
+ if (!prop) return;
255
+ comment();
256
+ if (!match(COLON_REGEX)) return error("property missing ':'");
257
+ var val = match(VALUE_REGEX);
258
+ var ret = pos({
259
+ type: TYPE_DECLARATION,
260
+ property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
261
+ value: val ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING)) : EMPTY_STRING
262
+ });
263
+ match(SEMICOLON_REGEX);
264
+ return ret;
265
+ }
266
+ function declarations() {
267
+ var decls = [];
268
+ comments(decls);
269
+ var decl;
270
+ while (decl = declaration()) {
271
+ if (decl !== false) {
272
+ decls.push(decl);
273
+ comments(decls);
274
+ }
275
+ }
276
+ return decls;
277
+ }
278
+ whitespace2();
279
+ return declarations();
280
+ }
281
+ function trim(str) {
282
+ return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
283
+ }
284
+ module.exports = index2;
285
+ }
286
+ });
287
+ var require_cjs2 = __commonJS({
288
+ "node_modules/style-to-object/cjs/index.js"(exports) {
289
+ var __importDefault = exports && exports.__importDefault || function(mod) {
290
+ return mod && mod.__esModule ? mod : { "default": mod };
291
+ };
292
+ Object.defineProperty(exports, "__esModule", { value: true });
293
+ exports.default = StyleToObject;
294
+ var inline_style_parser_1 = __importDefault(require_cjs());
295
+ function StyleToObject(style, iterator) {
296
+ let styleObject = null;
297
+ if (!style || typeof style !== "string") {
298
+ return styleObject;
299
+ }
300
+ const declarations = (0, inline_style_parser_1.default)(style);
301
+ const hasIterator = typeof iterator === "function";
302
+ declarations.forEach((declaration) => {
303
+ if (declaration.type !== "declaration") {
304
+ return;
305
+ }
306
+ const { property, value } = declaration;
307
+ if (hasIterator) {
308
+ iterator(property, value, declaration);
309
+ } else if (value) {
310
+ styleObject = styleObject || {};
311
+ styleObject[property] = value;
312
+ }
313
+ });
314
+ return styleObject;
315
+ }
316
+ }
317
+ });
318
+ var require_utilities = __commonJS({
319
+ "node_modules/style-to-js/cjs/utilities.js"(exports) {
320
+ Object.defineProperty(exports, "__esModule", { value: true });
321
+ exports.camelCase = void 0;
322
+ var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9_-]+$/;
323
+ var HYPHEN_REGEX = /-([a-z])/g;
324
+ var NO_HYPHEN_REGEX = /^[^-]+$/;
325
+ var VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;
326
+ var MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;
327
+ var skipCamelCase = function(property) {
328
+ return !property || NO_HYPHEN_REGEX.test(property) || CUSTOM_PROPERTY_REGEX.test(property);
329
+ };
330
+ var capitalize2 = function(match, character) {
331
+ return character.toUpperCase();
332
+ };
333
+ var trimHyphen = function(match, prefix) {
334
+ return "".concat(prefix, "-");
335
+ };
336
+ var camelCase = function(property, options) {
337
+ if (options === void 0) {
338
+ options = {};
339
+ }
340
+ if (skipCamelCase(property)) {
341
+ return property;
342
+ }
343
+ property = property.toLowerCase();
344
+ if (options.reactCompat) {
345
+ property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);
346
+ } else {
347
+ property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);
348
+ }
349
+ return property.replace(HYPHEN_REGEX, capitalize2);
350
+ };
351
+ exports.camelCase = camelCase;
352
+ }
353
+ });
354
+ var require_cjs3 = __commonJS({
355
+ "node_modules/style-to-js/cjs/index.js"(exports, module) {
356
+ var __importDefault = exports && exports.__importDefault || function(mod) {
357
+ return mod && mod.__esModule ? mod : { "default": mod };
358
+ };
359
+ var style_to_object_1 = __importDefault(require_cjs2());
360
+ var utilities_1 = require_utilities();
361
+ function StyleToJS(style, options) {
362
+ var output = {};
363
+ if (!style || typeof style !== "string") {
364
+ return output;
365
+ }
366
+ (0, style_to_object_1.default)(style, function(property, value) {
367
+ if (property && value) {
368
+ output[(0, utilities_1.camelCase)(property, options)] = value;
369
+ }
370
+ });
371
+ return output;
372
+ }
373
+ StyleToJS.default = StyleToJS;
374
+ module.exports = StyleToJS;
375
+ }
376
+ });
83
377
  function joinSegments2(...args) {
84
378
  if (args.length === 0) {
85
379
  return "";
@@ -104,6 +398,1357 @@ function stripSlashes2(s, onlyStripPrefix) {
104
398
  }
105
399
  return s;
106
400
  }
401
+ var LATIN_FOLDS2 = {
402
+ \u0142: "l",
403
+ \u0141: "L",
404
+ \u00F8: "o",
405
+ \u00D8: "O",
406
+ \u0111: "d",
407
+ \u0110: "D",
408
+ \u00F0: "d",
409
+ \u00D0: "D",
410
+ \u0127: "h",
411
+ \u0126: "H",
412
+ \u0167: "t",
413
+ \u0166: "T",
414
+ \u0140: "l",
415
+ \u013F: "L",
416
+ \u0131: "i",
417
+ \u019A: "l",
418
+ \u0180: "b",
419
+ \u0268: "i",
420
+ \u0289: "u",
421
+ \u00DF: "ss",
422
+ "\u1E9E": "SS",
423
+ \u00E6: "ae",
424
+ \u00C6: "AE",
425
+ \u0153: "oe",
426
+ \u0152: "OE",
427
+ \u00FE: "th",
428
+ \u00DE: "Th"
429
+ };
430
+ new RegExp(`[${Object.keys(LATIN_FOLDS2).join("")}]`, "gu");
431
+ var Schema = class {
432
+ /**
433
+ * @param {SchemaType['property']} property
434
+ * Property.
435
+ * @param {SchemaType['normal']} normal
436
+ * Normal.
437
+ * @param {Space | undefined} [space]
438
+ * Space.
439
+ * @returns
440
+ * Schema.
441
+ */
442
+ constructor(property, normal, space) {
443
+ this.normal = normal;
444
+ this.property = property;
445
+ if (space) {
446
+ this.space = space;
447
+ }
448
+ }
449
+ };
450
+ Schema.prototype.normal = {};
451
+ Schema.prototype.property = {};
452
+ Schema.prototype.space = void 0;
453
+ function merge(definitions, space) {
454
+ const property = {};
455
+ const normal = {};
456
+ for (const definition of definitions) {
457
+ Object.assign(property, definition.property);
458
+ Object.assign(normal, definition.normal);
459
+ }
460
+ return new Schema(property, normal, space);
461
+ }
462
+ function normalize(value) {
463
+ return value.toLowerCase();
464
+ }
465
+ var Info = class {
466
+ /**
467
+ * @param {string} property
468
+ * Property.
469
+ * @param {string} attribute
470
+ * Attribute.
471
+ * @returns
472
+ * Info.
473
+ */
474
+ constructor(property, attribute) {
475
+ this.attribute = attribute;
476
+ this.property = property;
477
+ }
478
+ };
479
+ Info.prototype.attribute = "";
480
+ Info.prototype.booleanish = false;
481
+ Info.prototype.boolean = false;
482
+ Info.prototype.commaOrSpaceSeparated = false;
483
+ Info.prototype.commaSeparated = false;
484
+ Info.prototype.defined = false;
485
+ Info.prototype.mustUseProperty = false;
486
+ Info.prototype.number = false;
487
+ Info.prototype.overloadedBoolean = false;
488
+ Info.prototype.property = "";
489
+ Info.prototype.spaceSeparated = false;
490
+ Info.prototype.space = void 0;
491
+ var types_exports = {};
492
+ __export(types_exports, {
493
+ boolean: () => boolean,
494
+ booleanish: () => booleanish,
495
+ commaOrSpaceSeparated: () => commaOrSpaceSeparated,
496
+ commaSeparated: () => commaSeparated,
497
+ number: () => number,
498
+ overloadedBoolean: () => overloadedBoolean,
499
+ spaceSeparated: () => spaceSeparated
500
+ });
501
+ var powers = 0;
502
+ var boolean = increment();
503
+ var booleanish = increment();
504
+ var overloadedBoolean = increment();
505
+ var number = increment();
506
+ var spaceSeparated = increment();
507
+ var commaSeparated = increment();
508
+ var commaOrSpaceSeparated = increment();
509
+ function increment() {
510
+ return 2 ** ++powers;
511
+ }
512
+ var checks = (
513
+ /** @type {ReadonlyArray<keyof typeof types>} */
514
+ Object.keys(types_exports)
515
+ );
516
+ var DefinedInfo = class extends Info {
517
+ /**
518
+ * @constructor
519
+ * @param {string} property
520
+ * Property.
521
+ * @param {string} attribute
522
+ * Attribute.
523
+ * @param {number | null | undefined} [mask]
524
+ * Mask.
525
+ * @param {Space | undefined} [space]
526
+ * Space.
527
+ * @returns
528
+ * Info.
529
+ */
530
+ constructor(property, attribute, mask, space) {
531
+ let index2 = -1;
532
+ super(property, attribute);
533
+ mark(this, "space", space);
534
+ if (typeof mask === "number") {
535
+ while (++index2 < checks.length) {
536
+ const check = checks[index2];
537
+ mark(this, checks[index2], (mask & types_exports[check]) === types_exports[check]);
538
+ }
539
+ }
540
+ }
541
+ };
542
+ DefinedInfo.prototype.defined = true;
543
+ function mark(values, key, value) {
544
+ if (value) {
545
+ values[key] = value;
546
+ }
547
+ }
548
+ function create(definition) {
549
+ const properties = {};
550
+ const normals = {};
551
+ for (const [property, value] of Object.entries(definition.properties)) {
552
+ const info = new DefinedInfo(
553
+ property,
554
+ definition.transform(definition.attributes || {}, property),
555
+ value,
556
+ definition.space
557
+ );
558
+ if (definition.mustUseProperty && definition.mustUseProperty.includes(property)) {
559
+ info.mustUseProperty = true;
560
+ }
561
+ properties[property] = info;
562
+ normals[normalize(property)] = property;
563
+ normals[normalize(info.attribute)] = property;
564
+ }
565
+ return new Schema(properties, normals, definition.space);
566
+ }
567
+ var aria = create({
568
+ properties: {
569
+ ariaActiveDescendant: null,
570
+ ariaAtomic: booleanish,
571
+ ariaAutoComplete: null,
572
+ ariaBusy: booleanish,
573
+ ariaChecked: booleanish,
574
+ ariaColCount: number,
575
+ ariaColIndex: number,
576
+ ariaColSpan: number,
577
+ ariaControls: spaceSeparated,
578
+ ariaCurrent: null,
579
+ ariaDescribedBy: spaceSeparated,
580
+ ariaDetails: null,
581
+ ariaDisabled: booleanish,
582
+ ariaDropEffect: spaceSeparated,
583
+ ariaErrorMessage: null,
584
+ ariaExpanded: booleanish,
585
+ ariaFlowTo: spaceSeparated,
586
+ ariaGrabbed: booleanish,
587
+ ariaHasPopup: null,
588
+ ariaHidden: booleanish,
589
+ ariaInvalid: null,
590
+ ariaKeyShortcuts: null,
591
+ ariaLabel: null,
592
+ ariaLabelledBy: spaceSeparated,
593
+ ariaLevel: number,
594
+ ariaLive: null,
595
+ ariaModal: booleanish,
596
+ ariaMultiLine: booleanish,
597
+ ariaMultiSelectable: booleanish,
598
+ ariaOrientation: null,
599
+ ariaOwns: spaceSeparated,
600
+ ariaPlaceholder: null,
601
+ ariaPosInSet: number,
602
+ ariaPressed: booleanish,
603
+ ariaReadOnly: booleanish,
604
+ ariaRelevant: null,
605
+ ariaRequired: booleanish,
606
+ ariaRoleDescription: spaceSeparated,
607
+ ariaRowCount: number,
608
+ ariaRowIndex: number,
609
+ ariaRowSpan: number,
610
+ ariaSelected: booleanish,
611
+ ariaSetSize: number,
612
+ ariaSort: null,
613
+ ariaValueMax: number,
614
+ ariaValueMin: number,
615
+ ariaValueNow: number,
616
+ ariaValueText: null,
617
+ role: null
618
+ },
619
+ transform(_, property) {
620
+ return property === "role" ? property : "aria-" + property.slice(4).toLowerCase();
621
+ }
622
+ });
623
+ function caseSensitiveTransform(attributes, attribute) {
624
+ return attribute in attributes ? attributes[attribute] : attribute;
625
+ }
626
+ function caseInsensitiveTransform(attributes, property) {
627
+ return caseSensitiveTransform(attributes, property.toLowerCase());
628
+ }
629
+ var html = create({
630
+ attributes: {
631
+ acceptcharset: "accept-charset",
632
+ classname: "class",
633
+ htmlfor: "for",
634
+ httpequiv: "http-equiv"
635
+ },
636
+ mustUseProperty: ["checked", "multiple", "muted", "selected"],
637
+ properties: {
638
+ // Standard Properties.
639
+ abbr: null,
640
+ accept: commaSeparated,
641
+ acceptCharset: spaceSeparated,
642
+ accessKey: spaceSeparated,
643
+ action: null,
644
+ allow: null,
645
+ allowFullScreen: boolean,
646
+ allowPaymentRequest: boolean,
647
+ allowUserMedia: boolean,
648
+ alpha: boolean,
649
+ alt: null,
650
+ as: null,
651
+ async: boolean,
652
+ autoCapitalize: null,
653
+ autoComplete: spaceSeparated,
654
+ autoFocus: boolean,
655
+ autoPlay: boolean,
656
+ blocking: spaceSeparated,
657
+ capture: null,
658
+ charSet: null,
659
+ checked: boolean,
660
+ cite: null,
661
+ className: spaceSeparated,
662
+ closedBy: null,
663
+ colorSpace: null,
664
+ cols: number,
665
+ colSpan: number,
666
+ command: null,
667
+ commandFor: null,
668
+ content: null,
669
+ contentEditable: booleanish,
670
+ controls: boolean,
671
+ controlsList: spaceSeparated,
672
+ coords: number | commaSeparated,
673
+ crossOrigin: null,
674
+ data: null,
675
+ dateTime: null,
676
+ decoding: null,
677
+ default: boolean,
678
+ defer: boolean,
679
+ dir: null,
680
+ dirName: null,
681
+ disabled: boolean,
682
+ download: overloadedBoolean,
683
+ draggable: booleanish,
684
+ encType: null,
685
+ enterKeyHint: null,
686
+ fetchPriority: null,
687
+ form: null,
688
+ formAction: null,
689
+ formEncType: null,
690
+ formMethod: null,
691
+ formNoValidate: boolean,
692
+ formTarget: null,
693
+ headers: spaceSeparated,
694
+ height: number,
695
+ hidden: overloadedBoolean,
696
+ high: number,
697
+ href: null,
698
+ hrefLang: null,
699
+ htmlFor: spaceSeparated,
700
+ httpEquiv: spaceSeparated,
701
+ id: null,
702
+ imageSizes: null,
703
+ imageSrcSet: null,
704
+ inert: boolean,
705
+ inputMode: null,
706
+ integrity: null,
707
+ is: null,
708
+ isMap: boolean,
709
+ itemId: null,
710
+ itemProp: spaceSeparated,
711
+ itemRef: spaceSeparated,
712
+ itemScope: boolean,
713
+ itemType: spaceSeparated,
714
+ kind: null,
715
+ label: null,
716
+ lang: null,
717
+ language: null,
718
+ list: null,
719
+ loading: null,
720
+ loop: boolean,
721
+ low: number,
722
+ manifest: null,
723
+ max: null,
724
+ maxLength: number,
725
+ media: null,
726
+ method: null,
727
+ min: null,
728
+ minLength: number,
729
+ multiple: boolean,
730
+ muted: boolean,
731
+ name: null,
732
+ nonce: null,
733
+ noModule: boolean,
734
+ noValidate: boolean,
735
+ onAbort: null,
736
+ onAfterPrint: null,
737
+ onAuxClick: null,
738
+ onBeforeMatch: null,
739
+ onBeforePrint: null,
740
+ onBeforeToggle: null,
741
+ onBeforeUnload: null,
742
+ onBlur: null,
743
+ onCancel: null,
744
+ onCanPlay: null,
745
+ onCanPlayThrough: null,
746
+ onChange: null,
747
+ onClick: null,
748
+ onClose: null,
749
+ onContextLost: null,
750
+ onContextMenu: null,
751
+ onContextRestored: null,
752
+ onCopy: null,
753
+ onCueChange: null,
754
+ onCut: null,
755
+ onDblClick: null,
756
+ onDrag: null,
757
+ onDragEnd: null,
758
+ onDragEnter: null,
759
+ onDragExit: null,
760
+ onDragLeave: null,
761
+ onDragOver: null,
762
+ onDragStart: null,
763
+ onDrop: null,
764
+ onDurationChange: null,
765
+ onEmptied: null,
766
+ onEnded: null,
767
+ onError: null,
768
+ onFocus: null,
769
+ onFormData: null,
770
+ onHashChange: null,
771
+ onInput: null,
772
+ onInvalid: null,
773
+ onKeyDown: null,
774
+ onKeyPress: null,
775
+ onKeyUp: null,
776
+ onLanguageChange: null,
777
+ onLoad: null,
778
+ onLoadedData: null,
779
+ onLoadedMetadata: null,
780
+ onLoadEnd: null,
781
+ onLoadStart: null,
782
+ onMessage: null,
783
+ onMessageError: null,
784
+ onMouseDown: null,
785
+ onMouseEnter: null,
786
+ onMouseLeave: null,
787
+ onMouseMove: null,
788
+ onMouseOut: null,
789
+ onMouseOver: null,
790
+ onMouseUp: null,
791
+ onOffline: null,
792
+ onOnline: null,
793
+ onPageHide: null,
794
+ onPageShow: null,
795
+ onPaste: null,
796
+ onPause: null,
797
+ onPlay: null,
798
+ onPlaying: null,
799
+ onPopState: null,
800
+ onProgress: null,
801
+ onRateChange: null,
802
+ onRejectionHandled: null,
803
+ onReset: null,
804
+ onResize: null,
805
+ onScroll: null,
806
+ onScrollEnd: null,
807
+ onSecurityPolicyViolation: null,
808
+ onSeeked: null,
809
+ onSeeking: null,
810
+ onSelect: null,
811
+ onSlotChange: null,
812
+ onStalled: null,
813
+ onStorage: null,
814
+ onSubmit: null,
815
+ onSuspend: null,
816
+ onTimeUpdate: null,
817
+ onToggle: null,
818
+ onUnhandledRejection: null,
819
+ onUnload: null,
820
+ onVolumeChange: null,
821
+ onWaiting: null,
822
+ onWheel: null,
823
+ open: boolean,
824
+ optimum: number,
825
+ pattern: null,
826
+ ping: spaceSeparated,
827
+ placeholder: null,
828
+ playsInline: boolean,
829
+ popover: null,
830
+ popoverTarget: null,
831
+ popoverTargetAction: null,
832
+ poster: null,
833
+ preload: null,
834
+ readOnly: boolean,
835
+ referrerPolicy: null,
836
+ rel: spaceSeparated,
837
+ required: boolean,
838
+ reversed: boolean,
839
+ rows: number,
840
+ rowSpan: number,
841
+ sandbox: spaceSeparated,
842
+ scope: null,
843
+ scoped: boolean,
844
+ seamless: boolean,
845
+ selected: boolean,
846
+ shadowRootClonable: boolean,
847
+ shadowRootCustomElementRegistry: boolean,
848
+ shadowRootDelegatesFocus: boolean,
849
+ shadowRootMode: null,
850
+ shadowRootSerializable: boolean,
851
+ shape: null,
852
+ size: number,
853
+ sizes: null,
854
+ slot: null,
855
+ span: number,
856
+ spellCheck: booleanish,
857
+ src: null,
858
+ srcDoc: null,
859
+ srcLang: null,
860
+ srcSet: null,
861
+ start: number,
862
+ step: null,
863
+ style: null,
864
+ tabIndex: number,
865
+ target: null,
866
+ title: null,
867
+ translate: null,
868
+ type: null,
869
+ typeMustMatch: boolean,
870
+ useMap: null,
871
+ value: booleanish,
872
+ width: number,
873
+ wrap: null,
874
+ writingSuggestions: null,
875
+ // Legacy.
876
+ // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
877
+ align: null,
878
+ // Several. Use CSS `text-align` instead,
879
+ aLink: null,
880
+ // `<body>`. Use CSS `a:active {color}` instead
881
+ archive: spaceSeparated,
882
+ // `<object>`. List of URIs to archives
883
+ axis: null,
884
+ // `<td>` and `<th>`. Use `scope` on `<th>`
885
+ background: null,
886
+ // `<body>`. Use CSS `background-image` instead
887
+ bgColor: null,
888
+ // `<body>` and table elements. Use CSS `background-color` instead
889
+ border: number,
890
+ // `<table>`. Use CSS `border-width` instead,
891
+ borderColor: null,
892
+ // `<table>`. Use CSS `border-color` instead,
893
+ bottomMargin: number,
894
+ // `<body>`
895
+ cellPadding: null,
896
+ // `<table>`
897
+ cellSpacing: null,
898
+ // `<table>`
899
+ char: null,
900
+ // Several table elements. When `align=char`, sets the character to align on
901
+ charOff: null,
902
+ // Several table elements. When `char`, offsets the alignment
903
+ classId: null,
904
+ // `<object>`
905
+ clear: null,
906
+ // `<br>`. Use CSS `clear` instead
907
+ code: null,
908
+ // `<object>`
909
+ codeBase: null,
910
+ // `<object>`
911
+ codeType: null,
912
+ // `<object>`
913
+ color: null,
914
+ // `<font>` and `<hr>`. Use CSS instead
915
+ compact: boolean,
916
+ // Lists. Use CSS to reduce space between items instead
917
+ declare: boolean,
918
+ // `<object>`
919
+ event: null,
920
+ // `<script>`
921
+ face: null,
922
+ // `<font>`. Use CSS instead
923
+ frame: null,
924
+ // `<table>`
925
+ frameBorder: null,
926
+ // `<iframe>`. Use CSS `border` instead
927
+ hSpace: number,
928
+ // `<img>` and `<object>`
929
+ leftMargin: number,
930
+ // `<body>`
931
+ link: null,
932
+ // `<body>`. Use CSS `a:link {color: *}` instead
933
+ longDesc: null,
934
+ // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
935
+ lowSrc: null,
936
+ // `<img>`. Use a `<picture>`
937
+ marginHeight: number,
938
+ // `<body>`
939
+ marginWidth: number,
940
+ // `<body>`
941
+ noResize: boolean,
942
+ // `<frame>`
943
+ noHref: boolean,
944
+ // `<area>`. Use no href instead of an explicit `nohref`
945
+ noShade: boolean,
946
+ // `<hr>`. Use background-color and height instead of borders
947
+ noWrap: boolean,
948
+ // `<td>` and `<th>`
949
+ object: null,
950
+ // `<applet>`
951
+ profile: null,
952
+ // `<head>`
953
+ prompt: null,
954
+ // `<isindex>`
955
+ rev: null,
956
+ // `<link>`
957
+ rightMargin: number,
958
+ // `<body>`
959
+ rules: null,
960
+ // `<table>`
961
+ scheme: null,
962
+ // `<meta>`
963
+ scrolling: booleanish,
964
+ // `<frame>`. Use overflow in the child context
965
+ standby: null,
966
+ // `<object>`
967
+ summary: null,
968
+ // `<table>`
969
+ text: null,
970
+ // `<body>`. Use CSS `color` instead
971
+ topMargin: number,
972
+ // `<body>`
973
+ valueType: null,
974
+ // `<param>`
975
+ version: null,
976
+ // `<html>`. Use a doctype.
977
+ vAlign: null,
978
+ // Several. Use CSS `vertical-align` instead
979
+ vLink: null,
980
+ // `<body>`. Use CSS `a:visited {color}` instead
981
+ vSpace: number,
982
+ // `<img>` and `<object>`
983
+ // Non-standard Properties.
984
+ allowTransparency: null,
985
+ autoCorrect: null,
986
+ autoSave: null,
987
+ credentialless: boolean,
988
+ disablePictureInPicture: boolean,
989
+ disableRemotePlayback: boolean,
990
+ exportParts: commaSeparated,
991
+ part: spaceSeparated,
992
+ prefix: null,
993
+ property: null,
994
+ results: number,
995
+ security: null,
996
+ unselectable: null
997
+ },
998
+ space: "html",
999
+ transform: caseInsensitiveTransform
1000
+ });
1001
+ var svg = create({
1002
+ attributes: {
1003
+ accentHeight: "accent-height",
1004
+ alignmentBaseline: "alignment-baseline",
1005
+ arabicForm: "arabic-form",
1006
+ baselineShift: "baseline-shift",
1007
+ capHeight: "cap-height",
1008
+ className: "class",
1009
+ clipPath: "clip-path",
1010
+ clipRule: "clip-rule",
1011
+ colorInterpolation: "color-interpolation",
1012
+ colorInterpolationFilters: "color-interpolation-filters",
1013
+ colorProfile: "color-profile",
1014
+ colorRendering: "color-rendering",
1015
+ crossOrigin: "crossorigin",
1016
+ dataType: "datatype",
1017
+ dominantBaseline: "dominant-baseline",
1018
+ enableBackground: "enable-background",
1019
+ fillOpacity: "fill-opacity",
1020
+ fillRule: "fill-rule",
1021
+ floodColor: "flood-color",
1022
+ floodOpacity: "flood-opacity",
1023
+ fontFamily: "font-family",
1024
+ fontSize: "font-size",
1025
+ fontSizeAdjust: "font-size-adjust",
1026
+ fontStretch: "font-stretch",
1027
+ fontStyle: "font-style",
1028
+ fontVariant: "font-variant",
1029
+ fontWeight: "font-weight",
1030
+ glyphName: "glyph-name",
1031
+ glyphOrientationHorizontal: "glyph-orientation-horizontal",
1032
+ glyphOrientationVertical: "glyph-orientation-vertical",
1033
+ hrefLang: "hreflang",
1034
+ horizAdvX: "horiz-adv-x",
1035
+ horizOriginX: "horiz-origin-x",
1036
+ horizOriginY: "horiz-origin-y",
1037
+ imageRendering: "image-rendering",
1038
+ letterSpacing: "letter-spacing",
1039
+ lightingColor: "lighting-color",
1040
+ markerEnd: "marker-end",
1041
+ markerMid: "marker-mid",
1042
+ markerStart: "marker-start",
1043
+ maskType: "mask-type",
1044
+ navDown: "nav-down",
1045
+ navDownLeft: "nav-down-left",
1046
+ navDownRight: "nav-down-right",
1047
+ navLeft: "nav-left",
1048
+ navNext: "nav-next",
1049
+ navPrev: "nav-prev",
1050
+ navRight: "nav-right",
1051
+ navUp: "nav-up",
1052
+ navUpLeft: "nav-up-left",
1053
+ navUpRight: "nav-up-right",
1054
+ onAbort: "onabort",
1055
+ onActivate: "onactivate",
1056
+ onAfterPrint: "onafterprint",
1057
+ onBeforePrint: "onbeforeprint",
1058
+ onBegin: "onbegin",
1059
+ onCancel: "oncancel",
1060
+ onCanPlay: "oncanplay",
1061
+ onCanPlayThrough: "oncanplaythrough",
1062
+ onChange: "onchange",
1063
+ onClick: "onclick",
1064
+ onClose: "onclose",
1065
+ onCopy: "oncopy",
1066
+ onCueChange: "oncuechange",
1067
+ onCut: "oncut",
1068
+ onDblClick: "ondblclick",
1069
+ onDrag: "ondrag",
1070
+ onDragEnd: "ondragend",
1071
+ onDragEnter: "ondragenter",
1072
+ onDragExit: "ondragexit",
1073
+ onDragLeave: "ondragleave",
1074
+ onDragOver: "ondragover",
1075
+ onDragStart: "ondragstart",
1076
+ onDrop: "ondrop",
1077
+ onDurationChange: "ondurationchange",
1078
+ onEmptied: "onemptied",
1079
+ onEnd: "onend",
1080
+ onEnded: "onended",
1081
+ onError: "onerror",
1082
+ onFocus: "onfocus",
1083
+ onFocusIn: "onfocusin",
1084
+ onFocusOut: "onfocusout",
1085
+ onHashChange: "onhashchange",
1086
+ onInput: "oninput",
1087
+ onInvalid: "oninvalid",
1088
+ onKeyDown: "onkeydown",
1089
+ onKeyPress: "onkeypress",
1090
+ onKeyUp: "onkeyup",
1091
+ onLoad: "onload",
1092
+ onLoadedData: "onloadeddata",
1093
+ onLoadedMetadata: "onloadedmetadata",
1094
+ onLoadStart: "onloadstart",
1095
+ onMessage: "onmessage",
1096
+ onMouseDown: "onmousedown",
1097
+ onMouseEnter: "onmouseenter",
1098
+ onMouseLeave: "onmouseleave",
1099
+ onMouseMove: "onmousemove",
1100
+ onMouseOut: "onmouseout",
1101
+ onMouseOver: "onmouseover",
1102
+ onMouseUp: "onmouseup",
1103
+ onMouseWheel: "onmousewheel",
1104
+ onOffline: "onoffline",
1105
+ onOnline: "ononline",
1106
+ onPageHide: "onpagehide",
1107
+ onPageShow: "onpageshow",
1108
+ onPaste: "onpaste",
1109
+ onPause: "onpause",
1110
+ onPlay: "onplay",
1111
+ onPlaying: "onplaying",
1112
+ onPopState: "onpopstate",
1113
+ onProgress: "onprogress",
1114
+ onRateChange: "onratechange",
1115
+ onRepeat: "onrepeat",
1116
+ onReset: "onreset",
1117
+ onResize: "onresize",
1118
+ onScroll: "onscroll",
1119
+ onSeeked: "onseeked",
1120
+ onSeeking: "onseeking",
1121
+ onSelect: "onselect",
1122
+ onShow: "onshow",
1123
+ onStalled: "onstalled",
1124
+ onStorage: "onstorage",
1125
+ onSubmit: "onsubmit",
1126
+ onSuspend: "onsuspend",
1127
+ onTimeUpdate: "ontimeupdate",
1128
+ onToggle: "ontoggle",
1129
+ onUnload: "onunload",
1130
+ onVolumeChange: "onvolumechange",
1131
+ onWaiting: "onwaiting",
1132
+ onZoom: "onzoom",
1133
+ overlinePosition: "overline-position",
1134
+ overlineThickness: "overline-thickness",
1135
+ paintOrder: "paint-order",
1136
+ panose1: "panose-1",
1137
+ pointerEvents: "pointer-events",
1138
+ referrerPolicy: "referrerpolicy",
1139
+ renderingIntent: "rendering-intent",
1140
+ shapeRendering: "shape-rendering",
1141
+ stopColor: "stop-color",
1142
+ stopOpacity: "stop-opacity",
1143
+ strikethroughPosition: "strikethrough-position",
1144
+ strikethroughThickness: "strikethrough-thickness",
1145
+ strokeDashArray: "stroke-dasharray",
1146
+ strokeDashOffset: "stroke-dashoffset",
1147
+ strokeLineCap: "stroke-linecap",
1148
+ strokeLineJoin: "stroke-linejoin",
1149
+ strokeMiterLimit: "stroke-miterlimit",
1150
+ strokeOpacity: "stroke-opacity",
1151
+ strokeWidth: "stroke-width",
1152
+ tabIndex: "tabindex",
1153
+ textAnchor: "text-anchor",
1154
+ textDecoration: "text-decoration",
1155
+ textRendering: "text-rendering",
1156
+ transformOrigin: "transform-origin",
1157
+ typeOf: "typeof",
1158
+ underlinePosition: "underline-position",
1159
+ underlineThickness: "underline-thickness",
1160
+ unicodeBidi: "unicode-bidi",
1161
+ unicodeRange: "unicode-range",
1162
+ unitsPerEm: "units-per-em",
1163
+ vAlphabetic: "v-alphabetic",
1164
+ vHanging: "v-hanging",
1165
+ vIdeographic: "v-ideographic",
1166
+ vMathematical: "v-mathematical",
1167
+ vectorEffect: "vector-effect",
1168
+ vertAdvY: "vert-adv-y",
1169
+ vertOriginX: "vert-origin-x",
1170
+ vertOriginY: "vert-origin-y",
1171
+ wordSpacing: "word-spacing",
1172
+ writingMode: "writing-mode",
1173
+ xHeight: "x-height",
1174
+ // These were camelcased in Tiny. Now lowercased in SVG 2
1175
+ playbackOrder: "playbackorder",
1176
+ timelineBegin: "timelinebegin"
1177
+ },
1178
+ properties: {
1179
+ about: commaOrSpaceSeparated,
1180
+ accentHeight: number,
1181
+ accumulate: null,
1182
+ additive: null,
1183
+ alignmentBaseline: null,
1184
+ alphabetic: number,
1185
+ amplitude: number,
1186
+ arabicForm: null,
1187
+ ascent: number,
1188
+ attributeName: null,
1189
+ attributeType: null,
1190
+ azimuth: number,
1191
+ bandwidth: null,
1192
+ baselineShift: null,
1193
+ baseFrequency: null,
1194
+ baseProfile: null,
1195
+ bbox: null,
1196
+ begin: null,
1197
+ bias: number,
1198
+ by: null,
1199
+ calcMode: null,
1200
+ capHeight: number,
1201
+ className: spaceSeparated,
1202
+ clip: null,
1203
+ clipPath: null,
1204
+ clipPathUnits: null,
1205
+ clipRule: null,
1206
+ color: null,
1207
+ colorInterpolation: null,
1208
+ colorInterpolationFilters: null,
1209
+ colorProfile: null,
1210
+ colorRendering: null,
1211
+ content: null,
1212
+ contentScriptType: null,
1213
+ contentStyleType: null,
1214
+ crossOrigin: null,
1215
+ cursor: null,
1216
+ cx: null,
1217
+ cy: null,
1218
+ d: null,
1219
+ dataType: null,
1220
+ defaultAction: null,
1221
+ descent: number,
1222
+ diffuseConstant: number,
1223
+ direction: null,
1224
+ display: null,
1225
+ dur: null,
1226
+ divisor: number,
1227
+ dominantBaseline: null,
1228
+ download: boolean,
1229
+ dx: null,
1230
+ dy: null,
1231
+ edgeMode: null,
1232
+ editable: null,
1233
+ elevation: number,
1234
+ enableBackground: null,
1235
+ end: null,
1236
+ event: null,
1237
+ exponent: number,
1238
+ externalResourcesRequired: null,
1239
+ fill: null,
1240
+ fillOpacity: number,
1241
+ fillRule: null,
1242
+ filter: null,
1243
+ filterRes: null,
1244
+ filterUnits: null,
1245
+ floodColor: null,
1246
+ floodOpacity: null,
1247
+ focusable: null,
1248
+ focusHighlight: null,
1249
+ fontFamily: null,
1250
+ fontSize: null,
1251
+ fontSizeAdjust: null,
1252
+ fontStretch: null,
1253
+ fontStyle: null,
1254
+ fontVariant: null,
1255
+ fontWeight: null,
1256
+ format: null,
1257
+ fr: null,
1258
+ from: null,
1259
+ fx: null,
1260
+ fy: null,
1261
+ g1: commaSeparated,
1262
+ g2: commaSeparated,
1263
+ glyphName: commaSeparated,
1264
+ glyphOrientationHorizontal: null,
1265
+ glyphOrientationVertical: null,
1266
+ glyphRef: null,
1267
+ gradientTransform: null,
1268
+ gradientUnits: null,
1269
+ handler: null,
1270
+ hanging: number,
1271
+ hatchContentUnits: null,
1272
+ hatchUnits: null,
1273
+ height: null,
1274
+ href: null,
1275
+ hrefLang: null,
1276
+ horizAdvX: number,
1277
+ horizOriginX: number,
1278
+ horizOriginY: number,
1279
+ id: null,
1280
+ ideographic: number,
1281
+ imageRendering: null,
1282
+ initialVisibility: null,
1283
+ in: null,
1284
+ in2: null,
1285
+ intercept: number,
1286
+ k: number,
1287
+ k1: number,
1288
+ k2: number,
1289
+ k3: number,
1290
+ k4: number,
1291
+ kernelMatrix: commaOrSpaceSeparated,
1292
+ kernelUnitLength: null,
1293
+ keyPoints: null,
1294
+ // SEMI_COLON_SEPARATED
1295
+ keySplines: null,
1296
+ // SEMI_COLON_SEPARATED
1297
+ keyTimes: null,
1298
+ // SEMI_COLON_SEPARATED
1299
+ kerning: null,
1300
+ lang: null,
1301
+ lengthAdjust: null,
1302
+ letterSpacing: null,
1303
+ lightingColor: null,
1304
+ limitingConeAngle: number,
1305
+ local: null,
1306
+ markerEnd: null,
1307
+ markerMid: null,
1308
+ markerStart: null,
1309
+ markerHeight: null,
1310
+ markerUnits: null,
1311
+ markerWidth: null,
1312
+ mask: null,
1313
+ maskContentUnits: null,
1314
+ maskType: null,
1315
+ maskUnits: null,
1316
+ mathematical: null,
1317
+ max: null,
1318
+ media: null,
1319
+ mediaCharacterEncoding: null,
1320
+ mediaContentEncodings: null,
1321
+ mediaSize: number,
1322
+ mediaTime: null,
1323
+ method: null,
1324
+ min: null,
1325
+ mode: null,
1326
+ name: null,
1327
+ navDown: null,
1328
+ navDownLeft: null,
1329
+ navDownRight: null,
1330
+ navLeft: null,
1331
+ navNext: null,
1332
+ navPrev: null,
1333
+ navRight: null,
1334
+ navUp: null,
1335
+ navUpLeft: null,
1336
+ navUpRight: null,
1337
+ numOctaves: null,
1338
+ observer: null,
1339
+ offset: null,
1340
+ onAbort: null,
1341
+ onActivate: null,
1342
+ onAfterPrint: null,
1343
+ onBeforePrint: null,
1344
+ onBegin: null,
1345
+ onCancel: null,
1346
+ onCanPlay: null,
1347
+ onCanPlayThrough: null,
1348
+ onChange: null,
1349
+ onClick: null,
1350
+ onClose: null,
1351
+ onCopy: null,
1352
+ onCueChange: null,
1353
+ onCut: null,
1354
+ onDblClick: null,
1355
+ onDrag: null,
1356
+ onDragEnd: null,
1357
+ onDragEnter: null,
1358
+ onDragExit: null,
1359
+ onDragLeave: null,
1360
+ onDragOver: null,
1361
+ onDragStart: null,
1362
+ onDrop: null,
1363
+ onDurationChange: null,
1364
+ onEmptied: null,
1365
+ onEnd: null,
1366
+ onEnded: null,
1367
+ onError: null,
1368
+ onFocus: null,
1369
+ onFocusIn: null,
1370
+ onFocusOut: null,
1371
+ onHashChange: null,
1372
+ onInput: null,
1373
+ onInvalid: null,
1374
+ onKeyDown: null,
1375
+ onKeyPress: null,
1376
+ onKeyUp: null,
1377
+ onLoad: null,
1378
+ onLoadedData: null,
1379
+ onLoadedMetadata: null,
1380
+ onLoadStart: null,
1381
+ onMessage: null,
1382
+ onMouseDown: null,
1383
+ onMouseEnter: null,
1384
+ onMouseLeave: null,
1385
+ onMouseMove: null,
1386
+ onMouseOut: null,
1387
+ onMouseOver: null,
1388
+ onMouseUp: null,
1389
+ onMouseWheel: null,
1390
+ onOffline: null,
1391
+ onOnline: null,
1392
+ onPageHide: null,
1393
+ onPageShow: null,
1394
+ onPaste: null,
1395
+ onPause: null,
1396
+ onPlay: null,
1397
+ onPlaying: null,
1398
+ onPopState: null,
1399
+ onProgress: null,
1400
+ onRateChange: null,
1401
+ onRepeat: null,
1402
+ onReset: null,
1403
+ onResize: null,
1404
+ onScroll: null,
1405
+ onSeeked: null,
1406
+ onSeeking: null,
1407
+ onSelect: null,
1408
+ onShow: null,
1409
+ onStalled: null,
1410
+ onStorage: null,
1411
+ onSubmit: null,
1412
+ onSuspend: null,
1413
+ onTimeUpdate: null,
1414
+ onToggle: null,
1415
+ onUnload: null,
1416
+ onVolumeChange: null,
1417
+ onWaiting: null,
1418
+ onZoom: null,
1419
+ opacity: null,
1420
+ operator: null,
1421
+ order: null,
1422
+ orient: null,
1423
+ orientation: null,
1424
+ origin: null,
1425
+ overflow: null,
1426
+ overlay: null,
1427
+ overlinePosition: number,
1428
+ overlineThickness: number,
1429
+ paintOrder: null,
1430
+ panose1: null,
1431
+ path: null,
1432
+ pathLength: number,
1433
+ patternContentUnits: null,
1434
+ patternTransform: null,
1435
+ patternUnits: null,
1436
+ phase: null,
1437
+ ping: spaceSeparated,
1438
+ pitch: null,
1439
+ playbackOrder: null,
1440
+ pointerEvents: null,
1441
+ points: null,
1442
+ pointsAtX: number,
1443
+ pointsAtY: number,
1444
+ pointsAtZ: number,
1445
+ preserveAlpha: null,
1446
+ preserveAspectRatio: null,
1447
+ primitiveUnits: null,
1448
+ propagate: null,
1449
+ property: commaOrSpaceSeparated,
1450
+ r: null,
1451
+ radius: null,
1452
+ referrerPolicy: null,
1453
+ refX: null,
1454
+ refY: null,
1455
+ rel: commaOrSpaceSeparated,
1456
+ rev: commaOrSpaceSeparated,
1457
+ renderingIntent: null,
1458
+ repeatCount: null,
1459
+ repeatDur: null,
1460
+ requiredExtensions: commaOrSpaceSeparated,
1461
+ requiredFeatures: commaOrSpaceSeparated,
1462
+ requiredFonts: commaOrSpaceSeparated,
1463
+ requiredFormats: commaOrSpaceSeparated,
1464
+ resource: null,
1465
+ restart: null,
1466
+ result: null,
1467
+ rotate: null,
1468
+ rx: null,
1469
+ ry: null,
1470
+ scale: null,
1471
+ seed: null,
1472
+ shapeRendering: null,
1473
+ side: null,
1474
+ slope: null,
1475
+ snapshotTime: null,
1476
+ specularConstant: number,
1477
+ specularExponent: number,
1478
+ spreadMethod: null,
1479
+ spacing: null,
1480
+ startOffset: null,
1481
+ stdDeviation: null,
1482
+ stemh: null,
1483
+ stemv: null,
1484
+ stitchTiles: null,
1485
+ stopColor: null,
1486
+ stopOpacity: null,
1487
+ strikethroughPosition: number,
1488
+ strikethroughThickness: number,
1489
+ string: null,
1490
+ stroke: null,
1491
+ strokeDashArray: commaOrSpaceSeparated,
1492
+ strokeDashOffset: null,
1493
+ strokeLineCap: null,
1494
+ strokeLineJoin: null,
1495
+ strokeMiterLimit: number,
1496
+ strokeOpacity: number,
1497
+ strokeWidth: null,
1498
+ style: null,
1499
+ surfaceScale: number,
1500
+ syncBehavior: null,
1501
+ syncBehaviorDefault: null,
1502
+ syncMaster: null,
1503
+ syncTolerance: null,
1504
+ syncToleranceDefault: null,
1505
+ systemLanguage: commaOrSpaceSeparated,
1506
+ tabIndex: number,
1507
+ tableValues: null,
1508
+ target: null,
1509
+ targetX: number,
1510
+ targetY: number,
1511
+ textAnchor: null,
1512
+ textDecoration: null,
1513
+ textRendering: null,
1514
+ textLength: null,
1515
+ timelineBegin: null,
1516
+ title: null,
1517
+ transformBehavior: null,
1518
+ type: null,
1519
+ typeOf: commaOrSpaceSeparated,
1520
+ to: null,
1521
+ transform: null,
1522
+ transformOrigin: null,
1523
+ u1: null,
1524
+ u2: null,
1525
+ underlinePosition: number,
1526
+ underlineThickness: number,
1527
+ unicode: null,
1528
+ unicodeBidi: null,
1529
+ unicodeRange: null,
1530
+ unitsPerEm: number,
1531
+ values: null,
1532
+ vAlphabetic: number,
1533
+ vMathematical: number,
1534
+ vectorEffect: null,
1535
+ vHanging: number,
1536
+ vIdeographic: number,
1537
+ version: null,
1538
+ vertAdvY: number,
1539
+ vertOriginX: number,
1540
+ vertOriginY: number,
1541
+ viewBox: null,
1542
+ viewTarget: null,
1543
+ visibility: null,
1544
+ width: null,
1545
+ widths: null,
1546
+ wordSpacing: null,
1547
+ writingMode: null,
1548
+ x: null,
1549
+ x1: null,
1550
+ x2: null,
1551
+ xChannelSelector: null,
1552
+ xHeight: number,
1553
+ y: null,
1554
+ y1: null,
1555
+ y2: null,
1556
+ yChannelSelector: null,
1557
+ z: null,
1558
+ zoomAndPan: null
1559
+ },
1560
+ space: "svg",
1561
+ transform: caseSensitiveTransform
1562
+ });
1563
+ var xlink = create({
1564
+ properties: {
1565
+ xLinkActuate: null,
1566
+ xLinkArcRole: null,
1567
+ xLinkHref: null,
1568
+ xLinkRole: null,
1569
+ xLinkShow: null,
1570
+ xLinkTitle: null,
1571
+ xLinkType: null
1572
+ },
1573
+ space: "xlink",
1574
+ transform(_, property) {
1575
+ return "xlink:" + property.slice(5).toLowerCase();
1576
+ }
1577
+ });
1578
+ var xmlns = create({
1579
+ attributes: { xmlnsxlink: "xmlns:xlink" },
1580
+ properties: { xmlnsXLink: null, xmlns: null },
1581
+ space: "xmlns",
1582
+ transform: caseInsensitiveTransform
1583
+ });
1584
+ var xml = create({
1585
+ properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
1586
+ space: "xml",
1587
+ transform(_, property) {
1588
+ return "xml:" + property.slice(3).toLowerCase();
1589
+ }
1590
+ });
1591
+ merge([aria, html, xlink, xmlns, xml], "html");
1592
+ merge([aria, svg, xlink, xmlns, xml], "svg");
1593
+ __toESM(require_cjs3());
1594
+ function stringifyPosition(value) {
1595
+ if (!value || typeof value !== "object") {
1596
+ return "";
1597
+ }
1598
+ if ("position" in value || "type" in value) {
1599
+ return position2(value.position);
1600
+ }
1601
+ if ("start" in value || "end" in value) {
1602
+ return position2(value);
1603
+ }
1604
+ if ("line" in value || "column" in value) {
1605
+ return point2(value);
1606
+ }
1607
+ return "";
1608
+ }
1609
+ function point2(point3) {
1610
+ return index(point3 && point3.line) + ":" + index(point3 && point3.column);
1611
+ }
1612
+ function position2(pos) {
1613
+ return point2(pos && pos.start) + "-" + point2(pos && pos.end);
1614
+ }
1615
+ function index(value) {
1616
+ return value && typeof value === "number" ? value : 1;
1617
+ }
1618
+ var VFileMessage = class extends Error {
1619
+ /**
1620
+ * Create a message for `reason`.
1621
+ *
1622
+ * > 🪦 **Note**: also has obsolete signatures.
1623
+ *
1624
+ * @overload
1625
+ * @param {string} reason
1626
+ * @param {Options | null | undefined} [options]
1627
+ * @returns
1628
+ *
1629
+ * @overload
1630
+ * @param {string} reason
1631
+ * @param {Node | NodeLike | null | undefined} parent
1632
+ * @param {string | null | undefined} [origin]
1633
+ * @returns
1634
+ *
1635
+ * @overload
1636
+ * @param {string} reason
1637
+ * @param {Point | Position | null | undefined} place
1638
+ * @param {string | null | undefined} [origin]
1639
+ * @returns
1640
+ *
1641
+ * @overload
1642
+ * @param {string} reason
1643
+ * @param {string | null | undefined} [origin]
1644
+ * @returns
1645
+ *
1646
+ * @overload
1647
+ * @param {Error | VFileMessage} cause
1648
+ * @param {Node | NodeLike | null | undefined} parent
1649
+ * @param {string | null | undefined} [origin]
1650
+ * @returns
1651
+ *
1652
+ * @overload
1653
+ * @param {Error | VFileMessage} cause
1654
+ * @param {Point | Position | null | undefined} place
1655
+ * @param {string | null | undefined} [origin]
1656
+ * @returns
1657
+ *
1658
+ * @overload
1659
+ * @param {Error | VFileMessage} cause
1660
+ * @param {string | null | undefined} [origin]
1661
+ * @returns
1662
+ *
1663
+ * @param {Error | VFileMessage | string} causeOrReason
1664
+ * Reason for message, should use markdown.
1665
+ * @param {Node | NodeLike | Options | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
1666
+ * Configuration (optional).
1667
+ * @param {string | null | undefined} [origin]
1668
+ * Place in code where the message originates (example:
1669
+ * `'my-package:my-rule'` or `'my-rule'`).
1670
+ * @returns
1671
+ * Instance of `VFileMessage`.
1672
+ */
1673
+ // eslint-disable-next-line complexity
1674
+ constructor(causeOrReason, optionsOrParentOrPlace, origin) {
1675
+ super();
1676
+ if (typeof optionsOrParentOrPlace === "string") {
1677
+ origin = optionsOrParentOrPlace;
1678
+ optionsOrParentOrPlace = void 0;
1679
+ }
1680
+ let reason = "";
1681
+ let options = {};
1682
+ let legacyCause = false;
1683
+ if (optionsOrParentOrPlace) {
1684
+ if ("line" in optionsOrParentOrPlace && "column" in optionsOrParentOrPlace) {
1685
+ options = { place: optionsOrParentOrPlace };
1686
+ } else if ("start" in optionsOrParentOrPlace && "end" in optionsOrParentOrPlace) {
1687
+ options = { place: optionsOrParentOrPlace };
1688
+ } else if ("type" in optionsOrParentOrPlace) {
1689
+ options = {
1690
+ ancestors: [optionsOrParentOrPlace],
1691
+ place: optionsOrParentOrPlace.position
1692
+ };
1693
+ } else {
1694
+ options = { ...optionsOrParentOrPlace };
1695
+ }
1696
+ }
1697
+ if (typeof causeOrReason === "string") {
1698
+ reason = causeOrReason;
1699
+ } else if (!options.cause && causeOrReason) {
1700
+ legacyCause = true;
1701
+ reason = causeOrReason.message;
1702
+ options.cause = causeOrReason;
1703
+ }
1704
+ if (!options.ruleId && !options.source && typeof origin === "string") {
1705
+ const index2 = origin.indexOf(":");
1706
+ if (index2 === -1) {
1707
+ options.ruleId = origin;
1708
+ } else {
1709
+ options.source = origin.slice(0, index2);
1710
+ options.ruleId = origin.slice(index2 + 1);
1711
+ }
1712
+ }
1713
+ if (!options.place && options.ancestors && options.ancestors) {
1714
+ const parent = options.ancestors[options.ancestors.length - 1];
1715
+ if (parent) {
1716
+ options.place = parent.position;
1717
+ }
1718
+ }
1719
+ const start2 = options.place && "start" in options.place ? options.place.start : options.place;
1720
+ this.ancestors = options.ancestors || void 0;
1721
+ this.cause = options.cause || void 0;
1722
+ this.column = start2 ? start2.column : void 0;
1723
+ this.fatal = void 0;
1724
+ this.file = "";
1725
+ this.message = reason;
1726
+ this.line = start2 ? start2.line : void 0;
1727
+ this.name = stringifyPosition(options.place) || "1:1";
1728
+ this.place = options.place || void 0;
1729
+ this.reason = this.message;
1730
+ this.ruleId = options.ruleId || void 0;
1731
+ this.source = options.source || void 0;
1732
+ this.stack = legacyCause && options.cause && typeof options.cause.stack === "string" ? options.cause.stack : "";
1733
+ this.actual = void 0;
1734
+ this.expected = void 0;
1735
+ this.note = void 0;
1736
+ this.url = void 0;
1737
+ }
1738
+ };
1739
+ VFileMessage.prototype.file = "";
1740
+ VFileMessage.prototype.name = "";
1741
+ VFileMessage.prototype.reason = "";
1742
+ VFileMessage.prototype.message = "";
1743
+ VFileMessage.prototype.stack = "";
1744
+ VFileMessage.prototype.column = void 0;
1745
+ VFileMessage.prototype.line = void 0;
1746
+ VFileMessage.prototype.ancestors = void 0;
1747
+ VFileMessage.prototype.cause = void 0;
1748
+ VFileMessage.prototype.fatal = void 0;
1749
+ VFileMessage.prototype.place = void 0;
1750
+ VFileMessage.prototype.ruleId = void 0;
1751
+ VFileMessage.prototype.source = void 0;
107
1752
 
108
1753
  // src/util/fileTrie.ts
109
1754
  var FileTrieNode = class _FileTrieNode {
@@ -275,9 +1920,9 @@ var Breadcrumbs_default = ((opts) => {
275
1920
  if (!options.showCurrentPage) {
276
1921
  crumbs.pop();
277
1922
  }
278
- return /* @__PURE__ */ jsx("nav", { class: classNames(displayClass, "breadcrumb-container"), "aria-label": "breadcrumbs", children: crumbs.map((crumb, index) => /* @__PURE__ */ jsxs("div", { class: "breadcrumb-element", children: [
1923
+ return /* @__PURE__ */ jsx("nav", { class: classNames(displayClass, "breadcrumb-container"), "aria-label": "breadcrumbs", children: crumbs.map((crumb, index2) => /* @__PURE__ */ jsxs("div", { class: "breadcrumb-element", children: [
279
1924
  /* @__PURE__ */ jsx("a", { href: crumb.path, children: crumb.displayName }),
280
- index !== crumbs.length - 1 && /* @__PURE__ */ jsx("p", { children: ` ${options.spacerSymbol} ` })
1925
+ index2 !== crumbs.length - 1 && /* @__PURE__ */ jsx("p", { children: ` ${options.spacerSymbol} ` })
281
1926
  ] })) });
282
1927
  };
283
1928
  Breadcrumbs.css = breadcrumbs_default;