UNPKG

storybook-addon-performance

Version:

A storybook addon to help better understand and debug performance for React components

493 lines (482 loc) 1.45 MB
"use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __esm = (fn, res) => function __init() { return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; }; var __commonJS = (cb, mod) => function __require() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // ../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-JRLSWQMA.mjs var __create2, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __getProtoOf2, __hasOwnProp2, __commonJS2, __copyProps2, __toESM2; var init_chunk_JRLSWQMA = __esm({ "../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-JRLSWQMA.mjs"() { __create2 = Object.create; __defProp2 = Object.defineProperty; __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; __getOwnPropNames2 = Object.getOwnPropertyNames; __getProtoOf2 = Object.getPrototypeOf; __hasOwnProp2 = Object.prototype.hasOwnProperty; __commonJS2 = (cb, mod) => function() { return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; __copyProps2 = (to, from, except, desc) => { if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames2(from)) !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable }); return to; }; __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target, mod)); } }); // ../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-MUPK3MH6.mjs var require_markdown; var init_chunk_MUPK3MH6 = __esm({ "../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-MUPK3MH6.mjs"() { init_chunk_JRLSWQMA(); require_markdown = __commonJS2({ "../../node_modules/refractor/lang/markdown.js"(exports, module2) { module2.exports = markdown; markdown.displayName = "markdown"; markdown.aliases = ["md"]; function markdown(Prism) { (function(Prism2) { var inner = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source; function createInline(pattern) { return pattern = pattern.replace(/<inner>/g, function() { return inner; }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + pattern + ")"); } var tableCell = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, tableRow = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() { return tableCell; }), tableLine = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source; Prism2.languages.markdown = Prism2.languages.extend("markup", {}), Prism2.languages.insertBefore("markdown", "prolog", { "front-matter-block": { pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/, lookbehind: true, greedy: true, inside: { punctuation: /^---|---$/, "front-matter": { pattern: /\S+(?:\s+\S+)*/, alias: ["yaml", "language-yaml"], inside: Prism2.languages.yaml } } }, blockquote: { pattern: /^>(?:[\t ]*>)*/m, alias: "punctuation" }, table: { pattern: RegExp("^" + tableRow + tableLine + "(?:" + tableRow + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + tableRow + tableLine + ")(?:" + tableRow + ")*$"), lookbehind: true, inside: { "table-data": { pattern: RegExp(tableCell), inside: Prism2.languages.markdown }, punctuation: /\|/ } }, "table-line": { pattern: RegExp("^(" + tableRow + ")" + tableLine + "$"), lookbehind: true, inside: { punctuation: /\||:?-{3,}:?/ } }, "table-header-row": { pattern: RegExp("^" + tableRow + "$"), inside: { "table-header": { pattern: RegExp(tableCell), alias: "important", inside: Prism2.languages.markdown }, punctuation: /\|/ } } } }, code: [{ pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/, lookbehind: true, alias: "keyword" }, { pattern: /^```[\s\S]*?^```$/m, greedy: true, inside: { "code-block": { pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m, lookbehind: true }, "code-language": { pattern: /^(```).+/, lookbehind: true }, punctuation: /```/ } }], title: [{ pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m, alias: "important", inside: { punctuation: /==+$|--+$/ } }, { pattern: /(^\s*)#.+/m, lookbehind: true, alias: "important", inside: { punctuation: /^#+|#+$/ } }], hr: { pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m, lookbehind: true, alias: "punctuation" }, list: { pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m, lookbehind: true, alias: "punctuation" }, "url-reference": { pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/, inside: { variable: { pattern: /^(!?\[)[^\]]+/, lookbehind: true }, string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/, punctuation: /^[\[\]!:]|[<>]/ }, alias: "url" }, bold: { pattern: createInline(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source), lookbehind: true, greedy: true, inside: { content: { pattern: /(^..)[\s\S]+(?=..$)/, lookbehind: true, inside: {} }, punctuation: /\*\*|__/ } }, italic: { pattern: createInline(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source), lookbehind: true, greedy: true, inside: { content: { pattern: /(^.)[\s\S]+(?=.$)/, lookbehind: true, inside: {} }, punctuation: /[*_]/ } }, strike: { pattern: createInline(/(~~?)(?:(?!~)<inner>)+\2/.source), lookbehind: true, greedy: true, inside: { content: { pattern: /(^~~?)[\s\S]+(?=\1$)/, lookbehind: true, inside: {} }, punctuation: /~~?/ } }, "code-snippet": { pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/, lookbehind: true, greedy: true, alias: ["code", "keyword"] }, url: { pattern: createInline(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source), lookbehind: true, greedy: true, inside: { operator: /^!/, content: { pattern: /(^\[)[^\]]+(?=\])/, lookbehind: true, inside: {} }, variable: { pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/, lookbehind: true }, url: { pattern: /(^\]\()[^\s)]+/, lookbehind: true }, string: { pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/, lookbehind: true } } } }), ["url", "bold", "italic", "strike"].forEach(function(token) { ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(inside) { token !== inside && (Prism2.languages.markdown[token].inside.content.inside[inside] = Prism2.languages.markdown[inside]); }); }), Prism2.hooks.add("after-tokenize", function(env) { if (env.language !== "markdown" && env.language !== "md") return; function walkTokens(tokens) { if (!(!tokens || typeof tokens == "string")) for (var i = 0, l = tokens.length; i < l; i++) { var token = tokens[i]; if (token.type !== "code") { walkTokens(token.content); continue; } var codeLang = token.content[1], codeBlock = token.content[3]; if (codeLang && codeBlock && codeLang.type === "code-language" && codeBlock.type === "code-block" && typeof codeLang.content == "string") { var lang = codeLang.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp"); lang = (/[a-z][\w-]*/i.exec(lang) || [""])[0].toLowerCase(); var alias = "language-" + lang; codeBlock.alias ? typeof codeBlock.alias == "string" ? codeBlock.alias = [codeBlock.alias, alias] : codeBlock.alias.push(alias) : codeBlock.alias = [alias]; } } } walkTokens(env.tokens); }), Prism2.hooks.add("wrap", function(env) { if (env.type === "code-block") { for (var codeLang = "", i = 0, l = env.classes.length; i < l; i++) { var cls = env.classes[i], match2 = /language-(.+)/.exec(cls); if (match2) { codeLang = match2[1]; break; } } var grammar = Prism2.languages[codeLang]; if (grammar) env.content = Prism2.highlight(textContent(env.content.value), grammar, codeLang); else if (codeLang && codeLang !== "none" && Prism2.plugins.autoloader) { var id = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16); env.attributes.id = id, Prism2.plugins.autoloader.loadLanguages(codeLang, function() { var ele = document.getElementById(id); ele && (ele.innerHTML = Prism2.highlight(ele.textContent, Prism2.languages[codeLang], codeLang)); }); } } }); var tagPattern = RegExp(Prism2.languages.markup.tag.pattern.source, "gi"), KNOWN_ENTITY_NAMES = { amp: "&", lt: "<", gt: ">", quot: '"' }, fromCodePoint = String.fromCodePoint || String.fromCharCode; function textContent(html) { var text = html.replace(tagPattern, ""); return text = text.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(m, code) { if (code = code.toLowerCase(), code[0] === "#") { var value; return code[1] === "x" ? value = parseInt(code.slice(2), 16) : value = Number(code.slice(1)), fromCodePoint(value); } else { var known = KNOWN_ENTITY_NAMES[code]; return known || m; } }), text; } Prism2.languages.md = Prism2.languages.markdown; })(Prism); } } }); } }); // ../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-ISRAU5IP.mjs var require_yaml; var init_chunk_ISRAU5IP = __esm({ "../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-ISRAU5IP.mjs"() { init_chunk_JRLSWQMA(); require_yaml = __commonJS2({ "../../node_modules/refractor/lang/yaml.js"(exports, module2) { module2.exports = yaml; yaml.displayName = "yaml"; yaml.aliases = ["yml"]; function yaml(Prism) { (function(Prism2) { var anchorOrAlias = /[*&][^\s[\]{},]+/, tag = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, properties = "(?:" + tag.source + "(?:[ ]+" + anchorOrAlias.source + ")?|" + anchorOrAlias.source + "(?:[ ]+" + tag.source + ")?)", plainKey = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() { return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source; }), string = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source; function createValuePattern(value, flags) { flags = (flags || "").replace(/m/g, "") + "m"; var pattern = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() { return properties; }).replace(/<<value>>/g, function() { return value; }); return RegExp(pattern, flags); } Prism2.languages.yaml = { scalar: { pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g, function() { return properties; })), lookbehind: true, alias: "string" }, comment: /#.*/, key: { pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() { return properties; }).replace(/<<key>>/g, function() { return "(?:" + plainKey + "|" + string + ")"; })), lookbehind: true, greedy: true, alias: "atrule" }, directive: { pattern: /(^[ \t]*)%.+/m, lookbehind: true, alias: "important" }, datetime: { pattern: createValuePattern(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source), lookbehind: true, alias: "number" }, boolean: { pattern: createValuePattern(/false|true/.source, "i"), lookbehind: true, alias: "important" }, null: { pattern: createValuePattern(/null|~/.source, "i"), lookbehind: true, alias: "important" }, string: { pattern: createValuePattern(string), lookbehind: true, greedy: true }, number: { pattern: createValuePattern(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"), lookbehind: true }, tag, important: anchorOrAlias, punctuation: /---|[:[\]{}\-,|>?]|\.\.\./ }, Prism2.languages.yml = Prism2.languages.yaml; })(Prism); } } }); } }); // ../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-VSDH24NK.mjs var require_typescript; var init_chunk_VSDH24NK = __esm({ "../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-VSDH24NK.mjs"() { init_chunk_JRLSWQMA(); require_typescript = __commonJS2({ "../../node_modules/refractor/lang/typescript.js"(exports, module2) { module2.exports = typescript; typescript.displayName = "typescript"; typescript.aliases = ["ts"]; function typescript(Prism) { (function(Prism2) { Prism2.languages.typescript = Prism2.languages.extend("javascript", { "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/, lookbehind: true, greedy: true, inside: null }, builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/ }), Prism2.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/, /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/, /\btype\b(?=\s*(?:[\{*]|$))/), delete Prism2.languages.typescript.parameter, delete Prism2.languages.typescript["literal-property"]; var typeInside = Prism2.languages.extend("typescript", {}); delete typeInside["class-name"], Prism2.languages.typescript["class-name"].inside = typeInside, Prism2.languages.insertBefore("typescript", "function", { decorator: { pattern: /@[$\w\xA0-\uFFFF]+/, inside: { at: { pattern: /^@/, alias: "operator" }, function: /^[\s\S]+/ } }, "generic-function": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/, greedy: true, inside: { function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: typeInside } } } }), Prism2.languages.ts = Prism2.languages.typescript; })(Prism); } } }); } }); // ../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-HNGDCMHD.mjs var require_jsx; var init_chunk_HNGDCMHD = __esm({ "../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-HNGDCMHD.mjs"() { init_chunk_JRLSWQMA(); require_jsx = __commonJS2({ "../../node_modules/refractor/lang/jsx.js"(exports, module2) { module2.exports = jsx; jsx.displayName = "jsx"; jsx.aliases = []; function jsx(Prism) { (function(Prism2) { var javascript = Prism2.util.clone(Prism2.languages.javascript), space = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, braces = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, spread = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source; function re(source, flags) { return source = source.replace(/<S>/g, function() { return space; }).replace(/<BRACES>/g, function() { return braces; }).replace(/<SPREAD>/g, function() { return spread; }), RegExp(source, flags); } spread = re(spread).source, Prism2.languages.jsx = Prism2.languages.extend("markup", javascript), Prism2.languages.jsx.tag.pattern = re(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source), Prism2.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, Prism2.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, Prism2.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, Prism2.languages.jsx.tag.inside.comment = javascript.comment, Prism2.languages.insertBefore("inside", "attr-name", { spread: { pattern: re(/<SPREAD>/.source), inside: Prism2.languages.jsx } }, Prism2.languages.jsx.tag), Prism2.languages.insertBefore("inside", "special-attr", { script: { pattern: re(/=<BRACES>/.source), alias: "language-javascript", inside: { "script-punctuation": { pattern: /^=(?=\{)/, alias: "punctuation" }, rest: Prism2.languages.jsx } } }, Prism2.languages.jsx.tag); var stringifyToken = function(token) { return token ? typeof token == "string" ? token : typeof token.content == "string" ? token.content : token.content.map(stringifyToken).join("") : ""; }, walkTokens = function(tokens) { for (var openedTags = [], i = 0; i < tokens.length; i++) { var token = tokens[i], notTagNorBrace = false; if (typeof token != "string" && (token.type === "tag" && token.content[0] && token.content[0].type === "tag" ? token.content[0].content[0].content === "</" ? openedTags.length > 0 && openedTags[openedTags.length - 1].tagName === stringifyToken(token.content[0].content[1]) && openedTags.pop() : token.content[token.content.length - 1].content === "/>" || openedTags.push({ tagName: stringifyToken(token.content[0].content[1]), openedBraces: 0 }) : openedTags.length > 0 && token.type === "punctuation" && token.content === "{" ? openedTags[openedTags.length - 1].openedBraces++ : openedTags.length > 0 && openedTags[openedTags.length - 1].openedBraces > 0 && token.type === "punctuation" && token.content === "}" ? openedTags[openedTags.length - 1].openedBraces-- : notTagNorBrace = true), (notTagNorBrace || typeof token == "string") && openedTags.length > 0 && openedTags[openedTags.length - 1].openedBraces === 0) { var plainText = stringifyToken(token); i < tokens.length - 1 && (typeof tokens[i + 1] == "string" || tokens[i + 1].type === "plain-text") && (plainText += stringifyToken(tokens[i + 1]), tokens.splice(i + 1, 1)), i > 0 && (typeof tokens[i - 1] == "string" || tokens[i - 1].type === "plain-text") && (plainText = stringifyToken(tokens[i - 1]) + plainText, tokens.splice(i - 1, 1), i--), tokens[i] = new Prism2.Token("plain-text", plainText, null, plainText); } token.content && typeof token.content != "string" && walkTokens(token.content); } }; Prism2.hooks.add("after-tokenize", function(env) { env.language !== "jsx" && env.language !== "tsx" || walkTokens(env.tokens); }); })(Prism); } } }); } }); // ../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-YU6L2YXV.mjs var require_tsx; var init_chunk_YU6L2YXV = __esm({ "../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-YU6L2YXV.mjs"() { init_chunk_VSDH24NK(); init_chunk_HNGDCMHD(); init_chunk_JRLSWQMA(); require_tsx = __commonJS2({ "../../node_modules/refractor/lang/tsx.js"(exports, module2) { var refractorJsx = require_jsx(), refractorTypescript = require_typescript(); module2.exports = tsx; tsx.displayName = "tsx"; tsx.aliases = []; function tsx(Prism) { Prism.register(refractorJsx), Prism.register(refractorTypescript), function(Prism2) { var typescript = Prism2.util.clone(Prism2.languages.typescript); Prism2.languages.tsx = Prism2.languages.extend("jsx", typescript), delete Prism2.languages.tsx.parameter, delete Prism2.languages.tsx["literal-property"]; var tag = Prism2.languages.tsx.tag; tag.pattern = RegExp(/(^|[^\w$]|(?=<\/))/.source + "(?:" + tag.pattern.source + ")", tag.pattern.flags), tag.lookbehind = true; }(Prism); } } }); } }); // ../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-UDRSICRZ.mjs var require_clike; var init_chunk_UDRSICRZ = __esm({ "../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-UDRSICRZ.mjs"() { init_chunk_JRLSWQMA(); require_clike = __commonJS2({ "../../node_modules/refractor/lang/clike.js"(exports, module2) { module2.exports = clike; clike.displayName = "clike"; clike.aliases = []; function clike(Prism) { Prism.languages.clike = { comment: [{ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: true, greedy: true }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: true, greedy: true }], string: { pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, greedy: true }, "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i, lookbehind: true, inside: { punctuation: /[.\\]/ } }, keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/, boolean: /\b(?:false|true)\b/, function: /\b\w+(?=\()/, number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, punctuation: /[{}[\];(),.:]/ }; } } }); } }); // ../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-J6EJ35VB.mjs var require_javascript; var init_chunk_J6EJ35VB = __esm({ "../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-J6EJ35VB.mjs"() { init_chunk_JRLSWQMA(); require_javascript = __commonJS2({ "../../node_modules/refractor/lang/javascript.js"(exports, module2) { module2.exports = javascript; javascript.displayName = "javascript"; javascript.aliases = ["js"]; function javascript(Prism) { Prism.languages.javascript = Prism.languages.extend("clike", { "class-name": [Prism.languages.clike["class-name"], { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/, lookbehind: true }], keyword: [{ pattern: /((?:^|\})\s*)catch\b/, lookbehind: true }, { pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/, lookbehind: true }], function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, number: { pattern: RegExp(/(^|[^\w$])/.source + "(?:" + (/NaN|Infinity/.source + "|" + /0[bB][01]+(?:_[01]+)*n?/.source + "|" + /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + /\d+(?:_\d+)*n/.source + "|" + /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source) + ")" + /(?![\w$])/.source), lookbehind: true }, operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/ }), Prism.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, Prism.languages.insertBefore("javascript", "keyword", { regex: { pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/, lookbehind: true, greedy: true, inside: { "regex-source": { pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/, lookbehind: true, alias: "language-regex", inside: Prism.languages.regex }, "regex-delimiter": /^\/|\/$/, "regex-flags": /^[a-z]+$/ } }, "function-variable": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/, alias: "function" }, parameter: [{ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/, lookbehind: true, inside: Prism.languages.javascript }, { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, lookbehind: true, inside: Prism.languages.javascript }, { pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, lookbehind: true, inside: Prism.languages.javascript }, { pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/, lookbehind: true, inside: Prism.languages.javascript }], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }), Prism.languages.insertBefore("javascript", "string", { hashbang: { pattern: /^#!.*/, greedy: true, alias: "comment" }, "template-string": { pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/, greedy: true, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/, lookbehind: true, inside: { "interpolation-punctuation": { pattern: /^\$\{|\}$/, alias: "punctuation" }, rest: Prism.languages.javascript } }, string: /[\s\S]+/ } }, "string-property": { pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m, lookbehind: true, greedy: true, alias: "property" } }), Prism.languages.insertBefore("javascript", "operator", { "literal-property": { pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, lookbehind: true, alias: "property" } }), Prism.languages.markup && (Prism.languages.markup.tag.addInlined("script", "javascript"), Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source, "javascript")), Prism.languages.js = Prism.languages.javascript; } } }); } }); // ../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-CW4JFC2I.mjs var require_css; var init_chunk_CW4JFC2I = __esm({ "../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-CW4JFC2I.mjs"() { init_chunk_JRLSWQMA(); require_css = __commonJS2({ "../../node_modules/refractor/lang/css.js"(exports, module2) { module2.exports = css; css.displayName = "css"; css.aliases = []; function css(Prism) { (function(Prism2) { var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/; Prism2.languages.css = { comment: /\/\*[\s\S]*?\*\//, atrule: { pattern: /@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/, inside: { rule: /^@[\w-]+/, "selector-function-argument": { pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/, lookbehind: true, alias: "selector" }, keyword: { pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/, lookbehind: true } } }, url: { pattern: RegExp("\\burl\\((?:" + string.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"), greedy: true, inside: { function: /^url/i, punctuation: /^\(|\)$/, string: { pattern: RegExp("^" + string.source + "$"), alias: "url" } } }, selector: { pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + string.source + ")*(?=\\s*\\{)"), lookbehind: true }, string: { pattern: string, greedy: true }, property: { pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i, lookbehind: true }, important: /!important\b/i, function: { pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i, lookbehind: true }, punctuation: /[(){};:,]/ }, Prism2.languages.css.atrule.inside.rest = Prism2.languages.css; var markup = Prism2.languages.markup; markup && (markup.tag.addInlined("style", "css"), markup.tag.addAttribute("style", "css")); })(Prism); } } }); } }); // ../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-DHRX2IL7.mjs var require_markup; var init_chunk_DHRX2IL7 = __esm({ "../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-DHRX2IL7.mjs"() { init_chunk_JRLSWQMA(); require_markup = __commonJS2({ "../../node_modules/refractor/lang/markup.js"(exports, module2) { module2.exports = markup; markup.displayName = "markup"; markup.aliases = ["html", "mathml", "svg", "xml", "ssml", "atom", "rss"]; function markup(Prism) { Prism.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy: true }, prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: true }, doctype: { pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i, greedy: true, inside: { "internal-subset": { pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: true, greedy: true, inside: null }, string: { pattern: /"[^"]*"|'[^']*'/, greedy: true }, punctuation: /^<!|>$|[[\]]/, "doctype-tag": /^DOCTYPE/i, name: /[^\s<>'"]+/ } }, cdata: { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, greedy: true }, tag: { pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, greedy: true, inside: { tag: { pattern: /^<\/?[^\s>\/]+/, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } }, "special-attr": [], "attr-value": { pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, inside: { punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } }, punctuation: /\/?>/, "attr-name": { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/ } } } }, entity: [{ pattern: /&[\da-z]{1,8};/i, alias: "named-entity" }, /&#x?[\da-f]{1,8};/i] }, Prism.languages.markup.tag.inside["attr-value"].inside.entity = Prism.languages.markup.entity, Prism.languages.markup.doctype.inside["internal-subset"].inside = Prism.languages.markup, Prism.hooks.add("wrap", function(env) { env.type === "entity" && (env.attributes.title = env.content.value.replace(/&amp;/, "&")); }), Object.defineProperty(Prism.languages.markup.tag, "addInlined", { value: function(tagName, lang) { var includedCdataInside = {}; includedCdataInside["language-" + lang] = { pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, lookbehind: true, inside: Prism.languages[lang] }, includedCdataInside.cdata = /^<!\[CDATA\[|\]\]>$/i; var inside = { "included-cdata": { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, inside: includedCdataInside } }; inside["language-" + lang] = { pattern: /[\s\S]+/, inside: Prism.languages[lang] }; var def = {}; def[tagName] = { pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() { return tagName; }), "i"), lookbehind: true, greedy: true, inside }, Prism.languages.insertBefore("markup", "cdata", def); } }), Object.defineProperty(Prism.languages.markup.tag, "addAttribute", { value: function(attrName, lang) { Prism.languages.markup.tag.inside["special-attr"].push({ pattern: RegExp(/(^|["'\s])/.source + "(?:" + attrName + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, "i"), lookbehind: true, inside: { "attr-name": /^[^\s=]+/, "attr-value": { pattern: /=[\s\S]+/, inside: { value: { pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/, lookbehind: true, alias: [lang, "language-" + lang], inside: Prism.languages[lang] }, punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } } } }); } }), Prism.languages.html = Prism.languages.markup, Prism.languages.mathml = Prism.languages.markup, Prism.languages.svg = Prism.languages.markup, Prism.languages.xml = Prism.languages.extend("markup", {}), Prism.languages.ssml = Prism.languages.xml, Prism.languages.atom = Prism.languages.xml, Prism.languages.rss = Prism.languages.xml; } } }); } }); // ../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-BNQCH2A2.mjs var require_immutable, require_schema, require_merge, require_normalize, require_info, require_types, require_defined_info, require_create, require_xlink, require_xml, require_case_sensitive_transform, require_case_insensitive_transform, require_xmlns, require_aria, require_html, require_html2, require_find, require_hast_util_parse_selector, require_space_separated_tokens, require_comma_separated_tokens, require_factory, require_html3, require_hastscript, require_character_entities_legacy, require_character_reference_invalid, require_is_decimal, require_is_hexadecimal, require_is_alphabetical, require_is_alphanumerical, require_character_entities, require_decode_entity, require_parse_entities, require_prism_core, require_core; var init_chunk_BNQCH2A2 = __esm({ "../../node_modules/.pnpm/@storybook+components@7.6.10_@types+react-dom@16.9.17_@types+react@16.9.17_react-dom@16.14.0_react@16.14.0/node_modules/@storybook/components/dist/chunk-BNQCH2A2.mjs"() { init_chunk_UDRSICRZ(); init_chunk_J6EJ35VB(); init_chunk_CW4JFC2I(); init_chunk_DHRX2IL7(); init_chunk_JRLSWQMA(); require_immutable = __commonJS2({ "../../node_modules/xtend/immutable.js"(exports, module2) { module2.exports = extend; var hasOwnProperty = Object.prototype.hasOwnProperty; function extend() { for (var target = {}, i = 0; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) hasOwnProperty.call(source, key) && (target[key] = source[key]); } return target; } } }); require_schema = __commonJS2({ "../../node_modules/property-information/lib/util/schema.js"(exports, module2) { module2.exports = Schema; var proto = Schema.prototype; proto.space = null; proto.normal = {}; proto.property = {}; function Schema(property, normal, space) { this.property = property, this.normal = normal, space && (this.space = space); } } }); require_merge = __commonJS2({ "../../node_modules/property-information/lib/util/merge.js"(exports, module2) { var xtend = require_immutable(), Schema = require_schema(); module2.exports = merge; function merge(definitions) { for (var length = definitions.length, property = [], normal = [], index2 = -1, info, space; ++index2 < length; ) info = definitions[index2], property.push(info.property), normal.push(info.normal), space = info.space; return new Schema(xtend.apply(null, property), xtend.apply(null, normal), space); } } }); require_normalize = __commonJS2({ "../../node_modules/property-information/normalize.js"(exports, module2) { module2.exports = normalize; function normalize(value) { return value.toLowerCase(); } } }); require_info = __commonJS2({ "../../node_modules/property-information/lib/util/info.js"(exports, module2) { module2.exports = Info; var proto = Info.prototype; proto.space = null; proto.attribute = null; proto.property = null; proto.boolean = false; proto.booleanish = false; proto.overloadedBoolean = false; proto.number = false; proto.commaSeparated = false; proto.spaceSeparated = false; proto.commaOrSpaceSeparated = false; proto.mustUseProperty = false; proto.defined = false; function Info(property, attribute) { this.property = property, this.attribute = attribute; } } }); require_types = __commonJS2({ "../../node_modules/property-information/lib/util/types.js"(exports) { var powers = 0; exports.boolean = increment(); exports.booleanish = increment(); exports.overloadedBoolean = increment(); exports.number = increment(); exports.spaceSeparated = increment(); exports.commaSeparated = increment(); exports.commaOrSpaceSeparated = increment(); function increment() { return Math.pow(2, ++powers); } } }); require_defined_info = __commonJS2({ "../../node_modules/property-information/lib/util/defined-info.js"(exports, module2) { var Info = require_info(), types = require_types(); module2.exports = DefinedInfo; DefinedInfo.prototype = new Info(); DefinedInfo.prototype.defined = true; var checks = ["boolean", "booleanish", "overloadedBoolean", "number", "commaSeparated", "spaceSeparated", "commaOrSpaceSeparated"], checksLength = checks.length; function DefinedInfo(property, attribute, mask, space) { var index2 = -1, check; for (mark(this, "space", space), Info.call(this, property, attribute); ++index2 < checksLength; ) check = checks[index2], mark(this, check, (mask & types[check]) === types[check]); } function mark(values, key, value) { value && (values[key] = value); } } }); require_create = __commonJS2({ "../../node_modules/property-information/lib/util/create.js"(exports, module2) { var normalize = require_normalize(), Schema = require_schema(), DefinedInfo = require_defined_info(); module2.exports = create; function create(definition) { var space = definition.space, mustUseProperty = definition.mustUseProperty || [], attributes = definition.attributes || {}, props = definition.properties, transform = definition.transform, property = {}, normal = {}, prop, info; for (prop in props) info = new DefinedInfo(prop, transform(attributes, prop), props[prop], space), mustUseProperty.indexOf(prop) !== -1 && (info.mustUseProperty = true), property[prop] = info, normal[normalize(prop)] = prop, normal[normalize(info.attribute)] = prop; return new Schema(property, normal, space); } } }); require_xlink = __commonJS2({ "../../node_modules/property-information/lib/xlink.js"(exports, module2) { var create = require_create(); module2.exports = create({ space: "xlink", transform: xlinkTransform, properties: { xLinkActuate: null, xLinkArcRole: null, xLinkHref: null, xLinkRole: null, xLinkShow: null, xLinkTitle: null, xLinkType: null } }); function xlinkTransform(_, prop) { return "xlink:" + prop.slice(5).toLowerCase(); } } }); require_xml = __commonJS2({ "../../node_modules/property-information/lib/xml.js"(exports, module2) { var create = require_create(); module2.exports = create({ space: "xml", transform: xmlTransform, properties: { xmlLang: null, xmlBase: null, xmlSpace: null } }); function xmlTransform(_, prop) { return "xml:" + prop.slice(3).toLowerCase(); } } }); require_case_sensitive_transform = __commonJS2({ "../../node_modules/property-information/lib/util/case-sensitive-transform.js"(exports, module2) { module2.exports = caseSensitiveTransform; function caseSensitiveTransform(attributes, attribute) { return attribute in attributes ? attributes[attribute] : attribute; } } }); require_case_insensitive_transform = __commonJS2({ "../../node_modules/property-information/lib/util/case-insensitive-transform.js"(exports, module2) { var caseSensitiveTransform = require_case_sensitive_transform(); module2.exports = caseInsensitiveTransform; function caseInsensitiveTransform(attributes, property) { return caseSensitiveTransform(attributes, property.toLowerCase()); } } }); require_xmlns = __commonJS2({ "../../node_modules/property-information/lib/xmlns.js"(exports, module2) { var create = require_create(), caseInsensitiveTransform = require_case_insensitive_transform(); module2.exports = create({ space: "xmlns", attributes: { xmlnsxlink: "xmlns:xlink" }, transform: caseInsensitiveTransform, properties: { xmlns: null, xmlnsXLink: null } }); } }); require_aria = __commonJS2({ "../../node_modules/property-information/lib/aria.js"(exports, module2) { var types = require_types(), create = require_create(), booleanish = types.booleanish, number = types.number, spaceSeparated = types.spaceSeparated; module2.exports = create({ transform: ariaTransform, properties: { ariaActiveDescendant: null, ariaAtomic: booleanish, ariaAutoComplete: null, ariaBusy: booleanish, ariaChecked: booleanish, ariaColCount: number, ariaColIndex: number, ariaColSpan: number, ariaControls: spaceSeparated, ariaCurrent: null, ariaDescribedBy: spaceSeparated, ariaDetails: null, ariaDisabled: booleanish, ariaDropEffect: spaceSeparated, ariaErrorMessage: null, ariaExpanded: booleanish, ariaFlowTo: spaceSeparated, ariaGrabbed: booleanish, ariaHasPopup: null, ariaHidden: booleanish, ariaInvalid: null, ariaKeyShortcuts: null, ariaLabel: null, ariaLabelledBy: spaceSeparated, ariaLevel: number, ariaLive: null, ariaModal: booleanish, ariaMultiLine: booleanish, ariaMultiSelectable: booleanish, ariaOrientation: null, ariaOwns: spaceSeparated, ariaPlaceholder: null, ariaPosInSet: number, ariaPressed: booleanish, ariaReadOnly: booleanish, ariaRelevant: null, ariaRequired: booleanish, ariaRoleDescription: spaceSeparated, ariaRowCount: number, ariaRowIndex: number, ariaRowSpan: number, ariaSelected: booleanish, ariaSetSize: number, ariaSort: null, ariaValueMax: number, ariaValueMin: number, ariaValueNow: number, ariaValueText: null, role: null } }); function ariaTransform(_, prop) { return prop === "role" ? prop : "aria-" + prop.slice(4).toLowerCase(); } } }); require_html = __commonJS2({ "../../node_modules/property-information/lib/html.js"(exports, module2) { var types = require_types(), create = require_create(), caseInsensitiveTransform = require_case_insensitive_transform(), boolean = types.boolean, overloadedBoolean = types.overloadedBoolean, booleanish = types.booleanish, number = types.number, spaceSeparated = types.spaceSeparated, commaSeparated = types.commaSeparated; module2.exports = create({ space: "html", attributes: { acceptcharset: "accept-charset", classname: "class", htmlfor: "for", httpequiv: "http-equiv" }, transform: caseInsensitiveTransform, mustUseProperty: ["checked", "multiple", "muted", "selected"], properties: { abbr: null, accept: commaSeparated, acceptCharset: spaceSeparated, accessKey: spaceSeparated, action: null, allow: null, allowFullScreen: boolean, allowPaymentRequest: boolean, allowUserMedia: boolean, alt: null, as: null, async: boolean, autoCapitalize: null, autoComplete: spaceSeparated, autoFocus: boolean, autoPlay: boolean, capture: boolean, charSet: null, checked: boolean, cite: null, className: spaceSeparated, cols: number, colSpan: null, content: null, contentEditable: booleanish, controls: boolean, controlsList: spaceSeparated, coords: number | commaSeparated, crossOrigin: null, data: null, dateTime: null, decoding: null, default: boolean, defer: boolean, dir: null, dirName: null, disabled: boolean, download: overloadedBoolean, draggable: booleanish, encType: null, enterKeyHint: null, form: null, formAction: null, formEncType: null, formMethod: null, formNoValidate: boolean, formTarget: null, headers: spaceSeparated, height: number, hidden: boolean, high: number, href: null, hrefLang: null, htmlFor: spaceSeparated, httpEquiv: spaceSeparated, id: null, imageSizes: null, imageSrcSet: commaSeparated, inputMode: null, integrity: null, is: null, isMap: boolean, itemId: null, itemProp: spaceSeparated, itemRef: spaceSeparated, itemScope: boolean, itemType: spaceSeparated, kind: null, label: null, lang: null, language: null, list: null, loading: null, loop: boolean, low: number, manifest: null, max: null, maxLength: number, media: null, method: null, min: null, minLength: number, multiple: boolean, muted: boolean, name: null, nonce: null, noModule: boolean, noValidate: boolean, onAbort: null, onAfterPrint: null, onAuxClick: null, onBeforePrint: null, onBeforeUnload: null, onBlur: null, onCancel: null, onCanPlay: null, onCanPlayThrough: null, onChange: null, onClick: null, onClose: null, onContextMenu: 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, onRejectionHand