@glodon-aiot/agent-cli-ui 3.19.0-alpha.30 → 3.19.0-beta.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (733) hide show
  1. package/dist/es/index.mjs +8211 -302
  2. package/dist/lib/index.js +16 -326
  3. package/dist/src/utils/reactDomCompat.d.ts +3 -0
  4. package/package.json +10 -13
  5. package/dist/es/AgentClientUI.mjs +0 -150
  6. package/dist/es/Dialog/AgentChat/HistoryItem/FileItem/index.mjs +0 -88
  7. package/dist/es/Dialog/AgentChat/HistoryItem/InputProgress/index.mjs +0 -38
  8. package/dist/es/Dialog/AgentChat/HistoryItem/SearchReference/index.mjs +0 -101
  9. package/dist/es/Dialog/AgentChat/HistoryItem/SessionAction/index.mjs +0 -248
  10. package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/ReferItem/index.mjs +0 -86
  11. package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs +0 -92
  12. package/dist/es/Dialog/AgentChat/HistoryItem/SessionRelated/index.mjs +0 -46
  13. package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +0 -384
  14. package/dist/es/Dialog/AgentChat/PromptSetting/index.mjs +0 -105
  15. package/dist/es/Dialog/AgentChat/Tools/ConnectToNetwork/index.mjs +0 -92
  16. package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PromptListItem.mjs +0 -89
  17. package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PublicPromptList.mjs +0 -47
  18. package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/access/empty.svg.mjs +0 -4
  19. package/dist/es/Dialog/AgentChat/Tools/PromptManager/index.mjs +0 -120
  20. package/dist/es/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.mjs +0 -48
  21. package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +0 -47
  22. package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/SessionItem.mjs +0 -135
  23. package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.mjs +0 -119
  24. package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/index.mjs +0 -44
  25. package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/ClearModal/index.mjs +0 -50
  26. package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/FileCard/index.mjs +0 -128
  27. package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.mjs +0 -374
  28. package/dist/es/Dialog/AgentChat/index.mjs +0 -1147
  29. package/dist/es/Dialog/SessionList/index.mjs +0 -401
  30. package/dist/es/Dialog/UploadingPrompt/index.mjs +0 -64
  31. package/dist/es/Dialog/index.mjs +0 -180
  32. package/dist/es/Footer/FooterWarning.mjs +0 -24
  33. package/dist/es/Footer/index.mjs +0 -17
  34. package/dist/es/QuillEditor/index.mjs +0 -278
  35. package/dist/es/ReactTextGenerationUI/components/TextSiders/index.mjs +0 -406
  36. package/dist/es/ReactTextGenerationUI/components/fetchEventSource/fetch.mjs +0 -112
  37. package/dist/es/ReactTextGenerationUI/components/fetchEventSource/parse.mjs +0 -97
  38. package/dist/es/ReactTextGenerationUI/index.mjs +0 -81
  39. package/dist/es/_virtual/_commonjsHelpers.mjs +0 -8
  40. package/dist/es/_virtual/index.mjs +0 -4
  41. package/dist/es/_virtual/index2.mjs +0 -4
  42. package/dist/es/_virtual/index3.mjs +0 -4
  43. package/dist/es/_virtual/lib.mjs +0 -4
  44. package/dist/es/_virtual/prism-core.mjs +0 -4
  45. package/dist/es/_virtual/types.mjs +0 -4
  46. package/dist/es/_virtual/ua-parser.min.mjs +0 -4
  47. package/dist/es/_virtual/utilities.mjs +0 -4
  48. package/dist/es/assets/brand.svg.mjs +0 -4
  49. package/dist/es/assets/doc-icons/doc.svg.mjs +0 -4
  50. package/dist/es/assets/doc-icons/docx.svg.mjs +0 -4
  51. package/dist/es/assets/doc-icons/pdf.svg.mjs +0 -4
  52. package/dist/es/assets/icon.svg.mjs +0 -4
  53. package/dist/es/assets/think.svg.mjs +0 -4
  54. package/dist/es/components/FilePreview/index.mjs +0 -83
  55. package/dist/es/components/Greeting/index.mjs +0 -30
  56. package/dist/es/components/Iconfont/index.mjs +0 -12
  57. package/dist/es/components/JsonDisplay/index.mjs +0 -15
  58. package/dist/es/components/KnowledgeList/KnowledgeSelect/index.mjs +0 -67
  59. package/dist/es/components/KnowledgeList/index.mjs +0 -79
  60. package/dist/es/components/Recommend/RecommendItem.mjs +0 -97
  61. package/dist/es/components/Recommend/index.mjs +0 -76
  62. package/dist/es/components/Recommend/tip.svg.mjs +0 -4
  63. package/dist/es/components/Sider/index.mjs +0 -24
  64. package/dist/es/components/WebLink/index.mjs +0 -26
  65. package/dist/es/constant.mjs +0 -124
  66. package/dist/es/context/SessionContext.mjs +0 -26
  67. package/dist/es/context.mjs +0 -7
  68. package/dist/es/hooks/useSessionState.mjs +0 -6
  69. package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +0 -9
  70. package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +0 -8
  71. package/dist/es/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +0 -12
  72. package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +0 -13
  73. package/dist/es/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +0 -7
  74. package/dist/es/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +0 -7
  75. package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +0 -15
  76. package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +0 -15
  77. package/dist/es/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +0 -10
  78. package/dist/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +0 -16
  79. package/dist/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +0 -9
  80. package/dist/es/node_modules/@babel/runtime/helpers/esm/typeof.mjs +0 -11
  81. package/dist/es/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +0 -12
  82. package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +0 -201
  83. package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +0 -1087
  84. package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +0 -104
  85. package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +0 -568
  86. package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +0 -158
  87. package/dist/es/node_modules/@ungap/structured-clone/esm/deserialize.mjs +0 -70
  88. package/dist/es/node_modules/@ungap/structured-clone/esm/index.mjs +0 -11
  89. package/dist/es/node_modules/@ungap/structured-clone/esm/serialize.mjs +0 -124
  90. package/dist/es/node_modules/@ungap/structured-clone/esm/types.mjs +0 -13
  91. package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +0 -847
  92. package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +0 -35
  93. package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +0 -226
  94. package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +0 -33
  95. package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +0 -20
  96. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +0 -76
  97. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +0 -13
  98. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +0 -34
  99. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +0 -178
  100. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +0 -83
  101. package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +0 -4
  102. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +0 -84
  103. package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +0 -4
  104. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +0 -9
  105. package/dist/es/node_modules/antd-mobile/es/global/index.mjs +0 -3
  106. package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +0 -141
  107. package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +0 -9
  108. package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +0 -7
  109. package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +0 -4
  110. package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +0 -9
  111. package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +0 -6
  112. package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +0 -22
  113. package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +0 -11
  114. package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +0 -12
  115. package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +0 -47
  116. package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +0 -12
  117. package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +0 -13
  118. package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +0 -52
  119. package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +0 -11
  120. package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +0 -10
  121. package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +0 -15
  122. package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +0 -6
  123. package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +0 -8
  124. package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +0 -54
  125. package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +0 -32
  126. package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +0 -11
  127. package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +0 -19
  128. package/dist/es/node_modules/ccount/index.mjs +0 -12
  129. package/dist/es/node_modules/character-reference-invalid/index.json.mjs +0 -33
  130. package/dist/es/node_modules/comma-separated-tokens/index.mjs +0 -18
  131. package/dist/es/node_modules/decode-named-character-reference/index.dom.mjs +0 -14
  132. package/dist/es/node_modules/devlop/lib/default.mjs +0 -8
  133. package/dist/es/node_modules/estree-util-is-identifier-name/lib/index.mjs +0 -7
  134. package/dist/es/node_modules/extend/index.mjs +0 -46
  135. package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +0 -93
  136. package/dist/es/node_modules/hast-util-from-dom/node_modules/web-namespaces/index.mjs +0 -11
  137. package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +0 -16
  138. package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +0 -61
  139. package/dist/es/node_modules/hast-util-parse-selector/index.mjs +0 -14
  140. package/dist/es/node_modules/hast-util-to-jsx-runtime/lib/index.mjs +0 -298
  141. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/index.mjs +0 -12
  142. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/aria.mjs +0 -61
  143. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/find.mjs +0 -33
  144. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/hast-to-react.mjs +0 -22
  145. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/html.mjs +0 -368
  146. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/normalize.mjs +0 -6
  147. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/svg.mjs +0 -566
  148. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
  149. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
  150. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/create.mjs +0 -14
  151. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/defined-info.mjs +0 -36
  152. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/info.mjs +0 -28
  153. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/merge.mjs +0 -10
  154. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/schema.mjs +0 -21
  155. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/types.mjs +0 -15
  156. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xlink.mjs +0 -19
  157. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xml.mjs +0 -15
  158. package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xmlns.mjs +0 -16
  159. package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +0 -223
  160. package/dist/es/node_modules/hast-util-whitespace/lib/index.mjs +0 -10
  161. package/dist/es/node_modules/hastscript/lib/create-h.mjs +0 -126
  162. package/dist/es/node_modules/hastscript/lib/index.mjs +0 -8
  163. package/dist/es/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +0 -4
  164. package/dist/es/node_modules/hastscript/node_modules/hast-util-parse-selector/lib/index.mjs +0 -20
  165. package/dist/es/node_modules/hastscript/node_modules/property-information/index.mjs +0 -12
  166. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/aria.mjs +0 -61
  167. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/find.mjs +0 -33
  168. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/html.mjs +0 -368
  169. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/normalize.mjs +0 -6
  170. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/svg.mjs +0 -566
  171. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
  172. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
  173. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/create.mjs +0 -14
  174. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/defined-info.mjs +0 -36
  175. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/info.mjs +0 -28
  176. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/merge.mjs +0 -10
  177. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/schema.mjs +0 -21
  178. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/types.mjs +0 -15
  179. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xlink.mjs +0 -19
  180. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xml.mjs +0 -15
  181. package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xmlns.mjs +0 -16
  182. package/dist/es/node_modules/html-url-attributes/lib/index.mjs +0 -16
  183. package/dist/es/node_modules/is-alphabetical/index.mjs +0 -8
  184. package/dist/es/node_modules/is-alphanumerical/index.mjs +0 -9
  185. package/dist/es/node_modules/is-decimal/index.mjs +0 -8
  186. package/dist/es/node_modules/is-hexadecimal/index.mjs +0 -8
  187. package/dist/es/node_modules/katex/dist/katex.mjs +0 -11700
  188. package/dist/es/node_modules/longest-streak/index.mjs +0 -12
  189. package/dist/es/node_modules/markdown-table/index.mjs +0 -70
  190. package/dist/es/node_modules/mdast-util-find-and-replace/lib/index.mjs +0 -72
  191. package/dist/es/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.mjs +0 -8
  192. package/dist/es/node_modules/mdast-util-from-markdown/lib/index.mjs +0 -584
  193. package/dist/es/node_modules/mdast-util-gfm/lib/index.mjs +0 -17
  194. package/dist/es/node_modules/mdast-util-gfm-autolink-literal/lib/index.mjs +0 -136
  195. package/dist/es/node_modules/mdast-util-gfm-footnote/lib/index.mjs +0 -100
  196. package/dist/es/node_modules/mdast-util-gfm-strikethrough/lib/index.mjs +0 -61
  197. package/dist/es/node_modules/mdast-util-gfm-table/lib/index.mjs +0 -170
  198. package/dist/es/node_modules/mdast-util-gfm-task-list-item/lib/index.mjs +0 -72
  199. package/dist/es/node_modules/mdast-util-math/lib/index.mjs +0 -170
  200. package/dist/es/node_modules/mdast-util-phrasing/lib/index.mjs +0 -30
  201. package/dist/es/node_modules/mdast-util-to-hast/lib/footer.mjs +0 -123
  202. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/blockquote.mjs +0 -12
  203. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/break.mjs +0 -16
  204. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/code.mjs +0 -25
  205. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/delete.mjs +0 -12
  206. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/emphasis.mjs +0 -12
  207. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.mjs +0 -31
  208. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/heading.mjs +0 -12
  209. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/html.mjs +0 -12
  210. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image-reference.mjs +0 -22
  211. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image.mjs +0 -17
  212. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/index.mjs +0 -58
  213. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/inline-code.mjs +0 -17
  214. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link-reference.mjs +0 -21
  215. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link.mjs +0 -17
  216. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list-item.mjs +0 -65
  217. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list.mjs +0 -21
  218. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/paragraph.mjs +0 -12
  219. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/root.mjs +0 -10
  220. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/strong.mjs +0 -12
  221. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-cell.mjs +0 -13
  222. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-row.mjs +0 -26
  223. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table.mjs +0 -35
  224. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/text.mjs +0 -11
  225. package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.mjs +0 -12
  226. package/dist/es/node_modules/mdast-util-to-hast/lib/index.mjs +0 -19
  227. package/dist/es/node_modules/mdast-util-to-hast/lib/revert.mjs +0 -22
  228. package/dist/es/node_modules/mdast-util-to-hast/lib/state.mjs +0 -145
  229. package/dist/es/node_modules/mdast-util-to-hast/node_modules/unist-util-visit/lib/index.mjs +0 -16
  230. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/blockquote.mjs +0 -12
  231. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/break.mjs +0 -13
  232. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/code.mjs +0 -49
  233. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/definition.mjs +0 -37
  234. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/emphasis.mjs +0 -37
  235. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/heading.mjs +0 -44
  236. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/html.mjs +0 -10
  237. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image-reference.mjs +0 -36
  238. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image.mjs +0 -40
  239. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/index.mjs +0 -44
  240. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/inline-code.mjs +0 -22
  241. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link-reference.mjs +0 -36
  242. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link.mjs +0 -50
  243. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list-item.mjs +0 -19
  244. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list.mjs +0 -35
  245. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/paragraph.mjs +0 -7
  246. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/root.mjs +0 -9
  247. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/strong.mjs +0 -37
  248. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/text.mjs +0 -6
  249. package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.mjs +0 -9
  250. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.mjs +0 -9
  251. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.mjs +0 -14
  252. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet.mjs +0 -9
  253. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.mjs +0 -9
  254. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-fence.mjs +0 -9
  255. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.mjs +0 -9
  256. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-quote.mjs +0 -9
  257. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.mjs +0 -9
  258. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule.mjs +0 -9
  259. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-strong.mjs +0 -9
  260. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.mjs +0 -6
  261. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-info.mjs +0 -67
  262. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.mjs +0 -9
  263. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.mjs +0 -13
  264. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.mjs +0 -15
  265. package/dist/es/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.mjs +0 -15
  266. package/dist/es/node_modules/mdast-util-to-markdown/node_modules/unist-util-visit/lib/index.mjs +0 -16
  267. package/dist/es/node_modules/mdast-util-to-string/lib/index.mjs +0 -29
  268. package/dist/es/node_modules/micromark/lib/constructs.mjs +0 -85
  269. package/dist/es/node_modules/micromark/lib/create-tokenizer.mjs +0 -225
  270. package/dist/es/node_modules/micromark/lib/initialize/content.mjs +0 -37
  271. package/dist/es/node_modules/micromark/lib/initialize/document.mjs +0 -133
  272. package/dist/es/node_modules/micromark/lib/initialize/flow.mjs +0 -33
  273. package/dist/es/node_modules/micromark/lib/initialize/text.mjs +0 -103
  274. package/dist/es/node_modules/micromark/lib/parse.mjs +0 -32
  275. package/dist/es/node_modules/micromark/lib/postprocess.mjs +0 -9
  276. package/dist/es/node_modules/micromark/lib/preprocess.mjs +0 -40
  277. package/dist/es/node_modules/micromark-core-commonmark/lib/attention.mjs +0 -74
  278. package/dist/es/node_modules/micromark-core-commonmark/lib/autolink.mjs +0 -43
  279. package/dist/es/node_modules/micromark-core-commonmark/lib/blank-line.mjs +0 -18
  280. package/dist/es/node_modules/micromark-core-commonmark/lib/block-quote.mjs +0 -42
  281. package/dist/es/node_modules/micromark-core-commonmark/lib/character-escape.mjs +0 -17
  282. package/dist/es/node_modules/micromark-core-commonmark/lib/character-reference.mjs +0 -30
  283. package/dist/es/node_modules/micromark-core-commonmark/lib/code-fenced.mjs +0 -94
  284. package/dist/es/node_modules/micromark-core-commonmark/lib/code-indented.mjs +0 -43
  285. package/dist/es/node_modules/micromark-core-commonmark/lib/code-text.mjs +0 -45
  286. package/dist/es/node_modules/micromark-core-commonmark/lib/content.mjs +0 -50
  287. package/dist/es/node_modules/micromark-core-commonmark/lib/definition.mjs +0 -80
  288. package/dist/es/node_modules/micromark-core-commonmark/lib/hard-break-escape.mjs +0 -17
  289. package/dist/es/node_modules/micromark-core-commonmark/lib/heading-atx.mjs +0 -46
  290. package/dist/es/node_modules/micromark-core-commonmark/lib/html-flow.mjs +0 -144
  291. package/dist/es/node_modules/micromark-core-commonmark/lib/html-text.mjs +0 -102
  292. package/dist/es/node_modules/micromark-core-commonmark/lib/label-end.mjs +0 -152
  293. package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-image.mjs +0 -22
  294. package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-link.mjs +0 -19
  295. package/dist/es/node_modules/micromark-core-commonmark/lib/line-ending.mjs +0 -14
  296. package/dist/es/node_modules/micromark-core-commonmark/lib/list.mjs +0 -90
  297. package/dist/es/node_modules/micromark-core-commonmark/lib/setext-underline.mjs +0 -62
  298. package/dist/es/node_modules/micromark-core-commonmark/lib/thematic-break.mjs +0 -25
  299. package/dist/es/node_modules/micromark-extension-gfm/index.mjs +0 -12
  300. package/dist/es/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.mjs +0 -193
  301. package/dist/es/node_modules/micromark-extension-gfm-footnote/lib/syntax.mjs +0 -192
  302. package/dist/es/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.mjs +0 -68
  303. package/dist/es/node_modules/micromark-extension-gfm-table/lib/edit-map.mjs +0 -71
  304. package/dist/es/node_modules/micromark-extension-gfm-table/lib/infer.mjs +0 -24
  305. package/dist/es/node_modules/micromark-extension-gfm-table/lib/syntax.mjs +0 -147
  306. package/dist/es/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.mjs +0 -45
  307. package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +0 -76
  308. package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +0 -48
  309. package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +0 -15
  310. package/dist/es/node_modules/micromark-factory-destination/index.mjs +0 -31
  311. package/dist/es/node_modules/micromark-factory-label/index.mjs +0 -28
  312. package/dist/es/node_modules/micromark-factory-space/index.mjs +0 -15
  313. package/dist/es/node_modules/micromark-factory-title/index.mjs +0 -26
  314. package/dist/es/node_modules/micromark-factory-whitespace/index.mjs +0 -12
  315. package/dist/es/node_modules/micromark-util-character/index.mjs +0 -39
  316. package/dist/es/node_modules/micromark-util-chunked/index.mjs +0 -16
  317. package/dist/es/node_modules/micromark-util-classify-character/index.mjs +0 -10
  318. package/dist/es/node_modules/micromark-util-combine-extensions/index.mjs +0 -36
  319. package/dist/es/node_modules/micromark-util-decode-numeric-character-reference/index.mjs +0 -16
  320. package/dist/es/node_modules/micromark-util-decode-string/index.mjs +0 -18
  321. package/dist/es/node_modules/micromark-util-html-tag-name/index.mjs +0 -5
  322. package/dist/es/node_modules/micromark-util-normalize-identifier/index.mjs +0 -6
  323. package/dist/es/node_modules/micromark-util-resolve-all/index.mjs +0 -12
  324. package/dist/es/node_modules/micromark-util-sanitize-uri/index.mjs +0 -23
  325. package/dist/es/node_modules/micromark-util-subtokenize/index.mjs +0 -65
  326. package/dist/es/node_modules/micromark-util-subtokenize/lib/splice-buffer.mjs +0 -175
  327. package/dist/es/node_modules/moment/dist/moment.mjs +0 -2301
  328. package/dist/es/node_modules/parse-entities/decode-entity.browser.mjs +0 -8
  329. package/dist/es/node_modules/parse-entities/index.mjs +0 -83
  330. package/dist/es/node_modules/parse-entities/node_modules/character-entities-legacy/index.json.mjs +0 -217
  331. package/dist/es/node_modules/property-information/find.mjs +0 -25
  332. package/dist/es/node_modules/property-information/html.mjs +0 -10
  333. package/dist/es/node_modules/property-information/lib/aria.mjs +0 -63
  334. package/dist/es/node_modules/property-information/lib/html.mjs +0 -354
  335. package/dist/es/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -8
  336. package/dist/es/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -7
  337. package/dist/es/node_modules/property-information/lib/util/create.mjs +0 -13
  338. package/dist/es/node_modules/property-information/lib/util/defined-info.mjs +0 -18
  339. package/dist/es/node_modules/property-information/lib/util/info.mjs +0 -19
  340. package/dist/es/node_modules/property-information/lib/util/merge.mjs +0 -11
  341. package/dist/es/node_modules/property-information/lib/util/schema.mjs +0 -10
  342. package/dist/es/node_modules/property-information/lib/util/types.mjs +0 -15
  343. package/dist/es/node_modules/property-information/lib/xlink.mjs +0 -20
  344. package/dist/es/node_modules/property-information/lib/xml.mjs +0 -16
  345. package/dist/es/node_modules/property-information/lib/xmlns.mjs +0 -16
  346. package/dist/es/node_modules/property-information/normalize.mjs +0 -7
  347. package/dist/es/node_modules/react-device-detect/dist/lib.mjs +0 -723
  348. package/dist/es/node_modules/react-markdown/lib/index.mjs +0 -153
  349. package/dist/es/node_modules/react-markdown/node_modules/remark-parse/lib/index.mjs +0 -29
  350. package/dist/es/node_modules/react-markdown/node_modules/unist-util-visit/lib/index.mjs +0 -16
  351. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +0 -7
  352. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +0 -101
  353. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +0 -283
  354. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +0 -4
  355. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +0 -10
  356. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +0 -195
  357. package/dist/es/node_modules/refractor/core.mjs +0 -111
  358. package/dist/es/node_modules/refractor/index.mjs +0 -553
  359. package/dist/es/node_modules/refractor/lang/abap.mjs +0 -60
  360. package/dist/es/node_modules/refractor/lang/abnf.mjs +0 -63
  361. package/dist/es/node_modules/refractor/lang/actionscript.mjs +0 -22
  362. package/dist/es/node_modules/refractor/lang/ada.mjs +0 -28
  363. package/dist/es/node_modules/refractor/lang/agda.mjs +0 -35
  364. package/dist/es/node_modules/refractor/lang/al.mjs +0 -35
  365. package/dist/es/node_modules/refractor/lang/antlr4.mjs +0 -72
  366. package/dist/es/node_modules/refractor/lang/apacheconf.mjs +0 -59
  367. package/dist/es/node_modules/refractor/lang/apex.mjs +0 -69
  368. package/dist/es/node_modules/refractor/lang/apl.mjs +0 -44
  369. package/dist/es/node_modules/refractor/lang/applescript.mjs +0 -26
  370. package/dist/es/node_modules/refractor/lang/aql.mjs +0 -57
  371. package/dist/es/node_modules/refractor/lang/arduino.mjs +0 -20
  372. package/dist/es/node_modules/refractor/lang/arff.mjs +0 -22
  373. package/dist/es/node_modules/refractor/lang/asciidoc.mjs +0 -208
  374. package/dist/es/node_modules/refractor/lang/asm6502.mjs +0 -41
  375. package/dist/es/node_modules/refractor/lang/asmatmel.mjs +0 -53
  376. package/dist/es/node_modules/refractor/lang/aspnet.mjs +0 -53
  377. package/dist/es/node_modules/refractor/lang/autohotkey.mjs +0 -40
  378. package/dist/es/node_modules/refractor/lang/autoit.mjs +0 -43
  379. package/dist/es/node_modules/refractor/lang/avisynth.mjs +0 -167
  380. package/dist/es/node_modules/refractor/lang/avro-idl.mjs +0 -50
  381. package/dist/es/node_modules/refractor/lang/bash.mjs +0 -206
  382. package/dist/es/node_modules/refractor/lang/basic.mjs +0 -29
  383. package/dist/es/node_modules/refractor/lang/batch.mjs +0 -95
  384. package/dist/es/node_modules/refractor/lang/bbcode.mjs +0 -36
  385. package/dist/es/node_modules/refractor/lang/bicep.mjs +0 -72
  386. package/dist/es/node_modules/refractor/lang/birb.mjs +0 -32
  387. package/dist/es/node_modules/refractor/lang/bison.mjs +0 -52
  388. package/dist/es/node_modules/refractor/lang/bnf.mjs +0 -31
  389. package/dist/es/node_modules/refractor/lang/brainfuck.mjs +0 -32
  390. package/dist/es/node_modules/refractor/lang/brightscript.mjs +0 -55
  391. package/dist/es/node_modules/refractor/lang/bro.mjs +0 -39
  392. package/dist/es/node_modules/refractor/lang/bsl.mjs +0 -77
  393. package/dist/es/node_modules/refractor/lang/c.mjs +0 -78
  394. package/dist/es/node_modules/refractor/lang/cfscript.mjs +0 -44
  395. package/dist/es/node_modules/refractor/lang/chaiscript.mjs +0 -65
  396. package/dist/es/node_modules/refractor/lang/cil.mjs +0 -31
  397. package/dist/es/node_modules/refractor/lang/clike.mjs +0 -36
  398. package/dist/es/node_modules/refractor/lang/clojure.mjs +0 -42
  399. package/dist/es/node_modules/refractor/lang/cmake.mjs +0 -41
  400. package/dist/es/node_modules/refractor/lang/cobol.mjs +0 -58
  401. package/dist/es/node_modules/refractor/lang/coffeescript.mjs +0 -86
  402. package/dist/es/node_modules/refractor/lang/concurnas.mjs +0 -69
  403. package/dist/es/node_modules/refractor/lang/coq.mjs +0 -52
  404. package/dist/es/node_modules/refractor/lang/cpp.mjs +0 -98
  405. package/dist/es/node_modules/refractor/lang/crystal.mjs +0 -63
  406. package/dist/es/node_modules/refractor/lang/csharp.mjs +0 -277
  407. package/dist/es/node_modules/refractor/lang/cshtml.mjs +0 -104
  408. package/dist/es/node_modules/refractor/lang/csp.mjs +0 -61
  409. package/dist/es/node_modules/refractor/lang/css-extras.mjs +0 -109
  410. package/dist/es/node_modules/refractor/lang/css.mjs +0 -63
  411. package/dist/es/node_modules/refractor/lang/csv.mjs +0 -16
  412. package/dist/es/node_modules/refractor/lang/cypher.mjs +0 -44
  413. package/dist/es/node_modules/refractor/lang/d.mjs +0 -77
  414. package/dist/es/node_modules/refractor/lang/dart.mjs +0 -72
  415. package/dist/es/node_modules/refractor/lang/dataweave.mjs +0 -49
  416. package/dist/es/node_modules/refractor/lang/dax.mjs +0 -39
  417. package/dist/es/node_modules/refractor/lang/dhall.mjs +0 -74
  418. package/dist/es/node_modules/refractor/lang/diff.mjs +0 -54
  419. package/dist/es/node_modules/refractor/lang/django.mjs +0 -60
  420. package/dist/es/node_modules/refractor/lang/dns-zone-file.mjs +0 -40
  421. package/dist/es/node_modules/refractor/lang/docker.mjs +0 -83
  422. package/dist/es/node_modules/refractor/lang/dot.mjs +0 -75
  423. package/dist/es/node_modules/refractor/lang/ebnf.mjs +0 -32
  424. package/dist/es/node_modules/refractor/lang/editorconfig.mjs +0 -39
  425. package/dist/es/node_modules/refractor/lang/eiffel.mjs +0 -46
  426. package/dist/es/node_modules/refractor/lang/ejs.mjs +0 -33
  427. package/dist/es/node_modules/refractor/lang/elixir.mjs +0 -100
  428. package/dist/es/node_modules/refractor/lang/elm.mjs +0 -54
  429. package/dist/es/node_modules/refractor/lang/erb.mjs +0 -35
  430. package/dist/es/node_modules/refractor/lang/erlang.mjs +0 -47
  431. package/dist/es/node_modules/refractor/lang/etlua.mjs +0 -33
  432. package/dist/es/node_modules/refractor/lang/excel-formula.mjs +0 -74
  433. package/dist/es/node_modules/refractor/lang/factor.mjs +0 -569
  434. package/dist/es/node_modules/refractor/lang/false.mjs +0 -39
  435. package/dist/es/node_modules/refractor/lang/firestore-security-rules.mjs +0 -43
  436. package/dist/es/node_modules/refractor/lang/flow.mjs +0 -31
  437. package/dist/es/node_modules/refractor/lang/fortran.mjs +0 -49
  438. package/dist/es/node_modules/refractor/lang/fsharp.mjs +0 -76
  439. package/dist/es/node_modules/refractor/lang/ftl.mjs +0 -102
  440. package/dist/es/node_modules/refractor/lang/gap.mjs +0 -57
  441. package/dist/es/node_modules/refractor/lang/gcode.mjs +0 -28
  442. package/dist/es/node_modules/refractor/lang/gdscript.mjs +0 -36
  443. package/dist/es/node_modules/refractor/lang/gedcom.mjs +0 -40
  444. package/dist/es/node_modules/refractor/lang/gherkin.mjs +0 -94
  445. package/dist/es/node_modules/refractor/lang/git.mjs +0 -75
  446. package/dist/es/node_modules/refractor/lang/glsl.mjs +0 -18
  447. package/dist/es/node_modules/refractor/lang/gml.mjs +0 -19
  448. package/dist/es/node_modules/refractor/lang/gn.mjs +0 -55
  449. package/dist/es/node_modules/refractor/lang/go-module.mjs +0 -34
  450. package/dist/es/node_modules/refractor/lang/go.mjs +0 -36
  451. package/dist/es/node_modules/refractor/lang/graphql.mjs +0 -133
  452. package/dist/es/node_modules/refractor/lang/groovy.mjs +0 -58
  453. package/dist/es/node_modules/refractor/lang/haml.mjs +0 -132
  454. package/dist/es/node_modules/refractor/lang/handlebars.mjs +0 -46
  455. package/dist/es/node_modules/refractor/lang/haskell.mjs +0 -76
  456. package/dist/es/node_modules/refractor/lang/haxe.mjs +0 -84
  457. package/dist/es/node_modules/refractor/lang/hcl.mjs +0 -68
  458. package/dist/es/node_modules/refractor/lang/hlsl.mjs +0 -31
  459. package/dist/es/node_modules/refractor/lang/hoon.mjs +0 -26
  460. package/dist/es/node_modules/refractor/lang/hpkp.mjs +0 -20
  461. package/dist/es/node_modules/refractor/lang/hsts.mjs +0 -20
  462. package/dist/es/node_modules/refractor/lang/http.mjs +0 -126
  463. package/dist/es/node_modules/refractor/lang/ichigojam.mjs +0 -25
  464. package/dist/es/node_modules/refractor/lang/icon.mjs +0 -32
  465. package/dist/es/node_modules/refractor/lang/icu-message-format.mjs +0 -136
  466. package/dist/es/node_modules/refractor/lang/idris.mjs +0 -30
  467. package/dist/es/node_modules/refractor/lang/iecst.mjs +0 -38
  468. package/dist/es/node_modules/refractor/lang/ignore.mjs +0 -30
  469. package/dist/es/node_modules/refractor/lang/inform7.mjs +0 -69
  470. package/dist/es/node_modules/refractor/lang/ini.mjs +0 -52
  471. package/dist/es/node_modules/refractor/lang/io.mjs +0 -34
  472. package/dist/es/node_modules/refractor/lang/j.mjs +0 -40
  473. package/dist/es/node_modules/refractor/lang/java.mjs +0 -86
  474. package/dist/es/node_modules/refractor/lang/javadoc.mjs +0 -89
  475. package/dist/es/node_modules/refractor/lang/javadoclike.mjs +0 -60
  476. package/dist/es/node_modules/refractor/lang/javascript.mjs +0 -114
  477. package/dist/es/node_modules/refractor/lang/javastacktrace.mjs +0 -146
  478. package/dist/es/node_modules/refractor/lang/jexl.mjs +0 -26
  479. package/dist/es/node_modules/refractor/lang/jolie.mjs +0 -51
  480. package/dist/es/node_modules/refractor/lang/jq.mjs +0 -71
  481. package/dist/es/node_modules/refractor/lang/js-extras.mjs +0 -104
  482. package/dist/es/node_modules/refractor/lang/js-templates.mjs +0 -153
  483. package/dist/es/node_modules/refractor/lang/jsdoc.mjs +0 -83
  484. package/dist/es/node_modules/refractor/lang/json.mjs +0 -36
  485. package/dist/es/node_modules/refractor/lang/json5.mjs +0 -32
  486. package/dist/es/node_modules/refractor/lang/jsonp.mjs +0 -20
  487. package/dist/es/node_modules/refractor/lang/jsstacktrace.mjs +0 -53
  488. package/dist/es/node_modules/refractor/lang/jsx.mjs +0 -61
  489. package/dist/es/node_modules/refractor/lang/julia.mjs +0 -47
  490. package/dist/es/node_modules/refractor/lang/keepalived.mjs +0 -54
  491. package/dist/es/node_modules/refractor/lang/keyman.mjs +0 -55
  492. package/dist/es/node_modules/refractor/lang/kotlin.mjs +0 -81
  493. package/dist/es/node_modules/refractor/lang/kumir.mjs +0 -85
  494. package/dist/es/node_modules/refractor/lang/kusto.mjs +0 -47
  495. package/dist/es/node_modules/refractor/lang/latex.mjs +0 -68
  496. package/dist/es/node_modules/refractor/lang/latte.mjs +0 -68
  497. package/dist/es/node_modules/refractor/lang/less.mjs +0 -51
  498. package/dist/es/node_modules/refractor/lang/lilypond.mjs +0 -77
  499. package/dist/es/node_modules/refractor/lang/liquid.mjs +0 -68
  500. package/dist/es/node_modules/refractor/lang/lisp.mjs +0 -158
  501. package/dist/es/node_modules/refractor/lang/livescript.mjs +0 -119
  502. package/dist/es/node_modules/refractor/lang/llvm.mjs +0 -31
  503. package/dist/es/node_modules/refractor/lang/log.mjs +0 -103
  504. package/dist/es/node_modules/refractor/lang/lolcode.mjs +0 -57
  505. package/dist/es/node_modules/refractor/lang/lua.mjs +0 -29
  506. package/dist/es/node_modules/refractor/lang/magma.mjs +0 -42
  507. package/dist/es/node_modules/refractor/lang/makefile.mjs +0 -42
  508. package/dist/es/node_modules/refractor/lang/markdown.mjs +0 -306
  509. package/dist/es/node_modules/refractor/lang/markup-templating.mjs +0 -74
  510. package/dist/es/node_modules/refractor/lang/markup.mjs +0 -154
  511. package/dist/es/node_modules/refractor/lang/matlab.mjs +0 -25
  512. package/dist/es/node_modules/refractor/lang/maxscript.mjs +0 -70
  513. package/dist/es/node_modules/refractor/lang/mel.mjs +0 -49
  514. package/dist/es/node_modules/refractor/lang/mermaid.mjs +0 -116
  515. package/dist/es/node_modules/refractor/lang/mizar.mjs +0 -24
  516. package/dist/es/node_modules/refractor/lang/mongodb.mjs +0 -287
  517. package/dist/es/node_modules/refractor/lang/monkey.mjs +0 -40
  518. package/dist/es/node_modules/refractor/lang/moonscript.mjs +0 -63
  519. package/dist/es/node_modules/refractor/lang/n1ql.mjs +0 -34
  520. package/dist/es/node_modules/refractor/lang/n4js.mjs +0 -22
  521. package/dist/es/node_modules/refractor/lang/nand2tetris-hdl.mjs +0 -21
  522. package/dist/es/node_modules/refractor/lang/naniscript.mjs +0 -140
  523. package/dist/es/node_modules/refractor/lang/nasm.mjs +0 -31
  524. package/dist/es/node_modules/refractor/lang/neon.mjs +0 -52
  525. package/dist/es/node_modules/refractor/lang/nevod.mjs +0 -125
  526. package/dist/es/node_modules/refractor/lang/nginx.mjs +0 -61
  527. package/dist/es/node_modules/refractor/lang/nim.mjs +0 -54
  528. package/dist/es/node_modules/refractor/lang/nix.mjs +0 -45
  529. package/dist/es/node_modules/refractor/lang/nsis.mjs +0 -37
  530. package/dist/es/node_modules/refractor/lang/objectivec.mjs +0 -23
  531. package/dist/es/node_modules/refractor/lang/ocaml.mjs +0 -64
  532. package/dist/es/node_modules/refractor/lang/opencl.mjs +0 -62
  533. package/dist/es/node_modules/refractor/lang/openqasm.mjs +0 -29
  534. package/dist/es/node_modules/refractor/lang/oz.mjs +0 -37
  535. package/dist/es/node_modules/refractor/lang/parigp.mjs +0 -36
  536. package/dist/es/node_modules/refractor/lang/parser.mjs +0 -80
  537. package/dist/es/node_modules/refractor/lang/pascal.mjs +0 -66
  538. package/dist/es/node_modules/refractor/lang/pascaligo.mjs +0 -70
  539. package/dist/es/node_modules/refractor/lang/pcaxis.mjs +0 -63
  540. package/dist/es/node_modules/refractor/lang/peoplecode.mjs +0 -51
  541. package/dist/es/node_modules/refractor/lang/perl.mjs +0 -134
  542. package/dist/es/node_modules/refractor/lang/php-extras.mjs +0 -29
  543. package/dist/es/node_modules/refractor/lang/php.mjs +0 -301
  544. package/dist/es/node_modules/refractor/lang/phpdoc.mjs +0 -34
  545. package/dist/es/node_modules/refractor/lang/plsql.mjs +0 -30
  546. package/dist/es/node_modules/refractor/lang/powerquery.mjs +0 -44
  547. package/dist/es/node_modules/refractor/lang/powershell.mjs +0 -58
  548. package/dist/es/node_modules/refractor/lang/processing.mjs +0 -25
  549. package/dist/es/node_modules/refractor/lang/prolog.mjs +0 -31
  550. package/dist/es/node_modules/refractor/lang/promql.mjs +0 -74
  551. package/dist/es/node_modules/refractor/lang/properties.mjs +0 -21
  552. package/dist/es/node_modules/refractor/lang/protobuf.mjs +0 -47
  553. package/dist/es/node_modules/refractor/lang/psl.mjs +0 -47
  554. package/dist/es/node_modules/refractor/lang/pug.mjs +0 -173
  555. package/dist/es/node_modules/refractor/lang/puppet.mjs +0 -140
  556. package/dist/es/node_modules/refractor/lang/pure.mjs +0 -72
  557. package/dist/es/node_modules/refractor/lang/purebasic.mjs +0 -63
  558. package/dist/es/node_modules/refractor/lang/purescript.mjs +0 -41
  559. package/dist/es/node_modules/refractor/lang/python.mjs +0 -73
  560. package/dist/es/node_modules/refractor/lang/q.mjs +0 -62
  561. package/dist/es/node_modules/refractor/lang/qml.mjs +0 -67
  562. package/dist/es/node_modules/refractor/lang/qore.mjs +0 -32
  563. package/dist/es/node_modules/refractor/lang/qsharp.mjs +0 -93
  564. package/dist/es/node_modules/refractor/lang/r.mjs +0 -31
  565. package/dist/es/node_modules/refractor/lang/racket.mjs +0 -29
  566. package/dist/es/node_modules/refractor/lang/reason.mjs +0 -33
  567. package/dist/es/node_modules/refractor/lang/regex.mjs +0 -97
  568. package/dist/es/node_modules/refractor/lang/rego.mjs +0 -37
  569. package/dist/es/node_modules/refractor/lang/renpy.mjs +0 -30
  570. package/dist/es/node_modules/refractor/lang/rest.mjs +0 -199
  571. package/dist/es/node_modules/refractor/lang/rip.mjs +0 -41
  572. package/dist/es/node_modules/refractor/lang/roboconf.mjs +0 -39
  573. package/dist/es/node_modules/refractor/lang/robotframework.mjs +0 -95
  574. package/dist/es/node_modules/refractor/lang/ruby.mjs +0 -159
  575. package/dist/es/node_modules/refractor/lang/rust.mjs +0 -122
  576. package/dist/es/node_modules/refractor/lang/sas.mjs +0 -305
  577. package/dist/es/node_modules/refractor/lang/sass.mjs +0 -69
  578. package/dist/es/node_modules/refractor/lang/scala.mjs +0 -59
  579. package/dist/es/node_modules/refractor/lang/scheme.mjs +0 -120
  580. package/dist/es/node_modules/refractor/lang/scss.mjs +0 -82
  581. package/dist/es/node_modules/refractor/lang/shell-session.mjs +0 -69
  582. package/dist/es/node_modules/refractor/lang/smali.mjs +0 -84
  583. package/dist/es/node_modules/refractor/lang/smalltalk.mjs +0 -47
  584. package/dist/es/node_modules/refractor/lang/smarty.mjs +0 -106
  585. package/dist/es/node_modules/refractor/lang/sml.mjs +0 -64
  586. package/dist/es/node_modules/refractor/lang/solidity.mjs +0 -28
  587. package/dist/es/node_modules/refractor/lang/solution-file.mjs +0 -58
  588. package/dist/es/node_modules/refractor/lang/soy.mjs +0 -77
  589. package/dist/es/node_modules/refractor/lang/sparql.mjs +0 -24
  590. package/dist/es/node_modules/refractor/lang/splunk-spl.mjs +0 -36
  591. package/dist/es/node_modules/refractor/lang/sqf.mjs +0 -42
  592. package/dist/es/node_modules/refractor/lang/sql.mjs +0 -42
  593. package/dist/es/node_modules/refractor/lang/squirrel.mjs +0 -50
  594. package/dist/es/node_modules/refractor/lang/stan.mjs +0 -63
  595. package/dist/es/node_modules/refractor/lang/stylus.mjs +0 -141
  596. package/dist/es/node_modules/refractor/lang/swift.mjs +0 -125
  597. package/dist/es/node_modules/refractor/lang/systemd.mjs +0 -65
  598. package/dist/es/node_modules/refractor/lang/t4-cs.mjs +0 -17
  599. package/dist/es/node_modules/refractor/lang/t4-templating.mjs +0 -57
  600. package/dist/es/node_modules/refractor/lang/t4-vb.mjs +0 -17
  601. package/dist/es/node_modules/refractor/lang/tap.mjs +0 -35
  602. package/dist/es/node_modules/refractor/lang/tcl.mjs +0 -51
  603. package/dist/es/node_modules/refractor/lang/textile.mjs +0 -248
  604. package/dist/es/node_modules/refractor/lang/toml.mjs +0 -54
  605. package/dist/es/node_modules/refractor/lang/tremor.mjs +0 -67
  606. package/dist/es/node_modules/refractor/lang/tsx.mjs +0 -22
  607. package/dist/es/node_modules/refractor/lang/tt2.mjs +0 -53
  608. package/dist/es/node_modules/refractor/lang/turtle.mjs +0 -62
  609. package/dist/es/node_modules/refractor/lang/twig.mjs +0 -48
  610. package/dist/es/node_modules/refractor/lang/typescript.mjs +0 -57
  611. package/dist/es/node_modules/refractor/lang/typoscript.mjs +0 -81
  612. package/dist/es/node_modules/refractor/lang/unrealscript.mjs +0 -50
  613. package/dist/es/node_modules/refractor/lang/uorazor.mjs +0 -57
  614. package/dist/es/node_modules/refractor/lang/uri.mjs +0 -92
  615. package/dist/es/node_modules/refractor/lang/v.mjs +0 -85
  616. package/dist/es/node_modules/refractor/lang/vala.mjs +0 -87
  617. package/dist/es/node_modules/refractor/lang/vbnet.mjs +0 -34
  618. package/dist/es/node_modules/refractor/lang/velocity.mjs +0 -75
  619. package/dist/es/node_modules/refractor/lang/verilog.mjs +0 -38
  620. package/dist/es/node_modules/refractor/lang/vhdl.mjs +0 -35
  621. package/dist/es/node_modules/refractor/lang/vim.mjs +0 -22
  622. package/dist/es/node_modules/refractor/lang/visual-basic.mjs +0 -38
  623. package/dist/es/node_modules/refractor/lang/warpscript.mjs +0 -33
  624. package/dist/es/node_modules/refractor/lang/wasm.mjs +0 -36
  625. package/dist/es/node_modules/refractor/lang/web-idl.mjs +0 -89
  626. package/dist/es/node_modules/refractor/lang/wiki.mjs +0 -86
  627. package/dist/es/node_modules/refractor/lang/wolfram.mjs +0 -37
  628. package/dist/es/node_modules/refractor/lang/wren.mjs +0 -97
  629. package/dist/es/node_modules/refractor/lang/xeora.mjs +0 -121
  630. package/dist/es/node_modules/refractor/lang/xml-doc.mjs +0 -35
  631. package/dist/es/node_modules/refractor/lang/xojo.mjs +0 -30
  632. package/dist/es/node_modules/refractor/lang/xquery.mjs +0 -89
  633. package/dist/es/node_modules/refractor/lang/yaml.mjs +0 -78
  634. package/dist/es/node_modules/refractor/lang/yang.mjs +0 -32
  635. package/dist/es/node_modules/refractor/lang/zig.mjs +0 -80
  636. package/dist/es/node_modules/refractor/node_modules/comma-separated-tokens/index.mjs +0 -16
  637. package/dist/es/node_modules/refractor/node_modules/hastscript/factory.mjs +0 -77
  638. package/dist/es/node_modules/refractor/node_modules/hastscript/html.mjs +0 -8
  639. package/dist/es/node_modules/refractor/node_modules/hastscript/index.mjs +0 -5
  640. package/dist/es/node_modules/refractor/node_modules/prismjs/components/prism-core.mjs +0 -720
  641. package/dist/es/node_modules/refractor/node_modules/space-separated-tokens/index.mjs +0 -14
  642. package/dist/es/node_modules/rehype-external-links/lib/index.mjs +0 -34
  643. package/dist/es/node_modules/rehype-external-links/node_modules/is-absolute-url/index.mjs +0 -9
  644. package/dist/es/node_modules/rehype-external-links/node_modules/unist-util-visit/lib/index.mjs +0 -16
  645. package/dist/es/node_modules/rehype-katex/lib/index.mjs +0 -83
  646. package/dist/es/node_modules/remark-gfm/lib/index.mjs +0 -13
  647. package/dist/es/node_modules/remark-math/lib/index.mjs +0 -13
  648. package/dist/es/node_modules/remark-rehype/lib/index.mjs +0 -51
  649. package/dist/es/node_modules/space-separated-tokens/index.mjs +0 -11
  650. package/dist/es/node_modules/style-to-js/cjs/index.mjs +0 -22
  651. package/dist/es/node_modules/style-to-js/cjs/utilities.mjs +0 -18
  652. package/dist/es/node_modules/style-to-js/node_modules/inline-style-parser/index.mjs +0 -93
  653. package/dist/es/node_modules/style-to-js/node_modules/style-to-object/cjs/index.mjs +0 -25
  654. package/dist/es/node_modules/trim-lines/index.mjs +0 -25
  655. package/dist/es/node_modules/tslib/tslib.es6.mjs +0 -30
  656. package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +0 -123
  657. package/dist/es/node_modules/unified/lib/callable-instance.mjs +0 -25
  658. package/dist/es/node_modules/unified/lib/index.mjs +0 -525
  659. package/dist/es/node_modules/unified/node_modules/bail/index.mjs +0 -7
  660. package/dist/es/node_modules/unified/node_modules/is-plain-obj/index.mjs +0 -9
  661. package/dist/es/node_modules/unified/node_modules/trough/lib/index.mjs +0 -61
  662. package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +0 -32
  663. package/dist/es/node_modules/unist-util-is/lib/index.mjs +0 -81
  664. package/dist/es/node_modules/unist-util-position/lib/index.mjs +0 -26
  665. package/dist/es/node_modules/unist-util-stringify-position/lib/index.mjs +0 -15
  666. package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +0 -6
  667. package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +0 -56
  668. package/dist/es/node_modules/vfile/lib/index.mjs +0 -401
  669. package/dist/es/node_modules/vfile/lib/minpath.browser.mjs +0 -120
  670. package/dist/es/node_modules/vfile/lib/minproc.browser.mjs +0 -9
  671. package/dist/es/node_modules/vfile/lib/minurl.browser.mjs +0 -35
  672. package/dist/es/node_modules/vfile/lib/minurl.shared.mjs +0 -7
  673. package/dist/es/node_modules/vfile-message/lib/index.mjs +0 -106
  674. package/dist/es/node_modules/xtend/immutable.mjs +0 -12
  675. package/dist/es/packages/agent-cli-ui/package.json.mjs +0 -164
  676. package/dist/es/packages/react-components/dist/es/Iconfont/index.mjs +0 -8
  677. package/dist/es/packages/react-components/dist/es/components/Copy/index.mjs +0 -43
  678. package/dist/es/packages/react-components/dist/es/components/Markdown/ATag/index.mjs +0 -44
  679. package/dist/es/packages/react-components/dist/es/components/Markdown/Code/index.mjs +0 -64
  680. package/dist/es/packages/react-components/dist/es/components/Markdown/Image/index.mjs +0 -62
  681. package/dist/es/packages/react-components/dist/es/components/Markdown/Video/index.mjs +0 -19
  682. package/dist/es/packages/react-components/dist/es/components/Markdown/index.mjs +0 -80
  683. package/dist/es/packages/react-components/dist/es/index.mjs +0 -10
  684. package/dist/es/packages/react-components/dist/es/utils/clipboard.mjs +0 -38
  685. package/dist/es/packages/react-components/dist/es/utils/markdown/index.mjs +0 -29
  686. package/dist/es/src/global.css +0 -1
  687. package/dist/es/src/image-viewer.css +0 -1
  688. package/dist/es/src/katex.min.css +0 -1
  689. package/dist/es/src/mask.css +0 -1
  690. package/dist/es/src/safe-area.css +0 -1
  691. package/dist/es/src/style.css +0 -1
  692. package/dist/es/src/style10.css +0 -1
  693. package/dist/es/src/style11.css +0 -1
  694. package/dist/es/src/style12.css +0 -1
  695. package/dist/es/src/style13.css +0 -1
  696. package/dist/es/src/style14.css +0 -1
  697. package/dist/es/src/style15.css +0 -1
  698. package/dist/es/src/style16.css +0 -1
  699. package/dist/es/src/style17.css +0 -1
  700. package/dist/es/src/style18.css +0 -1
  701. package/dist/es/src/style19.css +0 -1
  702. package/dist/es/src/style2.css +0 -1
  703. package/dist/es/src/style20.css +0 -1
  704. package/dist/es/src/style21.css +0 -1
  705. package/dist/es/src/style22.css +0 -1
  706. package/dist/es/src/style23.css +0 -1
  707. package/dist/es/src/style24.css +0 -1
  708. package/dist/es/src/style25.css +0 -1
  709. package/dist/es/src/style26.css +0 -1
  710. package/dist/es/src/style27.css +0 -1
  711. package/dist/es/src/style28.css +0 -1
  712. package/dist/es/src/style29.css +0 -1
  713. package/dist/es/src/style3.css +0 -1
  714. package/dist/es/src/style30.css +0 -1
  715. package/dist/es/src/style31.css +0 -1
  716. package/dist/es/src/style32.css +0 -1
  717. package/dist/es/src/style33.css +0 -1
  718. package/dist/es/src/style4.css +0 -1
  719. package/dist/es/src/style5.css +0 -1
  720. package/dist/es/src/style6.css +0 -1
  721. package/dist/es/src/style7.css +0 -1
  722. package/dist/es/src/style8.css +0 -1
  723. package/dist/es/src/style9.css +0 -1
  724. package/dist/es/types.mjs +0 -4
  725. package/dist/es/utils/antdConfig.mjs +0 -15
  726. package/dist/es/utils/index.mjs +0 -41
  727. package/dist/es/utils/scopedMessage.mjs +0 -29
  728. package/dist/lib/index.css +0 -1
  729. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/fetch.d.ts +0 -44
  730. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/index.d.ts +0 -1
  731. package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/parse.d.ts +0 -36
  732. package/dist/src/utils/reactCompatibility.d.ts +0 -27
  733. package/dist/src/utils/testAntdPrefix.d.ts +0 -3
