@glodon-aiot/agent-cli-ui 0.0.0-snapshot-20250729081352

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.
Files changed (833) hide show
  1. package/README.git.md +73 -0
  2. package/README.lib.md +135 -0
  3. package/dist/es/AgentClientUI.mjs +143 -0
  4. package/dist/es/Dialog/AgentChat/HistoryItem/FileItem/index.mjs +91 -0
  5. package/dist/es/Dialog/AgentChat/HistoryItem/InputProgress/index.mjs +38 -0
  6. package/dist/es/Dialog/AgentChat/HistoryItem/SearchReference/index.mjs +101 -0
  7. package/dist/es/Dialog/AgentChat/HistoryItem/SessionAction/index.mjs +233 -0
  8. package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/ReferItem/index.mjs +86 -0
  9. package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs +79 -0
  10. package/dist/es/Dialog/AgentChat/HistoryItem/SessionRelated/index.mjs +46 -0
  11. package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +348 -0
  12. package/dist/es/Dialog/AgentChat/PromptSetting/index.mjs +120 -0
  13. package/dist/es/Dialog/AgentChat/Tools/ConnectToNetwork/index.mjs +92 -0
  14. package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PromptListItem.mjs +89 -0
  15. package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PublicPromptList.mjs +47 -0
  16. package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/access/empty.svg.mjs +4 -0
  17. package/dist/es/Dialog/AgentChat/Tools/PromptManager/index.mjs +120 -0
  18. package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +47 -0
  19. package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/SessionItem.mjs +135 -0
  20. package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.mjs +124 -0
  21. package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/index.mjs +44 -0
  22. package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/ClearModal/index.mjs +50 -0
  23. package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/FileCard/index.mjs +128 -0
  24. package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.mjs +394 -0
  25. package/dist/es/Dialog/AgentChat/index.mjs +906 -0
  26. package/dist/es/Dialog/SessionList/index.mjs +210 -0
  27. package/dist/es/Dialog/UploadingPrompt/index.mjs +64 -0
  28. package/dist/es/Dialog/index.mjs +150 -0
  29. package/dist/es/Footer/FooterWarning.mjs +24 -0
  30. package/dist/es/Footer/index.mjs +17 -0
  31. package/dist/es/QuillEditor/index.mjs +222 -0
  32. package/dist/es/_virtual/_commonjsHelpers.mjs +8 -0
  33. package/dist/es/_virtual/index.mjs +4 -0
  34. package/dist/es/_virtual/index2.mjs +4 -0
  35. package/dist/es/_virtual/index3.mjs +4 -0
  36. package/dist/es/_virtual/lib.mjs +4 -0
  37. package/dist/es/_virtual/prism-core.mjs +4 -0
  38. package/dist/es/_virtual/types.mjs +4 -0
  39. package/dist/es/_virtual/ua-parser.min.mjs +4 -0
  40. package/dist/es/_virtual/utilities.mjs +4 -0
  41. package/dist/es/assets/brand.svg.mjs +4 -0
  42. package/dist/es/assets/doc-icons/doc.svg.mjs +4 -0
  43. package/dist/es/assets/doc-icons/docx.svg.mjs +4 -0
  44. package/dist/es/assets/doc-icons/pdf.svg.mjs +4 -0
  45. package/dist/es/assets/icon.svg.mjs +4 -0
  46. package/dist/es/assets/think.svg.mjs +4 -0
  47. package/dist/es/components/FilePreview/index.mjs +82 -0
  48. package/dist/es/components/Greeting/index.mjs +30 -0
  49. package/dist/es/components/Iconfont/index.mjs +12 -0
  50. package/dist/es/components/JsonDisplay/index.mjs +15 -0
  51. package/dist/es/components/KnowledgeList/KnowledgeSelect/index.mjs +67 -0
  52. package/dist/es/components/KnowledgeList/index.mjs +73 -0
  53. package/dist/es/components/Recommend/RecommendItem.mjs +98 -0
  54. package/dist/es/components/Recommend/index.mjs +58 -0
  55. package/dist/es/components/Recommend/tip.svg.mjs +4 -0
  56. package/dist/es/components/WebLink/index.mjs +26 -0
  57. package/dist/es/constant.mjs +113 -0
  58. package/dist/es/context.mjs +7 -0
  59. package/dist/es/index.mjs +347 -0
  60. package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +9 -0
  61. package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +8 -0
  62. package/dist/es/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
  63. package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
  64. package/dist/es/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +7 -0
  65. package/dist/es/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +7 -0
  66. package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
  67. package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +15 -0
  68. package/dist/es/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
  69. package/dist/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +16 -0
  70. package/dist/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
  71. package/dist/es/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
  72. package/dist/es/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +12 -0
  73. package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +201 -0
  74. package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +1087 -0
  75. package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +104 -0
  76. package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +568 -0
  77. package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +158 -0
  78. package/dist/es/node_modules/@ungap/structured-clone/esm/deserialize.mjs +70 -0
  79. package/dist/es/node_modules/@ungap/structured-clone/esm/index.mjs +11 -0
  80. package/dist/es/node_modules/@ungap/structured-clone/esm/serialize.mjs +124 -0
  81. package/dist/es/node_modules/@ungap/structured-clone/esm/types.mjs +13 -0
  82. package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +847 -0
  83. package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +35 -0
  84. package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +226 -0
  85. package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +33 -0
  86. package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +20 -0
  87. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +76 -0
  88. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +13 -0
  89. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +34 -0
  90. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +178 -0
  91. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +83 -0
  92. package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +4 -0
  93. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +84 -0
  94. package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +4 -0
  95. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +9 -0
  96. package/dist/es/node_modules/antd-mobile/es/global/index.mjs +3 -0
  97. package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +141 -0
  98. package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +9 -0
  99. package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +7 -0
  100. package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +4 -0
  101. package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +9 -0
  102. package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +6 -0
  103. package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +22 -0
  104. package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +11 -0
  105. package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +12 -0
  106. package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +47 -0
  107. package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +12 -0
  108. package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +13 -0
  109. package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +52 -0
  110. package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +11 -0
  111. package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +10 -0
  112. package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +15 -0
  113. package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +6 -0
  114. package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +8 -0
  115. package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +54 -0
  116. package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +32 -0
  117. package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +11 -0
  118. package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +19 -0
  119. package/dist/es/node_modules/ccount/index.mjs +12 -0
  120. package/dist/es/node_modules/character-reference-invalid/index.json.mjs +33 -0
  121. package/dist/es/node_modules/comma-separated-tokens/index.mjs +18 -0
  122. package/dist/es/node_modules/decode-named-character-reference/index.dom.mjs +14 -0
  123. package/dist/es/node_modules/devlop/lib/default.mjs +8 -0
  124. package/dist/es/node_modules/estree-util-is-identifier-name/lib/index.mjs +7 -0
  125. package/dist/es/node_modules/extend/index.mjs +46 -0
  126. package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +93 -0
  127. package/dist/es/node_modules/hast-util-from-dom/node_modules/web-namespaces/index.mjs +11 -0
  128. package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +16 -0
  129. package/dist/es/node_modules/hast-util-from-parse5/lib/index.mjs +162 -0
  130. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/index.mjs +12 -0
  131. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/aria.mjs +61 -0
  132. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/find.mjs +33 -0
  133. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/html.mjs +368 -0
  134. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/normalize.mjs +6 -0
  135. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/svg.mjs +566 -0
  136. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
  137. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
  138. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/create.mjs +14 -0
  139. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/defined-info.mjs +36 -0
  140. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/info.mjs +28 -0
  141. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/merge.mjs +10 -0
  142. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/schema.mjs +21 -0
  143. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/types.mjs +15 -0
  144. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xlink.mjs +19 -0
  145. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xml.mjs +15 -0
  146. package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xmlns.mjs +16 -0
  147. package/dist/es/node_modules/hast-util-from-parse5/node_modules/vfile-location/lib/index.mjs +47 -0
  148. package/dist/es/node_modules/hast-util-from-parse5/node_modules/web-namespaces/index.mjs +11 -0
  149. package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +61 -0
  150. package/dist/es/node_modules/hast-util-parse-selector/index.mjs +14 -0
  151. package/dist/es/node_modules/hast-util-to-jsx-runtime/lib/index.mjs +298 -0
  152. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/index.mjs +12 -0
  153. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/aria.mjs +61 -0
  154. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/find.mjs +33 -0
  155. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/hast-to-react.mjs +22 -0
  156. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/html.mjs +368 -0
  157. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/normalize.mjs +6 -0
  158. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/svg.mjs +566 -0
  159. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
  160. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
  161. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/create.mjs +14 -0
  162. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/defined-info.mjs +36 -0
  163. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/info.mjs +28 -0
  164. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/merge.mjs +10 -0
  165. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/schema.mjs +21 -0
  166. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/types.mjs +15 -0
  167. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xlink.mjs +19 -0
  168. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xml.mjs +15 -0
  169. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xmlns.mjs +16 -0
  170. package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +223 -0
  171. package/dist/es/node_modules/hast-util-whitespace/lib/index.mjs +10 -0
  172. package/dist/es/node_modules/hastscript/lib/create-h.mjs +126 -0
  173. package/dist/es/node_modules/hastscript/lib/index.mjs +8 -0
  174. package/dist/es/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +4 -0
  175. package/dist/es/node_modules/hastscript/node_modules/hast-util-parse-selector/lib/index.mjs +20 -0
  176. package/dist/es/node_modules/hastscript/node_modules/property-information/index.mjs +12 -0
  177. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/aria.mjs +61 -0
  178. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/find.mjs +33 -0
  179. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/html.mjs +368 -0
  180. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/normalize.mjs +6 -0
  181. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/svg.mjs +566 -0
  182. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
  183. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
  184. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/create.mjs +14 -0
  185. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/defined-info.mjs +36 -0
  186. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/info.mjs +28 -0
  187. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/merge.mjs +10 -0
  188. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/schema.mjs +21 -0
  189. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/types.mjs +15 -0
  190. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xlink.mjs +19 -0
  191. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xml.mjs +15 -0
  192. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xmlns.mjs +16 -0
  193. package/dist/es/node_modules/html-url-attributes/lib/index.mjs +16 -0
  194. package/dist/es/node_modules/is-alphabetical/index.mjs +8 -0
  195. package/dist/es/node_modules/is-alphanumerical/index.mjs +9 -0
  196. package/dist/es/node_modules/is-decimal/index.mjs +8 -0
  197. package/dist/es/node_modules/is-hexadecimal/index.mjs +8 -0
  198. package/dist/es/node_modules/katex/dist/katex.mjs +11700 -0
  199. package/dist/es/node_modules/longest-streak/index.mjs +12 -0
  200. package/dist/es/node_modules/markdown-table/index.mjs +70 -0
  201. package/dist/es/node_modules/mdast-util-find-and-replace/lib/index.mjs +72 -0
  202. package/dist/es/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.mjs +8 -0
  203. package/dist/es/node_modules/mdast-util-from-markdown/lib/index.mjs +584 -0
  204. package/dist/es/node_modules/mdast-util-gfm/lib/index.mjs +17 -0
  205. package/dist/es/node_modules/mdast-util-gfm-autolink-literal/lib/index.mjs +136 -0
  206. package/dist/es/node_modules/mdast-util-gfm-footnote/lib/index.mjs +100 -0
  207. package/dist/es/node_modules/mdast-util-gfm-strikethrough/lib/index.mjs +61 -0
  208. package/dist/es/node_modules/mdast-util-gfm-table/lib/index.mjs +170 -0
  209. package/dist/es/node_modules/mdast-util-gfm-task-list-item/lib/index.mjs +72 -0
  210. package/dist/es/node_modules/mdast-util-math/lib/index.mjs +170 -0
  211. package/dist/es/node_modules/mdast-util-phrasing/lib/index.mjs +30 -0
  212. package/dist/es/node_modules/mdast-util-to-hast/lib/footer.mjs +123 -0
  213. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/blockquote.mjs +12 -0
  214. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/break.mjs +16 -0
  215. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/code.mjs +25 -0
  216. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/delete.mjs +12 -0
  217. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/emphasis.mjs +12 -0
  218. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.mjs +31 -0
  219. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/heading.mjs +12 -0
  220. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/html.mjs +12 -0
  221. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image-reference.mjs +22 -0
  222. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image.mjs +17 -0
  223. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/index.mjs +58 -0
  224. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/inline-code.mjs +17 -0
  225. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link-reference.mjs +21 -0
  226. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link.mjs +17 -0
  227. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list-item.mjs +65 -0
  228. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list.mjs +21 -0
  229. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/paragraph.mjs +12 -0
  230. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/root.mjs +10 -0
  231. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/strong.mjs +12 -0
  232. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-cell.mjs +13 -0
  233. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-row.mjs +26 -0
  234. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table.mjs +35 -0
  235. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/text.mjs +11 -0
  236. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.mjs +12 -0
  237. package/dist/es/node_modules/mdast-util-to-hast/lib/index.mjs +19 -0
  238. package/dist/es/node_modules/mdast-util-to-hast/lib/revert.mjs +22 -0
  239. package/dist/es/node_modules/mdast-util-to-hast/lib/state.mjs +145 -0
  240. package/dist/es/node_modules/mdast-util-to-hast/node_modules/unist-util-visit/lib/index.mjs +16 -0
  241. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/blockquote.mjs +12 -0
  242. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/break.mjs +13 -0
  243. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/code.mjs +49 -0
  244. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/definition.mjs +37 -0
  245. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/emphasis.mjs +37 -0
  246. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/heading.mjs +44 -0
  247. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/html.mjs +10 -0
  248. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image-reference.mjs +36 -0
  249. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image.mjs +40 -0
  250. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/index.mjs +44 -0
  251. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/inline-code.mjs +22 -0
  252. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link-reference.mjs +36 -0
  253. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link.mjs +50 -0
  254. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list-item.mjs +19 -0
  255. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list.mjs +35 -0
  256. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/paragraph.mjs +7 -0
  257. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/root.mjs +9 -0
  258. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/strong.mjs +37 -0
  259. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/text.mjs +6 -0
  260. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.mjs +9 -0
  261. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.mjs +9 -0
  262. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.mjs +14 -0
  263. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet.mjs +9 -0
  264. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.mjs +9 -0
  265. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-fence.mjs +9 -0
  266. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.mjs +9 -0
  267. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-quote.mjs +9 -0
  268. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.mjs +9 -0
  269. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule.mjs +9 -0
  270. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-strong.mjs +9 -0
  271. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.mjs +6 -0
  272. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-info.mjs +67 -0
  273. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.mjs +9 -0
  274. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.mjs +13 -0
  275. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.mjs +15 -0
  276. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.mjs +15 -0
  277. package/dist/es/node_modules/mdast-util-to-markdown/node_modules/unist-util-visit/lib/index.mjs +16 -0
  278. package/dist/es/node_modules/mdast-util-to-string/lib/index.mjs +29 -0
  279. package/dist/es/node_modules/micromark/lib/constructs.mjs +85 -0
  280. package/dist/es/node_modules/micromark/lib/create-tokenizer.mjs +225 -0
  281. package/dist/es/node_modules/micromark/lib/initialize/content.mjs +37 -0
  282. package/dist/es/node_modules/micromark/lib/initialize/document.mjs +133 -0
  283. package/dist/es/node_modules/micromark/lib/initialize/flow.mjs +33 -0
  284. package/dist/es/node_modules/micromark/lib/initialize/text.mjs +103 -0
  285. package/dist/es/node_modules/micromark/lib/parse.mjs +32 -0
  286. package/dist/es/node_modules/micromark/lib/postprocess.mjs +9 -0
  287. package/dist/es/node_modules/micromark/lib/preprocess.mjs +40 -0
  288. package/dist/es/node_modules/micromark-core-commonmark/lib/attention.mjs +74 -0
  289. package/dist/es/node_modules/micromark-core-commonmark/lib/autolink.mjs +43 -0
  290. package/dist/es/node_modules/micromark-core-commonmark/lib/blank-line.mjs +18 -0
  291. package/dist/es/node_modules/micromark-core-commonmark/lib/block-quote.mjs +42 -0
  292. package/dist/es/node_modules/micromark-core-commonmark/lib/character-escape.mjs +17 -0
  293. package/dist/es/node_modules/micromark-core-commonmark/lib/character-reference.mjs +30 -0
  294. package/dist/es/node_modules/micromark-core-commonmark/lib/code-fenced.mjs +94 -0
  295. package/dist/es/node_modules/micromark-core-commonmark/lib/code-indented.mjs +43 -0
  296. package/dist/es/node_modules/micromark-core-commonmark/lib/code-text.mjs +45 -0
  297. package/dist/es/node_modules/micromark-core-commonmark/lib/content.mjs +50 -0
  298. package/dist/es/node_modules/micromark-core-commonmark/lib/definition.mjs +80 -0
  299. package/dist/es/node_modules/micromark-core-commonmark/lib/hard-break-escape.mjs +17 -0
  300. package/dist/es/node_modules/micromark-core-commonmark/lib/heading-atx.mjs +46 -0
  301. package/dist/es/node_modules/micromark-core-commonmark/lib/html-flow.mjs +144 -0
  302. package/dist/es/node_modules/micromark-core-commonmark/lib/html-text.mjs +102 -0
  303. package/dist/es/node_modules/micromark-core-commonmark/lib/label-end.mjs +152 -0
  304. package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-image.mjs +22 -0
  305. package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-link.mjs +19 -0
  306. package/dist/es/node_modules/micromark-core-commonmark/lib/line-ending.mjs +14 -0
  307. package/dist/es/node_modules/micromark-core-commonmark/lib/list.mjs +90 -0
  308. package/dist/es/node_modules/micromark-core-commonmark/lib/setext-underline.mjs +62 -0
  309. package/dist/es/node_modules/micromark-core-commonmark/lib/thematic-break.mjs +25 -0
  310. package/dist/es/node_modules/micromark-extension-gfm/index.mjs +12 -0
  311. package/dist/es/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.mjs +193 -0
  312. package/dist/es/node_modules/micromark-extension-gfm-footnote/lib/syntax.mjs +192 -0
  313. package/dist/es/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.mjs +68 -0
  314. package/dist/es/node_modules/micromark-extension-gfm-table/lib/edit-map.mjs +71 -0
  315. package/dist/es/node_modules/micromark-extension-gfm-table/lib/infer.mjs +24 -0
  316. package/dist/es/node_modules/micromark-extension-gfm-table/lib/syntax.mjs +147 -0
  317. package/dist/es/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.mjs +45 -0
  318. package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +76 -0
  319. package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +48 -0
  320. package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +15 -0
  321. package/dist/es/node_modules/micromark-factory-destination/index.mjs +31 -0
  322. package/dist/es/node_modules/micromark-factory-label/index.mjs +28 -0
  323. package/dist/es/node_modules/micromark-factory-space/index.mjs +15 -0
  324. package/dist/es/node_modules/micromark-factory-title/index.mjs +26 -0
  325. package/dist/es/node_modules/micromark-factory-whitespace/index.mjs +12 -0
  326. package/dist/es/node_modules/micromark-util-character/index.mjs +39 -0
  327. package/dist/es/node_modules/micromark-util-chunked/index.mjs +16 -0
  328. package/dist/es/node_modules/micromark-util-classify-character/index.mjs +10 -0
  329. package/dist/es/node_modules/micromark-util-combine-extensions/index.mjs +36 -0
  330. package/dist/es/node_modules/micromark-util-decode-numeric-character-reference/index.mjs +16 -0
  331. package/dist/es/node_modules/micromark-util-decode-string/index.mjs +18 -0
  332. package/dist/es/node_modules/micromark-util-html-tag-name/index.mjs +5 -0
  333. package/dist/es/node_modules/micromark-util-normalize-identifier/index.mjs +6 -0
  334. package/dist/es/node_modules/micromark-util-resolve-all/index.mjs +12 -0
  335. package/dist/es/node_modules/micromark-util-sanitize-uri/index.mjs +23 -0
  336. package/dist/es/node_modules/micromark-util-subtokenize/index.mjs +65 -0
  337. package/dist/es/node_modules/micromark-util-subtokenize/lib/splice-buffer.mjs +175 -0
  338. package/dist/es/node_modules/parse-entities/decode-entity.browser.mjs +8 -0
  339. package/dist/es/node_modules/parse-entities/index.mjs +83 -0
  340. package/dist/es/node_modules/parse-entities/node_modules/character-entities-legacy/index.json.mjs +217 -0
  341. package/dist/es/node_modules/property-information/find.mjs +25 -0
  342. package/dist/es/node_modules/property-information/html.mjs +10 -0
  343. package/dist/es/node_modules/property-information/lib/aria.mjs +63 -0
  344. package/dist/es/node_modules/property-information/lib/html.mjs +354 -0
  345. package/dist/es/node_modules/property-information/lib/util/case-insensitive-transform.mjs +8 -0
  346. package/dist/es/node_modules/property-information/lib/util/case-sensitive-transform.mjs +7 -0
  347. package/dist/es/node_modules/property-information/lib/util/create.mjs +13 -0
  348. package/dist/es/node_modules/property-information/lib/util/defined-info.mjs +18 -0
  349. package/dist/es/node_modules/property-information/lib/util/info.mjs +19 -0
  350. package/dist/es/node_modules/property-information/lib/util/merge.mjs +11 -0
  351. package/dist/es/node_modules/property-information/lib/util/schema.mjs +10 -0
  352. package/dist/es/node_modules/property-information/lib/util/types.mjs +15 -0
  353. package/dist/es/node_modules/property-information/lib/xlink.mjs +20 -0
  354. package/dist/es/node_modules/property-information/lib/xml.mjs +16 -0
  355. package/dist/es/node_modules/property-information/lib/xmlns.mjs +16 -0
  356. package/dist/es/node_modules/property-information/normalize.mjs +7 -0
  357. package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
  358. package/dist/es/node_modules/react-markdown/lib/index.mjs +153 -0
  359. package/dist/es/node_modules/react-markdown/node_modules/remark-parse/lib/index.mjs +29 -0
  360. package/dist/es/node_modules/react-markdown/node_modules/unist-util-visit/lib/index.mjs +16 -0
  361. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +7 -0
  362. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +101 -0
  363. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +283 -0
  364. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +4 -0
  365. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +10 -0
  366. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +195 -0
  367. package/dist/es/node_modules/refractor/core.mjs +111 -0
  368. package/dist/es/node_modules/refractor/index.mjs +553 -0
  369. package/dist/es/node_modules/refractor/lang/abap.mjs +60 -0
  370. package/dist/es/node_modules/refractor/lang/abnf.mjs +63 -0
  371. package/dist/es/node_modules/refractor/lang/actionscript.mjs +22 -0
  372. package/dist/es/node_modules/refractor/lang/ada.mjs +28 -0
  373. package/dist/es/node_modules/refractor/lang/agda.mjs +35 -0
  374. package/dist/es/node_modules/refractor/lang/al.mjs +35 -0
  375. package/dist/es/node_modules/refractor/lang/antlr4.mjs +72 -0
  376. package/dist/es/node_modules/refractor/lang/apacheconf.mjs +59 -0
  377. package/dist/es/node_modules/refractor/lang/apex.mjs +69 -0
  378. package/dist/es/node_modules/refractor/lang/apl.mjs +44 -0
  379. package/dist/es/node_modules/refractor/lang/applescript.mjs +26 -0
  380. package/dist/es/node_modules/refractor/lang/aql.mjs +57 -0
  381. package/dist/es/node_modules/refractor/lang/arduino.mjs +20 -0
  382. package/dist/es/node_modules/refractor/lang/arff.mjs +22 -0
  383. package/dist/es/node_modules/refractor/lang/asciidoc.mjs +208 -0
  384. package/dist/es/node_modules/refractor/lang/asm6502.mjs +41 -0
  385. package/dist/es/node_modules/refractor/lang/asmatmel.mjs +53 -0
  386. package/dist/es/node_modules/refractor/lang/aspnet.mjs +53 -0
  387. package/dist/es/node_modules/refractor/lang/autohotkey.mjs +40 -0
  388. package/dist/es/node_modules/refractor/lang/autoit.mjs +43 -0
  389. package/dist/es/node_modules/refractor/lang/avisynth.mjs +167 -0
  390. package/dist/es/node_modules/refractor/lang/avro-idl.mjs +50 -0
  391. package/dist/es/node_modules/refractor/lang/bash.mjs +206 -0
  392. package/dist/es/node_modules/refractor/lang/basic.mjs +29 -0
  393. package/dist/es/node_modules/refractor/lang/batch.mjs +95 -0
  394. package/dist/es/node_modules/refractor/lang/bbcode.mjs +36 -0
  395. package/dist/es/node_modules/refractor/lang/bicep.mjs +72 -0
  396. package/dist/es/node_modules/refractor/lang/birb.mjs +32 -0
  397. package/dist/es/node_modules/refractor/lang/bison.mjs +52 -0
  398. package/dist/es/node_modules/refractor/lang/bnf.mjs +31 -0
  399. package/dist/es/node_modules/refractor/lang/brainfuck.mjs +32 -0
  400. package/dist/es/node_modules/refractor/lang/brightscript.mjs +55 -0
  401. package/dist/es/node_modules/refractor/lang/bro.mjs +39 -0
  402. package/dist/es/node_modules/refractor/lang/bsl.mjs +77 -0
  403. package/dist/es/node_modules/refractor/lang/c.mjs +78 -0
  404. package/dist/es/node_modules/refractor/lang/cfscript.mjs +44 -0
  405. package/dist/es/node_modules/refractor/lang/chaiscript.mjs +65 -0
  406. package/dist/es/node_modules/refractor/lang/cil.mjs +31 -0
  407. package/dist/es/node_modules/refractor/lang/clike.mjs +36 -0
  408. package/dist/es/node_modules/refractor/lang/clojure.mjs +42 -0
  409. package/dist/es/node_modules/refractor/lang/cmake.mjs +41 -0
  410. package/dist/es/node_modules/refractor/lang/cobol.mjs +58 -0
  411. package/dist/es/node_modules/refractor/lang/coffeescript.mjs +86 -0
  412. package/dist/es/node_modules/refractor/lang/concurnas.mjs +69 -0
  413. package/dist/es/node_modules/refractor/lang/coq.mjs +52 -0
  414. package/dist/es/node_modules/refractor/lang/cpp.mjs +98 -0
  415. package/dist/es/node_modules/refractor/lang/crystal.mjs +63 -0
  416. package/dist/es/node_modules/refractor/lang/csharp.mjs +277 -0
  417. package/dist/es/node_modules/refractor/lang/cshtml.mjs +104 -0
  418. package/dist/es/node_modules/refractor/lang/csp.mjs +61 -0
  419. package/dist/es/node_modules/refractor/lang/css-extras.mjs +109 -0
  420. package/dist/es/node_modules/refractor/lang/css.mjs +63 -0
  421. package/dist/es/node_modules/refractor/lang/csv.mjs +16 -0
  422. package/dist/es/node_modules/refractor/lang/cypher.mjs +44 -0
  423. package/dist/es/node_modules/refractor/lang/d.mjs +77 -0
  424. package/dist/es/node_modules/refractor/lang/dart.mjs +72 -0
  425. package/dist/es/node_modules/refractor/lang/dataweave.mjs +49 -0
  426. package/dist/es/node_modules/refractor/lang/dax.mjs +39 -0
  427. package/dist/es/node_modules/refractor/lang/dhall.mjs +74 -0
  428. package/dist/es/node_modules/refractor/lang/diff.mjs +54 -0
  429. package/dist/es/node_modules/refractor/lang/django.mjs +60 -0
  430. package/dist/es/node_modules/refractor/lang/dns-zone-file.mjs +40 -0
  431. package/dist/es/node_modules/refractor/lang/docker.mjs +83 -0
  432. package/dist/es/node_modules/refractor/lang/dot.mjs +75 -0
  433. package/dist/es/node_modules/refractor/lang/ebnf.mjs +32 -0
  434. package/dist/es/node_modules/refractor/lang/editorconfig.mjs +39 -0
  435. package/dist/es/node_modules/refractor/lang/eiffel.mjs +46 -0
  436. package/dist/es/node_modules/refractor/lang/ejs.mjs +33 -0
  437. package/dist/es/node_modules/refractor/lang/elixir.mjs +100 -0
  438. package/dist/es/node_modules/refractor/lang/elm.mjs +54 -0
  439. package/dist/es/node_modules/refractor/lang/erb.mjs +35 -0
  440. package/dist/es/node_modules/refractor/lang/erlang.mjs +47 -0
  441. package/dist/es/node_modules/refractor/lang/etlua.mjs +33 -0
  442. package/dist/es/node_modules/refractor/lang/excel-formula.mjs +74 -0
  443. package/dist/es/node_modules/refractor/lang/factor.mjs +569 -0
  444. package/dist/es/node_modules/refractor/lang/false.mjs +39 -0
  445. package/dist/es/node_modules/refractor/lang/firestore-security-rules.mjs +43 -0
  446. package/dist/es/node_modules/refractor/lang/flow.mjs +31 -0
  447. package/dist/es/node_modules/refractor/lang/fortran.mjs +49 -0
  448. package/dist/es/node_modules/refractor/lang/fsharp.mjs +76 -0
  449. package/dist/es/node_modules/refractor/lang/ftl.mjs +102 -0
  450. package/dist/es/node_modules/refractor/lang/gap.mjs +57 -0
  451. package/dist/es/node_modules/refractor/lang/gcode.mjs +28 -0
  452. package/dist/es/node_modules/refractor/lang/gdscript.mjs +36 -0
  453. package/dist/es/node_modules/refractor/lang/gedcom.mjs +40 -0
  454. package/dist/es/node_modules/refractor/lang/gherkin.mjs +94 -0
  455. package/dist/es/node_modules/refractor/lang/git.mjs +75 -0
  456. package/dist/es/node_modules/refractor/lang/glsl.mjs +18 -0
  457. package/dist/es/node_modules/refractor/lang/gml.mjs +19 -0
  458. package/dist/es/node_modules/refractor/lang/gn.mjs +55 -0
  459. package/dist/es/node_modules/refractor/lang/go-module.mjs +34 -0
  460. package/dist/es/node_modules/refractor/lang/go.mjs +36 -0
  461. package/dist/es/node_modules/refractor/lang/graphql.mjs +133 -0
  462. package/dist/es/node_modules/refractor/lang/groovy.mjs +58 -0
  463. package/dist/es/node_modules/refractor/lang/haml.mjs +132 -0
  464. package/dist/es/node_modules/refractor/lang/handlebars.mjs +46 -0
  465. package/dist/es/node_modules/refractor/lang/haskell.mjs +76 -0
  466. package/dist/es/node_modules/refractor/lang/haxe.mjs +84 -0
  467. package/dist/es/node_modules/refractor/lang/hcl.mjs +68 -0
  468. package/dist/es/node_modules/refractor/lang/hlsl.mjs +31 -0
  469. package/dist/es/node_modules/refractor/lang/hoon.mjs +26 -0
  470. package/dist/es/node_modules/refractor/lang/hpkp.mjs +20 -0
  471. package/dist/es/node_modules/refractor/lang/hsts.mjs +20 -0
  472. package/dist/es/node_modules/refractor/lang/http.mjs +126 -0
  473. package/dist/es/node_modules/refractor/lang/ichigojam.mjs +25 -0
  474. package/dist/es/node_modules/refractor/lang/icon.mjs +32 -0
  475. package/dist/es/node_modules/refractor/lang/icu-message-format.mjs +136 -0
  476. package/dist/es/node_modules/refractor/lang/idris.mjs +30 -0
  477. package/dist/es/node_modules/refractor/lang/iecst.mjs +38 -0
  478. package/dist/es/node_modules/refractor/lang/ignore.mjs +30 -0
  479. package/dist/es/node_modules/refractor/lang/inform7.mjs +69 -0
  480. package/dist/es/node_modules/refractor/lang/ini.mjs +52 -0
  481. package/dist/es/node_modules/refractor/lang/io.mjs +34 -0
  482. package/dist/es/node_modules/refractor/lang/j.mjs +40 -0
  483. package/dist/es/node_modules/refractor/lang/java.mjs +86 -0
  484. package/dist/es/node_modules/refractor/lang/javadoc.mjs +89 -0
  485. package/dist/es/node_modules/refractor/lang/javadoclike.mjs +60 -0
  486. package/dist/es/node_modules/refractor/lang/javascript.mjs +114 -0
  487. package/dist/es/node_modules/refractor/lang/javastacktrace.mjs +146 -0
  488. package/dist/es/node_modules/refractor/lang/jexl.mjs +26 -0
  489. package/dist/es/node_modules/refractor/lang/jolie.mjs +51 -0
  490. package/dist/es/node_modules/refractor/lang/jq.mjs +71 -0
  491. package/dist/es/node_modules/refractor/lang/js-extras.mjs +104 -0
  492. package/dist/es/node_modules/refractor/lang/js-templates.mjs +153 -0
  493. package/dist/es/node_modules/refractor/lang/jsdoc.mjs +83 -0
  494. package/dist/es/node_modules/refractor/lang/json.mjs +36 -0
  495. package/dist/es/node_modules/refractor/lang/json5.mjs +32 -0
  496. package/dist/es/node_modules/refractor/lang/jsonp.mjs +20 -0
  497. package/dist/es/node_modules/refractor/lang/jsstacktrace.mjs +53 -0
  498. package/dist/es/node_modules/refractor/lang/jsx.mjs +61 -0
  499. package/dist/es/node_modules/refractor/lang/julia.mjs +47 -0
  500. package/dist/es/node_modules/refractor/lang/keepalived.mjs +54 -0
  501. package/dist/es/node_modules/refractor/lang/keyman.mjs +55 -0
  502. package/dist/es/node_modules/refractor/lang/kotlin.mjs +81 -0
  503. package/dist/es/node_modules/refractor/lang/kumir.mjs +85 -0
  504. package/dist/es/node_modules/refractor/lang/kusto.mjs +47 -0
  505. package/dist/es/node_modules/refractor/lang/latex.mjs +68 -0
  506. package/dist/es/node_modules/refractor/lang/latte.mjs +68 -0
  507. package/dist/es/node_modules/refractor/lang/less.mjs +51 -0
  508. package/dist/es/node_modules/refractor/lang/lilypond.mjs +77 -0
  509. package/dist/es/node_modules/refractor/lang/liquid.mjs +68 -0
  510. package/dist/es/node_modules/refractor/lang/lisp.mjs +158 -0
  511. package/dist/es/node_modules/refractor/lang/livescript.mjs +119 -0
  512. package/dist/es/node_modules/refractor/lang/llvm.mjs +31 -0
  513. package/dist/es/node_modules/refractor/lang/log.mjs +103 -0
  514. package/dist/es/node_modules/refractor/lang/lolcode.mjs +57 -0
  515. package/dist/es/node_modules/refractor/lang/lua.mjs +29 -0
  516. package/dist/es/node_modules/refractor/lang/magma.mjs +42 -0
  517. package/dist/es/node_modules/refractor/lang/makefile.mjs +42 -0
  518. package/dist/es/node_modules/refractor/lang/markdown.mjs +306 -0
  519. package/dist/es/node_modules/refractor/lang/markup-templating.mjs +74 -0
  520. package/dist/es/node_modules/refractor/lang/markup.mjs +154 -0
  521. package/dist/es/node_modules/refractor/lang/matlab.mjs +25 -0
  522. package/dist/es/node_modules/refractor/lang/maxscript.mjs +70 -0
  523. package/dist/es/node_modules/refractor/lang/mel.mjs +49 -0
  524. package/dist/es/node_modules/refractor/lang/mermaid.mjs +116 -0
  525. package/dist/es/node_modules/refractor/lang/mizar.mjs +24 -0
  526. package/dist/es/node_modules/refractor/lang/mongodb.mjs +287 -0
  527. package/dist/es/node_modules/refractor/lang/monkey.mjs +40 -0
  528. package/dist/es/node_modules/refractor/lang/moonscript.mjs +63 -0
  529. package/dist/es/node_modules/refractor/lang/n1ql.mjs +34 -0
  530. package/dist/es/node_modules/refractor/lang/n4js.mjs +22 -0
  531. package/dist/es/node_modules/refractor/lang/nand2tetris-hdl.mjs +21 -0
  532. package/dist/es/node_modules/refractor/lang/naniscript.mjs +140 -0
  533. package/dist/es/node_modules/refractor/lang/nasm.mjs +31 -0
  534. package/dist/es/node_modules/refractor/lang/neon.mjs +52 -0
  535. package/dist/es/node_modules/refractor/lang/nevod.mjs +125 -0
  536. package/dist/es/node_modules/refractor/lang/nginx.mjs +61 -0
  537. package/dist/es/node_modules/refractor/lang/nim.mjs +54 -0
  538. package/dist/es/node_modules/refractor/lang/nix.mjs +45 -0
  539. package/dist/es/node_modules/refractor/lang/nsis.mjs +37 -0
  540. package/dist/es/node_modules/refractor/lang/objectivec.mjs +23 -0
  541. package/dist/es/node_modules/refractor/lang/ocaml.mjs +64 -0
  542. package/dist/es/node_modules/refractor/lang/opencl.mjs +62 -0
  543. package/dist/es/node_modules/refractor/lang/openqasm.mjs +29 -0
  544. package/dist/es/node_modules/refractor/lang/oz.mjs +37 -0
  545. package/dist/es/node_modules/refractor/lang/parigp.mjs +36 -0
  546. package/dist/es/node_modules/refractor/lang/parser.mjs +80 -0
  547. package/dist/es/node_modules/refractor/lang/pascal.mjs +66 -0
  548. package/dist/es/node_modules/refractor/lang/pascaligo.mjs +70 -0
  549. package/dist/es/node_modules/refractor/lang/pcaxis.mjs +63 -0
  550. package/dist/es/node_modules/refractor/lang/peoplecode.mjs +51 -0
  551. package/dist/es/node_modules/refractor/lang/perl.mjs +134 -0
  552. package/dist/es/node_modules/refractor/lang/php-extras.mjs +29 -0
  553. package/dist/es/node_modules/refractor/lang/php.mjs +301 -0
  554. package/dist/es/node_modules/refractor/lang/phpdoc.mjs +34 -0
  555. package/dist/es/node_modules/refractor/lang/plsql.mjs +30 -0
  556. package/dist/es/node_modules/refractor/lang/powerquery.mjs +44 -0
  557. package/dist/es/node_modules/refractor/lang/powershell.mjs +58 -0
  558. package/dist/es/node_modules/refractor/lang/processing.mjs +25 -0
  559. package/dist/es/node_modules/refractor/lang/prolog.mjs +31 -0
  560. package/dist/es/node_modules/refractor/lang/promql.mjs +74 -0
  561. package/dist/es/node_modules/refractor/lang/properties.mjs +21 -0
  562. package/dist/es/node_modules/refractor/lang/protobuf.mjs +47 -0
  563. package/dist/es/node_modules/refractor/lang/psl.mjs +47 -0
  564. package/dist/es/node_modules/refractor/lang/pug.mjs +173 -0
  565. package/dist/es/node_modules/refractor/lang/puppet.mjs +140 -0
  566. package/dist/es/node_modules/refractor/lang/pure.mjs +72 -0
  567. package/dist/es/node_modules/refractor/lang/purebasic.mjs +63 -0
  568. package/dist/es/node_modules/refractor/lang/purescript.mjs +41 -0
  569. package/dist/es/node_modules/refractor/lang/python.mjs +73 -0
  570. package/dist/es/node_modules/refractor/lang/q.mjs +62 -0
  571. package/dist/es/node_modules/refractor/lang/qml.mjs +67 -0
  572. package/dist/es/node_modules/refractor/lang/qore.mjs +32 -0
  573. package/dist/es/node_modules/refractor/lang/qsharp.mjs +93 -0
  574. package/dist/es/node_modules/refractor/lang/r.mjs +31 -0
  575. package/dist/es/node_modules/refractor/lang/racket.mjs +29 -0
  576. package/dist/es/node_modules/refractor/lang/reason.mjs +33 -0
  577. package/dist/es/node_modules/refractor/lang/regex.mjs +97 -0
  578. package/dist/es/node_modules/refractor/lang/rego.mjs +37 -0
  579. package/dist/es/node_modules/refractor/lang/renpy.mjs +30 -0
  580. package/dist/es/node_modules/refractor/lang/rest.mjs +199 -0
  581. package/dist/es/node_modules/refractor/lang/rip.mjs +41 -0
  582. package/dist/es/node_modules/refractor/lang/roboconf.mjs +39 -0
  583. package/dist/es/node_modules/refractor/lang/robotframework.mjs +95 -0
  584. package/dist/es/node_modules/refractor/lang/ruby.mjs +159 -0
  585. package/dist/es/node_modules/refractor/lang/rust.mjs +122 -0
  586. package/dist/es/node_modules/refractor/lang/sas.mjs +305 -0
  587. package/dist/es/node_modules/refractor/lang/sass.mjs +69 -0
  588. package/dist/es/node_modules/refractor/lang/scala.mjs +59 -0
  589. package/dist/es/node_modules/refractor/lang/scheme.mjs +120 -0
  590. package/dist/es/node_modules/refractor/lang/scss.mjs +82 -0
  591. package/dist/es/node_modules/refractor/lang/shell-session.mjs +69 -0
  592. package/dist/es/node_modules/refractor/lang/smali.mjs +84 -0
  593. package/dist/es/node_modules/refractor/lang/smalltalk.mjs +47 -0
  594. package/dist/es/node_modules/refractor/lang/smarty.mjs +106 -0
  595. package/dist/es/node_modules/refractor/lang/sml.mjs +64 -0
  596. package/dist/es/node_modules/refractor/lang/solidity.mjs +28 -0
  597. package/dist/es/node_modules/refractor/lang/solution-file.mjs +58 -0
  598. package/dist/es/node_modules/refractor/lang/soy.mjs +77 -0
  599. package/dist/es/node_modules/refractor/lang/sparql.mjs +24 -0
  600. package/dist/es/node_modules/refractor/lang/splunk-spl.mjs +36 -0
  601. package/dist/es/node_modules/refractor/lang/sqf.mjs +42 -0
  602. package/dist/es/node_modules/refractor/lang/sql.mjs +42 -0
  603. package/dist/es/node_modules/refractor/lang/squirrel.mjs +50 -0
  604. package/dist/es/node_modules/refractor/lang/stan.mjs +63 -0
  605. package/dist/es/node_modules/refractor/lang/stylus.mjs +141 -0
  606. package/dist/es/node_modules/refractor/lang/swift.mjs +125 -0
  607. package/dist/es/node_modules/refractor/lang/systemd.mjs +65 -0
  608. package/dist/es/node_modules/refractor/lang/t4-cs.mjs +17 -0
  609. package/dist/es/node_modules/refractor/lang/t4-templating.mjs +57 -0
  610. package/dist/es/node_modules/refractor/lang/t4-vb.mjs +17 -0
  611. package/dist/es/node_modules/refractor/lang/tap.mjs +35 -0
  612. package/dist/es/node_modules/refractor/lang/tcl.mjs +51 -0
  613. package/dist/es/node_modules/refractor/lang/textile.mjs +248 -0
  614. package/dist/es/node_modules/refractor/lang/toml.mjs +54 -0
  615. package/dist/es/node_modules/refractor/lang/tremor.mjs +67 -0
  616. package/dist/es/node_modules/refractor/lang/tsx.mjs +22 -0
  617. package/dist/es/node_modules/refractor/lang/tt2.mjs +53 -0
  618. package/dist/es/node_modules/refractor/lang/turtle.mjs +62 -0
  619. package/dist/es/node_modules/refractor/lang/twig.mjs +48 -0
  620. package/dist/es/node_modules/refractor/lang/typescript.mjs +57 -0
  621. package/dist/es/node_modules/refractor/lang/typoscript.mjs +81 -0
  622. package/dist/es/node_modules/refractor/lang/unrealscript.mjs +50 -0
  623. package/dist/es/node_modules/refractor/lang/uorazor.mjs +57 -0
  624. package/dist/es/node_modules/refractor/lang/uri.mjs +92 -0
  625. package/dist/es/node_modules/refractor/lang/v.mjs +85 -0
  626. package/dist/es/node_modules/refractor/lang/vala.mjs +87 -0
  627. package/dist/es/node_modules/refractor/lang/vbnet.mjs +34 -0
  628. package/dist/es/node_modules/refractor/lang/velocity.mjs +75 -0
  629. package/dist/es/node_modules/refractor/lang/verilog.mjs +38 -0
  630. package/dist/es/node_modules/refractor/lang/vhdl.mjs +35 -0
  631. package/dist/es/node_modules/refractor/lang/vim.mjs +22 -0
  632. package/dist/es/node_modules/refractor/lang/visual-basic.mjs +38 -0
  633. package/dist/es/node_modules/refractor/lang/warpscript.mjs +33 -0
  634. package/dist/es/node_modules/refractor/lang/wasm.mjs +36 -0
  635. package/dist/es/node_modules/refractor/lang/web-idl.mjs +89 -0
  636. package/dist/es/node_modules/refractor/lang/wiki.mjs +86 -0
  637. package/dist/es/node_modules/refractor/lang/wolfram.mjs +37 -0
  638. package/dist/es/node_modules/refractor/lang/wren.mjs +97 -0
  639. package/dist/es/node_modules/refractor/lang/xeora.mjs +121 -0
  640. package/dist/es/node_modules/refractor/lang/xml-doc.mjs +35 -0
  641. package/dist/es/node_modules/refractor/lang/xojo.mjs +30 -0
  642. package/dist/es/node_modules/refractor/lang/xquery.mjs +89 -0
  643. package/dist/es/node_modules/refractor/lang/yaml.mjs +78 -0
  644. package/dist/es/node_modules/refractor/lang/yang.mjs +32 -0
  645. package/dist/es/node_modules/refractor/lang/zig.mjs +80 -0
  646. package/dist/es/node_modules/refractor/node_modules/comma-separated-tokens/index.mjs +16 -0
  647. package/dist/es/node_modules/refractor/node_modules/hastscript/factory.mjs +77 -0
  648. package/dist/es/node_modules/refractor/node_modules/hastscript/html.mjs +8 -0
  649. package/dist/es/node_modules/refractor/node_modules/hastscript/index.mjs +5 -0
  650. package/dist/es/node_modules/refractor/node_modules/prismjs/components/prism-core.mjs +720 -0
  651. package/dist/es/node_modules/refractor/node_modules/space-separated-tokens/index.mjs +14 -0
  652. package/dist/es/node_modules/rehype-external-links/lib/index.mjs +34 -0
  653. package/dist/es/node_modules/rehype-external-links/node_modules/is-absolute-url/index.mjs +9 -0
  654. package/dist/es/node_modules/rehype-external-links/node_modules/unist-util-visit/lib/index.mjs +16 -0
  655. package/dist/es/node_modules/rehype-katex/lib/index.mjs +83 -0
  656. package/dist/es/node_modules/rehype-raw/lib/index.mjs +26 -0
  657. package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode-codepoint.mjs +38 -0
  658. package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode.mjs +251 -0
  659. package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/generated/decode-data-html.mjs +7 -0
  660. package/dist/es/node_modules/rehype-raw/node_modules/hast-util-raw/lib/index.mjs +249 -0
  661. package/dist/es/node_modules/rehype-raw/node_modules/hast-util-to-parse5/lib/index.mjs +125 -0
  662. package/dist/es/node_modules/rehype-raw/node_modules/html-void-elements/index.mjs +4 -0
  663. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/doctype.mjs +34 -0
  664. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/error-codes.mjs +7 -0
  665. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/foreign-content.mjs +103 -0
  666. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/html.mjs +44 -0
  667. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/token.mjs +14 -0
  668. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/unicode.mjs +38 -0
  669. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/formatting-element-list.mjs +91 -0
  670. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/index.mjs +2308 -0
  671. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/open-element-stack.mjs +220 -0
  672. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/serializer/index.mjs +2 -0
  673. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/index.mjs +1948 -0
  674. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/preprocessor.mjs +92 -0
  675. package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tree-adapters/default.mjs +173 -0
  676. package/dist/es/node_modules/rehype-raw/node_modules/property-information/index.mjs +12 -0
  677. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/aria.mjs +61 -0
  678. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/find.mjs +33 -0
  679. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/html.mjs +368 -0
  680. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/normalize.mjs +6 -0
  681. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/svg.mjs +566 -0
  682. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
  683. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
  684. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/create.mjs +17 -0
  685. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/defined-info.mjs +27 -0
  686. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/info.mjs +23 -0
  687. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/merge.mjs +11 -0
  688. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/schema.mjs +17 -0
  689. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/types.mjs +15 -0
  690. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xlink.mjs +19 -0
  691. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xml.mjs +15 -0
  692. package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xmlns.mjs +16 -0
  693. package/dist/es/node_modules/rehype-raw/node_modules/unist-util-visit/lib/index.mjs +16 -0
  694. package/dist/es/node_modules/rehype-raw/node_modules/web-namespaces/index.mjs +11 -0
  695. package/dist/es/node_modules/remark-gfm/lib/index.mjs +13 -0
  696. package/dist/es/node_modules/remark-math/lib/index.mjs +13 -0
  697. package/dist/es/node_modules/remark-rehype/lib/index.mjs +51 -0
  698. package/dist/es/node_modules/space-separated-tokens/index.mjs +11 -0
  699. package/dist/es/node_modules/style-to-js/cjs/index.mjs +22 -0
  700. package/dist/es/node_modules/style-to-js/cjs/utilities.mjs +18 -0
  701. package/dist/es/node_modules/style-to-js/node_modules/inline-style-parser/index.mjs +93 -0
  702. package/dist/es/node_modules/style-to-js/node_modules/style-to-object/cjs/index.mjs +25 -0
  703. package/dist/es/node_modules/trim-lines/index.mjs +25 -0
  704. package/dist/es/node_modules/tslib/tslib.es6.mjs +30 -0
  705. package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +123 -0
  706. package/dist/es/node_modules/unified/lib/callable-instance.mjs +25 -0
  707. package/dist/es/node_modules/unified/lib/index.mjs +525 -0
  708. package/dist/es/node_modules/unified/node_modules/bail/index.mjs +7 -0
  709. package/dist/es/node_modules/unified/node_modules/is-plain-obj/index.mjs +9 -0
  710. package/dist/es/node_modules/unified/node_modules/trough/lib/index.mjs +61 -0
  711. package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +32 -0
  712. package/dist/es/node_modules/unist-util-is/lib/index.mjs +81 -0
  713. package/dist/es/node_modules/unist-util-position/lib/index.mjs +26 -0
  714. package/dist/es/node_modules/unist-util-stringify-position/lib/index.mjs +15 -0
  715. package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +6 -0
  716. package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +56 -0
  717. package/dist/es/node_modules/vfile/lib/index.mjs +401 -0
  718. package/dist/es/node_modules/vfile/lib/minpath.browser.mjs +120 -0
  719. package/dist/es/node_modules/vfile/lib/minproc.browser.mjs +9 -0
  720. package/dist/es/node_modules/vfile/lib/minurl.browser.mjs +35 -0
  721. package/dist/es/node_modules/vfile/lib/minurl.shared.mjs +7 -0
  722. package/dist/es/node_modules/vfile-message/lib/index.mjs +106 -0
  723. package/dist/es/node_modules/xtend/immutable.mjs +12 -0
  724. package/dist/es/node_modules/zwitch/index.mjs +18 -0
  725. package/dist/es/packages/react-components/dist/es/Iconfont/index.mjs +8 -0
  726. package/dist/es/packages/react-components/dist/es/components/Copy/index.mjs +43 -0
  727. package/dist/es/packages/react-components/dist/es/components/Markdown/ATag/index.mjs +42 -0
  728. package/dist/es/packages/react-components/dist/es/components/Markdown/Code/index.mjs +64 -0
  729. package/dist/es/packages/react-components/dist/es/components/Markdown/Image/index.mjs +56 -0
  730. package/dist/es/packages/react-components/dist/es/components/Markdown/Video/index.mjs +19 -0
  731. package/dist/es/packages/react-components/dist/es/components/Markdown/index.mjs +68 -0
  732. package/dist/es/packages/react-components/dist/es/index.mjs +10 -0
  733. package/dist/es/packages/react-components/dist/es/utils/clipboard.mjs +38 -0
  734. package/dist/es/packages/react-components/dist/es/utils/markdown/index.mjs +29 -0
  735. package/dist/es/src/global.css +1 -0
  736. package/dist/es/src/image-viewer.css +1 -0
  737. package/dist/es/src/katex.min.css +1 -0
  738. package/dist/es/src/mask.css +1 -0
  739. package/dist/es/src/safe-area.css +1 -0
  740. package/dist/es/src/style.css +1 -0
  741. package/dist/es/src/style10.css +1 -0
  742. package/dist/es/src/style11.css +1 -0
  743. package/dist/es/src/style12.css +1 -0
  744. package/dist/es/src/style13.css +1 -0
  745. package/dist/es/src/style14.css +1 -0
  746. package/dist/es/src/style15.css +1 -0
  747. package/dist/es/src/style16.css +1 -0
  748. package/dist/es/src/style17.css +1 -0
  749. package/dist/es/src/style18.css +1 -0
  750. package/dist/es/src/style19.css +1 -0
  751. package/dist/es/src/style2.css +1 -0
  752. package/dist/es/src/style20.css +1 -0
  753. package/dist/es/src/style21.css +1 -0
  754. package/dist/es/src/style22.css +1 -0
  755. package/dist/es/src/style23.css +1 -0
  756. package/dist/es/src/style24.css +1 -0
  757. package/dist/es/src/style25.css +1 -0
  758. package/dist/es/src/style26.css +1 -0
  759. package/dist/es/src/style27.css +1 -0
  760. package/dist/es/src/style28.css +1 -0
  761. package/dist/es/src/style29.css +1 -0
  762. package/dist/es/src/style3.css +1 -0
  763. package/dist/es/src/style4.css +1 -0
  764. package/dist/es/src/style5.css +1 -0
  765. package/dist/es/src/style6.css +1 -0
  766. package/dist/es/src/style7.css +1 -0
  767. package/dist/es/src/style8.css +1 -0
  768. package/dist/es/src/style9.css +1 -0
  769. package/dist/es/types.mjs +4 -0
  770. package/dist/es/utils/index.mjs +37 -0
  771. package/dist/lib/index.css +1 -0
  772. package/dist/lib/index.js +317 -0
  773. package/dist/src/AgentClientUI.d.ts +4 -0
  774. package/dist/src/Dialog/AgentChat/HistoryItem/FileItem/index.d.ts +11 -0
  775. package/dist/src/Dialog/AgentChat/HistoryItem/InputProgress/index.d.ts +7 -0
  776. package/dist/src/Dialog/AgentChat/HistoryItem/SearchReference/index.d.ts +10 -0
  777. package/dist/src/Dialog/AgentChat/HistoryItem/SessionAction/index.d.ts +13 -0
  778. package/dist/src/Dialog/AgentChat/HistoryItem/SessionRefer/ReferItem/index.d.ts +9 -0
  779. package/dist/src/Dialog/AgentChat/HistoryItem/SessionRefer/index.d.ts +8 -0
  780. package/dist/src/Dialog/AgentChat/HistoryItem/SessionRelated/index.d.ts +9 -0
  781. package/dist/src/Dialog/AgentChat/HistoryItem/index.d.ts +18 -0
  782. package/dist/src/Dialog/AgentChat/PromptSetting/index.d.ts +15 -0
  783. package/dist/src/Dialog/AgentChat/Tools/ConnectToNetwork/index.d.ts +14 -0
  784. package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/EditPromptModal/index.d.ts +11 -0
  785. package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PrivatePromptList.d.ts +12 -0
  786. package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PromptListItem.d.ts +13 -0
  787. package/dist/src/Dialog/AgentChat/Tools/PromptManager/PromptList/PublicPromptList.d.ts +12 -0
  788. package/dist/src/Dialog/AgentChat/Tools/PromptManager/index.d.ts +13 -0
  789. package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/NameEditPanel.d.ts +9 -0
  790. package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/SessionItem.d.ts +16 -0
  791. package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.d.ts +9 -0
  792. package/dist/src/Dialog/AgentChat/Tools/SessionListDrawer/index.d.ts +9 -0
  793. package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/ClearModal/index.d.ts +7 -0
  794. package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/FileCard/index.d.ts +22 -0
  795. package/dist/src/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.d.ts +22 -0
  796. package/dist/src/Dialog/AgentChat/index.d.ts +19 -0
  797. package/dist/src/Dialog/SessionList/index.d.ts +21 -0
  798. package/dist/src/Dialog/UploadingPrompt/index.d.ts +9 -0
  799. package/dist/src/Dialog/index.d.ts +9 -0
  800. package/dist/src/Footer/FooterWarning.d.ts +8 -0
  801. package/dist/src/Footer/index.d.ts +8 -0
  802. package/dist/src/QuillEditor/index.d.ts +20 -0
  803. package/dist/src/ReactTextGenerationUI/components/TextSiders/index.d.ts +21 -0
  804. package/dist/src/ReactTextGenerationUI/components/fetchEventSource/fetch.d.ts +44 -0
  805. package/dist/src/ReactTextGenerationUI/components/fetchEventSource/index.d.ts +1 -0
  806. package/dist/src/ReactTextGenerationUI/components/fetchEventSource/parse.d.ts +36 -0
  807. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/fetch.d.ts +44 -0
  808. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/index.d.ts +1 -0
  809. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/parse.d.ts +36 -0
  810. package/dist/src/ReactTextGenerationUI/index.d.ts +4 -0
  811. package/dist/src/components/FilePreview/index.d.ts +20 -0
  812. package/dist/src/components/Greeting/index.d.ts +8 -0
  813. package/dist/src/components/Header/index.d.ts +7 -0
  814. package/dist/src/components/Iconfont/font_4108228_z72fskklg2.d.ts +0 -0
  815. package/dist/src/components/Iconfont/font_4439177_7rytwlvbmjj.d.ts +0 -0
  816. package/dist/src/components/Iconfont/index.d.ts +2 -0
  817. package/dist/src/components/JsonDisplay/index.d.ts +6 -0
  818. package/dist/src/components/KnowledgeDoc/index.d.ts +9 -0
  819. package/dist/src/components/KnowledgeList/KnowledgeSelect/index.d.ts +12 -0
  820. package/dist/src/components/KnowledgeList/index.d.ts +10 -0
  821. package/dist/src/components/PDFViewer/index.d.ts +7 -0
  822. package/dist/src/components/Recommend/RecommendItem.d.ts +12 -0
  823. package/dist/src/components/Recommend/index.d.ts +14 -0
  824. package/dist/src/components/WebLink/index.d.ts +7 -0
  825. package/dist/src/constant.d.ts +17 -0
  826. package/dist/src/context.d.ts +5 -0
  827. package/dist/src/index.d.ts +36 -0
  828. package/dist/src/types.d.ts +228 -0
  829. package/dist/src/utils/fetchEventSource/fetch.d.ts +44 -0
  830. package/dist/src/utils/fetchEventSource/index.d.ts +1 -0
  831. package/dist/src/utils/fetchEventSource/parse.d.ts +36 -0
  832. package/dist/src/utils/index.d.ts +25 -0
  833. package/package.json +141 -0
