@glodon-aiot/agent-cli-ui 0.0.0-20251106104234
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/README.git.md +73 -0
- package/README.lib.md +135 -0
- package/dist/es/AgentClientUI.mjs +150 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/FileItem/index.mjs +95 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/InputProgress/index.mjs +38 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/SearchReference/index.mjs +101 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionAction/index.mjs +251 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/ReferItem/index.mjs +86 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs +92 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRelated/index.mjs +46 -0
- package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +365 -0
- package/dist/es/Dialog/AgentChat/PromptSetting/index.mjs +105 -0
- package/dist/es/Dialog/AgentChat/Tools/ConnectToNetwork/index.mjs +92 -0
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PromptListItem.mjs +89 -0
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PublicPromptList.mjs +47 -0
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/access/empty.svg.mjs +4 -0
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/index.mjs +120 -0
- package/dist/es/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.mjs +48 -0
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +47 -0
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/SessionItem.mjs +135 -0
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.mjs +130 -0
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/index.mjs +44 -0
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/ClearModal/index.mjs +50 -0
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/FileCard/index.mjs +128 -0
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.mjs +413 -0
- package/dist/es/Dialog/AgentChat/index.mjs +1045 -0
- package/dist/es/Dialog/SessionList/index.mjs +323 -0
- package/dist/es/Dialog/UploadingPrompt/index.mjs +64 -0
- package/dist/es/Dialog/index.mjs +180 -0
- package/dist/es/Footer/FooterWarning.mjs +24 -0
- package/dist/es/Footer/index.mjs +17 -0
- package/dist/es/QuillEditor/index.mjs +231 -0
- package/dist/es/ReactTextGenerationUI/components/TextSiders/index.mjs +406 -0
- package/dist/es/ReactTextGenerationUI/components/fetchEventSource/fetch.mjs +112 -0
- package/dist/es/ReactTextGenerationUI/components/fetchEventSource/parse.mjs +97 -0
- package/dist/es/ReactTextGenerationUI/index.mjs +81 -0
- package/dist/es/_virtual/_commonjsHelpers.mjs +8 -0
- package/dist/es/_virtual/index.mjs +4 -0
- package/dist/es/_virtual/index2.mjs +4 -0
- package/dist/es/_virtual/index3.mjs +4 -0
- package/dist/es/_virtual/lib.mjs +4 -0
- package/dist/es/_virtual/prism-core.mjs +4 -0
- package/dist/es/_virtual/types.mjs +4 -0
- package/dist/es/_virtual/ua-parser.min.mjs +4 -0
- package/dist/es/_virtual/utilities.mjs +4 -0
- package/dist/es/assets/brand.svg.mjs +4 -0
- package/dist/es/assets/doc-icons/doc.svg.mjs +4 -0
- package/dist/es/assets/doc-icons/docx.svg.mjs +4 -0
- package/dist/es/assets/doc-icons/pdf.svg.mjs +4 -0
- package/dist/es/assets/icon.svg.mjs +4 -0
- package/dist/es/assets/think.svg.mjs +4 -0
- package/dist/es/components/FilePreview/index.mjs +83 -0
- package/dist/es/components/Greeting/index.mjs +30 -0
- package/dist/es/components/Iconfont/index.mjs +12 -0
- package/dist/es/components/JsonDisplay/index.mjs +15 -0
- package/dist/es/components/KnowledgeList/KnowledgeSelect/index.mjs +67 -0
- package/dist/es/components/KnowledgeList/index.mjs +73 -0
- package/dist/es/components/Recommend/RecommendItem.mjs +100 -0
- package/dist/es/components/Recommend/index.mjs +76 -0
- package/dist/es/components/Recommend/tip.svg.mjs +4 -0
- package/dist/es/components/Sider/index.mjs +24 -0
- package/dist/es/components/WebLink/index.mjs +26 -0
- package/dist/es/constant.mjs +123 -0
- package/dist/es/context/SessionContext.mjs +26 -0
- package/dist/es/context.mjs +7 -0
- package/dist/es/hooks/useSessionState.mjs +6 -0
- package/dist/es/index.mjs +534 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +9 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +8 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +7 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +7 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +15 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +16 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +12 -0
- package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +201 -0
- package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +1087 -0
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +104 -0
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +568 -0
- package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +158 -0
- package/dist/es/node_modules/@ungap/structured-clone/esm/deserialize.mjs +70 -0
- package/dist/es/node_modules/@ungap/structured-clone/esm/index.mjs +11 -0
- package/dist/es/node_modules/@ungap/structured-clone/esm/serialize.mjs +124 -0
- package/dist/es/node_modules/@ungap/structured-clone/esm/types.mjs +13 -0
- package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +847 -0
- package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +35 -0
- package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +226 -0
- package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +33 -0
- package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +20 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +76 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +13 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +34 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +178 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +83 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +84 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/global/index.mjs +3 -0
- package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +141 -0
- package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +7 -0
- package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +22 -0
- package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +47 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +13 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +52 -0
- package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +10 -0
- package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +15 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +8 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +54 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +32 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +19 -0
- package/dist/es/node_modules/ccount/index.mjs +12 -0
- package/dist/es/node_modules/character-reference-invalid/index.json.mjs +33 -0
- package/dist/es/node_modules/comma-separated-tokens/index.mjs +18 -0
- package/dist/es/node_modules/decode-named-character-reference/index.dom.mjs +14 -0
- package/dist/es/node_modules/devlop/lib/default.mjs +8 -0
- package/dist/es/node_modules/estree-util-is-identifier-name/lib/index.mjs +7 -0
- package/dist/es/node_modules/extend/index.mjs +46 -0
- package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +93 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/web-namespaces/index.mjs +11 -0
- package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +16 -0
- package/dist/es/node_modules/hast-util-from-parse5/lib/index.mjs +162 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/create.mjs +14 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/defined-info.mjs +36 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/info.mjs +28 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/merge.mjs +10 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/schema.mjs +21 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/vfile-location/lib/index.mjs +47 -0
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/web-namespaces/index.mjs +11 -0
- package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +61 -0
- package/dist/es/node_modules/hast-util-parse-selector/index.mjs +14 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/lib/index.mjs +298 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/hast-to-react.mjs +22 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/create.mjs +14 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/defined-info.mjs +36 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/info.mjs +28 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/merge.mjs +10 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/schema.mjs +21 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +223 -0
- package/dist/es/node_modules/hast-util-whitespace/lib/index.mjs +10 -0
- package/dist/es/node_modules/hastscript/lib/create-h.mjs +126 -0
- package/dist/es/node_modules/hastscript/lib/index.mjs +8 -0
- package/dist/es/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +4 -0
- package/dist/es/node_modules/hastscript/node_modules/hast-util-parse-selector/lib/index.mjs +20 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/create.mjs +14 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/defined-info.mjs +36 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/info.mjs +28 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/merge.mjs +10 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/schema.mjs +21 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/html-url-attributes/lib/index.mjs +16 -0
- package/dist/es/node_modules/is-alphabetical/index.mjs +8 -0
- package/dist/es/node_modules/is-alphanumerical/index.mjs +9 -0
- package/dist/es/node_modules/is-decimal/index.mjs +8 -0
- package/dist/es/node_modules/is-hexadecimal/index.mjs +8 -0
- package/dist/es/node_modules/katex/dist/katex.mjs +11700 -0
- package/dist/es/node_modules/longest-streak/index.mjs +12 -0
- package/dist/es/node_modules/markdown-table/index.mjs +70 -0
- package/dist/es/node_modules/mdast-util-find-and-replace/lib/index.mjs +72 -0
- package/dist/es/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.mjs +8 -0
- package/dist/es/node_modules/mdast-util-from-markdown/lib/index.mjs +584 -0
- package/dist/es/node_modules/mdast-util-gfm/lib/index.mjs +17 -0
- package/dist/es/node_modules/mdast-util-gfm-autolink-literal/lib/index.mjs +136 -0
- package/dist/es/node_modules/mdast-util-gfm-footnote/lib/index.mjs +100 -0
- package/dist/es/node_modules/mdast-util-gfm-strikethrough/lib/index.mjs +61 -0
- package/dist/es/node_modules/mdast-util-gfm-table/lib/index.mjs +170 -0
- package/dist/es/node_modules/mdast-util-gfm-task-list-item/lib/index.mjs +72 -0
- package/dist/es/node_modules/mdast-util-math/lib/index.mjs +170 -0
- package/dist/es/node_modules/mdast-util-phrasing/lib/index.mjs +30 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/footer.mjs +123 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/blockquote.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/break.mjs +16 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/code.mjs +25 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/delete.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/emphasis.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.mjs +31 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/heading.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/html.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image-reference.mjs +22 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image.mjs +17 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/index.mjs +58 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/inline-code.mjs +17 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link-reference.mjs +21 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link.mjs +17 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list-item.mjs +65 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list.mjs +21 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/paragraph.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/root.mjs +10 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/strong.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-cell.mjs +13 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-row.mjs +26 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table.mjs +35 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/text.mjs +11 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/index.mjs +19 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/revert.mjs +22 -0
- package/dist/es/node_modules/mdast-util-to-hast/lib/state.mjs +145 -0
- package/dist/es/node_modules/mdast-util-to-hast/node_modules/unist-util-visit/lib/index.mjs +16 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/blockquote.mjs +12 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/break.mjs +13 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/code.mjs +49 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/definition.mjs +37 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/emphasis.mjs +37 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/heading.mjs +44 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/html.mjs +10 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image-reference.mjs +36 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image.mjs +40 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/index.mjs +44 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/inline-code.mjs +22 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link-reference.mjs +36 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link.mjs +50 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list-item.mjs +19 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list.mjs +35 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/paragraph.mjs +7 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/root.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/strong.mjs +37 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/text.mjs +6 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.mjs +14 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-fence.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-quote.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-strong.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.mjs +6 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-info.mjs +67 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.mjs +9 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.mjs +13 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.mjs +15 -0
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.mjs +15 -0
- package/dist/es/node_modules/mdast-util-to-markdown/node_modules/unist-util-visit/lib/index.mjs +16 -0
- package/dist/es/node_modules/mdast-util-to-string/lib/index.mjs +29 -0
- package/dist/es/node_modules/micromark/lib/constructs.mjs +85 -0
- package/dist/es/node_modules/micromark/lib/create-tokenizer.mjs +225 -0
- package/dist/es/node_modules/micromark/lib/initialize/content.mjs +37 -0
- package/dist/es/node_modules/micromark/lib/initialize/document.mjs +133 -0
- package/dist/es/node_modules/micromark/lib/initialize/flow.mjs +33 -0
- package/dist/es/node_modules/micromark/lib/initialize/text.mjs +103 -0
- package/dist/es/node_modules/micromark/lib/parse.mjs +32 -0
- package/dist/es/node_modules/micromark/lib/postprocess.mjs +9 -0
- package/dist/es/node_modules/micromark/lib/preprocess.mjs +40 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/attention.mjs +74 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/autolink.mjs +43 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/blank-line.mjs +18 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/block-quote.mjs +42 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/character-escape.mjs +17 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/character-reference.mjs +30 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-fenced.mjs +94 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-indented.mjs +43 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-text.mjs +45 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/content.mjs +50 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/definition.mjs +80 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/hard-break-escape.mjs +17 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/heading-atx.mjs +46 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/html-flow.mjs +144 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/html-text.mjs +102 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-end.mjs +152 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-image.mjs +22 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-link.mjs +19 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/line-ending.mjs +14 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/list.mjs +90 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/setext-underline.mjs +62 -0
- package/dist/es/node_modules/micromark-core-commonmark/lib/thematic-break.mjs +25 -0
- package/dist/es/node_modules/micromark-extension-gfm/index.mjs +12 -0
- package/dist/es/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.mjs +193 -0
- package/dist/es/node_modules/micromark-extension-gfm-footnote/lib/syntax.mjs +192 -0
- package/dist/es/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.mjs +68 -0
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/edit-map.mjs +71 -0
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/infer.mjs +24 -0
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/syntax.mjs +147 -0
- package/dist/es/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.mjs +45 -0
- package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +76 -0
- package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +48 -0
- package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +15 -0
- package/dist/es/node_modules/micromark-factory-destination/index.mjs +31 -0
- package/dist/es/node_modules/micromark-factory-label/index.mjs +28 -0
- package/dist/es/node_modules/micromark-factory-space/index.mjs +15 -0
- package/dist/es/node_modules/micromark-factory-title/index.mjs +26 -0
- package/dist/es/node_modules/micromark-factory-whitespace/index.mjs +12 -0
- package/dist/es/node_modules/micromark-util-character/index.mjs +39 -0
- package/dist/es/node_modules/micromark-util-chunked/index.mjs +16 -0
- package/dist/es/node_modules/micromark-util-classify-character/index.mjs +10 -0
- package/dist/es/node_modules/micromark-util-combine-extensions/index.mjs +36 -0
- package/dist/es/node_modules/micromark-util-decode-numeric-character-reference/index.mjs +16 -0
- package/dist/es/node_modules/micromark-util-decode-string/index.mjs +18 -0
- package/dist/es/node_modules/micromark-util-html-tag-name/index.mjs +5 -0
- package/dist/es/node_modules/micromark-util-normalize-identifier/index.mjs +6 -0
- package/dist/es/node_modules/micromark-util-resolve-all/index.mjs +12 -0
- package/dist/es/node_modules/micromark-util-sanitize-uri/index.mjs +23 -0
- package/dist/es/node_modules/micromark-util-subtokenize/index.mjs +65 -0
- package/dist/es/node_modules/micromark-util-subtokenize/lib/splice-buffer.mjs +175 -0
- package/dist/es/node_modules/moment/dist/moment.mjs +2301 -0
- package/dist/es/node_modules/parse-entities/decode-entity.browser.mjs +8 -0
- package/dist/es/node_modules/parse-entities/index.mjs +83 -0
- package/dist/es/node_modules/parse-entities/node_modules/character-entities-legacy/index.json.mjs +217 -0
- package/dist/es/node_modules/property-information/find.mjs +25 -0
- package/dist/es/node_modules/property-information/html.mjs +10 -0
- package/dist/es/node_modules/property-information/lib/aria.mjs +63 -0
- package/dist/es/node_modules/property-information/lib/html.mjs +354 -0
- package/dist/es/node_modules/property-information/lib/util/case-insensitive-transform.mjs +8 -0
- package/dist/es/node_modules/property-information/lib/util/case-sensitive-transform.mjs +7 -0
- package/dist/es/node_modules/property-information/lib/util/create.mjs +13 -0
- package/dist/es/node_modules/property-information/lib/util/defined-info.mjs +18 -0
- package/dist/es/node_modules/property-information/lib/util/info.mjs +19 -0
- package/dist/es/node_modules/property-information/lib/util/merge.mjs +11 -0
- package/dist/es/node_modules/property-information/lib/util/schema.mjs +10 -0
- package/dist/es/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/property-information/lib/xlink.mjs +20 -0
- package/dist/es/node_modules/property-information/lib/xml.mjs +16 -0
- package/dist/es/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/property-information/normalize.mjs +7 -0
- package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
- package/dist/es/node_modules/react-markdown/lib/index.mjs +153 -0
- package/dist/es/node_modules/react-markdown/node_modules/remark-parse/lib/index.mjs +29 -0
- package/dist/es/node_modules/react-markdown/node_modules/unist-util-visit/lib/index.mjs +16 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +7 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +101 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +283 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +4 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +10 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +195 -0
- package/dist/es/node_modules/refractor/core.mjs +111 -0
- package/dist/es/node_modules/refractor/index.mjs +553 -0
- package/dist/es/node_modules/refractor/lang/abap.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/abnf.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/actionscript.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/ada.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/agda.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/al.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/antlr4.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/apacheconf.mjs +59 -0
- package/dist/es/node_modules/refractor/lang/apex.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/apl.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/applescript.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/aql.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/arduino.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/arff.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/asciidoc.mjs +208 -0
- package/dist/es/node_modules/refractor/lang/asm6502.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/asmatmel.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/aspnet.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/autohotkey.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/autoit.mjs +43 -0
- package/dist/es/node_modules/refractor/lang/avisynth.mjs +167 -0
- package/dist/es/node_modules/refractor/lang/avro-idl.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/bash.mjs +206 -0
- package/dist/es/node_modules/refractor/lang/basic.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/batch.mjs +95 -0
- package/dist/es/node_modules/refractor/lang/bbcode.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/bicep.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/birb.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/bison.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/bnf.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/brainfuck.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/brightscript.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/bro.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/bsl.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/c.mjs +78 -0
- package/dist/es/node_modules/refractor/lang/cfscript.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/chaiscript.mjs +65 -0
- package/dist/es/node_modules/refractor/lang/cil.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/clike.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/clojure.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/cmake.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/cobol.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/coffeescript.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/concurnas.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/coq.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/cpp.mjs +98 -0
- package/dist/es/node_modules/refractor/lang/crystal.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/csharp.mjs +277 -0
- package/dist/es/node_modules/refractor/lang/cshtml.mjs +104 -0
- package/dist/es/node_modules/refractor/lang/csp.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/css-extras.mjs +109 -0
- package/dist/es/node_modules/refractor/lang/css.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/csv.mjs +16 -0
- package/dist/es/node_modules/refractor/lang/cypher.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/d.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/dart.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/dataweave.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/dax.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/dhall.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/diff.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/django.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/dns-zone-file.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/docker.mjs +83 -0
- package/dist/es/node_modules/refractor/lang/dot.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/ebnf.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/editorconfig.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/eiffel.mjs +46 -0
- package/dist/es/node_modules/refractor/lang/ejs.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/elixir.mjs +100 -0
- package/dist/es/node_modules/refractor/lang/elm.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/erb.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/erlang.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/etlua.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/excel-formula.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/factor.mjs +569 -0
- package/dist/es/node_modules/refractor/lang/false.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/firestore-security-rules.mjs +43 -0
- package/dist/es/node_modules/refractor/lang/flow.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/fortran.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/fsharp.mjs +76 -0
- package/dist/es/node_modules/refractor/lang/ftl.mjs +102 -0
- package/dist/es/node_modules/refractor/lang/gap.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/gcode.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/gdscript.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/gedcom.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/gherkin.mjs +94 -0
- package/dist/es/node_modules/refractor/lang/git.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/glsl.mjs +18 -0
- package/dist/es/node_modules/refractor/lang/gml.mjs +19 -0
- package/dist/es/node_modules/refractor/lang/gn.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/go-module.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/go.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/graphql.mjs +133 -0
- package/dist/es/node_modules/refractor/lang/groovy.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/haml.mjs +132 -0
- package/dist/es/node_modules/refractor/lang/handlebars.mjs +46 -0
- package/dist/es/node_modules/refractor/lang/haskell.mjs +76 -0
- package/dist/es/node_modules/refractor/lang/haxe.mjs +84 -0
- package/dist/es/node_modules/refractor/lang/hcl.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/hlsl.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/hoon.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/hpkp.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/hsts.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/http.mjs +126 -0
- package/dist/es/node_modules/refractor/lang/ichigojam.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/icon.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/icu-message-format.mjs +136 -0
- package/dist/es/node_modules/refractor/lang/idris.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/iecst.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/ignore.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/inform7.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/ini.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/io.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/j.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/java.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/javadoc.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/javadoclike.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/javascript.mjs +114 -0
- package/dist/es/node_modules/refractor/lang/javastacktrace.mjs +146 -0
- package/dist/es/node_modules/refractor/lang/jexl.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/jolie.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/jq.mjs +71 -0
- package/dist/es/node_modules/refractor/lang/js-extras.mjs +104 -0
- package/dist/es/node_modules/refractor/lang/js-templates.mjs +153 -0
- package/dist/es/node_modules/refractor/lang/jsdoc.mjs +83 -0
- package/dist/es/node_modules/refractor/lang/json.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/json5.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/jsonp.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/jsstacktrace.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/jsx.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/julia.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/keepalived.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/keyman.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/kotlin.mjs +81 -0
- package/dist/es/node_modules/refractor/lang/kumir.mjs +85 -0
- package/dist/es/node_modules/refractor/lang/kusto.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/latex.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/latte.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/less.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/lilypond.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/liquid.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/lisp.mjs +158 -0
- package/dist/es/node_modules/refractor/lang/livescript.mjs +119 -0
- package/dist/es/node_modules/refractor/lang/llvm.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/log.mjs +103 -0
- package/dist/es/node_modules/refractor/lang/lolcode.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/lua.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/magma.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/makefile.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/markdown.mjs +306 -0
- package/dist/es/node_modules/refractor/lang/markup-templating.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/markup.mjs +154 -0
- package/dist/es/node_modules/refractor/lang/matlab.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/maxscript.mjs +70 -0
- package/dist/es/node_modules/refractor/lang/mel.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/mermaid.mjs +116 -0
- package/dist/es/node_modules/refractor/lang/mizar.mjs +24 -0
- package/dist/es/node_modules/refractor/lang/mongodb.mjs +287 -0
- package/dist/es/node_modules/refractor/lang/monkey.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/moonscript.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/n1ql.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/n4js.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/nand2tetris-hdl.mjs +21 -0
- package/dist/es/node_modules/refractor/lang/naniscript.mjs +140 -0
- package/dist/es/node_modules/refractor/lang/nasm.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/neon.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/nevod.mjs +125 -0
- package/dist/es/node_modules/refractor/lang/nginx.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/nim.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/nix.mjs +45 -0
- package/dist/es/node_modules/refractor/lang/nsis.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/objectivec.mjs +23 -0
- package/dist/es/node_modules/refractor/lang/ocaml.mjs +64 -0
- package/dist/es/node_modules/refractor/lang/opencl.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/openqasm.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/oz.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/parigp.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/parser.mjs +80 -0
- package/dist/es/node_modules/refractor/lang/pascal.mjs +66 -0
- package/dist/es/node_modules/refractor/lang/pascaligo.mjs +70 -0
- package/dist/es/node_modules/refractor/lang/pcaxis.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/peoplecode.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/perl.mjs +134 -0
- package/dist/es/node_modules/refractor/lang/php-extras.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/php.mjs +301 -0
- package/dist/es/node_modules/refractor/lang/phpdoc.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/plsql.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/powerquery.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/powershell.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/processing.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/prolog.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/promql.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/properties.mjs +21 -0
- package/dist/es/node_modules/refractor/lang/protobuf.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/psl.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/pug.mjs +173 -0
- package/dist/es/node_modules/refractor/lang/puppet.mjs +140 -0
- package/dist/es/node_modules/refractor/lang/pure.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/purebasic.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/purescript.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/python.mjs +73 -0
- package/dist/es/node_modules/refractor/lang/q.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/qml.mjs +67 -0
- package/dist/es/node_modules/refractor/lang/qore.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/qsharp.mjs +93 -0
- package/dist/es/node_modules/refractor/lang/r.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/racket.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/reason.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/regex.mjs +97 -0
- package/dist/es/node_modules/refractor/lang/rego.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/renpy.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/rest.mjs +199 -0
- package/dist/es/node_modules/refractor/lang/rip.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/roboconf.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/robotframework.mjs +95 -0
- package/dist/es/node_modules/refractor/lang/ruby.mjs +159 -0
- package/dist/es/node_modules/refractor/lang/rust.mjs +122 -0
- package/dist/es/node_modules/refractor/lang/sas.mjs +305 -0
- package/dist/es/node_modules/refractor/lang/sass.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/scala.mjs +59 -0
- package/dist/es/node_modules/refractor/lang/scheme.mjs +120 -0
- package/dist/es/node_modules/refractor/lang/scss.mjs +82 -0
- package/dist/es/node_modules/refractor/lang/shell-session.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/smali.mjs +84 -0
- package/dist/es/node_modules/refractor/lang/smalltalk.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/smarty.mjs +106 -0
- package/dist/es/node_modules/refractor/lang/sml.mjs +64 -0
- package/dist/es/node_modules/refractor/lang/solidity.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/solution-file.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/soy.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/sparql.mjs +24 -0
- package/dist/es/node_modules/refractor/lang/splunk-spl.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/sqf.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/sql.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/squirrel.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/stan.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/stylus.mjs +141 -0
- package/dist/es/node_modules/refractor/lang/swift.mjs +125 -0
- package/dist/es/node_modules/refractor/lang/systemd.mjs +65 -0
- package/dist/es/node_modules/refractor/lang/t4-cs.mjs +17 -0
- package/dist/es/node_modules/refractor/lang/t4-templating.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/t4-vb.mjs +17 -0
- package/dist/es/node_modules/refractor/lang/tap.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/tcl.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/textile.mjs +248 -0
- package/dist/es/node_modules/refractor/lang/toml.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/tremor.mjs +67 -0
- package/dist/es/node_modules/refractor/lang/tsx.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/tt2.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/turtle.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/twig.mjs +48 -0
- package/dist/es/node_modules/refractor/lang/typescript.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/typoscript.mjs +81 -0
- package/dist/es/node_modules/refractor/lang/unrealscript.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/uorazor.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/uri.mjs +92 -0
- package/dist/es/node_modules/refractor/lang/v.mjs +85 -0
- package/dist/es/node_modules/refractor/lang/vala.mjs +87 -0
- package/dist/es/node_modules/refractor/lang/vbnet.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/velocity.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/verilog.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/vhdl.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/vim.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/visual-basic.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/warpscript.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/wasm.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/web-idl.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/wiki.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/wolfram.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/wren.mjs +97 -0
- package/dist/es/node_modules/refractor/lang/xeora.mjs +121 -0
- package/dist/es/node_modules/refractor/lang/xml-doc.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/xojo.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/xquery.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/yaml.mjs +78 -0
- package/dist/es/node_modules/refractor/lang/yang.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/zig.mjs +80 -0
- package/dist/es/node_modules/refractor/node_modules/comma-separated-tokens/index.mjs +16 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/factory.mjs +77 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/html.mjs +8 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/index.mjs +5 -0
- package/dist/es/node_modules/refractor/node_modules/prismjs/components/prism-core.mjs +720 -0
- package/dist/es/node_modules/refractor/node_modules/space-separated-tokens/index.mjs +14 -0
- package/dist/es/node_modules/rehype-external-links/lib/index.mjs +34 -0
- package/dist/es/node_modules/rehype-external-links/node_modules/is-absolute-url/index.mjs +9 -0
- package/dist/es/node_modules/rehype-external-links/node_modules/unist-util-visit/lib/index.mjs +16 -0
- package/dist/es/node_modules/rehype-katex/lib/index.mjs +83 -0
- package/dist/es/node_modules/rehype-raw/lib/index.mjs +26 -0
- package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode-codepoint.mjs +38 -0
- package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode.mjs +251 -0
- package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/generated/decode-data-html.mjs +7 -0
- package/dist/es/node_modules/rehype-raw/node_modules/hast-util-raw/lib/index.mjs +249 -0
- package/dist/es/node_modules/rehype-raw/node_modules/hast-util-to-parse5/lib/index.mjs +125 -0
- package/dist/es/node_modules/rehype-raw/node_modules/html-void-elements/index.mjs +4 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/doctype.mjs +34 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/error-codes.mjs +7 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/foreign-content.mjs +103 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/html.mjs +44 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/token.mjs +14 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/unicode.mjs +38 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/formatting-element-list.mjs +91 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/index.mjs +2308 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/open-element-stack.mjs +220 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/serializer/index.mjs +2 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/index.mjs +1948 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/preprocessor.mjs +92 -0
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tree-adapters/default.mjs +173 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/create.mjs +17 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/defined-info.mjs +27 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/info.mjs +23 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/merge.mjs +11 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/schema.mjs +17 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/rehype-raw/node_modules/unist-util-visit/lib/index.mjs +16 -0
- package/dist/es/node_modules/rehype-raw/node_modules/web-namespaces/index.mjs +11 -0
- package/dist/es/node_modules/remark-gfm/lib/index.mjs +13 -0
- package/dist/es/node_modules/remark-math/lib/index.mjs +13 -0
- package/dist/es/node_modules/remark-rehype/lib/index.mjs +51 -0
- package/dist/es/node_modules/space-separated-tokens/index.mjs +11 -0
- package/dist/es/node_modules/style-to-js/cjs/index.mjs +22 -0
- package/dist/es/node_modules/style-to-js/cjs/utilities.mjs +18 -0
- package/dist/es/node_modules/style-to-js/node_modules/inline-style-parser/index.mjs +93 -0
- package/dist/es/node_modules/style-to-js/node_modules/style-to-object/cjs/index.mjs +25 -0
- package/dist/es/node_modules/trim-lines/index.mjs +25 -0
- package/dist/es/node_modules/tslib/tslib.es6.mjs +30 -0
- package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +123 -0
- package/dist/es/node_modules/unified/lib/callable-instance.mjs +25 -0
- package/dist/es/node_modules/unified/lib/index.mjs +525 -0
- package/dist/es/node_modules/unified/node_modules/bail/index.mjs +7 -0
- package/dist/es/node_modules/unified/node_modules/is-plain-obj/index.mjs +9 -0
- package/dist/es/node_modules/unified/node_modules/trough/lib/index.mjs +61 -0
- package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +32 -0
- package/dist/es/node_modules/unist-util-is/lib/index.mjs +81 -0
- package/dist/es/node_modules/unist-util-position/lib/index.mjs +26 -0
- package/dist/es/node_modules/unist-util-stringify-position/lib/index.mjs +15 -0
- package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +6 -0
- package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +56 -0
- package/dist/es/node_modules/vfile/lib/index.mjs +401 -0
- package/dist/es/node_modules/vfile/lib/minpath.browser.mjs +120 -0
- package/dist/es/node_modules/vfile/lib/minproc.browser.mjs +9 -0
- package/dist/es/node_modules/vfile/lib/minurl.browser.mjs +35 -0
- package/dist/es/node_modules/vfile/lib/minurl.shared.mjs +7 -0
- package/dist/es/node_modules/vfile-message/lib/index.mjs +106 -0
- package/dist/es/node_modules/xtend/immutable.mjs +12 -0
- package/dist/es/node_modules/zwitch/index.mjs +18 -0
- package/dist/es/packages/agent-cli-ui/package.json.mjs +163 -0
- package/dist/es/packages/react-components/dist/es/Iconfont/index.mjs +8 -0
- package/dist/es/packages/react-components/dist/es/components/Copy/index.mjs +43 -0
- package/dist/es/packages/react-components/dist/es/components/Markdown/ATag/index.mjs +44 -0
- package/dist/es/packages/react-components/dist/es/components/Markdown/Code/index.mjs +64 -0
- package/dist/es/packages/react-components/dist/es/components/Markdown/Image/index.mjs +62 -0
- package/dist/es/packages/react-components/dist/es/components/Markdown/Video/index.mjs +19 -0
- package/dist/es/packages/react-components/dist/es/components/Markdown/index.mjs +78 -0
- package/dist/es/packages/react-components/dist/es/index.mjs +10 -0
- package/dist/es/packages/react-components/dist/es/utils/clipboard.mjs +38 -0
- package/dist/es/packages/react-components/dist/es/utils/markdown/index.mjs +29 -0
- package/dist/es/src/global.css +1 -0
- package/dist/es/src/image-viewer.css +1 -0
- package/dist/es/src/katex.min.css +1 -0
- package/dist/es/src/mask.css +1 -0
- package/dist/es/src/safe-area.css +1 -0
- package/dist/es/src/style.css +1 -0
- package/dist/es/src/style10.css +1 -0
- package/dist/es/src/style11.css +1 -0
- package/dist/es/src/style12.css +1 -0
- package/dist/es/src/style13.css +1 -0
- package/dist/es/src/style14.css +1 -0
- package/dist/es/src/style15.css +1 -0
- package/dist/es/src/style16.css +1 -0
- package/dist/es/src/style17.css +1 -0
- package/dist/es/src/style18.css +1 -0
- package/dist/es/src/style19.css +1 -0
- package/dist/es/src/style2.css +1 -0
- package/dist/es/src/style20.css +1 -0
- package/dist/es/src/style21.css +1 -0
- package/dist/es/src/style22.css +1 -0
- package/dist/es/src/style23.css +1 -0
- package/dist/es/src/style24.css +1 -0
- package/dist/es/src/style25.css +1 -0
- package/dist/es/src/style26.css +1 -0
- package/dist/es/src/style27.css +1 -0
- package/dist/es/src/style28.css +1 -0
- package/dist/es/src/style29.css +1 -0
- package/dist/es/src/style3.css +1 -0
- package/dist/es/src/style30.css +1 -0
- package/dist/es/src/style31.css +1 -0
- package/dist/es/src/style32.css +1 -0
- package/dist/es/src/style33.css +1 -0
- package/dist/es/src/style4.css +1 -0
- package/dist/es/src/style5.css +1 -0
- package/dist/es/src/style6.css +1 -0
- package/dist/es/src/style7.css +1 -0
- package/dist/es/src/style8.css +1 -0
- package/dist/es/src/style9.css +1 -0
- package/dist/es/types.mjs +4 -0
- package/dist/es/utils/antdConfig.mjs +15 -0
- package/dist/es/utils/index.mjs +37 -0
- package/dist/lib/index.css +1 -0
- package/dist/lib/index.js +328 -0
- package/dist/src/AgentClientUI.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/FileItem/index.d.ts +11 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/InputProgress/index.d.ts +7 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SearchReference/index.d.ts +10 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionAction/index.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionRefer/ReferItem/index.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionRefer/index.d.ts +10 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/SessionRelated/index.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/HistoryItem/index.d.ts +20 -0
- package/dist/src/Dialog/AgentChat/PromptSetting/index.d.ts +15 -0
- package/dist/src/Dialog/AgentChat/Tools/ConnectToNetwork/index.d.ts +14 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/EditPromptModal/index.d.ts +11 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PrivatePromptList.d.ts +12 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PromptListItem.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PublicPromptList.d.ts +12 -0
- package/dist/src/Dialog/AgentChat/Tools/PromptManager/index.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.d.ts +15 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/NameEditPanel.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/SessionItem.d.ts +16 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/index.d.ts +9 -0
- package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/ClearModal/index.d.ts +7 -0
- package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/FileCard/index.d.ts +22 -0
- package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.d.ts +22 -0
- package/dist/src/Dialog/AgentChat/index.d.ts +22 -0
- package/dist/src/Dialog/SessionList/index.d.ts +24 -0
- package/dist/src/Dialog/UploadingPrompt/index.d.ts +9 -0
- package/dist/src/Dialog/index.d.ts +18 -0
- package/dist/src/Footer/FooterWarning.d.ts +8 -0
- package/dist/src/Footer/index.d.ts +8 -0
- package/dist/src/QuillEditor/index.d.ts +21 -0
- package/dist/src/ReactTextGenerationUI/components/TextSiders/index.d.ts +22 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSource/fetch.d.ts +44 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSource/index.d.ts +1 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSource/parse.d.ts +36 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/fetch.d.ts +44 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/index.d.ts +1 -0
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/parse.d.ts +36 -0
- package/dist/src/ReactTextGenerationUI/index.d.ts +4 -0
- package/dist/src/components/FilePreview/index.d.ts +20 -0
- package/dist/src/components/Greeting/index.d.ts +8 -0
- package/dist/src/components/Header/index.d.ts +7 -0
- package/dist/src/components/Iconfont/font_4108228_z72fskklg2.d.ts +0 -0
- package/dist/src/components/Iconfont/font_4439177_7rytwlvbmjj.d.ts +0 -0
- package/dist/src/components/Iconfont/index.d.ts +2 -0
- package/dist/src/components/JsonDisplay/index.d.ts +6 -0
- package/dist/src/components/KnowledgeDoc/index.d.ts +9 -0
- package/dist/src/components/KnowledgeList/KnowledgeSelect/index.d.ts +12 -0
- package/dist/src/components/KnowledgeList/index.d.ts +10 -0
- package/dist/src/components/PDFViewer/index.d.ts +7 -0
- package/dist/src/components/Recommend/RecommendItem.d.ts +12 -0
- package/dist/src/components/Recommend/index.d.ts +15 -0
- package/dist/src/components/Sider/index.d.ts +8 -0
- package/dist/src/components/WebLink/index.d.ts +7 -0
- package/dist/src/constant.d.ts +21 -0
- package/dist/src/context/SessionContext.d.ts +15 -0
- package/dist/src/context.d.ts +5 -0
- package/dist/src/hooks/useSessionState.d.ts +7 -0
- package/dist/src/index.d.ts +49 -0
- package/dist/src/types.d.ts +235 -0
- package/dist/src/utils/antdConfig.d.ts +7 -0
- package/dist/src/utils/fetchEventSource/fetch.d.ts +44 -0
- package/dist/src/utils/fetchEventSource/index.d.ts +1 -0
- package/dist/src/utils/fetchEventSource/parse.d.ts +36 -0
- package/dist/src/utils/index.d.ts +25 -0
- package/dist/src/utils/reactCompatibility.d.ts +27 -0
- package/dist/src/utils/testAntdPrefix.d.ts +3 -0
- package/package.json +142 -0
|
@@ -0,0 +1,720 @@
|
|
|
1
|
+
import { commonjsGlobal as J } from "../../../../../_virtual/_commonjsHelpers.mjs";
|
|
2
|
+
import { __module as U } from "../../../../../_virtual/prism-core.mjs";
|
|
3
|
+
(function(q) {
|
|
4
|
+
var k = typeof window != "undefined" ? window : typeof WorkerGlobalScope != "undefined" && self instanceof WorkerGlobalScope ? self : {};
|
|
5
|
+
/**
|
|
6
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
7
|
+
*
|
|
8
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
9
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
10
|
+
* @namespace
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
var z = function(c) {
|
|
14
|
+
var G = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, R = 0, A = {}, t = {
|
|
15
|
+
/**
|
|
16
|
+
* By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
|
|
17
|
+
* current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
|
|
18
|
+
* additional languages or plugins yourself.
|
|
19
|
+
*
|
|
20
|
+
* By setting this value to `true`, Prism will not automatically highlight all code elements on the page.
|
|
21
|
+
*
|
|
22
|
+
* You obviously have to change this value before the automatic highlighting started. To do this, you can add an
|
|
23
|
+
* empty Prism object into the global scope before loading the Prism script like this:
|
|
24
|
+
*
|
|
25
|
+
* ```js
|
|
26
|
+
* window.Prism = window.Prism || {};
|
|
27
|
+
* Prism.manual = true;
|
|
28
|
+
* // add a new <script> to load Prism's script
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @default false
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof Prism
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
manual: c.Prism && c.Prism.manual,
|
|
37
|
+
/**
|
|
38
|
+
* By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses
|
|
39
|
+
* `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your
|
|
40
|
+
* own worker, you don't want it to do this.
|
|
41
|
+
*
|
|
42
|
+
* By setting this value to `true`, Prism will not add its own listeners to the worker.
|
|
43
|
+
*
|
|
44
|
+
* You obviously have to change this value before Prism executes. To do this, you can add an
|
|
45
|
+
* empty Prism object into the global scope before loading the Prism script like this:
|
|
46
|
+
*
|
|
47
|
+
* ```js
|
|
48
|
+
* window.Prism = window.Prism || {};
|
|
49
|
+
* Prism.disableWorkerMessageHandler = true;
|
|
50
|
+
* // Load Prism's script
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @default false
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof Prism
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
disableWorkerMessageHandler: c.Prism && c.Prism.disableWorkerMessageHandler,
|
|
59
|
+
/**
|
|
60
|
+
* A namespace for utility methods.
|
|
61
|
+
*
|
|
62
|
+
* All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
|
|
63
|
+
* change or disappear at any time.
|
|
64
|
+
*
|
|
65
|
+
* @namespace
|
|
66
|
+
* @memberof Prism
|
|
67
|
+
*/
|
|
68
|
+
util: {
|
|
69
|
+
encode: function a(e) {
|
|
70
|
+
return e instanceof d ? new d(e.type, a(e.content), e.alias) : Array.isArray(e) ? e.map(a) : e.replace(/&/g, "&").replace(/</g, "<").replace(/\u00a0/g, " ");
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* Returns the name of the type of the given value.
|
|
74
|
+
*
|
|
75
|
+
* @param {any} o
|
|
76
|
+
* @returns {string}
|
|
77
|
+
* @example
|
|
78
|
+
* type(null) === 'Null'
|
|
79
|
+
* type(undefined) === 'Undefined'
|
|
80
|
+
* type(123) === 'Number'
|
|
81
|
+
* type('foo') === 'String'
|
|
82
|
+
* type(true) === 'Boolean'
|
|
83
|
+
* type([1, 2]) === 'Array'
|
|
84
|
+
* type({}) === 'Object'
|
|
85
|
+
* type(String) === 'Function'
|
|
86
|
+
* type(/abc+/) === 'RegExp'
|
|
87
|
+
*/
|
|
88
|
+
type: function(a) {
|
|
89
|
+
return Object.prototype.toString.call(a).slice(8, -1);
|
|
90
|
+
},
|
|
91
|
+
/**
|
|
92
|
+
* Returns a unique number for the given object. Later calls will still return the same number.
|
|
93
|
+
*
|
|
94
|
+
* @param {Object} obj
|
|
95
|
+
* @returns {number}
|
|
96
|
+
*/
|
|
97
|
+
objId: function(a) {
|
|
98
|
+
return a.__id || Object.defineProperty(a, "__id", {
|
|
99
|
+
value: ++R
|
|
100
|
+
}), a.__id;
|
|
101
|
+
},
|
|
102
|
+
/**
|
|
103
|
+
* Creates a deep clone of the given object.
|
|
104
|
+
*
|
|
105
|
+
* The main intended use of this function is to clone language definitions.
|
|
106
|
+
*
|
|
107
|
+
* @param {T} o
|
|
108
|
+
* @param {Record<number, any>} [visited]
|
|
109
|
+
* @returns {T}
|
|
110
|
+
* @template T
|
|
111
|
+
*/
|
|
112
|
+
clone: function a(e, n) {
|
|
113
|
+
n = n || {};
|
|
114
|
+
var r, i;
|
|
115
|
+
switch (t.util.type(e)) {
|
|
116
|
+
case "Object":
|
|
117
|
+
if (i = t.util.objId(e), n[i])
|
|
118
|
+
return n[i];
|
|
119
|
+
r = /** @type {Record<string, any>} */
|
|
120
|
+
{}, n[i] = r;
|
|
121
|
+
for (var l in e)
|
|
122
|
+
e.hasOwnProperty(l) && (r[l] = a(e[l], n));
|
|
123
|
+
return (
|
|
124
|
+
/** @type {any} */
|
|
125
|
+
r
|
|
126
|
+
);
|
|
127
|
+
case "Array":
|
|
128
|
+
return i = t.util.objId(e), n[i] ? n[i] : (r = [], n[i] = r, /** @type {Array} */
|
|
129
|
+
/** @type {any} */
|
|
130
|
+
e.forEach(function(o, u) {
|
|
131
|
+
r[u] = a(o, n);
|
|
132
|
+
}), /** @type {any} */
|
|
133
|
+
r);
|
|
134
|
+
default:
|
|
135
|
+
return e;
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
/**
|
|
139
|
+
* Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
|
|
140
|
+
*
|
|
141
|
+
* If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
|
|
142
|
+
*
|
|
143
|
+
* @param {Element} element
|
|
144
|
+
* @returns {string}
|
|
145
|
+
*/
|
|
146
|
+
getLanguage: function(a) {
|
|
147
|
+
for (; a; ) {
|
|
148
|
+
var e = G.exec(a.className);
|
|
149
|
+
if (e)
|
|
150
|
+
return e[1].toLowerCase();
|
|
151
|
+
a = a.parentElement;
|
|
152
|
+
}
|
|
153
|
+
return "none";
|
|
154
|
+
},
|
|
155
|
+
/**
|
|
156
|
+
* Sets the Prism `language-xxxx` class of the given element.
|
|
157
|
+
*
|
|
158
|
+
* @param {Element} element
|
|
159
|
+
* @param {string} language
|
|
160
|
+
* @returns {void}
|
|
161
|
+
*/
|
|
162
|
+
setLanguage: function(a, e) {
|
|
163
|
+
a.className = a.className.replace(RegExp(G, "gi"), ""), a.classList.add("language-" + e);
|
|
164
|
+
},
|
|
165
|
+
/**
|
|
166
|
+
* Returns the script element that is currently executing.
|
|
167
|
+
*
|
|
168
|
+
* This does __not__ work for line script element.
|
|
169
|
+
*
|
|
170
|
+
* @returns {HTMLScriptElement | null}
|
|
171
|
+
*/
|
|
172
|
+
currentScript: function() {
|
|
173
|
+
if (typeof document == "undefined")
|
|
174
|
+
return null;
|
|
175
|
+
if ("currentScript" in document && 1 < 2)
|
|
176
|
+
return (
|
|
177
|
+
/** @type {any} */
|
|
178
|
+
document.currentScript
|
|
179
|
+
);
|
|
180
|
+
try {
|
|
181
|
+
throw new Error();
|
|
182
|
+
} catch (r) {
|
|
183
|
+
var a = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack) || [])[1];
|
|
184
|
+
if (a) {
|
|
185
|
+
var e = document.getElementsByTagName("script");
|
|
186
|
+
for (var n in e)
|
|
187
|
+
if (e[n].src == a)
|
|
188
|
+
return e[n];
|
|
189
|
+
}
|
|
190
|
+
return null;
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
/**
|
|
194
|
+
* Returns whether a given class is active for `element`.
|
|
195
|
+
*
|
|
196
|
+
* The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
|
|
197
|
+
* if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
|
|
198
|
+
* given class is just the given class with a `no-` prefix.
|
|
199
|
+
*
|
|
200
|
+
* Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
|
|
201
|
+
* closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
|
|
202
|
+
* ancestors have the given class or the negated version of it, then the default activation will be returned.
|
|
203
|
+
*
|
|
204
|
+
* In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
|
|
205
|
+
* version of it, the class is considered active.
|
|
206
|
+
*
|
|
207
|
+
* @param {Element} element
|
|
208
|
+
* @param {string} className
|
|
209
|
+
* @param {boolean} [defaultActivation=false]
|
|
210
|
+
* @returns {boolean}
|
|
211
|
+
*/
|
|
212
|
+
isActive: function(a, e, n) {
|
|
213
|
+
for (var r = "no-" + e; a; ) {
|
|
214
|
+
var i = a.classList;
|
|
215
|
+
if (i.contains(e))
|
|
216
|
+
return !0;
|
|
217
|
+
if (i.contains(r))
|
|
218
|
+
return !1;
|
|
219
|
+
a = a.parentElement;
|
|
220
|
+
}
|
|
221
|
+
return !!n;
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
/**
|
|
225
|
+
* This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
|
|
226
|
+
*
|
|
227
|
+
* @namespace
|
|
228
|
+
* @memberof Prism
|
|
229
|
+
* @public
|
|
230
|
+
*/
|
|
231
|
+
languages: {
|
|
232
|
+
/**
|
|
233
|
+
* The grammar for plain, unformatted text.
|
|
234
|
+
*/
|
|
235
|
+
plain: A,
|
|
236
|
+
plaintext: A,
|
|
237
|
+
text: A,
|
|
238
|
+
txt: A,
|
|
239
|
+
/**
|
|
240
|
+
* Creates a deep copy of the language with the given id and appends the given tokens.
|
|
241
|
+
*
|
|
242
|
+
* If a token in `redef` also appears in the copied language, then the existing token in the copied language
|
|
243
|
+
* will be overwritten at its original position.
|
|
244
|
+
*
|
|
245
|
+
* ## Best practices
|
|
246
|
+
*
|
|
247
|
+
* Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
|
|
248
|
+
* doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
|
|
249
|
+
* understand the language definition because, normally, the order of tokens matters in Prism grammars.
|
|
250
|
+
*
|
|
251
|
+
* Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
|
|
252
|
+
* Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
|
|
253
|
+
*
|
|
254
|
+
* @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
|
|
255
|
+
* @param {Grammar} redef The new tokens to append.
|
|
256
|
+
* @returns {Grammar} The new language created.
|
|
257
|
+
* @public
|
|
258
|
+
* @example
|
|
259
|
+
* Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
|
|
260
|
+
* // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
|
|
261
|
+
* // at its original position
|
|
262
|
+
* 'comment': { ... },
|
|
263
|
+
* // CSS doesn't have a 'color' token, so this token will be appended
|
|
264
|
+
* 'color': /\b(?:red|green|blue)\b/
|
|
265
|
+
* });
|
|
266
|
+
*/
|
|
267
|
+
extend: function(a, e) {
|
|
268
|
+
var n = t.util.clone(t.languages[a]);
|
|
269
|
+
for (var r in e)
|
|
270
|
+
n[r] = e[r];
|
|
271
|
+
return n;
|
|
272
|
+
},
|
|
273
|
+
/**
|
|
274
|
+
* Inserts tokens _before_ another token in a language definition or any other grammar.
|
|
275
|
+
*
|
|
276
|
+
* ## Usage
|
|
277
|
+
*
|
|
278
|
+
* This helper method makes it easy to modify existing languages. For example, the CSS language definition
|
|
279
|
+
* not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
|
|
280
|
+
* in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
|
|
281
|
+
* appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
|
|
282
|
+
* this:
|
|
283
|
+
*
|
|
284
|
+
* ```js
|
|
285
|
+
* Prism.languages.markup.style = {
|
|
286
|
+
* // token
|
|
287
|
+
* };
|
|
288
|
+
* ```
|
|
289
|
+
*
|
|
290
|
+
* then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
|
|
291
|
+
* before existing tokens. For the CSS example above, you would use it like this:
|
|
292
|
+
*
|
|
293
|
+
* ```js
|
|
294
|
+
* Prism.languages.insertBefore('markup', 'cdata', {
|
|
295
|
+
* 'style': {
|
|
296
|
+
* // token
|
|
297
|
+
* }
|
|
298
|
+
* });
|
|
299
|
+
* ```
|
|
300
|
+
*
|
|
301
|
+
* ## Special cases
|
|
302
|
+
*
|
|
303
|
+
* If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
|
|
304
|
+
* will be ignored.
|
|
305
|
+
*
|
|
306
|
+
* This behavior can be used to insert tokens after `before`:
|
|
307
|
+
*
|
|
308
|
+
* ```js
|
|
309
|
+
* Prism.languages.insertBefore('markup', 'comment', {
|
|
310
|
+
* 'comment': Prism.languages.markup.comment,
|
|
311
|
+
* // tokens after 'comment'
|
|
312
|
+
* });
|
|
313
|
+
* ```
|
|
314
|
+
*
|
|
315
|
+
* ## Limitations
|
|
316
|
+
*
|
|
317
|
+
* The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
|
|
318
|
+
* properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
|
|
319
|
+
* differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
|
|
320
|
+
* deleting properties which is necessary to insert at arbitrary positions.
|
|
321
|
+
*
|
|
322
|
+
* To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
|
|
323
|
+
* Instead, it will create a new object and replace all references to the target object with the new one. This
|
|
324
|
+
* can be done without temporarily deleting properties, so the iteration order is well-defined.
|
|
325
|
+
*
|
|
326
|
+
* However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
|
|
327
|
+
* you hold the target object in a variable, then the value of the variable will not change.
|
|
328
|
+
*
|
|
329
|
+
* ```js
|
|
330
|
+
* var oldMarkup = Prism.languages.markup;
|
|
331
|
+
* var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
|
|
332
|
+
*
|
|
333
|
+
* assert(oldMarkup !== Prism.languages.markup);
|
|
334
|
+
* assert(newMarkup === Prism.languages.markup);
|
|
335
|
+
* ```
|
|
336
|
+
*
|
|
337
|
+
* @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
|
|
338
|
+
* object to be modified.
|
|
339
|
+
* @param {string} before The key to insert before.
|
|
340
|
+
* @param {Grammar} insert An object containing the key-value pairs to be inserted.
|
|
341
|
+
* @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
|
|
342
|
+
* object to be modified.
|
|
343
|
+
*
|
|
344
|
+
* Defaults to `Prism.languages`.
|
|
345
|
+
* @returns {Grammar} The new grammar object.
|
|
346
|
+
* @public
|
|
347
|
+
*/
|
|
348
|
+
insertBefore: function(a, e, n, r) {
|
|
349
|
+
r = r || /** @type {any} */
|
|
350
|
+
t.languages;
|
|
351
|
+
var i = r[a], l = {};
|
|
352
|
+
for (var o in i)
|
|
353
|
+
if (i.hasOwnProperty(o)) {
|
|
354
|
+
if (o == e)
|
|
355
|
+
for (var u in n)
|
|
356
|
+
n.hasOwnProperty(u) && (l[u] = n[u]);
|
|
357
|
+
n.hasOwnProperty(o) || (l[o] = i[o]);
|
|
358
|
+
}
|
|
359
|
+
var g = r[a];
|
|
360
|
+
return r[a] = l, t.languages.DFS(t.languages, function(f, p) {
|
|
361
|
+
p === g && f != a && (this[f] = l);
|
|
362
|
+
}), l;
|
|
363
|
+
},
|
|
364
|
+
// Traverse a language definition with Depth First Search
|
|
365
|
+
DFS: function a(e, n, r, i) {
|
|
366
|
+
i = i || {};
|
|
367
|
+
var l = t.util.objId;
|
|
368
|
+
for (var o in e)
|
|
369
|
+
if (e.hasOwnProperty(o)) {
|
|
370
|
+
n.call(e, o, e[o], r || o);
|
|
371
|
+
var u = e[o], g = t.util.type(u);
|
|
372
|
+
g === "Object" && !i[l(u)] ? (i[l(u)] = !0, a(u, n, null, i)) : g === "Array" && !i[l(u)] && (i[l(u)] = !0, a(u, n, o, i));
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
plugins: {},
|
|
377
|
+
/**
|
|
378
|
+
* This is the most high-level function in Prism’s API.
|
|
379
|
+
* It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on
|
|
380
|
+
* each one of them.
|
|
381
|
+
*
|
|
382
|
+
* This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.
|
|
383
|
+
*
|
|
384
|
+
* @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.
|
|
385
|
+
* @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.
|
|
386
|
+
* @memberof Prism
|
|
387
|
+
* @public
|
|
388
|
+
*/
|
|
389
|
+
highlightAll: function(a, e) {
|
|
390
|
+
t.highlightAllUnder(document, a, e);
|
|
391
|
+
},
|
|
392
|
+
/**
|
|
393
|
+
* Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
|
|
394
|
+
* {@link Prism.highlightElement} on each one of them.
|
|
395
|
+
*
|
|
396
|
+
* The following hooks will be run:
|
|
397
|
+
* 1. `before-highlightall`
|
|
398
|
+
* 2. `before-all-elements-highlight`
|
|
399
|
+
* 3. All hooks of {@link Prism.highlightElement} for each element.
|
|
400
|
+
*
|
|
401
|
+
* @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.
|
|
402
|
+
* @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.
|
|
403
|
+
* @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.
|
|
404
|
+
* @memberof Prism
|
|
405
|
+
* @public
|
|
406
|
+
*/
|
|
407
|
+
highlightAllUnder: function(a, e, n) {
|
|
408
|
+
var r = {
|
|
409
|
+
callback: n,
|
|
410
|
+
container: a,
|
|
411
|
+
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
412
|
+
};
|
|
413
|
+
t.hooks.run("before-highlightall", r), r.elements = Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)), t.hooks.run("before-all-elements-highlight", r);
|
|
414
|
+
for (var i = 0, l; l = r.elements[i++]; )
|
|
415
|
+
t.highlightElement(l, e === !0, r.callback);
|
|
416
|
+
},
|
|
417
|
+
/**
|
|
418
|
+
* Highlights the code inside a single element.
|
|
419
|
+
*
|
|
420
|
+
* The following hooks will be run:
|
|
421
|
+
* 1. `before-sanity-check`
|
|
422
|
+
* 2. `before-highlight`
|
|
423
|
+
* 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.
|
|
424
|
+
* 4. `before-insert`
|
|
425
|
+
* 5. `after-highlight`
|
|
426
|
+
* 6. `complete`
|
|
427
|
+
*
|
|
428
|
+
* Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for
|
|
429
|
+
* the element's language.
|
|
430
|
+
*
|
|
431
|
+
* @param {Element} element The element containing the code.
|
|
432
|
+
* It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.
|
|
433
|
+
* @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers
|
|
434
|
+
* to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is
|
|
435
|
+
* [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).
|
|
436
|
+
*
|
|
437
|
+
* Note: All language definitions required to highlight the code must be included in the main `prism.js` file for
|
|
438
|
+
* asynchronous highlighting to work. You can build your own bundle on the
|
|
439
|
+
* [Download page](https://prismjs.com/download.html).
|
|
440
|
+
* @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.
|
|
441
|
+
* Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.
|
|
442
|
+
* @memberof Prism
|
|
443
|
+
* @public
|
|
444
|
+
*/
|
|
445
|
+
highlightElement: function(a, e, n) {
|
|
446
|
+
var r = t.util.getLanguage(a), i = t.languages[r];
|
|
447
|
+
t.util.setLanguage(a, r);
|
|
448
|
+
var l = a.parentElement;
|
|
449
|
+
l && l.nodeName.toLowerCase() === "pre" && t.util.setLanguage(l, r);
|
|
450
|
+
var o = a.textContent, u = {
|
|
451
|
+
element: a,
|
|
452
|
+
language: r,
|
|
453
|
+
grammar: i,
|
|
454
|
+
code: o
|
|
455
|
+
};
|
|
456
|
+
function g(p) {
|
|
457
|
+
u.highlightedCode = p, t.hooks.run("before-insert", u), u.element.innerHTML = u.highlightedCode, t.hooks.run("after-highlight", u), t.hooks.run("complete", u), n && n.call(u.element);
|
|
458
|
+
}
|
|
459
|
+
if (t.hooks.run("before-sanity-check", u), l = u.element.parentElement, l && l.nodeName.toLowerCase() === "pre" && !l.hasAttribute("tabindex") && l.setAttribute("tabindex", "0"), !u.code) {
|
|
460
|
+
t.hooks.run("complete", u), n && n.call(u.element);
|
|
461
|
+
return;
|
|
462
|
+
}
|
|
463
|
+
if (t.hooks.run("before-highlight", u), !u.grammar) {
|
|
464
|
+
g(t.util.encode(u.code));
|
|
465
|
+
return;
|
|
466
|
+
}
|
|
467
|
+
if (e && c.Worker) {
|
|
468
|
+
var f = new Worker(t.filename);
|
|
469
|
+
f.onmessage = function(p) {
|
|
470
|
+
g(p.data);
|
|
471
|
+
}, f.postMessage(JSON.stringify({
|
|
472
|
+
language: u.language,
|
|
473
|
+
code: u.code,
|
|
474
|
+
immediateClose: !0
|
|
475
|
+
}));
|
|
476
|
+
} else
|
|
477
|
+
g(t.highlight(u.code, u.grammar, u.language));
|
|
478
|
+
},
|
|
479
|
+
/**
|
|
480
|
+
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
|
|
481
|
+
* and the language definitions to use, and returns a string with the HTML produced.
|
|
482
|
+
*
|
|
483
|
+
* The following hooks will be run:
|
|
484
|
+
* 1. `before-tokenize`
|
|
485
|
+
* 2. `after-tokenize`
|
|
486
|
+
* 3. `wrap`: On each {@link Token}.
|
|
487
|
+
*
|
|
488
|
+
* @param {string} text A string with the code to be highlighted.
|
|
489
|
+
* @param {Grammar} grammar An object containing the tokens to use.
|
|
490
|
+
*
|
|
491
|
+
* Usually a language definition like `Prism.languages.markup`.
|
|
492
|
+
* @param {string} language The name of the language definition passed to `grammar`.
|
|
493
|
+
* @returns {string} The highlighted HTML.
|
|
494
|
+
* @memberof Prism
|
|
495
|
+
* @public
|
|
496
|
+
* @example
|
|
497
|
+
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
498
|
+
*/
|
|
499
|
+
highlight: function(a, e, n) {
|
|
500
|
+
var r = {
|
|
501
|
+
code: a,
|
|
502
|
+
grammar: e,
|
|
503
|
+
language: n
|
|
504
|
+
};
|
|
505
|
+
if (t.hooks.run("before-tokenize", r), !r.grammar)
|
|
506
|
+
throw new Error('The language "' + r.language + '" has no grammar.');
|
|
507
|
+
return r.tokens = t.tokenize(r.code, r.grammar), t.hooks.run("after-tokenize", r), d.stringify(t.util.encode(r.tokens), r.language);
|
|
508
|
+
},
|
|
509
|
+
/**
|
|
510
|
+
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
|
511
|
+
* and the language definitions to use, and returns an array with the tokenized code.
|
|
512
|
+
*
|
|
513
|
+
* When the language definition includes nested tokens, the function is called recursively on each of these tokens.
|
|
514
|
+
*
|
|
515
|
+
* This method could be useful in other contexts as well, as a very crude parser.
|
|
516
|
+
*
|
|
517
|
+
* @param {string} text A string with the code to be highlighted.
|
|
518
|
+
* @param {Grammar} grammar An object containing the tokens to use.
|
|
519
|
+
*
|
|
520
|
+
* Usually a language definition like `Prism.languages.markup`.
|
|
521
|
+
* @returns {TokenStream} An array of strings and tokens, a token stream.
|
|
522
|
+
* @memberof Prism
|
|
523
|
+
* @public
|
|
524
|
+
* @example
|
|
525
|
+
* let code = `var foo = 0;`;
|
|
526
|
+
* let tokens = Prism.tokenize(code, Prism.languages.javascript);
|
|
527
|
+
* tokens.forEach(token => {
|
|
528
|
+
* if (token instanceof Prism.Token && token.type === 'number') {
|
|
529
|
+
* console.log(`Found numeric literal: ${token.content}`);
|
|
530
|
+
* }
|
|
531
|
+
* });
|
|
532
|
+
*/
|
|
533
|
+
tokenize: function(a, e) {
|
|
534
|
+
var n = e.rest;
|
|
535
|
+
if (n) {
|
|
536
|
+
for (var r in n)
|
|
537
|
+
e[r] = n[r];
|
|
538
|
+
delete e.rest;
|
|
539
|
+
}
|
|
540
|
+
var i = new K();
|
|
541
|
+
return b(i, i.head, a), D(a, i, e, i.head, 0), V(i);
|
|
542
|
+
},
|
|
543
|
+
/**
|
|
544
|
+
* @namespace
|
|
545
|
+
* @memberof Prism
|
|
546
|
+
* @public
|
|
547
|
+
*/
|
|
548
|
+
hooks: {
|
|
549
|
+
all: {},
|
|
550
|
+
/**
|
|
551
|
+
* Adds the given callback to the list of callbacks for the given hook.
|
|
552
|
+
*
|
|
553
|
+
* The callback will be invoked when the hook it is registered for is run.
|
|
554
|
+
* Hooks are usually directly run by a highlight function but you can also run hooks yourself.
|
|
555
|
+
*
|
|
556
|
+
* One callback function can be registered to multiple hooks and the same hook multiple times.
|
|
557
|
+
*
|
|
558
|
+
* @param {string} name The name of the hook.
|
|
559
|
+
* @param {HookCallback} callback The callback function which is given environment variables.
|
|
560
|
+
* @public
|
|
561
|
+
*/
|
|
562
|
+
add: function(a, e) {
|
|
563
|
+
var n = t.hooks.all;
|
|
564
|
+
n[a] = n[a] || [], n[a].push(e);
|
|
565
|
+
},
|
|
566
|
+
/**
|
|
567
|
+
* Runs a hook invoking all registered callbacks with the given environment variables.
|
|
568
|
+
*
|
|
569
|
+
* Callbacks will be invoked synchronously and in the order in which they were registered.
|
|
570
|
+
*
|
|
571
|
+
* @param {string} name The name of the hook.
|
|
572
|
+
* @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
|
|
573
|
+
* @public
|
|
574
|
+
*/
|
|
575
|
+
run: function(a, e) {
|
|
576
|
+
var n = t.hooks.all[a];
|
|
577
|
+
if (!(!n || !n.length))
|
|
578
|
+
for (var r = 0, i; i = n[r++]; )
|
|
579
|
+
i(e);
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
Token: d
|
|
583
|
+
};
|
|
584
|
+
c.Prism = t;
|
|
585
|
+
function d(a, e, n, r) {
|
|
586
|
+
this.type = a, this.content = e, this.alias = n, this.length = (r || "").length | 0;
|
|
587
|
+
}
|
|
588
|
+
d.stringify = function a(e, n) {
|
|
589
|
+
if (typeof e == "string")
|
|
590
|
+
return e;
|
|
591
|
+
if (Array.isArray(e)) {
|
|
592
|
+
var r = "";
|
|
593
|
+
return e.forEach(function(g) {
|
|
594
|
+
r += a(g, n);
|
|
595
|
+
}), r;
|
|
596
|
+
}
|
|
597
|
+
var i = {
|
|
598
|
+
type: e.type,
|
|
599
|
+
content: a(e.content, n),
|
|
600
|
+
tag: "span",
|
|
601
|
+
classes: ["token", e.type],
|
|
602
|
+
attributes: {},
|
|
603
|
+
language: n
|
|
604
|
+
}, l = e.alias;
|
|
605
|
+
l && (Array.isArray(l) ? Array.prototype.push.apply(i.classes, l) : i.classes.push(l)), t.hooks.run("wrap", i);
|
|
606
|
+
var o = "";
|
|
607
|
+
for (var u in i.attributes)
|
|
608
|
+
o += " " + u + '="' + (i.attributes[u] || "").replace(/"/g, """) + '"';
|
|
609
|
+
return "<" + i.tag + ' class="' + i.classes.join(" ") + '"' + o + ">" + i.content + "</" + i.tag + ">";
|
|
610
|
+
};
|
|
611
|
+
function H(a, e, n, r) {
|
|
612
|
+
a.lastIndex = e;
|
|
613
|
+
var i = a.exec(n);
|
|
614
|
+
if (i && r && i[1]) {
|
|
615
|
+
var l = i[1].length;
|
|
616
|
+
i.index += l, i[0] = i[0].slice(l);
|
|
617
|
+
}
|
|
618
|
+
return i;
|
|
619
|
+
}
|
|
620
|
+
function D(a, e, n, r, i, l) {
|
|
621
|
+
for (var o in n)
|
|
622
|
+
if (!(!n.hasOwnProperty(o) || !n[o])) {
|
|
623
|
+
var u = n[o];
|
|
624
|
+
u = Array.isArray(u) ? u : [u];
|
|
625
|
+
for (var g = 0; g < u.length; ++g) {
|
|
626
|
+
if (l && l.cause == o + "," + g)
|
|
627
|
+
return;
|
|
628
|
+
var f = u[g], p = f.inside, T = !!f.lookbehind, $ = !!f.greedy, X = f.alias;
|
|
629
|
+
if ($ && !f.pattern.global) {
|
|
630
|
+
var Y = f.pattern.toString().match(/[imsuy]*$/)[0];
|
|
631
|
+
f.pattern = RegExp(f.pattern.source, Y + "g");
|
|
632
|
+
}
|
|
633
|
+
for (var B = f.pattern || f, s = r.next, v = i; s !== e.tail && !(l && v >= l.reach); v += s.value.length, s = s.next) {
|
|
634
|
+
var x = s.value;
|
|
635
|
+
if (e.length > a.length)
|
|
636
|
+
return;
|
|
637
|
+
if (!(x instanceof d)) {
|
|
638
|
+
var E = 1, h;
|
|
639
|
+
if ($) {
|
|
640
|
+
if (h = H(B, v, a, T), !h || h.index >= a.length)
|
|
641
|
+
break;
|
|
642
|
+
var P = h.index, Z = h.index + h[0].length, y = v;
|
|
643
|
+
for (y += s.value.length; P >= y; )
|
|
644
|
+
s = s.next, y += s.value.length;
|
|
645
|
+
if (y -= s.value.length, v = y, s.value instanceof d)
|
|
646
|
+
continue;
|
|
647
|
+
for (var w = s; w !== e.tail && (y < Z || typeof w.value == "string"); w = w.next)
|
|
648
|
+
E++, y += w.value.length;
|
|
649
|
+
E--, x = a.slice(v, y), h.index -= v;
|
|
650
|
+
} else if (h = H(B, 0, x, T), !h)
|
|
651
|
+
continue;
|
|
652
|
+
var P = h.index, C = h[0], I = x.slice(0, P), F = x.slice(P + C.length), M = v + x.length;
|
|
653
|
+
l && M > l.reach && (l.reach = M);
|
|
654
|
+
var S = s.prev;
|
|
655
|
+
I && (S = b(e, S, I), v += I.length), Q(e, S, E);
|
|
656
|
+
var _ = new d(o, p ? t.tokenize(C, p) : C, X, C);
|
|
657
|
+
if (s = b(e, S, _), F && b(e, s, F), E > 1) {
|
|
658
|
+
var W = {
|
|
659
|
+
cause: o + "," + g,
|
|
660
|
+
reach: M
|
|
661
|
+
};
|
|
662
|
+
D(a, e, n, s.prev, v, W), l && W.reach > l.reach && (l.reach = W.reach);
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
function K() {
|
|
670
|
+
var a = {
|
|
671
|
+
value: null,
|
|
672
|
+
prev: null,
|
|
673
|
+
next: null
|
|
674
|
+
}, e = {
|
|
675
|
+
value: null,
|
|
676
|
+
prev: a,
|
|
677
|
+
next: null
|
|
678
|
+
};
|
|
679
|
+
a.next = e, this.head = a, this.tail = e, this.length = 0;
|
|
680
|
+
}
|
|
681
|
+
function b(a, e, n) {
|
|
682
|
+
var r = e.next, i = {
|
|
683
|
+
value: n,
|
|
684
|
+
prev: e,
|
|
685
|
+
next: r
|
|
686
|
+
};
|
|
687
|
+
return e.next = i, r.prev = i, a.length++, i;
|
|
688
|
+
}
|
|
689
|
+
function Q(a, e, n) {
|
|
690
|
+
for (var r = e.next, i = 0; i < n && r !== a.tail; i++)
|
|
691
|
+
r = r.next;
|
|
692
|
+
e.next = r, r.prev = e, a.length -= i;
|
|
693
|
+
}
|
|
694
|
+
function V(a) {
|
|
695
|
+
for (var e = [], n = a.head.next; n !== a.tail; )
|
|
696
|
+
e.push(n.value), n = n.next;
|
|
697
|
+
return e;
|
|
698
|
+
}
|
|
699
|
+
if (!c.document)
|
|
700
|
+
return c.addEventListener && (t.disableWorkerMessageHandler || c.addEventListener("message", function(a) {
|
|
701
|
+
var e = JSON.parse(a.data), n = e.language, r = e.code, i = e.immediateClose;
|
|
702
|
+
c.postMessage(t.highlight(r, t.languages[n], n)), i && c.close();
|
|
703
|
+
}, !1)), t;
|
|
704
|
+
var m = t.util.currentScript();
|
|
705
|
+
m && (t.filename = m.src, m.hasAttribute("data-manual") && (t.manual = !0));
|
|
706
|
+
function L() {
|
|
707
|
+
t.manual || t.highlightAll();
|
|
708
|
+
}
|
|
709
|
+
if (!t.manual) {
|
|
710
|
+
var O = document.readyState;
|
|
711
|
+
O === "loading" || O === "interactive" && m && m.defer ? document.addEventListener("DOMContentLoaded", L) : window.requestAnimationFrame ? window.requestAnimationFrame(L) : window.setTimeout(L, 16);
|
|
712
|
+
}
|
|
713
|
+
return t;
|
|
714
|
+
}(k);
|
|
715
|
+
q.exports && (q.exports = z), typeof J != "undefined" && (J.Prism = z);
|
|
716
|
+
})(U);
|
|
717
|
+
var ee = U.exports;
|
|
718
|
+
export {
|
|
719
|
+
ee as p
|
|
720
|
+
};
|