@glodon-aiot/agent-cli-ui 3.19.0-alpha.30 → 3.19.0-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/index.mjs +8211 -302
- package/dist/lib/index.js +16 -326
- package/dist/src/utils/reactDomCompat.d.ts +3 -0
- package/package.json +10 -13
- package/dist/es/AgentClientUI.mjs +0 -150
- package/dist/es/Dialog/AgentChat/HistoryItem/FileItem/index.mjs +0 -88
- package/dist/es/Dialog/AgentChat/HistoryItem/InputProgress/index.mjs +0 -38
- package/dist/es/Dialog/AgentChat/HistoryItem/SearchReference/index.mjs +0 -101
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionAction/index.mjs +0 -248
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/ReferItem/index.mjs +0 -86
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs +0 -92
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionRelated/index.mjs +0 -46
- package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +0 -384
- package/dist/es/Dialog/AgentChat/PromptSetting/index.mjs +0 -105
- package/dist/es/Dialog/AgentChat/Tools/ConnectToNetwork/index.mjs +0 -92
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PromptListItem.mjs +0 -89
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/PublicPromptList.mjs +0 -47
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/PromptList/access/empty.svg.mjs +0 -4
- package/dist/es/Dialog/AgentChat/Tools/PromptManager/index.mjs +0 -120
- package/dist/es/Dialog/AgentChat/Tools/SessionHistoryDrawer/index.mjs +0 -48
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +0 -47
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/SessionItem.mjs +0 -135
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.mjs +0 -119
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/index.mjs +0 -44
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/ClearModal/index.mjs +0 -50
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/FileCard/index.mjs +0 -128
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.mjs +0 -374
- package/dist/es/Dialog/AgentChat/index.mjs +0 -1147
- package/dist/es/Dialog/SessionList/index.mjs +0 -401
- package/dist/es/Dialog/UploadingPrompt/index.mjs +0 -64
- package/dist/es/Dialog/index.mjs +0 -180
- package/dist/es/Footer/FooterWarning.mjs +0 -24
- package/dist/es/Footer/index.mjs +0 -17
- package/dist/es/QuillEditor/index.mjs +0 -278
- package/dist/es/ReactTextGenerationUI/components/TextSiders/index.mjs +0 -406
- package/dist/es/ReactTextGenerationUI/components/fetchEventSource/fetch.mjs +0 -112
- package/dist/es/ReactTextGenerationUI/components/fetchEventSource/parse.mjs +0 -97
- package/dist/es/ReactTextGenerationUI/index.mjs +0 -81
- package/dist/es/_virtual/_commonjsHelpers.mjs +0 -8
- package/dist/es/_virtual/index.mjs +0 -4
- package/dist/es/_virtual/index2.mjs +0 -4
- package/dist/es/_virtual/index3.mjs +0 -4
- package/dist/es/_virtual/lib.mjs +0 -4
- package/dist/es/_virtual/prism-core.mjs +0 -4
- package/dist/es/_virtual/types.mjs +0 -4
- package/dist/es/_virtual/ua-parser.min.mjs +0 -4
- package/dist/es/_virtual/utilities.mjs +0 -4
- package/dist/es/assets/brand.svg.mjs +0 -4
- package/dist/es/assets/doc-icons/doc.svg.mjs +0 -4
- package/dist/es/assets/doc-icons/docx.svg.mjs +0 -4
- package/dist/es/assets/doc-icons/pdf.svg.mjs +0 -4
- package/dist/es/assets/icon.svg.mjs +0 -4
- package/dist/es/assets/think.svg.mjs +0 -4
- package/dist/es/components/FilePreview/index.mjs +0 -83
- package/dist/es/components/Greeting/index.mjs +0 -30
- package/dist/es/components/Iconfont/index.mjs +0 -12
- package/dist/es/components/JsonDisplay/index.mjs +0 -15
- package/dist/es/components/KnowledgeList/KnowledgeSelect/index.mjs +0 -67
- package/dist/es/components/KnowledgeList/index.mjs +0 -79
- package/dist/es/components/Recommend/RecommendItem.mjs +0 -97
- package/dist/es/components/Recommend/index.mjs +0 -76
- package/dist/es/components/Recommend/tip.svg.mjs +0 -4
- package/dist/es/components/Sider/index.mjs +0 -24
- package/dist/es/components/WebLink/index.mjs +0 -26
- package/dist/es/constant.mjs +0 -124
- package/dist/es/context/SessionContext.mjs +0 -26
- package/dist/es/context.mjs +0 -7
- package/dist/es/hooks/useSessionState.mjs +0 -6
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +0 -9
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +0 -8
- package/dist/es/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +0 -12
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +0 -13
- package/dist/es/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +0 -7
- package/dist/es/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +0 -7
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +0 -15
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +0 -15
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +0 -10
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +0 -16
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +0 -9
- package/dist/es/node_modules/@babel/runtime/helpers/esm/typeof.mjs +0 -11
- package/dist/es/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +0 -12
- package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +0 -201
- package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +0 -1087
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +0 -104
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +0 -568
- package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +0 -158
- package/dist/es/node_modules/@ungap/structured-clone/esm/deserialize.mjs +0 -70
- package/dist/es/node_modules/@ungap/structured-clone/esm/index.mjs +0 -11
- package/dist/es/node_modules/@ungap/structured-clone/esm/serialize.mjs +0 -124
- package/dist/es/node_modules/@ungap/structured-clone/esm/types.mjs +0 -13
- package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +0 -847
- package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +0 -35
- package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +0 -226
- package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +0 -33
- package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +0 -20
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +0 -76
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +0 -13
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +0 -34
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +0 -178
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +0 -83
- package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +0 -84
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +0 -9
- package/dist/es/node_modules/antd-mobile/es/global/index.mjs +0 -3
- package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +0 -141
- package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +0 -9
- package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +0 -7
- package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +0 -9
- package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +0 -6
- package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +0 -22
- package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +0 -11
- package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +0 -12
- package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +0 -47
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +0 -12
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +0 -13
- package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +0 -52
- package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +0 -11
- package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +0 -10
- package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +0 -15
- package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +0 -6
- package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +0 -8
- package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +0 -54
- package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +0 -32
- package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +0 -11
- package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +0 -19
- package/dist/es/node_modules/ccount/index.mjs +0 -12
- package/dist/es/node_modules/character-reference-invalid/index.json.mjs +0 -33
- package/dist/es/node_modules/comma-separated-tokens/index.mjs +0 -18
- package/dist/es/node_modules/decode-named-character-reference/index.dom.mjs +0 -14
- package/dist/es/node_modules/devlop/lib/default.mjs +0 -8
- package/dist/es/node_modules/estree-util-is-identifier-name/lib/index.mjs +0 -7
- package/dist/es/node_modules/extend/index.mjs +0 -46
- package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +0 -93
- package/dist/es/node_modules/hast-util-from-dom/node_modules/web-namespaces/index.mjs +0 -11
- package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +0 -16
- package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +0 -61
- package/dist/es/node_modules/hast-util-parse-selector/index.mjs +0 -14
- package/dist/es/node_modules/hast-util-to-jsx-runtime/lib/index.mjs +0 -298
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/index.mjs +0 -12
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/aria.mjs +0 -61
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/find.mjs +0 -33
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/hast-to-react.mjs +0 -22
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/html.mjs +0 -368
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/normalize.mjs +0 -6
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/svg.mjs +0 -566
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/create.mjs +0 -14
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/defined-info.mjs +0 -36
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/info.mjs +0 -28
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/merge.mjs +0 -10
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/schema.mjs +0 -21
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/util/types.mjs +0 -15
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xlink.mjs +0 -19
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xml.mjs +0 -15
- package/dist/es/node_modules/hast-util-to-jsx-runtime/node_modules/property-information/lib/xmlns.mjs +0 -16
- package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +0 -223
- package/dist/es/node_modules/hast-util-whitespace/lib/index.mjs +0 -10
- package/dist/es/node_modules/hastscript/lib/create-h.mjs +0 -126
- package/dist/es/node_modules/hastscript/lib/index.mjs +0 -8
- package/dist/es/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +0 -4
- package/dist/es/node_modules/hastscript/node_modules/hast-util-parse-selector/lib/index.mjs +0 -20
- package/dist/es/node_modules/hastscript/node_modules/property-information/index.mjs +0 -12
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/aria.mjs +0 -61
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/find.mjs +0 -33
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/html.mjs +0 -368
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/normalize.mjs +0 -6
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/svg.mjs +0 -566
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/create.mjs +0 -14
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/defined-info.mjs +0 -36
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/info.mjs +0 -28
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/merge.mjs +0 -10
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/schema.mjs +0 -21
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/util/types.mjs +0 -15
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xlink.mjs +0 -19
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xml.mjs +0 -15
- package/dist/es/node_modules/hastscript/node_modules/property-information/lib/xmlns.mjs +0 -16
- package/dist/es/node_modules/html-url-attributes/lib/index.mjs +0 -16
- package/dist/es/node_modules/is-alphabetical/index.mjs +0 -8
- package/dist/es/node_modules/is-alphanumerical/index.mjs +0 -9
- package/dist/es/node_modules/is-decimal/index.mjs +0 -8
- package/dist/es/node_modules/is-hexadecimal/index.mjs +0 -8
- package/dist/es/node_modules/katex/dist/katex.mjs +0 -11700
- package/dist/es/node_modules/longest-streak/index.mjs +0 -12
- package/dist/es/node_modules/markdown-table/index.mjs +0 -70
- package/dist/es/node_modules/mdast-util-find-and-replace/lib/index.mjs +0 -72
- package/dist/es/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.mjs +0 -8
- package/dist/es/node_modules/mdast-util-from-markdown/lib/index.mjs +0 -584
- package/dist/es/node_modules/mdast-util-gfm/lib/index.mjs +0 -17
- package/dist/es/node_modules/mdast-util-gfm-autolink-literal/lib/index.mjs +0 -136
- package/dist/es/node_modules/mdast-util-gfm-footnote/lib/index.mjs +0 -100
- package/dist/es/node_modules/mdast-util-gfm-strikethrough/lib/index.mjs +0 -61
- package/dist/es/node_modules/mdast-util-gfm-table/lib/index.mjs +0 -170
- package/dist/es/node_modules/mdast-util-gfm-task-list-item/lib/index.mjs +0 -72
- package/dist/es/node_modules/mdast-util-math/lib/index.mjs +0 -170
- package/dist/es/node_modules/mdast-util-phrasing/lib/index.mjs +0 -30
- package/dist/es/node_modules/mdast-util-to-hast/lib/footer.mjs +0 -123
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/blockquote.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/break.mjs +0 -16
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/code.mjs +0 -25
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/delete.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/emphasis.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.mjs +0 -31
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/heading.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/html.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image-reference.mjs +0 -22
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/image.mjs +0 -17
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/index.mjs +0 -58
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/inline-code.mjs +0 -17
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link-reference.mjs +0 -21
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/link.mjs +0 -17
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list-item.mjs +0 -65
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/list.mjs +0 -21
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/paragraph.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/root.mjs +0 -10
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/strong.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-cell.mjs +0 -13
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table-row.mjs +0 -26
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/table.mjs +0 -35
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/text.mjs +0 -11
- package/dist/es/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-hast/lib/index.mjs +0 -19
- package/dist/es/node_modules/mdast-util-to-hast/lib/revert.mjs +0 -22
- package/dist/es/node_modules/mdast-util-to-hast/lib/state.mjs +0 -145
- package/dist/es/node_modules/mdast-util-to-hast/node_modules/unist-util-visit/lib/index.mjs +0 -16
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/blockquote.mjs +0 -12
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/break.mjs +0 -13
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/code.mjs +0 -49
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/definition.mjs +0 -37
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/emphasis.mjs +0 -37
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/heading.mjs +0 -44
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/html.mjs +0 -10
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image-reference.mjs +0 -36
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/image.mjs +0 -40
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/index.mjs +0 -44
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/inline-code.mjs +0 -22
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link-reference.mjs +0 -36
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/link.mjs +0 -50
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list-item.mjs +0 -19
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/list.mjs +0 -35
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/paragraph.mjs +0 -7
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/root.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/strong.mjs +0 -37
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/text.mjs +0 -6
- package/dist/es/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.mjs +0 -14
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-bullet.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-fence.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-quote.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-rule.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/check-strong.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.mjs +0 -6
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/encode-info.mjs +0 -67
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.mjs +0 -9
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.mjs +0 -13
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.mjs +0 -15
- package/dist/es/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.mjs +0 -15
- package/dist/es/node_modules/mdast-util-to-markdown/node_modules/unist-util-visit/lib/index.mjs +0 -16
- package/dist/es/node_modules/mdast-util-to-string/lib/index.mjs +0 -29
- package/dist/es/node_modules/micromark/lib/constructs.mjs +0 -85
- package/dist/es/node_modules/micromark/lib/create-tokenizer.mjs +0 -225
- package/dist/es/node_modules/micromark/lib/initialize/content.mjs +0 -37
- package/dist/es/node_modules/micromark/lib/initialize/document.mjs +0 -133
- package/dist/es/node_modules/micromark/lib/initialize/flow.mjs +0 -33
- package/dist/es/node_modules/micromark/lib/initialize/text.mjs +0 -103
- package/dist/es/node_modules/micromark/lib/parse.mjs +0 -32
- package/dist/es/node_modules/micromark/lib/postprocess.mjs +0 -9
- package/dist/es/node_modules/micromark/lib/preprocess.mjs +0 -40
- package/dist/es/node_modules/micromark-core-commonmark/lib/attention.mjs +0 -74
- package/dist/es/node_modules/micromark-core-commonmark/lib/autolink.mjs +0 -43
- package/dist/es/node_modules/micromark-core-commonmark/lib/blank-line.mjs +0 -18
- package/dist/es/node_modules/micromark-core-commonmark/lib/block-quote.mjs +0 -42
- package/dist/es/node_modules/micromark-core-commonmark/lib/character-escape.mjs +0 -17
- package/dist/es/node_modules/micromark-core-commonmark/lib/character-reference.mjs +0 -30
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-fenced.mjs +0 -94
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-indented.mjs +0 -43
- package/dist/es/node_modules/micromark-core-commonmark/lib/code-text.mjs +0 -45
- package/dist/es/node_modules/micromark-core-commonmark/lib/content.mjs +0 -50
- package/dist/es/node_modules/micromark-core-commonmark/lib/definition.mjs +0 -80
- package/dist/es/node_modules/micromark-core-commonmark/lib/hard-break-escape.mjs +0 -17
- package/dist/es/node_modules/micromark-core-commonmark/lib/heading-atx.mjs +0 -46
- package/dist/es/node_modules/micromark-core-commonmark/lib/html-flow.mjs +0 -144
- package/dist/es/node_modules/micromark-core-commonmark/lib/html-text.mjs +0 -102
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-end.mjs +0 -152
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-image.mjs +0 -22
- package/dist/es/node_modules/micromark-core-commonmark/lib/label-start-link.mjs +0 -19
- package/dist/es/node_modules/micromark-core-commonmark/lib/line-ending.mjs +0 -14
- package/dist/es/node_modules/micromark-core-commonmark/lib/list.mjs +0 -90
- package/dist/es/node_modules/micromark-core-commonmark/lib/setext-underline.mjs +0 -62
- package/dist/es/node_modules/micromark-core-commonmark/lib/thematic-break.mjs +0 -25
- package/dist/es/node_modules/micromark-extension-gfm/index.mjs +0 -12
- package/dist/es/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.mjs +0 -193
- package/dist/es/node_modules/micromark-extension-gfm-footnote/lib/syntax.mjs +0 -192
- package/dist/es/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.mjs +0 -68
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/edit-map.mjs +0 -71
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/infer.mjs +0 -24
- package/dist/es/node_modules/micromark-extension-gfm-table/lib/syntax.mjs +0 -147
- package/dist/es/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.mjs +0 -45
- package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +0 -76
- package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +0 -48
- package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +0 -15
- package/dist/es/node_modules/micromark-factory-destination/index.mjs +0 -31
- package/dist/es/node_modules/micromark-factory-label/index.mjs +0 -28
- package/dist/es/node_modules/micromark-factory-space/index.mjs +0 -15
- package/dist/es/node_modules/micromark-factory-title/index.mjs +0 -26
- package/dist/es/node_modules/micromark-factory-whitespace/index.mjs +0 -12
- package/dist/es/node_modules/micromark-util-character/index.mjs +0 -39
- package/dist/es/node_modules/micromark-util-chunked/index.mjs +0 -16
- package/dist/es/node_modules/micromark-util-classify-character/index.mjs +0 -10
- package/dist/es/node_modules/micromark-util-combine-extensions/index.mjs +0 -36
- package/dist/es/node_modules/micromark-util-decode-numeric-character-reference/index.mjs +0 -16
- package/dist/es/node_modules/micromark-util-decode-string/index.mjs +0 -18
- package/dist/es/node_modules/micromark-util-html-tag-name/index.mjs +0 -5
- package/dist/es/node_modules/micromark-util-normalize-identifier/index.mjs +0 -6
- package/dist/es/node_modules/micromark-util-resolve-all/index.mjs +0 -12
- package/dist/es/node_modules/micromark-util-sanitize-uri/index.mjs +0 -23
- package/dist/es/node_modules/micromark-util-subtokenize/index.mjs +0 -65
- package/dist/es/node_modules/micromark-util-subtokenize/lib/splice-buffer.mjs +0 -175
- package/dist/es/node_modules/moment/dist/moment.mjs +0 -2301
- package/dist/es/node_modules/parse-entities/decode-entity.browser.mjs +0 -8
- package/dist/es/node_modules/parse-entities/index.mjs +0 -83
- package/dist/es/node_modules/parse-entities/node_modules/character-entities-legacy/index.json.mjs +0 -217
- package/dist/es/node_modules/property-information/find.mjs +0 -25
- package/dist/es/node_modules/property-information/html.mjs +0 -10
- package/dist/es/node_modules/property-information/lib/aria.mjs +0 -63
- package/dist/es/node_modules/property-information/lib/html.mjs +0 -354
- package/dist/es/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -8
- package/dist/es/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -7
- package/dist/es/node_modules/property-information/lib/util/create.mjs +0 -13
- package/dist/es/node_modules/property-information/lib/util/defined-info.mjs +0 -18
- package/dist/es/node_modules/property-information/lib/util/info.mjs +0 -19
- package/dist/es/node_modules/property-information/lib/util/merge.mjs +0 -11
- package/dist/es/node_modules/property-information/lib/util/schema.mjs +0 -10
- package/dist/es/node_modules/property-information/lib/util/types.mjs +0 -15
- package/dist/es/node_modules/property-information/lib/xlink.mjs +0 -20
- package/dist/es/node_modules/property-information/lib/xml.mjs +0 -16
- package/dist/es/node_modules/property-information/lib/xmlns.mjs +0 -16
- package/dist/es/node_modules/property-information/normalize.mjs +0 -7
- package/dist/es/node_modules/react-device-detect/dist/lib.mjs +0 -723
- package/dist/es/node_modules/react-markdown/lib/index.mjs +0 -153
- package/dist/es/node_modules/react-markdown/node_modules/remark-parse/lib/index.mjs +0 -29
- package/dist/es/node_modules/react-markdown/node_modules/unist-util-visit/lib/index.mjs +0 -16
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +0 -7
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +0 -101
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +0 -283
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +0 -4
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +0 -10
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +0 -195
- package/dist/es/node_modules/refractor/core.mjs +0 -111
- package/dist/es/node_modules/refractor/index.mjs +0 -553
- package/dist/es/node_modules/refractor/lang/abap.mjs +0 -60
- package/dist/es/node_modules/refractor/lang/abnf.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/actionscript.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/ada.mjs +0 -28
- package/dist/es/node_modules/refractor/lang/agda.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/al.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/antlr4.mjs +0 -72
- package/dist/es/node_modules/refractor/lang/apacheconf.mjs +0 -59
- package/dist/es/node_modules/refractor/lang/apex.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/apl.mjs +0 -44
- package/dist/es/node_modules/refractor/lang/applescript.mjs +0 -26
- package/dist/es/node_modules/refractor/lang/aql.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/arduino.mjs +0 -20
- package/dist/es/node_modules/refractor/lang/arff.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/asciidoc.mjs +0 -208
- package/dist/es/node_modules/refractor/lang/asm6502.mjs +0 -41
- package/dist/es/node_modules/refractor/lang/asmatmel.mjs +0 -53
- package/dist/es/node_modules/refractor/lang/aspnet.mjs +0 -53
- package/dist/es/node_modules/refractor/lang/autohotkey.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/autoit.mjs +0 -43
- package/dist/es/node_modules/refractor/lang/avisynth.mjs +0 -167
- package/dist/es/node_modules/refractor/lang/avro-idl.mjs +0 -50
- package/dist/es/node_modules/refractor/lang/bash.mjs +0 -206
- package/dist/es/node_modules/refractor/lang/basic.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/batch.mjs +0 -95
- package/dist/es/node_modules/refractor/lang/bbcode.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/bicep.mjs +0 -72
- package/dist/es/node_modules/refractor/lang/birb.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/bison.mjs +0 -52
- package/dist/es/node_modules/refractor/lang/bnf.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/brainfuck.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/brightscript.mjs +0 -55
- package/dist/es/node_modules/refractor/lang/bro.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/bsl.mjs +0 -77
- package/dist/es/node_modules/refractor/lang/c.mjs +0 -78
- package/dist/es/node_modules/refractor/lang/cfscript.mjs +0 -44
- package/dist/es/node_modules/refractor/lang/chaiscript.mjs +0 -65
- package/dist/es/node_modules/refractor/lang/cil.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/clike.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/clojure.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/cmake.mjs +0 -41
- package/dist/es/node_modules/refractor/lang/cobol.mjs +0 -58
- package/dist/es/node_modules/refractor/lang/coffeescript.mjs +0 -86
- package/dist/es/node_modules/refractor/lang/concurnas.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/coq.mjs +0 -52
- package/dist/es/node_modules/refractor/lang/cpp.mjs +0 -98
- package/dist/es/node_modules/refractor/lang/crystal.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/csharp.mjs +0 -277
- package/dist/es/node_modules/refractor/lang/cshtml.mjs +0 -104
- package/dist/es/node_modules/refractor/lang/csp.mjs +0 -61
- package/dist/es/node_modules/refractor/lang/css-extras.mjs +0 -109
- package/dist/es/node_modules/refractor/lang/css.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/csv.mjs +0 -16
- package/dist/es/node_modules/refractor/lang/cypher.mjs +0 -44
- package/dist/es/node_modules/refractor/lang/d.mjs +0 -77
- package/dist/es/node_modules/refractor/lang/dart.mjs +0 -72
- package/dist/es/node_modules/refractor/lang/dataweave.mjs +0 -49
- package/dist/es/node_modules/refractor/lang/dax.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/dhall.mjs +0 -74
- package/dist/es/node_modules/refractor/lang/diff.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/django.mjs +0 -60
- package/dist/es/node_modules/refractor/lang/dns-zone-file.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/docker.mjs +0 -83
- package/dist/es/node_modules/refractor/lang/dot.mjs +0 -75
- package/dist/es/node_modules/refractor/lang/ebnf.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/editorconfig.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/eiffel.mjs +0 -46
- package/dist/es/node_modules/refractor/lang/ejs.mjs +0 -33
- package/dist/es/node_modules/refractor/lang/elixir.mjs +0 -100
- package/dist/es/node_modules/refractor/lang/elm.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/erb.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/erlang.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/etlua.mjs +0 -33
- package/dist/es/node_modules/refractor/lang/excel-formula.mjs +0 -74
- package/dist/es/node_modules/refractor/lang/factor.mjs +0 -569
- package/dist/es/node_modules/refractor/lang/false.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/firestore-security-rules.mjs +0 -43
- package/dist/es/node_modules/refractor/lang/flow.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/fortran.mjs +0 -49
- package/dist/es/node_modules/refractor/lang/fsharp.mjs +0 -76
- package/dist/es/node_modules/refractor/lang/ftl.mjs +0 -102
- package/dist/es/node_modules/refractor/lang/gap.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/gcode.mjs +0 -28
- package/dist/es/node_modules/refractor/lang/gdscript.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/gedcom.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/gherkin.mjs +0 -94
- package/dist/es/node_modules/refractor/lang/git.mjs +0 -75
- package/dist/es/node_modules/refractor/lang/glsl.mjs +0 -18
- package/dist/es/node_modules/refractor/lang/gml.mjs +0 -19
- package/dist/es/node_modules/refractor/lang/gn.mjs +0 -55
- package/dist/es/node_modules/refractor/lang/go-module.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/go.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/graphql.mjs +0 -133
- package/dist/es/node_modules/refractor/lang/groovy.mjs +0 -58
- package/dist/es/node_modules/refractor/lang/haml.mjs +0 -132
- package/dist/es/node_modules/refractor/lang/handlebars.mjs +0 -46
- package/dist/es/node_modules/refractor/lang/haskell.mjs +0 -76
- package/dist/es/node_modules/refractor/lang/haxe.mjs +0 -84
- package/dist/es/node_modules/refractor/lang/hcl.mjs +0 -68
- package/dist/es/node_modules/refractor/lang/hlsl.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/hoon.mjs +0 -26
- package/dist/es/node_modules/refractor/lang/hpkp.mjs +0 -20
- package/dist/es/node_modules/refractor/lang/hsts.mjs +0 -20
- package/dist/es/node_modules/refractor/lang/http.mjs +0 -126
- package/dist/es/node_modules/refractor/lang/ichigojam.mjs +0 -25
- package/dist/es/node_modules/refractor/lang/icon.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/icu-message-format.mjs +0 -136
- package/dist/es/node_modules/refractor/lang/idris.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/iecst.mjs +0 -38
- package/dist/es/node_modules/refractor/lang/ignore.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/inform7.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/ini.mjs +0 -52
- package/dist/es/node_modules/refractor/lang/io.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/j.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/java.mjs +0 -86
- package/dist/es/node_modules/refractor/lang/javadoc.mjs +0 -89
- package/dist/es/node_modules/refractor/lang/javadoclike.mjs +0 -60
- package/dist/es/node_modules/refractor/lang/javascript.mjs +0 -114
- package/dist/es/node_modules/refractor/lang/javastacktrace.mjs +0 -146
- package/dist/es/node_modules/refractor/lang/jexl.mjs +0 -26
- package/dist/es/node_modules/refractor/lang/jolie.mjs +0 -51
- package/dist/es/node_modules/refractor/lang/jq.mjs +0 -71
- package/dist/es/node_modules/refractor/lang/js-extras.mjs +0 -104
- package/dist/es/node_modules/refractor/lang/js-templates.mjs +0 -153
- package/dist/es/node_modules/refractor/lang/jsdoc.mjs +0 -83
- package/dist/es/node_modules/refractor/lang/json.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/json5.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/jsonp.mjs +0 -20
- package/dist/es/node_modules/refractor/lang/jsstacktrace.mjs +0 -53
- package/dist/es/node_modules/refractor/lang/jsx.mjs +0 -61
- package/dist/es/node_modules/refractor/lang/julia.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/keepalived.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/keyman.mjs +0 -55
- package/dist/es/node_modules/refractor/lang/kotlin.mjs +0 -81
- package/dist/es/node_modules/refractor/lang/kumir.mjs +0 -85
- package/dist/es/node_modules/refractor/lang/kusto.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/latex.mjs +0 -68
- package/dist/es/node_modules/refractor/lang/latte.mjs +0 -68
- package/dist/es/node_modules/refractor/lang/less.mjs +0 -51
- package/dist/es/node_modules/refractor/lang/lilypond.mjs +0 -77
- package/dist/es/node_modules/refractor/lang/liquid.mjs +0 -68
- package/dist/es/node_modules/refractor/lang/lisp.mjs +0 -158
- package/dist/es/node_modules/refractor/lang/livescript.mjs +0 -119
- package/dist/es/node_modules/refractor/lang/llvm.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/log.mjs +0 -103
- package/dist/es/node_modules/refractor/lang/lolcode.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/lua.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/magma.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/makefile.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/markdown.mjs +0 -306
- package/dist/es/node_modules/refractor/lang/markup-templating.mjs +0 -74
- package/dist/es/node_modules/refractor/lang/markup.mjs +0 -154
- package/dist/es/node_modules/refractor/lang/matlab.mjs +0 -25
- package/dist/es/node_modules/refractor/lang/maxscript.mjs +0 -70
- package/dist/es/node_modules/refractor/lang/mel.mjs +0 -49
- package/dist/es/node_modules/refractor/lang/mermaid.mjs +0 -116
- package/dist/es/node_modules/refractor/lang/mizar.mjs +0 -24
- package/dist/es/node_modules/refractor/lang/mongodb.mjs +0 -287
- package/dist/es/node_modules/refractor/lang/monkey.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/moonscript.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/n1ql.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/n4js.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/nand2tetris-hdl.mjs +0 -21
- package/dist/es/node_modules/refractor/lang/naniscript.mjs +0 -140
- package/dist/es/node_modules/refractor/lang/nasm.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/neon.mjs +0 -52
- package/dist/es/node_modules/refractor/lang/nevod.mjs +0 -125
- package/dist/es/node_modules/refractor/lang/nginx.mjs +0 -61
- package/dist/es/node_modules/refractor/lang/nim.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/nix.mjs +0 -45
- package/dist/es/node_modules/refractor/lang/nsis.mjs +0 -37
- package/dist/es/node_modules/refractor/lang/objectivec.mjs +0 -23
- package/dist/es/node_modules/refractor/lang/ocaml.mjs +0 -64
- package/dist/es/node_modules/refractor/lang/opencl.mjs +0 -62
- package/dist/es/node_modules/refractor/lang/openqasm.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/oz.mjs +0 -37
- package/dist/es/node_modules/refractor/lang/parigp.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/parser.mjs +0 -80
- package/dist/es/node_modules/refractor/lang/pascal.mjs +0 -66
- package/dist/es/node_modules/refractor/lang/pascaligo.mjs +0 -70
- package/dist/es/node_modules/refractor/lang/pcaxis.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/peoplecode.mjs +0 -51
- package/dist/es/node_modules/refractor/lang/perl.mjs +0 -134
- package/dist/es/node_modules/refractor/lang/php-extras.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/php.mjs +0 -301
- package/dist/es/node_modules/refractor/lang/phpdoc.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/plsql.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/powerquery.mjs +0 -44
- package/dist/es/node_modules/refractor/lang/powershell.mjs +0 -58
- package/dist/es/node_modules/refractor/lang/processing.mjs +0 -25
- package/dist/es/node_modules/refractor/lang/prolog.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/promql.mjs +0 -74
- package/dist/es/node_modules/refractor/lang/properties.mjs +0 -21
- package/dist/es/node_modules/refractor/lang/protobuf.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/psl.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/pug.mjs +0 -173
- package/dist/es/node_modules/refractor/lang/puppet.mjs +0 -140
- package/dist/es/node_modules/refractor/lang/pure.mjs +0 -72
- package/dist/es/node_modules/refractor/lang/purebasic.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/purescript.mjs +0 -41
- package/dist/es/node_modules/refractor/lang/python.mjs +0 -73
- package/dist/es/node_modules/refractor/lang/q.mjs +0 -62
- package/dist/es/node_modules/refractor/lang/qml.mjs +0 -67
- package/dist/es/node_modules/refractor/lang/qore.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/qsharp.mjs +0 -93
- package/dist/es/node_modules/refractor/lang/r.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/racket.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/reason.mjs +0 -33
- package/dist/es/node_modules/refractor/lang/regex.mjs +0 -97
- package/dist/es/node_modules/refractor/lang/rego.mjs +0 -37
- package/dist/es/node_modules/refractor/lang/renpy.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/rest.mjs +0 -199
- package/dist/es/node_modules/refractor/lang/rip.mjs +0 -41
- package/dist/es/node_modules/refractor/lang/roboconf.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/robotframework.mjs +0 -95
- package/dist/es/node_modules/refractor/lang/ruby.mjs +0 -159
- package/dist/es/node_modules/refractor/lang/rust.mjs +0 -122
- package/dist/es/node_modules/refractor/lang/sas.mjs +0 -305
- package/dist/es/node_modules/refractor/lang/sass.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/scala.mjs +0 -59
- package/dist/es/node_modules/refractor/lang/scheme.mjs +0 -120
- package/dist/es/node_modules/refractor/lang/scss.mjs +0 -82
- package/dist/es/node_modules/refractor/lang/shell-session.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/smali.mjs +0 -84
- package/dist/es/node_modules/refractor/lang/smalltalk.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/smarty.mjs +0 -106
- package/dist/es/node_modules/refractor/lang/sml.mjs +0 -64
- package/dist/es/node_modules/refractor/lang/solidity.mjs +0 -28
- package/dist/es/node_modules/refractor/lang/solution-file.mjs +0 -58
- package/dist/es/node_modules/refractor/lang/soy.mjs +0 -77
- package/dist/es/node_modules/refractor/lang/sparql.mjs +0 -24
- package/dist/es/node_modules/refractor/lang/splunk-spl.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/sqf.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/sql.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/squirrel.mjs +0 -50
- package/dist/es/node_modules/refractor/lang/stan.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/stylus.mjs +0 -141
- package/dist/es/node_modules/refractor/lang/swift.mjs +0 -125
- package/dist/es/node_modules/refractor/lang/systemd.mjs +0 -65
- package/dist/es/node_modules/refractor/lang/t4-cs.mjs +0 -17
- package/dist/es/node_modules/refractor/lang/t4-templating.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/t4-vb.mjs +0 -17
- package/dist/es/node_modules/refractor/lang/tap.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/tcl.mjs +0 -51
- package/dist/es/node_modules/refractor/lang/textile.mjs +0 -248
- package/dist/es/node_modules/refractor/lang/toml.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/tremor.mjs +0 -67
- package/dist/es/node_modules/refractor/lang/tsx.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/tt2.mjs +0 -53
- package/dist/es/node_modules/refractor/lang/turtle.mjs +0 -62
- package/dist/es/node_modules/refractor/lang/twig.mjs +0 -48
- package/dist/es/node_modules/refractor/lang/typescript.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/typoscript.mjs +0 -81
- package/dist/es/node_modules/refractor/lang/unrealscript.mjs +0 -50
- package/dist/es/node_modules/refractor/lang/uorazor.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/uri.mjs +0 -92
- package/dist/es/node_modules/refractor/lang/v.mjs +0 -85
- package/dist/es/node_modules/refractor/lang/vala.mjs +0 -87
- package/dist/es/node_modules/refractor/lang/vbnet.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/velocity.mjs +0 -75
- package/dist/es/node_modules/refractor/lang/verilog.mjs +0 -38
- package/dist/es/node_modules/refractor/lang/vhdl.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/vim.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/visual-basic.mjs +0 -38
- package/dist/es/node_modules/refractor/lang/warpscript.mjs +0 -33
- package/dist/es/node_modules/refractor/lang/wasm.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/web-idl.mjs +0 -89
- package/dist/es/node_modules/refractor/lang/wiki.mjs +0 -86
- package/dist/es/node_modules/refractor/lang/wolfram.mjs +0 -37
- package/dist/es/node_modules/refractor/lang/wren.mjs +0 -97
- package/dist/es/node_modules/refractor/lang/xeora.mjs +0 -121
- package/dist/es/node_modules/refractor/lang/xml-doc.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/xojo.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/xquery.mjs +0 -89
- package/dist/es/node_modules/refractor/lang/yaml.mjs +0 -78
- package/dist/es/node_modules/refractor/lang/yang.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/zig.mjs +0 -80
- package/dist/es/node_modules/refractor/node_modules/comma-separated-tokens/index.mjs +0 -16
- package/dist/es/node_modules/refractor/node_modules/hastscript/factory.mjs +0 -77
- package/dist/es/node_modules/refractor/node_modules/hastscript/html.mjs +0 -8
- package/dist/es/node_modules/refractor/node_modules/hastscript/index.mjs +0 -5
- package/dist/es/node_modules/refractor/node_modules/prismjs/components/prism-core.mjs +0 -720
- package/dist/es/node_modules/refractor/node_modules/space-separated-tokens/index.mjs +0 -14
- package/dist/es/node_modules/rehype-external-links/lib/index.mjs +0 -34
- package/dist/es/node_modules/rehype-external-links/node_modules/is-absolute-url/index.mjs +0 -9
- package/dist/es/node_modules/rehype-external-links/node_modules/unist-util-visit/lib/index.mjs +0 -16
- package/dist/es/node_modules/rehype-katex/lib/index.mjs +0 -83
- package/dist/es/node_modules/remark-gfm/lib/index.mjs +0 -13
- package/dist/es/node_modules/remark-math/lib/index.mjs +0 -13
- package/dist/es/node_modules/remark-rehype/lib/index.mjs +0 -51
- package/dist/es/node_modules/space-separated-tokens/index.mjs +0 -11
- package/dist/es/node_modules/style-to-js/cjs/index.mjs +0 -22
- package/dist/es/node_modules/style-to-js/cjs/utilities.mjs +0 -18
- package/dist/es/node_modules/style-to-js/node_modules/inline-style-parser/index.mjs +0 -93
- package/dist/es/node_modules/style-to-js/node_modules/style-to-object/cjs/index.mjs +0 -25
- package/dist/es/node_modules/trim-lines/index.mjs +0 -25
- package/dist/es/node_modules/tslib/tslib.es6.mjs +0 -30
- package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +0 -123
- package/dist/es/node_modules/unified/lib/callable-instance.mjs +0 -25
- package/dist/es/node_modules/unified/lib/index.mjs +0 -525
- package/dist/es/node_modules/unified/node_modules/bail/index.mjs +0 -7
- package/dist/es/node_modules/unified/node_modules/is-plain-obj/index.mjs +0 -9
- package/dist/es/node_modules/unified/node_modules/trough/lib/index.mjs +0 -61
- package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +0 -32
- package/dist/es/node_modules/unist-util-is/lib/index.mjs +0 -81
- package/dist/es/node_modules/unist-util-position/lib/index.mjs +0 -26
- package/dist/es/node_modules/unist-util-stringify-position/lib/index.mjs +0 -15
- package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +0 -6
- package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +0 -56
- package/dist/es/node_modules/vfile/lib/index.mjs +0 -401
- package/dist/es/node_modules/vfile/lib/minpath.browser.mjs +0 -120
- package/dist/es/node_modules/vfile/lib/minproc.browser.mjs +0 -9
- package/dist/es/node_modules/vfile/lib/minurl.browser.mjs +0 -35
- package/dist/es/node_modules/vfile/lib/minurl.shared.mjs +0 -7
- package/dist/es/node_modules/vfile-message/lib/index.mjs +0 -106
- package/dist/es/node_modules/xtend/immutable.mjs +0 -12
- package/dist/es/packages/agent-cli-ui/package.json.mjs +0 -164
- package/dist/es/packages/react-components/dist/es/Iconfont/index.mjs +0 -8
- package/dist/es/packages/react-components/dist/es/components/Copy/index.mjs +0 -43
- package/dist/es/packages/react-components/dist/es/components/Markdown/ATag/index.mjs +0 -44
- package/dist/es/packages/react-components/dist/es/components/Markdown/Code/index.mjs +0 -64
- package/dist/es/packages/react-components/dist/es/components/Markdown/Image/index.mjs +0 -62
- package/dist/es/packages/react-components/dist/es/components/Markdown/Video/index.mjs +0 -19
- package/dist/es/packages/react-components/dist/es/components/Markdown/index.mjs +0 -80
- package/dist/es/packages/react-components/dist/es/index.mjs +0 -10
- package/dist/es/packages/react-components/dist/es/utils/clipboard.mjs +0 -38
- package/dist/es/packages/react-components/dist/es/utils/markdown/index.mjs +0 -29
- package/dist/es/src/global.css +0 -1
- package/dist/es/src/image-viewer.css +0 -1
- package/dist/es/src/katex.min.css +0 -1
- package/dist/es/src/mask.css +0 -1
- package/dist/es/src/safe-area.css +0 -1
- package/dist/es/src/style.css +0 -1
- package/dist/es/src/style10.css +0 -1
- package/dist/es/src/style11.css +0 -1
- package/dist/es/src/style12.css +0 -1
- package/dist/es/src/style13.css +0 -1
- package/dist/es/src/style14.css +0 -1
- package/dist/es/src/style15.css +0 -1
- package/dist/es/src/style16.css +0 -1
- package/dist/es/src/style17.css +0 -1
- package/dist/es/src/style18.css +0 -1
- package/dist/es/src/style19.css +0 -1
- package/dist/es/src/style2.css +0 -1
- package/dist/es/src/style20.css +0 -1
- package/dist/es/src/style21.css +0 -1
- package/dist/es/src/style22.css +0 -1
- package/dist/es/src/style23.css +0 -1
- package/dist/es/src/style24.css +0 -1
- package/dist/es/src/style25.css +0 -1
- package/dist/es/src/style26.css +0 -1
- package/dist/es/src/style27.css +0 -1
- package/dist/es/src/style28.css +0 -1
- package/dist/es/src/style29.css +0 -1
- package/dist/es/src/style3.css +0 -1
- package/dist/es/src/style30.css +0 -1
- package/dist/es/src/style31.css +0 -1
- package/dist/es/src/style32.css +0 -1
- package/dist/es/src/style33.css +0 -1
- package/dist/es/src/style4.css +0 -1
- package/dist/es/src/style5.css +0 -1
- package/dist/es/src/style6.css +0 -1
- package/dist/es/src/style7.css +0 -1
- package/dist/es/src/style8.css +0 -1
- package/dist/es/src/style9.css +0 -1
- package/dist/es/types.mjs +0 -4
- package/dist/es/utils/antdConfig.mjs +0 -15
- package/dist/es/utils/index.mjs +0 -41
- package/dist/es/utils/scopedMessage.mjs +0 -29
- package/dist/lib/index.css +0 -1
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/fetch.d.ts +0 -44
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/index.d.ts +0 -1
- package/dist/src/ReactTextGenerationUI/components/fetchEventSourcea/parse.d.ts +0 -36
- package/dist/src/utils/reactCompatibility.d.ts +0 -27
- package/dist/src/utils/testAntdPrefix.d.ts +0 -3
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
function M(r, u, e) {
|
|
2
|
-
return Math.max(u, Math.min(r, e));
|
|
3
|
-
}
|
|
4
|
-
const y = {
|
|
5
|
-
toVector(r, u) {
|
|
6
|
-
return r === void 0 && (r = u), Array.isArray(r) ? r : [r, r];
|
|
7
|
-
},
|
|
8
|
-
add(r, u) {
|
|
9
|
-
return [r[0] + u[0], r[1] + u[1]];
|
|
10
|
-
},
|
|
11
|
-
sub(r, u) {
|
|
12
|
-
return [r[0] - u[0], r[1] - u[1]];
|
|
13
|
-
},
|
|
14
|
-
addTo(r, u) {
|
|
15
|
-
r[0] += u[0], r[1] += u[1];
|
|
16
|
-
},
|
|
17
|
-
subTo(r, u) {
|
|
18
|
-
r[0] -= u[0], r[1] -= u[1];
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
function b(r, u, e) {
|
|
22
|
-
return u === 0 || Math.abs(u) === 1 / 0 ? Math.pow(r, e * 5) : r * u * e / (u + e * r);
|
|
23
|
-
}
|
|
24
|
-
function t(r, u, e, f = 0.15) {
|
|
25
|
-
return f === 0 ? M(r, u, e) : r < u ? -b(u - r, e - u, f) + u : r > e ? +b(r - e, e - u, f) + e : r;
|
|
26
|
-
}
|
|
27
|
-
function A(r, [u, e], [f, a]) {
|
|
28
|
-
const [[d, c], [h, n]] = r;
|
|
29
|
-
return [t(u, d, c, f), t(e, h, n, a)];
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
y as V,
|
|
33
|
-
A as c,
|
|
34
|
-
t as r
|
|
35
|
-
};
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import { a as f, i as E, b as y, E as m, _ as p, c as O, p as P, d as I, C as b, t as T, S as j } from "./actions-fe213e88.esm.mjs";
|
|
2
|
-
function M(e, t) {
|
|
3
|
-
if (e == null)
|
|
4
|
-
return {};
|
|
5
|
-
var s = {}, n = Object.keys(e), r, i;
|
|
6
|
-
for (i = 0; i < n.length; i++)
|
|
7
|
-
r = n[i], !(t.indexOf(r) >= 0) && (s[r] = e[r]);
|
|
8
|
-
return s;
|
|
9
|
-
}
|
|
10
|
-
function k(e, t) {
|
|
11
|
-
if (e == null)
|
|
12
|
-
return {};
|
|
13
|
-
var s = M(e, t), n, r;
|
|
14
|
-
if (Object.getOwnPropertySymbols) {
|
|
15
|
-
var i = Object.getOwnPropertySymbols(e);
|
|
16
|
-
for (r = 0; r < i.length; r++)
|
|
17
|
-
n = i[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (s[n] = e[n]);
|
|
18
|
-
}
|
|
19
|
-
return s;
|
|
20
|
-
}
|
|
21
|
-
const H = {
|
|
22
|
-
target(e) {
|
|
23
|
-
if (e)
|
|
24
|
-
return () => "current" in e ? e.current : e;
|
|
25
|
-
},
|
|
26
|
-
enabled(e = !0) {
|
|
27
|
-
return e;
|
|
28
|
-
},
|
|
29
|
-
window(e = j.isBrowser ? window : void 0) {
|
|
30
|
-
return e;
|
|
31
|
-
},
|
|
32
|
-
eventOptions({
|
|
33
|
-
passive: e = !0,
|
|
34
|
-
capture: t = !1
|
|
35
|
-
} = {}) {
|
|
36
|
-
return {
|
|
37
|
-
passive: e,
|
|
38
|
-
capture: t
|
|
39
|
-
};
|
|
40
|
-
},
|
|
41
|
-
transform(e) {
|
|
42
|
-
return e;
|
|
43
|
-
}
|
|
44
|
-
}, R = ["target", "eventOptions", "window", "enabled", "transform"];
|
|
45
|
-
function g(e = {}, t) {
|
|
46
|
-
const s = {};
|
|
47
|
-
for (const [n, r] of Object.entries(t))
|
|
48
|
-
switch (typeof r) {
|
|
49
|
-
case "function":
|
|
50
|
-
s[n] = r.call(s, e[n], n, e);
|
|
51
|
-
break;
|
|
52
|
-
case "object":
|
|
53
|
-
s[n] = g(e[n], r);
|
|
54
|
-
break;
|
|
55
|
-
case "boolean":
|
|
56
|
-
r && (s[n] = e[n]);
|
|
57
|
-
break;
|
|
58
|
-
}
|
|
59
|
-
return s;
|
|
60
|
-
}
|
|
61
|
-
function W(e, t, s = {}) {
|
|
62
|
-
const n = e, {
|
|
63
|
-
target: r,
|
|
64
|
-
eventOptions: i,
|
|
65
|
-
window: o,
|
|
66
|
-
enabled: c,
|
|
67
|
-
transform: u
|
|
68
|
-
} = n, a = k(n, R);
|
|
69
|
-
if (s.shared = g({
|
|
70
|
-
target: r,
|
|
71
|
-
eventOptions: i,
|
|
72
|
-
window: o,
|
|
73
|
-
enabled: c,
|
|
74
|
-
transform: u
|
|
75
|
-
}, H), t) {
|
|
76
|
-
const h = b.get(t);
|
|
77
|
-
s[t] = g(p({
|
|
78
|
-
shared: s.shared
|
|
79
|
-
}, a), h);
|
|
80
|
-
} else
|
|
81
|
-
for (const h in a) {
|
|
82
|
-
const v = b.get(h);
|
|
83
|
-
v && (s[h] = g(p({
|
|
84
|
-
shared: s.shared
|
|
85
|
-
}, a[h]), v));
|
|
86
|
-
}
|
|
87
|
-
return s;
|
|
88
|
-
}
|
|
89
|
-
class _ {
|
|
90
|
-
constructor(t, s) {
|
|
91
|
-
f(this, "_listeners", /* @__PURE__ */ new Set()), this._ctrl = t, this._gestureKey = s;
|
|
92
|
-
}
|
|
93
|
-
add(t, s, n, r, i) {
|
|
94
|
-
const o = this._listeners, c = T(s, n), u = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {}, a = p(p({}, u), i);
|
|
95
|
-
t.addEventListener(c, r, a);
|
|
96
|
-
const h = () => {
|
|
97
|
-
t.removeEventListener(c, r, a), o.delete(h);
|
|
98
|
-
};
|
|
99
|
-
return o.add(h), h;
|
|
100
|
-
}
|
|
101
|
-
clean() {
|
|
102
|
-
this._listeners.forEach((t) => t()), this._listeners.clear();
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
class x {
|
|
106
|
-
constructor() {
|
|
107
|
-
f(this, "_timeouts", /* @__PURE__ */ new Map());
|
|
108
|
-
}
|
|
109
|
-
add(t, s, n = 140, ...r) {
|
|
110
|
-
this.remove(t), this._timeouts.set(t, window.setTimeout(s, n, ...r));
|
|
111
|
-
}
|
|
112
|
-
remove(t) {
|
|
113
|
-
const s = this._timeouts.get(t);
|
|
114
|
-
s && window.clearTimeout(s);
|
|
115
|
-
}
|
|
116
|
-
clean() {
|
|
117
|
-
this._timeouts.forEach((t) => void window.clearTimeout(t)), this._timeouts.clear();
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
class F {
|
|
121
|
-
constructor(t) {
|
|
122
|
-
f(this, "gestures", /* @__PURE__ */ new Set()), f(this, "_targetEventStore", new _(this)), f(this, "gestureEventStores", {}), f(this, "gestureTimeoutStores", {}), f(this, "handlers", {}), f(this, "config", {}), f(this, "pointerIds", /* @__PURE__ */ new Set()), f(this, "touchIds", /* @__PURE__ */ new Set()), f(this, "state", {
|
|
123
|
-
shared: {
|
|
124
|
-
shiftKey: !1,
|
|
125
|
-
metaKey: !1,
|
|
126
|
-
ctrlKey: !1,
|
|
127
|
-
altKey: !1
|
|
128
|
-
}
|
|
129
|
-
}), D(this, t);
|
|
130
|
-
}
|
|
131
|
-
setEventIds(t) {
|
|
132
|
-
if (E(t))
|
|
133
|
-
return this.touchIds = new Set(y(t)), this.touchIds;
|
|
134
|
-
if ("pointerId" in t)
|
|
135
|
-
return t.type === "pointerup" || t.type === "pointercancel" ? this.pointerIds.delete(t.pointerId) : t.type === "pointerdown" && this.pointerIds.add(t.pointerId), this.pointerIds;
|
|
136
|
-
}
|
|
137
|
-
applyHandlers(t, s) {
|
|
138
|
-
this.handlers = t, this.nativeHandlers = s;
|
|
139
|
-
}
|
|
140
|
-
applyConfig(t, s) {
|
|
141
|
-
this.config = W(t, s, this.config);
|
|
142
|
-
}
|
|
143
|
-
clean() {
|
|
144
|
-
this._targetEventStore.clean();
|
|
145
|
-
for (const t of this.gestures)
|
|
146
|
-
this.gestureEventStores[t].clean(), this.gestureTimeoutStores[t].clean();
|
|
147
|
-
}
|
|
148
|
-
effect() {
|
|
149
|
-
return this.config.shared.target && this.bind(), () => this._targetEventStore.clean();
|
|
150
|
-
}
|
|
151
|
-
bind(...t) {
|
|
152
|
-
const s = this.config.shared, n = {};
|
|
153
|
-
let r;
|
|
154
|
-
if (!(s.target && (r = s.target(), !r))) {
|
|
155
|
-
if (s.enabled) {
|
|
156
|
-
for (const o of this.gestures) {
|
|
157
|
-
const c = this.config[o], u = S(n, c.eventOptions, !!r);
|
|
158
|
-
if (c.enabled) {
|
|
159
|
-
const a = m.get(o);
|
|
160
|
-
new a(this, t, o).bind(u);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
const i = S(n, s.eventOptions, !!r);
|
|
164
|
-
for (const o in this.nativeHandlers)
|
|
165
|
-
i(o, "", (c) => this.nativeHandlers[o](p(p({}, this.state.shared), {}, {
|
|
166
|
-
event: c,
|
|
167
|
-
args: t
|
|
168
|
-
})), void 0, !0);
|
|
169
|
-
}
|
|
170
|
-
for (const i in n)
|
|
171
|
-
n[i] = O(...n[i]);
|
|
172
|
-
if (!r)
|
|
173
|
-
return n;
|
|
174
|
-
for (const i in n) {
|
|
175
|
-
const {
|
|
176
|
-
device: o,
|
|
177
|
-
capture: c,
|
|
178
|
-
passive: u
|
|
179
|
-
} = P(i);
|
|
180
|
-
this._targetEventStore.add(r, o, "", n[i], {
|
|
181
|
-
capture: c,
|
|
182
|
-
passive: u
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
function d(e, t) {
|
|
189
|
-
e.gestures.add(t), e.gestureEventStores[t] = new _(e, t), e.gestureTimeoutStores[t] = new x();
|
|
190
|
-
}
|
|
191
|
-
function D(e, t) {
|
|
192
|
-
t.drag && d(e, "drag"), t.wheel && d(e, "wheel"), t.scroll && d(e, "scroll"), t.move && d(e, "move"), t.pinch && d(e, "pinch"), t.hover && d(e, "hover");
|
|
193
|
-
}
|
|
194
|
-
const S = (e, t, s) => (n, r, i, o = {}, c = !1) => {
|
|
195
|
-
var u, a;
|
|
196
|
-
const h = (u = o.capture) !== null && u !== void 0 ? u : t.capture, v = (a = o.passive) !== null && a !== void 0 ? a : t.passive;
|
|
197
|
-
let w = c ? n : I(n, r, h);
|
|
198
|
-
s && v && (w += "Passive"), e[w] = e[w] || [], e[w].push(i);
|
|
199
|
-
}, G = /^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;
|
|
200
|
-
function L(e) {
|
|
201
|
-
const t = {}, s = {}, n = /* @__PURE__ */ new Set();
|
|
202
|
-
for (let r in e)
|
|
203
|
-
G.test(r) ? (n.add(RegExp.lastMatch), s[r] = e[r]) : t[r] = e[r];
|
|
204
|
-
return [s, t, n];
|
|
205
|
-
}
|
|
206
|
-
function l(e, t, s, n, r, i) {
|
|
207
|
-
if (!e.has(s) || !m.has(n))
|
|
208
|
-
return;
|
|
209
|
-
const o = s + "Start", c = s + "End", u = (a) => {
|
|
210
|
-
let h;
|
|
211
|
-
return a.first && o in t && t[o](a), s in t && (h = t[s](a)), a.last && c in t && t[c](a), h;
|
|
212
|
-
};
|
|
213
|
-
r[n] = u, i[n] = i[n] || {};
|
|
214
|
-
}
|
|
215
|
-
function K(e, t) {
|
|
216
|
-
const [s, n, r] = L(e), i = {};
|
|
217
|
-
return l(r, s, "onDrag", "drag", i, t), l(r, s, "onWheel", "wheel", i, t), l(r, s, "onScroll", "scroll", i, t), l(r, s, "onPinch", "pinch", i, t), l(r, s, "onMove", "move", i, t), l(r, s, "onHover", "hover", i, t), {
|
|
218
|
-
handlers: i,
|
|
219
|
-
config: t,
|
|
220
|
-
nativeHandlers: n
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
export {
|
|
224
|
-
F as Controller,
|
|
225
|
-
K as parseMergedHandlers
|
|
226
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import i from "react";
|
|
2
|
-
import { Controller as c, parseMergedHandlers as d } from "../../core/dist/use-gesture-core.esm.mjs";
|
|
3
|
-
import { r as a, e as p } from "../../core/dist/actions-fe213e88.esm.mjs";
|
|
4
|
-
import { C as A, E as H, f as R } from "../../core/dist/actions-fe213e88.esm.mjs";
|
|
5
|
-
function f(r, n = {}, t, o) {
|
|
6
|
-
const e = i.useMemo(() => new c(r), []);
|
|
7
|
-
if (e.applyHandlers(r, o), e.applyConfig(n, t), i.useEffect(e.effect.bind(e)), i.useEffect(() => e.clean.bind(e), []), n.target === void 0)
|
|
8
|
-
return e.bind.bind(e);
|
|
9
|
-
}
|
|
10
|
-
function E(r, n) {
|
|
11
|
-
return a(p), f({
|
|
12
|
-
drag: r
|
|
13
|
-
}, n || {}, "drag");
|
|
14
|
-
}
|
|
15
|
-
function b(r) {
|
|
16
|
-
return r.forEach(a), function(t, o) {
|
|
17
|
-
const {
|
|
18
|
-
handlers: e,
|
|
19
|
-
nativeHandlers: s,
|
|
20
|
-
config: u
|
|
21
|
-
} = d(t, o || {});
|
|
22
|
-
return f(e, u, void 0, s);
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
A as ConfigResolverMap,
|
|
27
|
-
H as EngineMap,
|
|
28
|
-
b as createUseGesture,
|
|
29
|
-
p as dragAction,
|
|
30
|
-
R as pinchAction,
|
|
31
|
-
a as registerAction,
|
|
32
|
-
E as useDrag
|
|
33
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import e, { useContext as n } from "react";
|
|
2
|
-
import o from "../../locales/zh-CN.mjs";
|
|
3
|
-
const r = {
|
|
4
|
-
current: {
|
|
5
|
-
locale: o
|
|
6
|
-
}
|
|
7
|
-
};
|
|
8
|
-
function u() {
|
|
9
|
-
return r.current;
|
|
10
|
-
}
|
|
11
|
-
const f = e.createContext(null);
|
|
12
|
-
function l() {
|
|
13
|
-
var t;
|
|
14
|
-
return (t = n(f)) !== null && t !== void 0 ? t : u();
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
r as defaultConfigRef,
|
|
18
|
-
u as getDefaultConfig,
|
|
19
|
-
l as useConfig
|
|
20
|
-
};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import u from "classnames";
|
|
2
|
-
import a, { forwardRef as _, useState as y, useRef as R, useImperativeHandle as I, useCallback as S } from "react";
|
|
3
|
-
import { renderToContainer as g } from "../../utils/render-to-container.mjs";
|
|
4
|
-
import { mergeProps as p } from "../../utils/with-default-props.mjs";
|
|
5
|
-
/* empty css */import { Mask as C } from "../mask/mask.mjs";
|
|
6
|
-
/* empty css */import { SafeArea as b } from "../safe-area/safe-area.mjs";
|
|
7
|
-
import { Slide as h } from "./slide.mjs";
|
|
8
|
-
import { Slides as k } from "./slides.mjs";
|
|
9
|
-
const m = "adm-image-viewer", x = {
|
|
10
|
-
maxZoom: 3,
|
|
11
|
-
getContainer: null,
|
|
12
|
-
visible: !1
|
|
13
|
-
}, A = (d) => {
|
|
14
|
-
var s, t, i;
|
|
15
|
-
const o = p(x, d), e = a.createElement(C, {
|
|
16
|
-
visible: o.visible,
|
|
17
|
-
disableBodyScroll: !1,
|
|
18
|
-
opacity: "thick",
|
|
19
|
-
afterClose: o.afterClose,
|
|
20
|
-
destroyOnClose: !0,
|
|
21
|
-
className: (s = o == null ? void 0 : o.classNames) === null || s === void 0 ? void 0 : s.mask
|
|
22
|
-
}, a.createElement("div", {
|
|
23
|
-
className: u(`${m}-content`, (t = o == null ? void 0 : o.classNames) === null || t === void 0 ? void 0 : t.body)
|
|
24
|
-
}, (o.image || typeof o.imageRender == "function") && a.createElement(h, {
|
|
25
|
-
image: o.image,
|
|
26
|
-
onTap: o.onClose,
|
|
27
|
-
maxZoom: o.maxZoom,
|
|
28
|
-
imageRender: o.imageRender
|
|
29
|
-
})), o.image && a.createElement("div", {
|
|
30
|
-
className: `${m}-footer`
|
|
31
|
-
}, (i = o.renderFooter) === null || i === void 0 ? void 0 : i.call(o, o.image), a.createElement(b, {
|
|
32
|
-
position: "bottom"
|
|
33
|
-
})));
|
|
34
|
-
return g(o.getContainer, e);
|
|
35
|
-
}, T = Object.assign(Object.assign({}, x), {
|
|
36
|
-
defaultIndex: 0
|
|
37
|
-
}), D = _((d, s) => {
|
|
38
|
-
var t, i, o;
|
|
39
|
-
const e = p(T, d), [n, v] = y(e.defaultIndex), f = R(null);
|
|
40
|
-
I(s, () => ({
|
|
41
|
-
swipeTo: (l, r) => {
|
|
42
|
-
var c;
|
|
43
|
-
v(l), (c = f.current) === null || c === void 0 || c.swipeTo(l, r);
|
|
44
|
-
}
|
|
45
|
-
}));
|
|
46
|
-
const N = S((l) => {
|
|
47
|
-
var r;
|
|
48
|
-
l !== n && (v(l), (r = e.onIndexChange) === null || r === void 0 || r.call(e, l));
|
|
49
|
-
}, [e.onIndexChange, n]), E = a.createElement(C, {
|
|
50
|
-
visible: e.visible,
|
|
51
|
-
disableBodyScroll: !1,
|
|
52
|
-
opacity: "thick",
|
|
53
|
-
afterClose: e.afterClose,
|
|
54
|
-
destroyOnClose: !0,
|
|
55
|
-
className: (t = e == null ? void 0 : e.classNames) === null || t === void 0 ? void 0 : t.mask
|
|
56
|
-
}, a.createElement("div", {
|
|
57
|
-
className: u(`${m}-content`, (i = e == null ? void 0 : e.classNames) === null || i === void 0 ? void 0 : i.body)
|
|
58
|
-
}, e.images && a.createElement(k, {
|
|
59
|
-
ref: f,
|
|
60
|
-
defaultIndex: n,
|
|
61
|
-
onIndexChange: N,
|
|
62
|
-
images: e.images,
|
|
63
|
-
onTap: e.onClose,
|
|
64
|
-
maxZoom: e.maxZoom,
|
|
65
|
-
imageRender: e.imageRender
|
|
66
|
-
})), e.images && a.createElement("div", {
|
|
67
|
-
className: `${m}-footer`
|
|
68
|
-
}, (o = e.renderFooter) === null || o === void 0 ? void 0 : o.call(e, e.images[n], n), a.createElement(b, {
|
|
69
|
-
position: "bottom"
|
|
70
|
-
})));
|
|
71
|
-
return g(e.getContainer, E);
|
|
72
|
-
});
|
|
73
|
-
export {
|
|
74
|
-
A as ImageViewer,
|
|
75
|
-
D as MultiImageViewer
|
|
76
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/* empty css */import { attachPropertiesToComponent as e } from "../../utils/attach-properties-to-component.mjs";
|
|
2
|
-
import { ImageViewer as o, MultiImageViewer as r } from "./image-viewer.mjs";
|
|
3
|
-
import { showImageViewer as t, clearImageViewer as i, showMultiImageViewer as m } from "./methods.mjs";
|
|
4
|
-
const a = e(r, {
|
|
5
|
-
show: m
|
|
6
|
-
}), c = e(o, {
|
|
7
|
-
Multi: a,
|
|
8
|
-
show: t,
|
|
9
|
-
clear: i
|
|
10
|
-
});
|
|
11
|
-
export {
|
|
12
|
-
c as default
|
|
13
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import l from "react";
|
|
2
|
-
import { ImageViewer as i, MultiImageViewer as c } from "./image-viewer.mjs";
|
|
3
|
-
import { renderImperatively as n } from "../../utils/render-imperatively.mjs";
|
|
4
|
-
const r = /* @__PURE__ */ new Set();
|
|
5
|
-
function s(e) {
|
|
6
|
-
o();
|
|
7
|
-
const t = n(l.createElement(i, Object.assign({}, e, {
|
|
8
|
-
afterClose: () => {
|
|
9
|
-
var a;
|
|
10
|
-
r.delete(t), (a = e.afterClose) === null || a === void 0 || a.call(e);
|
|
11
|
-
}
|
|
12
|
-
})));
|
|
13
|
-
return r.add(t), t;
|
|
14
|
-
}
|
|
15
|
-
function u(e) {
|
|
16
|
-
o();
|
|
17
|
-
const t = n(l.createElement(c, Object.assign({}, e, {
|
|
18
|
-
afterClose: () => {
|
|
19
|
-
var a;
|
|
20
|
-
r.delete(t), (a = e.afterClose) === null || a === void 0 || a.call(e);
|
|
21
|
-
}
|
|
22
|
-
})));
|
|
23
|
-
return r.add(t), t;
|
|
24
|
-
}
|
|
25
|
-
function o() {
|
|
26
|
-
r.forEach((e) => {
|
|
27
|
-
e.close();
|
|
28
|
-
}), r.clear();
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
o as clearImageViewer,
|
|
32
|
-
s as showImageViewer,
|
|
33
|
-
u as showMultiImageViewer
|
|
34
|
-
};
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { a as H } from "../../../../@react-spring/web/dist/react-spring-web.esm.mjs";
|
|
2
|
-
import { useSize as $ } from "ahooks";
|
|
3
|
-
import y, { useRef as R } from "react";
|
|
4
|
-
import { bound as w } from "../../utils/bound.mjs";
|
|
5
|
-
import { getScaleX as Y, create as T, getTranslateX as k, getTranslateY as A, translate as b, scale as W, apply as C } from "../../utils/matrix.mjs";
|
|
6
|
-
import { rubberbandIfOutOfBounds as B } from "../../utils/rubberband.mjs";
|
|
7
|
-
import { useDragAndPinch as j } from "../../utils/use-drag-and-pinch.mjs";
|
|
8
|
-
import { useSpring as q } from "../../../../@react-spring/core/dist/react-spring-core.esm.mjs";
|
|
9
|
-
const z = "adm-image-viewer", et = (d) => {
|
|
10
|
-
const {
|
|
11
|
-
dragLockRef: g,
|
|
12
|
-
maxZoom: I,
|
|
13
|
-
imageRender: E,
|
|
14
|
-
index: D
|
|
15
|
-
} = d, L = R([]), S = R(null), M = R(null), [{
|
|
16
|
-
matrix: u
|
|
17
|
-
}, p] = q(() => ({
|
|
18
|
-
matrix: T(),
|
|
19
|
-
config: {
|
|
20
|
-
tension: 200
|
|
21
|
-
}
|
|
22
|
-
})), n = $(S), s = $(M), O = R(!1), Z = (t) => {
|
|
23
|
-
if (!n || !s)
|
|
24
|
-
return {
|
|
25
|
-
x: {
|
|
26
|
-
position: 0,
|
|
27
|
-
minX: 0,
|
|
28
|
-
maxX: 0
|
|
29
|
-
},
|
|
30
|
-
y: {
|
|
31
|
-
position: 0,
|
|
32
|
-
minY: 0,
|
|
33
|
-
maxY: 0
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
const r = -n.width / 2, c = -n.height / 2, e = -s.width / 2, o = -s.height / 2, a = Y(t), m = a * s.width, l = a * s.height, f = r - (m - n.width), i = r, X = c - (l - n.height), v = c, [h, x] = C(t, [e, o]);
|
|
37
|
-
return {
|
|
38
|
-
x: {
|
|
39
|
-
position: h,
|
|
40
|
-
minX: f,
|
|
41
|
-
maxX: i
|
|
42
|
-
},
|
|
43
|
-
y: {
|
|
44
|
-
position: x,
|
|
45
|
-
minY: X,
|
|
46
|
-
maxY: v
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
}, _ = (t, r, c, e = 0) => [t <= r - e, t >= c + e], N = (t, r, c = !1) => {
|
|
50
|
-
if (!n || !s)
|
|
51
|
-
return t;
|
|
52
|
-
const e = Y(t), o = e * s.width, a = e * s.height, {
|
|
53
|
-
x: {
|
|
54
|
-
position: m,
|
|
55
|
-
minX: l,
|
|
56
|
-
maxX: f
|
|
57
|
-
},
|
|
58
|
-
y: {
|
|
59
|
-
position: i,
|
|
60
|
-
minY: X,
|
|
61
|
-
maxY: v
|
|
62
|
-
}
|
|
63
|
-
} = Z(t);
|
|
64
|
-
if (r === "translate") {
|
|
65
|
-
let h = m, x = i;
|
|
66
|
-
return o > n.width ? h = c ? w(m, l, f) : B(m, l, f, e * 50) : h = -o / 2, a > n.height ? x = c ? w(i, X, v) : B(i, X, v, e * 50) : x = -a / 2, b(t, h - m, x - i);
|
|
67
|
-
}
|
|
68
|
-
if (r === "scale" && c) {
|
|
69
|
-
const [h, x] = [o > n.width ? w(m, l, f) : -o / 2, a > n.height ? w(i, X, v) : -a / 2];
|
|
70
|
-
return b(t, h - m, x - i);
|
|
71
|
-
}
|
|
72
|
-
return t;
|
|
73
|
-
};
|
|
74
|
-
j({
|
|
75
|
-
onDrag: (t) => {
|
|
76
|
-
var r;
|
|
77
|
-
if (t.first) {
|
|
78
|
-
const {
|
|
79
|
-
x: {
|
|
80
|
-
position: e,
|
|
81
|
-
minX: o,
|
|
82
|
-
maxX: a
|
|
83
|
-
}
|
|
84
|
-
} = Z(u.get());
|
|
85
|
-
L.current = _(e, o, a);
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
if (t.pinching)
|
|
89
|
-
return t.cancel();
|
|
90
|
-
if (t.tap && t.elapsedTime > 0 && t.elapsedTime < 1e3) {
|
|
91
|
-
(r = d.onTap) === null || r === void 0 || r.call(d);
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
const c = Y(u.get());
|
|
95
|
-
if (g && (g.current = c !== 1), !O.current && c <= 1)
|
|
96
|
-
p.start({
|
|
97
|
-
matrix: T()
|
|
98
|
-
});
|
|
99
|
-
else {
|
|
100
|
-
const e = u.get(), o = [t.offset[0] - k(e), t.offset[1] - A(e)], a = b(e, ...t.last ? [o[0] + t.velocity[0] * t.direction[0] * 200, o[1] + t.velocity[1] * t.direction[1] * 200] : o);
|
|
101
|
-
p.start({
|
|
102
|
-
matrix: N(a, "translate", t.last),
|
|
103
|
-
immediate: !t.last
|
|
104
|
-
});
|
|
105
|
-
const {
|
|
106
|
-
x: {
|
|
107
|
-
position: m,
|
|
108
|
-
minX: l,
|
|
109
|
-
maxX: f
|
|
110
|
-
}
|
|
111
|
-
} = Z(a);
|
|
112
|
-
t.last && L.current.some((i) => i) && _(m, l, f).some((i) => i) && (g && (g.current = !1), p.start({
|
|
113
|
-
matrix: T()
|
|
114
|
-
}));
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
onPinch: (t) => {
|
|
118
|
-
var r;
|
|
119
|
-
O.current = !t.last;
|
|
120
|
-
const [c] = t.offset;
|
|
121
|
-
if (c < 0)
|
|
122
|
-
return;
|
|
123
|
-
let e;
|
|
124
|
-
I === "auto" ? e = n && s ? Math.max(n.height / s.height, n.width / s.width) : 1 : e = I;
|
|
125
|
-
const o = t.last ? w(c, 1, e) : c;
|
|
126
|
-
if ((r = d.onZoomChange) === null || r === void 0 || r.call(d, o), t.last && o <= 1)
|
|
127
|
-
p.start({
|
|
128
|
-
matrix: T()
|
|
129
|
-
}), g && (g.current = !1);
|
|
130
|
-
else {
|
|
131
|
-
if (!n)
|
|
132
|
-
return;
|
|
133
|
-
const a = u.get(), m = Y(a), l = t.origin[0] - n.width / 2, f = t.origin[1] - n.height / 2;
|
|
134
|
-
let i = b(a, -l, -f);
|
|
135
|
-
i = W(i, o / m), i = b(i, l, f), p.start({
|
|
136
|
-
matrix: N(i, "scale", t.last),
|
|
137
|
-
immediate: !t.last
|
|
138
|
-
}), g && (g.current = !0);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}, {
|
|
142
|
-
target: S,
|
|
143
|
-
drag: {
|
|
144
|
-
from: () => [k(u.get()), A(u.get())],
|
|
145
|
-
pointer: {
|
|
146
|
-
touch: !0
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
pinch: {
|
|
150
|
-
from: () => [Y(u.get()), 0],
|
|
151
|
-
pointer: {
|
|
152
|
-
touch: !0
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
const P = typeof E == "function" && E(d.image, {
|
|
157
|
-
index: D
|
|
158
|
-
});
|
|
159
|
-
return y.createElement("div", {
|
|
160
|
-
className: `${z}-slide`
|
|
161
|
-
}, y.createElement("div", {
|
|
162
|
-
className: `${z}-control`,
|
|
163
|
-
ref: S
|
|
164
|
-
}, y.createElement(H.div, {
|
|
165
|
-
className: `${z}-image-wrapper`,
|
|
166
|
-
style: {
|
|
167
|
-
matrix: u
|
|
168
|
-
}
|
|
169
|
-
}, P || y.createElement("img", {
|
|
170
|
-
ref: M,
|
|
171
|
-
src: d.image,
|
|
172
|
-
draggable: !1,
|
|
173
|
-
alt: d.image
|
|
174
|
-
}))));
|
|
175
|
-
};
|
|
176
|
-
export {
|
|
177
|
-
et as Slide
|
|
178
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { a as x } from "../../../../@react-spring/web/dist/react-spring-web.esm.mjs";
|
|
2
|
-
import { useDrag as b } from "../../../../@use-gesture/react/dist/use-gesture-react.esm.mjs";
|
|
3
|
-
import s, { forwardRef as R, useImperativeHandle as w, useRef as I } from "react";
|
|
4
|
-
import { bound as c } from "../../utils/bound.mjs";
|
|
5
|
-
import { convertPx as M } from "../../utils/convert-px.mjs";
|
|
6
|
-
import { Slide as $ } from "./slide.mjs";
|
|
7
|
-
import { useSpring as y } from "../../../../@react-spring/core/dist/react-spring-core.esm.mjs";
|
|
8
|
-
const f = "adm-image-viewer", _ = R((o, g) => {
|
|
9
|
-
const n = window.innerWidth + M(16), [{
|
|
10
|
-
x: r
|
|
11
|
-
}, d] = y(() => ({
|
|
12
|
-
x: o.defaultIndex * n,
|
|
13
|
-
config: {
|
|
14
|
-
tension: 250,
|
|
15
|
-
clamp: !0
|
|
16
|
-
}
|
|
17
|
-
})), m = o.images.length;
|
|
18
|
-
function l(e, t = !1) {
|
|
19
|
-
var i;
|
|
20
|
-
const a = c(e, 0, m - 1);
|
|
21
|
-
(i = o.onIndexChange) === null || i === void 0 || i.call(o, a), d.start({
|
|
22
|
-
x: a * n,
|
|
23
|
-
immediate: t
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
w(g, () => ({
|
|
27
|
-
swipeTo: l
|
|
28
|
-
}));
|
|
29
|
-
const u = I(!1), h = b((e) => {
|
|
30
|
-
if (u.current)
|
|
31
|
-
return;
|
|
32
|
-
const [t] = e.offset;
|
|
33
|
-
if (e.last) {
|
|
34
|
-
const i = Math.floor(t / n), a = i + 1, v = Math.min(e.velocity[0] * 2e3, n) * e.direction[0];
|
|
35
|
-
l(c(Math.round((t + v) / n), i, a));
|
|
36
|
-
} else
|
|
37
|
-
d.start({
|
|
38
|
-
x: t,
|
|
39
|
-
immediate: !0
|
|
40
|
-
});
|
|
41
|
-
}, {
|
|
42
|
-
transform: ([e, t]) => [-e, t],
|
|
43
|
-
from: () => [r.get(), 0],
|
|
44
|
-
bounds: () => ({
|
|
45
|
-
left: 0,
|
|
46
|
-
right: (m - 1) * n
|
|
47
|
-
}),
|
|
48
|
-
rubberband: !0,
|
|
49
|
-
axis: "x",
|
|
50
|
-
pointer: {
|
|
51
|
-
touch: !0
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
return s.createElement("div", Object.assign({
|
|
55
|
-
className: `${f}-slides`
|
|
56
|
-
}, h()), s.createElement(x.div, {
|
|
57
|
-
className: `${f}-indicator`
|
|
58
|
-
}, r.to((e) => `${c(Math.round(e / n), 0, m - 1) + 1} / ${m}`)), s.createElement(x.div, {
|
|
59
|
-
className: `${f}-slides-inner`,
|
|
60
|
-
style: {
|
|
61
|
-
x: r.to((e) => -e)
|
|
62
|
-
}
|
|
63
|
-
}, o.images.map((e, t) => s.createElement($, {
|
|
64
|
-
key: t,
|
|
65
|
-
image: e,
|
|
66
|
-
onTap: o.onTap,
|
|
67
|
-
maxZoom: o.maxZoom,
|
|
68
|
-
imageRender: o.imageRender,
|
|
69
|
-
index: t,
|
|
70
|
-
onZoomChange: (i) => {
|
|
71
|
-
if (i !== 1) {
|
|
72
|
-
const a = Math.round(r.get() / n);
|
|
73
|
-
d.start({
|
|
74
|
-
x: a * n
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
dragLockRef: u
|
|
79
|
-
}))));
|
|
80
|
-
});
|
|
81
|
-
export {
|
|
82
|
-
_ as Slides
|
|
83
|
-
};
|