@@ -0,0 +1,906 @@
1
+ var Yt = Object.defineProperty, Kt = Object.defineProperties;
2
+ var Wt = Object.getOwnPropertyDescriptors;
3
+ var et = Object.getOwnPropertySymbols;
4
+ var Qt = Object.prototype.hasOwnProperty, _t = Object.prototype.propertyIsEnumerable;
5
+ var ke = (L, o, v) => o in L ? Yt(L, o, { enumerable: !0, configurable: !0, writable: !0, value: v }) : L[o] = v, tt = (L, o) => {
6
+ for (var v in o || (o = {}))
7
+ Qt.call(o, v) && ke(L, v, o[v]);
8
+ if (et)
9
+ for (var v of et(o))
10
+ _t.call(o, v) && ke(L, v, o[v]);
11
+ return L;
12
+ }, nt = (L, o) => Kt(L, Wt(o));
13
+ var D = (L, o, v) => (ke(L, typeof o != "symbol" ? o + "" : o, v), v);
14
+ var z = (L, o, v) => new Promise((e, x) => {
15
+ var ce = (I) => {
16
+ try {
17
+ H(v.next(I));
18
+ } catch (h) {
19
+ x(h);
20
+ }
21
+ }, k = (I) => {
22
+ try {
23
+ H(v.throw(I));
24
+ } catch (h) {
25
+ x(h);
26
+ }
27
+ }, H = (I) => I.done ? e(I.value) : Promise.resolve(I.value).then(ce, k);
28
+ H((v = v.apply(L, o)).next());
29
+ });
30
+ import { jsx as c, jsxs as A } from "react/jsx-runtime";
31
+ import { memo as Gt, useState as m, useRef as B, useContext as Xt, useEffect as T, useMemo as Zt } from "react";
32
+ /* empty css */import { Divider as Jt, Spin as St, Button as _, Space as ae, Upload as en, Tooltip as tn, message as u, notification as nn } from "antd";
33
+ import de from "../../components/Iconfont/index.mjs";
34
+ import { IHistoryRole as G, ChatMessageRole as it } from "@glodon-aiot/apis";
35
+ import rt from "./HistoryItem/index.mjs";
36
+ import lt from "dayjs";
37
+ import { v4 as at } from "uuid";
38
+ import on from "../../context.mjs";
39
+ import { MB as sn } from "../../constant.mjs";
40
+ import rn from "../../components/FilePreview/index.mjs";
41
+ import { getImageExtension as ln } from "../../utils/index.mjs";
42
+ import an from "../../QuillEditor/index.mjs";
43
+ import dn from "../../components/Recommend/index.mjs";
44
+ import cn from "../../components/Greeting/index.mjs";
45
+ import fn from "../../Footer/index.mjs";
46
+ import { CameraOutlined as gn, PlusOutlined as un } from "@ant-design/icons";
47
+ import hn from "./Tools/UploadKnowledgeFiles/index.mjs";
48
+ import mn from "../UploadingPrompt/index.mjs";
49
+ import yn from "./PromptSetting/index.mjs";
50
+ import { useMemoizedFn as we } from "ahooks";
51
+ import pn from "./Tools/SessionListDrawer/index.mjs";
52
+ import vn from "react-infinite-scroll-component";
53
+ import bn from "./Tools/ConnectToNetwork/index.mjs";
54
+ import kn from "./Tools/PromptManager/index.mjs";
55
+ import wn from "../../assets/icon.svg.mjs";
56
+ const xn = Gt(rt), ot = {
57
+ icon: wn,
58
+ text: "今天我能帮你什么?"
59
+ };
60
+ class J {
61
+ constructor(o, v, e, x) {
62
+ D(this, "messageTime");
63
+ D(this, "isWaiting");
64
+ D(this, "messageId");
65
+ D(this, "isContext");
66
+ D(this, "actions");
67
+ D(this, "reference");
68
+ D(this, "isSensitive");
69
+ D(this, "isSuspend");
70
+ D(this, "comment");
71
+ this.content = o, this.sessionId = v, this.role = e, this.files = x, this.content = o, this.role = e, this.sessionId = v, this.files = x, this.messageTime = lt(/* @__PURE__ */ new Date()).format("YYYY-MM-DD HH:mm:ss"), this.isWaiting = !1, this.messageId = at(), this.isContext = !1, this.actions = [], this.reference = [], this.isSensitive = !1, this.isSuspend = !1, this.comment = {
72
+ isAgree: 0
73
+ };
74
+ }
75
+ }
76
+ const st = 10, Zn = (L) => {
77
+ var Be, qe, Ye, Ke, We, Qe, _e, Ge, Xe, Ze, Je;
78
+ const {
79
+ application: o,
80
+ docViewerUrl: v = "",
81
+ currentSession: e,
82
+ onCreateSession: x,
83
+ embeddingService: ce,
84
+ setCurrentSession: k,
85
+ networkStatus: H,
86
+ setNetworkStatus: I
87
+ } = L, [h, C] = m([]), [dt, S] = m(), [fe, xe] = m(), P = B(null), {
88
+ service: F,
89
+ agentClient: N,
90
+ depId: ct,
91
+ footer: ft,
92
+ transform: f,
93
+ defaultInput: ge,
94
+ onMessage: ee,
95
+ onHistoryLoad: Ie,
96
+ beforeMessageSend: j,
97
+ bodyStyle: gt,
98
+ disabled: M,
99
+ features: a,
100
+ popupContainer: g,
101
+ icon: ut
102
+ } = Xt(on), [Le, ue] = m(!1), y = B(h), Ce = B(void 0), [ht, mt] = m(0), [X, q] = m(), [Y, te] = m(""), [Ne, he] = m(!1), me = B(null), [Fe, yt] = m([]), [Te, K] = m(!1), [Ee, pt] = m(!1), [vt, bt] = m(""), [kt, W] = m(), [ne, ie] = m({}), oe = B(null), Pe = B(null), ye = B(null), [Re, wt] = m(!1), [xt, It] = m([]), [Lt, se] = m(!0), [Ct, Nt] = m(!0), [De, O] = m(!1), [pe, V] = m(!1), [He, Ft] = m(!1), [E, re] = m(typeof (a == null ? void 0 : a.promptVariables) == "object" ? a.promptVariables.default || [] : []), [Tt, Et] = m(typeof (a == null ? void 0 : a.knowledges) == "object" && a.knowledges.default || void 0), [Me, U] = m(!1), [Oe, Z] = m(!1), [Pt, Q] = m(typeof (a == null ? void 0 : a.connectNetwork) == "object" && typeof (a == null ? void 0 : a.connectNetwork.default) == "boolean" ? a.connectNetwork.default : !1), [Ue, le] = m(!1);
103
+ T(() => {
104
+ var r, i;
105
+ e && (y.current = []), C([]);
106
+ const t = P.current;
107
+ if (t && t.scrollTo({
108
+ top: 0
109
+ }), !((r = e == null ? void 0 : e.data) != null && r.id))
110
+ return;
111
+ if (V(!1), O(!1), (i = e.messages) != null && i.length) {
112
+ const s = [...e.messages.filter((d) => d == null ? void 0 : d.messageId)].reverse();
113
+ y.current = [...s], C([...s]);
114
+ }
115
+ const n = (l) => {
116
+ var s;
117
+ (s = e == null ? void 0 : e.data) != null && s.id && (y.current = [...l].reverse(), C([...l].reverse()), !l || l.length < 10 ? Z(!1) : Z(!0), Ie && Ie({
118
+ applicationId: o.id,
119
+ sessionId: e.data.id,
120
+ histories: l
121
+ }));
122
+ };
123
+ return e.addEventListener("history:loaded", n), () => {
124
+ y.current = [], C([]), e == null || e.removeEventListener("history:loaded", n);
125
+ };
126
+ }, [e]), T(() => {
127
+ const t = () => {
128
+ var n;
129
+ (n = e == null ? void 0 : e.data) != null && n.id && (e.promptVariables && re(e.promptVariables.sort((r, i) => r.key.localeCompare(i.key))), e.knowledges && Et(e.knowledges), I(e.netOpen));
130
+ };
131
+ return e == null || e.addEventListener("data:updated", t), () => {
132
+ e == null || e.removeEventListener("data:updated", t);
133
+ };
134
+ }, [e]), T(() => {
135
+ var n;
136
+ if (!((n = e == null ? void 0 : e.data) != null && n.id))
137
+ return;
138
+ const t = (r) => {
139
+ console.error(r.message, r.cause, "e.case");
140
+ };
141
+ return e.addEventListener("error", t), () => {
142
+ e == null || e.removeEventListener("error", t);
143
+ };
144
+ }, [e]);
145
+ const Rt = () => {
146
+ var r;
147
+ if (!((r = e == null ? void 0 : e.data) != null && r.id) || !(o != null && o.id))
148
+ return;
149
+ const t = e.data.id, n = h[h.length - 1];
150
+ if (n && n.isContext) {
151
+ u.config({
152
+ getContainer: () => (g == null ? void 0 : g.current) || document.body
153
+ }), u.success("已开启新话题"), u.config({
154
+ getContainer: void 0
155
+ });
156
+ return;
157
+ } else
158
+ e.clear().then(() => {
159
+ const i = new J("", t, G.System);
160
+ i.isContext = !0, C([i, ...h]);
161
+ });
162
+ };
163
+ T(() => {
164
+ o != null && o.id && (F == null || F.getRecommendQues(o.id).then((t) => {
165
+ yt(t);
166
+ }));
167
+ }, [ct, o]);
168
+ const ze = (t) => z(void 0, null, function* () {
169
+ var w, p;
170
+ if (M) {
171
+ u.config({
172
+ getContainer: () => (g == null ? void 0 : g.current) || document.body
173
+ }), u.error("发送功能被禁用"), u.config({
174
+ getContainer: void 0
175
+ });
176
+ return;
177
+ }
178
+ const n = t || dt;
179
+ if (!(n != null && n.trim())) {
180
+ u.config({
181
+ getContainer: () => (g == null ? void 0 : g.current) || document.body
182
+ }), u.error("请输入你想问的"), u.config({
183
+ getContainer: void 0
184
+ });
185
+ return;
186
+ }
187
+ if (!(E == null ? void 0 : E.every((b) => !!(b != null && b.value))))
188
+ if (f != null && f.promptVariables) {
189
+ u.config({
190
+ getContainer: () => (g == null ? void 0 : g.current) || document.body
191
+ }), u.error("变量值不能为空"), u.config({
192
+ getContainer: void 0
193
+ });
194
+ return;
195
+ } else
196
+ console.error("变量值不能为空", E == null ? void 0 : E.map((b) => !!(b != null && b.value)));
197
+ if (pe) {
198
+ u.config({
199
+ getContainer: () => (g == null ? void 0 : g.current) || document.body
200
+ }), u.error("正在回复中"), u.config({
201
+ getContainer: void 0
202
+ });
203
+ return;
204
+ }
205
+ if (Le) {
206
+ u.config({
207
+ getContainer: () => (g == null ? void 0 : g.current) || document.body
208
+ }), u.error("等待初始化"), u.config({
209
+ getContainer: void 0
210
+ });
211
+ return;
212
+ }
213
+ if (!Lt) {
214
+ u.config({
215
+ getContainer: () => (g == null ? void 0 : g.current) || document.body
216
+ }), u.error("正在解析文件"), u.config({
217
+ getContainer: void 0
218
+ });
219
+ return;
220
+ }
221
+ if (Ne) {
222
+ u.config({
223
+ getContainer: () => (g == null ? void 0 : g.current) || document.body
224
+ }), u.error("正在上传图片"), u.config({
225
+ getContainer: void 0
226
+ });
227
+ return;
228
+ }
229
+ q(void 0), te("");
230
+ const i = (w = e == null ? void 0 : e.data) == null ? void 0 : w.id;
231
+ if (!i) {
232
+ x == null || x({
233
+ netOpen: H ? 1 : 2
234
+ }).then((b) => {
235
+ var R, $;
236
+ U(!0), I(!!((R = b.data) != null && R.netOpen)), Q(!!(($ = b.data) != null && $.enableNetOpen)), Dt(b).then(() => {
237
+ k == null || k(b), U(!1), xe(n);
238
+ });
239
+ });
240
+ return;
241
+ }
242
+ le(!0);
243
+ const l = Y ? `![](${Y})
244
+ ${n}` : n;
245
+ let s;
246
+ try {
247
+ j ? s = yield j == null ? void 0 : j({
248
+ applicationId: o.id,
249
+ sessionId: i,
250
+ message: {
251
+ content: l,
252
+ sessionId: i,
253
+ role: it.User,
254
+ files: ne[i]
255
+ }
256
+ }) : s = !0;
257
+ } catch (b) {
258
+ s = !1;
259
+ }
260
+ if (le(!1), s === !1)
261
+ return;
262
+ let d = n;
263
+ typeof s == "object" && (d = s.content || n), ((p = ne[i]) == null ? void 0 : p.length) > 0 ? Ht(d) : ve(d);
264
+ }), Dt = (t) => new Promise((n, r) => z(void 0, null, function* () {
265
+ const s = (t == null ? void 0 : t.promptVariables).filter((d) => d.key !== "query").map((d) => {
266
+ var p;
267
+ const w = (p = E.find((b) => b.key === d.key)) == null ? void 0 : p.value;
268
+ return d.value = w || "", d;
269
+ });
270
+ re(s.sort((d, w) => d.key.localeCompare(w.key))), yield t == null ? void 0 : t.setPromptVariables(s), n();
271
+ })), Ht = (t) => {
272
+ var s, d, w;
273
+ if (se(!1), !((s = e == null ? void 0 : e.data) != null && s.id) || !(o != null && o.id))
274
+ return;
275
+ const n = ((d = e.data) == null ? void 0 : d.id) || "", r = [];
276
+ let i = [], l = /* @__PURE__ */ new Set();
277
+ (w = ne[n]) == null || w.forEach((p) => {
278
+ l.has(p.id) || (i.push(p), l.add(p.id));
279
+ }), Promise.all(i.map((p) => F == null ? void 0 : F.patchApplicationIdKnowledgeIdFileId(o == null ? void 0 : o.id, n, p.id, {
280
+ enabled: 1
281
+ }).then((b) => {
282
+ r.push(p);
283
+ }))).then((p) => {
284
+ se(!0), ve(t, r);
285
+ }).catch((p) => {
286
+ throw Error(p);
287
+ });
288
+ };
289
+ T(() => {
290
+ if (!fe || !e)
291
+ return;
292
+ const t = fe, n = () => z(void 0, null, function* () {
293
+ le(!0);
294
+ const r = Y ? `![](${Y})
295
+ ${t}` : t;
296
+ let i;
297
+ try {
298
+ j ? i = yield j == null ? void 0 : j({
299
+ applicationId: o.id,
300
+ sessionId: e.id,
301
+ message: {
302
+ content: r,
303
+ sessionId: e.id,
304
+ role: it.User,
305
+ files: ne[e.id]
306
+ }
307
+ }) : i = !0;
308
+ } catch (l) {
309
+ i = !1;
310
+ }
311
+ le(!1), i !== !1 && (ve(t), xe(void 0));
312
+ });
313
+ return e.ready ? n() : e.addEventListener("ready", n, !0), () => {
314
+ e == null || e.removeEventListener("ready", n);
315
+ };
316
+ }, [fe, e]);
317
+ const ve = (t, n) => z(void 0, null, function* () {
318
+ var p, b;
319
+ const r = (p = e == null ? void 0 : e.data) == null ? void 0 : p.id;
320
+ if (!r)
321
+ return;
322
+ V(!0), O(!0);
323
+ const i = Y ? `![](${Y})
324
+ ${t}` : t, l = new J(i, r, G.User, n);
325
+ S(void 0), W(void 0), y.current = [l, ...h], C(y.current), o.id && ee && ee({
326
+ applicationId: o.id,
327
+ sessionId: r,
328
+ message: l
329
+ });
330
+ const s = new J("", r, G.System);
331
+ s.isWaiting = !0, y.current = [s, ...y.current], C(y.current);
332
+ const d = (n == null ? void 0 : n.map((R) => R.id)) || [], w = {
333
+ stream: !0,
334
+ referenceFirst: !1
335
+ };
336
+ if (f != null && f.promptVariables) {
337
+ const R = E == null ? void 0 : E.reduce(($, Se) => ($[Se.key] = Se.value, $), {});
338
+ w.formatValues = R, e.setPromptVariables(E);
339
+ }
340
+ if (f != null && f.knowledges) {
341
+ const R = Tt;
342
+ w.knowledges = R;
343
+ }
344
+ yield e.send({
345
+ text: i,
346
+ fileIds: d
347
+ }, w), ie({
348
+ [r]: []
349
+ }), (b = oe.current) == null || b.update();
350
+ });
351
+ T(() => {
352
+ var r;
353
+ const t = (r = e == null ? void 0 : e.data) == null ? void 0 : r.id;
354
+ if (!t)
355
+ return;
356
+ const n = (i) => {
357
+ if (!i.sessionId || i.sessionId && i.sessionId !== Ce.current || i.role === G.User)
358
+ return;
359
+ if (i.index === -1 && i.code !== 200 && i.code !== 11915 && (O(!1), V(!1), y.current = y.current.filter((d) => !d.isWaiting), C([...y.current]), y.current = [...y.current], i.content))
360
+ return nn.error({
361
+ message: i.content
362
+ });
363
+ const l = i.actions || [], s = new J(i.content, t, G.Robot);
364
+ s.messageId = i.messageId, s.reasoningContent = i.reasoningContent, s.searchReference = i.searchReference, s.thinkingSecs = i.thinkingSecs, s.thinkingStatus = i.thinkingStatus, s.actions = l, s.isLoading = !0, s.searchingStatus = i.searchingStatus, y.current = y.current.filter((d) => !d.isWaiting).filter((d) => !d.isReplying), i.index === void 0 && C([s, ...y.current]), i.code === 11915 && (O(!1), V(!1), s.isLoading = !1, s.content = "请您换个问题问我吧~", s.isSensitive = !0, C([s, ...y.current])), i.index === -2 && (O(!1), V(!1), s.isLoading = !1, s.content = "回答已中止~", s.isSuspend = !0, C([s, ...y.current])), i.index === -1 && (O(!1), V(!1), s.isLoading = !1, s.reference = i.reference, C([s, ...y.current]), o.id && ee && ee({
365
+ applicationId: o.id,
366
+ sessionId: t,
367
+ message: s
368
+ })), i.index === -3 && (O(!1), V(!1), s.isLoading = !1, s.reference = i.reference, s.relatedQuesion = i.relatedQuesion, C([s, ...y.current]));
369
+ };
370
+ return e.ready ? e.addEventListener("message:updated", n) : e.addEventListener("ready", () => {
371
+ e.addEventListener("message:updated", n);
372
+ }), () => {
373
+ e == null || e.removeEventListener("message:updated", n);
374
+ };
375
+ }, [e]), T(() => {
376
+ if (!e) {
377
+ ue(!1);
378
+ return;
379
+ }
380
+ const t = (n) => {
381
+ ue(n);
382
+ };
383
+ return ue(e.frozen), e.addEventListener("frozen", t), () => {
384
+ e == null || e.removeEventListener("frozen", t);
385
+ };
386
+ }, [e]), T(() => {
387
+ if (!N)
388
+ return;
389
+ const t = N.questionContextMaxLength || 4e3;
390
+ mt(t);
391
+ }, [N, F]), T(() => {
392
+ ge && W(ge.text);
393
+ }, [ge]);
394
+ const Mt = (t) => {
395
+ const n = t.size;
396
+ return n <= 0 ? (u.config({
397
+ getContainer: () => (g == null ? void 0 : g.current) || document.body
398
+ }), u.error("该文件为空,请重新上传"), u.config({
399
+ getContainer: void 0
400
+ }), !1) : n > 20 * sn ? (u.config({
401
+ getContainer: () => (g == null ? void 0 : g.current) || document.body
402
+ }), u.error("图片须小于20M"), u.config({
403
+ getContainer: void 0
404
+ }), !1) : (q(t), !1);
405
+ }, Ot = (t) => z(void 0, null, function* () {
406
+ var n;
407
+ return q(t), (n = e == null ? void 0 : e.data) != null && n.id ? je(e, t) : new Promise((r) => {
408
+ U(!0), x == null || x({
409
+ netOpen: H ? 1 : 2
410
+ }).then((i) => {
411
+ var l, s;
412
+ k == null || k(i), U(!1), I(!!((l = i.data) != null && l.netOpen)), Q(!!((s = i.data) != null && s.enableNetOpen)), r(je(i, t));
413
+ });
414
+ });
415
+ }), je = (t, n) => {
416
+ const r = ln(n.name);
417
+ return new Promise((i) => {
418
+ var s;
419
+ const l = {
420
+ files: [`${at()}.${r}`],
421
+ isv: "minio",
422
+ knowledgeId: ((s = t.data) == null ? void 0 : s.id) || "",
423
+ type: 1
424
+ };
425
+ he(!0), F == null || F.postTicket(l).then((d) => {
426
+ F.uploadMinioFile(d.minio, n).then(() => {
427
+ var R, $;
428
+ const w = (R = d.minio.endpoints) == null ? void 0 : R[0], p = d.minio.bucket, b = ($ = d.minio.fileKeys) == null ? void 0 : $[0];
429
+ i(`${location.protocol}//${w}/${p}/${b}`);
430
+ }).catch(() => {
431
+ te(""), q(void 0);
432
+ }).finally(() => {
433
+ he(!1);
434
+ });
435
+ }).catch(() => {
436
+ te(""), q(void 0), he(!1);
437
+ });
438
+ });
439
+ };
440
+ T(() => {
441
+ const t = P.current;
442
+ t && !He && t.scrollTo({
443
+ top: t.scrollHeight
444
+ });
445
+ }, [h]);
446
+ const Ve = (t, n) => new Promise((r) => {
447
+ if (!n.file.url || !(o != null && o.id))
448
+ return r();
449
+ const i = nt(tt({}, n.file), {
450
+ type: 1
451
+ });
452
+ F == null || F.postApplicationIdSessionKnowledgeSessionFile(o == null ? void 0 : o.id, t, i).finally(() => {
453
+ var l;
454
+ (l = oe.current) == null || l.update().finally(r);
455
+ });
456
+ }), Ut = () => {
457
+ var t;
458
+ (t = e == null ? void 0 : e.data) != null && t.id && (O(!1), e.suspend());
459
+ }, zt = (t) => {
460
+ const n = P.current;
461
+ n && setTimeout(() => {
462
+ n.scrollTo({
463
+ top: n.scrollHeight,
464
+ behavior: t == null ? void 0 : t.behavior
465
+ });
466
+ }, t == null ? void 0 : t.ms);
467
+ }, jt = () => {
468
+ if (!P.current)
469
+ return;
470
+ const t = P.current.scrollTop <= -80;
471
+ Ft(t);
472
+ }, Vt = we((t) => {
473
+ var n, r;
474
+ (n = me.current) == null || n.update(t), (r = me.current) == null || r.focus();
475
+ }), $t = we((t) => {
476
+ ze(t);
477
+ }), At = we(() => {
478
+ var n;
479
+ if (!((n = e == null ? void 0 : e.data) != null && n.id))
480
+ return;
481
+ y.current = [...h.slice(1, h.length)], C(y.current);
482
+ const t = new J("", e.data.id, G.System);
483
+ t.isWaiting = !0, y.current = [t, ...y.current], C(y.current), V(!0), O(!0), e.answerAgain();
484
+ });
485
+ T(() => {
486
+ var t, n;
487
+ Ce.current = (t = e == null ? void 0 : e.data) == null ? void 0 : t.id, !Me && ((n = ye.current) == null || n.clear());
488
+ }, [e]);
489
+ const Bt = () => {
490
+ var r;
491
+ if (!((r = e == null ? void 0 : e.data) != null && r.id))
492
+ return;
493
+ const n = h[h.length - 1].messageTime;
494
+ e.fetchMessages({
495
+ endTime: n,
496
+ pageSize: st
497
+ }).then((i) => {
498
+ const l = i || [];
499
+ if (!l || !(l != null && l.length)) {
500
+ Z(!1);
501
+ return;
502
+ }
503
+ l.length < 10 ? Z(!1) : Z(!0), C([...h, ...l.reverse()]);
504
+ });
505
+ }, qt = (t) => z(void 0, null, function* () {
506
+ var n, r;
507
+ if (!((n = e == null ? void 0 : e.data) != null && n.id))
508
+ I(t);
509
+ else {
510
+ if (yield e.setNetOpen(t), !((r = e.data) != null && r.id))
511
+ return;
512
+ I(t);
513
+ }
514
+ }), be = () => z(void 0, null, function* () {
515
+ e ? e.fetchData().then((t) => {
516
+ var n;
517
+ (n = e == null ? void 0 : e.data) != null && n.id && (I(t.netOpen), Q(t.enableNetOpen));
518
+ }) : (I(!1), Q(o.arrange[0].enableNetOpen));
519
+ });
520
+ T(() => {
521
+ be();
522
+ }, [e]), T(() => {
523
+ var t, n;
524
+ if (P.current) {
525
+ const r = document.getElementById("chat-main"), i = (t = P.current) == null ? void 0 : t.querySelector(".infinite-scroll-component__outerdiv"), l = (n = P.current) == null ? void 0 : n.querySelector(".infinite-scroll-component");
526
+ if (!i || !l || !r)
527
+ return;
528
+ const s = r.offsetHeight;
529
+ if (l.offsetHeight <= s) {
530
+ if (i.style.height === "100%")
531
+ return;
532
+ i.style.height = "100%";
533
+ } else {
534
+ if (i.style.height === "auto")
535
+ return;
536
+ i.style.height = "auto";
537
+ }
538
+ }
539
+ }, [h]), T(() => {
540
+ if (e)
541
+ return;
542
+ const t = () => {
543
+ const i = ((N == null ? void 0 : N.promptVariables) || []).filter(
544
+ (l) => l.key !== "query" && l.status === 1
545
+ // 只要求输入被引用的变量
546
+ ).map((l, s) => {
547
+ var w, p;
548
+ let d = "";
549
+ return typeof (a == null ? void 0 : a.promptVariables) == "object" && (d = ((p = (w = a.promptVariables.default) == null ? void 0 : w.find((b) => b.key === l.key)) == null ? void 0 : p.value) || ""), {
550
+ id: s + "",
551
+ key: l.key,
552
+ name: l.name,
553
+ value: d
554
+ };
555
+ });
556
+ re([...i].sort((l, s) => l.key.localeCompare(s.key)));
557
+ };
558
+ return N != null && N.ready ? t() : N == null || N.addEventListener("ready", t), () => {
559
+ N == null || N.removeEventListener("ready", t);
560
+ };
561
+ }, [e, N, a == null ? void 0 : a.promptVariables]);
562
+ const $e = () => x == null ? void 0 : x({
563
+ netOpen: H ? 1 : 2
564
+ }).then((t) => {
565
+ var n, r;
566
+ return k == null || k(t), U(!1), I(!!((n = t.data) != null && n.netOpen)), Q(!!((r = t.data) != null && r.enableNetOpen)), t;
567
+ }), Ae = Zt(() => {
568
+ var t;
569
+ return o.arrange && ((t = o.arrange[0]) != null && t.openingContent) ? /* @__PURE__ */ c(rt, {
570
+ application: o,
571
+ history: {
572
+ role: 1,
573
+ content: o.arrange[0].openingContent,
574
+ code: 200,
575
+ messageId: "opening-message",
576
+ sessionId: "",
577
+ reference: [],
578
+ searchReference: [],
579
+ messageTime: lt(Date.now()).format("YYYY-MM-DD HH:mm:ss"),
580
+ actions: [],
581
+ isLoading: !1
582
+ },
583
+ actions: !!h.length
584
+ }) : null;
585
+ }, [o == null ? void 0 : o.arrange, h]);
586
+ return /* @__PURE__ */ A("div", {
587
+ className: "agent-chat",
588
+ children: [(f == null ? void 0 : f.promptVariables) && /* @__PURE__ */ c(yn, {
589
+ ref: Pe,
590
+ appId: o.id,
591
+ currentSession: e,
592
+ promptVariables: E,
593
+ setPromptVariables: re,
594
+ setCurrentSession: k
595
+ }), /* @__PURE__ */ A("div", {
596
+ className: "chat-main",
597
+ id: "chat-main",
598
+ style: gt,
599
+ children: [/* @__PURE__ */ c("div", {
600
+ className: "chat-main-wrapper",
601
+ id: "scrollableDiv",
602
+ style: {
603
+ height: "100%",
604
+ overflowY: "auto",
605
+ display: "flex",
606
+ flexDirection: "column-reverse"
607
+ },
608
+ ref: P,
609
+ onScroll: jt,
610
+ children: (Be = e == null ? void 0 : e.data) != null && Be.id && (h != null && h.length) ? /* @__PURE__ */ A(vn, {
611
+ dataLength: h.length,
612
+ next: Bt,
613
+ style: {
614
+ display: "flex",
615
+ flexDirection: "column-reverse",
616
+ overflowX: "hidden"
617
+ },
618
+ inverse: !0,
619
+ endMessage: h.length > st && // 少于一页不展示这个提示
620
+ ((qe = P.current) != null && qe.scrollTop) && ((Ye = P.current) == null ? void 0 : Ye.scrollTop) < -10 ? /* @__PURE__ */ c(Jt, {
621
+ plain: !0,
622
+ children: "没有更多数据了"
623
+ }) : null,
624
+ hasMore: Oe,
625
+ loader: /* @__PURE__ */ c("div", {
626
+ style: {
627
+ height: "50px",
628
+ textAlign: "center",
629
+ overflow: "hidden"
630
+ },
631
+ children: /* @__PURE__ */ c(St, {})
632
+ }),
633
+ scrollableTarget: "scrollableDiv",
634
+ children: [h.map((t, n) => /* @__PURE__ */ c(xn, {
635
+ application: o,
636
+ currentSession: e,
637
+ history: t,
638
+ docViewerUrl: v,
639
+ isLastHistory: n === 0,
640
+ onRelatedClick: $t,
641
+ onAgainClick: At,
642
+ onEditClick: Vt
643
+ }, t.messageId + n)), !Oe && Ae]
644
+ }) : /* @__PURE__ */ A("div", {
645
+ className: "main-empty",
646
+ children: [(a == null ? void 0 : a.greeting) !== !1 && /* @__PURE__ */ c(cn, {
647
+ text: a === void 0 || a.greeting === !0 || ((Ke = a.greeting) == null ? void 0 : Ke.text) === void 0 ? ot.text : a.greeting.text,
648
+ icon: a === void 0 || a.greeting === !0 || ((We = a.greeting) == null ? void 0 : We.icon) === void 0 ? ut || ot.icon : a.greeting.icon,
649
+ children: !!Fe.length && typeof (a == null ? void 0 : a.greeting) == "object" && a.greeting.questions !== !1 && /* @__PURE__ */ c(dn, {
650
+ ref: ye,
651
+ sid: (Qe = e == null ? void 0 : e.data) == null ? void 0 : Qe.id,
652
+ isRecommendClearing: Te,
653
+ data: Fe,
654
+ onItemClick: (t) => {
655
+ var r, i, l;
656
+ if (S(t == null ? void 0 : t.question), W(t == null ? void 0 : t.question), Te)
657
+ return;
658
+ t != null && t.id && K(!0);
659
+ const n = (r = e == null ? void 0 : e.data) == null ? void 0 : r.id;
660
+ f != null && f.fileUpload ? (l = (i = oe.current) == null ? void 0 : i.clear()) == null || l.then(() => {
661
+ var s, d;
662
+ t != null && t.id && (n ? (s = Ve(n, t)) == null || s.finally(() => {
663
+ K(!1);
664
+ }) : (K(!1), U(!0), (d = $e()) == null || d.then((w) => {
665
+ var p;
666
+ (p = Ve(w.id, t)) == null || p.finally(() => {
667
+ K(!1);
668
+ });
669
+ })));
670
+ }) : n ? K(!1) : (K(!1), U(!0), $e());
671
+ }
672
+ })
673
+ }), Ae]
674
+ })
675
+ }), De && /* @__PURE__ */ c("div", {
676
+ className: "session-stop",
677
+ children: /* @__PURE__ */ c(_, {
678
+ type: "primary",
679
+ style: {
680
+ background: "white"
681
+ },
682
+ ghost: !0,
683
+ size: "small",
684
+ icon: /* @__PURE__ */ c(de, {
685
+ type: "icon-zantinghuida",
686
+ style: {
687
+ fontSize: 16
688
+ }
689
+ }),
690
+ onClick: () => Ut(),
691
+ children: "停止回答"
692
+ })
693
+ }), He && (h == null ? void 0 : h.length) > 0 && /* @__PURE__ */ c("div", {
694
+ className: "back-bottom",
695
+ children: /* @__PURE__ */ c(_, {
696
+ size: "small",
697
+ onClick: () => zt({
698
+ behavior: "smooth"
699
+ }),
700
+ type: "link",
701
+ icon: /* @__PURE__ */ c(de, {
702
+ type: "icon-yijianhuidaodibu",
703
+ style: {
704
+ fontSize: 24
705
+ }
706
+ })
707
+ })
708
+ })]
709
+ }), /* @__PURE__ */ c("div", {
710
+ className: "chat-footer",
711
+ children: /* @__PURE__ */ A("div", {
712
+ className: "chat-footer-input",
713
+ children: [X && /* @__PURE__ */ c("div", {
714
+ className: "input-files",
715
+ children: /* @__PURE__ */ c(rn, {
716
+ file: X,
717
+ actions: {
718
+ upload: Ot,
719
+ remove: () => {
720
+ q(void 0);
721
+ }
722
+ },
723
+ onUrlChange: (t) => te(t)
724
+ })
725
+ }), /* @__PURE__ */ A(ae, {
726
+ className: "footer-upload-action",
727
+ onClick: (t) => t.preventDefault(),
728
+ children: [/* @__PURE__ */ A(ae, {
729
+ children: [o.type === 2 && (f == null ? void 0 : f.imageUpload) && /* @__PURE__ */ c(en, {
730
+ disabled: !!X || M,
731
+ accept: ".jpg, .png, .jpeg,.bmp",
732
+ listType: "picture-card",
733
+ beforeUpload: Mt,
734
+ className: "footer-upload-picture",
735
+ showUploadList: !1,
736
+ children: X ? /* @__PURE__ */ c(_, {
737
+ type: "text",
738
+ className: "camera-out-btn",
739
+ style: {
740
+ width: "22px",
741
+ position: "relative",
742
+ bottom: "-2px"
743
+ },
744
+ disabled: !!X || M,
745
+ icon: /* @__PURE__ */ c(gn, {
746
+ className: "icon-tianjia",
747
+ style: {
748
+ fontSize: "22px"
749
+ }
750
+ })
751
+ }) : /* @__PURE__ */ c(tn, {
752
+ placement: "topLeft",
753
+ overlayClassName: "footer-upload-tooltip",
754
+ title: /* @__PURE__ */ c("div", {
755
+ children: "支持上传.jpg .png .jpeg .bmp格式的图片数据,最大20M,单次仅可上传1个"
756
+ }),
757
+ children: /* @__PURE__ */ c(_, {
758
+ type: "text",
759
+ className: "camera-out-btn",
760
+ style: {
761
+ width: "22px",
762
+ position: "relative",
763
+ bottom: "-2px"
764
+ },
765
+ icon: /* @__PURE__ */ c(de, {
766
+ type: "icon-Vector",
767
+ className: "icon-tianjia",
768
+ style: {
769
+ fontSize: "22px"
770
+ }
771
+ })
772
+ })
773
+ })
774
+ }), ce && (f != null && f.fileUpload) && (o != null && o.id) ? /* @__PURE__ */ c(hn, {
775
+ appId: o == null ? void 0 : o.id,
776
+ ref: oe,
777
+ isFirstSession: Me,
778
+ docViewerUrl: v,
779
+ onStatusChange: (t) => z(void 0, null, function* () {
780
+ t !== "process" ? (se(!0), be()) : se(!1);
781
+ }),
782
+ createSession: () => new Promise((t) => {
783
+ U(!0), x == null || x({
784
+ netOpen: H ? 1 : 2
785
+ }).then((n) => {
786
+ var i, l, s;
787
+ k == null || k(n), U(!1), I(!!((i = n.data) != null && i.netOpen)), Q(!!((l = n.data) != null && l.enableNetOpen));
788
+ const r = ((s = n.data) == null ? void 0 : s.id) || "";
789
+ t(r);
790
+ });
791
+ }),
792
+ sid: (_e = e == null ? void 0 : e.data) == null ? void 0 : _e.id,
793
+ disabled: pe || M,
794
+ afterFileAdd: (t, n) => {
795
+ n && ie((r) => {
796
+ const i = r[n] || [];
797
+ return {
798
+ [n]: [...i, t]
799
+ };
800
+ });
801
+ },
802
+ afterFileDelete: (t) => {
803
+ var r;
804
+ const n = (r = e == null ? void 0 : e.data) == null ? void 0 : r.id;
805
+ n && ie((i) => {
806
+ const l = i[n] || [];
807
+ return {
808
+ [n]: l.filter((s) => s.id !== t)
809
+ };
810
+ });
811
+ },
812
+ onFileListChange: (t) => {
813
+ It(t);
814
+ },
815
+ shouldContinue: Ct,
816
+ afterFilesClear: () => {
817
+ var n;
818
+ const t = (n = e == null ? void 0 : e.data) == null ? void 0 : n.id;
819
+ t && (ie({
820
+ [t]: []
821
+ }), be());
822
+ }
823
+ }) : null, (f == null ? void 0 : f.prompt) && (o == null ? void 0 : o.id) && /* @__PURE__ */ c(kn, {
824
+ appId: o.id,
825
+ list: [],
826
+ search: Ee ? vt : "",
827
+ onPromptSelect: (t) => {
828
+ W(t.context), S(t.context);
829
+ },
830
+ disabled: M
831
+ })]
832
+ }), /* @__PURE__ */ A(ae, {
833
+ children: [(f == null ? void 0 : f.connectNetwork) && o.type === 0 && ((Ge = o.arrange) == null ? void 0 : Ge.length) && !!o.arrange[0].enableNetOpen && /* @__PURE__ */ c(bn, {
834
+ sessionId: (Xe = e == null ? void 0 : e.data) == null ? void 0 : Xe.id,
835
+ netStatus: H,
836
+ enable: typeof (a == null ? void 0 : a.connectNetwork) == "object" && typeof (a == null ? void 0 : a.connectNetwork.diabled) == "boolean" ? !(a != null && a.connectNetwork.diabled) : Pt,
837
+ disabledTip: e ? void 0 : "网络访问已被禁用",
838
+ onNetStatusChange: (t) => {
839
+ qt(t);
840
+ }
841
+ }), (f == null ? void 0 : f.sessionList) && /* @__PURE__ */ c(pn, {
842
+ currentSessionId: (Ze = e == null ? void 0 : e.data) == null ? void 0 : Ze.id,
843
+ onSessionChange: (t, n) => {
844
+ W(void 0), k == null || k(n);
845
+ },
846
+ disabled: M
847
+ }), (f == null ? void 0 : f.sessionOpen) && /* @__PURE__ */ c(_, {
848
+ icon: /* @__PURE__ */ c(un, {}),
849
+ className: "add-btn",
850
+ type: "primary",
851
+ disabled: De || !e || !h.length || M,
852
+ onClick: () => {
853
+ var t, n;
854
+ k == null || k(void 0), I(!1), (t = Pe.current) == null || t.clear(), (n = ye.current) == null || n.clear();
855
+ },
856
+ children: "新会话"
857
+ })]
858
+ })]
859
+ }), /* @__PURE__ */ c("div", {
860
+ className: "footer-textarea",
861
+ children: /* @__PURE__ */ c(an, {
862
+ ref: me,
863
+ maxLength: ht,
864
+ text: kt,
865
+ networkStatus: !1,
866
+ loading: Ue,
867
+ disabled: Le || Ne || M || Ue,
868
+ onTextSend: ze,
869
+ onChange: (t, n) => {
870
+ W(t);
871
+ const r = n.getText().replace(/[\n\s]+$/, "");
872
+ S(r), bt(r), Ee || pt(!0);
873
+ },
874
+ clearAction: /* @__PURE__ */ c(ae, {
875
+ size: 0,
876
+ children: /* @__PURE__ */ c(_, {
877
+ type: "link",
878
+ disabled: pe || M,
879
+ ghost: !0,
880
+ icon: /* @__PURE__ */ c(de, {
881
+ style: {
882
+ fontSize: 22
883
+ },
884
+ type: "icon-qingchujiyi"
885
+ }),
886
+ onClick: () => Rt()
887
+ })
888
+ })
889
+ })
890
+ })]
891
+ })
892
+ }), /* @__PURE__ */ c(fn, {
893
+ tips: ft
894
+ }), Re && /* @__PURE__ */ c(mn, {
895
+ isvisible: Re,
896
+ files: xt,
897
+ sessionId: (Je = e == null ? void 0 : e.data) == null ? void 0 : Je.id,
898
+ onClose: (t) => {
899
+ wt(!1), Nt(!1);
900
+ }
901
+ })]
902
+ });
903
+ };
904
+ export {
905
+ Zn as default
906
+ };