@glodon-aiot/agent-cli-ui 3.19.0-alpha.30 → 3.19.0-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/index.mjs +8211 -302
- package/dist/lib/index.js +16 -326
- package/dist/src/utils/reactDomCompat.d.ts +3 -0
- package/package.json +10 -13
- package/dist/es/AgentClientUI.mjs +0 -150
- package/dist/es/Dialog/AgentChat/HistoryItem/FileItem/index.mjs +0 -88
- package/dist/es/Dialog/AgentChat/HistoryItem/InputProgress/index.mjs +0 -38
- package/dist/es/Dialog/AgentChat/HistoryItem/SearchReference/index.mjs +0 -101
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionAction/index.mjs +0 -248
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/ReferItem/index.mjs +0 -86
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs +0 -92
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRelated/index.mjs +0 -46
- package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +0 -384
- package/dist/es/Dialog/AgentChat/PromptSetting/index.mjs +0 -105
- package/dist/es/Dialog/AgentChat/Tools/ConnectToNetwork/index.mjs +0 -92
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PromptListItem.mjs +0 -89
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PublicPromptList.mjs +0 -47
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/access/empty.svg.mjs +0 -4
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/index.mjs +0 -120
- package/dist/es/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.mjs +0 -48
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +0 -47
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/SessionItem.mjs +0 -135
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.mjs +0 -119
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/index.mjs +0 -44
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/ClearModal/index.mjs +0 -50
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/FileCard/index.mjs +0 -128
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.mjs +0 -374
- package/dist/es/Dialog/AgentChat/index.mjs +0 -1147
- package/dist/es/Dialog/SessionList/index.mjs +0 -401
- package/dist/es/Dialog/UploadingPrompt/index.mjs +0 -64
- package/dist/es/Dialog/index.mjs +0 -180
- package/dist/es/Footer/FooterWarning.mjs +0 -24
- package/dist/es/Footer/index.mjs +0 -17
- package/dist/es/QuillEditor/index.mjs +0 -278
- package/dist/es/ReactTextGenerationUI/components/TextSiders/index.mjs +0 -406
- package/dist/es/ReactTextGenerationUI/components/fetchEventSource/fetch.mjs +0 -112
- package/dist/es/ReactTextGenerationUI/components/fetchEventSource/parse.mjs +0 -97
- package/dist/es/ReactTextGenerationUI/index.mjs +0 -81
- package/dist/es/_virtual/_commonjsHelpers.mjs +0 -8
- package/dist/es/_virtual/index.mjs +0 -4
- package/dist/es/_virtual/index2.mjs +0 -4
- package/dist/es/_virtual/index3.mjs +0 -4
- package/dist/es/_virtual/lib.mjs +0 -4
- package/dist/es/_virtual/prism-core.mjs +0 -4
- package/dist/es/_virtual/types.mjs +0 -4
- package/dist/es/_virtual/ua-parser.min.mjs +0 -4
- package/dist/es/_virtual/utilities.mjs +0 -4
- package/dist/es/assets/brand.svg.mjs +0 -4
- package/dist/es/assets/doc-icons/doc.svg.mjs +0 -4
- package/dist/es/assets/doc-icons/docx.svg.mjs +0 -4
- package/dist/es/assets/doc-icons/pdf.svg.mjs +0 -4
- package/dist/es/assets/icon.svg.mjs +0 -4
- package/dist/es/assets/think.svg.mjs +0 -4
- package/dist/es/components/FilePreview/index.mjs +0 -83
- package/dist/es/components/Greeting/index.mjs +0 -30
- package/dist/es/components/Iconfont/index.mjs +0 -12
- package/dist/es/components/JsonDisplay/index.mjs +0 -15
- package/dist/es/components/KnowledgeList/KnowledgeSelect/index.mjs +0 -67
- package/dist/es/components/KnowledgeList/index.mjs +0 -79
- package/dist/es/components/Recommend/RecommendItem.mjs +0 -97
- package/dist/es/components/Recommend/index.mjs +0 -76
- package/dist/es/components/Recommend/tip.svg.mjs +0 -4
- package/dist/es/components/Sider/index.mjs +0 -24
- package/dist/es/components/WebLink/index.mjs +0 -26
- package/dist/es/constant.mjs +0 -124
- package/dist/es/context/SessionContext.mjs +0 -26
- package/dist/es/context.mjs +0 -7
- package/dist/es/hooks/useSessionState.mjs +0 -6
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +0 -9
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +0 -8
- package/dist/es/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +0 -12
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +0 -13
- package/dist/es/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +0 -7
- package/dist/es/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +0 -7
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +0 -15
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +0 -15
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +0 -10
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +0 -16
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +0 -9
- package/dist/es/node_modules/@babel/runtime/helpers/esm/typeof.mjs +0 -11
- package/dist/es/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +0 -12
- package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +0 -201
- package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +0 -1087
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +0 -104
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +0 -568
- package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +0 -158
- package/dist/es/node_modules/@ungap/structured-clone/esm/deserialize.mjs +0 -70
- package/dist/es/node_modules/@ungap/structured-clone/esm/index.mjs +0 -11
- package/dist/es/node_modules/@ungap/structured-clone/esm/serialize.mjs +0 -124
- package/dist/es/node_modules/@ungap/structured-clone/esm/types.mjs +0 -13
- package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +0 -847
- package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +0 -35
- package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +0 -226
- package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +0 -33
- package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +0 -20
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +0 -76
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +0 -13
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +0 -34
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +0 -178
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +0 -83
- package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +0 -84
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +0 -9
- package/dist/es/node_modules/antd-mobile/es/global/index.mjs +0 -3
- package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +0 -141
- package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +0 -9
- package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +0 -7
- package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +0 -9
- package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +0 -6
- package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +0 -22
- package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +0 -11
- package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +0 -12
- package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +0 -47
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +0 -12
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +0 -13
- package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +0 -52
- package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +0 -11
- package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +0 -10
- package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +0 -15
- package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +0 -6
- package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +0 -8
- package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +0 -54
- package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +0 -32
- package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +0 -11
- package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +0 -19
- package/dist/es/node_modules/ccount/index.mjs +0 -12
- package/dist/es/node_modules/character-reference-invalid/index.json.mjs +0 -33
- package/dist/es/node_modules/comma-separated-tokens/index.mjs +0 -18
- package/dist/es/node_modules/decode-named-character-reference/index.dom.mjs +0 -14
- package/dist/es/node_modules/devlop/lib/default.mjs +0 -8
- package/dist/es/node_modules/estree-util-is-identifier-name/lib/index.mjs +0 -7
- package/dist/es/node_modules/extend/index.mjs +0 -46
- package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +0 -93
- package/dist/es/node_modules/hast-util-from-dom/node_modules/web-namespaces/index.mjs +0 -11
- package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +0 -16
- package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +0 -61
- package/dist/es/node_modules/hast-util-parse-selector/index.mjs +0 -14
- package/dist/es/node_modules/hast-util-to-jsx-runtime/lib/index.mjs +0 -298
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/index.mjs +0 -12
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/aria.mjs +0 -61
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/find.mjs +0 -33
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/hast-to-react.mjs +0 -22
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/html.mjs +0 -368
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/normalize.mjs +0 -6
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/svg.mjs +0 -566
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/create.mjs +0 -14
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/defined-info.mjs +0 -36
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/info.mjs +0 -28
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/merge.mjs +0 -10
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/schema.mjs +0 -21
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/types.mjs +0 -15
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xlink.mjs +0 -19
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xml.mjs +0 -15
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xmlns.mjs +0 -16
- package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +0 -223
- package/dist/es/node_modules/hast-util-whitespace/lib/index.mjs +0 -10
- package/dist/es/node_modules/hastscript/lib/create-h.mjs +0 -126
- package/dist/es/node_modules/hastscript/lib/index.mjs +0 -8
- package/dist/es/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +0 -4
- package/dist/es/node_modules/hastscript/node_modules/hast-util-parse-selector/lib/index.mjs +0 -20
- package/dist/es/node_modules/hastscript/node_modules/property-information/index.mjs +0 -12
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/aria.mjs +0 -61
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/find.mjs +0 -33
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/html.mjs +0 -368
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/normalize.mjs +0 -6
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/svg.mjs +0 -566
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/create.mjs +0 -14
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/defined-info.mjs +0 -36
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/info.mjs +0 -28
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/merge.mjs +0 -10
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/schema.mjs +0 -21
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/types.mjs +0 -15
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xlink.mjs +0 -19
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xml.mjs +0 -15
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xmlns.mjs +0 -16
- package/dist/es/node_modules/html-url-attributes/lib/index.mjs +0 -16
- package/dist/es/node_modules/is-alphabetical/index.mjs +0 -8
- package/dist/es/node_modules/is-alphanumerical/index.mjs +0 -9
- package/dist/es/node_modules/is-decimal/index.mjs +0 -8
- package/dist/es/node_modules/is-hexadecimal/index.mjs +0 -8
- package/dist/es/node_modules/katex/dist/katex.mjs +0 -11700
- package/dist/es/node_modules/longest-streak/index.mjs +0 -12
- package/dist/es/node_modules/markdown-table/index.mjs +0 -70
- package/dist/es/node_modules/mdast-util-find-and-replace/lib/index.mjs +0 -72
- package/dist/es/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.mjs +0 -8
- package/dist/es/node_modules/mdast-util-from-markdown/lib/index.mjs +0 -584
- package/dist/es/node_modules/mdast-util-gfm/lib/index.mjs +0 -17
- package/dist/es/node_modules/mdast-util-gfm-autolink-literal/lib/index.mjs +0 -136
- package/dist/es/node_modules/mdast-util-gfm-footnote/lib/index.mjs +0 -100
- package/dist/es/node_modules/mdast-util-gfm-strikethrough/lib/index.mjs +0 -61
- package/dist/es/node_modules/mdast-util-gfm-table/lib/index.mjs +0 -170
- package/dist/es/node_modules/mdast-util-gfm-task-list-item/lib/index.mjs +0 -72
- package/dist/es/node_modules/mdast-util-math/lib/index.mjs +0 -170
- package/dist/es/node_modules/mdast-util-phrasing/lib/index.mjs +0 -30
- package/dist/es/node_modules/mdast-util-to-hast/lib/footer.mjs +0 -123
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/blockquote.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/break.mjs +0 -16
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/code.mjs +0 -25
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/delete.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/emphasis.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.mjs +0 -31
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/heading.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/html.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image-reference.mjs +0 -22
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image.mjs +0 -17
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/index.mjs +0 -58
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/inline-code.mjs +0 -17
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link-reference.mjs +0 -21
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link.mjs +0 -17
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list-item.mjs +0 -65
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list.mjs +0 -21
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/paragraph.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/root.mjs +0 -10
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/strong.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-cell.mjs +0 -13
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-row.mjs +0 -26
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table.mjs +0 -35
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/text.mjs +0 -11
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/index.mjs +0 -19
- package/dist/es/node_modules/mdast-util-to-hast/lib/revert.mjs +0 -22
- package/dist/es/node_modules/mdast-util-to-hast/lib/state.mjs +0 -145
- package/dist/es/node_modules/mdast-util-to-hast/node_modules/unist-util-visit/lib/index.mjs +0 -16
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/blockquote.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/break.mjs +0 -13
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/code.mjs +0 -49
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/definition.mjs +0 -37
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/emphasis.mjs +0 -37
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/heading.mjs +0 -44
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/html.mjs +0 -10
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image-reference.mjs +0 -36
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image.mjs +0 -40
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/index.mjs +0 -44
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/inline-code.mjs +0 -22
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link-reference.mjs +0 -36
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link.mjs +0 -50
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list-item.mjs +0 -19
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list.mjs +0 -35
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/paragraph.mjs +0 -7
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/root.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/strong.mjs +0 -37
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/text.mjs +0 -6
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.mjs +0 -14
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-fence.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-quote.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-strong.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.mjs +0 -6
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-info.mjs +0 -67
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.mjs +0 -13
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.mjs +0 -15
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.mjs +0 -15
- package/dist/es/node_modules/mdast-util-to-markdown/node_modules/unist-util-visit/lib/index.mjs +0 -16
- package/dist/es/node_modules/mdast-util-to-string/lib/index.mjs +0 -29
- package/dist/es/node_modules/micromark/lib/constructs.mjs +0 -85
- package/dist/es/node_modules/micromark/lib/create-tokenizer.mjs +0 -225
- package/dist/es/node_modules/micromark/lib/initialize/content.mjs +0 -37
- package/dist/es/node_modules/micromark/lib/initialize/document.mjs +0 -133
- package/dist/es/node_modules/micromark/lib/initialize/flow.mjs +0 -33
- package/dist/es/node_modules/micromark/lib/initialize/text.mjs +0 -103
- package/dist/es/node_modules/micromark/lib/parse.mjs +0 -32
- package/dist/es/node_modules/micromark/lib/postprocess.mjs +0 -9
- package/dist/es/node_modules/micromark/lib/preprocess.mjs +0 -40
- package/dist/es/node_modules/micromark-core-commonmark/lib/attention.mjs +0 -74
- package/dist/es/node_modules/micromark-core-commonmark/lib/autolink.mjs +0 -43
- package/dist/es/node_modules/micromark-core-commonmark/lib/blank-line.mjs +0 -18
- package/dist/es/node_modules/micromark-core-commonmark/lib/block-quote.mjs +0 -42
- package/dist/es/node_modules/micromark-core-commonmark/lib/character-escape.mjs +0 -17
- package/dist/es/node_modules/micromark-core-commonmark/lib/character-reference.mjs +0 -30
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-fenced.mjs +0 -94
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-indented.mjs +0 -43
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-text.mjs +0 -45
- package/dist/es/node_modules/micromark-core-commonmark/lib/content.mjs +0 -50
- package/dist/es/node_modules/micromark-core-commonmark/lib/definition.mjs +0 -80
- package/dist/es/node_modules/micromark-core-commonmark/lib/hard-break-escape.mjs +0 -17
- package/dist/es/node_modules/micromark-core-commonmark/lib/heading-atx.mjs +0 -46
- package/dist/es/node_modules/micromark-core-commonmark/lib/html-flow.mjs +0 -144
- package/dist/es/node_modules/micromark-core-commonmark/lib/html-text.mjs +0 -102
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-end.mjs +0 -152
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-image.mjs +0 -22
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-link.mjs +0 -19
- package/dist/es/node_modules/micromark-core-commonmark/lib/line-ending.mjs +0 -14
- package/dist/es/node_modules/micromark-core-commonmark/lib/list.mjs +0 -90
- package/dist/es/node_modules/micromark-core-commonmark/lib/setext-underline.mjs +0 -62
- package/dist/es/node_modules/micromark-core-commonmark/lib/thematic-break.mjs +0 -25
- package/dist/es/node_modules/micromark-extension-gfm/index.mjs +0 -12
- package/dist/es/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.mjs +0 -193
- package/dist/es/node_modules/micromark-extension-gfm-footnote/lib/syntax.mjs +0 -192
- package/dist/es/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.mjs +0 -68
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/edit-map.mjs +0 -71
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/infer.mjs +0 -24
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/syntax.mjs +0 -147
- package/dist/es/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.mjs +0 -45
- package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +0 -76
- package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +0 -48
- package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +0 -15
- package/dist/es/node_modules/micromark-factory-destination/index.mjs +0 -31
- package/dist/es/node_modules/micromark-factory-label/index.mjs +0 -28
- package/dist/es/node_modules/micromark-factory-space/index.mjs +0 -15
- package/dist/es/node_modules/micromark-factory-title/index.mjs +0 -26
- package/dist/es/node_modules/micromark-factory-whitespace/index.mjs +0 -12
- package/dist/es/node_modules/micromark-util-character/index.mjs +0 -39
- package/dist/es/node_modules/micromark-util-chunked/index.mjs +0 -16
- package/dist/es/node_modules/micromark-util-classify-character/index.mjs +0 -10
- package/dist/es/node_modules/micromark-util-combine-extensions/index.mjs +0 -36
- package/dist/es/node_modules/micromark-util-decode-numeric-character-reference/index.mjs +0 -16
- package/dist/es/node_modules/micromark-util-decode-string/index.mjs +0 -18
- package/dist/es/node_modules/micromark-util-html-tag-name/index.mjs +0 -5
- package/dist/es/node_modules/micromark-util-normalize-identifier/index.mjs +0 -6
- package/dist/es/node_modules/micromark-util-resolve-all/index.mjs +0 -12
- package/dist/es/node_modules/micromark-util-sanitize-uri/index.mjs +0 -23
- package/dist/es/node_modules/micromark-util-subtokenize/index.mjs +0 -65
- package/dist/es/node_modules/micromark-util-subtokenize/lib/splice-buffer.mjs +0 -175
- package/dist/es/node_modules/moment/dist/moment.mjs +0 -2301
- package/dist/es/node_modules/parse-entities/decode-entity.browser.mjs +0 -8
- package/dist/es/node_modules/parse-entities/index.mjs +0 -83
- package/dist/es/node_modules/parse-entities/node_modules/character-entities-legacy/index.json.mjs +0 -217
- package/dist/es/node_modules/property-information/find.mjs +0 -25
- package/dist/es/node_modules/property-information/html.mjs +0 -10
- package/dist/es/node_modules/property-information/lib/aria.mjs +0 -63
- package/dist/es/node_modules/property-information/lib/html.mjs +0 -354
- package/dist/es/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -8
- package/dist/es/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -7
- package/dist/es/node_modules/property-information/lib/util/create.mjs +0 -13
- package/dist/es/node_modules/property-information/lib/util/defined-info.mjs +0 -18
- package/dist/es/node_modules/property-information/lib/util/info.mjs +0 -19
- package/dist/es/node_modules/property-information/lib/util/merge.mjs +0 -11
- package/dist/es/node_modules/property-information/lib/util/schema.mjs +0 -10
- package/dist/es/node_modules/property-information/lib/util/types.mjs +0 -15
- package/dist/es/node_modules/property-information/lib/xlink.mjs +0 -20
- package/dist/es/node_modules/property-information/lib/xml.mjs +0 -16
- package/dist/es/node_modules/property-information/lib/xmlns.mjs +0 -16
- package/dist/es/node_modules/property-information/normalize.mjs +0 -7
- package/dist/es/node_modules/react-device-detect/dist/lib.mjs +0 -723
- package/dist/es/node_modules/react-markdown/lib/index.mjs +0 -153
- package/dist/es/node_modules/react-markdown/node_modules/remark-parse/lib/index.mjs +0 -29
- package/dist/es/node_modules/react-markdown/node_modules/unist-util-visit/lib/index.mjs +0 -16
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +0 -7
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +0 -101
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +0 -283
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +0 -4
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +0 -10
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +0 -195
- package/dist/es/node_modules/refractor/core.mjs +0 -111
- package/dist/es/node_modules/refractor/index.mjs +0 -553
- package/dist/es/node_modules/refractor/lang/abap.mjs +0 -60
- package/dist/es/node_modules/refractor/lang/abnf.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/actionscript.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/ada.mjs +0 -28
- package/dist/es/node_modules/refractor/lang/agda.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/al.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/antlr4.mjs +0 -72
- package/dist/es/node_modules/refractor/lang/apacheconf.mjs +0 -59
- package/dist/es/node_modules/refractor/lang/apex.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/apl.mjs +0 -44
- package/dist/es/node_modules/refractor/lang/applescript.mjs +0 -26
- package/dist/es/node_modules/refractor/lang/aql.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/arduino.mjs +0 -20
- package/dist/es/node_modules/refractor/lang/arff.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/asciidoc.mjs +0 -208
- package/dist/es/node_modules/refractor/lang/asm6502.mjs +0 -41
- package/dist/es/node_modules/refractor/lang/asmatmel.mjs +0 -53
- package/dist/es/node_modules/refractor/lang/aspnet.mjs +0 -53
- package/dist/es/node_modules/refractor/lang/autohotkey.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/autoit.mjs +0 -43
- package/dist/es/node_modules/refractor/lang/avisynth.mjs +0 -167
- package/dist/es/node_modules/refractor/lang/avro-idl.mjs +0 -50
- package/dist/es/node_modules/refractor/lang/bash.mjs +0 -206
- package/dist/es/node_modules/refractor/lang/basic.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/batch.mjs +0 -95
- package/dist/es/node_modules/refractor/lang/bbcode.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/bicep.mjs +0 -72
- package/dist/es/node_modules/refractor/lang/birb.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/bison.mjs +0 -52
- package/dist/es/node_modules/refractor/lang/bnf.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/brainfuck.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/brightscript.mjs +0 -55
- package/dist/es/node_modules/refractor/lang/bro.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/bsl.mjs +0 -77
- package/dist/es/node_modules/refractor/lang/c.mjs +0 -78
- package/dist/es/node_modules/refractor/lang/cfscript.mjs +0 -44
- package/dist/es/node_modules/refractor/lang/chaiscript.mjs +0 -65
- package/dist/es/node_modules/refractor/lang/cil.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/clike.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/clojure.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/cmake.mjs +0 -41
- package/dist/es/node_modules/refractor/lang/cobol.mjs +0 -58
- package/dist/es/node_modules/refractor/lang/coffeescript.mjs +0 -86
- package/dist/es/node_modules/refractor/lang/concurnas.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/coq.mjs +0 -52
- package/dist/es/node_modules/refractor/lang/cpp.mjs +0 -98
- package/dist/es/node_modules/refractor/lang/crystal.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/csharp.mjs +0 -277
- package/dist/es/node_modules/refractor/lang/cshtml.mjs +0 -104
- package/dist/es/node_modules/refractor/lang/csp.mjs +0 -61
- package/dist/es/node_modules/refractor/lang/css-extras.mjs +0 -109
- package/dist/es/node_modules/refractor/lang/css.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/csv.mjs +0 -16
- package/dist/es/node_modules/refractor/lang/cypher.mjs +0 -44
- package/dist/es/node_modules/refractor/lang/d.mjs +0 -77
- package/dist/es/node_modules/refractor/lang/dart.mjs +0 -72
- package/dist/es/node_modules/refractor/lang/dataweave.mjs +0 -49
- package/dist/es/node_modules/refractor/lang/dax.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/dhall.mjs +0 -74
- package/dist/es/node_modules/refractor/lang/diff.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/django.mjs +0 -60
- package/dist/es/node_modules/refractor/lang/dns-zone-file.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/docker.mjs +0 -83
- package/dist/es/node_modules/refractor/lang/dot.mjs +0 -75
- package/dist/es/node_modules/refractor/lang/ebnf.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/editorconfig.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/eiffel.mjs +0 -46
- package/dist/es/node_modules/refractor/lang/ejs.mjs +0 -33
- package/dist/es/node_modules/refractor/lang/elixir.mjs +0 -100
- package/dist/es/node_modules/refractor/lang/elm.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/erb.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/erlang.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/etlua.mjs +0 -33
- package/dist/es/node_modules/refractor/lang/excel-formula.mjs +0 -74
- package/dist/es/node_modules/refractor/lang/factor.mjs +0 -569
- package/dist/es/node_modules/refractor/lang/false.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/firestore-security-rules.mjs +0 -43
- package/dist/es/node_modules/refractor/lang/flow.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/fortran.mjs +0 -49
- package/dist/es/node_modules/refractor/lang/fsharp.mjs +0 -76
- package/dist/es/node_modules/refractor/lang/ftl.mjs +0 -102
- package/dist/es/node_modules/refractor/lang/gap.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/gcode.mjs +0 -28
- package/dist/es/node_modules/refractor/lang/gdscript.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/gedcom.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/gherkin.mjs +0 -94
- package/dist/es/node_modules/refractor/lang/git.mjs +0 -75
- package/dist/es/node_modules/refractor/lang/glsl.mjs +0 -18
- package/dist/es/node_modules/refractor/lang/gml.mjs +0 -19
- package/dist/es/node_modules/refractor/lang/gn.mjs +0 -55
- package/dist/es/node_modules/refractor/lang/go-module.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/go.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/graphql.mjs +0 -133
- package/dist/es/node_modules/refractor/lang/groovy.mjs +0 -58
- package/dist/es/node_modules/refractor/lang/haml.mjs +0 -132
- package/dist/es/node_modules/refractor/lang/handlebars.mjs +0 -46
- package/dist/es/node_modules/refractor/lang/haskell.mjs +0 -76
- package/dist/es/node_modules/refractor/lang/haxe.mjs +0 -84
- package/dist/es/node_modules/refractor/lang/hcl.mjs +0 -68
- package/dist/es/node_modules/refractor/lang/hlsl.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/hoon.mjs +0 -26
- package/dist/es/node_modules/refractor/lang/hpkp.mjs +0 -20
- package/dist/es/node_modules/refractor/lang/hsts.mjs +0 -20
- package/dist/es/node_modules/refractor/lang/http.mjs +0 -126
- package/dist/es/node_modules/refractor/lang/ichigojam.mjs +0 -25
- package/dist/es/node_modules/refractor/lang/icon.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/icu-message-format.mjs +0 -136
- package/dist/es/node_modules/refractor/lang/idris.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/iecst.mjs +0 -38
- package/dist/es/node_modules/refractor/lang/ignore.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/inform7.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/ini.mjs +0 -52
- package/dist/es/node_modules/refractor/lang/io.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/j.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/java.mjs +0 -86
- package/dist/es/node_modules/refractor/lang/javadoc.mjs +0 -89
- package/dist/es/node_modules/refractor/lang/javadoclike.mjs +0 -60
- package/dist/es/node_modules/refractor/lang/javascript.mjs +0 -114
- package/dist/es/node_modules/refractor/lang/javastacktrace.mjs +0 -146
- package/dist/es/node_modules/refractor/lang/jexl.mjs +0 -26
- package/dist/es/node_modules/refractor/lang/jolie.mjs +0 -51
- package/dist/es/node_modules/refractor/lang/jq.mjs +0 -71
- package/dist/es/node_modules/refractor/lang/js-extras.mjs +0 -104
- package/dist/es/node_modules/refractor/lang/js-templates.mjs +0 -153
- package/dist/es/node_modules/refractor/lang/jsdoc.mjs +0 -83
- package/dist/es/node_modules/refractor/lang/json.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/json5.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/jsonp.mjs +0 -20
- package/dist/es/node_modules/refractor/lang/jsstacktrace.mjs +0 -53
- package/dist/es/node_modules/refractor/lang/jsx.mjs +0 -61
- package/dist/es/node_modules/refractor/lang/julia.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/keepalived.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/keyman.mjs +0 -55
- package/dist/es/node_modules/refractor/lang/kotlin.mjs +0 -81
- package/dist/es/node_modules/refractor/lang/kumir.mjs +0 -85
- package/dist/es/node_modules/refractor/lang/kusto.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/latex.mjs +0 -68
- package/dist/es/node_modules/refractor/lang/latte.mjs +0 -68
- package/dist/es/node_modules/refractor/lang/less.mjs +0 -51
- package/dist/es/node_modules/refractor/lang/lilypond.mjs +0 -77
- package/dist/es/node_modules/refractor/lang/liquid.mjs +0 -68
- package/dist/es/node_modules/refractor/lang/lisp.mjs +0 -158
- package/dist/es/node_modules/refractor/lang/livescript.mjs +0 -119
- package/dist/es/node_modules/refractor/lang/llvm.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/log.mjs +0 -103
- package/dist/es/node_modules/refractor/lang/lolcode.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/lua.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/magma.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/makefile.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/markdown.mjs +0 -306
- package/dist/es/node_modules/refractor/lang/markup-templating.mjs +0 -74
- package/dist/es/node_modules/refractor/lang/markup.mjs +0 -154
- package/dist/es/node_modules/refractor/lang/matlab.mjs +0 -25
- package/dist/es/node_modules/refractor/lang/maxscript.mjs +0 -70
- package/dist/es/node_modules/refractor/lang/mel.mjs +0 -49
- package/dist/es/node_modules/refractor/lang/mermaid.mjs +0 -116
- package/dist/es/node_modules/refractor/lang/mizar.mjs +0 -24
- package/dist/es/node_modules/refractor/lang/mongodb.mjs +0 -287
- package/dist/es/node_modules/refractor/lang/monkey.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/moonscript.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/n1ql.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/n4js.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/nand2tetris-hdl.mjs +0 -21
- package/dist/es/node_modules/refractor/lang/naniscript.mjs +0 -140
- package/dist/es/node_modules/refractor/lang/nasm.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/neon.mjs +0 -52
- package/dist/es/node_modules/refractor/lang/nevod.mjs +0 -125
- package/dist/es/node_modules/refractor/lang/nginx.mjs +0 -61
- package/dist/es/node_modules/refractor/lang/nim.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/nix.mjs +0 -45
- package/dist/es/node_modules/refractor/lang/nsis.mjs +0 -37
- package/dist/es/node_modules/refractor/lang/objectivec.mjs +0 -23
- package/dist/es/node_modules/refractor/lang/ocaml.mjs +0 -64
- package/dist/es/node_modules/refractor/lang/opencl.mjs +0 -62
- package/dist/es/node_modules/refractor/lang/openqasm.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/oz.mjs +0 -37
- package/dist/es/node_modules/refractor/lang/parigp.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/parser.mjs +0 -80
- package/dist/es/node_modules/refractor/lang/pascal.mjs +0 -66
- package/dist/es/node_modules/refractor/lang/pascaligo.mjs +0 -70
- package/dist/es/node_modules/refractor/lang/pcaxis.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/peoplecode.mjs +0 -51
- package/dist/es/node_modules/refractor/lang/perl.mjs +0 -134
- package/dist/es/node_modules/refractor/lang/php-extras.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/php.mjs +0 -301
- package/dist/es/node_modules/refractor/lang/phpdoc.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/plsql.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/powerquery.mjs +0 -44
- package/dist/es/node_modules/refractor/lang/powershell.mjs +0 -58
- package/dist/es/node_modules/refractor/lang/processing.mjs +0 -25
- package/dist/es/node_modules/refractor/lang/prolog.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/promql.mjs +0 -74
- package/dist/es/node_modules/refractor/lang/properties.mjs +0 -21
- package/dist/es/node_modules/refractor/lang/protobuf.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/psl.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/pug.mjs +0 -173
- package/dist/es/node_modules/refractor/lang/puppet.mjs +0 -140
- package/dist/es/node_modules/refractor/lang/pure.mjs +0 -72
- package/dist/es/node_modules/refractor/lang/purebasic.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/purescript.mjs +0 -41
- package/dist/es/node_modules/refractor/lang/python.mjs +0 -73
- package/dist/es/node_modules/refractor/lang/q.mjs +0 -62
- package/dist/es/node_modules/refractor/lang/qml.mjs +0 -67
- package/dist/es/node_modules/refractor/lang/qore.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/qsharp.mjs +0 -93
- package/dist/es/node_modules/refractor/lang/r.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/racket.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/reason.mjs +0 -33
- package/dist/es/node_modules/refractor/lang/regex.mjs +0 -97
- package/dist/es/node_modules/refractor/lang/rego.mjs +0 -37
- package/dist/es/node_modules/refractor/lang/renpy.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/rest.mjs +0 -199
- package/dist/es/node_modules/refractor/lang/rip.mjs +0 -41
- package/dist/es/node_modules/refractor/lang/roboconf.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/robotframework.mjs +0 -95
- package/dist/es/node_modules/refractor/lang/ruby.mjs +0 -159
- package/dist/es/node_modules/refractor/lang/rust.mjs +0 -122
- package/dist/es/node_modules/refractor/lang/sas.mjs +0 -305
- package/dist/es/node_modules/refractor/lang/sass.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/scala.mjs +0 -59
- package/dist/es/node_modules/refractor/lang/scheme.mjs +0 -120
- package/dist/es/node_modules/refractor/lang/scss.mjs +0 -82
- package/dist/es/node_modules/refractor/lang/shell-session.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/smali.mjs +0 -84
- package/dist/es/node_modules/refractor/lang/smalltalk.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/smarty.mjs +0 -106
- package/dist/es/node_modules/refractor/lang/sml.mjs +0 -64
- package/dist/es/node_modules/refractor/lang/solidity.mjs +0 -28
- package/dist/es/node_modules/refractor/lang/solution-file.mjs +0 -58
- package/dist/es/node_modules/refractor/lang/soy.mjs +0 -77
- package/dist/es/node_modules/refractor/lang/sparql.mjs +0 -24
- package/dist/es/node_modules/refractor/lang/splunk-spl.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/sqf.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/sql.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/squirrel.mjs +0 -50
- package/dist/es/node_modules/refractor/lang/stan.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/stylus.mjs +0 -141
- package/dist/es/node_modules/refractor/lang/swift.mjs +0 -125
- package/dist/es/node_modules/refractor/lang/systemd.mjs +0 -65
- package/dist/es/node_modules/refractor/lang/t4-cs.mjs +0 -17
- package/dist/es/node_modules/refractor/lang/t4-templating.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/t4-vb.mjs +0 -17
- package/dist/es/node_modules/refractor/lang/tap.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/tcl.mjs +0 -51
- package/dist/es/node_modules/refractor/lang/textile.mjs +0 -248
- package/dist/es/node_modules/refractor/lang/toml.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/tremor.mjs +0 -67
- package/dist/es/node_modules/refractor/lang/tsx.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/tt2.mjs +0 -53
- package/dist/es/node_modules/refractor/lang/turtle.mjs +0 -62
- package/dist/es/node_modules/refractor/lang/twig.mjs +0 -48
- package/dist/es/node_modules/refractor/lang/typescript.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/typoscript.mjs +0 -81
- package/dist/es/node_modules/refractor/lang/unrealscript.mjs +0 -50
- package/dist/es/node_modules/refractor/lang/uorazor.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/uri.mjs +0 -92
- package/dist/es/node_modules/refractor/lang/v.mjs +0 -85
- package/dist/es/node_modules/refractor/lang/vala.mjs +0 -87
- package/dist/es/node_modules/refractor/lang/vbnet.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/velocity.mjs +0 -75
- package/dist/es/node_modules/refractor/lang/verilog.mjs +0 -38
- package/dist/es/node_modules/refractor/lang/vhdl.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/vim.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/visual-basic.mjs +0 -38
- package/dist/es/node_modules/refractor/lang/warpscript.mjs +0 -33
- package/dist/es/node_modules/refractor/lang/wasm.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/web-idl.mjs +0 -89
- package/dist/es/node_modules/refractor/lang/wiki.mjs +0 -86
- package/dist/es/node_modules/refractor/lang/wolfram.mjs +0 -37
- package/dist/es/node_modules/refractor/lang/wren.mjs +0 -97
- package/dist/es/node_modules/refractor/lang/xeora.mjs +0 -121
- package/dist/es/node_modules/refractor/lang/xml-doc.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/xojo.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/xquery.mjs +0 -89
- package/dist/es/node_modules/refractor/lang/yaml.mjs +0 -78
- package/dist/es/node_modules/refractor/lang/yang.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/zig.mjs +0 -80
- package/dist/es/node_modules/refractor/node_modules/comma-separated-tokens/index.mjs +0 -16
- package/dist/es/node_modules/refractor/node_modules/hastscript/factory.mjs +0 -77
- package/dist/es/node_modules/refractor/node_modules/hastscript/html.mjs +0 -8
- package/dist/es/node_modules/refractor/node_modules/hastscript/index.mjs +0 -5
- package/dist/es/node_modules/refractor/node_modules/prismjs/components/prism-core.mjs +0 -720
- package/dist/es/node_modules/refractor/node_modules/space-separated-tokens/index.mjs +0 -14
- package/dist/es/node_modules/rehype-external-links/lib/index.mjs +0 -34
- package/dist/es/node_modules/rehype-external-links/node_modules/is-absolute-url/index.mjs +0 -9
- package/dist/es/node_modules/rehype-external-links/node_modules/unist-util-visit/lib/index.mjs +0 -16
- package/dist/es/node_modules/rehype-katex/lib/index.mjs +0 -83
- package/dist/es/node_modules/remark-gfm/lib/index.mjs +0 -13
- package/dist/es/node_modules/remark-math/lib/index.mjs +0 -13
- package/dist/es/node_modules/remark-rehype/lib/index.mjs +0 -51
- package/dist/es/node_modules/space-separated-tokens/index.mjs +0 -11
- package/dist/es/node_modules/style-to-js/cjs/index.mjs +0 -22
- package/dist/es/node_modules/style-to-js/cjs/utilities.mjs +0 -18
- package/dist/es/node_modules/style-to-js/node_modules/inline-style-parser/index.mjs +0 -93
- package/dist/es/node_modules/style-to-js/node_modules/style-to-object/cjs/index.mjs +0 -25
- package/dist/es/node_modules/trim-lines/index.mjs +0 -25
- package/dist/es/node_modules/tslib/tslib.es6.mjs +0 -30
- package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +0 -123
- package/dist/es/node_modules/unified/lib/callable-instance.mjs +0 -25
- package/dist/es/node_modules/unified/lib/index.mjs +0 -525
- package/dist/es/node_modules/unified/node_modules/bail/index.mjs +0 -7
- package/dist/es/node_modules/unified/node_modules/is-plain-obj/index.mjs +0 -9
- package/dist/es/node_modules/unified/node_modules/trough/lib/index.mjs +0 -61
- package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +0 -32
- package/dist/es/node_modules/unist-util-is/lib/index.mjs +0 -81
- package/dist/es/node_modules/unist-util-position/lib/index.mjs +0 -26
- package/dist/es/node_modules/unist-util-stringify-position/lib/index.mjs +0 -15
- package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +0 -6
- package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +0 -56
- package/dist/es/node_modules/vfile/lib/index.mjs +0 -401
- package/dist/es/node_modules/vfile/lib/minpath.browser.mjs +0 -120
- package/dist/es/node_modules/vfile/lib/minproc.browser.mjs +0 -9
- package/dist/es/node_modules/vfile/lib/minurl.browser.mjs +0 -35
- package/dist/es/node_modules/vfile/lib/minurl.shared.mjs +0 -7
- package/dist/es/node_modules/vfile-message/lib/index.mjs +0 -106
- package/dist/es/node_modules/xtend/immutable.mjs +0 -12
- package/dist/es/packages/agent-cli-ui/package.json.mjs +0 -164
- package/dist/es/packages/react-components/dist/es/Iconfont/index.mjs +0 -8
- package/dist/es/packages/react-components/dist/es/components/Copy/index.mjs +0 -43
- package/dist/es/packages/react-components/dist/es/components/Markdown/ATag/index.mjs +0 -44
- package/dist/es/packages/react-components/dist/es/components/Markdown/Code/index.mjs +0 -64
- package/dist/es/packages/react-components/dist/es/components/Markdown/Image/index.mjs +0 -62
- package/dist/es/packages/react-components/dist/es/components/Markdown/Video/index.mjs +0 -19
- package/dist/es/packages/react-components/dist/es/components/Markdown/index.mjs +0 -80
- package/dist/es/packages/react-components/dist/es/index.mjs +0 -10
- package/dist/es/packages/react-components/dist/es/utils/clipboard.mjs +0 -38
- package/dist/es/packages/react-components/dist/es/utils/markdown/index.mjs +0 -29
- package/dist/es/src/global.css +0 -1
- package/dist/es/src/image-viewer.css +0 -1
- package/dist/es/src/katex.min.css +0 -1
- package/dist/es/src/mask.css +0 -1
- package/dist/es/src/safe-area.css +0 -1
- package/dist/es/src/style.css +0 -1
- package/dist/es/src/style10.css +0 -1
- package/dist/es/src/style11.css +0 -1
- package/dist/es/src/style12.css +0 -1
- package/dist/es/src/style13.css +0 -1
- package/dist/es/src/style14.css +0 -1
- package/dist/es/src/style15.css +0 -1
- package/dist/es/src/style16.css +0 -1
- package/dist/es/src/style17.css +0 -1
- package/dist/es/src/style18.css +0 -1
- package/dist/es/src/style19.css +0 -1
- package/dist/es/src/style2.css +0 -1
- package/dist/es/src/style20.css +0 -1
- package/dist/es/src/style21.css +0 -1
- package/dist/es/src/style22.css +0 -1
- package/dist/es/src/style23.css +0 -1
- package/dist/es/src/style24.css +0 -1
- package/dist/es/src/style25.css +0 -1
- package/dist/es/src/style26.css +0 -1
- package/dist/es/src/style27.css +0 -1
- package/dist/es/src/style28.css +0 -1
- package/dist/es/src/style29.css +0 -1
- package/dist/es/src/style3.css +0 -1
- package/dist/es/src/style30.css +0 -1
- package/dist/es/src/style31.css +0 -1
- package/dist/es/src/style32.css +0 -1
- package/dist/es/src/style33.css +0 -1
- package/dist/es/src/style4.css +0 -1
- package/dist/es/src/style5.css +0 -1
- package/dist/es/src/style6.css +0 -1
- package/dist/es/src/style7.css +0 -1
- package/dist/es/src/style8.css +0 -1
- package/dist/es/src/style9.css +0 -1
- package/dist/es/types.mjs +0 -4
- package/dist/es/utils/antdConfig.mjs +0 -15
- package/dist/es/utils/index.mjs +0 -41
- package/dist/es/utils/scopedMessage.mjs +0 -29
- package/dist/lib/index.css +0 -1
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/fetch.d.ts +0 -44
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/index.d.ts +0 -1
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/parse.d.ts +0 -36
- package/dist/src/utils/reactCompatibility.d.ts +0 -27
- package/dist/src/utils/testAntdPrefix.d.ts +0 -3
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { asciiAlphanumeric as g, asciiAlpha as A, markdownLineEndingOrSpace as w, asciiControl as _, unicodeWhitespace as h, unicodePunctuation as v } from "../../micromark-util-character/index.mjs";
|
|
2
|
-
const y = {
|
|
3
|
-
tokenize: U,
|
|
4
|
-
partial: !0
|
|
5
|
-
}, D = {
|
|
6
|
-
tokenize: j,
|
|
7
|
-
partial: !0
|
|
8
|
-
}, L = {
|
|
9
|
-
tokenize: q,
|
|
10
|
-
partial: !0
|
|
11
|
-
}, S = {
|
|
12
|
-
tokenize: F,
|
|
13
|
-
partial: !0
|
|
14
|
-
}, H = {
|
|
15
|
-
tokenize: G,
|
|
16
|
-
partial: !0
|
|
17
|
-
}, W = {
|
|
18
|
-
name: "wwwAutolink",
|
|
19
|
-
tokenize: R,
|
|
20
|
-
previous: C
|
|
21
|
-
}, b = {
|
|
22
|
-
name: "protocolAutolink",
|
|
23
|
-
tokenize: B,
|
|
24
|
-
previous: E
|
|
25
|
-
}, f = {
|
|
26
|
-
name: "emailAutolink",
|
|
27
|
-
tokenize: O,
|
|
28
|
-
previous: T
|
|
29
|
-
}, s = {};
|
|
30
|
-
function K() {
|
|
31
|
-
return {
|
|
32
|
-
text: s
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
let k = 48;
|
|
36
|
-
for (; k < 123; )
|
|
37
|
-
s[k] = f, k++, k === 58 ? k = 65 : k === 91 && (k = 97);
|
|
38
|
-
s[43] = f;
|
|
39
|
-
s[45] = f;
|
|
40
|
-
s[46] = f;
|
|
41
|
-
s[95] = f;
|
|
42
|
-
s[72] = [f, b];
|
|
43
|
-
s[104] = [f, b];
|
|
44
|
-
s[87] = [f, W];
|
|
45
|
-
s[119] = [f, W];
|
|
46
|
-
function O(t, m, l) {
|
|
47
|
-
const u = this;
|
|
48
|
-
let a, e;
|
|
49
|
-
return n;
|
|
50
|
-
function n(i) {
|
|
51
|
-
return !x(i) || !T.call(u, u.previous) || P(u.events) ? l(i) : (t.enter("literalAutolink"), t.enter("literalAutolinkEmail"), r(i));
|
|
52
|
-
}
|
|
53
|
-
function r(i) {
|
|
54
|
-
return x(i) ? (t.consume(i), r) : i === 64 ? (t.consume(i), p) : l(i);
|
|
55
|
-
}
|
|
56
|
-
function p(i) {
|
|
57
|
-
return i === 46 ? t.check(H, z, o)(i) : i === 45 || i === 95 || g(i) ? (e = !0, t.consume(i), p) : z(i);
|
|
58
|
-
}
|
|
59
|
-
function o(i) {
|
|
60
|
-
return t.consume(i), a = !0, p;
|
|
61
|
-
}
|
|
62
|
-
function z(i) {
|
|
63
|
-
return e && a && A(u.previous) ? (t.exit("literalAutolinkEmail"), t.exit("literalAutolink"), m(i)) : l(i);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
function R(t, m, l) {
|
|
67
|
-
const u = this;
|
|
68
|
-
return a;
|
|
69
|
-
function a(n) {
|
|
70
|
-
return n !== 87 && n !== 119 || !C.call(u, u.previous) || P(u.events) ? l(n) : (t.enter("literalAutolink"), t.enter("literalAutolinkWww"), t.check(y, t.attempt(D, t.attempt(L, e), l), l)(n));
|
|
71
|
-
}
|
|
72
|
-
function e(n) {
|
|
73
|
-
return t.exit("literalAutolinkWww"), t.exit("literalAutolink"), m(n);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
function B(t, m, l) {
|
|
77
|
-
const u = this;
|
|
78
|
-
let a = "", e = !1;
|
|
79
|
-
return n;
|
|
80
|
-
function n(i) {
|
|
81
|
-
return (i === 72 || i === 104) && E.call(u, u.previous) && !P(u.events) ? (t.enter("literalAutolink"), t.enter("literalAutolinkHttp"), a += String.fromCodePoint(i), t.consume(i), r) : l(i);
|
|
82
|
-
}
|
|
83
|
-
function r(i) {
|
|
84
|
-
if (A(i) && a.length < 5)
|
|
85
|
-
return a += String.fromCodePoint(i), t.consume(i), r;
|
|
86
|
-
if (i === 58) {
|
|
87
|
-
const I = a.toLowerCase();
|
|
88
|
-
if (I === "http" || I === "https")
|
|
89
|
-
return t.consume(i), p;
|
|
90
|
-
}
|
|
91
|
-
return l(i);
|
|
92
|
-
}
|
|
93
|
-
function p(i) {
|
|
94
|
-
return i === 47 ? (t.consume(i), e ? o : (e = !0, p)) : l(i);
|
|
95
|
-
}
|
|
96
|
-
function o(i) {
|
|
97
|
-
return i === null || _(i) || w(i) || h(i) || v(i) ? l(i) : t.attempt(D, t.attempt(L, z), l)(i);
|
|
98
|
-
}
|
|
99
|
-
function z(i) {
|
|
100
|
-
return t.exit("literalAutolinkHttp"), t.exit("literalAutolink"), m(i);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
function U(t, m, l) {
|
|
104
|
-
let u = 0;
|
|
105
|
-
return a;
|
|
106
|
-
function a(n) {
|
|
107
|
-
return (n === 87 || n === 119) && u < 3 ? (u++, t.consume(n), a) : n === 46 && u === 3 ? (t.consume(n), e) : l(n);
|
|
108
|
-
}
|
|
109
|
-
function e(n) {
|
|
110
|
-
return n === null ? l(n) : m(n);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
function j(t, m, l) {
|
|
114
|
-
let u, a, e;
|
|
115
|
-
return n;
|
|
116
|
-
function n(o) {
|
|
117
|
-
return o === 46 || o === 95 ? t.check(S, p, r)(o) : o === null || w(o) || h(o) || o !== 45 && v(o) ? p(o) : (e = !0, t.consume(o), n);
|
|
118
|
-
}
|
|
119
|
-
function r(o) {
|
|
120
|
-
return o === 95 ? u = !0 : (a = u, u = void 0), t.consume(o), n;
|
|
121
|
-
}
|
|
122
|
-
function p(o) {
|
|
123
|
-
return a || u || !e ? l(o) : m(o);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
function q(t, m) {
|
|
127
|
-
let l = 0, u = 0;
|
|
128
|
-
return a;
|
|
129
|
-
function a(n) {
|
|
130
|
-
return n === 40 ? (l++, t.consume(n), a) : n === 41 && u < l ? e(n) : n === 33 || n === 34 || n === 38 || n === 39 || n === 41 || n === 42 || n === 44 || n === 46 || n === 58 || n === 59 || n === 60 || n === 63 || n === 93 || n === 95 || n === 126 ? t.check(S, m, e)(n) : n === null || w(n) || h(n) ? m(n) : (t.consume(n), a);
|
|
131
|
-
}
|
|
132
|
-
function e(n) {
|
|
133
|
-
return n === 41 && u++, t.consume(n), a;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
function F(t, m, l) {
|
|
137
|
-
return u;
|
|
138
|
-
function u(r) {
|
|
139
|
-
return r === 33 || r === 34 || r === 39 || r === 41 || r === 42 || r === 44 || r === 46 || r === 58 || r === 59 || r === 63 || r === 95 || r === 126 ? (t.consume(r), u) : r === 38 ? (t.consume(r), e) : r === 93 ? (t.consume(r), a) : (
|
|
140
|
-
// `<` is an end.
|
|
141
|
-
r === 60 || // So is whitespace.
|
|
142
|
-
r === null || w(r) || h(r) ? m(r) : l(r)
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
|
-
function a(r) {
|
|
146
|
-
return r === null || r === 40 || r === 91 || w(r) || h(r) ? m(r) : u(r);
|
|
147
|
-
}
|
|
148
|
-
function e(r) {
|
|
149
|
-
return A(r) ? n(r) : l(r);
|
|
150
|
-
}
|
|
151
|
-
function n(r) {
|
|
152
|
-
return r === 59 ? (t.consume(r), u) : A(r) ? (t.consume(r), n) : l(r);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
function G(t, m, l) {
|
|
156
|
-
return u;
|
|
157
|
-
function u(e) {
|
|
158
|
-
return t.consume(e), a;
|
|
159
|
-
}
|
|
160
|
-
function a(e) {
|
|
161
|
-
return g(e) ? l(e) : m(e);
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
function C(t) {
|
|
165
|
-
return t === null || t === 40 || t === 42 || t === 95 || t === 91 || t === 93 || t === 126 || w(t);
|
|
166
|
-
}
|
|
167
|
-
function E(t) {
|
|
168
|
-
return !A(t);
|
|
169
|
-
}
|
|
170
|
-
function T(t) {
|
|
171
|
-
return !(t === 47 || x(t));
|
|
172
|
-
}
|
|
173
|
-
function x(t) {
|
|
174
|
-
return t === 43 || t === 45 || t === 46 || t === 95 || g(t);
|
|
175
|
-
}
|
|
176
|
-
function P(t) {
|
|
177
|
-
let m = t.length, l = !1;
|
|
178
|
-
for (; m--; ) {
|
|
179
|
-
const u = t[m][1];
|
|
180
|
-
if ((u.type === "labelLink" || u.type === "labelImage") && !u._balanced) {
|
|
181
|
-
l = !0;
|
|
182
|
-
break;
|
|
183
|
-
}
|
|
184
|
-
if (u._gfmAutolinkLiteralWalkedInto) {
|
|
185
|
-
l = !1;
|
|
186
|
-
break;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
return t.length > 0 && !l && (t[t.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), l;
|
|
190
|
-
}
|
|
191
|
-
export {
|
|
192
|
-
K as gfmAutolinkLiteral
|
|
193
|
-
};
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import { factorySpace as b } from "../../micromark-factory-space/index.mjs";
|
|
2
|
-
import { markdownLineEndingOrSpace as s } from "../../micromark-util-character/index.mjs";
|
|
3
|
-
import { normalizeIdentifier as p } from "../../micromark-util-normalize-identifier/index.mjs";
|
|
4
|
-
import { blankLine as D } from "../../micromark-core-commonmark/lib/blank-line.mjs";
|
|
5
|
-
const x = {
|
|
6
|
-
tokenize: d,
|
|
7
|
-
partial: !0
|
|
8
|
-
};
|
|
9
|
-
function P() {
|
|
10
|
-
return {
|
|
11
|
-
document: {
|
|
12
|
-
91: {
|
|
13
|
-
name: "gfmFootnoteDefinition",
|
|
14
|
-
tokenize: L,
|
|
15
|
-
continuation: {
|
|
16
|
-
tokenize: z
|
|
17
|
-
},
|
|
18
|
-
exit: c
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
text: {
|
|
22
|
-
91: {
|
|
23
|
-
name: "gfmFootnoteCall",
|
|
24
|
-
tokenize: y
|
|
25
|
-
},
|
|
26
|
-
93: {
|
|
27
|
-
name: "gfmPotentialFootnoteCall",
|
|
28
|
-
add: "after",
|
|
29
|
-
tokenize: M,
|
|
30
|
-
resolveTo: S
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
function M(t, r, n) {
|
|
36
|
-
const o = this;
|
|
37
|
-
let u = o.events.length;
|
|
38
|
-
const l = o.parser.gfmFootnotes || (o.parser.gfmFootnotes = []);
|
|
39
|
-
let a;
|
|
40
|
-
for (; u--; ) {
|
|
41
|
-
const m = o.events[u][1];
|
|
42
|
-
if (m.type === "labelImage") {
|
|
43
|
-
a = m;
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
if (m.type === "gfmFootnoteCall" || m.type === "labelLink" || m.type === "label" || m.type === "image" || m.type === "link")
|
|
47
|
-
break;
|
|
48
|
-
}
|
|
49
|
-
return f;
|
|
50
|
-
function f(m) {
|
|
51
|
-
if (!a || !a._balanced)
|
|
52
|
-
return n(m);
|
|
53
|
-
const g = p(o.sliceSerialize({
|
|
54
|
-
start: a.end,
|
|
55
|
-
end: o.now()
|
|
56
|
-
}));
|
|
57
|
-
return g.codePointAt(0) !== 94 || !l.includes(g.slice(1)) ? n(m) : (t.enter("gfmFootnoteCallLabelMarker"), t.consume(m), t.exit("gfmFootnoteCallLabelMarker"), r(m));
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
function S(t, r) {
|
|
61
|
-
let n = t.length;
|
|
62
|
-
for (; n--; )
|
|
63
|
-
if (t[n][1].type === "labelImage" && t[n][0] === "enter") {
|
|
64
|
-
t[n][1];
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
t[n + 1][1].type = "data", t[n + 3][1].type = "gfmFootnoteCallLabelMarker";
|
|
68
|
-
const o = {
|
|
69
|
-
type: "gfmFootnoteCall",
|
|
70
|
-
start: Object.assign({}, t[n + 3][1].start),
|
|
71
|
-
end: Object.assign({}, t[t.length - 1][1].end)
|
|
72
|
-
}, u = {
|
|
73
|
-
type: "gfmFootnoteCallMarker",
|
|
74
|
-
start: Object.assign({}, t[n + 3][1].end),
|
|
75
|
-
end: Object.assign({}, t[n + 3][1].end)
|
|
76
|
-
};
|
|
77
|
-
u.end.column++, u.end.offset++, u.end._bufferIndex++;
|
|
78
|
-
const l = {
|
|
79
|
-
type: "gfmFootnoteCallString",
|
|
80
|
-
start: Object.assign({}, u.end),
|
|
81
|
-
end: Object.assign({}, t[t.length - 1][1].start)
|
|
82
|
-
}, a = {
|
|
83
|
-
type: "chunkString",
|
|
84
|
-
contentType: "string",
|
|
85
|
-
start: Object.assign({}, l.start),
|
|
86
|
-
end: Object.assign({}, l.end)
|
|
87
|
-
}, f = [
|
|
88
|
-
// Take the `labelImageMarker` (now `data`, the `!`)
|
|
89
|
-
t[n + 1],
|
|
90
|
-
t[n + 2],
|
|
91
|
-
["enter", o, r],
|
|
92
|
-
// The `[`
|
|
93
|
-
t[n + 3],
|
|
94
|
-
t[n + 4],
|
|
95
|
-
// The `^`.
|
|
96
|
-
["enter", u, r],
|
|
97
|
-
["exit", u, r],
|
|
98
|
-
// Everything in between.
|
|
99
|
-
["enter", l, r],
|
|
100
|
-
["enter", a, r],
|
|
101
|
-
["exit", a, r],
|
|
102
|
-
["exit", l, r],
|
|
103
|
-
// The ending (`]`, properly parsed and labelled).
|
|
104
|
-
t[t.length - 2],
|
|
105
|
-
t[t.length - 1],
|
|
106
|
-
["exit", o, r]
|
|
107
|
-
];
|
|
108
|
-
return t.splice(n, t.length - n + 1, ...f), t;
|
|
109
|
-
}
|
|
110
|
-
function y(t, r, n) {
|
|
111
|
-
const o = this, u = o.parser.gfmFootnotes || (o.parser.gfmFootnotes = []);
|
|
112
|
-
let l = 0, a;
|
|
113
|
-
return f;
|
|
114
|
-
function f(i) {
|
|
115
|
-
return t.enter("gfmFootnoteCall"), t.enter("gfmFootnoteCallLabelMarker"), t.consume(i), t.exit("gfmFootnoteCallLabelMarker"), m;
|
|
116
|
-
}
|
|
117
|
-
function m(i) {
|
|
118
|
-
return i !== 94 ? n(i) : (t.enter("gfmFootnoteCallMarker"), t.consume(i), t.exit("gfmFootnoteCallMarker"), t.enter("gfmFootnoteCallString"), t.enter("chunkString").contentType = "string", g);
|
|
119
|
-
}
|
|
120
|
-
function g(i) {
|
|
121
|
-
if (
|
|
122
|
-
// Too long.
|
|
123
|
-
l > 999 || // Closing brace with nothing.
|
|
124
|
-
i === 93 && !a || // Space or tab is not supported by GFM for some reason.
|
|
125
|
-
// `\n` and `[` not being supported makes sense.
|
|
126
|
-
i === null || i === 91 || s(i)
|
|
127
|
-
)
|
|
128
|
-
return n(i);
|
|
129
|
-
if (i === 93) {
|
|
130
|
-
t.exit("chunkString");
|
|
131
|
-
const k = t.exit("gfmFootnoteCallString");
|
|
132
|
-
return u.includes(p(o.sliceSerialize(k))) ? (t.enter("gfmFootnoteCallLabelMarker"), t.consume(i), t.exit("gfmFootnoteCallLabelMarker"), t.exit("gfmFootnoteCall"), r) : n(i);
|
|
133
|
-
}
|
|
134
|
-
return s(i) || (a = !0), l++, t.consume(i), i === 92 ? F : g;
|
|
135
|
-
}
|
|
136
|
-
function F(i) {
|
|
137
|
-
return i === 91 || i === 92 || i === 93 ? (t.consume(i), l++, g) : g(i);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
function L(t, r, n) {
|
|
141
|
-
const o = this, u = o.parser.gfmFootnotes || (o.parser.gfmFootnotes = []);
|
|
142
|
-
let l, a = 0, f;
|
|
143
|
-
return m;
|
|
144
|
-
function m(e) {
|
|
145
|
-
return t.enter("gfmFootnoteDefinition")._container = !0, t.enter("gfmFootnoteDefinitionLabel"), t.enter("gfmFootnoteDefinitionLabelMarker"), t.consume(e), t.exit("gfmFootnoteDefinitionLabelMarker"), g;
|
|
146
|
-
}
|
|
147
|
-
function g(e) {
|
|
148
|
-
return e === 94 ? (t.enter("gfmFootnoteDefinitionMarker"), t.consume(e), t.exit("gfmFootnoteDefinitionMarker"), t.enter("gfmFootnoteDefinitionLabelString"), t.enter("chunkString").contentType = "string", F) : n(e);
|
|
149
|
-
}
|
|
150
|
-
function F(e) {
|
|
151
|
-
if (
|
|
152
|
-
// Too long.
|
|
153
|
-
a > 999 || // Closing brace with nothing.
|
|
154
|
-
e === 93 && !f || // Space or tab is not supported by GFM for some reason.
|
|
155
|
-
// `\n` and `[` not being supported makes sense.
|
|
156
|
-
e === null || e === 91 || s(e)
|
|
157
|
-
)
|
|
158
|
-
return n(e);
|
|
159
|
-
if (e === 93) {
|
|
160
|
-
t.exit("chunkString");
|
|
161
|
-
const C = t.exit("gfmFootnoteDefinitionLabelString");
|
|
162
|
-
return l = p(o.sliceSerialize(C)), t.enter("gfmFootnoteDefinitionLabelMarker"), t.consume(e), t.exit("gfmFootnoteDefinitionLabelMarker"), t.exit("gfmFootnoteDefinitionLabel"), k;
|
|
163
|
-
}
|
|
164
|
-
return s(e) || (f = !0), a++, t.consume(e), e === 92 ? i : F;
|
|
165
|
-
}
|
|
166
|
-
function i(e) {
|
|
167
|
-
return e === 91 || e === 92 || e === 93 ? (t.consume(e), a++, F) : F(e);
|
|
168
|
-
}
|
|
169
|
-
function k(e) {
|
|
170
|
-
return e === 58 ? (t.enter("definitionMarker"), t.consume(e), t.exit("definitionMarker"), u.includes(l) || u.push(l), b(t, h, "gfmFootnoteDefinitionWhitespace")) : n(e);
|
|
171
|
-
}
|
|
172
|
-
function h(e) {
|
|
173
|
-
return r(e);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
function z(t, r, n) {
|
|
177
|
-
return t.check(D, r, t.attempt(x, r, n));
|
|
178
|
-
}
|
|
179
|
-
function c(t) {
|
|
180
|
-
t.exit("gfmFootnoteDefinition");
|
|
181
|
-
}
|
|
182
|
-
function d(t, r, n) {
|
|
183
|
-
const o = this;
|
|
184
|
-
return b(t, u, "gfmFootnoteDefinitionIndent", 4 + 1);
|
|
185
|
-
function u(l) {
|
|
186
|
-
const a = o.events[o.events.length - 1];
|
|
187
|
-
return a && a[1].type === "gfmFootnoteDefinitionIndent" && a[2].sliceSerialize(a[1], !0).length === 4 ? r(l) : n(l);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
export {
|
|
191
|
-
P as gfmFootnote
|
|
192
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { splice as g } from "../../micromark-util-chunked/index.mjs";
|
|
2
|
-
import { classifyCharacter as k } from "../../micromark-util-classify-character/index.mjs";
|
|
3
|
-
import { resolveAll as d } from "../../micromark-util-resolve-all/index.mjs";
|
|
4
|
-
function j(m) {
|
|
5
|
-
let l = (m || {}).singleTilde;
|
|
6
|
-
const f = {
|
|
7
|
-
name: "strikethrough",
|
|
8
|
-
tokenize: S,
|
|
9
|
-
resolveAll: y
|
|
10
|
-
};
|
|
11
|
-
return l == null && (l = !0), {
|
|
12
|
-
text: {
|
|
13
|
-
126: f
|
|
14
|
-
},
|
|
15
|
-
insideSpan: {
|
|
16
|
-
null: [f]
|
|
17
|
-
},
|
|
18
|
-
attentionMarkers: {
|
|
19
|
-
null: [126]
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
function y(r, i) {
|
|
23
|
-
let t = -1;
|
|
24
|
-
for (; ++t < r.length; )
|
|
25
|
-
if (r[t][0] === "enter" && r[t][1].type === "strikethroughSequenceTemporary" && r[t][1]._close) {
|
|
26
|
-
let e = t;
|
|
27
|
-
for (; e--; )
|
|
28
|
-
if (r[e][0] === "exit" && r[e][1].type === "strikethroughSequenceTemporary" && r[e][1]._open && // If the sizes are the same:
|
|
29
|
-
r[t][1].end.offset - r[t][1].start.offset === r[e][1].end.offset - r[e][1].start.offset) {
|
|
30
|
-
r[t][1].type = "strikethroughSequence", r[e][1].type = "strikethroughSequence";
|
|
31
|
-
const s = {
|
|
32
|
-
type: "strikethrough",
|
|
33
|
-
start: Object.assign({}, r[e][1].start),
|
|
34
|
-
end: Object.assign({}, r[t][1].end)
|
|
35
|
-
}, u = {
|
|
36
|
-
type: "strikethroughText",
|
|
37
|
-
start: Object.assign({}, r[e][1].end),
|
|
38
|
-
end: Object.assign({}, r[t][1].start)
|
|
39
|
-
}, o = [["enter", s, i], ["enter", r[e][1], i], ["exit", r[e][1], i], ["enter", u, i]], h = i.parser.constructs.insideSpan.null;
|
|
40
|
-
h && g(o, o.length, 0, d(h, r.slice(e + 1, t), i)), g(o, o.length, 0, [["exit", u, i], ["enter", r[t][1], i], ["exit", r[t][1], i], ["exit", s, i]]), g(r, e - 1, t - e + 3, o), t = e + o.length - 2;
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
for (t = -1; ++t < r.length; )
|
|
45
|
-
r[t][1].type === "strikethroughSequenceTemporary" && (r[t][1].type = "data");
|
|
46
|
-
return r;
|
|
47
|
-
}
|
|
48
|
-
function S(r, i, t) {
|
|
49
|
-
const e = this.previous, s = this.events;
|
|
50
|
-
let u = 0;
|
|
51
|
-
return o;
|
|
52
|
-
function o(n) {
|
|
53
|
-
return e === 126 && s[s.length - 1][1].type !== "characterEscape" ? t(n) : (r.enter("strikethroughSequenceTemporary"), h(n));
|
|
54
|
-
}
|
|
55
|
-
function h(n) {
|
|
56
|
-
const a = k(e);
|
|
57
|
-
if (n === 126)
|
|
58
|
-
return u > 1 ? t(n) : (r.consume(n), u++, h);
|
|
59
|
-
if (u < 2 && !l)
|
|
60
|
-
return t(n);
|
|
61
|
-
const c = r.exit("strikethroughSequenceTemporary"), p = k(n);
|
|
62
|
-
return c._open = !p || p === 2 && !!a, c._close = !a || a === 2 && !!p, i(n);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
export {
|
|
67
|
-
j as gfmStrikethrough
|
|
68
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
class e {
|
|
2
|
-
/**
|
|
3
|
-
* Create a new edit map.
|
|
4
|
-
*/
|
|
5
|
-
constructor() {
|
|
6
|
-
this.map = [];
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Create an edit: a remove and/or add at a certain place.
|
|
10
|
-
*
|
|
11
|
-
* @param {number} index
|
|
12
|
-
* @param {number} remove
|
|
13
|
-
* @param {Array<Event>} add
|
|
14
|
-
* @returns {undefined}
|
|
15
|
-
*/
|
|
16
|
-
add(h, t, p) {
|
|
17
|
-
m(this, h, t, p);
|
|
18
|
-
}
|
|
19
|
-
// To do: add this when moving to `micromark`.
|
|
20
|
-
// /**
|
|
21
|
-
// * Create an edit: but insert `add` before existing additions.
|
|
22
|
-
// *
|
|
23
|
-
// * @param {number} index
|
|
24
|
-
// * @param {number} remove
|
|
25
|
-
// * @param {Array<Event>} add
|
|
26
|
-
// * @returns {undefined}
|
|
27
|
-
// */
|
|
28
|
-
// addBefore(index, remove, add) {
|
|
29
|
-
// addImplementation(this, index, remove, add, true)
|
|
30
|
-
// }
|
|
31
|
-
/**
|
|
32
|
-
* Done, change the events.
|
|
33
|
-
*
|
|
34
|
-
* @param {Array<Event>} events
|
|
35
|
-
* @returns {undefined}
|
|
36
|
-
*/
|
|
37
|
-
consume(h) {
|
|
38
|
-
if (this.map.sort(function(n, l) {
|
|
39
|
-
return n[0] - l[0];
|
|
40
|
-
}), this.map.length === 0)
|
|
41
|
-
return;
|
|
42
|
-
let t = this.map.length;
|
|
43
|
-
const p = [];
|
|
44
|
-
for (; t > 0; )
|
|
45
|
-
t -= 1, p.push(h.slice(this.map[t][0] + this.map[t][1]), this.map[t][2]), h.length = this.map[t][0];
|
|
46
|
-
p.push(h.slice()), h.length = 0;
|
|
47
|
-
let s = p.pop();
|
|
48
|
-
for (; s; ) {
|
|
49
|
-
for (const n of s)
|
|
50
|
-
h.push(n);
|
|
51
|
-
s = p.pop();
|
|
52
|
-
}
|
|
53
|
-
this.map.length = 0;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
function m(i, h, t, p) {
|
|
57
|
-
let s = 0;
|
|
58
|
-
if (!(t === 0 && p.length === 0)) {
|
|
59
|
-
for (; s < i.map.length; ) {
|
|
60
|
-
if (i.map[s][0] === h) {
|
|
61
|
-
i.map[s][1] += t, i.map[s][2].push(...p);
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
s += 1;
|
|
65
|
-
}
|
|
66
|
-
i.map.push([h, t, p]);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
export {
|
|
70
|
-
e as EditMap
|
|
71
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
function a(i, t) {
|
|
2
|
-
let r = !1;
|
|
3
|
-
const l = [];
|
|
4
|
-
for (; t < i.length; ) {
|
|
5
|
-
const e = i[t];
|
|
6
|
-
if (r) {
|
|
7
|
-
if (e[0] === "enter")
|
|
8
|
-
e[1].type === "tableContent" && l.push(i[t + 1][1].type === "tableDelimiterMarker" ? "left" : "none");
|
|
9
|
-
else if (e[1].type === "tableContent") {
|
|
10
|
-
if (i[t - 1][1].type === "tableDelimiterMarker") {
|
|
11
|
-
const n = l.length - 1;
|
|
12
|
-
l[n] = l[n] === "left" ? "center" : "right";
|
|
13
|
-
}
|
|
14
|
-
} else if (e[1].type === "tableDelimiterRow")
|
|
15
|
-
break;
|
|
16
|
-
} else
|
|
17
|
-
e[0] === "enter" && e[1].type === "tableDelimiterRow" && (r = !0);
|
|
18
|
-
t += 1;
|
|
19
|
-
}
|
|
20
|
-
return l;
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
a as gfmTableAlign
|
|
24
|
-
};
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { factorySpace as v } from "../../micromark-factory-space/index.mjs";
|
|
2
|
-
import { markdownLineEnding as j, markdownSpace as g, markdownLineEndingOrSpace as P } from "../../micromark-util-character/index.mjs";
|
|
3
|
-
import { EditMap as N } from "./edit-map.mjs";
|
|
4
|
-
import { gfmTableAlign as I } from "./infer.mjs";
|
|
5
|
-
function U() {
|
|
6
|
-
return {
|
|
7
|
-
flow: {
|
|
8
|
-
null: {
|
|
9
|
-
name: "table",
|
|
10
|
-
tokenize: V,
|
|
11
|
-
resolveAll: _
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
function V(t, i, n) {
|
|
17
|
-
const a = this;
|
|
18
|
-
let s = 0, r = 0, l;
|
|
19
|
-
return D;
|
|
20
|
-
function D(e) {
|
|
21
|
-
let R = a.events.length - 1;
|
|
22
|
-
for (; R > -1; ) {
|
|
23
|
-
const z = a.events[R][1].type;
|
|
24
|
-
if (z === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
|
|
25
|
-
z === "linePrefix")
|
|
26
|
-
R--;
|
|
27
|
-
else
|
|
28
|
-
break;
|
|
29
|
-
}
|
|
30
|
-
const M = R > -1 ? a.events[R][1].type : null, S = M === "tableHead" || M === "tableRow" ? H : p;
|
|
31
|
-
return S === H && a.parser.lazy[a.now().line] ? n(e) : S(e);
|
|
32
|
-
}
|
|
33
|
-
function p(e) {
|
|
34
|
-
return t.enter("tableHead"), t.enter("tableRow"), f(e);
|
|
35
|
-
}
|
|
36
|
-
function f(e) {
|
|
37
|
-
return e === 124 || (l = !0, r += 1), d(e);
|
|
38
|
-
}
|
|
39
|
-
function d(e) {
|
|
40
|
-
return e === null ? n(e) : j(e) ? r > 1 ? (r = 0, a.interrupt = !0, t.exit("tableRow"), t.enter("lineEnding"), t.consume(e), t.exit("lineEnding"), w) : n(e) : g(e) ? v(t, d, "whitespace")(e) : (r += 1, l && (l = !1, s += 1), e === 124 ? (t.enter("tableCellDivider"), t.consume(e), t.exit("tableCellDivider"), l = !0, d) : (t.enter("data"), b(e)));
|
|
41
|
-
}
|
|
42
|
-
function b(e) {
|
|
43
|
-
return e === null || e === 124 || P(e) ? (t.exit("data"), d(e)) : (t.consume(e), e === 92 ? m : b);
|
|
44
|
-
}
|
|
45
|
-
function m(e) {
|
|
46
|
-
return e === 92 || e === 124 ? (t.consume(e), b) : b(e);
|
|
47
|
-
}
|
|
48
|
-
function w(e) {
|
|
49
|
-
return a.interrupt = !1, a.parser.lazy[a.now().line] ? n(e) : (t.enter("tableDelimiterRow"), l = !1, g(e) ? v(t, u, "linePrefix", a.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(e) : u(e));
|
|
50
|
-
}
|
|
51
|
-
function u(e) {
|
|
52
|
-
return e === 45 || e === 58 ? A(e) : e === 124 ? (l = !0, t.enter("tableCellDivider"), t.consume(e), t.exit("tableCellDivider"), T) : h(e);
|
|
53
|
-
}
|
|
54
|
-
function T(e) {
|
|
55
|
-
return g(e) ? v(t, A, "whitespace")(e) : A(e);
|
|
56
|
-
}
|
|
57
|
-
function A(e) {
|
|
58
|
-
return e === 58 ? (r += 1, l = !0, t.enter("tableDelimiterMarker"), t.consume(e), t.exit("tableDelimiterMarker"), B) : e === 45 ? (r += 1, B(e)) : e === null || j(e) ? E(e) : h(e);
|
|
59
|
-
}
|
|
60
|
-
function B(e) {
|
|
61
|
-
return e === 45 ? (t.enter("tableDelimiterFiller"), F(e)) : h(e);
|
|
62
|
-
}
|
|
63
|
-
function F(e) {
|
|
64
|
-
return e === 45 ? (t.consume(e), F) : e === 58 ? (l = !0, t.exit("tableDelimiterFiller"), t.enter("tableDelimiterMarker"), t.consume(e), t.exit("tableDelimiterMarker"), C) : (t.exit("tableDelimiterFiller"), C(e));
|
|
65
|
-
}
|
|
66
|
-
function C(e) {
|
|
67
|
-
return g(e) ? v(t, E, "whitespace")(e) : E(e);
|
|
68
|
-
}
|
|
69
|
-
function E(e) {
|
|
70
|
-
return e === 124 ? u(e) : e === null || j(e) ? !l || s !== r ? h(e) : (t.exit("tableDelimiterRow"), t.exit("tableHead"), i(e)) : h(e);
|
|
71
|
-
}
|
|
72
|
-
function h(e) {
|
|
73
|
-
return n(e);
|
|
74
|
-
}
|
|
75
|
-
function H(e) {
|
|
76
|
-
return t.enter("tableRow"), o(e);
|
|
77
|
-
}
|
|
78
|
-
function o(e) {
|
|
79
|
-
return e === 124 ? (t.enter("tableCellDivider"), t.consume(e), t.exit("tableCellDivider"), o) : e === null || j(e) ? (t.exit("tableRow"), i(e)) : g(e) ? v(t, o, "whitespace")(e) : (t.enter("data"), O(e));
|
|
80
|
-
}
|
|
81
|
-
function O(e) {
|
|
82
|
-
return e === null || e === 124 || P(e) ? (t.exit("data"), o(e)) : (t.consume(e), e === 92 ? L : O);
|
|
83
|
-
}
|
|
84
|
-
function L(e) {
|
|
85
|
-
return e === 92 || e === 124 ? (t.consume(e), O) : O(e);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
function _(t, i) {
|
|
89
|
-
let n = -1, a = !0, s = 0, r = [0, 0, 0, 0], l = [0, 0, 0, 0], D = !1, p = 0, f, d, b;
|
|
90
|
-
const m = new N();
|
|
91
|
-
for (; ++n < t.length; ) {
|
|
92
|
-
const w = t[n], u = w[1];
|
|
93
|
-
w[0] === "enter" ? u.type === "tableHead" ? (D = !1, p !== 0 && (x(m, i, p, f, d), d = void 0, p = 0), f = {
|
|
94
|
-
type: "table",
|
|
95
|
-
start: Object.assign({}, u.start),
|
|
96
|
-
// Note: correct end is set later.
|
|
97
|
-
end: Object.assign({}, u.end)
|
|
98
|
-
}, m.add(n, 0, [["enter", f, i]])) : u.type === "tableRow" || u.type === "tableDelimiterRow" ? (a = !0, b = void 0, r = [0, 0, 0, 0], l = [0, n + 1, 0, 0], D && (D = !1, d = {
|
|
99
|
-
type: "tableBody",
|
|
100
|
-
start: Object.assign({}, u.start),
|
|
101
|
-
// Note: correct end is set later.
|
|
102
|
-
end: Object.assign({}, u.end)
|
|
103
|
-
}, m.add(n, 0, [["enter", d, i]])), s = u.type === "tableDelimiterRow" ? 2 : d ? 3 : 1) : s && (u.type === "data" || u.type === "tableDelimiterMarker" || u.type === "tableDelimiterFiller") ? (a = !1, l[2] === 0 && (r[1] !== 0 && (l[0] = l[1], b = k(m, i, r, s, void 0, b), r = [0, 0, 0, 0]), l[2] = n)) : u.type === "tableCellDivider" && (a ? a = !1 : (r[1] !== 0 && (l[0] = l[1], b = k(m, i, r, s, void 0, b)), r = l, l = [r[1], n, 0, 0])) : u.type === "tableHead" ? (D = !0, p = n) : u.type === "tableRow" || u.type === "tableDelimiterRow" ? (p = n, r[1] !== 0 ? (l[0] = l[1], b = k(m, i, r, s, n, b)) : l[1] !== 0 && (b = k(m, i, l, s, n, b)), s = 0) : s && (u.type === "data" || u.type === "tableDelimiterMarker" || u.type === "tableDelimiterFiller") && (l[3] = n);
|
|
104
|
-
}
|
|
105
|
-
for (p !== 0 && x(m, i, p, f, d), m.consume(i.events), n = -1; ++n < i.events.length; ) {
|
|
106
|
-
const w = i.events[n];
|
|
107
|
-
w[0] === "enter" && w[1].type === "table" && (w[1]._align = I(i.events, n));
|
|
108
|
-
}
|
|
109
|
-
return t;
|
|
110
|
-
}
|
|
111
|
-
function k(t, i, n, a, s, r) {
|
|
112
|
-
const l = a === 1 ? "tableHeader" : a === 2 ? "tableDelimiter" : "tableData", D = "tableContent";
|
|
113
|
-
n[0] !== 0 && (r.end = Object.assign({}, y(i.events, n[0])), t.add(n[0], 0, [["exit", r, i]]));
|
|
114
|
-
const p = y(i.events, n[1]);
|
|
115
|
-
if (r = {
|
|
116
|
-
type: l,
|
|
117
|
-
start: Object.assign({}, p),
|
|
118
|
-
// Note: correct end is set later.
|
|
119
|
-
end: Object.assign({}, p)
|
|
120
|
-
}, t.add(n[1], 0, [["enter", r, i]]), n[2] !== 0) {
|
|
121
|
-
const f = y(i.events, n[2]), d = y(i.events, n[3]), b = {
|
|
122
|
-
type: D,
|
|
123
|
-
start: Object.assign({}, f),
|
|
124
|
-
end: Object.assign({}, d)
|
|
125
|
-
};
|
|
126
|
-
if (t.add(n[2], 0, [["enter", b, i]]), a !== 2) {
|
|
127
|
-
const m = i.events[n[2]], w = i.events[n[3]];
|
|
128
|
-
if (m[1].end = Object.assign({}, w[1].end), m[1].type = "chunkText", m[1].contentType = "text", n[3] > n[2] + 1) {
|
|
129
|
-
const u = n[2] + 1, T = n[3] - n[2] - 1;
|
|
130
|
-
t.add(u, T, []);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
t.add(n[3] + 1, 0, [["exit", b, i]]);
|
|
134
|
-
}
|
|
135
|
-
return s !== void 0 && (r.end = Object.assign({}, y(i.events, s)), t.add(s, 0, [["exit", r, i]]), r = void 0), r;
|
|
136
|
-
}
|
|
137
|
-
function x(t, i, n, a, s) {
|
|
138
|
-
const r = [], l = y(i.events, n);
|
|
139
|
-
s && (s.end = Object.assign({}, l), r.push(["exit", s, i])), a.end = Object.assign({}, l), r.push(["exit", a, i]), t.add(n + 1, 0, r);
|
|
140
|
-
}
|
|
141
|
-
function y(t, i) {
|
|
142
|
-
const n = t[i], a = n[0] === "enter" ? "start" : "end";
|
|
143
|
-
return n[1][a];
|
|
144
|
-
}
|
|
145
|
-
export {
|
|
146
|
-
U as gfmTable
|
|
147
|
-
};
|