You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
78 KiB
JavaScript

9 months ago
"use strict";
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
exports.id = "vendor-chunks/react-markdown";
exports.ids = ["vendor-chunks/react-markdown"];
exports.modules = {
/***/ "(ssr)/./node_modules/react-markdown/lib/ast-to-react.js":
/*!*********************************************************!*\
!*** ./node_modules/react-markdown/lib/ast-to-react.js ***!
\*********************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ childrenToReact: () => (/* binding */ childrenToReact)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"(ssr)/./node_modules/next/dist/server/future/route-modules/app-page/vendored/ssr/react.js\");\n/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-is */ \"(ssr)/./node_modules/react-is/index.js\");\n/* harmony import */ var hast_util_whitespace__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! hast-util-whitespace */ \"(ssr)/./node_modules/hast-util-whitespace/index.js\");\n/* harmony import */ var property_information__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! property-information */ \"(ssr)/./node_modules/property-information/index.js\");\n/* harmony import */ var property_information__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! property-information */ \"(ssr)/./node_modules/property-information/lib/find.js\");\n/* harmony import */ var property_information__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! property-information */ \"(ssr)/./node_modules/property-information/lib/hast-to-react.js\");\n/* harmony import */ var space_separated_tokens__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! space-separated-tokens */ \"(ssr)/./node_modules/space-separated-tokens/index.js\");\n/* harmony import */ var comma_separated_tokens__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! comma-separated-tokens */ \"(ssr)/./node_modules/comma-separated-tokens/index.js\");\n/* harmony import */ var style_to_object__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! style-to-object */ \"(ssr)/./node_modules/style-to-object/index.mjs\");\n/* harmony import */ var _uri_transformer_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./uri-transformer.js */ \"(ssr)/./node_modules/react-markdown/lib/uri-transformer.js\");\n/**\n * @template T\n * @typedef {import('react').ComponentType<T>} ComponentType<T>\n */ /**\n * @template {import('react').ElementType} T\n * @typedef {import('react').ComponentPropsWithoutRef<T>} ComponentPropsWithoutRef<T>\n */ /**\n * @typedef {import('react').ReactNode} ReactNode\n * @typedef {import('unist').Position} Position\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Root} Root\n * @typedef {import('hast').Text} Text\n * @typedef {import('hast').Comment} Comment\n * @typedef {import('hast').DocType} Doctype\n * @typedef {import('property-information').Info} Info\n * @typedef {import('property-information').Schema} Schema\n * @typedef {import('./complex-types.js').ReactMarkdownProps} ReactMarkdownProps\n *\n * @typedef Raw\n * @property {'raw'} type\n * @property {string} value\n *\n * @typedef Context\n * @property {Options} options\n * @property {Schema} schema\n * @property {number} listDepth\n *\n * @callback TransformLink\n * @param {string} href\n * @param {Array<ElementContent>} children\n * @param {string?} title\n * @returns {string}\n *\n * @callback TransformImage\n * @param {string} src\n * @param {string} alt\n * @param {string?} title\n * @returns {string}\n *\n * @typedef {import('react').HTMLAttributeAnchorTarget} TransformLinkTargetType\n *\n * @callback TransformLinkTarget\n * @param {string} href\n * @param {Array<ElementContent>} children\n * @param {string?} title\n * @returns {TransformLinkTargetType|undefined}\n *\n * @typedef {keyof JSX.IntrinsicElements} ReactMarkdownNames\n *\n * To do: is `data-sourcepos` typeable?\n *\n * @typedef {ComponentPropsWithoutRef<'code'> & ReactMarkdownProps & {inline?: boolean}} CodeProps\n * @typedef {ComponentPropsWithoutRef<'h1'> & ReactMarkdownProps & {level: number}} HeadingProps\n * @typedef {ComponentPropsWithoutRef<'li'> & ReactMarkdownProps & {checked: boolean|null, index: number, ordered: boolean}} LiProps\n * @typedef {ComponentPropsWithoutRef<'ol'>
/***/ }),
/***/ "(ssr)/./node_modules/react-markdown/lib/react-markdown.js":
/*!***********************************************************!*\
!*** ./node_modules/react-markdown/lib/react-markdown.js ***!
\***********************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ReactMarkdown: () => (/* binding */ ReactMarkdown)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"(ssr)/./node_modules/next/dist/server/future/route-modules/app-page/vendored/ssr/react.js\");\n/* harmony import */ var vfile__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vfile */ \"(ssr)/./node_modules/vfile/lib/index.js\");\n/* harmony import */ var unified__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! unified */ \"(ssr)/./node_modules/unified/lib/index.js\");\n/* harmony import */ var remark_parse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! remark-parse */ \"(ssr)/./node_modules/remark-parse/index.js\");\n/* harmony import */ var remark_rehype__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! remark-rehype */ \"(ssr)/./node_modules/remark-rehype/lib/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ \"(ssr)/./node_modules/prop-types/index.js\");\n/* harmony import */ var property_information__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! property-information */ \"(ssr)/./node_modules/property-information/index.js\");\n/* harmony import */ var _rehype_filter_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./rehype-filter.js */ \"(ssr)/./node_modules/react-markdown/lib/rehype-filter.js\");\n/* harmony import */ var _ast_to_react_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ast-to-react.js */ \"(ssr)/./node_modules/react-markdown/lib/ast-to-react.js\");\n/**\n * @typedef {import('react').ReactNode} ReactNode\n * @typedef {import('react').ReactElement<{}>} ReactElement\n * @typedef {import('unified').PluggableList} PluggableList\n * @typedef {import('hast').Root} Root\n * @typedef {import('./rehype-filter.js').Options} FilterOptions\n * @typedef {import('./ast-to-react.js').Options} TransformOptions\n *\n * @typedef CoreOptions\n * @property {string} children\n *\n * @typedef PluginOptions\n * @property {PluggableList} [remarkPlugins=[]]\n * @property {PluggableList} [rehypePlugins=[]]\n * @property {import('remark-rehype').Options | undefined} [remarkRehypeOptions={}]\n *\n * @typedef LayoutOptions\n * @property {string} [className]\n *\n * @typedef {CoreOptions & PluginOptions & LayoutOptions & FilterOptions & TransformOptions} ReactMarkdownOptions\n *\n * @typedef Deprecation\n * @property {string} id\n * @property {string} [to]\n */ \n\n\n\n\n\n\n\n\nconst own = {}.hasOwnProperty;\nconst changelog = \"https://github.com/remarkjs/react-markdown/blob/main/changelog.md\";\n/** @type {Record<string, Deprecation>} */ const deprecated = {\n plugins: {\n to: \"remarkPlugins\",\n id: \"change-plugins-to-remarkplugins\"\n },\n renderers: {\n to: \"components\",\n id: \"change-renderers-to-components\"\n },\n astPlugins: {\n id: \"remove-buggy-html-in-markdown-parser\"\n },\n allowDangerousHtml: {\n id: \"remove-buggy-html-in-markdown-parser\"\n },\n escapeHtml: {\n id: \"remove-buggy-html-in-markdown-parser\"\n },\n source: {\n to: \"children\",\n id: \"change-source-to-children\"\n },\n allowNode: {\n to: \"allowElement\",\n id: \"replace-allownode-allowedtypes-and-disallowedtypes\"\n },\n allowedTypes: {\n to: \"allowedElements\",\n id: \"replace-allownode-allowedtypes-and-disallowedtypes\"\n },\n disallowedTypes: {\n to: \"disallowedElements\",\n id: \"replace-allownode-allowedtypes-and-disallowedtypes\"\n },\n includeNodeIndex: {\n to: \"includeElementIndex\",\n id: \"change-includenodeindex-to-includeelementindex\"\n }\n};\n/**\n * React component to render markdown.\n *\n * @param {ReactMarkdownOptions} options\n * @returns {ReactElement}\n */ function ReactMarkdown(options) {\n for(const key in de
/***/ }),
/***/ "(ssr)/./node_modules/react-markdown/lib/rehype-filter.js":
/*!**********************************************************!*\
!*** ./node_modules/react-markdown/lib/rehype-filter.js ***!
\**********************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ rehypeFilter)\n/* harmony export */ });\n/* harmony import */ var unist_util_visit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! unist-util-visit */ \"(ssr)/./node_modules/unist-util-visit/lib/index.js\");\n\n/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('hast').Root} Root\n * @typedef {import('hast').Element} Element\n *\n * @callback AllowElement\n * @param {Element} element\n * @param {number} index\n * @param {Element|Root} parent\n * @returns {boolean|undefined}\n *\n * @typedef Options\n * @property {Array<string>} [allowedElements]\n * @property {Array<string>} [disallowedElements=[]]\n * @property {AllowElement} [allowElement]\n * @property {boolean} [unwrapDisallowed=false]\n */ /**\n * @type {import('unified').Plugin<[Options], Root>}\n */ function rehypeFilter(options) {\n if (options.allowedElements && options.disallowedElements) {\n throw new TypeError(\"Only one of `allowedElements` and `disallowedElements` should be defined\");\n }\n if (options.allowedElements || options.disallowedElements || options.allowElement) {\n return (tree)=>{\n (0,unist_util_visit__WEBPACK_IMPORTED_MODULE_0__.visit)(tree, \"element\", (node, index, parent_)=>{\n const parent = /** @type {Element|Root} */ parent_;\n /** @type {boolean|undefined} */ let remove;\n if (options.allowedElements) {\n remove = !options.allowedElements.includes(node.tagName);\n } else if (options.disallowedElements) {\n remove = options.disallowedElements.includes(node.tagName);\n }\n if (!remove && options.allowElement && typeof index === \"number\") {\n remove = !options.allowElement(node, index, parent);\n }\n if (remove && typeof index === \"number\") {\n if (options.unwrapDisallowed && node.children) {\n parent.children.splice(index, 1, ...node.children);\n } else {\n parent.children.splice(index, 1);\n }\n return index;\n }\n return undefined;\n });\n };\n }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiKHNzcikvLi9ub2RlX21vZHVsZXMvcmVhY3QtbWFya2Rvd24vbGliL3JlaHlwZS1maWx0ZXIuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBc0M7QUFFdEM7Ozs7Ozs7Ozs7Ozs7Ozs7Q0FnQkMsR0FFRDs7Q0FFQyxHQUNjLFNBQVNDLGFBQWFDLE9BQU87SUFDMUMsSUFBSUEsUUFBUUMsZUFBZSxJQUFJRCxRQUFRRSxrQkFBa0IsRUFBRTtRQUN6RCxNQUFNLElBQUlDLFVBQ1I7SUFFSjtJQUVBLElBQ0VILFFBQVFDLGVBQWUsSUFDdkJELFFBQVFFLGtCQUFrQixJQUMxQkYsUUFBUUksWUFBWSxFQUNwQjtRQUNBLE9BQU8sQ0FBQ0M7WUFDTlAsdURBQUtBLENBQUNPLE1BQU0sV0FBVyxDQUFDQyxNQUFNQyxPQUFPQztnQkFDbkMsTUFBTUMsU0FBUyx5QkFBeUIsR0FBSUQ7Z0JBQzVDLDhCQUE4QixHQUM5QixJQUFJRTtnQkFFSixJQUFJVixRQUFRQyxlQUFlLEVBQUU7b0JBQzNCUyxTQUFTLENBQUNWLFFBQVFDLGVBQWUsQ0FBQ1UsUUFBUSxDQUFDTCxLQUFLTSxPQUFPO2dCQUN6RCxPQUFPLElBQUlaLFFBQVFFLGtCQUFrQixFQUFFO29CQUNyQ1EsU0FBU1YsUUFBUUUsa0JBQWtCLENBQUNTLFFBQVEsQ0FBQ0wsS0FBS00sT0FBTztnQkFDM0Q7Z0JBRUEsSUFBSSxDQUFDRixVQUFVVixRQUFRSSxZQUFZLElBQUksT0FBT0csVUFBVSxVQUFVO29CQUNoRUcsU0FBUyxDQUFDVixRQUFRSSxZQUFZLENBQUNFLE1BQU1DLE9BQU9FO2dCQUM5QztnQkFFQSxJQUFJQyxVQUFVLE9BQU9ILFVBQVUsVUFBVTtvQkFDdkMsSUFBSVAsUUFBUWEsZ0JBQWdCLElBQUlQLEtBQUtRLFFBQVEsRUFBRTt3QkFDN0NMLE9BQU9LLFFBQVEsQ0FBQ0MsTUFBTSxDQUFDUixPQUFPLE1BQU1ELEtBQUtRLFFBQVE7b0JBQ25ELE9BQU87d0JBQ0xMLE9BQU9LLFFBQVEsQ0FBQ0MsTUFBTSxDQUFDUixPQUFPO29CQUNoQztvQkFFQSxPQUFPQTtnQkFDVDtnQkFFQSxPQUFPUztZQUNUO1FBQ0Y7SUFDRjtBQUNGIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbmV4dGNoYXQvLi9ub2RlX21vZHVsZXMvcmVhY3QtbWFya2Rvd24vbGliL3JlaHlwZS1maWx0ZXIuanM/NTVkZiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge3Zpc2l0fSBmcm9tICd1bmlzdC11dGlsLXZpc2l0J1xuXG4vKipcbiAqIEB0eXBlZGVmIHtpbXBvcnQoJ3VuaXN0JykuTm9kZX0gTm9kZVxuICogQ
/***/ }),
/***/ "(ssr)/./node_modules/react-markdown/lib/uri-transformer.js":
/*!************************************************************!*\
!*** ./node_modules/react-markdown/lib/uri-transformer.js ***!
\************************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ uriTransformer: () => (/* binding */ uriTransformer)\n/* harmony export */ });\nconst protocols = [\n \"http\",\n \"https\",\n \"mailto\",\n \"tel\"\n];\n/**\n * @param {string} uri\n * @returns {string}\n */ function uriTransformer(uri) {\n const url = (uri || \"\").trim();\n const first = url.charAt(0);\n if (first === \"#\" || first === \"/\") {\n return url;\n }\n const colon = url.indexOf(\":\");\n if (colon === -1) {\n return url;\n }\n let index = -1;\n while(++index < protocols.length){\n const protocol = protocols[index];\n if (colon === protocol.length && url.slice(0, protocol.length).toLowerCase() === protocol) {\n return url;\n }\n }\n index = url.indexOf(\"?\");\n if (index !== -1 && colon > index) {\n return url;\n }\n index = url.indexOf(\"#\");\n if (index !== -1 && colon > index) {\n return url;\n }\n // eslint-disable-next-line no-script-url\n return \"javascript:void(0)\";\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiKHNzcikvLi9ub2RlX21vZHVsZXMvcmVhY3QtbWFya2Rvd24vbGliL3VyaS10cmFuc2Zvcm1lci5qcyIsIm1hcHBpbmdzIjoiOzs7O0FBQUEsTUFBTUEsWUFBWTtJQUFDO0lBQVE7SUFBUztJQUFVO0NBQU07QUFFcEQ7OztDQUdDLEdBQ00sU0FBU0MsZUFBZUMsR0FBRztJQUNoQyxNQUFNQyxNQUFNLENBQUNELE9BQU8sRUFBQyxFQUFHRSxJQUFJO0lBQzVCLE1BQU1DLFFBQVFGLElBQUlHLE1BQU0sQ0FBQztJQUV6QixJQUFJRCxVQUFVLE9BQU9BLFVBQVUsS0FBSztRQUNsQyxPQUFPRjtJQUNUO0lBRUEsTUFBTUksUUFBUUosSUFBSUssT0FBTyxDQUFDO0lBQzFCLElBQUlELFVBQVUsQ0FBQyxHQUFHO1FBQ2hCLE9BQU9KO0lBQ1Q7SUFFQSxJQUFJTSxRQUFRLENBQUM7SUFFYixNQUFPLEVBQUVBLFFB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09PSAtMSkge1xuICAgIHJldHVybiB1cmxcbiAgfVxuXG4gIGxldCBpbmRleCA9IC0xXG5cbiAgd2hpbGUgKCsraW5kZXggPCBwcm90b2NvbHMubGVuZ3RoKSB7XG4gICAgY29uc3QgcHJvdG9jb2wgPSBwcm90b2NvbHNbaW5kZXhdXG5cbiAgICBpZiAoXG4gICAgICBjb2xvbiA9PT0gcHJvdG9jb2wubGVuZ3RoICYmXG4gICAgICB1cmwuc2xpY2UoMCwgcHJvdG9jb2wubGVuZ3RoKS50b0xvd2VyQ2FzZSgpID09PSBwcm90b2NvbFxuICAgICkge1xuICAgICAgcmV0dXJuIHVybFxuICAgIH1cbiAgfVxuXG4gIGluZGV4ID0gdXJsLmluZGV4T2YoJz8nKVxuICBpZiAoaW5kZXggIT09IC0xICYmIGNvbG9uID4gaW5kZXgpIHtcbiAgICByZXR1cm4gdXJsXG4gIH1cblxuICBpbmRleCA9IHVybC5pbmRleE9mKCcjJylcbiAgaWYgKGluZGV4ICE9PSAtMSAmJiBjb2xvbiA+IGluZGV4KSB7XG4gICAgcmV0dXJuIHVybFxuICB9XG5cbiAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIG5vLXNjcmlwdC11cmxcbiAgcmV0dXJuICdqYXZhc2NyaXB0OnZvaWQoMCknXG59XG4iXSwibmFtZXMiOlsicHJvdG9jb2xzIiwidXJpVHJhbnNmb3JtZXIiLCJ1cmkiLCJ1cmwiLCJ0cmltIiwiZmlyc3QiLCJjaGFyQXQiLCJjb2xvbiIsImluZGV4T2YiLCJpbmRleCIsImxlbmd0aCIsInByb3RvY29sIiwic2xpY2UiLCJ0b0xvd2VyQ2FzZSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///(ssr)/./node_modules/react-markdown/lib/uri-transformer.js\n");
/***/ })
};
;