"use strict";
// The require scope
var __webpack_require__ = {};
/************************************************************************/ // webpack/runtime/compat_get_default_export
(()=>{
    // getDefaultExport function for compatibility with non-ESM modules
    __webpack_require__.n = function(module) {
        var getter = module && module.__esModule ? function() {
            return module['default'];
        } : function() {
            return module;
        };
        __webpack_require__.d(getter, {
            a: getter
        });
        return getter;
    };
})();
// webpack/runtime/define_property_getters
(()=>{
    __webpack_require__.d = function(exports1, definition) {
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
// webpack/runtime/has_own_property
(()=>{
    __webpack_require__.o = function(obj, prop) {
        return Object.prototype.hasOwnProperty.call(obj, prop);
    };
})();
// webpack/runtime/make_namespace_object
(()=>{
    // define __esModule on exports
    __webpack_require__.r = function(exports1) {
        if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
/************************************************************************/ var __webpack_exports__ = {};
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
    default: ()=>/* binding */ Markdown_rslib_entry_
});
const external_react_namespaceObject = require("react");
var external_react_default = /*#__PURE__*/ __webpack_require__.n(external_react_namespaceObject);
const external_react_markdown_namespaceObject = require("react-markdown");
var external_react_markdown_default = /*#__PURE__*/ __webpack_require__.n(external_react_markdown_namespaceObject);
const external_remark_gfm_namespaceObject = require("remark-gfm");
var external_remark_gfm_default = /*#__PURE__*/ __webpack_require__.n(external_remark_gfm_namespaceObject);
const external_remark_emoji_namespaceObject = require("remark-emoji");
var external_remark_emoji_default = /*#__PURE__*/ __webpack_require__.n(external_remark_emoji_namespaceObject);
const react_namespaceObject = require("@chakra-ui/react");
const CodeBlock_js_namespaceObject = require("../CodeBlock/CodeBlock.js");
var CodeBlock_js_default = /*#__PURE__*/ __webpack_require__.n(CodeBlock_js_namespaceObject);
const intrinsicComponents = {
    a: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.a, props),
    abbr: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.abbr, props),
    address: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.address, props),
    area: ()=>null,
    article: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.article, props),
    aside: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.aside, props),
    audio: ({ src, controls })=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.audio, {
            src: src,
            controls: controls
        }),
    b: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.b, props),
    base: ()=>null,
    bdi: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.bdi, props),
    bdo: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.bdo, props),
    big: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.big, props),
    blockquote: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.blockquote, props),
    body: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.body, props),
    br: ()=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.br, null),
    button: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.Button, props),
    canvas: ()=>null,
    caption: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.caption, props),
    cite: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.cite, props),
    col: ()=>null,
    colgroup: ()=>null,
    data: ({ value })=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.data, {
            value: value
        }),
    datalist: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.datalist, props),
    dd: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.dd, props),
    del: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.del, props),
    details: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.details, props),
    dfn: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.dfn, props),
    dialog: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.dialog, props),
    div: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.Box, props),
    dl: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.dl, props),
    dt: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.dt, props),
    em: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.em, props),
    embed: ()=>null,
    fieldset: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.fieldset, props),
    figcaption: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.figcaption, props),
    figure: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.figure, props),
    footer: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.footer, props),
    head: ()=>null,
    header: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.header, props),
    hr: ()=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.hr, null),
    html: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.html, props),
    strong: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.Text, {
            as: "strong",
            ...props
        }),
    table: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.Table, props),
    thead: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.thead, props),
    tbody: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.tbody, props),
    tr: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.tr, props),
    th: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.th, props),
    td: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.td, props),
    img: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.Image, props)
};
const specialComponents = {
    h1: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.Heading, {
            as: "h1",
            size: "xl",
            ...props
        }),
    h2: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.Heading, {
            as: "h2",
            size: "lg",
            ...props
        }),
    h3: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.Heading, {
            as: "h3",
            size: "md",
            ...props
        }),
    h4: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.Heading, {
            as: "h4",
            size: "sm",
            ...props
        }),
    h5: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.Heading, {
            as: "h5",
            size: "xs",
            ...props
        }),
    h6: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.Text, {
            as: "h6",
            ...props
        }),
    li: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.ListItem, props),
    ol: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.OrderedList, props),
    td: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.td, props),
    th: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.th, props),
    tr: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.tr, props),
    ul: (props)=>/*#__PURE__*/ external_react_default().createElement(react_namespaceObject.UnorderedList, props)
};
const Markdown = ({ children, theme, ...otherProps })=>/*#__PURE__*/ external_react_default().createElement(external_react_markdown_default(), {
        remarkPlugins: [
            external_remark_gfm_default(),
            external_remark_emoji_default()
        ],
        components: {
            ...intrinsicComponents,
            ...specialComponents,
            code ({ node, inline, className, children, ...props }) {
                const match = /language-(\w+)/.exec(className || '');
                return !inline && match ? /*#__PURE__*/ external_react_default().createElement(CodeBlock_js_default(), {
                    ...otherProps,
                    theme: theme,
                    language: match[1],
                    codeString: String(children).replace(/\n$/, '')
                }) : /*#__PURE__*/ external_react_default().createElement(react_namespaceObject.chakra.code, {
                    ...props,
                    className: className
                }, children);
            }
        }
    }, children);
/* ESM default export */ const Markdown_rslib_entry_ = Markdown;
var __webpack_export_target__ = exports;
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
    value: true
});
