ant-design-x-vue 1.1.1 → 1.2.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/index.umd.js +19 -198
- package/es/_util/cssinjs/Cache.mjs +16 -0
- package/es/_util/cssinjs/Keyframes.mjs +11 -0
- package/es/_util/cssinjs/StyleContext.mjs +116 -0
- package/es/_util/cssinjs/hooks/useCSSVarRegister.mjs +47 -0
- package/es/_util/cssinjs/hooks/useCacheToken.mjs +9 -0
- package/es/_util/cssinjs/hooks/useCacheToken.tsx2.mjs +76 -0
- package/es/_util/cssinjs/hooks/useGlobalCache.mjs +27 -0
- package/es/_util/cssinjs/hooks/useHMR.mjs +7 -0
- package/es/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.mjs +51 -0
- package/es/_util/cssinjs/hooks/useStyleRegister/index.mjs +17 -0
- package/es/_util/cssinjs/hooks/useStyleRegister/index.tsx2.mjs +541 -0
- package/es/_util/cssinjs/index.mjs +59 -0
- package/es/_util/cssinjs/linters/contentQuotesLinter.mjs +13 -0
- package/es/_util/cssinjs/linters/hashedAnimationLinter.mjs +10 -0
- package/es/_util/cssinjs/linters/index.mjs +12 -0
- package/es/_util/cssinjs/linters/interface.mjs +1 -0
- package/es/_util/cssinjs/linters/legacyNotSelectorLinter.mjs +15 -0
- package/es/_util/cssinjs/linters/logicalPropertiesLinter.mjs +61 -0
- package/es/_util/cssinjs/linters/parentSelectorLinter.mjs +7 -0
- package/es/_util/cssinjs/linters/utils.mjs +11 -0
- package/es/_util/cssinjs/theme/Theme.mjs +18 -0
- package/es/_util/cssinjs/theme/ThemeCache.mjs +72 -0
- package/es/_util/cssinjs/theme/createTheme.mjs +10 -0
- package/es/_util/cssinjs/theme/index.mjs +8 -0
- package/es/_util/cssinjs/theme/interface.mjs +1 -0
- package/es/_util/cssinjs/transformers/interface.mjs +1 -0
- package/es/_util/cssinjs/transformers/legacyLogicalProperties.mjs +92 -0
- package/es/_util/cssinjs/transformers/px2rem.mjs +31 -0
- package/es/_util/cssinjs/util.mjs +102 -0
- package/es/_util/cssinjs-utils/_util/hooks/useUniqueMemo.mjs +55 -0
- package/es/_util/cssinjs-utils/hooks/useCSP.mjs +4 -0
- package/es/_util/cssinjs-utils/hooks/usePrefix.mjs +1 -0
- package/es/_util/cssinjs-utils/hooks/useToken.mjs +1 -0
- package/es/_util/cssinjs-utils/index.mjs +10 -0
- package/es/_util/cssinjs-utils/interface/components.mjs +1 -0
- package/es/_util/cssinjs-utils/interface/index.mjs +1 -0
- package/es/_util/cssinjs-utils/util/calc/CSSCalculator.mjs +35 -0
- package/es/_util/cssinjs-utils/util/calc/NumCalculator.mjs +24 -0
- package/es/_util/cssinjs-utils/util/calc/calculator.mjs +5 -0
- package/es/_util/cssinjs-utils/util/calc/index.mjs +9 -0
- package/es/_util/cssinjs-utils/util/genStyleUtils.mjs +188 -0
- package/es/_util/cssinjs-utils/util/getCompVarPrefix.mjs +7 -0
- package/es/_util/cssinjs-utils/util/getComponentToken.mjs +18 -0
- package/es/_util/cssinjs-utils/util/getDefaultComponentToken.mjs +9 -0
- package/es/_util/cssinjs-utils/util/maxmin.mjs +15 -0
- package/es/_util/cssinjs-utils/util/statistic.mjs +45 -0
- package/es/_util/getScrollBarSize.mjs +33 -0
- package/es/_util/getValue.mjs +11 -0
- package/es/_util/hooks/use-event-callback.mjs +10 -0
- package/es/_util/hooks/use-state.mjs +11 -0
- package/es/_util/hooks/use-x-component-config.mjs +17 -0
- package/es/_util/hooks/useMergedState.mjs +21 -0
- package/es/_util/motion.mjs +23 -0
- package/es/_util/pick-attrs.mjs +43 -0
- package/es/_util/setStyle.mjs +11 -0
- package/es/_util/supportsPassive.mjs +14 -0
- package/es/_util/transition.mjs +75 -0
- package/es/_util/type.mjs +48 -0
- package/es/_util/warning.mjs +45 -0
- package/es/attachments/Attachments.mjs +4 -0
- package/es/attachments/Attachments2.mjs +255 -0
- package/es/attachments/DropArea.mjs +58 -0
- package/es/attachments/FileList/AudioIcon.mjs +5 -0
- package/es/attachments/FileList/AudioIcon2.mjs +35 -0
- package/es/attachments/FileList/FileList.mjs +4 -0
- package/es/attachments/FileList/FileList2.mjs +1574 -0
- package/es/attachments/FileList/FileListCard.mjs +168 -0
- package/es/attachments/FileList/Progress.mjs +49 -0
- package/es/attachments/FileList/VideoIcon.mjs +30 -0
- package/es/attachments/FileList/index.mjs +6 -0
- package/es/attachments/PlaceholderUploader.mjs +79 -0
- package/es/attachments/SilentUploader.mjs +27 -0
- package/es/attachments/context.mjs +32 -0
- package/es/attachments/index.mjs +12 -0
- package/es/attachments/interface.mjs +1 -0
- package/es/attachments/style/fileCard.mjs +157 -0
- package/es/attachments/style/index.mjs +584 -0
- package/es/attachments/util.mjs +31 -0
- package/es/bubble/Bubble.mjs +126 -0
- package/es/bubble/BubbleList.mjs +136 -0
- package/es/bubble/context.mjs +31 -0
- package/es/bubble/hooks/useDisplayData.mjs +36 -0
- package/es/bubble/hooks/useListData.mjs +18 -0
- package/es/bubble/hooks/useTypedEffect.mjs +24 -0
- package/es/bubble/hooks/useTypingConfig.mjs +24 -0
- package/es/bubble/index.mjs +10 -0
- package/es/bubble/interface.mjs +1 -0
- package/es/bubble/loading.mjs +25 -0
- package/es/bubble/style/content.mjs +59 -0
- package/es/bubble/style/index.mjs +148 -0
- package/es/bubble/style/list.mjs +14 -0
- package/es/conversations/Conversations.mjs +105 -0
- package/es/conversations/ConversationsItem.mjs +89 -0
- package/es/conversations/GroupTitle.mjs +22 -0
- package/es/conversations/context.mjs +31 -0
- package/es/conversations/hooks/useGroupable.mjs +48 -0
- package/es/conversations/index.mjs +5 -0
- package/es/conversations/interface.mjs +1 -0
- package/es/conversations/style/index.mjs +103 -0
- package/es/index.mjs +38 -0
- package/es/prompts/Prompts.mjs +116 -0
- package/es/prompts/index.mjs +5 -0
- package/es/prompts/interface.mjs +1 -0
- package/es/prompts/style/index.mjs +143 -0
- package/es/sender/Sender.mjs +251 -0
- package/es/sender/SenderHeader.mjs +82 -0
- package/es/sender/StopLoading.mjs +52 -0
- package/es/sender/components/ActionButton/context.mjs +31 -0
- package/es/sender/components/ActionButton/index.mjs +65 -0
- package/es/sender/components/ClearButton.mjs +41 -0
- package/es/sender/components/LoadingButton.mjs +58 -0
- package/es/sender/components/SendButton.mjs +45 -0
- package/es/sender/components/SpeechButton/RecordingIcon.mjs +49 -0
- package/es/sender/components/SpeechButton/index.mjs +59 -0
- package/es/sender/context.mjs +31 -0
- package/es/sender/index.mjs +9 -0
- package/es/sender/interface.mjs +1 -0
- package/es/sender/style/header.mjs +49 -0
- package/es/sender/style/index.mjs +147 -0
- package/es/sender/useSpeech.mjs +55 -0
- package/es/suggestion/Suggestion.mjs +93 -0
- package/es/suggestion/index.mjs +5 -0
- package/es/suggestion/interface.mjs +1 -0
- package/es/suggestion/style/index.mjs +41 -0
- package/es/suggestion/useActive.mjs +56 -0
- package/es/theme/components.mjs +1 -0
- package/es/theme/cssinjs-utils.mjs +1 -0
- package/es/theme/genStyleUtils.mjs +32 -0
- package/es/theme/index.mjs +4 -0
- package/es/theme/patch-antd.mjs +33 -0
- package/es/theme/useToken.mjs +351 -0
- package/es/thought-chain/ThoughtChain.mjs +107 -0
- package/es/thought-chain/context.mjs +31 -0
- package/es/thought-chain/hooks/useCollapsible.mjs +36 -0
- package/es/thought-chain/index.mjs +5 -0
- package/es/thought-chain/interface.mjs +4 -0
- package/es/thought-chain/item.mjs +96 -0
- package/es/thought-chain/style/index.mjs +215 -0
- package/es/transition-collapse/TransitionCollapse.mjs +49 -0
- package/es/transition-collapse/index.mjs +10 -0
- package/es/transition-collapse/style/index.mjs +22 -0
- package/es/type-utility.mjs +1 -0
- package/es/use-x-agent/index.mjs +7 -0
- package/es/use-x-agent/use-x-agent.mjs +49 -0
- package/es/use-x-chat/index.mjs +5 -0
- package/es/use-x-chat/use-x-chat.mjs +97 -0
- package/es/use-x-chat/useSyncState.mjs +12 -0
- package/es/vc-util/Dom/addEventListener.mjs +15 -0
- package/es/vc-util/Dom/canUseDom.mjs +6 -0
- package/es/vc-util/Dom/class.mjs +19 -0
- package/es/vc-util/Dom/contains.mjs +6 -0
- package/es/vc-util/Dom/css.mjs +86 -0
- package/es/vc-util/Dom/dynamicCSS.mjs +70 -0
- package/es/vc-util/Dom/isVisible.mjs +20 -0
- package/es/vc-util/Dom/scrollLocker.mjs +66 -0
- package/es/vc-util/devWarning.mjs +9 -0
- package/es/vc-util/get.mjs +12 -0
- package/es/vc-util/isEqual.mjs +32 -0
- package/es/vc-util/isMobile.mjs +13 -0
- package/es/vc-util/set.mjs +14 -0
- package/es/vc-util/warning.mjs +26 -0
- package/es/version/index.mjs +4 -0
- package/es/version/token-meta.mjs +7 -0
- package/es/version/token.mjs +21 -0
- package/es/version/version.mjs +4 -0
- package/es/welcome/Welcome.mjs +91 -0
- package/es/welcome/index.mjs +5 -0
- package/es/welcome/interface.mjs +1 -0
- package/es/welcome/style/index.mjs +69 -0
- package/es/x-provider/context.mjs +31 -0
- package/es/x-provider/hooks/use-x-provider-context.mjs +21 -0
- package/es/x-provider/index.mjs +8 -0
- package/es/x-provider/index2.mjs +81 -0
- package/es/x-request/index.mjs +7 -0
- package/es/x-request/x-fetch.mjs +22 -0
- package/es/x-request/x-request.mjs +83 -0
- package/es/x-stream/index.mjs +5 -0
- package/es/x-stream/x-stream.mjs +64 -0
- package/lib/_util/cssinjs/Cache.js +1 -0
- package/lib/_util/cssinjs/Keyframes.js +1 -0
- package/lib/_util/cssinjs/StyleContext.js +1 -0
- package/lib/_util/cssinjs/hooks/useCSSVarRegister.js +1 -0
- package/lib/_util/cssinjs/hooks/useCacheToken.js +1 -0
- package/lib/_util/cssinjs/hooks/useCacheToken.tsx2.js +1 -0
- package/lib/_util/cssinjs/hooks/useGlobalCache.js +1 -0
- package/lib/_util/cssinjs/hooks/useHMR.js +1 -0
- package/lib/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.js +1 -0
- package/lib/_util/cssinjs/hooks/useStyleRegister/index.js +1 -0
- package/lib/_util/cssinjs/hooks/useStyleRegister/index.tsx2.js +2 -0
- package/lib/_util/cssinjs/index.js +1 -0
- package/lib/_util/cssinjs/linters/contentQuotesLinter.js +1 -0
- package/lib/_util/cssinjs/linters/hashedAnimationLinter.js +1 -0
- package/lib/_util/cssinjs/linters/index.js +1 -0
- package/lib/_util/cssinjs/linters/interface.js +1 -0
- package/lib/_util/cssinjs/linters/legacyNotSelectorLinter.js +1 -0
- package/lib/_util/cssinjs/linters/logicalPropertiesLinter.js +1 -0
- package/lib/_util/cssinjs/linters/parentSelectorLinter.js +1 -0
- package/lib/_util/cssinjs/linters/utils.js +1 -0
- package/lib/_util/cssinjs/theme/Theme.js +1 -0
- package/lib/_util/cssinjs/theme/ThemeCache.js +1 -0
- package/lib/_util/cssinjs/theme/createTheme.js +1 -0
- package/lib/_util/cssinjs/theme/index.js +1 -0
- package/lib/_util/cssinjs/theme/interface.js +1 -0
- package/lib/_util/cssinjs/transformers/interface.js +1 -0
- package/lib/_util/cssinjs/transformers/legacyLogicalProperties.js +1 -0
- package/lib/_util/cssinjs/transformers/px2rem.js +1 -0
- package/lib/_util/cssinjs/util.js +1 -0
- package/lib/_util/cssinjs-utils/_util/hooks/useUniqueMemo.js +1 -0
- package/lib/_util/cssinjs-utils/hooks/useCSP.js +1 -0
- package/lib/_util/cssinjs-utils/hooks/usePrefix.js +1 -0
- package/lib/_util/cssinjs-utils/hooks/useToken.js +1 -0
- package/lib/_util/cssinjs-utils/index.js +1 -0
- package/lib/_util/cssinjs-utils/interface/components.js +1 -0
- package/lib/_util/cssinjs-utils/interface/index.js +1 -0
- package/lib/_util/cssinjs-utils/util/calc/CSSCalculator.js +1 -0
- package/lib/_util/cssinjs-utils/util/calc/NumCalculator.js +1 -0
- package/lib/_util/cssinjs-utils/util/calc/calculator.js +1 -0
- package/lib/_util/cssinjs-utils/util/calc/index.js +1 -0
- package/lib/_util/cssinjs-utils/util/genStyleUtils.js +1 -0
- package/lib/_util/cssinjs-utils/util/getCompVarPrefix.js +1 -0
- package/lib/_util/cssinjs-utils/util/getComponentToken.js +1 -0
- package/lib/_util/cssinjs-utils/util/getDefaultComponentToken.js +1 -0
- package/lib/_util/cssinjs-utils/util/maxmin.js +1 -0
- package/lib/_util/cssinjs-utils/util/statistic.js +1 -0
- package/lib/_util/getScrollBarSize.js +1 -0
- package/lib/_util/getValue.js +1 -0
- package/lib/_util/hooks/use-event-callback.js +1 -0
- package/lib/_util/hooks/use-state.js +1 -0
- package/lib/_util/hooks/use-x-component-config.js +1 -0
- package/lib/_util/hooks/useMergedState.js +1 -0
- package/lib/_util/motion.js +1 -0
- package/lib/_util/pick-attrs.js +18 -0
- package/lib/_util/setStyle.js +1 -0
- package/lib/_util/supportsPassive.js +1 -0
- package/lib/_util/transition.js +1 -0
- package/lib/_util/type.js +1 -0
- package/lib/_util/warning.js +1 -0
- package/lib/attachments/Attachments.js +1 -0
- package/lib/attachments/Attachments2.js +5 -0
- package/lib/attachments/DropArea.js +1 -0
- package/lib/attachments/FileList/AudioIcon.js +1 -0
- package/lib/attachments/FileList/AudioIcon2.js +1 -0
- package/lib/attachments/FileList/FileList.js +1 -0
- package/lib/attachments/FileList/FileList2.js +57 -0
- package/lib/attachments/FileList/FileListCard.js +1 -0
- package/lib/attachments/FileList/Progress.js +1 -0
- package/lib/attachments/FileList/VideoIcon.js +1 -0
- package/lib/attachments/FileList/index.js +1 -0
- package/lib/attachments/PlaceholderUploader.js +1 -0
- package/lib/attachments/SilentUploader.js +1 -0
- package/lib/attachments/context.js +1 -0
- package/lib/attachments/index.js +1 -0
- package/lib/attachments/interface.js +1 -0
- package/lib/attachments/style/fileCard.js +1 -0
- package/lib/attachments/style/index.js +1 -0
- package/lib/attachments/util.js +1 -0
- package/lib/bubble/Bubble.js +1 -0
- package/lib/bubble/BubbleList.js +1 -0
- package/lib/bubble/context.js +1 -0
- package/lib/bubble/hooks/useDisplayData.js +1 -0
- package/lib/bubble/hooks/useListData.js +1 -0
- package/lib/bubble/hooks/useTypedEffect.js +1 -0
- package/lib/bubble/hooks/useTypingConfig.js +1 -0
- package/lib/bubble/index.js +1 -0
- package/lib/bubble/interface.js +1 -0
- package/lib/bubble/loading.js +1 -0
- package/lib/bubble/style/content.js +1 -0
- package/lib/bubble/style/index.js +1 -0
- package/lib/bubble/style/list.js +1 -0
- package/lib/conversations/Conversations.js +1 -0
- package/lib/conversations/ConversationsItem.js +1 -0
- package/lib/conversations/GroupTitle.js +1 -0
- package/lib/conversations/context.js +1 -0
- package/lib/conversations/hooks/useGroupable.js +1 -0
- package/lib/conversations/index.js +1 -0
- package/lib/conversations/interface.js +1 -0
- package/lib/conversations/style/index.js +1 -0
- package/lib/index.js +1 -0
- package/lib/prompts/Prompts.js +1 -0
- package/lib/prompts/index.js +1 -0
- package/lib/prompts/interface.js +1 -0
- package/lib/prompts/style/index.js +1 -0
- package/lib/sender/Sender.js +1 -0
- package/lib/sender/SenderHeader.js +1 -0
- package/lib/sender/StopLoading.js +1 -0
- package/lib/sender/components/ActionButton/context.js +1 -0
- package/lib/sender/components/ActionButton/index.js +1 -0
- package/lib/sender/components/ClearButton.js +1 -0
- package/lib/sender/components/LoadingButton.js +1 -0
- package/lib/sender/components/SendButton.js +1 -0
- package/lib/sender/components/SpeechButton/RecordingIcon.js +1 -0
- package/lib/sender/components/SpeechButton/index.js +1 -0
- package/lib/sender/context.js +1 -0
- package/lib/sender/index.js +1 -0
- package/lib/sender/interface.js +1 -0
- package/lib/sender/style/header.js +1 -0
- package/lib/sender/style/index.js +1 -0
- package/lib/sender/useSpeech.js +1 -0
- package/lib/suggestion/Suggestion.js +1 -0
- package/lib/suggestion/index.js +1 -0
- package/lib/suggestion/interface.js +1 -0
- package/lib/suggestion/style/index.js +1 -0
- package/lib/suggestion/useActive.js +1 -0
- package/lib/theme/components.js +1 -0
- package/lib/theme/cssinjs-utils.js +1 -0
- package/lib/theme/genStyleUtils.js +1 -0
- package/lib/theme/index.js +1 -0
- package/lib/theme/patch-antd.js +1 -0
- package/lib/theme/useToken.js +35 -0
- package/lib/thought-chain/ThoughtChain.js +1 -0
- package/lib/thought-chain/context.js +1 -0
- package/lib/thought-chain/hooks/useCollapsible.js +1 -0
- package/lib/thought-chain/index.js +1 -0
- package/lib/thought-chain/interface.js +1 -0
- package/lib/thought-chain/item.js +1 -0
- package/lib/thought-chain/style/index.js +1 -0
- package/lib/transition-collapse/TransitionCollapse.js +1 -0
- package/lib/transition-collapse/index.js +1 -0
- package/lib/transition-collapse/style/index.js +1 -0
- package/lib/type-utility.js +1 -0
- package/lib/use-x-agent/index.js +1 -0
- package/lib/use-x-agent/use-x-agent.js +1 -0
- package/lib/use-x-chat/index.js +1 -0
- package/lib/use-x-chat/use-x-chat.js +1 -0
- package/lib/use-x-chat/useSyncState.js +1 -0
- package/lib/vc-util/Dom/addEventListener.js +1 -0
- package/lib/vc-util/Dom/canUseDom.js +1 -0
- package/lib/vc-util/Dom/class.js +1 -0
- package/lib/vc-util/Dom/contains.js +1 -0
- package/lib/vc-util/Dom/css.js +1 -0
- package/lib/vc-util/Dom/dynamicCSS.js +1 -0
- package/lib/vc-util/Dom/isVisible.js +1 -0
- package/lib/vc-util/Dom/scrollLocker.js +1 -0
- package/lib/vc-util/devWarning.js +1 -0
- package/lib/vc-util/get.js +1 -0
- package/lib/vc-util/isEqual.js +1 -0
- package/lib/vc-util/isMobile.js +1 -0
- package/lib/vc-util/set.js +1 -0
- package/lib/vc-util/warning.js +1 -0
- package/lib/version/index.js +1 -0
- package/lib/version/token-meta.js +1 -0
- package/lib/version/token.js +1 -0
- package/lib/version/version.js +1 -0
- package/lib/welcome/Welcome.js +1 -0
- package/lib/welcome/index.js +1 -0
- package/lib/welcome/interface.js +1 -0
- package/lib/welcome/style/index.js +1 -0
- package/lib/x-provider/context.js +1 -0
- package/lib/x-provider/hooks/use-x-provider-context.js +1 -0
- package/lib/x-provider/index.js +1 -0
- package/lib/x-provider/index2.js +1 -0
- package/lib/x-request/index.js +1 -0
- package/lib/x-request/x-fetch.js +1 -0
- package/lib/x-request/x-request.js +1 -0
- package/lib/x-stream/index.js +1 -0
- package/lib/x-stream/x-stream.js +4 -0
- package/package.json +21 -13
- package/typings/bubble/Bubble.vue.d.ts +37 -0
- package/typings/bubble/index.d.ts +258 -0
- package/{dist/typings → typings}/bubble/interface.d.ts +6 -4
- package/{dist/typings → typings}/conversations/interface.d.ts +2 -1
- package/{dist/typings → typings}/sender/interface.d.ts +1 -1
- package/{dist/typings → typings}/x-provider/context.d.ts +9 -9
- package/dist/index.mjs +0 -34154
- package/dist/typings/bubble/Bubble.vue.d.ts +0 -35
- package/dist/typings/bubble/index.d.ts +0 -51
- /package/{dist/resolver → resolver-dist}/index.d.ts +0 -0
- /package/{dist/resolver → resolver-dist}/index.js +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/Cache.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/Keyframes.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/StyleContext.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/hooks/useCSSVarRegister.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/hooks/useCacheToken.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/hooks/useGlobalCache.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/hooks/useHMR.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/hooks/useStyleRegister/cacheMapUtil.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/hooks/useStyleRegister/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/contentQuotesLinter.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/hashedAnimationLinter.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/interface.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/legacyNotSelectorLinter.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/logicalPropertiesLinter.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/parentSelectorLinter.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/linters/utils.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/theme/Theme.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/theme/ThemeCache.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/theme/createTheme.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/theme/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/theme/interface.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/transformers/interface.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/transformers/legacyLogicalProperties.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/transformers/px2rem.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs/util.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/_util/hooks/useUniqueMemo.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/hooks/useCSP.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/hooks/usePrefix.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/hooks/useToken.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/interface/components.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/interface/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/calc/CSSCalculator.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/calc/NumCalculator.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/calc/calculator.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/calc/index.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/genStyleUtils.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/getCompVarPrefix.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/getComponentToken.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/getDefaultComponentToken.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/maxmin.d.ts +0 -0
- /package/{dist/typings → typings}/_util/cssinjs-utils/util/statistic.d.ts +0 -0
- /package/{dist/typings → typings}/_util/getValue.d.ts +0 -0
- /package/{dist/typings → typings}/_util/hooks/use-event-callback.d.ts +0 -0
- /package/{dist/typings → typings}/_util/hooks/use-state.d.ts +0 -0
- /package/{dist/typings → typings}/_util/hooks/use-x-component-config.d.ts +0 -0
- /package/{dist/typings → typings}/_util/hooks/useMergedState.d.ts +0 -0
- /package/{dist/typings → typings}/_util/pick-attrs.d.ts +0 -0
- /package/{dist/typings → typings}/_util/type.d.ts +0 -0
- /package/{dist/typings → typings}/_util/warning.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/Attachments.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/DropArea.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/FileList/AudioIcon.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/FileList/FileList.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/FileList/FileListCard.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/FileList/VideoIcon.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/FileList/index.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/PlaceholderUploader.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/SilentUploader.vue.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/context.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/index.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/interface.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/style/fileCard.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/attachments/util.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/BubbleList.vue.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/context.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/hooks/useDisplayData.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/hooks/useListData.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/hooks/useTypedEffect.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/hooks/useTypingConfig.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/loading.vue.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/style/content.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/bubble/style/list.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/Conversations.vue.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/ConversationsItem.vue.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/GroupTitle.vue.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/context.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/hooks/useGroupable.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/index.d.ts +0 -0
- /package/{dist/typings → typings}/conversations/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/index.d.ts +0 -0
- /package/{dist/typings → typings}/prompts/Prompts.vue.d.ts +0 -0
- /package/{dist/typings → typings}/prompts/index.d.ts +0 -0
- /package/{dist/typings → typings}/prompts/interface.d.ts +0 -0
- /package/{dist/typings → typings}/prompts/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/sender/Sender.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/SenderHeader.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/StopLoading.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/ActionButton/context.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/ActionButton/index.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/ClearButton.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/LoadingButton.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/SendButton.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/SpeechButton/RecordingIcon.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/components/SpeechButton/index.vue.d.ts +0 -0
- /package/{dist/typings → typings}/sender/context.d.ts +0 -0
- /package/{dist/typings → typings}/sender/index.d.ts +0 -0
- /package/{dist/typings → typings}/sender/style/header.d.ts +0 -0
- /package/{dist/typings → typings}/sender/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/sender/useSpeech.d.ts +0 -0
- /package/{dist/typings → typings}/suggestion/Suggestion.vue.d.ts +0 -0
- /package/{dist/typings → typings}/suggestion/index.d.ts +0 -0
- /package/{dist/typings → typings}/suggestion/interface.d.ts +0 -0
- /package/{dist/typings → typings}/suggestion/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/suggestion/useActive.d.ts +0 -0
- /package/{dist/typings → typings}/theme/components.d.ts +0 -0
- /package/{dist/typings → typings}/theme/cssinjs-utils.d.ts +0 -0
- /package/{dist/typings → typings}/theme/genStyleUtils.d.ts +0 -0
- /package/{dist/typings → typings}/theme/index.d.ts +0 -0
- /package/{dist/typings → typings}/theme/patch-antd.d.ts +0 -0
- /package/{dist/typings → typings}/theme/useToken.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/ThoughtChain.vue.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/context.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/hooks/useCollapsible.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/index.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/interface.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/item.vue.d.ts +0 -0
- /package/{dist/typings → typings}/thought-chain/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/transition-collapse/TransitionCollapse.vue.d.ts +0 -0
- /package/{dist/typings → typings}/transition-collapse/index.d.ts +0 -0
- /package/{dist/typings → typings}/transition-collapse/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/type-utility.d.ts +0 -0
- /package/{dist/typings → typings}/use-x-agent/index.d.ts +0 -0
- /package/{dist/typings → typings}/use-x-agent/use-x-agent.d.ts +0 -0
- /package/{dist/typings → typings}/use-x-chat/index.d.ts +0 -0
- /package/{dist/typings → typings}/use-x-chat/use-x-chat.d.ts +0 -0
- /package/{dist/typings → typings}/use-x-chat/useSyncState.d.ts +0 -0
- /package/{dist/typings → typings}/vc-util/Dom/canUseDom.d.ts +0 -0
- /package/{dist/typings → typings}/vc-util/Dom/contains.d.ts +0 -0
- /package/{dist/typings → typings}/vc-util/Dom/dynamicCSS.d.ts +0 -0
- /package/{dist/typings → typings}/vc-util/warning.d.ts +0 -0
- /package/{dist/typings → typings}/version/index.d.ts +0 -0
- /package/{dist/typings → typings}/version/version.d.ts +0 -0
- /package/{dist/typings → typings}/welcome/Welcome.vue.d.ts +0 -0
- /package/{dist/typings → typings}/welcome/index.d.ts +0 -0
- /package/{dist/typings → typings}/welcome/interface.d.ts +0 -0
- /package/{dist/typings → typings}/welcome/style/index.d.ts +0 -0
- /package/{dist/typings → typings}/x-provider/hooks/use-x-provider-context.d.ts +0 -0
- /package/{dist/typings → typings}/x-provider/index.d.ts +0 -0
- /package/{dist/typings → typings}/x-provider/index.vue.d.ts +0 -0
- /package/{dist/typings → typings}/x-request/index.d.ts +0 -0
- /package/{dist/typings → typings}/x-request/x-fetch.d.ts +0 -0
- /package/{dist/typings → typings}/x-request/x-request.d.ts +0 -0
- /package/{dist/typings → typings}/x-stream/index.d.ts +0 -0
- /package/{dist/typings → typings}/x-stream/x-stream.d.ts +0 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { defineComponent as l, useSlots as u, computed as n, createVNode as s, mergeProps as d } from "vue";
|
|
2
|
+
import { a as h } from "../attachments/Attachments2.mjs";
|
|
3
|
+
import { XProviderContextProvider as g } from "./context.mjs";
|
|
4
|
+
import p from "./hooks/use-x-provider-context.mjs";
|
|
5
|
+
import { ConfigProvider as f } from "ant-design-vue";
|
|
6
|
+
const w = /* @__PURE__ */ l({
|
|
7
|
+
name: "AXConfigProvider",
|
|
8
|
+
inheritAttrs: !1,
|
|
9
|
+
__name: "index",
|
|
10
|
+
props: {
|
|
11
|
+
bubble: {},
|
|
12
|
+
conversations: {},
|
|
13
|
+
prompts: {},
|
|
14
|
+
sender: {},
|
|
15
|
+
suggestion: {},
|
|
16
|
+
thoughtChain: {},
|
|
17
|
+
attachments: {},
|
|
18
|
+
welcome: {},
|
|
19
|
+
iconPrefixCls: {},
|
|
20
|
+
getTargetContainer: {},
|
|
21
|
+
getPopupContainer: {},
|
|
22
|
+
prefixCls: {},
|
|
23
|
+
getPrefixCls: {},
|
|
24
|
+
renderEmpty: {},
|
|
25
|
+
transformCellText: {},
|
|
26
|
+
csp: {},
|
|
27
|
+
input: {},
|
|
28
|
+
autoInsertSpaceInButton: {
|
|
29
|
+
type: Boolean
|
|
30
|
+
},
|
|
31
|
+
locale: {},
|
|
32
|
+
pageHeader: {},
|
|
33
|
+
componentSize: {},
|
|
34
|
+
componentDisabled: {
|
|
35
|
+
type: Boolean
|
|
36
|
+
},
|
|
37
|
+
direction: {},
|
|
38
|
+
space: {},
|
|
39
|
+
virtual: {
|
|
40
|
+
type: Boolean
|
|
41
|
+
},
|
|
42
|
+
dropdownMatchSelectWidth: {},
|
|
43
|
+
form: {},
|
|
44
|
+
pagination: {},
|
|
45
|
+
theme: {},
|
|
46
|
+
select: {},
|
|
47
|
+
wave: {}
|
|
48
|
+
},
|
|
49
|
+
setup(e) {
|
|
50
|
+
const r = h(e, ["attachments", "bubble", "conversations", "prompts", "sender", "suggestion", "thoughtChain", "welcome"]), t = u(), i = n(() => ({
|
|
51
|
+
attachments: e.attachments,
|
|
52
|
+
bubble: e.bubble,
|
|
53
|
+
conversations: e.conversations,
|
|
54
|
+
prompts: e.prompts,
|
|
55
|
+
sender: e.sender,
|
|
56
|
+
suggestion: e.suggestion,
|
|
57
|
+
thoughtChain: e.thoughtChain,
|
|
58
|
+
welcome: e.welcome
|
|
59
|
+
})), {
|
|
60
|
+
theme: o
|
|
61
|
+
} = p(), m = n(() => ({
|
|
62
|
+
...(o == null ? void 0 : o.value) || {},
|
|
63
|
+
...r.theme
|
|
64
|
+
})), c = n(() => {
|
|
65
|
+
var a;
|
|
66
|
+
return (a = t.default) == null ? void 0 : a.call(t);
|
|
67
|
+
});
|
|
68
|
+
return () => s(g, {
|
|
69
|
+
value: i.value
|
|
70
|
+
}, {
|
|
71
|
+
default: () => [s(f, d(r, {
|
|
72
|
+
theme: m.value
|
|
73
|
+
}), {
|
|
74
|
+
default: () => [c.value]
|
|
75
|
+
})]
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
export {
|
|
80
|
+
w as _
|
|
81
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const c = async (i, r = {}) => {
|
|
2
|
+
const { fetch: n = globalThis.fetch, middlewares: t = {}, ...f } = r;
|
|
3
|
+
if (typeof n != "function")
|
|
4
|
+
throw new Error("The options.fetch must be a typeof fetch function!");
|
|
5
|
+
let o = [i, f];
|
|
6
|
+
typeof t.onRequest == "function" && (o = await t.onRequest(...o));
|
|
7
|
+
let e = await n(...o);
|
|
8
|
+
if (typeof t.onResponse == "function") {
|
|
9
|
+
const s = await t.onResponse(e);
|
|
10
|
+
if (!(s instanceof Response))
|
|
11
|
+
throw new Error("The options.onResponse must return a Response instance!");
|
|
12
|
+
e = s;
|
|
13
|
+
}
|
|
14
|
+
if (!e.ok)
|
|
15
|
+
throw new Error(`Fetch failed with status ${e.status}`);
|
|
16
|
+
if (!e.body)
|
|
17
|
+
throw new Error("The response body is empty.");
|
|
18
|
+
return e;
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
c as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import f from "../x-stream/x-stream.mjs";
|
|
2
|
+
import y from "./x-fetch.mjs";
|
|
3
|
+
const d = class d {
|
|
4
|
+
constructor(n) {
|
|
5
|
+
this.create = async (s, e, r) => {
|
|
6
|
+
var o;
|
|
7
|
+
const i = {
|
|
8
|
+
method: "POST",
|
|
9
|
+
body: JSON.stringify({
|
|
10
|
+
model: this.model,
|
|
11
|
+
...s
|
|
12
|
+
}),
|
|
13
|
+
headers: this.defaultHeaders
|
|
14
|
+
};
|
|
15
|
+
try {
|
|
16
|
+
const t = await y(this.baseURL, {
|
|
17
|
+
fetch: this.customOptions.fetch,
|
|
18
|
+
...i
|
|
19
|
+
});
|
|
20
|
+
if (r) {
|
|
21
|
+
await this.customResponseHandler(t, e, r);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const h = t.headers.get("content-type") || "";
|
|
25
|
+
switch (h.split(";")[0].trim()) {
|
|
26
|
+
/** SSE */
|
|
27
|
+
case "text/event-stream":
|
|
28
|
+
await this.sseResponseHandler(t, e);
|
|
29
|
+
break;
|
|
30
|
+
/** JSON */
|
|
31
|
+
case "application/json":
|
|
32
|
+
await this.jsonResponseHandler(t, e);
|
|
33
|
+
break;
|
|
34
|
+
default:
|
|
35
|
+
throw new Error(`The response content-type: ${h} is not support!`);
|
|
36
|
+
}
|
|
37
|
+
} catch (t) {
|
|
38
|
+
const h = t instanceof Error ? t : new Error("Unknown error!");
|
|
39
|
+
throw (o = e == null ? void 0 : e.onError) == null || o.call(e, h), h;
|
|
40
|
+
}
|
|
41
|
+
}, this.customResponseHandler = async (s, e, r) => {
|
|
42
|
+
var o, t;
|
|
43
|
+
const i = [];
|
|
44
|
+
for await (const h of f({
|
|
45
|
+
readableStream: s.body,
|
|
46
|
+
transformStream: r
|
|
47
|
+
}))
|
|
48
|
+
i.push(h), (o = e == null ? void 0 : e.onUpdate) == null || o.call(e, h);
|
|
49
|
+
(t = e == null ? void 0 : e.onSuccess) == null || t.call(e, i);
|
|
50
|
+
}, this.sseResponseHandler = async (s, e) => {
|
|
51
|
+
var i, o;
|
|
52
|
+
const r = [];
|
|
53
|
+
for await (const t of f({
|
|
54
|
+
readableStream: s.body
|
|
55
|
+
}))
|
|
56
|
+
r.push(t), (i = e == null ? void 0 : e.onUpdate) == null || i.call(e, t);
|
|
57
|
+
(o = e == null ? void 0 : e.onSuccess) == null || o.call(e, r);
|
|
58
|
+
}, this.jsonResponseHandler = async (s, e) => {
|
|
59
|
+
var i, o;
|
|
60
|
+
const r = await s.json();
|
|
61
|
+
(i = e == null ? void 0 : e.onUpdate) == null || i.call(e, r), (o = e == null ? void 0 : e.onSuccess) == null || o.call(e, [r]);
|
|
62
|
+
};
|
|
63
|
+
const { baseURL: u, model: w, dangerouslyApiKey: R, ...m } = n;
|
|
64
|
+
this.baseURL = n.baseURL, this.model = n.model, this.defaultHeaders = {
|
|
65
|
+
"Content-Type": "application/json",
|
|
66
|
+
...n.dangerouslyApiKey && {
|
|
67
|
+
Authorization: n.dangerouslyApiKey
|
|
68
|
+
}
|
|
69
|
+
}, this.customOptions = m;
|
|
70
|
+
}
|
|
71
|
+
static init(n) {
|
|
72
|
+
if (!n.baseURL || typeof n.baseURL != "string")
|
|
73
|
+
throw new Error("The baseURL is not valid!");
|
|
74
|
+
const u = n.fetch || n.baseURL;
|
|
75
|
+
return d.instanceBuffer.has(u) || d.instanceBuffer.set(u, new d(n)), d.instanceBuffer.get(u);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
d.instanceBuffer = /* @__PURE__ */ new Map();
|
|
79
|
+
let p = d;
|
|
80
|
+
const g = p.init;
|
|
81
|
+
export {
|
|
82
|
+
g as default
|
|
83
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
const l = `
|
|
2
|
+
|
|
3
|
+
`, h = `
|
|
4
|
+
`, c = ":", u = (e) => (e ?? "").trim() !== "";
|
|
5
|
+
function m() {
|
|
6
|
+
let e = "";
|
|
7
|
+
return new TransformStream({
|
|
8
|
+
transform(t, o) {
|
|
9
|
+
e += t;
|
|
10
|
+
const r = e.split(l);
|
|
11
|
+
r.slice(0, -1).forEach((n) => {
|
|
12
|
+
u(n) && o.enqueue(n);
|
|
13
|
+
}), e = r[r.length - 1];
|
|
14
|
+
},
|
|
15
|
+
flush(t) {
|
|
16
|
+
u(e) && t.enqueue(e);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function d() {
|
|
21
|
+
return new TransformStream({
|
|
22
|
+
transform(e, t) {
|
|
23
|
+
const r = e.split(h).reduce((n, s) => {
|
|
24
|
+
const a = s.indexOf(c);
|
|
25
|
+
if (a === -1)
|
|
26
|
+
throw new Error(
|
|
27
|
+
`The key-value separator "${c}" is not found in the sse line chunk!`
|
|
28
|
+
);
|
|
29
|
+
const i = s.slice(0, a);
|
|
30
|
+
if (!u(i)) return n;
|
|
31
|
+
const f = s.slice(a + 1);
|
|
32
|
+
return { ...n, [i]: f };
|
|
33
|
+
}, {});
|
|
34
|
+
Object.keys(r).length !== 0 && t.enqueue(r);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function p(e) {
|
|
39
|
+
const { readableStream: t, transformStream: o } = e;
|
|
40
|
+
if (!(t instanceof ReadableStream))
|
|
41
|
+
throw new Error("The options.readableStream must be an instance of ReadableStream.");
|
|
42
|
+
const r = new TextDecoderStream(), n = o ? (
|
|
43
|
+
/**
|
|
44
|
+
* Uint8Array binary -> string -> Output
|
|
45
|
+
*/
|
|
46
|
+
t.pipeThrough(r).pipeThrough(o)
|
|
47
|
+
) : (
|
|
48
|
+
/**
|
|
49
|
+
* Uint8Array binary -> string -> SSE part string -> Default Output {@link SSEOutput}
|
|
50
|
+
*/
|
|
51
|
+
t.pipeThrough(r).pipeThrough(m()).pipeThrough(d())
|
|
52
|
+
);
|
|
53
|
+
return n[Symbol.asyncIterator] = async function* () {
|
|
54
|
+
const s = this.getReader();
|
|
55
|
+
for (; ; ) {
|
|
56
|
+
const { done: a, value: i } = await s.read();
|
|
57
|
+
if (a) break;
|
|
58
|
+
i && (yield i);
|
|
59
|
+
}
|
|
60
|
+
}, n;
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
p as default
|
|
64
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c="%";class i{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(c):t)||null}update(t,r){const e=Array.isArray(t)?t.join(c):t,s=this.cache.get(e),a=r(s);a===null?this.cache.delete(e):this.cache.set(e,a)}}exports.default=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});class r{constructor(e,t){this._keyframe=!0,this.name=e,this.style=t}getName(e=""){return e?`${e}-${this.name}`:this.name}}exports.default=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),T=require("./Cache.js"),c=require("../type.js"),A="data-token-hash",d="data-css-hash",m="data-cache-path",u="__cssinjs_instance__";function i(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const o=document.body.querySelectorAll(`style[${d}]`)||[],{firstChild:n}=document.head;Array.from(o).forEach(t=>{t[u]=t[u]||e,t[u]===e&&document.head.insertBefore(t,n)});const r={};Array.from(document.querySelectorAll(`style[${d}]`)).forEach(t=>{var l;const s=t.getAttribute(d);r[s]?t[u]===e&&((l=t.parentNode)==null||l.removeChild(t)):r[s]=!0})}return new T.default(e)}const f=Symbol("StyleContextKey"),P=()=>{var n,r,t;const e=a.getCurrentInstance();let o;if(e&&e.appContext){const s=(t=(r=(n=e.appContext)==null?void 0:n.config)==null?void 0:r.globalProperties)==null?void 0:t.__ANTDV_CSSINJS_CACHE__;s?o=s:(o=i(),e.appContext.config.globalProperties&&(e.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=o))}else o=i();return o},C={cache:i(),defaultCache:!0,hashPriority:"low"},h=()=>{const e=P();return a.inject(f,a.shallowRef({...C,cache:e}))},_=e=>{const o=h(),n=a.shallowRef({...C,cache:i()});return a.watch([()=>a.unref(e),o],()=>{const r={...o.value},t=a.unref(e);Object.keys(t).forEach(l=>{const S=t[l];t[l]!==void 0&&(r[l]=S)});const{cache:s}=t;r.cache=r.cache||i(),r.defaultCache=!s&&o.value.defaultCache,n.value=r},{immediate:!0}),a.provide(f,n),n},y=()=>({autoClear:c.booleanType(),mock:c.stringType(),cache:c.objectType(),defaultCache:c.booleanType(),hashPriority:c.stringType(),container:c.someType(),ssrInline:c.booleanType(),transformers:c.arrayType(),linters:c.arrayType()}),p=c.withInstall(a.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:y(),setup(e,{slots:o}){return _(e),()=>{var n;return(n=o.default)==null?void 0:n.call(o)}}})),g={useStyleInject:h,useStyleProvider:_,StyleProvider:p};exports.ATTR_CACHE_PATH=m;exports.ATTR_MARK=d;exports.ATTR_TOKEN=A;exports.CSS_IN_JS_INSTANCE=u;exports.StyleProvider=p;exports.createCache=i;exports.default=g;exports.styleProviderProps=y;exports.useStyleInject=h;exports.useStyleProvider=_;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const C=require("../../../vc-util/Dom/dynamicCSS.js"),y=require("../StyleContext.js"),u=require("../util.js"),p=require("./useGlobalCache.js"),R=require("./useStyleRegister/index.tsx2.js"),h="cssVar",m=(s,a)=>{const{key:e,prefix:r,unitless:n,ignore:o,token:c,scope:t=""}=s,{cache:{instanceId:l},container:_}=useContext(y.default),{_tokenKey:k}=c,S=[...s.path,e,t,k];return p.default(h,S,()=>{const i=a(),[x,d]=u.transformToken(i,e,{prefix:r,unitless:n,ignore:o,scope:t}),f=R.uniqueHash(S,d);return[x,d,f,e]},([,,i])=>{u.isClientSide&&C.removeCSS(i,{mark:y.ATTR_MARK})})},T=(s,a,e)=>{const[,r,n,o]=s,{plain:c}=e||{};if(!r)return null;const t=-999,l={"data-rc-order":"prependQueue","data-rc-priority":`${t}`},_=u.toStyleStr(r,o,n,l,c);return[t,n,_]};exports.CSS_VAR_PREFIX=h;exports.default=m;exports.extract=T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./useCacheToken.tsx2.js");require("../StyleContext.js");require("./useGlobalCache.js");require("../util.js");require("vue");exports.default=e.useCacheToken;exports.getComputedToken=e.getComputedToken;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const v=require("../StyleContext.js"),m=require("./useGlobalCache.js"),d=require("../util.js"),f=require("vue");function h(t){for(var e=0,n,o=0,c=t.length;c>=4;++o,c-=4)n=t.charCodeAt(o)&255|(t.charCodeAt(++o)&255)<<8|(t.charCodeAt(++o)&255)<<16|(t.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(c){case 3:e^=(t.charCodeAt(o+2)&255)<<16;case 2:e^=(t.charCodeAt(o+1)&255)<<8;case 1:e^=t.charCodeAt(o)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}const x={},y="css",a=new Map;function S(t){a.set(t,(a.get(t)||0)+1)}function A(t,e){typeof document<"u"&&document.querySelectorAll(`style[${v.ATTR_TOKEN}="${t}"]`).forEach(o=>{var c;o[v.CSS_IN_JS_INSTANCE]===e&&((c=o.parentNode)==null||c.removeChild(o))})}const p=0;function E(t,e){a.set(t,(a.get(t)||0)-1);const n=Array.from(a.keys()),o=n.filter(c=>(a.get(c)||0)<=0);n.length-o.length>p&&o.forEach(c=>{A(c,e),a.delete(c)})}const _=(t,e,n,o)=>{let u={...n==null?void 0:n.getDerivativeToken(t),...e};return o&&(u=o(u)),u};function b(t,e,n=f.ref({})){const o=v.useStyleInject(),c=f.computed(()=>Object.assign({},...e.value||[])),u=f.computed(()=>d.flattenToken(c.value)),C=f.computed(()=>{var s;return d.flattenToken(((s=n.value)==null?void 0:s.override)||x)});return m.default("token",f.computed(()=>{var s,r;return[((s=n.value)==null?void 0:s.salt)||"",(r=t.value)==null?void 0:r.id,u.value,C.value]}),()=>{const{salt:s="",override:r=x,formatToken:g,getComputedToken:k}=n.value||{},l=k?k(c.value,r,t.value):_(c.value,r,t.value,g),i=d.token2key(l,s);l._tokenKey=i,S(i);const T=`${y}-${h(i)}`;return l._hashId=T,[l,T]},s=>{var r;E(s[0]._tokenKey,(r=o.value)==null?void 0:r.cache.instanceId)})}exports.getComputedToken=_;exports.murmur2=h;exports.useCacheToken=b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const C=require("../StyleContext.js"),e=require("vue");function _(f,h,d,a){const n=C.useStyleInject(),t=e.shallowRef(""),r=e.shallowRef();e.watchEffect(()=>{t.value=[f,...h.value].join("%")});const i=s=>{n.value.cache.update(s,u=>{const[c=0,l]=u||[];return c-1===0?(a==null||a(l,!1),null):[c-1,l]})};return e.watch(t,(s,u)=>{u&&i(u),n.value.cache.update(s,c=>{const[l=0,o]=c||[],v=o||d();return[l+1,v]}),r.value=n.value.cache.get(t.value)[1]},{immediate:!0}),e.onBeforeUnmount(()=>{i(t.value)}),r}exports.default=_;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function e(){return!1}const t=e;exports.default=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../vc-util/Dom/canUseDom.js"),_=require("../../StyleContext.js"),l="data-ant-cssinjs-cache-path",c="_FILE_STYLE__";function S(t){return Object.keys(t).map(e=>{const n=t[e];return`${e}:${n}`}).join(";")}let s,o=!0;function f(t,e=!0){s=t,o=e}function a(){var t;if(!s&&(s={},r.default())){const e=document.createElement("div");e.className=l,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let n=getComputedStyle(e).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(u=>{const[d,y]=u.split(":");s[d]=y});const i=document.querySelector(`style[${l}]`);i&&(o=!1,(t=i.parentNode)==null||t.removeChild(i)),document.body.removeChild(e)}}function p(t){return a(),!!s[t]}function h(t){const e=s[t];let n=null;if(e&&r.default())if(o)n=c;else{const i=document.querySelector(`style[${_.ATTR_MARK}="${s[t]}"]`);i?n=i.innerHTML:delete s[t]}return[n,e]}exports.ATTR_CACHE_MAP=l;exports.CSS_FILE_STYLE=c;exports.existPath=p;exports.getStyleAndHash=h;exports.prepare=a;exports.reset=f;exports.serialize=S;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("../useCacheToken.tsx2.js");const e=require("./index.tsx2.js");require("../../StyleContext.js");require("../../util.js");require("../useGlobalCache.js");require("../../../../vc-util/Dom/dynamicCSS.js");require("vue");require("../../../../vc-util/Dom/canUseDom.js");require("./cacheMapUtil.js");exports._cf=e._cf;exports.default=e.useStyleRegister;exports.extractStyle=e.extractStyle;exports.normalizeStyle=e.normalizeStyle;exports.parseStyle=e.parseStyle;exports.uniqueHash=e.uniqueHash;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const ye=require("../useCacheToken.tsx2.js"),$=require("../../StyleContext.js"),Se=require("../../util.js"),me=require("../useGlobalCache.js"),Y=require("../../../../vc-util/Dom/dynamicCSS.js"),V=require("vue"),pe=require("../../../../vc-util/Dom/canUseDom.js"),I=require("./cacheMapUtil.js");var ae={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},se="comm",ce="rule",ie="decl",_e="@import",ve="@keyframes",ge="@layer",oe=Math.abs,B=String.fromCharCode;function ue(e){return e.trim()}function K(e,t,n){return e.replace(t,n)}function be(e,t,n){return e.indexOf(t,n)}function q(e,t){return e.charCodeAt(t)|0}function M(e,t,n){return e.slice(t,n)}function E(e){return e.length}function ke(e){return e.length}function z(e,t){return t.push(e),e}var W=1,P=1,le=0,w=0,k=0,N="";function X(e,t,n,s,f,S,o,d){return{value:e,root:t,parent:n,type:s,props:f,children:S,line:W,column:P,length:o,return:"",siblings:d}}function Ce(){return k}function Ae(){return k=w>0?q(N,--w):0,P--,k===10&&(P=1,W--),k}function x(){return k=w<le?q(N,w++):0,P++,k===10&&(P=1,W++),k}function j(){return q(N,w)}function L(){return w}function F(e,t){return M(N,e,t)}function H(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Te(e){return W=P=1,le=E(N=e),w=0,[]}function we(e){return N="",e}function J(e){return ue(F(w-1,Q(e===91?e+2:e===40?e+1:e)))}function Re(e){for(;(k=j())&&k<33;)x();return H(e)>2||H(k)>3?"":" "}function xe(e,t){for(;--t&&x()&&!(k<48||k>102||k>57&&k<65||k>70&&k<97););return F(e,L()+(t<6&&j()==32&&x()==32))}function Q(e){for(;x();)switch(k){case e:return w;case 34:case 39:e!==34&&e!==39&&Q(k);break;case 40:e===41&&Q(e);break;case 92:x();break}return w}function Ee(e,t){for(;x()&&e+k!==57;)if(e+k===84&&j()===47)break;return"/*"+F(t,w-1)+"*"+B(e===47?e:x())}function $e(e){for(;!H(j());)x();return F(e,w)}function je(e){return we(G("",null,null,null,[""],e=Te(e),0,[0],e))}function G(e,t,n,s,f,S,o,d,A){for(var c=0,p=0,u=o,g=0,C=0,b=0,y=1,m=1,l=1,i=0,_="",a=f,v=S,h=s,r=_;m;)switch(b=i,i=x()){case 40:if(b!=108&&q(r,u-1)==58){be(r+=K(J(i),"&","&\f"),"&\f",oe(c?d[c-1]:0))!=-1&&(l=-1);break}case 34:case 39:case 91:r+=J(i);break;case 9:case 10:case 13:case 32:r+=Re(b);break;case 92:r+=xe(L()-1,7);continue;case 47:switch(j()){case 42:case 47:z(Oe(Ee(x(),L()),t,n,A),A),(H(b||1)==5||H(j()||1)==5)&&E(r)&&M(r,-1,void 0)!==" "&&(r+=" ");break;default:r+="/"}break;case 123*y:d[c++]=E(r)*l;case 125*y:case 59:case 0:switch(i){case 0:case 125:m=0;case 59+p:l==-1&&(r=K(r,/\f/g,"")),C>0&&(E(r)-u||y===0&&b===47)&&z(C>32?te(r+";",s,n,u-1,A):te(K(r," ","")+";",s,n,u-2,A),A);break;case 59:r+=";";default:if(z(h=ee(r,t,n,c,p,f,d,_,a=[],v=[],u,S),S),i===123)if(p===0)G(r,t,h,h,a,S,u,d,v);else switch(g===99&&q(r,3)===110?100:g){case 100:case 108:case 109:case 115:G(e,h,h,s&&z(ee(e,h,h,0,0,f,d,_,f,a=[],u,v),v),f,v,u,d,s?a:v);break;default:G(r,h,h,h,[""],v,0,d,v)}}c=p=C=0,y=l=1,_=r="",u=o;break;case 58:u=1+E(r),C=b;default:if(y<1){if(i==123)--y;else if(i==125&&y++==0&&Ae()==125)continue}switch(r+=B(i),i*y){case 38:l=p>0?1:(r+="\f",-1);break;case 44:d[c++]=(E(r)-1)*l,l=1;break;case 64:j()===45&&(r+=J(x())),g=j(),p=u=E(_=r+=$e(L())),i++;break;case 45:b===45&&E(r)==2&&(y=0)}}return S}function ee(e,t,n,s,f,S,o,d,A,c,p,u){for(var g=f-1,C=f===0?S:[""],b=ke(C),y=0,m=0,l=0;y<s;++y)for(var i=0,_=M(e,g+1,g=oe(m=o[y])),a=e;i<b;++i)(a=ue(m>0?C[i]+" "+_:K(_,/&\f/g,C[i])))&&(A[l++]=a);return X(e,t,n,f===0?ce:d,A,c,p,u)}function Oe(e,t,n,s){return X(e,t,n,se,B(Ce()),M(e,2,-2),0,s)}function te(e,t,n,s,f){return X(e,t,n,ie,M(e,0,s),M(e,s+1,-1),s,f)}function Z(e,t){for(var n="",s=0;s<e.length;s++)n+=t(e[s],s,e,t)||"";return n}function Ie(e,t,n,s){switch(e.type){case ge:if(e.children.length)break;case _e:case ie:return e.return=e.return||e.value;case se:return"";case ve:return e.return=e.value+"{"+Z(e.children,s)+"}";case ce:if(!E(e.value=e.props.join(",")))return""}return E(n=Z(e.children,s))?e.return=e.value+"{"+n+"}":""}const re=pe.default(),Me="_skip_check_",fe="_multi_value_";function U(e){return Z(je(e),Ie).replace(/\{%%%\:[^;];}/g,";")}function Pe(e){return typeof e=="object"&&e&&(Me in e||fe in e)}function Ne(e,t,n){if(!t)return e;const s=`.${t}`,f=n==="low"?`:where(${s})`:s;return e.split(",").map(o=>{var p;const d=o.trim().split(/\s+/);let A=d[0]||"";const c=((p=A.match(/^\w+/))==null?void 0:p[0])||"";return A=`${c}${f}${A.slice(c.length)}`,[A,...d.slice(1)].join(" ")}).join(",")}const ne=new Set,qe=void 0,D=(e,t={},{root:n,injectHash:s,parentSelectors:f}={root:!0,parentSelectors:[]})=>{const{hashId:S,layer:o,path:d,hashPriority:A,transformers:c=[],linters:p=[]}=t;let u="",g={};function C(m){const l=m.getName(S);if(!g[l]){const[i]=D(m.style,t,{root:!1,parentSelectors:f});g[l]=`@keyframes ${m.getName(S)}${i}`}}function b(m,l=[]){return m.forEach(i=>{Array.isArray(i)?b(i,l):i&&l.push(i)}),l}return b(Array.isArray(e)?e:[e]).forEach(m=>{const l=typeof m=="string"&&!n?{}:m;if(typeof l=="string")u+=`${l}
|
|
2
|
+
`;else if(l._keyframe)C(l);else{const i=c.reduce((_,a)=>{var v;return((v=a==null?void 0:a.visit)==null?void 0:v.call(a,_))||_},l);Object.keys(i).forEach(_=>{const a=i[_];if(typeof a=="object"&&a&&(_!=="animationName"||!a._keyframe)&&!Pe(a)){let v=!1,h=_.trim(),r=!1;(n||s)&&S?h.startsWith("@")?v=!0:h=Ne(_,S,A):n&&!S&&(h==="&"||h==="")&&(h="",r=!0);const[T,O]=D(a,t,{root:r,injectHash:v,parentSelectors:[...f,h]});g={...g,...O},u+=`${h}${T}`}else{let v=function(r,T){const O=r.replace(/[A-Z]/g,de=>`-${de.toLowerCase()}`);let R=T;!ae[r]&&typeof R=="number"&&R!==0&&(R=`${R}px`),r==="animationName"&&(T!=null&&T._keyframe)&&(C(T),R=T.getName(S)),u+=`${O}:${R};`};const h=(a==null?void 0:a.value)??a;typeof a=="object"&&(a!=null&&a[fe])&&Array.isArray(h)?h.forEach(r=>{v(_,r)}):v(_,h)}})}}),n?o&&Se.supportLayer():u=`{${u}}`,[u,g]};function he(e,t){return ye.murmur2(`${e.join("%")}${t}`)}function He(e,t){const n=$.useStyleInject(),s=V.computed(()=>{var o;return(o=e.value)==null?void 0:o.token._tokenKey}),f=V.computed(()=>{var o;return[s.value,...((o=e.value)==null?void 0:o.path)||[]]});let S=re;return me.default("style",f,()=>{const{path:o,hashId:d,layer:A,nonce:c,clientOnly:p,order:u=0}=e.value||{},g=f.value.join("|");if(I.existPath(g)){const[r,T]=I.getStyleAndHash(g);if(r)return[r,s.value,T,{},p,u]}const C=t(),{hashPriority:b,container:y,transformers:m,linters:l,cache:i}=n.value,[_,a]=D(C,{hashId:d,hashPriority:b,layer:A,path:o==null?void 0:o.join("-"),transformers:m,linters:l}),v=U(_),h=he(f.value,v);if(S){const r={mark:$.ATTR_MARK,prepend:"queue",attachTo:y},T=typeof c=="function"?c():c;T&&(r.csp={nonce:T});const O=Y.updateCSS(v,h,r);O[$.CSS_IN_JS_INSTANCE]=i.instanceId,O.setAttribute($.ATTR_TOKEN,s.value),Object.keys(a).forEach(R=>{ne.has(R)||(ne.add(R),Y.updateCSS(U(a[R]),`_effect-${R}`,{mark:$.ATTR_MARK,prepend:"queue",attachTo:y}))})}return[v,s.value,h,a,p,u]},([,,o],d)=>{(d||n.value.autoClear)&&re&&Y.removeCSS(o,{mark:$.ATTR_MARK})}),o=>o}function ze(e,t=!1){const n="style%",s=Array.from(e.cache.keys()).filter(c=>c.startsWith(n)),f={},S={};let o="";function d(c,p,u,g={}){const C={...g,[$.ATTR_TOKEN]:p,[$.ATTR_MARK]:u},b=Object.keys(C).map(y=>{const m=C[y];return m?`${y}="${m}"`:null}).filter(y=>y).join(" ");return t?c:`<style ${b}>${c}</style>`}return s.map(c=>{const p=c.slice(n.length).replace(/%/g,"|"),[u,g,C,b,y,m]=e.cache.get(c)[1];if(y)return null;const l={"data-vc-order":"prependQueue","data-vc-priority":`${m}`};let i=d(u,g,C,l);return S[p]=C,b&&Object.keys(b).forEach(a=>{f[a]||(f[a]=!0,i+=d(U(b[a]),g,`_effect-${a}`,l))}),[m,i]}).filter(c=>c).sort((c,p)=>c[0]-p[0]).forEach(([,c])=>{o+=c}),o+=d(`.${I.ATTR_CACHE_MAP}{content:"${I.serialize(S)}";}`,void 0,void 0,{[I.ATTR_CACHE_MAP]:I.ATTR_CACHE_MAP}),o}exports._cf=qe;exports.extractStyle=ze;exports.normalizeStyle=U;exports.parseStyle=D;exports.uniqueHash=he;exports.unitlessKeys=ae;exports.useStyleRegister=He;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./hooks/useCacheToken.tsx2.js"),S=require("./hooks/useCSSVarRegister.js"),t=require("./hooks/useStyleRegister/index.tsx2.js"),i=require("./Keyframes.js"),l=require("./linters/legacyNotSelectorLinter.js"),u=require("./linters/logicalPropertiesLinter.js"),o=require("./linters/parentSelectorLinter.js"),e=require("./StyleContext.js"),c=require("./theme/createTheme.js"),a=require("./theme/Theme.js");require("./theme/ThemeCache.js");const n=require("./transformers/legacyLogicalProperties.js"),_=require("./transformers/px2rem.js"),r=require("./util.js"),y={Theme:a.default,createTheme:c.default,useStyleRegister:t.useStyleRegister,useCacheToken:s.useCacheToken,createCache:e.createCache,useStyleInject:e.useStyleInject,useStyleProvider:e.useStyleProvider,Keyframes:i.default,extractStyle:t.extractStyle,legacyLogicalPropertiesTransformer:n.default,px2remTransformer:_.default,logicalPropertiesLinter:u.default,legacyNotSelectorLinter:l.default,parentSelectorLinter:o.default,StyleProvider:e.StyleProvider},d={supportModernCSS:()=>r.supportWhere()&&r.supportLogicProps()};exports.useCacheToken=s.useCacheToken;exports.useCSSVarRegister=S.default;exports.extractStyle=t.extractStyle;exports.useStyleRegister=t.useStyleRegister;exports.Keyframes=i.default;exports.legacyNotSelectorLinter=l.default;exports.logicalPropertiesLinter=u.default;exports.parentSelectorLinter=o.default;exports.StyleProvider=e.StyleProvider;exports.createCache=e.createCache;exports.useStyleInject=e.useStyleInject;exports.useStyleProvider=e.useStyleProvider;exports.createTheme=c.default;exports.Theme=a.default;exports.legacyLogicalPropertiesTransformer=n.default;exports.px2remTransformer=_.default;exports.token2CSSVar=r.token2CSSVar;exports.unit=r.unit;exports._experimental=d;exports.default=y;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./utils.js"),r=(n,t,e)=>{if(n==="content"){const i=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;(typeof t!="string"||["normal","none","initial","inherit","unset"].indexOf(t)===-1&&!i.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||t.charAt(0)!=='"'&&t.charAt(0)!=="'"))&&o.lintWarning(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${t}"'\`.`,e)}};exports.default=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./utils.js"),s=(t,e,i)=>{t==="animation"&&i.hashId&&e!=="none"&&n.lintWarning(`You seem to be using hashed animation '${e}', in which case 'animationName' with Keyframe as value is recommended.`,i)};exports.default=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./contentQuotesLinter.js"),t=require("./hashedAnimationLinter.js"),i=require("./legacyNotSelectorLinter.js"),r=require("./logicalPropertiesLinter.js"),s=require("./parentSelectorLinter.js");exports.contentQuotesLinter=e.default;exports.hashedAnimationLinter=t.default;exports.legacyNotSelectorLinter=i.default;exports.logicalPropertiesLinter=r.default;exports.parentSelectorLinter=s.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./utils.js");function r(n){var s;return(((s=n.match(/:not\(([^)]*)\)/))==null?void 0:s[1])||"").split(/(\[[^[]*])|(?=[.#])/).filter(o=>o).length>1}function i(n){return n.parentSelectors.reduce((e,t)=>e?t.includes("&")?t.replace(/&/g,e):`${e} ${t}`:t,"")}const c=(n,e,t)=>{const o=i(t).match(/:not\([^)]*\)/g)||[];o.length>0&&o.some(r)&&l.lintWarning("Concat ':not' selector not support in legacy browsers.",t)};exports.default=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./utils.js"),c=(t,r,o)=>{switch(t){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":a.lintWarning(`You seem to be using non-logical property '${t}' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,o);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof r=="string"){const s=r.split(" ").map(n=>n.trim());s.length===4&&s[1]!==s[3]&&a.lintWarning(`You seem to be using '${t}' property with different left ${t} and right ${t}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,o)}return;case"clear":case"textAlign":(r==="left"||r==="right")&&a.lintWarning(`You seem to be using non-logical value '${r}' of ${t}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,o);return;case"borderRadius":typeof r=="string"&&r.split("/").map(i=>i.trim()).reduce((i,l)=>{if(i)return i;const e=l.split(" ").map(d=>d.trim());return e.length>=2&&e[0]!==e[1]||e.length===3&&e[1]!==e[2]||e.length===4&&e[2]!==e[3]?!0:i},!1)&&a.lintWarning(`You seem to be using non-logical value '${r}' of ${t}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,o);return}};exports.default=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./utils.js"),r=(n,o,e)=>{e.parentSelectors.some(t=>t.split(",").some(s=>s.split("&").length>2))&&l.lintWarning("Should not use more than one `&` in a selector.",e)};exports.default=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../vc-util/warning.js");function o(t,i){const{path:n,parentSelectors:e}=i;r.warningOnce(!1,`[Ant Design Vue CSS-in-JS] ${n?`Error in '${n}': `:""}${t}${e.length?` Selector info: ${e.join(" -> ")}`:""}`)}exports.lintWarning=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../../warning.js");let t=0;class l{constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=t,e.length===0&&i.default(e.length>0),t+=1}getDerivativeToken(e){return this.derivatives.reduce((r,u)=>u(e,r),void 0)}}exports.default=l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function r(n,t){if(n.length!==t.length)return!1;for(let s=0;s<n.length;s++)if(n[s]!==t[s])return!1;return!0}const h=class h{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t,s=!1){let e={map:this.cache};return t.forEach(l=>{var a;e?e=(a=e==null?void 0:e.map)==null?void 0:a.get(l):e=void 0}),e!=null&&e.value&&s&&(e.value[1]=this.cacheCallTimes++),e==null?void 0:e.value}get(t){var s;return(s=this.internalGet(t,!0))==null?void 0:s[0]}has(t){return!!this.internalGet(t)}set(t,s){if(!this.has(t)){if(this.size()+1>h.MAX_CACHE_SIZE+h.MAX_CACHE_OFFSET){const[l]=this.keys.reduce((a,i)=>{const[,f]=a;return this.internalGet(i)[1]<f?[i,this.internalGet(i)[1]]:a},[this.keys[0],this.cacheCallTimes]);this.delete(l)}this.keys.push(t)}let e=this.cache;t.forEach((l,a)=>{if(a===t.length-1)e.set(l,{value:[s,this.cacheCallTimes++]});else{const i=e.get(l);i?i.map||(i.map=new Map):e.set(l,{map:new Map}),e=e.get(l).map}})}deleteByPath(t,s){var a;const e=t.get(s[0]);if(s.length===1)return e.map?t.set(s[0],{map:e.map}):t.delete(s[0]),(a=e.value)==null?void 0:a[0];const l=this.deleteByPath(e.map,s.slice(1));return(!e.map||e.map.size===0)&&!e.value&&t.delete(s[0]),l}delete(t){if(this.has(t))return this.keys=this.keys.filter(s=>!r(s,t)),this.deleteByPath(this.cache,t)}};h.MAX_CACHE_SIZE=20,h.MAX_CACHE_OFFSET=5;let u=h;exports.default=u;exports.sameDerivativeOption=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./ThemeCache.js"),u=require("./Theme.js"),s=new r.default;function c(t){const e=Array.isArray(t)?t:[t];return s.has(e)||s.set(e,new u.default(e)),s.get(e)}exports.default=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./createTheme.js"),t=require("./Theme.js"),s=require("./ThemeCache.js");exports.createTheme=e.default;exports.Theme=t.default;exports.ThemeCache=s.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function g(e){if(typeof e=="number")return[e];const n=String(e).split(/\s+/);let d="",t=0;return n.reduce((r,o)=>(o.includes("(")?(d+=o,t+=o.split("(").length-1):o.includes(")")?(d+=` ${o}`,t-=o.split(")").length-1,t===0&&(r.push(d),d="")):t>0?d+=` ${o}`:r.push(o),r),[])}function i(e){return e.notSplit=!0,e}const p={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:i(["borderTop","borderBottom"]),borderBlockStart:i(["borderTop"]),borderBlockEnd:i(["borderBottom"]),borderInline:i(["borderLeft","borderRight"]),borderInlineStart:i(["borderLeft"]),borderInlineEnd:i(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function a(e){return{_skip_check_:!0,value:e}}const s={visit:e=>{const n={};return Object.keys(e).forEach(d=>{const t=e[d],r=p[d];if(r&&(typeof t=="number"||typeof t=="string")){const o=g(t);r.length&&r.notSplit?r.forEach(l=>{n[l]=a(t)}):r.length===1?n[r[0]]=a(t):r.length===2?r.forEach((l,b)=>{n[l]=a(o[b]??o[0])}):r.length===4?r.forEach((l,b)=>{n[l]=a(o[b]??o[b-2]??o[0])}):n[d]=t}else n[d]=t}),n}};exports.default=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("../hooks/useStyleRegister/index.tsx2.js"),a=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function f(o,i){const n=Math.pow(10,i+1),c=Math.floor(o*n);return Math.round(c/10)*10/n}const x=(o={})=>{const{rootValue:i=16,precision:n=5,mediaQuery:c=!1}=o,l=(s,t)=>{if(!t)return s;const e=parseFloat(t);return e<=1?s:`${f(e/i,n)}rem`};return{visit:s=>{const t={...s};return Object.entries(s).forEach(([e,r])=>{if(typeof r=="string"&&r.includes("px")){const u=r.replace(a,l);t[e]=u}!d.unitlessKeys[e]&&typeof r=="number"&&r!==0&&(t[e]=`${r}px`.replace(a,l));const p=e.trim();if(p.startsWith("@")&&p.includes("px")&&c){const u=e.replace(a,l);t[u]=t[e],delete t[e]}}),t}}};exports.default=x;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./hooks/useCacheToken.tsx2.js"),y=require("../../vc-util/Dom/dynamicCSS.js"),f=require("../../vc-util/Dom/canUseDom.js");require("./theme/ThemeCache.js");const k=require("./theme/Theme.js"),h="data-token-hash",A="data-css-hash",O="data-cache-path",C=new WeakMap;function d(e){let r=C.get(e)||"";return r||(Object.keys(e).forEach(t=>{const o=e[t];r+=t,o instanceof k.default?r+=o.id:o&&typeof o=="object"?r+=d(o):r+=o}),C.set(e,r)),r}function R(e,r){return v.murmur2(`${r}_${d(e)}`)}const c=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),S="_bAmBoO_";function m(e,r,t){var o,n;if(f.default()){y.updateCSS(e,c);const s=document.createElement("div");s.style.position="fixed",s.style.left="0",s.style.top="0",r==null||r(s),document.body.appendChild(s);const a=t?t(s):(o=getComputedStyle(s).content)==null?void 0:o.includes(S);return(n=s.parentNode)==null||n.removeChild(s),y.removeCSS(c),a}return!1}let l;function L(){return l===void 0&&(l=m(`@layer ${c} { .${c} { content: "${S}"!important; } }`,e=>{e.className=c})),l}let p;function x(){return p===void 0&&(p=m(`:where(.${c}) { content: "${S}"!important; }`,e=>{e.className=c})),p}let $;function N(){return $===void 0&&($=m(`.${c} { inset-block: 93px !important; }`,e=>{e.className=c},e=>getComputedStyle(e).bottom==="93px")),$}const q=f.default();function z(e){return typeof e=="number"?`${e}px`:e}const b=(e,r="")=>`--${r?`${r}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase();function K(e,r,t,o={},n=!1){if(n)return e;const s={...o,[h]:r,[A]:t};return`<style ${Object.keys(s).map(u=>{const i=s[u];return i?`${u}="${i}"`:null}).filter(u=>u).join(" ")}>${e}</style>`}const j=(e,r,t)=>Object.keys(e).length?`.${r}${t!=null&&t.scope?`.${t.scope}`:""}{${Object.entries(e).map(([o,n])=>`${o}:${n};`).join("")}}`:"",M=(e,r,t)=>{const o={},n={};return Object.entries(e).forEach(([s,a])=>{var u,i,_;if((u=t==null?void 0:t.preserve)!=null&&u[s])n[s]=a;else if((typeof a=="string"||typeof a=="number")&&!((i=t==null?void 0:t.ignore)!=null&&i[s])){const T=b(s,t==null?void 0:t.prefix);o[T]=typeof a=="number"&&!((_=t==null?void 0:t.unitless)!=null&&_[s])?`${a}px`:String(a),n[s]=`var(${T})`}}),[n,j(o,r,{scope:t==null?void 0:t.scope})]};exports.ATTR_CACHE_PATH=O;exports.ATTR_MARK=A;exports.ATTR_TOKEN=h;exports.flattenToken=d;exports.isClientSide=q;exports.serializeCSSVar=j;exports.supportLayer=L;exports.supportLogicProps=N;exports.supportWhere=x;exports.toStyleStr=K;exports.token2CSSVar=b;exports.token2key=R;exports.transformToken=M;exports.unit=z;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var o=Object.defineProperty;var n=(a,e,t)=>e in a?o(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var c=(a,e,t)=>n(a,typeof e!="symbol"?e+"":e,t);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("vue"),u=1e3*60*10;class h{constructor(){c(this,"map",new Map);c(this,"objectIDMap",new WeakMap);c(this,"nextID",0);c(this,"lastAccessBeat",new Map);c(this,"accessBeat",0)}set(e,t){this.clear();const s=this.getCompositeKey(e);this.map.set(s,t),this.lastAccessBeat.set(s,Date.now())}get(e){const t=this.getCompositeKey(e),s=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,s}getCompositeKey(e){return e.map(s=>s&&typeof s=="object"?`obj_${this.getObjectID(s)}`:`${typeof s}_${s}`).join("|")}getObjectID(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);const t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}clear(){if(this.accessBeat>1e4){const e=Date.now();this.lastAccessBeat.forEach((t,s)=>{e-t>u&&(this.map.delete(s),this.lastAccessBeat.delete(s))}),this.accessBeat=0}}}const i=new h;function p(a,e){return r.computed(()=>{const t=i.get(e);if(t)return t;const s=a();return i.set(e,s),s})}exports.default=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=()=>({});exports.default=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./util/genStyleUtils.js"),i=require("./util/calc/index.js"),t=require("./util/statistic.js");exports.genStyleUtils=s.default;exports.genCalc=i.default;exports.mergeToken=t.merge;exports.statistic=t.statistic;exports.statisticToken=t.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("./calculator.js"),u="CALC_UNIT",f=new RegExp(u,"g");function l(r){return typeof r=="number"?`${r}${u}`:r}class s extends h.default{constructor(t,i){super(),this.result="";const e=typeof t;this.unitlessCssVar=i,t instanceof s?this.result=`(${t.result})`:e==="number"?this.result=l(t):e==="string"&&(this.result=t)}add(t){return t instanceof s?this.result=`${this.result} + ${t.getResult()}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} + ${l(t)}`),this.lowPriority=!0,this}sub(t){return t instanceof s?this.result=`${this.result} - ${t.getResult()}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} - ${l(t)}`),this.lowPriority=!0,this}mul(t){return this.lowPriority&&(this.result=`(${this.result})`),t instanceof s?this.result=`${this.result} * ${t.getResult(!0)}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} * ${t}`),this.lowPriority=!1,this}div(t){return this.lowPriority&&(this.result=`(${this.result})`),t instanceof s?this.result=`${this.result} / ${t.getResult(!0)}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} / ${t}`),this.lowPriority=!1,this}getResult(t){return this.lowPriority||t?`(${this.result})`:this.result}equal(t){const{unit:i}=t||{};let e=!0;return typeof i=="boolean"?e=i:Array.from(this.unitlessCssVar).some(o=>this.result.includes(o))&&(e=!1),this.result=this.result.replace(f,e?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}exports.default=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./calculator.js");class t extends s.default{constructor(e){super(),this.result=0,e instanceof t?this.result=e.result:typeof e=="number"&&(this.result=e)}add(e){return e instanceof t?this.result+=e.result:typeof e=="number"&&(this.result+=e),this}sub(e){return e instanceof t?this.result-=e.result:typeof e=="number"&&(this.result-=e),this}mul(e){return e instanceof t?this.result*=e.result:typeof e=="number"&&(this.result*=e),this}div(e){return e instanceof t?this.result/=e.result:typeof e=="number"&&(this.result/=e),this}equal(){return this.result}}exports.default=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});class e{}exports.default=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./CSSCalculator.js"),c=require("./NumCalculator.js"),a=(t,l)=>{const e=t==="css"?u.default:c.default;return s=>new e(s,l)};exports.default=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue");require("../../cssinjs/StyleContext.js");const T=require("../../cssinjs/util.js"),W=require("../../cssinjs/hooks/useCSSVarRegister.js"),I=require("../../cssinjs/hooks/useStyleRegister/index.tsx2.js");require("../../cssinjs/theme/ThemeCache.js");require("../../warning.js");require("../../cssinjs/transformers/legacyLogicalProperties.js");const X=require("./calc/index.js"),w=require("./getCompVarPrefix.js"),A=require("./getComponentToken.js"),E=require("./getDefaultComponentToken.js"),Y=require("./maxmin.js"),M=require("./statistic.js"),Z=require("../_util/hooks/useUniqueMemo.js"),ee=require("../hooks/useCSP.js");function te(U){const{useCSP:F=ee.default,useToken:h,usePrefix:H,getResetStyles:v,getCommonStyle:V,getCompUnitless:x}=U;function z(e,f,o,t){const _=Array.isArray(e)?e[0]:e;function r(n){return`${String(_)}${n.slice(0,1).toUpperCase()}${n.slice(1)}`}const d=(t==null?void 0:t.unitless)||{},a={...typeof x=="function"?x(e):{},[r("zIndexPopup")]:!0};Object.keys(d).forEach(n=>{a[r(n)]=d[n]});const S={...t,unitless:a,prefixToken:r},u=j(e,f,o,S),l=L(_,o,S);return(n,c=i.toValue(n))=>{const[,s]=u(i.toValue(n),c),[m,k]=l(c);return[m,s,k]}}function L(e,f,o){const{unitless:t,injectStyle:_=!0,prefixToken:r,ignore:d}=o,y=({rootCls:S,cssVar:u={}})=>{const{realToken:l}=h();return W.default({path:[e],prefix:u.prefix,key:u.key,unitless:t,ignore:d,token:l,scope:S},()=>{const n=E.default(e,l,f),c=A.default(e,l,n,{deprecatedTokens:o==null?void 0:o.deprecatedTokens});return Object.keys(n).forEach(s=>{c[r(s)]=c[s],delete c[s]}),c}),null};return S=>{const{cssVar:u}=h();return[l=>_&&u?i.createVNode(i.Fragment,null,[i.createVNode(y,{rootCls:S,cssVar:u,component:e},null),l]):l,u==null?void 0:u.key]}}function j(e,f,o,t={}){const _=Array.isArray(e)?e:[e,e],[r]=_,d=_.join("-"),y=U.layer||{name:"antd"};return(a,S=a)=>{const{theme:u,realToken:l,hashId:n,token:c,cssVar:s}=h(),{rootPrefixCls:m,iconPrefixCls:k}=H(),O=F(),q=s?"css":"js",D=i.unref(Z.default(()=>{const C=new Set;return s&&Object.keys(t.unitless||{}).forEach(p=>{C.add(T.token2CSSVar(p,s.prefix)),C.add(T.token2CSSVar(p,w.default(r,s.prefix)))}),X.default(q,C)},[q,r,s==null?void 0:s.prefix])),{max:G,min:J}=Y.default(q),R=i.computed(()=>({theme:u.value,token:c.value,hashId:n.value,nonce:()=>O.nonce,clientOnly:t.clientOnly,layer:y,order:t.order||-999}));return typeof v=="function"&&I.useStyleRegister(i.computed(()=>({...R.value,clientOnly:!1,path:["Shared",m]})),()=>v(c.value,{prefix:{rootPrefixCls:m,iconPrefixCls:k},csp:O})),[I.useStyleRegister(i.computed(()=>({...R.value,path:[d,a,k]})),()=>{if(t.injectStyle===!1)return[];const{token:C,flush:p}=M.default(c),g=E.default(r,l,o),K=`.${a}`,b=A.default(r,l,g,{deprecatedTokens:t.deprecatedTokens});s&&g&&typeof g=="object"&&Object.keys(g).forEach($=>{g[$]=`var(${T.token2CSSVar($,w.default(r,s.prefix))})`});const P=i.computed(()=>M.merge(C.value,{componentCls:K,prefixCls:a,iconCls:`.${k}`,antCls:`.${m}`,calc:D,max:G,min:J},s?g:b)),N=i.computed(()=>f(P.value,{hashId:n.value,prefixCls:a,rootPrefixCls:m,iconPrefixCls:k}));p(r,b);const Q=typeof V=="function"?V(P.value,a,S,t.resetFont):null;return[t.resetStyle===!1?null:Q,N.value]}),n]}}function B(e,f,o,t={}){const _=j(e,f,o,{resetStyle:!1,order:-998,...t});return({prefixCls:d,rootCls:y=d})=>(_(d,y),null)}return{genStyleHooks:z,genSubStyleComponent:B,genComponentStyleHook:j}}exports.default=te;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;exports.default=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function b(c,l={},g,a){const r={...l[c]};if(a!=null&&a.deprecatedTokens){const{deprecatedTokens:d}=a;d.forEach(([t,e])=>{(r!=null&&r[t]||r!=null&&r[e])&&(r[e]??(r[e]=r==null?void 0:r[t]))})}const f={...g,...r};return Object.keys(f).forEach(d=>{f[d]===l[d]&&delete f[d]}),f}exports.default=b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./statistic.js");function r(i,e={},t){return typeof t=="function"?t(u.merge(e,e[i]??{})):t??{}}exports.default=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("../../cssinjs/StyleContext.js");require("vue");const r=require("../../cssinjs/util.js");require("../../cssinjs/theme/ThemeCache.js");require("../../warning.js");require("../../cssinjs/transformers/legacyLogicalProperties.js");function t(u){return u==="js"?{max:Math.max,min:Math.min}:{max:(...e)=>`max(${e.map(i=>r.unit(i)).join(",")})`,min:(...e)=>`min(${e.map(i=>r.unit(i)).join(",")})`}}exports.default=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=typeof CSSINJS_STATISTIC<"u";let s=!0;function a(...n){if(!f)return Object.assign({},...n);s=!1;const e={};return n.forEach(r=>{if(typeof r!="object")return;Object.keys(r).forEach(t=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:()=>r[t]})})}),s=!0,e}const c={},l={};function d(){}const y=n=>{let e,r=n,o=d;return f&&typeof Proxy<"u"&&(e=new Set,r=new Proxy(n,{get(t,i){return s&&(e==null||e.add(i)),t[i]}}),o=(t,i)=>{var u;c[t]={global:Array.from(e),component:{...(u=c[t])==null?void 0:u.component,...i}}}),{token:r,keys:e,flush:o}};exports._statistic_build_=l;exports.default=y;exports.merge=a;exports.statistic=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let d;function u(n){if(typeof document>"u")return 0;if(n||d===void 0){const e=document.createElement("div");e.style.width="100%",e.style.height="200px";const t=document.createElement("div"),i=t.style;i.position="absolute",i.top="0",i.left="0",i.pointerEvents="none",i.visibility="hidden",i.width="200px",i.height="150px",i.overflow="hidden",t.appendChild(e),document.body.appendChild(t);const l=e.offsetWidth;t.style.overflow="scroll";let o=e.offsetWidth;l===o&&(o=t.clientWidth),document.body.removeChild(t),d=l-o}return d}function r(n){const e=n.match(/^(.*)px$/),t=Number(e==null?void 0:e[1]);return Number.isNaN(t)?u():t}function c(n){if(typeof document>"u"||!n||!(n instanceof Element))return{width:0,height:0};const{width:e,height:t}=getComputedStyle(n,"::-webkit-scrollbar");return{width:r(e),height:r(t)}}exports.default=u;exports.getTargetScrollBarSize=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function l(u,t){for(var e=u,r=0;r<t.length;r+=1){if(e==null)return;e=e[t[r]]}return e}exports.default=l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue");function c(t){const e=u.ref(t),l=u.ref(a=>{e.value&&e.value(a)});return e.value=t,l.value}exports.useEventCallback=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue");function o(e){const t=typeof e=="function"?e():e,n=i.ref(t);function r(u){n.value=u}return[n,r]}exports.default=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("../../x-provider/context.js"),e=require("vue"),n={classNames:{},styles:{},className:"",style:{}},r=t=>{const o=s.useXProviderContextInject();return e.computed(()=>({...n,...e.unref(o)[t]}))};exports.default=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");function c(v,a){const{defaultValue:l,value:u=t.ref()}=a||{};let n=typeof v=="function"?v():v;u.value!==void 0&&(n=t.unref(u)),l!==void 0&&(n=typeof l=="function"?l():l);const f=t.ref(n),r=t.ref(n);t.watchEffect(()=>{let e=u.value!==void 0?u.value:f.value;a.postState&&(e=a.postState(e)),r.value=e});function i(e){const o=r.value;f.value=e,t.toRaw(r.value)!==e&&a.onChange&&a.onChange(e,o)}return t.watch(u,()=>{f.value=u.value}),[r,i]}exports.default=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../x-provider/hooks/use-x-provider-context.js");require("vue");require("../x-provider/context.js");require("ant-design-vue");const o=()=>({height:0,opacity:0}),r=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},a=e=>({height:e?e.offsetHeight:0}),i=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",s=(e=n.defaultPrefixCls)=>({motionName:`${e}-motion-collapse`,onAppearStart:o,onEnterStart:o,onAppearActive:r,onEnterActive:r,onLeaveStart:a,onLeaveActive:o,onAppearEnd:i,onEnterEnd:i,onLeaveEnd:i,motionDeadline:500});exports.default=s;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=`accept acceptcharset accesskey action allowfullscreen allowtransparency
|
|
2
|
+
alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
|
|
3
|
+
charset checked classid class colspan cols content contenteditable contextmenu
|
|
4
|
+
controls coords crossorigin data datetime default defer dir disabled download draggable
|
|
5
|
+
enctype form formaction formenctype formmethod formnovalidate formtarget frameborder
|
|
6
|
+
headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity
|
|
7
|
+
is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media
|
|
8
|
+
mediagroup method min minlength multiple muted name novalidate nonce open
|
|
9
|
+
optimum pattern placeholder poster preload radiogroup readonly rel required
|
|
10
|
+
reversed role rowspan rows sandbox scope scoped scrolling seamless selected
|
|
11
|
+
shape size sizes span spellcheck src srcdoc srclang srcset start step style
|
|
12
|
+
summary tabindex target title type usemap value width wmode wrap`,i=`onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown
|
|
13
|
+
onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick
|
|
14
|
+
onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown
|
|
15
|
+
onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
|
|
16
|
+
onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
|
|
17
|
+
onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
|
|
18
|
+
onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`,r=`${l} ${i}`.split(/[\s\n]+/),c="aria-",d="data-";function s(t,n){return t.indexOf(n)===0}function u(t,n=!1){let o;n===!1?o={aria:!0,data:!0,attr:!0}:n===!0?o={aria:!0}:o={...n};const a={};return Object.keys(t).forEach(e=>{(o.aria&&(e==="role"||s(e,c))||o.data&&s(e,d)||o.attr&&(r.includes(e)||r.includes(e.toLowerCase())))&&(a[e]=t[e])}),a}exports.default=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function n(t,c={}){const{element:o=document.body}=c,l={},s=Object.keys(t);return s.forEach(e=>{l[e]=o.style[e]}),s.forEach(e=>{o.style[e]=t[e]}),l}exports.default=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let t=!1;try{const e=Object.defineProperty({},"passive",{get(){t=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}const s=t;exports.default=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),v=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",s=(e,r={})=>e?{name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`,...r}:{css:!1,...r},u=(e,r={})=>e?{name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`,...r}:{css:!1,...r},l=()=>({height:0,opacity:0}),c=e=>({height:`${e.scrollHeight}px`,opacity:1}),$=e=>({height:`${e.offsetHeight}px`}),a=(e="ant-motion-collapse",r,p)=>({name:e,appear:!0,css:!0,onBeforeEnter:t=>{p.value=e,r.value=l()},onEnter:t=>{o.nextTick(()=>{r.value=c(t)})},onAfterEnter:()=>{p.value="",r.value={}},onBeforeLeave:t=>{p.value=e,r.value=$(t)},onLeave:t=>{setTimeout(()=>{r.value=l()})},onAfterLeave:()=>{p.value="",r.value={}}}),n=(e,r,p)=>p!==void 0?p:`${e}-${r}`;exports.collapseMotion=a;exports.getTransitionDirection=v;exports.getTransitionGroupProps=u;exports.getTransitionName=n;exports.getTransitionProps=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=(...e)=>e,o=(...e)=>e,y=e=>{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function p(){return{type:[Function,Array]}}function a(e){return{type:Object,default:e}}function i(e){return{type:Boolean,default:e}}function c(e){return{type:Function,default:e}}function u(e,t){const n={validator:()=>!0,default:e};return n}function l(){return{validator:()=>!0}}function f(e){return{type:Array,default:e}}function T(e){return{type:String,default:e}}function s(e,t){return e?{type:e,default:t}:u(t)}exports.anyType=u;exports.arrayType=f;exports.booleanType=i;exports.eventType=p;exports.functionType=c;exports.objectType=a;exports.someType=s;exports.stringType=T;exports.tuple=r;exports.tupleNum=o;exports.vNodeType=l;exports.withInstall=y;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../vc-util/warning.js"),d=require("./type.js");function o(){}function g(){c.resetWarned()}let s=o;const a=Symbol("WarningContext"),t=e.shallowRef(),u=n=>{e.provide(a,n),e.watch(n,()=>{t.value=e.unref(n),e.triggerRef(t)},{immediate:!0,deep:!0})},p=()=>e.inject(a,e.computed(()=>t.value||{})),W=e.defineComponent({props:{value:d.objectType()},setup(n,{slots:r}){return u(e.computed(()=>n.value)),()=>{var i;return(i=r.default)==null?void 0:i.call(r)}}}),l=()=>{const n=()=>{};return n.deprecated=o,n};exports.WarningContextProvider=W;exports.default=s;exports.devUseWarning=l;exports.globalWarningContextApi=t;exports.noop=o;exports.resetWarned=g;exports.useWarningContextInject=p;exports.useWarningContextProvider=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Attachments2.js");exports.default=e._sfc_main;
|