@@ -1,847 +0,0 @@
1
- import { V as c, c as J } from "./maths-0ab39ae9.esm.mjs";
2
- function Q(s, t) {
3
- if (typeof s != "object" || s === null)
4
- return s;
5
- var e = s[Symbol.toPrimitive];
6
- if (e !== void 0) {
7
- var i = e.call(s, t || "default");
8
- if (typeof i != "object")
9
- return i;
10
- throw new TypeError("@@toPrimitive must return a primitive value.");
11
- }
12
- return (t === "string" ? String : Number)(s);
13
- }
14
- function Z(s) {
15
- var t = Q(s, "string");
16
- return typeof t == "symbol" ? t : String(t);
17
- }
18
- function g(s, t, e) {
19
- return t = Z(t), t in s ? Object.defineProperty(s, t, {
20
- value: e,
21
- enumerable: !0,
22
- configurable: !0,
23
- writable: !0
24
- }) : s[t] = e, s;
25
- }
26
- function S(s, t) {
27
- var e = Object.keys(s);
28
- if (Object.getOwnPropertySymbols) {
29
- var i = Object.getOwnPropertySymbols(s);
30
- t && (i = i.filter(function(n) {
31
- return Object.getOwnPropertyDescriptor(s, n).enumerable;
32
- })), e.push.apply(e, i);
33
- }
34
- return e;
35
- }
36
- function u(s) {
37
- for (var t = 1; t < arguments.length; t++) {
38
- var e = arguments[t] != null ? arguments[t] : {};
39
- t % 2 ? S(Object(e), !0).forEach(function(i) {
40
- g(s, i, e[i]);
41
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(e)) : S(Object(e)).forEach(function(i) {
42
- Object.defineProperty(s, i, Object.getOwnPropertyDescriptor(e, i));
43
- });
44
- }
45
- return s;
46
- }
47
- const V = {
48
- pointer: {
49
- start: "down",
50
- change: "move",
51
- end: "up"
52
- },
53
- mouse: {
54
- start: "down",
55
- change: "move",
56
- end: "up"
57
- },
58
- touch: {
59
- start: "start",
60
- change: "move",
61
- end: "end"
62
- },
63
- gesture: {
64
- start: "start",
65
- change: "change",
66
- end: "end"
67
- }
68
- };
69
- function P(s) {
70
- return s ? s[0].toUpperCase() + s.slice(1) : "";
71
- }
72
- const F = ["enter", "leave"];
73
- function tt(s = !1, t) {
74
- return s && !F.includes(t);
75
- }
76
- function Ot(s, t = "", e = !1) {
77
- const i = V[s], n = i && i[t] || t;
78
- return "on" + P(s) + P(n) + (tt(e, n) ? "Capture" : "");
79
- }
80
- const et = ["gotpointercapture", "lostpointercapture"];
81
- function Lt(s) {
82
- let t = s.substring(2).toLowerCase();
83
- const e = !!~t.indexOf("passive");
84
- e && (t = t.replace("passive", ""));
85
- const i = et.includes(t) ? "capturecapture" : "capture", n = !!~t.indexOf(i);
86
- return n && (t = t.replace("capture", "")), {
87
- device: t,
88
- capture: n,
89
- passive: e
90
- };
91
- }
92
- function Kt(s, t = "") {
93
- const e = V[s], i = e && e[t] || t;
94
- return s + i;
95
- }
96
- function x(s) {
97
- return "touches" in s;
98
- }
99
- function Y(s) {
100
- return x(s) ? "touch" : "pointerType" in s ? s.pointerType : "mouse";
101
- }
102
- function st(s) {
103
- return Array.from(s.touches).filter((t) => {
104
- var e, i;
105
- return t.target === s.currentTarget || ((e = s.currentTarget) === null || e === void 0 || (i = e.contains) === null || i === void 0 ? void 0 : i.call(e, t.target));
106
- });
107
- }
108
- function it(s) {
109
- return s.type === "touchend" || s.type === "touchcancel" ? s.changedTouches : s.targetTouches;
110
- }
111
- function j(s) {
112
- return x(s) ? it(s)[0] : s;
113
- }
114
- function k(s, t) {
115
- try {
116
- const e = t.clientX - s.clientX, i = t.clientY - s.clientY, n = (t.clientX + s.clientX) / 2, r = (t.clientY + s.clientY) / 2, o = Math.hypot(e, i);
117
- return {
118
- angle: -(Math.atan2(e, i) * 180) / Math.PI,
119
- distance: o,
120
- origin: [n, r]
121
- };
122
- } catch (e) {
123
- }
124
- return null;
125
- }
126
- function Rt(s) {
127
- return st(s).map((t) => t.identifier);
128
- }
129
- function C(s, t) {
130
- const [e, i] = Array.from(s.touches).filter((n) => t.includes(n.identifier));
131
- return k(e, i);
132
- }
133
- function D(s) {
134
- const t = j(s);
135
- return x(s) ? t.identifier : t.pointerId;
136
- }
137
- function M(s) {
138
- const t = j(s);
139
- return [t.clientX, t.clientY];
140
- }
141
- const O = 40, L = 800;
142
- function nt(s) {
143
- let {
144
- deltaX: t,
145
- deltaY: e,
146
- deltaMode: i
147
- } = s;
148
- return i === 1 ? (t *= O, e *= O) : i === 2 && (t *= L, e *= L), [t, e];
149
- }
150
- function rt(s) {
151
- const t = {};
152
- if ("buttons" in s && (t.buttons = s.buttons), "shiftKey" in s) {
153
- const {
154
- shiftKey: e,
155
- altKey: i,
156
- metaKey: n,
157
- ctrlKey: r
158
- } = s;
159
- Object.assign(t, {
160
- shiftKey: e,
161
- altKey: i,
162
- metaKey: n,
163
- ctrlKey: r
164
- });
165
- }
166
- return t;
167
- }
168
- function A(s, ...t) {
169
- return typeof s == "function" ? s(...t) : s;
170
- }
171
- function ot() {
172
- }
173
- function Bt(...s) {
174
- return s.length === 0 ? ot : s.length === 1 ? s[0] : function() {
175
- let t;
176
- for (const e of s)
177
- t = e.apply(this, arguments) || t;
178
- return t;
179
- };
180
- }
181
- function K(s, t) {
182
- return Object.assign({}, t, s || {});
183
- }
184
- const at = 32;
185
- class H {
186
- constructor(t, e, i) {
187
- this.ctrl = t, this.args = e, this.key = i, this.state || (this.state = {}, this.computeValues([0, 0]), this.computeInitial(), this.init && this.init(), this.reset());
188
- }
189
- get state() {
190
- return this.ctrl.state[this.key];
191
- }
192
- set state(t) {
193
- this.ctrl.state[this.key] = t;
194
- }
195
- get shared() {
196
- return this.ctrl.state.shared;
197
- }
198
- get eventStore() {
199
- return this.ctrl.gestureEventStores[this.key];
200
- }
201
- get timeoutStore() {
202
- return this.ctrl.gestureTimeoutStores[this.key];
203
- }
204
- get config() {
205
- return this.ctrl.config[this.key];
206
- }
207
- get sharedConfig() {
208
- return this.ctrl.config.shared;
209
- }
210
- get handler() {
211
- return this.ctrl.handlers[this.key];
212
- }
213
- reset() {
214
- const {
215
- state: t,
216
- shared: e,
217
- ingKey: i,
218
- args: n
219
- } = this;
220
- e[i] = t._active = t.active = t._blocked = t._force = !1, t._step = [!1, !1], t.intentional = !1, t._movement = [0, 0], t._distance = [0, 0], t._direction = [0, 0], t._delta = [0, 0], t._bounds = [[-1 / 0, 1 / 0], [-1 / 0, 1 / 0]], t.args = n, t.axis = void 0, t.memo = void 0, t.elapsedTime = t.timeDelta = 0, t.direction = [0, 0], t.distance = [0, 0], t.overflow = [0, 0], t._movementBound = [!1, !1], t.velocity = [0, 0], t.movement = [0, 0], t.delta = [0, 0], t.timeStamp = 0;
221
- }
222
- start(t) {
223
- const e = this.state, i = this.config;
224
- e._active || (this.reset(), this.computeInitial(), e._active = !0, e.target = t.target, e.currentTarget = t.currentTarget, e.lastOffset = i.from ? A(i.from, e) : e.offset, e.offset = e.lastOffset, e.startTime = e.timeStamp = t.timeStamp);
225
- }
226
- computeValues(t) {
227
- const e = this.state;
228
- e._values = t, e.values = this.config.transform(t);
229
- }
230
- computeInitial() {
231
- const t = this.state;
232
- t._initial = t._values, t.initial = t.values;
233
- }
234
- compute(t) {
235
- const {
236
- state: e,
237
- config: i,
238
- shared: n
239
- } = this;
240
- e.args = this.args;
241
- let r = 0;
242
- if (t && (e.event = t, i.preventDefault && t.cancelable && e.event.preventDefault(), e.type = t.type, n.touches = this.ctrl.pointerIds.size || this.ctrl.touchIds.size, n.locked = !!document.pointerLockElement, Object.assign(n, rt(t)), n.down = n.pressed = n.buttons % 2 === 1 || n.touches > 0, r = t.timeStamp - e.timeStamp, e.timeStamp = t.timeStamp, e.elapsedTime = e.timeStamp - e.startTime), e._active) {
243
- const p = e._delta.map(Math.abs);
244
- c.addTo(e._distance, p);
245
- }
246
- this.axisIntent && this.axisIntent(t);
247
- const [o, h] = e._movement, [d, m] = i.threshold, {
248
- _step: a,
249
- values: _
250
- } = e;
251
- if (i.hasCustomTransform ? (a[0] === !1 && (a[0] = Math.abs(o) >= d && _[0]), a[1] === !1 && (a[1] = Math.abs(h) >= m && _[1])) : (a[0] === !1 && (a[0] = Math.abs(o) >= d && Math.sign(o) * d), a[1] === !1 && (a[1] = Math.abs(h) >= m && Math.sign(h) * m)), e.intentional = a[0] !== !1 || a[1] !== !1, !e.intentional)
252
- return;
253
- const l = [0, 0];
254
- if (i.hasCustomTransform) {
255
- const [p, q] = _;
256
- l[0] = a[0] !== !1 ? p - a[0] : 0, l[1] = a[1] !== !1 ? q - a[1] : 0;
257
- } else
258
- l[0] = a[0] !== !1 ? o - a[0] : 0, l[1] = a[1] !== !1 ? h - a[1] : 0;
259
- this.restrictToAxis && !e._blocked && this.restrictToAxis(l);
260
- const b = e.offset, E = e._active && !e._blocked || e.active;
261
- E && (e.first = e._active && !e.active, e.last = !e._active && e.active, e.active = n[this.ingKey] = e._active, t && (e.first && ("bounds" in i && (e._bounds = A(i.bounds, e)), this.setup && this.setup()), e.movement = l, this.computeOffset()));
262
- const [T, w] = e.offset, [[I, G], [z, W]] = e._bounds;
263
- e.overflow = [T < I ? -1 : T > G ? 1 : 0, w < z ? -1 : w > W ? 1 : 0], e._movementBound[0] = e.overflow[0] ? e._movementBound[0] === !1 ? e._movement[0] : e._movementBound[0] : !1, e._movementBound[1] = e.overflow[1] ? e._movementBound[1] === !1 ? e._movement[1] : e._movementBound[1] : !1;
264
- const $ = e._active ? i.rubberband || [0, 0] : [0, 0];
265
- if (e.offset = J(e._bounds, e.offset, $), e.delta = c.sub(e.offset, b), this.computeMovement(), E && (!e.last || r > at)) {
266
- e.delta = c.sub(e.offset, b);
267
- const p = e.delta.map(Math.abs);
268
- c.addTo(e.distance, p), e.direction = e.delta.map(Math.sign), e._direction = e._delta.map(Math.sign), !e.first && r > 0 && (e.velocity = [p[0] / r, p[1] / r], e.timeDelta = r);
269
- }
270
- }
271
- emit() {
272
- const t = this.state, e = this.shared, i = this.config;
273
- if (t._active || this.clean(), (t._blocked || !t.intentional) && !t._force && !i.triggerAllEvents)
274
- return;
275
- const n = this.handler(u(u(u({}, e), t), {}, {
276
- [this.aliasKey]: t.values
277
- }));
278
- n !== void 0 && (t.memo = n);
279
- }
280
- clean() {
281
- this.eventStore.clean(), this.timeoutStore.clean();
282
- }
283
- }
284
- function ct([s, t], e) {
285
- const i = Math.abs(s), n = Math.abs(t);
286
- if (i > n && i > e)
287
- return "x";
288
- if (n > i && n > e)
289
- return "y";
290
- }
291
- class ut extends H {
292
- constructor(...t) {
293
- super(...t), g(this, "aliasKey", "xy");
294
- }
295
- reset() {
296
- super.reset(), this.state.axis = void 0;
297
- }
298
- init() {
299
- this.state.offset = [0, 0], this.state.lastOffset = [0, 0];
300
- }
301
- computeOffset() {
302
- this.state.offset = c.add(this.state.lastOffset, this.state.movement);
303
- }
304
- computeMovement() {
305
- this.state.movement = c.sub(this.state.offset, this.state.lastOffset);
306
- }
307
- axisIntent(t) {
308
- const e = this.state, i = this.config;
309
- if (!e.axis && t) {
310
- const n = typeof i.axisThreshold == "object" ? i.axisThreshold[Y(t)] : i.axisThreshold;
311
- e.axis = ct(e._movement, n);
312
- }
313
- e._blocked = (i.lockDirection || !!i.axis) && !e.axis || !!i.axis && i.axis !== e.axis;
314
- }
315
- restrictToAxis(t) {
316
- if (this.config.axis || this.config.lockDirection)
317
- switch (this.state.axis) {
318
- case "x":
319
- t[1] = 0;
320
- break;
321
- case "y":
322
- t[0] = 0;
323
- break;
324
- }
325
- }
326
- }
327
- const ht = (s) => s, R = 0.15, N = {
328
- enabled(s = !0) {
329
- return s;
330
- },
331
- eventOptions(s, t, e) {
332
- return u(u({}, e.shared.eventOptions), s);
333
- },
334
- preventDefault(s = !1) {
335
- return s;
336
- },
337
- triggerAllEvents(s = !1) {
338
- return s;
339
- },
340
- rubberband(s = 0) {
341
- switch (s) {
342
- case !0:
343
- return [R, R];
344
- case !1:
345
- return [0, 0];
346
- default:
347
- return c.toVector(s);
348
- }
349
- },
350
- from(s) {
351
- if (typeof s == "function")
352
- return s;
353
- if (s != null)
354
- return c.toVector(s);
355
- },
356
- transform(s, t, e) {
357
- const i = s || e.shared.transform;
358
- return this.hasCustomTransform = !!i, i || ht;
359
- },
360
- threshold(s) {
361
- return c.toVector(s, 0);
362
- }
363
- }, ft = 0, y = u(u({}, N), {}, {
364
- axis(s, t, {
365
- axis: e
366
- }) {
367
- if (this.lockDirection = e === "lock", !this.lockDirection)
368
- return e;
369
- },
370
- axisThreshold(s = ft) {
371
- return s;
372
- },
373
- bounds(s = {}) {
374
- if (typeof s == "function")
375
- return (r) => y.bounds(s(r));
376
- if ("current" in s)
377
- return () => s.current;
378
- if (typeof HTMLElement == "function" && s instanceof HTMLElement)
379
- return s;
380
- const {
381
- left: t = -1 / 0,
382
- right: e = 1 / 0,
383
- top: i = -1 / 0,
384
- bottom: n = 1 / 0
385
- } = s;
386
- return [[t, e], [i, n]];
387
- }
388
- }), B = {
389
- ArrowRight: (s, t = 1) => [s * t, 0],
390
- ArrowLeft: (s, t = 1) => [-1 * s * t, 0],
391
- ArrowUp: (s, t = 1) => [0, -1 * s * t],
392
- ArrowDown: (s, t = 1) => [0, s * t]
393
- };
394
- class lt extends ut {
395
- constructor(...t) {
396
- super(...t), g(this, "ingKey", "dragging");
397
- }
398
- reset() {
399
- super.reset();
400
- const t = this.state;
401
- t._pointerId = void 0, t._pointerActive = !1, t._keyboardActive = !1, t._preventScroll = !1, t._delayed = !1, t.swipe = [0, 0], t.tap = !1, t.canceled = !1, t.cancel = this.cancel.bind(this);
402
- }
403
- setup() {
404
- const t = this.state;
405
- if (t._bounds instanceof HTMLElement) {
406
- const e = t._bounds.getBoundingClientRect(), i = t.currentTarget.getBoundingClientRect(), n = {
407
- left: e.left - i.left + t.offset[0],
408
- right: e.right - i.right + t.offset[0],
409
- top: e.top - i.top + t.offset[1],
410
- bottom: e.bottom - i.bottom + t.offset[1]
411
- };
412
- t._bounds = y.bounds(n);
413
- }
414
- }
415
- cancel() {
416
- const t = this.state;
417
- t.canceled || (t.canceled = !0, t._active = !1, setTimeout(() => {
418
- this.compute(), this.emit();
419
- }, 0));
420
- }
421
- setActive() {
422
- this.state._active = this.state._pointerActive || this.state._keyboardActive;
423
- }
424
- clean() {
425
- this.pointerClean(), this.state._pointerActive = !1, this.state._keyboardActive = !1, super.clean();
426
- }
427
- pointerDown(t) {
428
- const e = this.config, i = this.state;
429
- if (t.buttons != null && (Array.isArray(e.pointerButtons) ? !e.pointerButtons.includes(t.buttons) : e.pointerButtons !== -1 && e.pointerButtons !== t.buttons))
430
- return;
431
- const n = this.ctrl.setEventIds(t);
432
- e.pointerCapture && t.target.setPointerCapture(t.pointerId), !(n && n.size > 1 && i._pointerActive) && (this.start(t), this.setupPointer(t), i._pointerId = D(t), i._pointerActive = !0, this.computeValues(M(t)), this.computeInitial(), e.preventScrollAxis && Y(t) !== "mouse" ? (i._active = !1, this.setupScrollPrevention(t)) : e.delay > 0 ? (this.setupDelayTrigger(t), e.triggerAllEvents && (this.compute(t), this.emit())) : this.startPointerDrag(t));
433
- }
434
- startPointerDrag(t) {
435
- const e = this.state;
436
- e._active = !0, e._preventScroll = !0, e._delayed = !1, this.compute(t), this.emit();
437
- }
438
- pointerMove(t) {
439
- const e = this.state, i = this.config;
440
- if (!e._pointerActive)
441
- return;
442
- const n = D(t);
443
- if (e._pointerId !== void 0 && n !== e._pointerId)
444
- return;
445
- const r = M(t);
446
- if (document.pointerLockElement === t.target ? e._delta = [t.movementX, t.movementY] : (e._delta = c.sub(r, e._values), this.computeValues(r)), c.addTo(e._movement, e._delta), this.compute(t), e._delayed && e.intentional) {
447
- this.timeoutStore.remove("dragDelay"), e.active = !1, this.startPointerDrag(t);
448
- return;
449
- }
450
- if (i.preventScrollAxis && !e._preventScroll)
451
- if (e.axis)
452
- if (e.axis === i.preventScrollAxis || i.preventScrollAxis === "xy") {
453
- e._active = !1, this.clean();
454
- return;
455
- } else {
456
- this.timeoutStore.remove("startPointerDrag"), this.startPointerDrag(t);
457
- return;
458
- }
459
- else
460
- return;
461
- this.emit();
462
- }
463
- pointerUp(t) {
464
- this.ctrl.setEventIds(t);
465
- try {
466
- this.config.pointerCapture && t.target.hasPointerCapture(t.pointerId) && t.target.releasePointerCapture(t.pointerId);
467
- } catch (h) {
468
- }
469
- const e = this.state, i = this.config;
470
- if (!e._active || !e._pointerActive)
471
- return;
472
- const n = D(t);
473
- if (e._pointerId !== void 0 && n !== e._pointerId)
474
- return;
475
- this.state._pointerActive = !1, this.setActive(), this.compute(t);
476
- const [r, o] = e._distance;
477
- if (e.tap = r <= i.tapsThreshold && o <= i.tapsThreshold, e.tap && i.filterTaps)
478
- e._force = !0;
479
- else {
480
- const [h, d] = e._delta, [m, a] = e._movement, [_, l] = i.swipe.velocity, [b, E] = i.swipe.distance, T = i.swipe.duration;
481
- if (e.elapsedTime < T) {
482
- const w = Math.abs(h / e.timeDelta), I = Math.abs(d / e.timeDelta);
483
- w > _ && Math.abs(m) > b && (e.swipe[0] = Math.sign(h)), I > l && Math.abs(a) > E && (e.swipe[1] = Math.sign(d));
484
- }
485
- }
486
- this.emit();
487
- }
488
- pointerClick(t) {
489
- !this.state.tap && t.detail > 0 && (t.preventDefault(), t.stopPropagation());
490
- }
491
- setupPointer(t) {
492
- const e = this.config, i = e.device;
493
- e.pointerLock && t.currentTarget.requestPointerLock(), e.pointerCapture || (this.eventStore.add(this.sharedConfig.window, i, "change", this.pointerMove.bind(this)), this.eventStore.add(this.sharedConfig.window, i, "end", this.pointerUp.bind(this)), this.eventStore.add(this.sharedConfig.window, i, "cancel", this.pointerUp.bind(this)));
494
- }
495
- pointerClean() {
496
- this.config.pointerLock && document.pointerLockElement === this.state.currentTarget && document.exitPointerLock();
497
- }
498
- preventScroll(t) {
499
- this.state._preventScroll && t.cancelable && t.preventDefault();
500
- }
501
- setupScrollPrevention(t) {
502
- this.state._preventScroll = !1, dt(t);
503
- const e = this.eventStore.add(this.sharedConfig.window, "touch", "change", this.preventScroll.bind(this), {
504
- passive: !1
505
- });
506
- this.eventStore.add(this.sharedConfig.window, "touch", "end", e), this.eventStore.add(this.sharedConfig.window, "touch", "cancel", e), this.timeoutStore.add("startPointerDrag", this.startPointerDrag.bind(this), this.config.preventScrollDelay, t);
507
- }
508
- setupDelayTrigger(t) {
509
- this.state._delayed = !0, this.timeoutStore.add("dragDelay", () => {
510
- this.state._step = [0, 0], this.startPointerDrag(t);
511
- }, this.config.delay);
512
- }
513
- keyDown(t) {
514
- const e = B[t.key];
515
- if (e) {
516
- const i = this.state, n = t.shiftKey ? 10 : t.altKey ? 0.1 : 1;
517
- this.start(t), i._delta = e(this.config.keyboardDisplacement, n), i._keyboardActive = !0, c.addTo(i._movement, i._delta), this.compute(t), this.emit();
518
- }
519
- }
520
- keyUp(t) {
521
- t.key in B && (this.state._keyboardActive = !1, this.setActive(), this.compute(t), this.emit());
522
- }
523
- bind(t) {
524
- const e = this.config.device;
525
- t(e, "start", this.pointerDown.bind(this)), this.config.pointerCapture && (t(e, "change", this.pointerMove.bind(this)), t(e, "end", this.pointerUp.bind(this)), t(e, "cancel", this.pointerUp.bind(this)), t("lostPointerCapture", "", this.pointerUp.bind(this))), this.config.keys && (t("key", "down", this.keyDown.bind(this)), t("key", "up", this.keyUp.bind(this))), this.config.filterTaps && t("click", "", this.pointerClick.bind(this), {
526
- capture: !0,
527
- passive: !1
528
- });
529
- }
530
- }
531
- function dt(s) {
532
- "persist" in s && typeof s.persist == "function" && s.persist();
533
- }
534
- const v = typeof window != "undefined" && window.document && window.document.createElement;
535
- function X() {
536
- return v && "ontouchstart" in window;
537
- }
538
- function pt() {
539
- return X() || v && window.navigator.maxTouchPoints > 1;
540
- }
541
- function mt() {
542
- return v && "onpointerdown" in window;
543
- }
544
- function _t() {
545
- return v && "exitPointerLock" in window.document;
546
- }
547
- function gt() {
548
- try {
549
- return "constructor" in GestureEvent;
550
- } catch (s) {
551
- return !1;
552
- }
553
- }
554
- const f = {
555
- isBrowser: v,
556
- gesture: gt(),
557
- touch: X(),
558
- touchscreen: pt(),
559
- pointer: mt(),
560
- pointerLock: _t()
561
- }, yt = 250, vt = 180, bt = 0.5, Et = 50, Tt = 250, wt = 10, U = {
562
- mouse: 0,
563
- touch: 0,
564
- pen: 8
565
- }, At = u(u({}, y), {}, {
566
- device(s, t, {
567
- pointer: {
568
- touch: e = !1,
569
- lock: i = !1,
570
- mouse: n = !1
571
- } = {}
572
- }) {
573
- return this.pointerLock = i && f.pointerLock, f.touch && e ? "touch" : this.pointerLock ? "mouse" : f.pointer && !n ? "pointer" : f.touch ? "touch" : "mouse";
574
- },
575
- preventScrollAxis(s, t, {
576
- preventScroll: e
577
- }) {
578
- if (this.preventScrollDelay = typeof e == "number" ? e : e || e === void 0 && s ? yt : void 0, !(!f.touchscreen || e === !1))
579
- return s || (e !== void 0 ? "y" : void 0);
580
- },
581
- pointerCapture(s, t, {
582
- pointer: {
583
- capture: e = !0,
584
- buttons: i = 1,
585
- keys: n = !0
586
- } = {}
587
- }) {
588
- return this.pointerButtons = i, this.keys = n, !this.pointerLock && this.device === "pointer" && e;
589
- },
590
- threshold(s, t, {
591
- filterTaps: e = !1,
592
- tapsThreshold: i = 3,
593
- axis: n = void 0
594
- }) {
595
- const r = c.toVector(s, e ? i : n ? 1 : 0);
596
- return this.filterTaps = e, this.tapsThreshold = i, r;
597
- },
598
- swipe({
599
- velocity: s = bt,
600
- distance: t = Et,
601
- duration: e = Tt
602
- } = {}) {
603
- return {
604
- velocity: this.transform(c.toVector(s)),
605
- distance: this.transform(c.toVector(t)),
606
- duration: e
607
- };
608
- },
609
- delay(s = 0) {
610
- switch (s) {
611
- case !0:
612
- return vt;
613
- case !1:
614
- return 0;
615
- default:
616
- return s;
617
- }
618
- },
619
- axisThreshold(s) {
620
- return s ? u(u({}, U), s) : U;
621
- },
622
- keyboardDisplacement(s = wt) {
623
- return s;
624
- }
625
- });
626
- function It(s) {
627
- const [t, e] = s.overflow, [i, n] = s._delta, [r, o] = s._direction;
628
- (t < 0 && i > 0 && r < 0 || t > 0 && i < 0 && r > 0) && (s._movement[0] = s._movementBound[0]), (e < 0 && n > 0 && o < 0 || e > 0 && n < 0 && o > 0) && (s._movement[1] = s._movementBound[1]);
629
- }
630
- const Dt = 30, kt = 100;
631
- class xt extends H {
632
- constructor(...t) {
633
- super(...t), g(this, "ingKey", "pinching"), g(this, "aliasKey", "da");
634
- }
635
- init() {
636
- this.state.offset = [1, 0], this.state.lastOffset = [1, 0], this.state._pointerEvents = /* @__PURE__ */ new Map();
637
- }
638
- reset() {
639
- super.reset();
640
- const t = this.state;
641
- t._touchIds = [], t.canceled = !1, t.cancel = this.cancel.bind(this), t.turns = 0;
642
- }
643
- computeOffset() {
644
- const {
645
- type: t,
646
- movement: e,
647
- lastOffset: i
648
- } = this.state;
649
- t === "wheel" ? this.state.offset = c.add(e, i) : this.state.offset = [(1 + e[0]) * i[0], e[1] + i[1]];
650
- }
651
- computeMovement() {
652
- const {
653
- offset: t,
654
- lastOffset: e
655
- } = this.state;
656
- this.state.movement = [t[0] / e[0], t[1] - e[1]];
657
- }
658
- axisIntent() {
659
- const t = this.state, [e, i] = t._movement;
660
- if (!t.axis) {
661
- const n = Math.abs(e) * Dt - Math.abs(i);
662
- n < 0 ? t.axis = "angle" : n > 0 && (t.axis = "scale");
663
- }
664
- }
665
- restrictToAxis(t) {
666
- this.config.lockDirection && (this.state.axis === "scale" ? t[1] = 0 : this.state.axis === "angle" && (t[0] = 0));
667
- }
668
- cancel() {
669
- const t = this.state;
670
- t.canceled || setTimeout(() => {
671
- t.canceled = !0, t._active = !1, this.compute(), this.emit();
672
- }, 0);
673
- }
674
- touchStart(t) {
675
- this.ctrl.setEventIds(t);
676
- const e = this.state, i = this.ctrl.touchIds;
677
- if (e._active && e._touchIds.every((r) => i.has(r)) || i.size < 2)
678
- return;
679
- this.start(t), e._touchIds = Array.from(i).slice(0, 2);
680
- const n = C(t, e._touchIds);
681
- n && this.pinchStart(t, n);
682
- }
683
- pointerStart(t) {
684
- if (t.buttons != null && t.buttons % 2 !== 1)
685
- return;
686
- this.ctrl.setEventIds(t), t.target.setPointerCapture(t.pointerId);
687
- const e = this.state, i = e._pointerEvents, n = this.ctrl.pointerIds;
688
- if (e._active && Array.from(i.keys()).every((o) => n.has(o)) || (i.size < 2 && i.set(t.pointerId, t), e._pointerEvents.size < 2))
689
- return;
690
- this.start(t);
691
- const r = k(...Array.from(i.values()));
692
- r && this.pinchStart(t, r);
693
- }
694
- pinchStart(t, e) {
695
- const i = this.state;
696
- i.origin = e.origin, this.computeValues([e.distance, e.angle]), this.computeInitial(), this.compute(t), this.emit();
697
- }
698
- touchMove(t) {
699
- if (!this.state._active)
700
- return;
701
- const e = C(t, this.state._touchIds);
702
- e && this.pinchMove(t, e);
703
- }
704
- pointerMove(t) {
705
- const e = this.state._pointerEvents;
706
- if (e.has(t.pointerId) && e.set(t.pointerId, t), !this.state._active)
707
- return;
708
- const i = k(...Array.from(e.values()));
709
- i && this.pinchMove(t, i);
710
- }
711
- pinchMove(t, e) {
712
- const i = this.state, n = i._values[1], r = e.angle - n;
713
- let o = 0;
714
- Math.abs(r) > 270 && (o += Math.sign(r)), this.computeValues([e.distance, e.angle - 360 * o]), i.origin = e.origin, i.turns = o, i._movement = [i._values[0] / i._initial[0] - 1, i._values[1] - i._initial[1]], this.compute(t), this.emit();
715
- }
716
- touchEnd(t) {
717
- this.ctrl.setEventIds(t), this.state._active && this.state._touchIds.some((e) => !this.ctrl.touchIds.has(e)) && (this.state._active = !1, this.compute(t), this.emit());
718
- }
719
- pointerEnd(t) {
720
- const e = this.state;
721
- this.ctrl.setEventIds(t);
722
- try {
723
- t.target.releasePointerCapture(t.pointerId);
724
- } catch (i) {
725
- }
726
- e._pointerEvents.has(t.pointerId) && e._pointerEvents.delete(t.pointerId), e._active && e._pointerEvents.size < 2 && (e._active = !1, this.compute(t), this.emit());
727
- }
728
- gestureStart(t) {
729
- t.cancelable && t.preventDefault();
730
- const e = this.state;
731
- e._active || (this.start(t), this.computeValues([t.scale, t.rotation]), e.origin = [t.clientX, t.clientY], this.compute(t), this.emit());
732
- }
733
- gestureMove(t) {
734
- if (t.cancelable && t.preventDefault(), !this.state._active)
735
- return;
736
- const e = this.state;
737
- this.computeValues([t.scale, t.rotation]), e.origin = [t.clientX, t.clientY];
738
- const i = e._movement;
739
- e._movement = [t.scale - 1, t.rotation], e._delta = c.sub(e._movement, i), this.compute(t), this.emit();
740
- }
741
- gestureEnd(t) {
742
- this.state._active && (this.state._active = !1, this.compute(t), this.emit());
743
- }
744
- wheel(t) {
745
- const e = this.config.modifierKey;
746
- e && (Array.isArray(e) ? !e.find((i) => t[i]) : !t[e]) || (this.state._active ? this.wheelChange(t) : this.wheelStart(t), this.timeoutStore.add("wheelEnd", this.wheelEnd.bind(this)));
747
- }
748
- wheelStart(t) {
749
- this.start(t), this.wheelChange(t);
750
- }
751
- wheelChange(t) {
752
- "uv" in t || t.cancelable && t.preventDefault();
753
- const i = this.state;
754
- i._delta = [-nt(t)[1] / kt * i.offset[0], 0], c.addTo(i._movement, i._delta), It(i), this.state.origin = [t.clientX, t.clientY], this.compute(t), this.emit();
755
- }
756
- wheelEnd() {
757
- this.state._active && (this.state._active = !1, this.compute(), this.emit());
758
- }
759
- bind(t) {
760
- const e = this.config.device;
761
- e && (t(e, "start", this[e + "Start"].bind(this)), t(e, "change", this[e + "Move"].bind(this)), t(e, "end", this[e + "End"].bind(this)), t(e, "cancel", this[e + "End"].bind(this)), t("lostPointerCapture", "", this[e + "End"].bind(this))), this.config.pinchOnWheel && t("wheel", "", this.wheel.bind(this), {
762
- passive: !1
763
- });
764
- }
765
- }
766
- const St = u(u({}, N), {}, {
767
- device(s, t, {
768
- shared: e,
769
- pointer: {
770
- touch: i = !1
771
- } = {}
772
- }) {
773
- if (e.target && !f.touch && f.gesture)
774
- return "gesture";
775
- if (f.touch && i)
776
- return "touch";
777
- if (f.touchscreen) {
778
- if (f.pointer)
779
- return "pointer";
780
- if (f.touch)
781
- return "touch";
782
- }
783
- },
784
- bounds(s, t, {
785
- scaleBounds: e = {},
786
- angleBounds: i = {}
787
- }) {
788
- const n = (o) => {
789
- const h = K(A(e, o), {
790
- min: -1 / 0,
791
- max: 1 / 0
792
- });
793
- return [h.min, h.max];
794
- }, r = (o) => {
795
- const h = K(A(i, o), {
796
- min: -1 / 0,
797
- max: 1 / 0
798
- });
799
- return [h.min, h.max];
800
- };
801
- return typeof e != "function" && typeof i != "function" ? [n(), r()] : (o) => [n(o), r(o)];
802
- },
803
- threshold(s, t, e) {
804
- return this.lockDirection = e.axis === "lock", c.toVector(s, this.lockDirection ? [0.1, 3] : 0);
805
- },
806
- modifierKey(s) {
807
- return s === void 0 ? "ctrlKey" : s;
808
- },
809
- pinchOnWheel(s = !0) {
810
- return s;
811
- }
812
- });
813
- u(u({}, y), {}, {
814
- mouseOnly: (s = !0) => s
815
- });
816
- u(u({}, y), {}, {
817
- mouseOnly: (s = !0) => s
818
- });
819
- const Pt = /* @__PURE__ */ new Map(), Ct = /* @__PURE__ */ new Map();
820
- function Ut(s) {
821
- Pt.set(s.key, s.engine), Ct.set(s.key, s.resolver);
822
- }
823
- const Vt = {
824
- key: "drag",
825
- engine: lt,
826
- resolver: At
827
- }, Yt = {
828
- key: "pinch",
829
- engine: xt,
830
- resolver: St
831
- };
832
- export {
833
- Ct as C,
834
- Pt as E,
835
- f as S,
836
- u as _,
837
- g as a,
838
- Rt as b,
839
- Bt as c,
840
- Ot as d,
841
- Vt as e,
842
- Yt as f,
843
- x as i,
844
- Lt as p,
845
- Ut as r,
846
- Kt as t
847
- };