UNPKG

@capitol.ai/summary

Version:

Library of JS components from Capitol AI

1,933 lines (1,932 loc) 195 kB
import { j as Je } from "./index-Ct7u2Fht.js"; import { useState as $n, useEffect as wr } from "react"; function Lt(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } function Sr(e, n) { const t = {}; return (e[e.length - 1] === "" ? [...e, ""] : e).join( (t.padRight ? " " : "") + "," + (t.padLeft === !1 ? "" : " ") ).trim(); } const Er = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Cr = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Ir = {}; function Wn(e, n) { return (Ir.jsx ? Cr : Er).test(e); } const Tr = /[ \t\n\f\r]/g; function Pr(e) { return typeof e == "object" ? e.type === "text" ? Yn(e.value) : !1 : Yn(e); } function Yn(e) { return e.replace(Tr, "") === ""; } class je { /** * @param {SchemaType['property']} property * Property. * @param {SchemaType['normal']} normal * Normal. * @param {Space | undefined} [space] * Space. * @returns * Schema. */ constructor(n, t, r) { this.normal = t, this.property = n, r && (this.space = r); } } je.prototype.normal = {}; je.prototype.property = {}; je.prototype.space = void 0; function vt(e, n) { const t = {}, r = {}; for (const i of e) Object.assign(t, i.property), Object.assign(r, i.normal); return new je(t, r, n); } function hn(e) { return e.toLowerCase(); } class J { /** * @param {string} property * Property. * @param {string} attribute * Attribute. * @returns * Info. */ constructor(n, t) { this.attribute = t, this.property = n; } } J.prototype.attribute = ""; J.prototype.booleanish = !1; J.prototype.boolean = !1; J.prototype.commaOrSpaceSeparated = !1; J.prototype.commaSeparated = !1; J.prototype.defined = !1; J.prototype.mustUseProperty = !1; J.prototype.number = !1; J.prototype.overloadedBoolean = !1; J.prototype.property = ""; J.prototype.spaceSeparated = !1; J.prototype.space = void 0; let Ar = 0; const O = ke(), $ = ke(), mn = ke(), x = ke(), U = ke(), Ie = ke(), ee = ke(); function ke() { return 2 ** ++Ar; } const dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: O, booleanish: $, commaOrSpaceSeparated: ee, commaSeparated: Ie, number: x, overloadedBoolean: mn, spaceSeparated: U }, Symbol.toStringTag, { value: "Module" })), Ze = ( /** @type {ReadonlyArray<keyof typeof types>} */ Object.keys(dn) ); class En extends J { /** * @constructor * @param {string} property * Property. * @param {string} attribute * Attribute. * @param {number | null | undefined} [mask] * Mask. * @param {Space | undefined} [space] * Space. * @returns * Info. */ constructor(n, t, r, i) { let l = -1; if (super(n, t), Xn(this, "space", i), typeof r == "number") for (; ++l < Ze.length; ) { const o = Ze[l]; Xn(this, Ze[l], (r & dn[o]) === dn[o]); } } } En.prototype.defined = !0; function Xn(e, n, t) { t && (e[n] = t); } function Pe(e) { const n = {}, t = {}; for (const [r, i] of Object.entries(e.properties)) { const l = new En( r, e.transform(e.attributes || {}, r), i, e.space ); e.mustUseProperty && e.mustUseProperty.includes(r) && (l.mustUseProperty = !0), n[r] = l, t[hn(r)] = r, t[hn(l.attribute)] = r; } return new je(n, t, e.space); } const Dt = Pe({ properties: { ariaActiveDescendant: null, ariaAtomic: $, ariaAutoComplete: null, ariaBusy: $, ariaChecked: $, ariaColCount: x, ariaColIndex: x, ariaColSpan: x, ariaControls: U, ariaCurrent: null, ariaDescribedBy: U, ariaDetails: null, ariaDisabled: $, ariaDropEffect: U, ariaErrorMessage: null, ariaExpanded: $, ariaFlowTo: U, ariaGrabbed: $, ariaHasPopup: null, ariaHidden: $, ariaInvalid: null, ariaKeyShortcuts: null, ariaLabel: null, ariaLabelledBy: U, ariaLevel: x, ariaLive: null, ariaModal: $, ariaMultiLine: $, ariaMultiSelectable: $, ariaOrientation: null, ariaOwns: U, ariaPlaceholder: null, ariaPosInSet: x, ariaPressed: $, ariaReadOnly: $, ariaRelevant: null, ariaRequired: $, ariaRoleDescription: U, ariaRowCount: x, ariaRowIndex: x, ariaRowSpan: x, ariaSelected: $, ariaSetSize: x, ariaSort: null, ariaValueMax: x, ariaValueMin: x, ariaValueNow: x, ariaValueText: null, role: null }, transform(e, n) { return n === "role" ? n : "aria-" + n.slice(4).toLowerCase(); } }); function Ot(e, n) { return n in e ? e[n] : n; } function _t(e, n) { return Ot(e, n.toLowerCase()); } const zr = Pe({ attributes: { acceptcharset: "accept-charset", classname: "class", htmlfor: "for", httpequiv: "http-equiv" }, mustUseProperty: ["checked", "multiple", "muted", "selected"], properties: { // Standard Properties. abbr: null, accept: Ie, acceptCharset: U, accessKey: U, action: null, allow: null, allowFullScreen: O, allowPaymentRequest: O, allowUserMedia: O, alt: null, as: null, async: O, autoCapitalize: null, autoComplete: U, autoFocus: O, autoPlay: O, blocking: U, capture: null, charSet: null, checked: O, cite: null, className: U, cols: x, colSpan: null, content: null, contentEditable: $, controls: O, controlsList: U, coords: x | Ie, crossOrigin: null, data: null, dateTime: null, decoding: null, default: O, defer: O, dir: null, dirName: null, disabled: O, download: mn, draggable: $, encType: null, enterKeyHint: null, fetchPriority: null, form: null, formAction: null, formEncType: null, formMethod: null, formNoValidate: O, formTarget: null, headers: U, height: x, hidden: mn, high: x, href: null, hrefLang: null, htmlFor: U, httpEquiv: U, id: null, imageSizes: null, imageSrcSet: null, inert: O, inputMode: null, integrity: null, is: null, isMap: O, itemId: null, itemProp: U, itemRef: U, itemScope: O, itemType: U, kind: null, label: null, lang: null, language: null, list: null, loading: null, loop: O, low: x, manifest: null, max: null, maxLength: x, media: null, method: null, min: null, minLength: x, multiple: O, muted: O, name: null, nonce: null, noModule: O, noValidate: O, onAbort: null, onAfterPrint: null, onAuxClick: null, onBeforeMatch: null, onBeforePrint: null, onBeforeToggle: null, onBeforeUnload: null, onBlur: null, onCancel: null, onCanPlay: null, onCanPlayThrough: null, onChange: null, onClick: null, onClose: null, onContextLost: null, onContextMenu: null, onContextRestored: null, onCopy: null, onCueChange: null, onCut: null, onDblClick: null, onDrag: null, onDragEnd: null, onDragEnter: null, onDragExit: null, onDragLeave: null, onDragOver: null, onDragStart: null, onDrop: null, onDurationChange: null, onEmptied: null, onEnded: null, onError: null, onFocus: null, onFormData: null, onHashChange: null, onInput: null, onInvalid: null, onKeyDown: null, onKeyPress: null, onKeyUp: null, onLanguageChange: null, onLoad: null, onLoadedData: null, onLoadedMetadata: null, onLoadEnd: null, onLoadStart: null, onMessage: null, onMessageError: null, onMouseDown: null, onMouseEnter: null, onMouseLeave: null, onMouseMove: null, onMouseOut: null, onMouseOver: null, onMouseUp: null, onOffline: null, onOnline: null, onPageHide: null, onPageShow: null, onPaste: null, onPause: null, onPlay: null, onPlaying: null, onPopState: null, onProgress: null, onRateChange: null, onRejectionHandled: null, onReset: null, onResize: null, onScroll: null, onScrollEnd: null, onSecurityPolicyViolation: null, onSeeked: null, onSeeking: null, onSelect: null, onSlotChange: null, onStalled: null, onStorage: null, onSubmit: null, onSuspend: null, onTimeUpdate: null, onToggle: null, onUnhandledRejection: null, onUnload: null, onVolumeChange: null, onWaiting: null, onWheel: null, open: O, optimum: x, pattern: null, ping: U, placeholder: null, playsInline: O, popover: null, popoverTarget: null, popoverTargetAction: null, poster: null, preload: null, readOnly: O, referrerPolicy: null, rel: U, required: O, reversed: O, rows: x, rowSpan: x, sandbox: U, scope: null, scoped: O, seamless: O, selected: O, shadowRootClonable: O, shadowRootDelegatesFocus: O, shadowRootMode: null, shape: null, size: x, sizes: null, slot: null, span: x, spellCheck: $, src: null, srcDoc: null, srcLang: null, srcSet: null, start: x, step: null, style: null, tabIndex: x, target: null, title: null, translate: null, type: null, typeMustMatch: O, useMap: null, value: $, width: x, wrap: null, writingSuggestions: null, // Legacy. // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis align: null, // Several. Use CSS `text-align` instead, aLink: null, // `<body>`. Use CSS `a:active {color}` instead archive: U, // `<object>`. List of URIs to archives axis: null, // `<td>` and `<th>`. Use `scope` on `<th>` background: null, // `<body>`. Use CSS `background-image` instead bgColor: null, // `<body>` and table elements. Use CSS `background-color` instead border: x, // `<table>`. Use CSS `border-width` instead, borderColor: null, // `<table>`. Use CSS `border-color` instead, bottomMargin: x, // `<body>` cellPadding: null, // `<table>` cellSpacing: null, // `<table>` char: null, // Several table elements. When `align=char`, sets the character to align on charOff: null, // Several table elements. When `char`, offsets the alignment classId: null, // `<object>` clear: null, // `<br>`. Use CSS `clear` instead code: null, // `<object>` codeBase: null, // `<object>` codeType: null, // `<object>` color: null, // `<font>` and `<hr>`. Use CSS instead compact: O, // Lists. Use CSS to reduce space between items instead declare: O, // `<object>` event: null, // `<script>` face: null, // `<font>`. Use CSS instead frame: null, // `<table>` frameBorder: null, // `<iframe>`. Use CSS `border` instead hSpace: x, // `<img>` and `<object>` leftMargin: x, // `<body>` link: null, // `<body>`. Use CSS `a:link {color: *}` instead longDesc: null, // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>` lowSrc: null, // `<img>`. Use a `<picture>` marginHeight: x, // `<body>` marginWidth: x, // `<body>` noResize: O, // `<frame>` noHref: O, // `<area>`. Use no href instead of an explicit `nohref` noShade: O, // `<hr>`. Use background-color and height instead of borders noWrap: O, // `<td>` and `<th>` object: null, // `<applet>` profile: null, // `<head>` prompt: null, // `<isindex>` rev: null, // `<link>` rightMargin: x, // `<body>` rules: null, // `<table>` scheme: null, // `<meta>` scrolling: $, // `<frame>`. Use overflow in the child context standby: null, // `<object>` summary: null, // `<table>` text: null, // `<body>`. Use CSS `color` instead topMargin: x, // `<body>` valueType: null, // `<param>` version: null, // `<html>`. Use a doctype. vAlign: null, // Several. Use CSS `vertical-align` instead vLink: null, // `<body>`. Use CSS `a:visited {color}` instead vSpace: x, // `<img>` and `<object>` // Non-standard Properties. allowTransparency: null, autoCorrect: null, autoSave: null, disablePictureInPicture: O, disableRemotePlayback: O, prefix: null, property: null, results: x, security: null, unselectable: null }, space: "html", transform: _t }), Lr = Pe({ attributes: { accentHeight: "accent-height", alignmentBaseline: "alignment-baseline", arabicForm: "arabic-form", baselineShift: "baseline-shift", capHeight: "cap-height", className: "class", clipPath: "clip-path", clipRule: "clip-rule", colorInterpolation: "color-interpolation", colorInterpolationFilters: "color-interpolation-filters", colorProfile: "color-profile", colorRendering: "color-rendering", crossOrigin: "crossorigin", dataType: "datatype", dominantBaseline: "dominant-baseline", enableBackground: "enable-background", fillOpacity: "fill-opacity", fillRule: "fill-rule", floodColor: "flood-color", floodOpacity: "flood-opacity", fontFamily: "font-family", fontSize: "font-size", fontSizeAdjust: "font-size-adjust", fontStretch: "font-stretch", fontStyle: "font-style", fontVariant: "font-variant", fontWeight: "font-weight", glyphName: "glyph-name", glyphOrientationHorizontal: "glyph-orientation-horizontal", glyphOrientationVertical: "glyph-orientation-vertical", hrefLang: "hreflang", horizAdvX: "horiz-adv-x", horizOriginX: "horiz-origin-x", horizOriginY: "horiz-origin-y", imageRendering: "image-rendering", letterSpacing: "letter-spacing", lightingColor: "lighting-color", markerEnd: "marker-end", markerMid: "marker-mid", markerStart: "marker-start", navDown: "nav-down", navDownLeft: "nav-down-left", navDownRight: "nav-down-right", navLeft: "nav-left", navNext: "nav-next", navPrev: "nav-prev", navRight: "nav-right", navUp: "nav-up", navUpLeft: "nav-up-left", navUpRight: "nav-up-right", onAbort: "onabort", onActivate: "onactivate", onAfterPrint: "onafterprint", onBeforePrint: "onbeforeprint", onBegin: "onbegin", onCancel: "oncancel", onCanPlay: "oncanplay", onCanPlayThrough: "oncanplaythrough", onChange: "onchange", onClick: "onclick", onClose: "onclose", onCopy: "oncopy", onCueChange: "oncuechange", onCut: "oncut", onDblClick: "ondblclick", onDrag: "ondrag", onDragEnd: "ondragend", onDragEnter: "ondragenter", onDragExit: "ondragexit", onDragLeave: "ondragleave", onDragOver: "ondragover", onDragStart: "ondragstart", onDrop: "ondrop", onDurationChange: "ondurationchange", onEmptied: "onemptied", onEnd: "onend", onEnded: "onended", onError: "onerror", onFocus: "onfocus", onFocusIn: "onfocusin", onFocusOut: "onfocusout", onHashChange: "onhashchange", onInput: "oninput", onInvalid: "oninvalid", onKeyDown: "onkeydown", onKeyPress: "onkeypress", onKeyUp: "onkeyup", onLoad: "onload", onLoadedData: "onloadeddata", onLoadedMetadata: "onloadedmetadata", onLoadStart: "onloadstart", onMessage: "onmessage", onMouseDown: "onmousedown", onMouseEnter: "onmouseenter", onMouseLeave: "onmouseleave", onMouseMove: "onmousemove", onMouseOut: "onmouseout", onMouseOver: "onmouseover", onMouseUp: "onmouseup", onMouseWheel: "onmousewheel", onOffline: "onoffline", onOnline: "ononline", onPageHide: "onpagehide", onPageShow: "onpageshow", onPaste: "onpaste", onPause: "onpause", onPlay: "onplay", onPlaying: "onplaying", onPopState: "onpopstate", onProgress: "onprogress", onRateChange: "onratechange", onRepeat: "onrepeat", onReset: "onreset", onResize: "onresize", onScroll: "onscroll", onSeeked: "onseeked", onSeeking: "onseeking", onSelect: "onselect", onShow: "onshow", onStalled: "onstalled", onStorage: "onstorage", onSubmit: "onsubmit", onSuspend: "onsuspend", onTimeUpdate: "ontimeupdate", onToggle: "ontoggle", onUnload: "onunload", onVolumeChange: "onvolumechange", onWaiting: "onwaiting", onZoom: "onzoom", overlinePosition: "overline-position", overlineThickness: "overline-thickness", paintOrder: "paint-order", panose1: "panose-1", pointerEvents: "pointer-events", referrerPolicy: "referrerpolicy", renderingIntent: "rendering-intent", shapeRendering: "shape-rendering", stopColor: "stop-color", stopOpacity: "stop-opacity", strikethroughPosition: "strikethrough-position", strikethroughThickness: "strikethrough-thickness", strokeDashArray: "stroke-dasharray", strokeDashOffset: "stroke-dashoffset", strokeLineCap: "stroke-linecap", strokeLineJoin: "stroke-linejoin", strokeMiterLimit: "stroke-miterlimit", strokeOpacity: "stroke-opacity", strokeWidth: "stroke-width", tabIndex: "tabindex", textAnchor: "text-anchor", textDecoration: "text-decoration", textRendering: "text-rendering", transformOrigin: "transform-origin", typeOf: "typeof", underlinePosition: "underline-position", underlineThickness: "underline-thickness", unicodeBidi: "unicode-bidi", unicodeRange: "unicode-range", unitsPerEm: "units-per-em", vAlphabetic: "v-alphabetic", vHanging: "v-hanging", vIdeographic: "v-ideographic", vMathematical: "v-mathematical", vectorEffect: "vector-effect", vertAdvY: "vert-adv-y", vertOriginX: "vert-origin-x", vertOriginY: "vert-origin-y", wordSpacing: "word-spacing", writingMode: "writing-mode", xHeight: "x-height", // These were camelcased in Tiny. Now lowercased in SVG 2 playbackOrder: "playbackorder", timelineBegin: "timelinebegin" }, properties: { about: ee, accentHeight: x, accumulate: null, additive: null, alignmentBaseline: null, alphabetic: x, amplitude: x, arabicForm: null, ascent: x, attributeName: null, attributeType: null, azimuth: x, bandwidth: null, baselineShift: null, baseFrequency: null, baseProfile: null, bbox: null, begin: null, bias: x, by: null, calcMode: null, capHeight: x, className: U, clip: null, clipPath: null, clipPathUnits: null, clipRule: null, color: null, colorInterpolation: null, colorInterpolationFilters: null, colorProfile: null, colorRendering: null, content: null, contentScriptType: null, contentStyleType: null, crossOrigin: null, cursor: null, cx: null, cy: null, d: null, dataType: null, defaultAction: null, descent: x, diffuseConstant: x, direction: null, display: null, dur: null, divisor: x, dominantBaseline: null, download: O, dx: null, dy: null, edgeMode: null, editable: null, elevation: x, enableBackground: null, end: null, event: null, exponent: x, externalResourcesRequired: null, fill: null, fillOpacity: x, fillRule: null, filter: null, filterRes: null, filterUnits: null, floodColor: null, floodOpacity: null, focusable: null, focusHighlight: null, fontFamily: null, fontSize: null, fontSizeAdjust: null, fontStretch: null, fontStyle: null, fontVariant: null, fontWeight: null, format: null, fr: null, from: null, fx: null, fy: null, g1: Ie, g2: Ie, glyphName: Ie, glyphOrientationHorizontal: null, glyphOrientationVertical: null, glyphRef: null, gradientTransform: null, gradientUnits: null, handler: null, hanging: x, hatchContentUnits: null, hatchUnits: null, height: null, href: null, hrefLang: null, horizAdvX: x, horizOriginX: x, horizOriginY: x, id: null, ideographic: x, imageRendering: null, initialVisibility: null, in: null, in2: null, intercept: x, k: x, k1: x, k2: x, k3: x, k4: x, kernelMatrix: ee, kernelUnitLength: null, keyPoints: null, // SEMI_COLON_SEPARATED keySplines: null, // SEMI_COLON_SEPARATED keyTimes: null, // SEMI_COLON_SEPARATED kerning: null, lang: null, lengthAdjust: null, letterSpacing: null, lightingColor: null, limitingConeAngle: x, local: null, markerEnd: null, markerMid: null, markerStart: null, markerHeight: null, markerUnits: null, markerWidth: null, mask: null, maskContentUnits: null, maskUnits: null, mathematical: null, max: null, media: null, mediaCharacterEncoding: null, mediaContentEncodings: null, mediaSize: x, mediaTime: null, method: null, min: null, mode: null, name: null, navDown: null, navDownLeft: null, navDownRight: null, navLeft: null, navNext: null, navPrev: null, navRight: null, navUp: null, navUpLeft: null, navUpRight: null, numOctaves: null, observer: null, offset: null, onAbort: null, onActivate: null, onAfterPrint: null, onBeforePrint: null, onBegin: null, onCancel: null, onCanPlay: null, onCanPlayThrough: null, onChange: null, onClick: null, onClose: null, onCopy: null, onCueChange: null, onCut: null, onDblClick: null, onDrag: null, onDragEnd: null, onDragEnter: null, onDragExit: null, onDragLeave: null, onDragOver: null, onDragStart: null, onDrop: null, onDurationChange: null, onEmptied: null, onEnd: null, onEnded: null, onError: null, onFocus: null, onFocusIn: null, onFocusOut: null, onHashChange: null, onInput: null, onInvalid: null, onKeyDown: null, onKeyPress: null, onKeyUp: null, onLoad: null, onLoadedData: null, onLoadedMetadata: null, onLoadStart: null, onMessage: null, onMouseDown: null, onMouseEnter: null, onMouseLeave: null, onMouseMove: null, onMouseOut: null, onMouseOver: null, onMouseUp: null, onMouseWheel: null, onOffline: null, onOnline: null, onPageHide: null, onPageShow: null, onPaste: null, onPause: null, onPlay: null, onPlaying: null, onPopState: null, onProgress: null, onRateChange: null, onRepeat: null, onReset: null, onResize: null, onScroll: null, onSeeked: null, onSeeking: null, onSelect: null, onShow: null, onStalled: null, onStorage: null, onSubmit: null, onSuspend: null, onTimeUpdate: null, onToggle: null, onUnload: null, onVolumeChange: null, onWaiting: null, onZoom: null, opacity: null, operator: null, order: null, orient: null, orientation: null, origin: null, overflow: null, overlay: null, overlinePosition: x, overlineThickness: x, paintOrder: null, panose1: null, path: null, pathLength: x, patternContentUnits: null, patternTransform: null, patternUnits: null, phase: null, ping: U, pitch: null, playbackOrder: null, pointerEvents: null, points: null, pointsAtX: x, pointsAtY: x, pointsAtZ: x, preserveAlpha: null, preserveAspectRatio: null, primitiveUnits: null, propagate: null, property: ee, r: null, radius: null, referrerPolicy: null, refX: null, refY: null, rel: ee, rev: ee, renderingIntent: null, repeatCount: null, repeatDur: null, requiredExtensions: ee, requiredFeatures: ee, requiredFonts: ee, requiredFormats: ee, resource: null, restart: null, result: null, rotate: null, rx: null, ry: null, scale: null, seed: null, shapeRendering: null, side: null, slope: null, snapshotTime: null, specularConstant: x, specularExponent: x, spreadMethod: null, spacing: null, startOffset: null, stdDeviation: null, stemh: null, stemv: null, stitchTiles: null, stopColor: null, stopOpacity: null, strikethroughPosition: x, strikethroughThickness: x, string: null, stroke: null, strokeDashArray: ee, strokeDashOffset: null, strokeLineCap: null, strokeLineJoin: null, strokeMiterLimit: x, strokeOpacity: x, strokeWidth: null, style: null, surfaceScale: x, syncBehavior: null, syncBehaviorDefault: null, syncMaster: null, syncTolerance: null, syncToleranceDefault: null, systemLanguage: ee, tabIndex: x, tableValues: null, target: null, targetX: x, targetY: x, textAnchor: null, textDecoration: null, textRendering: null, textLength: null, timelineBegin: null, title: null, transformBehavior: null, type: null, typeOf: ee, to: null, transform: null, transformOrigin: null, u1: null, u2: null, underlinePosition: x, underlineThickness: x, unicode: null, unicodeBidi: null, unicodeRange: null, unitsPerEm: x, values: null, vAlphabetic: x, vMathematical: x, vectorEffect: null, vHanging: x, vIdeographic: x, version: null, vertAdvY: x, vertOriginX: x, vertOriginY: x, viewBox: null, viewTarget: null, visibility: null, width: null, widths: null, wordSpacing: null, writingMode: null, x: null, x1: null, x2: null, xChannelSelector: null, xHeight: x, y: null, y1: null, y2: null, yChannelSelector: null, z: null, zoomAndPan: null }, space: "svg", transform: Ot }), Nt = Pe({ properties: { xLinkActuate: null, xLinkArcRole: null, xLinkHref: null, xLinkRole: null, xLinkShow: null, xLinkTitle: null, xLinkType: null }, space: "xlink", transform(e, n) { return "xlink:" + n.slice(5).toLowerCase(); } }), Rt = Pe({ attributes: { xmlnsxlink: "xmlns:xlink" }, properties: { xmlnsXLink: null, xmlns: null }, space: "xmlns", transform: _t }), Ft = Pe({ properties: { xmlBase: null, xmlLang: null, xmlSpace: null }, space: "xml", transform(e, n) { return "xml:" + n.slice(3).toLowerCase(); } }), vr = { classId: "classID", dataType: "datatype", itemId: "itemID", strokeDashArray: "strokeDasharray", strokeDashOffset: "strokeDashoffset", strokeLineCap: "strokeLinecap", strokeLineJoin: "strokeLinejoin", strokeMiterLimit: "strokeMiterlimit", typeOf: "typeof", xLinkActuate: "xlinkActuate", xLinkArcRole: "xlinkArcrole", xLinkHref: "xlinkHref", xLinkRole: "xlinkRole", xLinkShow: "xlinkShow", xLinkTitle: "xlinkTitle", xLinkType: "xlinkType", xmlnsXLink: "xmlnsXlink" }, Dr = /[A-Z]/g, Qn = /-[a-z]/g, Or = /^data[-\w.:]+$/i; function _r(e, n) { const t = hn(n); let r = n, i = J; if (t in e.normal) return e.property[e.normal[t]]; if (t.length > 4 && t.slice(0, 4) === "data" && Or.test(n)) { if (n.charAt(4) === "-") { const l = n.slice(5).replace(Qn, Rr); r = "data" + l.charAt(0).toUpperCase() + l.slice(1); } else { const l = n.slice(4); if (!Qn.test(l)) { let o = l.replace(Dr, Nr); o.charAt(0) !== "-" && (o = "-" + o), n = "data" + o; } } i = En; } return new i(r, n); } function Nr(e) { return "-" + e.toLowerCase(); } function Rr(e) { return e.charAt(1).toUpperCase(); } const Fr = vt([Dt, zr, Nt, Rt, Ft], "html"), Cn = vt([Dt, Lr, Nt, Rt, Ft], "svg"); function Mr(e) { return e.join(" ").trim(); } var Ee = {}, en, Kn; function Br() { if (Kn) return en; Kn = 1; var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, n = /\n/g, t = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, l = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, o = /^[;\s]*/, u = /^\s+|\s+$/g, c = ` `, a = "/", s = "*", f = "", d = "comment", p = "declaration"; en = function(b, z) { if (typeof b != "string") throw new TypeError("First argument must be a string"); if (!b) return []; z = z || {}; var k = 1, A = 1; function E(T) { var C = T.match(n); C && (k += C.length); var v = T.lastIndexOf(c); A = ~v ? T.length - v : A + T.length; } function B() { var T = { line: k, column: A }; return function(C) { return C.position = new H(T), q(), C; }; } function H(T) { this.start = T, this.end = { line: k, column: A }, this.source = z.source; } H.prototype.content = b; function y(T) { var C = new Error( z.source + ":" + k + ":" + A + ": " + T ); if (C.reason = T, C.filename = z.source, C.line = k, C.column = A, C.source = b, !z.silent) throw C; } function N(T) { var C = T.exec(b); if (C) { var v = C[0]; return E(v), b = b.slice(v.length), C; } } function q() { N(t); } function F(T) { var C; for (T = T || []; C = M(); ) C !== !1 && T.push(C); return T; } function M() { var T = B(); if (!(a != b.charAt(0) || s != b.charAt(1))) { for (var C = 2; f != b.charAt(C) && (s != b.charAt(C) || a != b.charAt(C + 1)); ) ++C; if (C += 2, f === b.charAt(C - 1)) return y("End of comment missing"); var v = b.slice(2, C - 2); return A += 2, E(v), b = b.slice(C), A += 2, T({ type: d, comment: v }); } } function P() { var T = B(), C = N(r); if (C) { if (M(), !N(i)) return y("property missing ':'"); var v = N(l), W = T({ type: p, property: S(C[0].replace(e, f)), value: v ? S(v[0].replace(e, f)) : f }); return N(o), W; } } function I() { var T = []; F(T); for (var C; C = P(); ) C !== !1 && (T.push(C), F(T)); return T; } return q(), I(); }; function S(b) { return b ? b.replace(u, f) : f; } return en; } var Gn; function jr() { if (Gn) return Ee; Gn = 1; var e = Ee && Ee.__importDefault || function(r) { return r && r.__esModule ? r : { default: r }; }; Object.defineProperty(Ee, "__esModule", { value: !0 }), Ee.default = t; var n = e(Br()); function t(r, i) { var l = null; if (!r || typeof r != "string") return l; var o = (0, n.default)(r), u = typeof i == "function"; return o.forEach(function(c) { if (c.type === "declaration") { var a = c.property, s = c.value; u ? i(a, s, c) : s && (l = l || {}, l[a] = s); } }), l; } return Ee; } var De = {}, Jn; function Hr() { if (Jn) return De; Jn = 1, Object.defineProperty(De, "__esModule", { value: !0 }), De.camelCase = void 0; var e = /^--[a-zA-Z0-9_-]+$/, n = /-([a-z])/g, t = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, i = /^-(ms)-/, l = function(a) { return !a || t.test(a) || e.test(a); }, o = function(a, s) { return s.toUpperCase(); }, u = function(a, s) { return "".concat(s, "-"); }, c = function(a, s) { return s === void 0 && (s = {}), l(a) ? a : (a = a.toLowerCase(), s.reactCompat ? a = a.replace(i, u) : a = a.replace(r, u), a.replace(n, o)); }; return De.camelCase = c, De; } var Oe, Zn; function Ur() { if (Zn) return Oe; Zn = 1; var e = Oe && Oe.__importDefault || function(i) { return i && i.__esModule ? i : { default: i }; }, n = e(jr()), t = Hr(); function r(i, l) { var o = {}; return !i || typeof i != "string" || (0, n.default)(i, function(u, c) { u && c && (o[(0, t.camelCase)(u, l)] = c); }), o; } return r.default = r, Oe = r, Oe; } var Vr = Ur(); const qr = /* @__PURE__ */ Lt(Vr), Mt = Bt("end"), In = Bt("start"); function Bt(e) { return n; function n(t) { const r = t && t.position && t.position[e] || {}; if (typeof r.line == "number" && r.line > 0 && typeof r.column == "number" && r.column > 0) return { line: r.line, column: r.column, offset: typeof r.offset == "number" && r.offset > -1 ? r.offset : void 0 }; } } function $r(e) { const n = In(e), t = Mt(e); if (n && t) return { start: n, end: t }; } function Re(e) { return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? et(e.position) : "start" in e || "end" in e ? et(e) : "line" in e || "column" in e ? gn(e) : ""; } function gn(e) { return nt(e && e.line) + ":" + nt(e && e.column); } function et(e) { return gn(e && e.start) + "-" + gn(e && e.end); } function nt(e) { return e && typeof e == "number" ? e : 1; } class Q extends Error { /** * Create a message for `reason`. * * > 🪦 **Note**: also has obsolete signatures. * * @overload * @param {string} reason * @param {Options | null | undefined} [options] * @returns * * @overload * @param {string} reason * @param {Node | NodeLike | null | undefined} parent * @param {string | null | undefined} [origin] * @returns * * @overload * @param {string} reason * @param {Point | Position | null | undefined} place * @param {string | null | undefined} [origin] * @returns * * @overload * @param {string} reason * @param {string | null | undefined} [origin] * @returns * * @overload * @param {Error | VFileMessage} cause * @param {Node | NodeLike | null | undefined} parent * @param {string | null | undefined} [origin] * @returns * * @overload * @param {Error | VFileMessage} cause * @param {Point | Position | null | undefined} place * @param {string | null | undefined} [origin] * @returns * * @overload * @param {Error | VFileMessage} cause * @param {string | null | undefined} [origin] * @returns * * @param {Error | VFileMessage | string} causeOrReason * Reason for message, should use markdown. * @param {Node | NodeLike | Options | Point | Position | string | null | undefined} [optionsOrParentOrPlace] * Configuration (optional). * @param {string | null | undefined} [origin] * Place in code where the message originates (example: * `'my-package:my-rule'` or `'my-rule'`). * @returns * Instance of `VFileMessage`. */ // eslint-disable-next-line complexity constructor(n, t, r) { super(), typeof t == "string" && (r = t, t = void 0); let i = "", l = {}, o = !1; if (t && ("line" in t && "column" in t ? l = { place: t } : "start" in t && "end" in t ? l = { place: t } : "type" in t ? l = { ancestors: [t], place: t.position } : l = { ...t }), typeof n == "string" ? i = n : !l.cause && n && (o = !0, i = n.message, l.cause = n), !l.ruleId && !l.source && typeof r == "string") { const c = r.indexOf(":"); c === -1 ? l.ruleId = r : (l.source = r.slice(0, c), l.ruleId = r.slice(c + 1)); } if (!l.place && l.ancestors && l.ancestors) { const c = l.ancestors[l.ancestors.length - 1]; c && (l.place = c.position); } const u = l.place && "start" in l.place ? l.place.start : l.place; this.ancestors = l.ancestors || void 0, this.cause = l.cause || void 0, this.column = u ? u.column : void 0, this.fatal = void 0, this.file, this.message = i, this.line = u ? u.line : void 0, this.name = Re(l.place) || "1:1", this.place = l.place || void 0, this.reason = this.message, this.ruleId = l.ruleId || void 0, this.source = l.source || void 0, this.stack = o && l.cause && typeof l.cause.stack == "string" ? l.cause.stack : "", this.actual, this.expected, this.note, this.url; } } Q.prototype.file = ""; Q.prototype.name = ""; Q.prototype.reason = ""; Q.prototype.message = ""; Q.prototype.stack = ""; Q.prototype.column = void 0; Q.prototype.line = void 0; Q.prototype.ancestors = void 0; Q.prototype.cause = void 0; Q.prototype.fatal = void 0; Q.prototype.place = void 0; Q.prototype.ruleId = void 0; Q.prototype.source = void 0; const Tn = {}.hasOwnProperty, Wr = /* @__PURE__ */ new Map(), Yr = /[A-Z]/g, Xr = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Qr = /* @__PURE__ */ new Set(["td", "th"]), jt = "https://github.com/syntax-tree/hast-util-to-jsx-runtime"; function Kr(e, n) { if (!n || n.Fragment === void 0) throw new TypeError("Expected `Fragment` in options"); const t = n.filePath || void 0; let r; if (n.development) { if (typeof n.jsxDEV != "function") throw new TypeError( "Expected `jsxDEV` in options when `development: true`" ); r = ii(t, n.jsxDEV); } else { if (typeof n.jsx != "function") throw new TypeError("Expected `jsx` in production options"); if (typeof n.jsxs != "function") throw new TypeError("Expected `jsxs` in production options"); r = ri(t, n.jsx, n.jsxs); } const i = { Fragment: n.Fragment, ancestors: [], components: n.components || {}, create: r, elementAttributeNameCase: n.elementAttributeNameCase || "react", evaluater: n.createEvaluater ? n.createEvaluater() : void 0, filePath: t, ignoreInvalidStyle: n.ignoreInvalidStyle || !1, passKeys: n.passKeys !== !1, passNode: n.passNode || !1, schema: n.space === "svg" ? Cn : Fr, stylePropertyNameCase: n.stylePropertyNameCase || "dom", tableCellAlignToStyle: n.tableCellAlignToStyle !== !1 }, l = Ht(i, e, void 0); return l && typeof l != "string" ? l : i.create( e, i.Fragment, { children: l || void 0 }, void 0 ); } function Ht(e, n, t) { if (n.type === "element") return Gr(e, n, t); if (n.type === "mdxFlowExpression" || n.type === "mdxTextExpression") return Jr(e, n); if (n.type === "mdxJsxFlowElement" || n.type === "mdxJsxTextElement") return ei(e, n, t); if (n.type === "mdxjsEsm") return Zr(e, n); if (n.type === "root") return ni(e, n, t); if (n.type === "text") return ti(e, n); } function Gr(e, n, t) { const r = e.schema; let i = r; n.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Cn, e.schema = i), e.ancestors.push(n); const l = Vt(e, n.tagName, !1), o = li(e, n); let u = An(e, n); return Xr.has(n.tagName) && (u = u.filter(function(c) { return typeof c == "string" ? !Pr(c) : !0; })), Ut(e, o, l, n), Pn(o, u), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t); } function Jr(e, n) { if (n.data && n.data.estree && e.evaluater) { const r = n.data.estree.body[0]; return r.type, /** @type {Child | undefined} */ e.evaluater.evaluateExpression(r.expression); } Be(e, n.position); } function Zr(e, n) { if (n.data && n.data.estree && e.evaluater) return ( /** @type {Child | undefined} */ e.evaluater.evaluateProgram(n.data.estree) ); Be(e, n.position); } function ei(e, n, t) { const r = e.schema; let i = r; n.name === "svg" && r.space === "html" && (i = Cn, e.schema = i), e.ancestors.push(n); const l = n.name === null ? e.Fragment : Vt(e, n.name, !0), o = oi(e, n), u = An(e, n); return Ut(e, o, l, n), Pn(o, u), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t); } function ni(e, n, t) { const r = {}; return Pn(r, An(e, n)), e.create(n, e.Fragment, r, t); } function ti(e, n) { return n.value; } function Ut(e, n, t, r) { typeof t != "string" && t !== e.Fragment && e.passNode && (n.node = r); } function Pn(e, n) { if (n.length > 0) { const t = n.length > 1 ? n : n[0]; t && (e.children = t); } } function ri(e, n, t) { return r; function r(i, l, o, u) { const a = Array.isArray(o.children) ? t : n; return u ? a(l, o, u) : a(l, o); } } function ii(e, n) { return t; function t(r, i, l, o) { const u = Array.isArray(l.children), c = In(r); return n( i, l, o, u, { columnNumber: c ? c.column - 1 : void 0, fileName: e, lineNumber: c ? c.line : void 0 }, void 0 ); } } function li(e, n) { const t = {}; let r, i; for (i in n.properties) if (i !== "children" && Tn.call(n.properties, i)) { const l = ui(e, i, n.properties[i]); if (l) { const [o, u] = l; e.tableCellAlignToStyle && o === "align" && typeof u == "string" && Qr.has(n.tagName) ? r = u : t[o] = u; } } if (r) { const l = ( /** @type {Style} */ t.style || (t.style = {}) ); l[e.stylePropertyNameCase === "css" ? "text-align" : "textAlign"] = r; } return t; } function oi(e, n) { const t = {}; for (const r of n.attributes) if (r.type === "mdxJsxExpressionAttribute") if (r.data && r.data.estree && e.evaluater) { const l = r.data.estree.body[0]; l.type; const o = l.expression; o.type; const u = o.properties[0]; u.type, Object.assign( t, e.evaluater.evaluateExpression(u.argument) ); } else Be(e, n.position); else { const i = r.name; let l; if (r.value && typeof r.value == "object") if (r.value.data && r.value.data.estree && e.evaluater) { const u = r.value.data.estree.body[0]; u.type, l = e.evaluater.evaluateExpression(u.expression); } else Be(e, n.position); else l = r.value === null ? !0 : r.value; t[i] = /** @type {Props[keyof Props]} */ l; } return t; } function An(e, n) { const t = []; let r = -1; const i = e.passKeys ? /* @__PURE__ */ new Map() : Wr; for (; ++r < n.children.length; ) { const l = n.children[r]; let o; if (e.passKeys) { const c = l.type === "element" ? l.tagName : l.type === "mdxJsxFlowElement" || l.type === "mdxJsxTextElement" ? l.name : void 0; if (c) { const a = i.get(c) || 0; o = c + "-" + a, i.set(c, a + 1); } } const u = Ht(e, l, o); u !== void 0 && t.push(u); } return t; } function ui(e, n, t) { const r = _r(e.schema, n); if (!(t == null || typeof t == "number" && Number.isNaN(t))) { if (Array.isArray(t) && (t = r.commaSeparated ? Sr(t) : Mr(t)), r.property === "style") { let i = typeof t == "object" ? t : ai(e, String(t)); return e.stylePropertyNameCase === "css" && (i = si(i)), ["style", i]; } return [ e.elementAttributeNameCase === "react" && r.space ? vr[r.property] || r.property : r.attribute, t ]; } } function ai(e, n) { try { return qr(n, { reactCompat: !0 }); } catch (t) { if (e.ignoreInvalidStyle) return {}; const r = ( /** @type {Error} */ t ), i = new Q("Cannot parse `style` attribute", { ancestors: e.ancestors, cause: r, ruleId: "style", source: "hast-util-to-jsx-runtime" }); throw i.file = e.filePath || void 0, i.url = jt + "#cannot-parse-style-attribute", i; } } function Vt(e, n, t) { let r; if (!t) r = { type: "Literal", value: n }; else if (n.includes(".")) { const i = n.split("."); let l = -1, o; for (; ++l < i.length; ) { const u = Wn(i[l]) ? { type: "Identifier", name: i[l] } : { type: "Literal", value: i[l] }; o = o ? { type: "MemberExpression", object: o, property: u, computed: !!(l && u.type === "Literal"), optional: !1 } : u; } r = o; } else r = Wn(n) && !/^[a-z]/.test(n) ? { type: "Identifier", name: n } : { type: "Literal", value: n }; if (r.type === "Literal") { const i = ( /** @type {string | number} */ r.value ); return Tn.call(e.components, i) ? e.components[i] : i; } if (e.evaluater) return e.evaluater.evaluateExpression(r); Be(e); } function Be(e, n) { const t = new Q( "Cannot handle MDX estrees without `createEvaluater`", { ancestors: e.ancestors, place: n, ruleId: "mdx-estree", source: "hast-util-to-jsx-runtime" } ); throw t.file = e.filePath || void 0, t.url = jt + "#cannot-handle-mdx-estrees-without-createevaluater", t; } function si(e) { const n = {}; let t; for (t in e) Tn.call(e, t) && (n[ci(t)] = e[t]); return n; } function ci(e) { let n = e.replace(Yr, pi); return n.slice(0, 3) === "ms-" && (n = "-" + n), n; } function pi(e) { return "-" + e.toLowerCase(); } const nn = { action: ["form"], cite: ["blockquote", "del", "ins", "q"], data: ["object"], formAction: ["button", "input"], href: ["a", "area", "base", "link"], icon: ["menuitem"], itemId: null, manifest: ["html"], ping: ["a", "area"], poster: ["video"], src: [ "audio", "embed", "iframe", "img", "input", "script", "source", "track", "video" ] }, fi = {}; function hi(e, n) { const t = fi, r = typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, i = typeof t.includeHtml == "boolean" ? t.includeHtml : !0; return qt(e, r, i); } function qt(e, n, t) { if (mi(e)) { if ("value" in e) return e.type === "html" && !t ? "" : e.value; if (n && "alt" in e && e.alt) return e.alt; if ("children" in e) return tt(e.children, n, t); } return Array.isArray(e) ? tt(e, n, t) : ""; } function tt(e, n, t) { const r = []; let i = -1; for (; ++i < e.length; ) r[i] = qt(e[i], n, t); return r.join(""); } function mi(e) { return !!(e && typeof e == "object"); } const rt = document.createElement("i"); function zn(e) { const n = "&" + e + ";"; rt.innerHTML = n; const t = rt.textContent; return ( // @ts-expect-error: TypeScript is wrong that `textContent` on elements can // yield `null`. t.charCodeAt(t.length - 1) === 59 && e !== "semi" || t === n ? !1 : t ); } function se(e, n, t, r) { const i = e.length; let l = 0, o; if (n < 0 ? n = -n > i ? 0 : i + n : n = n > i ? i : n, t = t > 0 ? t : 0, r.length < 1e4) o = Array.from(r), o.unshift(n, t), e.splice(...o); else for (t && e.splice(n, t); l < r.length; ) o = r.slice(l, l + 1e4), o.unshift(n, 0), e.splice(...o), l += 1e4, n += 1e4; } function te(e, n) { return e.length > 0 ? (se(e, e.length, 0, n), e) : n; } const it = {}.hasOwnProperty; function di(e) { const n = {}; let t = -1; for (; ++t < e.length; ) gi(n, e[t]); return n; } function gi(e, n) { let t; for (t in n) { const i = (it.call(e, t) ? e[t] : void 0) || (e[t] = {}), l = n[t]; let o; if (l) for (o in l) { it.call(i, o) || (i[o] = []); const u = l[o]; yi( // @ts-expect-error Looks like a list. i[o], Array.isArray(u) ? u : u ? [u] : [] ); } } } function yi(e, n) { let t = -1; const r = []; for (; ++t < n.length; ) (n[t].add === "after" ? e : r).push(n[t]); se(e, 0, 0, r); } function $t(e, n) { const t = Number.parseInt(e, n); return ( // C0 except for HT, LF, FF, CR, space. t < 9 || t === 11 || t > 13 && t < 32 || // Control character (DEL) of C0, and C1 controls. t > 126 && t < 160 || // Lone high surrogates and low surrogates. t > 55295 && t < 57344 || // Noncharacters. t > 64975 && t < 65008 || /* eslint-disable no-bitwise */ (t & 65535) === 65535 || (t & 65535) === 65534 || /* eslint-enable no-bitwise */ // Out of range t > 1114111 ? "�" : String.fromCodePoint(t) ); } function Te(e) { return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase(); } const ae = ge(/[A-Za-z]/), ne = ge(/[\dA-Za-z]/), xi = ge(/[#-'*+\--9=?A-Z^-~]/); function yn(e) { return ( // Special whitespace codes (which have negative values), C0 and Control // character DEL e !== null && (e < 32 || e === 127) ); } const xn = ge(/\d/), ki = ge(/[\dA-Fa-f]/), bi = ge(/[!-/:-@[-`{-~]/); function L(e) { return e !== null && e < -2; } function G(e) { return e !== null && (e < 0 || e === 32); } function R(e) { return e === -2 || e === -1 || e === 32; } const wi = ge(new RegExp("\\p{P}|\\p{S}", "u")), Si = ge(/\s/); function ge(e) { return n; function n(t) { return t !== null && t > -1 && e.test(String.fromCharCode(t)); } } function Ae(e) { const n = []; let t = -1, r = 0, i = 0; for (; ++t < e.length; ) { const l = e.charCodeAt(t); let o = ""; if (l === 37 && ne(e.charCodeAt(t + 1)) && ne(e.charCodeAt(t + 2))) i = 2; else if (l < 128) /[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l)) || (o = String.fromCharCode(l)); else if (l > 55295 && l < 57344) { const u = e.charCodeAt(t + 1); l < 56320 && u > 56319 && u < 57344 ? (o = String.fromCharCode(l, u), i = 1) : o = "�"; } else o = String.fromCharCode(l); o && (n.push(e.slice(r, t), encodeURIComponent(o)), r = t + i + 1, o = ""), i && (t += i, i = 0); } return n.join("") + e.slice(r); } function V(e, n, t, r) { const i = r ? r - 1 : Number.POSITIVE_INFINITY; let l = 0; return o; function o(c) { return R(c) ? (e.enter(t), u(c)) : n(c); } function u(c) { return R(c) && l++ < i ? (e.consume(c), u) : (e.exit(t), n(c)); } } const Ei = { tokenize: Ci }; function Ci(e) { const n = e.attempt(this.parser.constructs.contentInitial, r, i); let t; return n; function r(u) { if (u === null) { e.consume(u); return; } return e.enter("lineEnding"), e.consume(u), e.exit("lineEnding"), V(e, n, "linePrefix"); } function i(u) { return e.enter("paragraph"), l(u); } function l(u) { const c = e.enter("chunkText", { contentType: "text", previous: t