@glodon-aiot/agent-cli-ui 3.1.0-beta.16 → 3.2.2-beta.0
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/AgentClientUI.mjs +40 -39
- package/dist/es/Dialog/AgentChat/index.mjs +283 -264
- package/dist/es/Dialog/AgentChat/style.less.mjs +4 -0
- package/dist/es/Dialog/ConnectToNetwork/index.mjs +19 -18
- package/dist/es/Dialog/ConnectToNetwork/style.less.mjs +4 -0
- package/dist/es/Dialog/FileCard/index.mjs +22 -21
- package/dist/es/Dialog/FileCard/style.less.mjs +4 -0
- package/dist/es/Dialog/FilePreview/index.mjs +14 -13
- package/dist/es/Dialog/FilePreview/style.less.mjs +4 -0
- package/dist/es/Dialog/Greeting/index.mjs +5 -4
- package/dist/es/Dialog/Greeting/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryContent/index.mjs +6 -5
- package/dist/es/Dialog/HistoryContent/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryItem/index.mjs +127 -125
- package/dist/es/Dialog/HistoryItem/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeDoc/index.mjs +23 -22
- package/dist/es/Dialog/KnowledgeDoc/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/index.mjs +14 -13
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeList/index.mjs +29 -28
- package/dist/es/Dialog/KnowledgeList/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptManager/PromptList/PromptListItem.mjs +19 -19
- package/dist/es/Dialog/PromptManager/PromptList/PublicPromptList.mjs +17 -16
- package/dist/es/Dialog/PromptManager/PromptList/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptManager/index.mjs +17 -16
- package/dist/es/Dialog/PromptManager/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptSetting/index.mjs +32 -32
- package/dist/es/Dialog/PromptSetting/style.less.mjs +4 -0
- package/dist/es/Dialog/Recommend/RecommendItem.mjs +12 -11
- package/dist/es/Dialog/Recommend/index.mjs +23 -23
- package/dist/es/Dialog/Recommend/style.less.mjs +4 -0
- package/dist/es/Dialog/ReferCollapse/index.mjs +29 -28
- package/dist/es/Dialog/ReferCollapse/style.less.mjs +4 -0
- package/dist/es/Dialog/SearchReference/index.mjs +13 -12
- package/dist/es/Dialog/SearchReference/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionAction/index.mjs +30 -29
- package/dist/es/Dialog/SessionAction/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionList/index.mjs +51 -51
- package/dist/es/Dialog/SessionList/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +11 -10
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/SessionItem.mjs +15 -14
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/index.mjs +48 -47
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/index.mjs +9 -8
- package/dist/es/Dialog/SessionListDrawer/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRefer/ReferItem/index.mjs +26 -25
- package/dist/es/Dialog/SessionRefer/ReferItem/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRefer/index.mjs +21 -20
- package/dist/es/Dialog/SessionRefer/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRelated/index.mjs +18 -17
- package/dist/es/Dialog/SessionRelated/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/index.mjs +9 -8
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/index.mjs +117 -117
- package/dist/es/Dialog/UploadKnowledgeFiles/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadingPrompt/index.mjs +6 -5
- package/dist/es/Dialog/UploadingPrompt/style.less.mjs +4 -0
- package/dist/es/Dialog/index.mjs +58 -57
- package/dist/es/Dialog/style.less.mjs +4 -0
- package/dist/es/FileItem/index.mjs +23 -22
- package/dist/es/FileItem/style.less.mjs +4 -0
- package/dist/es/Footer/FooterWarning.mjs +14 -13
- package/dist/es/Footer/index.mjs +7 -6
- package/dist/es/Footer/style.less.mjs +4 -0
- package/dist/es/InputProgress/index.mjs +10 -9
- package/dist/es/InputProgress/style.less.mjs +4 -0
- package/dist/es/QuillEditor/index.mjs +34 -34
- package/dist/es/QuillEditor/style.less.mjs +4 -0
- package/dist/es/_virtual/_cloneBuffer.mjs +4 -0
- package/dist/es/_virtual/_commonjsHelpers.mjs +8 -0
- package/dist/es/_virtual/_nodeUtil.mjs +4 -0
- package/dist/es/_virtual/index.mjs +4 -0
- package/dist/es/_virtual/isBuffer.mjs +4 -0
- package/dist/es/_virtual/jsx-runtime.mjs +7 -0
- package/dist/es/_virtual/jsx-runtime2.mjs +4 -0
- package/dist/es/_virtual/lib.mjs +4 -0
- package/dist/es/_virtual/react-jsx-runtime.production.min.mjs +4 -0
- package/dist/es/_virtual/ua-parser.min.mjs +4 -0
- package/dist/es/components/Copy/index.mjs +21 -20
- package/dist/es/components/Copy/style.less.mjs +4 -0
- package/dist/es/components/JsonDisplay/index.mjs +5 -4
- package/dist/es/components/JsonDisplay/style.less.mjs +4 -0
- package/dist/es/components/Markdown/ATag/index.mjs +7 -7
- package/dist/es/components/Markdown/Code/index.mjs +33 -33
- package/dist/es/components/Markdown/Image/index.mjs +17 -16
- package/dist/es/components/Markdown/Video/index.mjs +13 -13
- package/dist/es/components/Markdown/index.mjs +36 -35
- package/dist/es/components/Markdown/style.less.mjs +4 -0
- package/dist/es/components/WebLink/index.mjs +9 -9
- package/dist/es/favicon.ico +0 -0
- package/dist/es/favicon2.ico +0 -0
- package/dist/es/font/font_4108228_4w5nlhafpte.js +1 -0
- package/dist/es/font/font_4439177_0sppkcnqiqgs.js +1 -0
- package/dist/es/font/gos-font.js +64 -0
- package/dist/es/images/empty.svg +40 -0
- package/dist/es/images/loading.gif +0 -0
- package/dist/es/images/logo.png +0 -0
- package/dist/es/images/map-example.png +0 -0
- package/dist/es/images/sketch.png +0 -0
- package/dist/es/index.html +43 -0
- package/dist/es/index.mjs +32 -26
- package/dist/es/logo192.png +0 -0
- package/dist/es/logo512.png +0 -0
- package/dist/es/manifest.json +25 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
- package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +201 -0
- package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +1087 -0
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +104 -0
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +568 -0
- package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +158 -0
- package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +847 -0
- package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +35 -0
- package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +226 -0
- package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +33 -0
- package/dist/es/node_modules/ahooks/es/useKeyPress/index.mjs +221 -0
- package/dist/es/node_modules/ahooks/es/useLatest/index.mjs +8 -0
- package/dist/es/node_modules/ahooks/es/useMemoizedFn/index.mjs +19 -0
- package/dist/es/node_modules/ahooks/es/useRafState/index.mjs +16 -0
- package/dist/es/node_modules/ahooks/es/useSize/index.mjs +34 -0
- package/dist/es/node_modules/ahooks/es/useUnmount/index.mjs +17 -0
- package/dist/es/node_modules/ahooks/es/useUnmountedRef/index.mjs +13 -0
- package/dist/es/node_modules/ahooks/es/utils/createEffectWithTarget.mjs +27 -0
- package/dist/es/node_modules/ahooks/es/utils/depsAreSame.mjs +11 -0
- package/dist/es/node_modules/ahooks/es/utils/depsEqual.mjs +7 -0
- package/dist/es/node_modules/ahooks/es/utils/domTarget.mjs +13 -0
- package/dist/es/node_modules/ahooks/es/utils/index.mjs +12 -0
- package/dist/es/node_modules/ahooks/es/utils/isAppleDevice.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/isBrowser.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/isDev.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/useDeepCompareWithTarget.mjs +11 -0
- package/dist/es/node_modules/ahooks/es/utils/useEffectWithTarget.mjs +7 -0
- package/dist/es/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.mjs +8 -0
- package/dist/es/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.mjs +7 -0
- package/dist/es/node_modules/antd/es/calendar/locale/zh_CN.mjs +4 -0
- package/dist/es/node_modules/antd/es/date-picker/locale/zh_CN.mjs +23 -0
- package/dist/es/node_modules/antd/es/locale/zh_CN.mjs +132 -0
- package/dist/es/node_modules/antd/es/time-picker/locale/zh_CN.mjs +8 -0
- package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +20 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +76 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +14 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +34 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +172 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +81 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +5 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +84 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +5 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/global/index.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +141 -0
- package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +7 -0
- package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +22 -0
- package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +46 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +13 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +52 -0
- package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +10 -0
- package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +15 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +8 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +54 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +32 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +19 -0
- package/dist/es/node_modules/classnames/index.mjs +42 -0
- package/dist/es/node_modules/comma-separated-tokens/index.mjs +13 -0
- package/dist/es/node_modules/copy-to-clipboard/index.mjs +46 -0
- package/dist/es/node_modules/devlop/lib/default.mjs +5 -0
- package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +93 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/create-h.mjs +126 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/index.mjs +8 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +4 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/create.mjs +14 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/defined-info.mjs +36 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/info.mjs +28 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/merge.mjs +10 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/schema.mjs +21 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +16 -0
- package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +61 -0
- package/dist/es/node_modules/hast-util-parse-selector/lib/index.mjs +20 -0
- package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +223 -0
- package/dist/es/node_modules/katex/dist/katex.min.css.mjs +4 -0
- package/dist/es/node_modules/katex/dist/katex.mjs +11700 -0
- package/dist/es/node_modules/lodash/_Hash.mjs +22 -0
- package/dist/es/node_modules/lodash/_ListCache.mjs +22 -0
- package/dist/es/node_modules/lodash/_Map.mjs +6 -0
- package/dist/es/node_modules/lodash/_MapCache.mjs +22 -0
- package/dist/es/node_modules/lodash/_Stack.mjs +20 -0
- package/dist/es/node_modules/lodash/_Symbol.mjs +5 -0
- package/dist/es/node_modules/lodash/_Uint8Array.mjs +5 -0
- package/dist/es/node_modules/lodash/_apply.mjs +17 -0
- package/dist/es/node_modules/lodash/_arrayLikeKeys.mjs +21 -0
- package/dist/es/node_modules/lodash/_assignMergeValue.mjs +10 -0
- package/dist/es/node_modules/lodash/_assignValue.mjs +11 -0
- package/dist/es/node_modules/lodash/_assocIndexOf.mjs +12 -0
- package/dist/es/node_modules/lodash/_baseAssignValue.mjs +14 -0
- package/dist/es/node_modules/lodash/_baseCreate.mjs +17 -0
- package/dist/es/node_modules/lodash/_baseFor.mjs +5 -0
- package/dist/es/node_modules/lodash/_baseGetTag.mjs +11 -0
- package/dist/es/node_modules/lodash/_baseIsArguments.mjs +10 -0
- package/dist/es/node_modules/lodash/_baseIsNative.mjs +15 -0
- package/dist/es/node_modules/lodash/_baseIsTypedArray.mjs +13 -0
- package/dist/es/node_modules/lodash/_baseKeysIn.mjs +16 -0
- package/dist/es/node_modules/lodash/_baseMerge.mjs +22 -0
- package/dist/es/node_modules/lodash/_baseMergeDeep.mjs +33 -0
- package/dist/es/node_modules/lodash/_baseRest.mjs +11 -0
- package/dist/es/node_modules/lodash/_baseSetToString.mjs +14 -0
- package/dist/es/node_modules/lodash/_baseTimes.mjs +9 -0
- package/dist/es/node_modules/lodash/_baseTrim.mjs +9 -0
- package/dist/es/node_modules/lodash/_baseUnary.mjs +9 -0
- package/dist/es/node_modules/lodash/_cloneArrayBuffer.mjs +10 -0
- package/dist/es/node_modules/lodash/_cloneBuffer.mjs +17 -0
- package/dist/es/node_modules/lodash/_cloneTypedArray.mjs +10 -0
- package/dist/es/node_modules/lodash/_copyArray.mjs +10 -0
- package/dist/es/node_modules/lodash/_copyObject.mjs +16 -0
- package/dist/es/node_modules/lodash/_coreJsData.mjs +5 -0
- package/dist/es/node_modules/lodash/_createAssigner.mjs +17 -0
- package/dist/es/node_modules/lodash/_createBaseFor.mjs +14 -0
- package/dist/es/node_modules/lodash/_defineProperty.mjs +11 -0
- package/dist/es/node_modules/lodash/_freeGlobal.mjs +5 -0
- package/dist/es/node_modules/lodash/_getMapData.mjs +10 -0
- package/dist/es/node_modules/lodash/_getNative.mjs +11 -0
- package/dist/es/node_modules/lodash/_getPrototype.mjs +5 -0
- package/dist/es/node_modules/lodash/_getRawTag.mjs +16 -0
- package/dist/es/node_modules/lodash/_getValue.mjs +7 -0
- package/dist/es/node_modules/lodash/_hashClear.mjs +9 -0
- package/dist/es/node_modules/lodash/_hashDelete.mjs +8 -0
- package/dist/es/node_modules/lodash/_hashGet.mjs +14 -0
- package/dist/es/node_modules/lodash/_hashHas.mjs +10 -0
- package/dist/es/node_modules/lodash/_hashSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_initCloneObject.mjs +11 -0
- package/dist/es/node_modules/lodash/_isIndex.mjs +9 -0
- package/dist/es/node_modules/lodash/_isIterateeCall.mjs +15 -0
- package/dist/es/node_modules/lodash/_isKeyable.mjs +8 -0
- package/dist/es/node_modules/lodash/_isMasked.mjs +12 -0
- package/dist/es/node_modules/lodash/_isPrototype.mjs +9 -0
- package/dist/es/node_modules/lodash/_listCacheClear.mjs +7 -0
- package/dist/es/node_modules/lodash/_listCacheDelete.mjs +13 -0
- package/dist/es/node_modules/lodash/_listCacheGet.mjs +10 -0
- package/dist/es/node_modules/lodash/_listCacheHas.mjs +9 -0
- package/dist/es/node_modules/lodash/_listCacheSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_mapCacheClear.mjs +15 -0
- package/dist/es/node_modules/lodash/_mapCacheDelete.mjs +10 -0
- package/dist/es/node_modules/lodash/_mapCacheGet.mjs +9 -0
- package/dist/es/node_modules/lodash/_mapCacheHas.mjs +9 -0
- package/dist/es/node_modules/lodash/_mapCacheSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_nativeCreate.mjs +5 -0
- package/dist/es/node_modules/lodash/_nativeKeysIn.mjs +11 -0
- package/dist/es/node_modules/lodash/_nodeUtil.mjs +17 -0
- package/dist/es/node_modules/lodash/_objectToString.mjs +8 -0
- package/dist/es/node_modules/lodash/_overArg.mjs +9 -0
- package/dist/es/node_modules/lodash/_overRest.mjs +16 -0
- package/dist/es/node_modules/lodash/_root.mjs +5 -0
- package/dist/es/node_modules/lodash/_safeGet.mjs +8 -0
- package/dist/es/node_modules/lodash/_setToString.mjs +6 -0
- package/dist/es/node_modules/lodash/_shortOut.mjs +17 -0
- package/dist/es/node_modules/lodash/_stackClear.mjs +9 -0
- package/dist/es/node_modules/lodash/_stackDelete.mjs +8 -0
- package/dist/es/node_modules/lodash/_stackGet.mjs +7 -0
- package/dist/es/node_modules/lodash/_stackHas.mjs +7 -0
- package/dist/es/node_modules/lodash/_stackSet.mjs +18 -0
- package/dist/es/node_modules/lodash/_toSource.mjs +18 -0
- package/dist/es/node_modules/lodash/_trimmedEndIndex.mjs +10 -0
- package/dist/es/node_modules/lodash/constant.mjs +9 -0
- package/dist/es/node_modules/lodash/debounce.mjs +57 -0
- package/dist/es/node_modules/lodash/eq.mjs +7 -0
- package/dist/es/node_modules/lodash/identity.mjs +7 -0
- package/dist/es/node_modules/lodash/isArguments.mjs +10 -0
- package/dist/es/node_modules/lodash/isArray.mjs +4 -0
- package/dist/es/node_modules/lodash/isArrayLike.mjs +10 -0
- package/dist/es/node_modules/lodash/isArrayLikeObject.mjs +10 -0
- package/dist/es/node_modules/lodash/isBuffer.mjs +12 -0
- package/dist/es/node_modules/lodash/isFunction.mjs +13 -0
- package/dist/es/node_modules/lodash/isLength.mjs +8 -0
- package/dist/es/node_modules/lodash/isObject.mjs +8 -0
- package/dist/es/node_modules/lodash/isObjectLike.mjs +7 -0
- package/dist/es/node_modules/lodash/isPlainObject.mjs +17 -0
- package/dist/es/node_modules/lodash/isSymbol.mjs +10 -0
- package/dist/es/node_modules/lodash/isTypedArray.mjs +7 -0
- package/dist/es/node_modules/lodash/keysIn.mjs +11 -0
- package/dist/es/node_modules/lodash/merge.mjs +10 -0
- package/dist/es/node_modules/lodash/now.mjs +7 -0
- package/dist/es/node_modules/lodash/stubFalse.mjs +7 -0
- package/dist/es/node_modules/lodash/toNumber.mjs +23 -0
- package/dist/es/node_modules/lodash/toPlainObject.mjs +10 -0
- package/dist/es/node_modules/longest-streak/index.mjs +12 -0
- package/dist/es/node_modules/mdast-util-math/lib/index.mjs +170 -0
- package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +76 -0
- package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +48 -0
- package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +15 -0
- package/dist/es/node_modules/micromark-factory-space/index.mjs +15 -0
- package/dist/es/node_modules/micromark-util-character/index.mjs +10 -0
- package/dist/es/node_modules/object-assign/index.mjs +34 -0
- package/dist/es/node_modules/rc-pagination/es/locale/zh_CN.mjs +18 -0
- package/dist/es/node_modules/rc-picker/es/locale/zh_CN.mjs +31 -0
- package/dist/es/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +45 -0
- package/dist/es/node_modules/react/jsx-runtime.mjs +8 -0
- package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
- package/dist/es/node_modules/react-fast-compare/index.mjs +78 -0
- package/dist/es/node_modules/react-infinite-scroll-component/dist/index.es.mjs +188 -0
- package/dist/es/node_modules/react-quill/dist/quill.snow.css.mjs +4 -0
- package/dist/es/node_modules/rehype-katex/lib/index.mjs +83 -0
- package/dist/es/node_modules/remark-math/lib/index.mjs +13 -0
- package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.mjs +294 -0
- package/dist/es/node_modules/space-separated-tokens/index.mjs +7 -0
- package/dist/es/node_modules/toggle-selection/index.mjs +25 -0
- package/dist/es/node_modules/tslib/tslib.es6.mjs +64 -0
- package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +120 -0
- package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +32 -0
- package/dist/es/node_modules/unist-util-is/lib/index.mjs +81 -0
- package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +6 -0
- package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +56 -0
- package/dist/es/node_modules/web-namespaces/index.mjs +11 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/native.mjs +4 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/rng.mjs +13 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/v4.mjs +23 -0
- package/dist/es/robots.txt +3 -0
- package/dist/es/style.less.mjs +4 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/favicon2.ico +0 -0
- package/dist/lib/font/font_4108228_4w5nlhafpte.js +1 -0
- package/dist/lib/font/font_4439177_0sppkcnqiqgs.js +1 -0
- package/dist/lib/font/gos-font.js +64 -0
- package/dist/lib/images/empty.svg +40 -0
- package/dist/lib/images/loading.gif +0 -0
- package/dist/lib/images/logo.png +0 -0
- package/dist/lib/images/map-example.png +0 -0
- package/dist/lib/images/sketch.png +0 -0
- package/dist/lib/index.html +43 -0
- package/dist/lib/index.js +311 -5
- package/dist/lib/logo192.png +0 -0
- package/dist/lib/logo512.png +0 -0
- package/dist/lib/manifest.json +25 -0
- package/dist/lib/robots.txt +3 -0
- package/dist/src/Dialog/HistoryItem/index.d.ts +1 -0
- package/dist/src/types.d.ts +1 -1
- package/package.json +6 -24
- 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 -0
- 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/lib/index.css +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var o = function() {
|
|
2
|
+
var e = document.getSelection();
|
|
3
|
+
if (!e.rangeCount)
|
|
4
|
+
return function() {
|
|
5
|
+
};
|
|
6
|
+
for (var t = document.activeElement, a = [], n = 0; n < e.rangeCount; n++)
|
|
7
|
+
a.push(e.getRangeAt(n));
|
|
8
|
+
switch (t.tagName.toUpperCase()) {
|
|
9
|
+
case "INPUT":
|
|
10
|
+
case "TEXTAREA":
|
|
11
|
+
t.blur();
|
|
12
|
+
break;
|
|
13
|
+
default:
|
|
14
|
+
t = null;
|
|
15
|
+
break;
|
|
16
|
+
}
|
|
17
|
+
return e.removeAllRanges(), function() {
|
|
18
|
+
e.type === "Caret" && e.removeAllRanges(), e.rangeCount || a.forEach(function(r) {
|
|
19
|
+
e.addRange(r);
|
|
20
|
+
}), t && t.focus();
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
o as t
|
|
25
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
function y(r, t, e, n) {
|
|
2
|
+
function f(i) {
|
|
3
|
+
return i instanceof e ? i : new e(function(o) {
|
|
4
|
+
o(i);
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
return new (e || (e = Promise))(function(i, o) {
|
|
8
|
+
function c(u) {
|
|
9
|
+
try {
|
|
10
|
+
a(n.next(u));
|
|
11
|
+
} catch (l) {
|
|
12
|
+
o(l);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function p(u) {
|
|
16
|
+
try {
|
|
17
|
+
a(n.throw(u));
|
|
18
|
+
} catch (l) {
|
|
19
|
+
o(l);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function a(u) {
|
|
23
|
+
u.done ? i(u.value) : f(u.value).then(c, p);
|
|
24
|
+
}
|
|
25
|
+
a((n = n.apply(r, t || [])).next());
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function d(r) {
|
|
29
|
+
var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], n = 0;
|
|
30
|
+
if (e)
|
|
31
|
+
return e.call(r);
|
|
32
|
+
if (r && typeof r.length == "number")
|
|
33
|
+
return {
|
|
34
|
+
next: function() {
|
|
35
|
+
return r && n >= r.length && (r = void 0), { value: r && r[n++], done: !r };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
39
|
+
}
|
|
40
|
+
function s(r, t) {
|
|
41
|
+
var e = typeof Symbol == "function" && r[Symbol.iterator];
|
|
42
|
+
if (!e)
|
|
43
|
+
return r;
|
|
44
|
+
var n = e.call(r), f, i = [], o;
|
|
45
|
+
try {
|
|
46
|
+
for (; (t === void 0 || t-- > 0) && !(f = n.next()).done; )
|
|
47
|
+
i.push(f.value);
|
|
48
|
+
} catch (c) {
|
|
49
|
+
o = { error: c };
|
|
50
|
+
} finally {
|
|
51
|
+
try {
|
|
52
|
+
f && !f.done && (e = n.return) && e.call(n);
|
|
53
|
+
} finally {
|
|
54
|
+
if (o)
|
|
55
|
+
throw o.error;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return i;
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
y as __awaiter,
|
|
62
|
+
s as __read,
|
|
63
|
+
d as __values
|
|
64
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { commonjsGlobal as gi } from "../../../_virtual/_commonjsHelpers.mjs";
|
|
2
|
+
import { __module as J } from "../../../_virtual/ua-parser.min.mjs";
|
|
3
|
+
(function(Q, $) {
|
|
4
|
+
(function(x, u) {
|
|
5
|
+
var mi = "1.0.37", O = "", ii = "?", j = "function", N = "undefined", D = "object", R = "string", ei = "major", e = "model", a = "name", i = "type", o = "vendor", r = "version", p = "architecture", E = "console", n = "mobile", b = "tablet", m = "smarttv", _ = "wearable", V = "embedded", G = 500, M = "Amazon", S = "Apple", oi = "ASUS", ai = "BlackBerry", k = "Browser", z = "Chrome", pi = "Edge", q = "Firefox", C = "Google", ri = "Huawei", F = "LG", H = "Microsoft", ti = "Motorola", U = "Opera", P = "Samsung", si = "Sharp", B = "Sony", Y = "Xiaomi", W = "Zebra", ni = "Facebook", bi = "Chromium OS", wi = "Mac OS", hi = function(w, c) {
|
|
6
|
+
var s = {};
|
|
7
|
+
for (var d in w)
|
|
8
|
+
c[d] && c[d].length % 2 === 0 ? s[d] = c[d].concat(w[d]) : s[d] = w[d];
|
|
9
|
+
return s;
|
|
10
|
+
}, I = function(w) {
|
|
11
|
+
for (var c = {}, s = 0; s < w.length; s++)
|
|
12
|
+
c[w[s].toUpperCase()] = w[s];
|
|
13
|
+
return c;
|
|
14
|
+
}, li = function(w, c) {
|
|
15
|
+
return typeof w === R ? T(c).indexOf(T(w)) !== -1 : !1;
|
|
16
|
+
}, T = function(w) {
|
|
17
|
+
return w.toLowerCase();
|
|
18
|
+
}, vi = function(w) {
|
|
19
|
+
return typeof w === R ? w.replace(/[^\d\.]/g, O).split(".")[0] : u;
|
|
20
|
+
}, Z = function(w, c) {
|
|
21
|
+
if (typeof w === R)
|
|
22
|
+
return w = w.replace(/^\s\s*/, O), typeof c === N ? w : w.substring(0, G);
|
|
23
|
+
}, A = function(w, c) {
|
|
24
|
+
for (var s = 0, d, g, v, l, t, f; s < c.length && !t; ) {
|
|
25
|
+
var K = c[s], ui = c[s + 1];
|
|
26
|
+
for (d = g = 0; d < K.length && !t && K[d]; )
|
|
27
|
+
if (t = K[d++].exec(w), t)
|
|
28
|
+
for (v = 0; v < ui.length; v++)
|
|
29
|
+
f = t[++g], l = ui[v], typeof l === D && l.length > 0 ? l.length === 2 ? typeof l[1] == j ? this[l[0]] = l[1].call(this, f) : this[l[0]] = l[1] : l.length === 3 ? typeof l[1] === j && !(l[1].exec && l[1].test) ? this[l[0]] = f ? l[1].call(this, f, l[2]) : u : this[l[0]] = f ? f.replace(l[1], l[2]) : u : l.length === 4 && (this[l[0]] = f ? l[3].call(this, f.replace(l[1], l[2])) : u) : this[l] = f || u;
|
|
30
|
+
s += 2;
|
|
31
|
+
}
|
|
32
|
+
}, X = function(w, c) {
|
|
33
|
+
for (var s in c)
|
|
34
|
+
if (typeof c[s] === D && c[s].length > 0) {
|
|
35
|
+
for (var d = 0; d < c[s].length; d++)
|
|
36
|
+
if (li(c[s][d], w))
|
|
37
|
+
return s === ii ? u : s;
|
|
38
|
+
} else if (li(c[s], w))
|
|
39
|
+
return s === ii ? u : s;
|
|
40
|
+
return w;
|
|
41
|
+
}, fi = {
|
|
42
|
+
"1.0": "/8",
|
|
43
|
+
1.2: "/1",
|
|
44
|
+
1.3: "/3",
|
|
45
|
+
"2.0": "/412",
|
|
46
|
+
"2.0.2": "/416",
|
|
47
|
+
"2.0.3": "/417",
|
|
48
|
+
"2.0.4": "/419",
|
|
49
|
+
"?": "/"
|
|
50
|
+
}, ci = {
|
|
51
|
+
ME: "4.90",
|
|
52
|
+
"NT 3.11": "NT3.51",
|
|
53
|
+
"NT 4.0": "NT4.0",
|
|
54
|
+
2e3: "NT 5.0",
|
|
55
|
+
XP: ["NT 5.1", "NT 5.2"],
|
|
56
|
+
Vista: "NT 6.0",
|
|
57
|
+
7: "NT 6.1",
|
|
58
|
+
8: "NT 6.2",
|
|
59
|
+
8.1: "NT 6.3",
|
|
60
|
+
10: ["NT 6.4", "NT 10.0"],
|
|
61
|
+
RT: "ARM"
|
|
62
|
+
}, di = {
|
|
63
|
+
browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [r, [a, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [r, [a, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [a, r], [/opios[\/ ]+([\w\.]+)/i], [r, [a, U + " Mini"]], [/\bopr\/([\w\.]+)/i], [r, [a, U]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [r, [a, "Baidu"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [a, r], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [r, [a, "UC" + k]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [r, [a, "WeChat"]], [/konqueror\/([\w\.]+)/i], [r, [a, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [r, [a, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [r, [a, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [r, [a, "Smart Lenovo " + k]], [/(avast|avg)\/([\w\.]+)/i], [[a, /(.+)/, "$1 Secure " + k], r], [/\bfocus\/([\w\.]+)/i], [r, [a, q + " Focus"]], [/\bopt\/([\w\.]+)/i], [r, [a, U + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [r, [a, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [r, [a, "Dolphin"]], [/coast\/([\w\.]+)/i], [r, [a, U + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [r, [a, "MIUI " + k]], [/fxios\/([-\w\.]+)/i], [r, [a, q]], [/\bqihu|(qi?ho?o?|360)browser/i], [[a, "360 " + k]], [/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i], [[a, /(.+)/, "$1 " + k], r], [/samsungbrowser\/([\w\.]+)/i], [r, [a, P + " Internet"]], [/(comodo_dragon)\/([\w\.]+)/i], [[a, /_/g, " "], r], [/metasr[\/ ]?([\d\.]+)/i], [r, [a, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[a, "Sogou Mobile"], r], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i], [a, r], [/(lbbrowser)/i, /\[(linkedin)app\]/i], [a], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[a, ni], r], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [a, r], [/\bgsa\/([\w\.]+) .*safari\//i], [r, [a, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [r, [a, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [r, [a, z + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[a, z + " WebView"], r], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [r, [a, "Android " + k]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [a, r], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [r, [a, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [r, a], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [a, [r, X, fi]], [/(webkit|khtml)\/([\w\.]+)/i], [a, r], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[a, "Netscape"], r], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [r, [a, q + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [a, r], [/(cobalt)\/([\w\.]+)/i], [a, [r, /master.|lts./, ""]]],
|
|
64
|
+
cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[p, "amd64"]], [/(ia32(?=;))/i], [[p, T]], [/((?:i[346]|x)86)[;\)]/i], [[p, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[p, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[p, "armhf"]], [/windows (ce|mobile); ppc;/i], [[p, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[p, /ower/, O, T]], [/(sun4\w)[;\)]/i], [[p, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[p, T]]],
|
|
65
|
+
device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [e, [o, P], [i, b]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [e, [o, P], [i, n]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [e, [o, S], [i, n]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [e, [o, S], [i, b]], [/(macintosh);/i], [e, [o, S]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [e, [o, si], [i, n]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [e, [o, ri], [i, b]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [e, [o, ri], [i, n]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[e, /_/g, " "], [o, Y], [i, n]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[e, /_/g, " "], [o, Y], [i, b]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [e, [o, "OPPO"], [i, n]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [e, [o, "Vivo"], [i, n]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [e, [o, "Realme"], [i, n]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [e, [o, ti], [i, n]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [e, [o, ti], [i, b]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [e, [o, F], [i, b]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [e, [o, F], [i, n]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [e, [o, "Lenovo"], [i, b]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[e, /_/g, " "], [o, "Nokia"], [i, n]], [/(pixel c)\b/i], [e, [o, C], [i, b]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [e, [o, C], [i, n]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [e, [o, B], [i, n]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[e, "Xperia Tablet"], [o, B], [i, b]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [e, [o, "OnePlus"], [i, n]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [e, [o, M], [i, b]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[e, /(.+)/g, "Fire Phone $1"], [o, M], [i, n]], [/(playbook);[-\w\),; ]+(rim)/i], [e, o, [i, b]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [e, [o, ai], [i, n]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [e, [o, oi], [i, b]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [e, [o, oi], [i, n]], [/(nexus 9)/i], [e, [o, "HTC"], [i, b]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [o, [e, /_/g, " "], [i, n]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [e, [o, "Acer"], [i, b]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [e, [o, "Meizu"], [i, n]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [e, [o, "Ulefone"], [i, n]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [o, e, [i, n]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [o, e, [i, b]], [/(surface duo)/i], [e, [o, H], [i, b]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [e, [o, "Fairphone"], [i, n]], [/(u304aa)/i], [e, [o, "AT&T"], [i, n]], [/\bsie-(\w*)/i], [e, [o, "Siemens"], [i, n]], [/\b(rct\w+) b/i], [e, [o, "RCA"], [i, b]], [/\b(venue[\d ]{2,7}) b/i], [e, [o, "Dell"], [i, b]], [/\b(q(?:mv|ta)\w+) b/i], [e, [o, "Verizon"], [i, b]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [e, [o, "Barnes & Noble"], [i, b]], [/\b(tm\d{3}\w+) b/i], [e, [o, "NuVision"], [i, b]], [/\b(k88) b/i], [e, [o, "ZTE"], [i, b]], [/\b(nx\d{3}j) b/i], [e, [o, "ZTE"], [i, n]], [/\b(gen\d{3}) b.+49h/i], [e, [o, "Swiss"], [i, n]], [/\b(zur\d{3}) b/i], [e, [o, "Swiss"], [i, b]], [/\b((zeki)?tb.*\b) b/i], [e, [o, "Zeki"], [i, b]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[o, "Dragon Touch"], e, [i, b]], [/\b(ns-?\w{0,9}) b/i], [e, [o, "Insignia"], [i, b]], [/\b((nxa|next)-?\w{0,9}) b/i], [e, [o, "NextBook"], [i, b]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[o, "Voice"], e, [i, n]], [/\b(lvtel\-)?(v1[12]) b/i], [[o, "LvTel"], e, [i, n]], [/\b(ph-1) /i], [e, [o, "Essential"], [i, n]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [e, [o, "Envizen"], [i, b]], [/\b(trio[-\w\. ]+) b/i], [e, [o, "MachSpeed"], [i, b]], [/\btu_(1491) b/i], [e, [o, "Rotor"], [i, b]], [/(shield[\w ]+) b/i], [e, [o, "Nvidia"], [i, b]], [/(sprint) (\w+)/i], [o, e, [i, n]], [/(kin\.[onetw]{3})/i], [[e, /\./g, " "], [o, H], [i, n]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [e, [o, W], [i, b]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [e, [o, W], [i, n]], [/smart-tv.+(samsung)/i], [o, [i, m]], [/hbbtv.+maple;(\d+)/i], [[e, /^/, "SmartTV"], [o, P], [i, m]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[o, F], [i, m]], [/(apple) ?tv/i], [o, [e, S + " TV"], [i, m]], [/crkey/i], [[e, z + "cast"], [o, C], [i, m]], [/droid.+aft(\w+)( bui|\))/i], [e, [o, M], [i, m]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [e, [o, si], [i, m]], [/(bravia[\w ]+)( bui|\))/i], [e, [o, B], [i, m]], [/(mitv-\w{5}) bui/i], [e, [o, Y], [i, m]], [/Hbbtv.*(technisat) (.*);/i], [o, e, [i, m]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[o, Z], [e, Z], [i, m]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[i, m]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [o, e, [i, E]], [/droid.+; (shield) bui/i], [e, [o, "Nvidia"], [i, E]], [/(playstation [345portablevi]+)/i], [e, [o, B], [i, E]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [e, [o, H], [i, E]], [/((pebble))app/i], [o, e, [i, _]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [e, [o, S], [i, _]], [/droid.+; (glass) \d/i], [e, [o, C], [i, _]], [/droid.+; (wt63?0{2,3})\)/i], [e, [o, W], [i, _]], [/(quest( 2| pro)?)/i], [e, [o, ni], [i, _]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [o, [i, V]], [/(aeobc)\b/i], [e, [o, M], [i, V]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [e, [i, n]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [e, [i, b]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[i, b]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[i, n]], [/(android[-\w\. ]{0,9});.+buil/i], [e, [o, "Generic"]]],
|
|
66
|
+
engine: [[/windows.+ edge\/([\w\.]+)/i], [r, [a, pi + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [r, [a, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [a, r], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [r, a]],
|
|
67
|
+
os: [[/microsoft (windows) (vista|xp)/i], [a, r], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [a, [r, X, ci]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[r, X, ci], [a, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[r, /_/g, "."], [a, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[a, wi], [r, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [r, a], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [a, r], [/\(bb(10);/i], [r, [a, ai]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [r, [a, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [r, [a, q + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [r, [a, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [r, [a, "watchOS"]], [/crkey\/([\d\.]+)/i], [r, [a, z + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[a, bi], r], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [a, r], [/(sunos) ?([\w\.\d]*)/i], [[a, "Solaris"], r], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [a, r]]
|
|
68
|
+
}, h = function(w, c) {
|
|
69
|
+
if (typeof w === D && (c = w, w = u), !(this instanceof h))
|
|
70
|
+
return new h(w, c).getResult();
|
|
71
|
+
var s = typeof x !== N && x.navigator ? x.navigator : u, d = w || (s && s.userAgent ? s.userAgent : O), g = s && s.userAgentData ? s.userAgentData : u, v = c ? hi(di, c) : di, l = s && s.userAgent == d;
|
|
72
|
+
return this.getBrowser = function() {
|
|
73
|
+
var t = {};
|
|
74
|
+
return t[a] = u, t[r] = u, A.call(t, d, v.browser), t[ei] = vi(t[r]), l && s && s.brave && typeof s.brave.isBrave == j && (t[a] = "Brave"), t;
|
|
75
|
+
}, this.getCPU = function() {
|
|
76
|
+
var t = {};
|
|
77
|
+
return t[p] = u, A.call(t, d, v.cpu), t;
|
|
78
|
+
}, this.getDevice = function() {
|
|
79
|
+
var t = {};
|
|
80
|
+
return t[o] = u, t[e] = u, t[i] = u, A.call(t, d, v.device), l && !t[i] && g && g.mobile && (t[i] = n), l && t[e] == "Macintosh" && s && typeof s.standalone !== N && s.maxTouchPoints && s.maxTouchPoints > 2 && (t[e] = "iPad", t[i] = b), t;
|
|
81
|
+
}, this.getEngine = function() {
|
|
82
|
+
var t = {};
|
|
83
|
+
return t[a] = u, t[r] = u, A.call(t, d, v.engine), t;
|
|
84
|
+
}, this.getOS = function() {
|
|
85
|
+
var t = {};
|
|
86
|
+
return t[a] = u, t[r] = u, A.call(t, d, v.os), l && !t[a] && g && g.platform != "Unknown" && (t[a] = g.platform.replace(/chrome os/i, bi).replace(/macos/i, wi)), t;
|
|
87
|
+
}, this.getResult = function() {
|
|
88
|
+
return {
|
|
89
|
+
ua: this.getUA(),
|
|
90
|
+
browser: this.getBrowser(),
|
|
91
|
+
engine: this.getEngine(),
|
|
92
|
+
os: this.getOS(),
|
|
93
|
+
device: this.getDevice(),
|
|
94
|
+
cpu: this.getCPU()
|
|
95
|
+
};
|
|
96
|
+
}, this.getUA = function() {
|
|
97
|
+
return d;
|
|
98
|
+
}, this.setUA = function(t) {
|
|
99
|
+
return d = typeof t === R && t.length > G ? Z(t, G) : t, this;
|
|
100
|
+
}, this.setUA(d), this;
|
|
101
|
+
};
|
|
102
|
+
h.VERSION = mi, h.BROWSER = I([a, r, ei]), h.CPU = I([p]), h.DEVICE = I([e, o, i, E, n, m, b, _, V]), h.ENGINE = h.OS = I([a, r]), Q.exports && ($ = Q.exports = h), $.UAParser = h;
|
|
103
|
+
var y = typeof x !== N && (x.jQuery || x.Zepto);
|
|
104
|
+
if (y && !y.ua) {
|
|
105
|
+
var L = new h();
|
|
106
|
+
y.ua = L.getResult(), y.ua.get = function() {
|
|
107
|
+
return L.getUA();
|
|
108
|
+
}, y.ua.set = function(w) {
|
|
109
|
+
L.setUA(w);
|
|
110
|
+
var c = L.getResult();
|
|
111
|
+
for (var s in c)
|
|
112
|
+
y.ua[s] = c[s];
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
})(typeof window == "object" ? window : gi);
|
|
116
|
+
})(J, J.exports);
|
|
117
|
+
var _i = J.exports;
|
|
118
|
+
export {
|
|
119
|
+
_i as u
|
|
120
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { convert as t } from "../../unist-util-is/lib/index.mjs";
|
|
2
|
+
const f = (
|
|
3
|
+
// Note: overloads like this are needed to support optional generics.
|
|
4
|
+
/**
|
|
5
|
+
* @type {(
|
|
6
|
+
* (<Kind extends UnistParent, Check extends Test>(parent: Kind, index: Child<Kind> | number, test: Check) => Matches<Child<Kind>, Check> | undefined) &
|
|
7
|
+
* (<Kind extends UnistParent>(parent: Kind, index: Child<Kind> | number, test?: null | undefined) => Child<Kind> | undefined)
|
|
8
|
+
* )}
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @param {UnistParent} parent
|
|
12
|
+
* @param {UnistNode | number} index
|
|
13
|
+
* @param {Test} [test]
|
|
14
|
+
* @returns {UnistNode | undefined}
|
|
15
|
+
*/
|
|
16
|
+
function(e, r, o) {
|
|
17
|
+
const i = t(o);
|
|
18
|
+
if (!e || !e.type || !e.children)
|
|
19
|
+
throw new Error("Expected parent node");
|
|
20
|
+
if (typeof r == "number") {
|
|
21
|
+
if (r < 0 || r === Number.POSITIVE_INFINITY)
|
|
22
|
+
throw new Error("Expected positive finite number as index");
|
|
23
|
+
} else if (r = e.children.indexOf(r), r < 0)
|
|
24
|
+
throw new Error("Expected child node or index");
|
|
25
|
+
for (; ++r < e.children.length; )
|
|
26
|
+
if (i(e.children[r], r, e))
|
|
27
|
+
return e.children[r];
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
export {
|
|
31
|
+
f as findAfter
|
|
32
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const i = (
|
|
2
|
+
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
3
|
+
/**
|
|
4
|
+
* @type {(
|
|
5
|
+
* (<Condition extends string>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & {type: Condition}) &
|
|
6
|
+
* (<Condition extends Props>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Condition) &
|
|
7
|
+
* (<Condition extends TestFunction>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Predicate<Condition, Node>) &
|
|
8
|
+
* ((test?: null | undefined) => (node?: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node) &
|
|
9
|
+
* ((test?: Test) => Check)
|
|
10
|
+
* )}
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* @param {Test} [test]
|
|
14
|
+
* @returns {Check}
|
|
15
|
+
*/
|
|
16
|
+
function(n) {
|
|
17
|
+
if (n == null)
|
|
18
|
+
return p;
|
|
19
|
+
if (typeof n == "function")
|
|
20
|
+
return c(n);
|
|
21
|
+
if (typeof n == "object")
|
|
22
|
+
return Array.isArray(n) ? f(n) : y(n);
|
|
23
|
+
if (typeof n == "string")
|
|
24
|
+
return l(n);
|
|
25
|
+
throw new Error("Expected function, string, or object as test");
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
function f(n) {
|
|
29
|
+
const e = [];
|
|
30
|
+
let r = -1;
|
|
31
|
+
for (; ++r < n.length; )
|
|
32
|
+
e[r] = i(n[r]);
|
|
33
|
+
return c(t);
|
|
34
|
+
function t(...u) {
|
|
35
|
+
let o = -1;
|
|
36
|
+
for (; ++o < e.length; )
|
|
37
|
+
if (e[o].apply(this, u))
|
|
38
|
+
return !0;
|
|
39
|
+
return !1;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function y(n) {
|
|
43
|
+
const e = (
|
|
44
|
+
/** @type {Record<string, unknown>} */
|
|
45
|
+
n
|
|
46
|
+
);
|
|
47
|
+
return c(r);
|
|
48
|
+
function r(t) {
|
|
49
|
+
const u = (
|
|
50
|
+
/** @type {Record<string, unknown>} */
|
|
51
|
+
/** @type {unknown} */
|
|
52
|
+
t
|
|
53
|
+
);
|
|
54
|
+
let o;
|
|
55
|
+
for (o in n)
|
|
56
|
+
if (u[o] !== e[o])
|
|
57
|
+
return !1;
|
|
58
|
+
return !0;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function l(n) {
|
|
62
|
+
return c(e);
|
|
63
|
+
function e(r) {
|
|
64
|
+
return r && r.type === n;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function c(n) {
|
|
68
|
+
return e;
|
|
69
|
+
function e(r, t, u) {
|
|
70
|
+
return !!(a(r) && n.call(this, r, typeof t == "number" ? t : void 0, u || void 0));
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function p() {
|
|
74
|
+
return !0;
|
|
75
|
+
}
|
|
76
|
+
function a(n) {
|
|
77
|
+
return n !== null && typeof n == "object" && "type" in n;
|
|
78
|
+
}
|
|
79
|
+
export {
|
|
80
|
+
i as convert
|
|
81
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { color as A } from "./color.mjs";
|
|
2
|
+
import { convert as I } from "../../unist-util-is/lib/index.mjs";
|
|
3
|
+
const g = [], j = !0, a = !1, k = "skip";
|
|
4
|
+
function w(t, o, u, s) {
|
|
5
|
+
let p;
|
|
6
|
+
typeof o == "function" && typeof u != "function" ? (s = u, u = o) : p = o;
|
|
7
|
+
const b = I(p), y = s ? -1 : 1;
|
|
8
|
+
m(t, void 0, [])();
|
|
9
|
+
function m(n, N, l) {
|
|
10
|
+
const i = (
|
|
11
|
+
/** @type {Record<string, unknown>} */
|
|
12
|
+
n && typeof n == "object" ? n : {}
|
|
13
|
+
);
|
|
14
|
+
if (typeof i.type == "string") {
|
|
15
|
+
const e = (
|
|
16
|
+
// `hast`
|
|
17
|
+
typeof i.tagName == "string" ? i.tagName : (
|
|
18
|
+
// `xast`
|
|
19
|
+
typeof i.name == "string" ? i.name : void 0
|
|
20
|
+
)
|
|
21
|
+
);
|
|
22
|
+
Object.defineProperty(h, "name", {
|
|
23
|
+
value: "node (" + A(n.type + (e ? "<" + e + ">" : "")) + ")"
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return h;
|
|
27
|
+
function h() {
|
|
28
|
+
let e = g, f, r, d;
|
|
29
|
+
if ((!o || b(n, N, l[l.length - 1] || void 0)) && (e = E(u(n, l)), e[0] === a))
|
|
30
|
+
return e;
|
|
31
|
+
if ("children" in n && n.children) {
|
|
32
|
+
const c = (
|
|
33
|
+
/** @type {UnistParent} */
|
|
34
|
+
n
|
|
35
|
+
);
|
|
36
|
+
if (c.children && e[0] !== k)
|
|
37
|
+
for (r = (s ? c.children.length : -1) + y, d = l.concat(c); r > -1 && r < c.children.length; ) {
|
|
38
|
+
const P = c.children[r];
|
|
39
|
+
if (f = m(P, r, d)(), f[0] === a)
|
|
40
|
+
return f;
|
|
41
|
+
r = typeof f[1] == "number" ? f[1] : r + y;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return e;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function E(t) {
|
|
49
|
+
return Array.isArray(t) ? t : typeof t == "number" ? [j, t] : t == null ? g : [t];
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
j as CONTINUE,
|
|
53
|
+
a as EXIT,
|
|
54
|
+
k as SKIP,
|
|
55
|
+
w as visitParents
|
|
56
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const w = {
|
|
2
|
+
html: "http://www.w3.org/1999/xhtml",
|
|
3
|
+
mathml: "http://www.w3.org/1998/Math/MathML",
|
|
4
|
+
svg: "http://www.w3.org/2000/svg",
|
|
5
|
+
xlink: "http://www.w3.org/1999/xlink",
|
|
6
|
+
xml: "http://www.w3.org/XML/1998/namespace",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/xmlns/"
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
w as webNamespaces
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
let t;
|
|
2
|
+
const e = new Uint8Array(16);
|
|
3
|
+
function o() {
|
|
4
|
+
if (!t) {
|
|
5
|
+
if (typeof crypto == "undefined" || !crypto.getRandomValues)
|
|
6
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
7
|
+
t = crypto.getRandomValues.bind(crypto);
|
|
8
|
+
}
|
|
9
|
+
return t(e);
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
o as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const i = [];
|
|
2
|
+
for (let n = 0; n < 256; ++n)
|
|
3
|
+
i.push((n + 256).toString(16).slice(1));
|
|
4
|
+
function c(n, u = 0) {
|
|
5
|
+
return (i[n[u + 0]] + i[n[u + 1]] + i[n[u + 2]] + i[n[u + 3]] + "-" + i[n[u + 4]] + i[n[u + 5]] + "-" + i[n[u + 6]] + i[n[u + 7]] + "-" + i[n[u + 8]] + i[n[u + 9]] + "-" + i[n[u + 10]] + i[n[u + 11]] + i[n[u + 12]] + i[n[u + 13]] + i[n[u + 14]] + i[n[u + 15]]).toLowerCase();
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
c as unsafeStringify
|
|
9
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import u from "./native.mjs";
|
|
2
|
+
import U from "./rng.mjs";
|
|
3
|
+
import { unsafeStringify as h } from "./stringify.mjs";
|
|
4
|
+
function w(r, m, n) {
|
|
5
|
+
var g, t, d;
|
|
6
|
+
if (u.randomUUID && !m && !r)
|
|
7
|
+
return u.randomUUID();
|
|
8
|
+
r = r || {};
|
|
9
|
+
const e = (d = (t = r.random) != null ? t : (g = r.rng) == null ? void 0 : g.call(r)) != null ? d : U();
|
|
10
|
+
if (e.length < 16)
|
|
11
|
+
throw new Error("Random bytes length must be >= 16");
|
|
12
|
+
if (e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, m) {
|
|
13
|
+
if (n = n || 0, n < 0 || n + 16 > m.length)
|
|
14
|
+
throw new RangeError(`UUID byte range ${n}:${n + 15} is out of buffer bounds`);
|
|
15
|
+
for (let a = 0; a < 16; ++a)
|
|
16
|
+
m[n + a] = e[a];
|
|
17
|
+
return m;
|
|
18
|
+
}
|
|
19
|
+
return h(e);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
w as default
|
|
23
|
+
};
|
|
Binary file
|
|
Binary file
|