@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,1045 @@
|
|
|
1
|
+
var fn = Object.defineProperty, gn = Object.defineProperties;
|
|
2
|
+
var un = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var pt = Object.getOwnPropertySymbols;
|
|
4
|
+
var mn = Object.prototype.hasOwnProperty, hn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Te = (k, h, o) => h in k ? fn(k, h, { enumerable: !0, configurable: !0, writable: !0, value: o }) : k[h] = o, Oe = (k, h) => {
|
|
6
|
+
for (var o in h || (h = {}))
|
|
7
|
+
mn.call(h, o) && Te(k, o, h[o]);
|
|
8
|
+
if (pt)
|
|
9
|
+
for (var o of pt(h))
|
|
10
|
+
hn.call(h, o) && Te(k, o, h[o]);
|
|
11
|
+
return k;
|
|
12
|
+
}, He = (k, h) => gn(k, un(h));
|
|
13
|
+
var F = (k, h, o) => (Te(k, typeof h != "symbol" ? h + "" : h, o), o);
|
|
14
|
+
var z = (k, h, o) => new Promise((j, e) => {
|
|
15
|
+
var w = (E) => {
|
|
16
|
+
try {
|
|
17
|
+
v(o.next(E));
|
|
18
|
+
} catch (P) {
|
|
19
|
+
e(P);
|
|
20
|
+
}
|
|
21
|
+
}, _ = (E) => {
|
|
22
|
+
try {
|
|
23
|
+
v(o.throw(E));
|
|
24
|
+
} catch (P) {
|
|
25
|
+
e(P);
|
|
26
|
+
}
|
|
27
|
+
}, v = (E) => E.done ? j(E.value) : Promise.resolve(E.value).then(w, _);
|
|
28
|
+
v((o = o.apply(k, h)).next());
|
|
29
|
+
});
|
|
30
|
+
import { jsx as d, jsxs as V, Fragment as yn } from "react/jsx-runtime";
|
|
31
|
+
import { memo as pn, forwardRef as vn, useState as m, useRef as K, useContext as bn, useEffect as L, useMemo as xn, useImperativeHandle as kn } from "react";
|
|
32
|
+
/* empty css */import { Spin as vt, Divider as wn, Button as Q, Space as ve, Upload as Cn, Tooltip as In, Popover as Nn, notification as ee, message as u } from "antd";
|
|
33
|
+
import re from "../../components/Iconfont/index.mjs";
|
|
34
|
+
import { IHistoryRole as te, ApplicationTypes as wt, ChatMessageRole as bt, PromptVariableType as be } from "@glodon-aiot/apis";
|
|
35
|
+
import Ct from "./HistoryItem/index.mjs";
|
|
36
|
+
import It from "dayjs";
|
|
37
|
+
import { v4 as Fe } from "uuid";
|
|
38
|
+
import Ln from "../../context.mjs";
|
|
39
|
+
import { configuration as En } from "@glodon-aiot/bot-client-sdk";
|
|
40
|
+
import { NET_OPEN_STATUS as W, MB as Pn } from "../../constant.mjs";
|
|
41
|
+
import Tn from "../../components/FilePreview/index.mjs";
|
|
42
|
+
import { getImageExtension as On } from "../../utils/index.mjs";
|
|
43
|
+
import Hn from "../../QuillEditor/index.mjs";
|
|
44
|
+
import Rn from "../../components/Recommend/index.mjs";
|
|
45
|
+
import Dn from "../../components/Greeting/index.mjs";
|
|
46
|
+
import Fn from "../../Footer/index.mjs";
|
|
47
|
+
import { CameraOutlined as jn, PlusOutlined as Mn } from "@ant-design/icons";
|
|
48
|
+
import Un from "./Tools/UploadKnowledgeFiles/index.mjs";
|
|
49
|
+
import zn from "../UploadingPrompt/index.mjs";
|
|
50
|
+
import Vn from "./PromptSetting/index.mjs";
|
|
51
|
+
import { useMemoizedFn as Re } from "ahooks";
|
|
52
|
+
import An from "./Tools/SessionListDrawer/index.mjs";
|
|
53
|
+
import $n from "./Tools/SessionHistoryDrawer/index.mjs";
|
|
54
|
+
import qn from "react-infinite-scroll-component";
|
|
55
|
+
import Bn from "./Tools/ConnectToNetwork/index.mjs";
|
|
56
|
+
import Wn from "./Tools/PromptManager/index.mjs";
|
|
57
|
+
import { useSessionState as Yn } from "../../hooks/useSessionState.mjs";
|
|
58
|
+
import Kn from "../../assets/icon.svg.mjs";
|
|
59
|
+
const Qn = pn(Ct), xt = {
|
|
60
|
+
icon: Kn,
|
|
61
|
+
text: "今天我能帮你什么?"
|
|
62
|
+
};
|
|
63
|
+
class ae {
|
|
64
|
+
constructor(h, o, j, e) {
|
|
65
|
+
F(this, "messageTime");
|
|
66
|
+
F(this, "isWaiting");
|
|
67
|
+
F(this, "messageId");
|
|
68
|
+
F(this, "isContext");
|
|
69
|
+
F(this, "actions");
|
|
70
|
+
F(this, "reference");
|
|
71
|
+
F(this, "isSensitive");
|
|
72
|
+
F(this, "isSuspend");
|
|
73
|
+
F(this, "comment");
|
|
74
|
+
this.content = h, this.sessionId = o, this.role = j, this.files = e, this.content = h, this.role = j, this.sessionId = o, this.files = e, this.messageTime = It(/* @__PURE__ */ new Date()).format("YYYY-MM-DD HH:mm:ss"), this.isWaiting = !1, this.messageId = Fe(), this.isContext = !1, this.actions = [], this.reference = [], this.isSensitive = !1, this.isSuspend = !1, this.comment = {
|
|
75
|
+
isAgree: 0
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
const kt = 10, De = (k, h, o, j) => {
|
|
80
|
+
let e = k;
|
|
81
|
+
if (j === wt.Agent && o && o.length > 0) {
|
|
82
|
+
const w = o.map((_) => `[${_.name.replace(/\.[^/.]+$/, "")}](${_.url})`).join(`
|
|
83
|
+
`);
|
|
84
|
+
e = w ? `${w}
|
|
85
|
+
${e}` : e;
|
|
86
|
+
}
|
|
87
|
+
return h && (e = `
|
|
88
|
+
${e}`), e;
|
|
89
|
+
}, Ni = vn((k, h) => {
|
|
90
|
+
var st, rt, at, lt, dt, ct, ft, gt, ut, mt, ht, yt;
|
|
91
|
+
const {
|
|
92
|
+
application: o,
|
|
93
|
+
docViewerUrl: j = "",
|
|
94
|
+
currentSession: e,
|
|
95
|
+
onCreateSession: w,
|
|
96
|
+
embeddingService: _,
|
|
97
|
+
setCurrentSession: v,
|
|
98
|
+
networkStatus: E,
|
|
99
|
+
setNetworkStatus: P
|
|
100
|
+
} = k, [b, C] = m([]), [Nt, le] = m(), [xe, je] = m(), H = K(null), {
|
|
101
|
+
service: R,
|
|
102
|
+
agentClient: I,
|
|
103
|
+
depId: Lt,
|
|
104
|
+
footer: Et,
|
|
105
|
+
transform: g,
|
|
106
|
+
defaultInput: ke,
|
|
107
|
+
onMessage: de,
|
|
108
|
+
onHistoryLoad: Me,
|
|
109
|
+
beforeMessageSend: A,
|
|
110
|
+
bodyStyle: Pt,
|
|
111
|
+
disabled: D,
|
|
112
|
+
features: r,
|
|
113
|
+
popupContainer: f,
|
|
114
|
+
icon: Tt,
|
|
115
|
+
sider: Ot,
|
|
116
|
+
mode: Ht
|
|
117
|
+
} = bn(Ln), [Ue, we] = m(!1), y = K(b), ze = K(void 0), [Rt, Dt] = m(0), [ne, G] = m(), [Ce, ce] = m(""), [Ve, Ie] = m(!1), fe = K(null), [Ae, Ft] = m([]), [$e, X] = m(!1), [qe, jt] = m(!1), [Mt, Ut] = m(""), [zt, Z] = m(), [J, ie] = m({}), ge = K(null), Be = K(null), Ne = K(null), [We, Vt] = m(!1), [At, $t] = m([]), [qt, ue] = m(!0), [Bt, Wt] = m(!0), [Ye, M] = m(!1), [Le, $] = m(!1), [Ke, Yt] = m(!1), [O, me] = m(typeof (r == null ? void 0 : r.promptVariables) == "object" ? r.promptVariables.default || [] : []), [Kt, Qt] = m(typeof (r == null ? void 0 : r.knowledges) == "object" && r.knowledges.default || void 0), [Qe, U] = m(!1), [_e, oe] = m(!1), [_t, S] = m(typeof (r == null ? void 0 : r.connectNetwork) == "object" && typeof (r == null ? void 0 : r.connectNetwork.default) == "boolean" ? r.connectNetwork.default : !1), [Ge, he] = m(!1), [Gt, q] = m(!1), [Xt, Zt] = m(null), [ye, Y] = m(!1), [Xe, Ze] = m(!1), {
|
|
118
|
+
isSwitchingToExistingSession: Je,
|
|
119
|
+
setIsSwitchingToExistingSession: pe
|
|
120
|
+
} = Yn();
|
|
121
|
+
L(() => {
|
|
122
|
+
if (Zt(e), e === null)
|
|
123
|
+
q(!1);
|
|
124
|
+
else if (e === void 0)
|
|
125
|
+
q(!0);
|
|
126
|
+
else {
|
|
127
|
+
if (Xt === null) {
|
|
128
|
+
if (Je) {
|
|
129
|
+
q(!0), pe(!1);
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
q(!1);
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
e.ready ? q(!1) : q(!0);
|
|
136
|
+
}
|
|
137
|
+
}, [e, e == null ? void 0 : e.ready, Je]), L(() => {
|
|
138
|
+
var a, l;
|
|
139
|
+
e && (y.current = []), C([]);
|
|
140
|
+
const t = H.current;
|
|
141
|
+
if (t && t.scrollTo({
|
|
142
|
+
top: 0
|
|
143
|
+
}), !((a = e == null ? void 0 : e.data) != null && a.id))
|
|
144
|
+
return;
|
|
145
|
+
if ($(!1), M(!1), (l = e.messages) != null && l.length) {
|
|
146
|
+
const c = [...e.messages.filter((s) => s == null ? void 0 : s.messageId)].reverse();
|
|
147
|
+
y.current = [...c], C([...c]), q(!1);
|
|
148
|
+
}
|
|
149
|
+
const n = (i) => {
|
|
150
|
+
var c;
|
|
151
|
+
(c = e == null ? void 0 : e.data) != null && c.id && (y.current = [...i].reverse(), C([...i].reverse()), !i || i.length < 10 ? oe(!1) : oe(!0), q(!1), Me && Me({
|
|
152
|
+
applicationId: o.id,
|
|
153
|
+
sessionId: e.data.id,
|
|
154
|
+
histories: i
|
|
155
|
+
}));
|
|
156
|
+
};
|
|
157
|
+
return e.addEventListener("history:loaded", n), () => {
|
|
158
|
+
y.current = [], C([]), e == null || e.removeEventListener("history:loaded", n);
|
|
159
|
+
};
|
|
160
|
+
}, [e]), L(() => {
|
|
161
|
+
const t = () => {
|
|
162
|
+
var n;
|
|
163
|
+
(n = e == null ? void 0 : e.data) != null && n.id && (e.promptVariables && me(e.promptVariables.sort((a, l) => a.key.localeCompare(l.key))), e.knowledges && Qt(e.knowledges), P(e.netOpen));
|
|
164
|
+
};
|
|
165
|
+
return e == null || e.addEventListener("data:updated", t), () => {
|
|
166
|
+
e == null || e.removeEventListener("data:updated", t);
|
|
167
|
+
};
|
|
168
|
+
}, [e]), L(() => {
|
|
169
|
+
var n;
|
|
170
|
+
if (!((n = e == null ? void 0 : e.data) != null && n.id))
|
|
171
|
+
return;
|
|
172
|
+
const t = (a) => {
|
|
173
|
+
var l;
|
|
174
|
+
console.error(a.message, a.cause, "e.case"), ee.config({
|
|
175
|
+
getContainer: () => (f == null ? void 0 : f.current) || document.body,
|
|
176
|
+
prefixCls: "gbot-notification"
|
|
177
|
+
}), ee.error({
|
|
178
|
+
message: ((l = a.cause) == null ? void 0 : l.message) || a.message
|
|
179
|
+
}), ee.config({
|
|
180
|
+
getContainer: void 0,
|
|
181
|
+
prefixCls: "gbot-notification"
|
|
182
|
+
});
|
|
183
|
+
};
|
|
184
|
+
return e.addEventListener("error", t), () => {
|
|
185
|
+
e == null || e.removeEventListener("error", t);
|
|
186
|
+
};
|
|
187
|
+
}, [e]);
|
|
188
|
+
const Jt = () => {
|
|
189
|
+
var a;
|
|
190
|
+
if (!((a = e == null ? void 0 : e.data) != null && a.id) || !(o != null && o.id))
|
|
191
|
+
return;
|
|
192
|
+
const t = e.data.id, n = b[b.length - 1];
|
|
193
|
+
if (n && n.isContext) {
|
|
194
|
+
u.config({
|
|
195
|
+
getContainer: () => (f == null ? void 0 : f.current) || document.body,
|
|
196
|
+
prefixCls: "gbot-message"
|
|
197
|
+
}), u.success("已开启新话题"), u.config({
|
|
198
|
+
getContainer: void 0,
|
|
199
|
+
prefixCls: "gbot-message"
|
|
200
|
+
});
|
|
201
|
+
return;
|
|
202
|
+
} else
|
|
203
|
+
e.clear().then(() => {
|
|
204
|
+
const l = new ae("", t, te.System);
|
|
205
|
+
l.isContext = !0, C([l, ...b]);
|
|
206
|
+
});
|
|
207
|
+
};
|
|
208
|
+
L(() => {
|
|
209
|
+
o != null && o.id && (R == null || R.getRecommendQues(o.id).then((t) => {
|
|
210
|
+
Ft(t);
|
|
211
|
+
}));
|
|
212
|
+
}, [Lt, o]);
|
|
213
|
+
const Se = (t) => z(void 0, null, function* () {
|
|
214
|
+
var N, T;
|
|
215
|
+
if (D) {
|
|
216
|
+
u.config({
|
|
217
|
+
getContainer: () => (f == null ? void 0 : f.current) || document.body,
|
|
218
|
+
prefixCls: "gbot-message"
|
|
219
|
+
}), u.error("发送功能被禁用"), u.config({
|
|
220
|
+
getContainer: void 0,
|
|
221
|
+
prefixCls: "gbot-message"
|
|
222
|
+
});
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
const n = t || Nt;
|
|
226
|
+
if (!(n != null && n.trim())) {
|
|
227
|
+
u.config({
|
|
228
|
+
getContainer: () => (f == null ? void 0 : f.current) || document.body,
|
|
229
|
+
prefixCls: "gbot-message"
|
|
230
|
+
}), u.error("请输入你想问的"), u.config({
|
|
231
|
+
getContainer: void 0,
|
|
232
|
+
prefixCls: "gbot-message"
|
|
233
|
+
});
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
if (!(O == null ? void 0 : O.every((x) => !!(x != null && x.value))))
|
|
237
|
+
if (g != null && g.promptVariables) {
|
|
238
|
+
u.config({
|
|
239
|
+
getContainer: () => (f == null ? void 0 : f.current) || document.body,
|
|
240
|
+
prefixCls: "gbot-message"
|
|
241
|
+
}), u.error("变量值不能为空"), u.config({
|
|
242
|
+
getContainer: void 0,
|
|
243
|
+
prefixCls: "gbot-message"
|
|
244
|
+
});
|
|
245
|
+
return;
|
|
246
|
+
} else
|
|
247
|
+
console.error("变量值不能为空", O == null ? void 0 : O.map((x) => !!(x != null && x.value)));
|
|
248
|
+
if (Le) {
|
|
249
|
+
u.config({
|
|
250
|
+
getContainer: () => (f == null ? void 0 : f.current) || document.body,
|
|
251
|
+
prefixCls: "gbot-message"
|
|
252
|
+
}), u.error("正在回复中"), u.config({
|
|
253
|
+
getContainer: void 0,
|
|
254
|
+
prefixCls: "gbot-message"
|
|
255
|
+
});
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
if (Ue) {
|
|
259
|
+
u.config({
|
|
260
|
+
getContainer: () => (f == null ? void 0 : f.current) || document.body,
|
|
261
|
+
prefixCls: "gbot-message"
|
|
262
|
+
}), u.error("等待初始化"), u.config({
|
|
263
|
+
getContainer: void 0,
|
|
264
|
+
prefixCls: "gbot-message"
|
|
265
|
+
});
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
268
|
+
if (!qt) {
|
|
269
|
+
u.config({
|
|
270
|
+
getContainer: () => (f == null ? void 0 : f.current) || document.body,
|
|
271
|
+
prefixCls: "gbot-message"
|
|
272
|
+
}), u.error("正在解析文件"), u.config({
|
|
273
|
+
getContainer: void 0,
|
|
274
|
+
prefixCls: "gbot-message"
|
|
275
|
+
});
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
if (Ve) {
|
|
279
|
+
u.config({
|
|
280
|
+
getContainer: () => (f == null ? void 0 : f.current) || document.body,
|
|
281
|
+
prefixCls: "gbot-message"
|
|
282
|
+
}), u.error("正在上传图片"), u.config({
|
|
283
|
+
getContainer: void 0,
|
|
284
|
+
prefixCls: "gbot-message"
|
|
285
|
+
});
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
G(void 0), ce("");
|
|
289
|
+
const l = (N = e == null ? void 0 : e.data) == null ? void 0 : N.id;
|
|
290
|
+
if (!l) {
|
|
291
|
+
if (ye)
|
|
292
|
+
return;
|
|
293
|
+
Y(!0), w == null || w({
|
|
294
|
+
netOpen: E ? W.OPEN : W.CLOSE
|
|
295
|
+
}).then((x) => {
|
|
296
|
+
var B, se;
|
|
297
|
+
U(!0), P(!!((B = x.data) != null && B.netOpen)), S(!!((se = x.data) != null && se.enableNetOpen)), et(x).then(() => {
|
|
298
|
+
v == null || v(x), U(!1), je(n);
|
|
299
|
+
});
|
|
300
|
+
}).catch((x) => {
|
|
301
|
+
Y(!1);
|
|
302
|
+
});
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
if (ye)
|
|
306
|
+
return;
|
|
307
|
+
Y(!0), he(!0);
|
|
308
|
+
const i = De(n, Ce, J[l], (o == null ? void 0 : o.type) || 0);
|
|
309
|
+
let c;
|
|
310
|
+
try {
|
|
311
|
+
A ? c = yield A == null ? void 0 : A({
|
|
312
|
+
applicationId: o.id,
|
|
313
|
+
sessionId: l,
|
|
314
|
+
message: {
|
|
315
|
+
content: i,
|
|
316
|
+
sessionId: l,
|
|
317
|
+
role: bt.User,
|
|
318
|
+
files: J[l]
|
|
319
|
+
}
|
|
320
|
+
}) : c = !0;
|
|
321
|
+
} catch (x) {
|
|
322
|
+
c = !1;
|
|
323
|
+
}
|
|
324
|
+
if (he(!1), c === !1) {
|
|
325
|
+
Y(!1);
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
let s = n;
|
|
329
|
+
if (typeof c == "object" && (s = c.content || n), !(yield e.setPromptVariables(O))) {
|
|
330
|
+
Y(!1);
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
333
|
+
((T = J[l]) == null ? void 0 : T.length) > 0 ? St(s) : Ee(s);
|
|
334
|
+
}), et = (t) => new Promise((n, a) => z(void 0, null, function* () {
|
|
335
|
+
const c = (t == null ? void 0 : t.promptVariables).filter((s) => s.type ? !((s.type === be.User || s.type === void 0) && s.key === "query") && !((s.type === be.System || s.type === void 0) && s.key === "datetime") : s.key !== "query").map((s) => {
|
|
336
|
+
var N;
|
|
337
|
+
const p = (N = O.find((T) => T.key === s.key && T.type === s.type)) == null ? void 0 : N.value;
|
|
338
|
+
return s.value = p || "", s;
|
|
339
|
+
});
|
|
340
|
+
me(c.sort((s, p) => s.key.localeCompare(p.key))), yield t == null ? void 0 : t.setPromptVariables(c).catch((s) => {
|
|
341
|
+
console.error(s), u.config({
|
|
342
|
+
getContainer: () => (f == null ? void 0 : f.current) || document.body,
|
|
343
|
+
prefixCls: "gbot-message"
|
|
344
|
+
}), u.error(s.message), u.config({
|
|
345
|
+
getContainer: void 0,
|
|
346
|
+
prefixCls: "gbot-message"
|
|
347
|
+
});
|
|
348
|
+
}), n();
|
|
349
|
+
})), St = (t) => {
|
|
350
|
+
var i, c, s;
|
|
351
|
+
if (ue(!1), !((i = e == null ? void 0 : e.data) != null && i.id) || !(o != null && o.id))
|
|
352
|
+
return;
|
|
353
|
+
const n = ((c = e.data) == null ? void 0 : c.id) || "";
|
|
354
|
+
let a = [], l = /* @__PURE__ */ new Set();
|
|
355
|
+
(s = J[n]) == null || s.forEach((p) => {
|
|
356
|
+
l.has(p.id) || (a.push(p), l.add(p.id));
|
|
357
|
+
}), ue(!0), Ee(t, a);
|
|
358
|
+
};
|
|
359
|
+
L(() => {
|
|
360
|
+
if (!xe || !e)
|
|
361
|
+
return;
|
|
362
|
+
const t = xe, n = () => z(void 0, null, function* () {
|
|
363
|
+
he(!0);
|
|
364
|
+
const a = De(t, Ce, J[e.id], (o == null ? void 0 : o.type) || 0);
|
|
365
|
+
let l;
|
|
366
|
+
try {
|
|
367
|
+
A ? l = yield A == null ? void 0 : A({
|
|
368
|
+
applicationId: o.id,
|
|
369
|
+
sessionId: e.id,
|
|
370
|
+
message: {
|
|
371
|
+
content: a,
|
|
372
|
+
sessionId: e.id,
|
|
373
|
+
role: bt.User,
|
|
374
|
+
files: J[e.id]
|
|
375
|
+
}
|
|
376
|
+
}) : l = !0;
|
|
377
|
+
} catch (i) {
|
|
378
|
+
l = !1;
|
|
379
|
+
}
|
|
380
|
+
if (he(!1), l === !1) {
|
|
381
|
+
Y(!1);
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
Ee(t), je(void 0);
|
|
385
|
+
});
|
|
386
|
+
return e.ready ? n() : e.addEventListener("ready", n, !0), () => {
|
|
387
|
+
e == null || e.removeEventListener("ready", n);
|
|
388
|
+
};
|
|
389
|
+
}, [xe, e]);
|
|
390
|
+
const Ee = (t, n) => z(void 0, null, function* () {
|
|
391
|
+
var N, T;
|
|
392
|
+
const a = (N = e == null ? void 0 : e.data) == null ? void 0 : N.id;
|
|
393
|
+
if (!a)
|
|
394
|
+
return;
|
|
395
|
+
$(!0), M(!0);
|
|
396
|
+
const l = De(t, Ce, n, (o == null ? void 0 : o.type) || 0), i = new ae(l, a, te.User, n);
|
|
397
|
+
le(void 0), Z(void 0), y.current = [i, ...b], C(y.current), o.id && de && de({
|
|
398
|
+
applicationId: o.id,
|
|
399
|
+
sessionId: a,
|
|
400
|
+
message: i
|
|
401
|
+
});
|
|
402
|
+
const c = new ae("", a, te.System);
|
|
403
|
+
c.isWaiting = !0, y.current = [c, ...y.current], C(y.current);
|
|
404
|
+
const s = (n == null ? void 0 : n.map((x) => x.id)) || [], p = {
|
|
405
|
+
stream: En.stream,
|
|
406
|
+
referenceFirst: !1
|
|
407
|
+
};
|
|
408
|
+
if (g != null && g.promptVariables) {
|
|
409
|
+
const x = O == null ? void 0 : O.reduce((B, se) => (B[se.key] = se.value, B), {});
|
|
410
|
+
p.formatValues = x;
|
|
411
|
+
}
|
|
412
|
+
if (g != null && g.knowledges) {
|
|
413
|
+
const x = Kt;
|
|
414
|
+
p.knowledges = x;
|
|
415
|
+
}
|
|
416
|
+
yield e.send({
|
|
417
|
+
text: l,
|
|
418
|
+
fileIds: s,
|
|
419
|
+
files: n
|
|
420
|
+
}, p), ie({
|
|
421
|
+
[a]: []
|
|
422
|
+
}), (T = ge.current) == null || T.update(), Y(!1);
|
|
423
|
+
});
|
|
424
|
+
L(() => {
|
|
425
|
+
var l;
|
|
426
|
+
const t = (l = e == null ? void 0 : e.data) == null ? void 0 : l.id;
|
|
427
|
+
if (!t)
|
|
428
|
+
return;
|
|
429
|
+
const n = (i) => {
|
|
430
|
+
if (!i.sessionId || i.sessionId && i.sessionId !== ze.current || i.role === te.User)
|
|
431
|
+
return;
|
|
432
|
+
if (i.index === -1 && i.code !== 200 && i.code !== 11915 && (M(!1), $(!1), y.current = y.current.filter((p) => !p.isWaiting), C([...y.current]), y.current = [...y.current], i.content)) {
|
|
433
|
+
ee.config({
|
|
434
|
+
getContainer: () => (f == null ? void 0 : f.current) || document.body,
|
|
435
|
+
prefixCls: "gbot-notification"
|
|
436
|
+
}), ee.error({
|
|
437
|
+
message: i.content
|
|
438
|
+
}), ee.config({
|
|
439
|
+
getContainer: void 0,
|
|
440
|
+
prefixCls: "gbot-notification"
|
|
441
|
+
});
|
|
442
|
+
return;
|
|
443
|
+
}
|
|
444
|
+
const c = i.actions || [], s = new ae(i.content, t, te.Robot);
|
|
445
|
+
s.messageId = i.messageId || Fe(), s.reasoningContent = i.reasoningContent, s.searchReference = i.searchReference, s.thinkingSecs = i.thinkingSecs, s.thinkingStatus = i.thinkingStatus, s.actions = c, s.isLoading = !0, s.searchingStatus = i.searchingStatus, y.current = y.current.filter((p) => !p.isWaiting).filter((p) => !p.isReplying), i.index === void 0 && C([s, ...y.current]), i.code === 11915 && (M(!1), $(!1), s.isLoading = !1, s.content = "请您换个问题问我吧~", s.isSensitive = !0, C([s, ...y.current])), i.index === -2 && (M(!1), $(!1), s.isLoading = !1, s.content = "回答已中止~", s.isSuspend = !0, C([s, ...y.current])), i.index === -1 && (M(!1), $(!1), s.isLoading = !1, s.reference = i.reference, C([s, ...y.current]), o.id && de && de({
|
|
446
|
+
applicationId: o.id,
|
|
447
|
+
sessionId: t,
|
|
448
|
+
message: s
|
|
449
|
+
})), i.index === -3 && (M(!1), $(!1), s.isLoading = !1, s.reference = i.reference, s.relatedQuesion = i.relatedQuesion, C([s, ...y.current]));
|
|
450
|
+
}, a = () => {
|
|
451
|
+
e.addEventListener("message:updated", n);
|
|
452
|
+
};
|
|
453
|
+
return e.ready ? e.addEventListener("message:updated", n) : e.addEventListener("ready", a), () => {
|
|
454
|
+
e == null || e.removeEventListener("message:updated", n), e == null || e.removeEventListener("ready", a);
|
|
455
|
+
};
|
|
456
|
+
}, [e]), L(() => {
|
|
457
|
+
if (!e) {
|
|
458
|
+
we(!1);
|
|
459
|
+
return;
|
|
460
|
+
}
|
|
461
|
+
const t = (n) => {
|
|
462
|
+
we(n);
|
|
463
|
+
};
|
|
464
|
+
return we(e.frozen), e.addEventListener("frozen", t), () => {
|
|
465
|
+
e == null || e.removeEventListener("frozen", t);
|
|
466
|
+
};
|
|
467
|
+
}, [e]), L(() => {
|
|
468
|
+
if (!I)
|
|
469
|
+
return;
|
|
470
|
+
const t = I.questionContextMaxLength || 4e3;
|
|
471
|
+
Dt(t);
|
|
472
|
+
}, [I, R]), L(() => {
|
|
473
|
+
ke && Z(ke.text);
|
|
474
|
+
}, [ke]);
|
|
475
|
+
const en = (t) => {
|
|
476
|
+
const n = t.size;
|
|
477
|
+
return n <= 0 ? (u.config({
|
|
478
|
+
getContainer: () => (f == null ? void 0 : f.current) || document.body,
|
|
479
|
+
prefixCls: "gbot-message"
|
|
480
|
+
}), u.error("该文件为空,请重新上传"), u.config({
|
|
481
|
+
getContainer: void 0,
|
|
482
|
+
prefixCls: "gbot-message"
|
|
483
|
+
}), !1) : n > 20 * Pn ? (u.config({
|
|
484
|
+
getContainer: () => (f == null ? void 0 : f.current) || document.body,
|
|
485
|
+
prefixCls: "gbot-message"
|
|
486
|
+
}), u.error("图片须小于20M"), u.config({
|
|
487
|
+
getContainer: void 0,
|
|
488
|
+
prefixCls: "gbot-message"
|
|
489
|
+
}), !1) : (G(t), !1);
|
|
490
|
+
}, tn = (t) => z(void 0, null, function* () {
|
|
491
|
+
var n;
|
|
492
|
+
return G(t), (n = e == null ? void 0 : e.data) != null && n.id ? tt(e, t) : new Promise((a) => {
|
|
493
|
+
U(!0), w == null || w({
|
|
494
|
+
netOpen: E ? W.OPEN : W.CLOSE
|
|
495
|
+
}).then((l) => {
|
|
496
|
+
var i, c;
|
|
497
|
+
v == null || v(l), U(!1), P(!!((i = l.data) != null && i.netOpen)), S(!!((c = l.data) != null && c.enableNetOpen)), a(tt(l, t));
|
|
498
|
+
});
|
|
499
|
+
});
|
|
500
|
+
}), tt = (t, n) => {
|
|
501
|
+
const a = On(n.name);
|
|
502
|
+
return new Promise((l) => {
|
|
503
|
+
var c;
|
|
504
|
+
const i = {
|
|
505
|
+
files: [`${Fe()}.${a}`],
|
|
506
|
+
isv: "minio",
|
|
507
|
+
knowledgeId: ((c = t.data) == null ? void 0 : c.id) || "",
|
|
508
|
+
type: 1
|
|
509
|
+
};
|
|
510
|
+
Ie(!0), R == null || R.postTicket(i).then((s) => {
|
|
511
|
+
R.uploadMinioFile(s.minio, n).then(() => {
|
|
512
|
+
var x, B;
|
|
513
|
+
const p = (x = s.minio.endpoints) == null ? void 0 : x[0], N = s.minio.bucket, T = (B = s.minio.fileKeys) == null ? void 0 : B[0];
|
|
514
|
+
l(`${location.protocol}//${p}/${N}/${T}`);
|
|
515
|
+
}).catch(() => {
|
|
516
|
+
ce(""), G(void 0);
|
|
517
|
+
}).finally(() => {
|
|
518
|
+
Ie(!1);
|
|
519
|
+
});
|
|
520
|
+
}).catch(() => {
|
|
521
|
+
ce(""), G(void 0), Ie(!1);
|
|
522
|
+
});
|
|
523
|
+
});
|
|
524
|
+
};
|
|
525
|
+
L(() => {
|
|
526
|
+
const t = H.current;
|
|
527
|
+
t && !Ke && t.scrollTo({
|
|
528
|
+
top: t.scrollHeight
|
|
529
|
+
});
|
|
530
|
+
}, [b]);
|
|
531
|
+
const nt = (t, n) => new Promise((a) => {
|
|
532
|
+
if (!n.file.url || !(o != null && o.id))
|
|
533
|
+
return a();
|
|
534
|
+
const l = He(Oe({}, n.file), {
|
|
535
|
+
type: 1
|
|
536
|
+
});
|
|
537
|
+
R == null || R.postApplicationIdSessionKnowledgeSessionFile(o == null ? void 0 : o.id, t, l).finally(() => {
|
|
538
|
+
var i;
|
|
539
|
+
(i = ge.current) == null || i.update().finally(a);
|
|
540
|
+
});
|
|
541
|
+
}), nn = () => {
|
|
542
|
+
var t;
|
|
543
|
+
(t = e == null ? void 0 : e.data) != null && t.id && (M(!1), e.suspend());
|
|
544
|
+
}, on = (t) => {
|
|
545
|
+
const n = H.current;
|
|
546
|
+
n && setTimeout(() => {
|
|
547
|
+
n.scrollTo({
|
|
548
|
+
top: n.scrollHeight,
|
|
549
|
+
behavior: t == null ? void 0 : t.behavior
|
|
550
|
+
});
|
|
551
|
+
}, t == null ? void 0 : t.ms);
|
|
552
|
+
}, sn = () => {
|
|
553
|
+
if (!H.current)
|
|
554
|
+
return;
|
|
555
|
+
const t = H.current.scrollTop <= -80;
|
|
556
|
+
Yt(t);
|
|
557
|
+
}, rn = Re((t) => {
|
|
558
|
+
var n, a;
|
|
559
|
+
(n = fe.current) == null || n.update(t), (a = fe.current) == null || a.focus();
|
|
560
|
+
}), an = Re((t) => {
|
|
561
|
+
Se(t);
|
|
562
|
+
}), ln = Re(() => {
|
|
563
|
+
var n;
|
|
564
|
+
if (!((n = e == null ? void 0 : e.data) != null && n.id))
|
|
565
|
+
return;
|
|
566
|
+
y.current = [...b.slice(1, b.length)], C(y.current);
|
|
567
|
+
const t = new ae("", e.data.id, te.System);
|
|
568
|
+
t.isWaiting = !0, y.current = [t, ...y.current], C(y.current), $(!0), M(!0), e.answerAgain();
|
|
569
|
+
});
|
|
570
|
+
L(() => {
|
|
571
|
+
var t, n;
|
|
572
|
+
ze.current = (t = e == null ? void 0 : e.data) == null ? void 0 : t.id, !Qe && ((n = Ne.current) == null || n.clear());
|
|
573
|
+
}, [e]);
|
|
574
|
+
const dn = () => {
|
|
575
|
+
var a;
|
|
576
|
+
if (!((a = e == null ? void 0 : e.data) != null && a.id))
|
|
577
|
+
return;
|
|
578
|
+
const n = b[b.length - 1].messageTime;
|
|
579
|
+
e.fetchMessages({
|
|
580
|
+
endTime: n,
|
|
581
|
+
pageSize: kt
|
|
582
|
+
}).then((l) => {
|
|
583
|
+
const i = l || [];
|
|
584
|
+
if (!i || !(i != null && i.length)) {
|
|
585
|
+
oe(!1);
|
|
586
|
+
return;
|
|
587
|
+
}
|
|
588
|
+
i.length < 10 ? oe(!1) : oe(!0), C([...b, ...i.reverse()]);
|
|
589
|
+
});
|
|
590
|
+
}, cn = (t) => z(void 0, null, function* () {
|
|
591
|
+
var n, a;
|
|
592
|
+
if (!((n = e == null ? void 0 : e.data) != null && n.id))
|
|
593
|
+
P(t);
|
|
594
|
+
else {
|
|
595
|
+
if (yield e.setNetOpen(t), !((a = e.data) != null && a.id))
|
|
596
|
+
return;
|
|
597
|
+
P(t);
|
|
598
|
+
}
|
|
599
|
+
}), Pe = () => z(void 0, null, function* () {
|
|
600
|
+
e ? e.fetchData().then((t) => {
|
|
601
|
+
var n;
|
|
602
|
+
(n = e == null ? void 0 : e.data) != null && n.id && (P(t.netOpen), S(t.enableNetOpen));
|
|
603
|
+
}) : (P(typeof (r == null ? void 0 : r.connectNetwork) == "object" && typeof (r == null ? void 0 : r.connectNetwork.default) == "boolean" ? r.connectNetwork.default : !1), S(o.arrange[0].enableNetOpen));
|
|
604
|
+
});
|
|
605
|
+
L(() => {
|
|
606
|
+
Pe();
|
|
607
|
+
}, [e]), L(() => {
|
|
608
|
+
requestAnimationFrame(() => {
|
|
609
|
+
var n, a;
|
|
610
|
+
if (H.current) {
|
|
611
|
+
const l = document.getElementById("chat-main"), i = (n = H.current) == null ? void 0 : n.querySelector(".infinite-scroll-component__outerdiv"), c = (a = H.current) == null ? void 0 : a.querySelector(".infinite-scroll-component");
|
|
612
|
+
if (!i || !c || !l)
|
|
613
|
+
return;
|
|
614
|
+
const s = l.offsetHeight;
|
|
615
|
+
if (c.offsetHeight <= s) {
|
|
616
|
+
if (i.style.height === "100%")
|
|
617
|
+
return;
|
|
618
|
+
i.style.height = "100%";
|
|
619
|
+
} else {
|
|
620
|
+
if (i.style.height === "auto")
|
|
621
|
+
return;
|
|
622
|
+
i.style.height = "auto";
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
});
|
|
626
|
+
}, [b]), L(() => {
|
|
627
|
+
if (e)
|
|
628
|
+
return;
|
|
629
|
+
const t = () => {
|
|
630
|
+
const l = ((I == null ? void 0 : I.promptVariables) || []).filter((i) => i.type ? !(i.type === be.User && i.key === "query") && !(i.type === be.System && i.key === "datetime") && i.status === 1 : i.key !== "query" && i.status === 1).map((i, c) => {
|
|
631
|
+
var p, N;
|
|
632
|
+
let s = "";
|
|
633
|
+
return typeof (r == null ? void 0 : r.promptVariables) == "object" && (s = ((N = (p = r.promptVariables.default) == null ? void 0 : p.find((T) => T.key === i.key && T.type === i.type)) == null ? void 0 : N.value) || ""), {
|
|
634
|
+
id: c + "",
|
|
635
|
+
key: i.key,
|
|
636
|
+
name: i.name,
|
|
637
|
+
value: s,
|
|
638
|
+
type: i.type
|
|
639
|
+
};
|
|
640
|
+
});
|
|
641
|
+
me([...l].sort((i, c) => i.key.localeCompare(c.key)));
|
|
642
|
+
};
|
|
643
|
+
return I != null && I.ready ? t() : I == null || I.addEventListener("ready", t), () => {
|
|
644
|
+
I == null || I.removeEventListener("ready", t);
|
|
645
|
+
};
|
|
646
|
+
}, [e, I, r == null ? void 0 : r.promptVariables]);
|
|
647
|
+
const it = () => w == null ? void 0 : w({
|
|
648
|
+
netOpen: E ? W.OPEN : W.CLOSE
|
|
649
|
+
}).then((t) => {
|
|
650
|
+
var n, a;
|
|
651
|
+
return v == null || v(t), U(!1), P(!!((n = t.data) != null && n.netOpen)), S(!!((a = t.data) != null && a.enableNetOpen)), et(t), t;
|
|
652
|
+
}), ot = xn(() => {
|
|
653
|
+
var t;
|
|
654
|
+
return o.arrange && ((t = o.arrange[0]) != null && t.openingContent) ? /* @__PURE__ */ d(Ct, {
|
|
655
|
+
application: o,
|
|
656
|
+
history: {
|
|
657
|
+
role: 1,
|
|
658
|
+
content: o.arrange[0].openingContent,
|
|
659
|
+
code: 200,
|
|
660
|
+
messageId: "opening-message",
|
|
661
|
+
sessionId: "",
|
|
662
|
+
reference: [],
|
|
663
|
+
searchReference: [],
|
|
664
|
+
messageTime: It(Date.now()).format("YYYY-MM-DD HH:mm:ss"),
|
|
665
|
+
actions: [],
|
|
666
|
+
isLoading: !1
|
|
667
|
+
},
|
|
668
|
+
actions: !!b.length,
|
|
669
|
+
markdown: r == null ? void 0 : r.markdown
|
|
670
|
+
}) : null;
|
|
671
|
+
}, [o == null ? void 0 : o.arrange, b]);
|
|
672
|
+
return kn(h, () => ({
|
|
673
|
+
getCurrentInputText: () => {
|
|
674
|
+
var t;
|
|
675
|
+
return (t = fe.current) == null ? void 0 : t.getCurrentText();
|
|
676
|
+
}
|
|
677
|
+
})), L(() => {
|
|
678
|
+
var n;
|
|
679
|
+
const t = (n = e == null ? void 0 : e.data) == null ? void 0 : n.id;
|
|
680
|
+
t && ie((a) => He(Oe({}, a), {
|
|
681
|
+
[t]: []
|
|
682
|
+
}));
|
|
683
|
+
}, [(st = e == null ? void 0 : e.data) == null ? void 0 : st.id]), /* @__PURE__ */ V("div", {
|
|
684
|
+
className: "agent-chat",
|
|
685
|
+
children: [Gt ? /* @__PURE__ */ d("div", {
|
|
686
|
+
className: "session-loading",
|
|
687
|
+
children: /* @__PURE__ */ d(vt, {})
|
|
688
|
+
}) : /* @__PURE__ */ V(yn, {
|
|
689
|
+
children: [(g == null ? void 0 : g.promptVariables) && /* @__PURE__ */ d(Vn, {
|
|
690
|
+
ref: Be,
|
|
691
|
+
appId: o.id,
|
|
692
|
+
currentSession: e,
|
|
693
|
+
promptVariables: O,
|
|
694
|
+
setPromptVariables: me,
|
|
695
|
+
setCurrentSession: v
|
|
696
|
+
}), /* @__PURE__ */ V("div", {
|
|
697
|
+
className: "chat-main",
|
|
698
|
+
id: "chat-main",
|
|
699
|
+
style: Pt,
|
|
700
|
+
children: [/* @__PURE__ */ d("div", {
|
|
701
|
+
className: "chat-main-wrapper",
|
|
702
|
+
id: "scrollableDiv",
|
|
703
|
+
style: {
|
|
704
|
+
height: "100%",
|
|
705
|
+
overflowY: "auto",
|
|
706
|
+
display: "flex",
|
|
707
|
+
flexDirection: "column-reverse"
|
|
708
|
+
},
|
|
709
|
+
ref: H,
|
|
710
|
+
onScroll: sn,
|
|
711
|
+
children: (rt = e == null ? void 0 : e.data) != null && rt.id && (b != null && b.length) ? /* @__PURE__ */ V(qn, {
|
|
712
|
+
dataLength: b.length,
|
|
713
|
+
next: dn,
|
|
714
|
+
style: {
|
|
715
|
+
display: "flex",
|
|
716
|
+
flexDirection: "column-reverse",
|
|
717
|
+
overflowX: "hidden"
|
|
718
|
+
},
|
|
719
|
+
inverse: !0,
|
|
720
|
+
endMessage: b.length > kt && // 少于一页不展示这个提示
|
|
721
|
+
((at = H.current) != null && at.scrollTop) && ((lt = H.current) == null ? void 0 : lt.scrollTop) < -10 ? /* @__PURE__ */ d(wn, {
|
|
722
|
+
plain: !0,
|
|
723
|
+
children: "没有更多数据了"
|
|
724
|
+
}) : null,
|
|
725
|
+
hasMore: _e,
|
|
726
|
+
loader: /* @__PURE__ */ d("div", {
|
|
727
|
+
style: {
|
|
728
|
+
height: "50px",
|
|
729
|
+
textAlign: "center",
|
|
730
|
+
overflow: "hidden"
|
|
731
|
+
},
|
|
732
|
+
children: /* @__PURE__ */ d(vt, {})
|
|
733
|
+
}),
|
|
734
|
+
scrollableTarget: "scrollableDiv",
|
|
735
|
+
children: [b.map((t, n) => /* @__PURE__ */ d(Qn, {
|
|
736
|
+
application: o,
|
|
737
|
+
currentSession: e,
|
|
738
|
+
history: t,
|
|
739
|
+
docViewerUrl: j,
|
|
740
|
+
isLastHistory: n === 0,
|
|
741
|
+
onRelatedClick: an,
|
|
742
|
+
onAgainClick: ln,
|
|
743
|
+
onEditClick: rn,
|
|
744
|
+
markdown: r == null ? void 0 : r.markdown
|
|
745
|
+
}, t.messageId + n)), !_e && ot]
|
|
746
|
+
}) : /* @__PURE__ */ V("div", {
|
|
747
|
+
className: "main-empty",
|
|
748
|
+
children: [(r == null ? void 0 : r.greeting) !== !1 && /* @__PURE__ */ d(Dn, {
|
|
749
|
+
text: r === void 0 || r.greeting === !0 || ((dt = r.greeting) == null ? void 0 : dt.text) === void 0 ? xt.text : r.greeting.text,
|
|
750
|
+
icon: r === void 0 || r.greeting === !0 || ((ct = r.greeting) == null ? void 0 : ct.icon) === void 0 ? Tt || xt.icon : r.greeting.icon,
|
|
751
|
+
children: !!Ae.length && (((r == null ? void 0 : r.greeting) === void 0 || (r == null ? void 0 : r.greeting)) === !0 || typeof (r == null ? void 0 : r.greeting) == "object" && r.greeting.questions !== !1) && /* @__PURE__ */ d(Rn, {
|
|
752
|
+
ref: Ne,
|
|
753
|
+
sid: (ft = e == null ? void 0 : e.data) == null ? void 0 : ft.id,
|
|
754
|
+
isRecommendClearing: $e,
|
|
755
|
+
data: Ae,
|
|
756
|
+
layoutBreakpoints: typeof (r == null ? void 0 : r.greeting) == "object" ? r.greeting.layoutBreakpoints : void 0,
|
|
757
|
+
onItemClick: (t) => {
|
|
758
|
+
var a, l, i;
|
|
759
|
+
if (le(t == null ? void 0 : t.question), Z(t == null ? void 0 : t.question), $e)
|
|
760
|
+
return;
|
|
761
|
+
t != null && t.id && X(!0);
|
|
762
|
+
const n = (a = e == null ? void 0 : e.data) == null ? void 0 : a.id;
|
|
763
|
+
g != null && g.fileUpload ? (i = (l = ge.current) == null ? void 0 : l.clear()) == null || i.then(() => {
|
|
764
|
+
var c, s;
|
|
765
|
+
t != null && t.id && (n ? (c = nt(n, t)) == null || c.finally(() => {
|
|
766
|
+
X(!1);
|
|
767
|
+
}) : (X(!1), U(!0), (s = it()) == null || s.then((p) => {
|
|
768
|
+
var N;
|
|
769
|
+
(N = nt(p.id, t)) == null || N.finally(() => {
|
|
770
|
+
X(!1);
|
|
771
|
+
});
|
|
772
|
+
})));
|
|
773
|
+
}) : n ? X(!1) : (X(!1), U(!0), it());
|
|
774
|
+
}
|
|
775
|
+
})
|
|
776
|
+
}), ot]
|
|
777
|
+
})
|
|
778
|
+
}), Ye && /* @__PURE__ */ d("div", {
|
|
779
|
+
className: "session-stop",
|
|
780
|
+
children: /* @__PURE__ */ d(Q, {
|
|
781
|
+
type: "primary",
|
|
782
|
+
style: {
|
|
783
|
+
background: "white"
|
|
784
|
+
},
|
|
785
|
+
ghost: !0,
|
|
786
|
+
size: "small",
|
|
787
|
+
icon: /* @__PURE__ */ d(re, {
|
|
788
|
+
type: "icon-zantinghuida",
|
|
789
|
+
style: {
|
|
790
|
+
fontSize: 16
|
|
791
|
+
}
|
|
792
|
+
}),
|
|
793
|
+
onClick: () => nn(),
|
|
794
|
+
children: "停止回答"
|
|
795
|
+
})
|
|
796
|
+
}), Ke && (b == null ? void 0 : b.length) > 0 && /* @__PURE__ */ d("div", {
|
|
797
|
+
className: "back-bottom",
|
|
798
|
+
children: /* @__PURE__ */ d(Q, {
|
|
799
|
+
size: "small",
|
|
800
|
+
onClick: () => on({
|
|
801
|
+
behavior: "smooth"
|
|
802
|
+
}),
|
|
803
|
+
type: "link",
|
|
804
|
+
icon: /* @__PURE__ */ d(re, {
|
|
805
|
+
type: "icon-yijianhuidaodibu",
|
|
806
|
+
style: {
|
|
807
|
+
fontSize: 24
|
|
808
|
+
}
|
|
809
|
+
})
|
|
810
|
+
})
|
|
811
|
+
})]
|
|
812
|
+
}), /* @__PURE__ */ d("div", {
|
|
813
|
+
className: "chat-footer",
|
|
814
|
+
children: /* @__PURE__ */ V("div", {
|
|
815
|
+
className: "chat-footer-input",
|
|
816
|
+
children: [ne && /* @__PURE__ */ d("div", {
|
|
817
|
+
className: "input-files",
|
|
818
|
+
children: /* @__PURE__ */ d(Tn, {
|
|
819
|
+
file: ne,
|
|
820
|
+
actions: {
|
|
821
|
+
upload: tn,
|
|
822
|
+
remove: () => {
|
|
823
|
+
G(void 0);
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
onUrlChange: (t) => ce(t)
|
|
827
|
+
})
|
|
828
|
+
}), /* @__PURE__ */ V(ve, {
|
|
829
|
+
className: "footer-upload-action",
|
|
830
|
+
onClick: (t) => t.preventDefault(),
|
|
831
|
+
children: [/* @__PURE__ */ V(ve, {
|
|
832
|
+
children: [o.type === wt.Agent && (g == null ? void 0 : g.imageUpload) && /* @__PURE__ */ d(Cn, {
|
|
833
|
+
disabled: !!ne || D,
|
|
834
|
+
accept: ".jpg, .png, .jpeg,.bmp",
|
|
835
|
+
listType: "picture-card",
|
|
836
|
+
beforeUpload: en,
|
|
837
|
+
className: "footer-upload-picture",
|
|
838
|
+
showUploadList: !1,
|
|
839
|
+
children: ne ? /* @__PURE__ */ d(Q, {
|
|
840
|
+
type: "text",
|
|
841
|
+
className: "camera-out-btn",
|
|
842
|
+
style: {
|
|
843
|
+
width: "22px",
|
|
844
|
+
position: "relative",
|
|
845
|
+
bottom: "-2px"
|
|
846
|
+
},
|
|
847
|
+
disabled: !!ne || D,
|
|
848
|
+
icon: /* @__PURE__ */ d(jn, {
|
|
849
|
+
className: "icon-tianjia",
|
|
850
|
+
style: {
|
|
851
|
+
fontSize: "22px"
|
|
852
|
+
}
|
|
853
|
+
})
|
|
854
|
+
}) : /* @__PURE__ */ d(In, {
|
|
855
|
+
placement: "topLeft",
|
|
856
|
+
overlayClassName: "footer-upload-tooltip",
|
|
857
|
+
title: /* @__PURE__ */ d("div", {
|
|
858
|
+
children: "支持上传.jpg .png .jpeg .bmp格式的图片数据,最大20M,单次仅可上传1个"
|
|
859
|
+
}),
|
|
860
|
+
children: /* @__PURE__ */ d(Q, {
|
|
861
|
+
type: "text",
|
|
862
|
+
className: "camera-out-btn",
|
|
863
|
+
style: {
|
|
864
|
+
width: "22px",
|
|
865
|
+
position: "relative",
|
|
866
|
+
bottom: "-2px"
|
|
867
|
+
},
|
|
868
|
+
icon: /* @__PURE__ */ d(re, {
|
|
869
|
+
type: "icon-Vector",
|
|
870
|
+
className: "icon-tianjia",
|
|
871
|
+
style: {
|
|
872
|
+
fontSize: "22px"
|
|
873
|
+
}
|
|
874
|
+
})
|
|
875
|
+
})
|
|
876
|
+
})
|
|
877
|
+
}), _ && (g != null && g.fileUpload) && (o != null && o.id) ? /* @__PURE__ */ d(Un, {
|
|
878
|
+
appId: o == null ? void 0 : o.id,
|
|
879
|
+
ref: ge,
|
|
880
|
+
isFirstSession: Qe,
|
|
881
|
+
docViewerUrl: j,
|
|
882
|
+
onStatusChange: (t) => z(void 0, null, function* () {
|
|
883
|
+
t !== "process" ? (ue(!0), Pe()) : ue(!1);
|
|
884
|
+
}),
|
|
885
|
+
createSession: () => new Promise((t) => {
|
|
886
|
+
U(!0), w == null || w({
|
|
887
|
+
netOpen: E ? W.OPEN : W.CLOSE
|
|
888
|
+
}).then((n) => {
|
|
889
|
+
var l, i, c;
|
|
890
|
+
v == null || v(n), U(!1), P(!!((l = n.data) != null && l.netOpen)), S(!!((i = n.data) != null && i.enableNetOpen));
|
|
891
|
+
const a = ((c = n.data) == null ? void 0 : c.id) || "";
|
|
892
|
+
t(a);
|
|
893
|
+
});
|
|
894
|
+
}),
|
|
895
|
+
sid: (gt = e == null ? void 0 : e.data) == null ? void 0 : gt.id,
|
|
896
|
+
disabled: Le || D,
|
|
897
|
+
afterFileAdd: (t, n) => {
|
|
898
|
+
n && ie((a) => {
|
|
899
|
+
const l = a[n] || [];
|
|
900
|
+
return {
|
|
901
|
+
[n]: [...l, t]
|
|
902
|
+
};
|
|
903
|
+
});
|
|
904
|
+
},
|
|
905
|
+
afterFileDelete: (t) => {
|
|
906
|
+
var a;
|
|
907
|
+
const n = (a = e == null ? void 0 : e.data) == null ? void 0 : a.id;
|
|
908
|
+
n && ie((l) => {
|
|
909
|
+
const i = l[n] || [];
|
|
910
|
+
return {
|
|
911
|
+
[n]: i.filter((c) => c.id !== t)
|
|
912
|
+
};
|
|
913
|
+
});
|
|
914
|
+
},
|
|
915
|
+
onFileListChange: (t) => {
|
|
916
|
+
$t(t);
|
|
917
|
+
},
|
|
918
|
+
shouldContinue: Bt,
|
|
919
|
+
afterFilesClear: () => {
|
|
920
|
+
var n;
|
|
921
|
+
const t = (n = e == null ? void 0 : e.data) == null ? void 0 : n.id;
|
|
922
|
+
t && (ie({
|
|
923
|
+
[t]: []
|
|
924
|
+
}), Pe());
|
|
925
|
+
}
|
|
926
|
+
}) : null, (g == null ? void 0 : g.prompt) && (o == null ? void 0 : o.id) && /* @__PURE__ */ d(Wn, {
|
|
927
|
+
appId: o.id,
|
|
928
|
+
list: [],
|
|
929
|
+
search: qe ? Mt : "",
|
|
930
|
+
onPromptSelect: (t) => {
|
|
931
|
+
Z(t.context), le(t.context);
|
|
932
|
+
},
|
|
933
|
+
disabled: D
|
|
934
|
+
})]
|
|
935
|
+
}), /* @__PURE__ */ V(ve, {
|
|
936
|
+
children: [(g == null ? void 0 : g.connectNetwork) && o.type === 0 && ((ut = o.arrange) == null ? void 0 : ut.length) && !!o.arrange[0].enableNetOpen && /* @__PURE__ */ d(Bn, {
|
|
937
|
+
sessionId: (mt = e == null ? void 0 : e.data) == null ? void 0 : mt.id,
|
|
938
|
+
netStatus: E,
|
|
939
|
+
enable: typeof (r == null ? void 0 : r.connectNetwork) == "object" && typeof (r == null ? void 0 : r.connectNetwork.diabled) == "boolean" ? !(r != null && r.connectNetwork.diabled) : _t,
|
|
940
|
+
disabledTip: e ? void 0 : "网络访问已被禁用",
|
|
941
|
+
onNetStatusChange: (t) => {
|
|
942
|
+
cn(t);
|
|
943
|
+
}
|
|
944
|
+
}), (g == null ? void 0 : g.sessionList) && /* @__PURE__ */ d(An, {
|
|
945
|
+
currentSessionId: (ht = e == null ? void 0 : e.data) == null ? void 0 : ht.id,
|
|
946
|
+
onSessionChange: (t, n) => {
|
|
947
|
+
Z(void 0), pe(!0), v == null || v(n);
|
|
948
|
+
},
|
|
949
|
+
disabled: D
|
|
950
|
+
}), Ot && Ht === "float" && /* @__PURE__ */ d("div", {
|
|
951
|
+
className: "session-history-drawer-component",
|
|
952
|
+
children: /* @__PURE__ */ d(Nn, {
|
|
953
|
+
placement: "topRight",
|
|
954
|
+
showArrow: !1,
|
|
955
|
+
overlayClassName: "session-history-overlay",
|
|
956
|
+
overlayStyle: {
|
|
957
|
+
padding: "4px"
|
|
958
|
+
},
|
|
959
|
+
getPopupContainer: (t) => t.parentNode,
|
|
960
|
+
content: "会话历史记录",
|
|
961
|
+
children: /* @__PURE__ */ d(Q, {
|
|
962
|
+
className: "history-overlay-action",
|
|
963
|
+
disabled: D,
|
|
964
|
+
type: "text",
|
|
965
|
+
icon: /* @__PURE__ */ d(re, {
|
|
966
|
+
type: "icon-lishijilu",
|
|
967
|
+
style: {
|
|
968
|
+
fontSize: 24
|
|
969
|
+
}
|
|
970
|
+
}),
|
|
971
|
+
onClick: () => Ze(!0)
|
|
972
|
+
})
|
|
973
|
+
})
|
|
974
|
+
}), (g == null ? void 0 : g.sessionOpen) && /* @__PURE__ */ d(Q, {
|
|
975
|
+
icon: /* @__PURE__ */ d(Mn, {}),
|
|
976
|
+
className: "add-btn",
|
|
977
|
+
type: "primary",
|
|
978
|
+
disabled: Ye || !e || !b.length || D,
|
|
979
|
+
onClick: () => {
|
|
980
|
+
var t, n;
|
|
981
|
+
pe(!1), v == null || v(null), P(!1), (t = Be.current) == null || t.clear(), (n = Ne.current) == null || n.clear();
|
|
982
|
+
},
|
|
983
|
+
children: "新会话"
|
|
984
|
+
})]
|
|
985
|
+
})]
|
|
986
|
+
}), /* @__PURE__ */ d("div", {
|
|
987
|
+
className: "footer-textarea",
|
|
988
|
+
children: /* @__PURE__ */ d(Hn, {
|
|
989
|
+
ref: fe,
|
|
990
|
+
maxLength: Rt,
|
|
991
|
+
text: zt,
|
|
992
|
+
networkStatus: !1,
|
|
993
|
+
loading: Ge || ye,
|
|
994
|
+
disabled: Ue || Ve || D || Ge || ye,
|
|
995
|
+
onTextSend: Se,
|
|
996
|
+
onChange: (t, n) => {
|
|
997
|
+
Z(t);
|
|
998
|
+
const a = n.getText().replace(/[\n\s]+$/, "");
|
|
999
|
+
le(a), Ut(a), qe || jt(!0);
|
|
1000
|
+
},
|
|
1001
|
+
clearAction: /* @__PURE__ */ d(ve, {
|
|
1002
|
+
size: 0,
|
|
1003
|
+
children: /* @__PURE__ */ d(Q, {
|
|
1004
|
+
type: "link",
|
|
1005
|
+
disabled: Le || D,
|
|
1006
|
+
ghost: !0,
|
|
1007
|
+
icon: /* @__PURE__ */ d(re, {
|
|
1008
|
+
style: {
|
|
1009
|
+
fontSize: 22
|
|
1010
|
+
},
|
|
1011
|
+
type: "icon-qingchujiyi"
|
|
1012
|
+
}),
|
|
1013
|
+
onClick: () => Jt()
|
|
1014
|
+
})
|
|
1015
|
+
})
|
|
1016
|
+
})
|
|
1017
|
+
})]
|
|
1018
|
+
})
|
|
1019
|
+
}), /* @__PURE__ */ d(Fn, {
|
|
1020
|
+
tips: Et
|
|
1021
|
+
}), We && /* @__PURE__ */ d(zn, {
|
|
1022
|
+
isvisible: We,
|
|
1023
|
+
files: At,
|
|
1024
|
+
sessionId: (yt = e == null ? void 0 : e.data) == null ? void 0 : yt.id,
|
|
1025
|
+
onClose: (t) => {
|
|
1026
|
+
Vt(!1), Wt(!1);
|
|
1027
|
+
}
|
|
1028
|
+
})]
|
|
1029
|
+
}), Xe && /* @__PURE__ */ d($n, {
|
|
1030
|
+
currentSession: e,
|
|
1031
|
+
application: o,
|
|
1032
|
+
networkStatus: E,
|
|
1033
|
+
setCurrentSession: v,
|
|
1034
|
+
disabled: D,
|
|
1035
|
+
isSessionHistoryVisible: Xe,
|
|
1036
|
+
setIsSessionHistoryVisible: Ze,
|
|
1037
|
+
onSessionChange: (t) => {
|
|
1038
|
+
pe(!0);
|
|
1039
|
+
}
|
|
1040
|
+
})]
|
|
1041
|
+
});
|
|
1042
|
+
});
|
|
1043
|
+
export {
|
|
1044
|
+
Ni as default
|
|
1045
|
+
};
|