@chat-lab/ui 0.1.0-beta.35 → 0.1.0-beta.37
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/adk/components/Debug/Events/index.cjs +5 -5
- package/dist/adk/components/Debug/Events/index.cjs.map +1 -1
- package/dist/adk/components/Debug/Events/index.d.ts.map +1 -1
- package/dist/adk/components/Debug/Events/index.js +6 -6
- package/dist/adk/components/Debug/Events/index.js.map +1 -1
- package/dist/adk/components/Debug/Trace/TraceDetail.cjs +0 -1
- package/dist/adk/components/Debug/Trace/TraceDetail.cjs.map +1 -1
- package/dist/adk/components/Debug/Trace/TraceDetail.d.ts.map +1 -1
- package/dist/adk/components/Debug/Trace/TraceDetail.js +0 -1
- package/dist/adk/components/Debug/Trace/TraceDetail.js.map +1 -1
- package/dist/adk/components/Debug/Trace/TraceMessageGroup.cjs +3 -3
- package/dist/adk/components/Debug/Trace/TraceMessageGroup.cjs.map +1 -1
- package/dist/adk/components/Debug/Trace/TraceMessageGroup.js +3 -3
- package/dist/adk/components/Debug/Trace/TraceMessageGroup.js.map +1 -1
- package/dist/adk/components/Debug/Trace/index.cjs +10 -7
- package/dist/adk/components/Debug/Trace/index.cjs.map +1 -1
- package/dist/adk/components/Debug/Trace/index.d.ts +1 -1
- package/dist/adk/components/Debug/Trace/index.d.ts.map +1 -1
- package/dist/adk/components/Debug/Trace/index.js +10 -7
- package/dist/adk/components/Debug/Trace/index.js.map +1 -1
- package/dist/adk/components/Debug/Trace/types.d.ts +1 -0
- package/dist/adk/components/Debug/Trace/types.d.ts.map +1 -1
- package/dist/adk/components/Debug/Trace/utils.cjs +3 -1
- package/dist/adk/components/Debug/Trace/utils.cjs.map +1 -1
- package/dist/adk/components/Debug/Trace/utils.d.ts.map +1 -1
- package/dist/adk/components/Debug/Trace/utils.js +3 -1
- package/dist/adk/components/Debug/Trace/utils.js.map +1 -1
- package/dist/adk/components/Debug/index.cjs +1 -1
- package/dist/adk/components/Debug/index.cjs.map +1 -1
- package/dist/adk/components/Debug/index.d.ts +3 -1
- package/dist/adk/components/Debug/index.d.ts.map +1 -1
- package/dist/adk/components/Debug/index.js +1 -1
- package/dist/adk/components/Debug/index.js.map +1 -1
- package/dist/adk/hooks/useEvents.cjs +9 -2
- package/dist/adk/hooks/useEvents.cjs.map +1 -1
- package/dist/adk/hooks/useEvents.d.ts +1 -1
- package/dist/adk/hooks/useEvents.d.ts.map +1 -1
- package/dist/adk/hooks/useEvents.js +9 -2
- package/dist/adk/hooks/useEvents.js.map +1 -1
- package/dist/assets/AbortMessage.cjs +1 -1
- package/dist/assets/AbortMessage.cjs.map +1 -1
- package/dist/assets/AbortMessage.js +1 -1
- package/dist/assets/AbortMessage.js.map +1 -1
- package/dist/components/Chatkit/index.cjs +4 -10
- package/dist/components/Chatkit/index.cjs.map +1 -1
- package/dist/components/Chatkit/index.d.ts.map +1 -1
- package/dist/components/Chatkit/index.js +4 -10
- package/dist/components/Chatkit/index.js.map +1 -1
- package/dist/components/Chatkit/types.d.ts +1 -0
- package/dist/components/Chatkit/types.d.ts.map +1 -1
- package/dist/components/ThreadOptionsMenu.cjs +10 -23
- package/dist/components/ThreadOptionsMenu.cjs.map +1 -1
- package/dist/components/ThreadOptionsMenu.d.ts.map +1 -1
- package/dist/components/ThreadOptionsMenu.js +11 -24
- package/dist/components/ThreadOptionsMenu.js.map +1 -1
- package/dist/components/VoiceInput/index.cjs +4 -4
- package/dist/components/VoiceInput/index.cjs.map +1 -1
- package/dist/components/VoiceInput/index.d.ts.map +1 -1
- package/dist/components/VoiceInput/index.js +4 -4
- package/dist/components/VoiceInput/index.js.map +1 -1
- package/dist/components/assistant-ui/thread.cjs +6 -5
- package/dist/components/assistant-ui/thread.cjs.map +1 -1
- package/dist/components/assistant-ui/thread.js +6 -5
- package/dist/components/assistant-ui/thread.js.map +1 -1
- package/dist/contexts/ChatkitContext.cjs.map +1 -1
- package/dist/contexts/ChatkitContext.d.ts.map +1 -1
- package/dist/contexts/ChatkitContext.js.map +1 -1
- package/dist/hooks/useADKChat.cjs +7 -2
- package/dist/hooks/useADKChat.cjs.map +1 -1
- package/dist/hooks/useADKChat.d.ts +6 -1
- package/dist/hooks/useADKChat.d.ts.map +1 -1
- package/dist/hooks/useADKChat.js +7 -2
- package/dist/hooks/useADKChat.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/node_modules/.pnpm/@assistant-ui_react@0.11.37_patch_hash_wncib234fzw2z5h67nrdhchb2a_@types_react-dom@17.0.2_@ty_c64hu5rigivj2gtpzfqjqatr5y/node_modules/@assistant-ui/react/dist/context/react/AssistantApiContext.js +1 -1
- package/dist/node_modules/.pnpm/@assistant-ui_tap@0.1.5_react@17.0.2/node_modules/@assistant-ui/tap/dist/core/ResourceHandle.js +1 -1
- package/dist/node_modules/ahooks/es/createUpdateEffect/index.cjs +27 -0
- package/dist/node_modules/ahooks/es/createUpdateEffect/index.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/createUpdateEffect/index.js +22 -0
- package/dist/node_modules/ahooks/es/createUpdateEffect/index.js.map +1 -0
- package/dist/node_modules/ahooks/es/useCreation/index.cjs +22 -0
- package/dist/node_modules/ahooks/es/useCreation/index.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useCreation/index.js +20 -0
- package/dist/node_modules/ahooks/es/useCreation/index.js.map +1 -0
- package/dist/node_modules/ahooks/es/useEventListener/index.cjs +41 -0
- package/dist/node_modules/ahooks/es/useEventListener/index.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useEventListener/index.js +39 -0
- package/dist/node_modules/ahooks/es/useEventListener/index.js.map +1 -0
- package/dist/node_modules/ahooks/es/useLatest/index.cjs +12 -0
- package/dist/node_modules/ahooks/es/useLatest/index.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useLatest/index.js +10 -0
- package/dist/node_modules/ahooks/es/useLatest/index.js.map +1 -0
- package/dist/node_modules/ahooks/es/useMemoizedFn/index.cjs +32 -0
- package/dist/node_modules/ahooks/es/useMemoizedFn/index.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useMemoizedFn/index.js +30 -0
- package/dist/node_modules/ahooks/es/useMemoizedFn/index.js.map +1 -0
- package/dist/node_modules/ahooks/es/useMount/index.cjs +25 -0
- package/dist/node_modules/ahooks/es/useMount/index.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useMount/index.js +23 -0
- package/dist/node_modules/ahooks/es/useMount/index.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRafState/index.cjs +23 -0
- package/dist/node_modules/ahooks/es/useRafState/index.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRafState/index.js +21 -0
- package/dist/node_modules/ahooks/es/useRafState/index.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/index.cjs +8 -0
- package/dist/node_modules/ahooks/es/useRequest/index.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/index.js +6 -0
- package/dist/node_modules/ahooks/es/useRequest/index.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/Fetch.cjs +150 -0
- package/dist/node_modules/ahooks/es/useRequest/src/Fetch.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/Fetch.js +148 -0
- package/dist/node_modules/ahooks/es/useRequest/src/Fetch.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useAutoRunPlugin.cjs +51 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useAutoRunPlugin.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useAutoRunPlugin.js +49 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useAutoRunPlugin.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useCachePlugin.cjs +127 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useCachePlugin.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useCachePlugin.js +125 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useCachePlugin.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useDebouncePlugin.cjs +64 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useDebouncePlugin.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useDebouncePlugin.js +62 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useDebouncePlugin.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useLoadingDelayPlugin.cjs +44 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useLoadingDelayPlugin.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useLoadingDelayPlugin.js +42 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useLoadingDelayPlugin.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/usePollingPlugin.cjs +66 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/usePollingPlugin.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/usePollingPlugin.js +64 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/usePollingPlugin.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useRefreshOnWindowFocusPlugin.cjs +34 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useRefreshOnWindowFocusPlugin.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useRefreshOnWindowFocusPlugin.js +32 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useRefreshOnWindowFocusPlugin.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useRetryPlugin.cjs +51 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useRetryPlugin.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useRetryPlugin.js +49 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useRetryPlugin.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useThrottlePlugin.cjs +58 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useThrottlePlugin.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useThrottlePlugin.js +56 -0
- package/dist/node_modules/ahooks/es/useRequest/src/plugins/useThrottlePlugin.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/useRequest.cjs +38 -0
- package/dist/node_modules/ahooks/es/useRequest/src/useRequest.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/useRequest.js +36 -0
- package/dist/node_modules/ahooks/es/useRequest/src/useRequest.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/useRequestImplement.cjs +58 -0
- package/dist/node_modules/ahooks/es/useRequest/src/useRequestImplement.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/useRequestImplement.js +56 -0
- package/dist/node_modules/ahooks/es/useRequest/src/useRequestImplement.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/cache.cjs +26 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/cache.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/cache.js +23 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/cache.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/cachePromise.cjs +24 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/cachePromise.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/cachePromise.js +21 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/cachePromise.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/cacheSubscribe.cjs +22 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/cacheSubscribe.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/cacheSubscribe.js +19 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/cacheSubscribe.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/isDocumentVisible.cjs +13 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/isDocumentVisible.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/isDocumentVisible.js +11 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/isDocumentVisible.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/isOnline.cjs +14 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/isOnline.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/isOnline.js +12 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/isOnline.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/limit.cjs +23 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/limit.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/limit.js +21 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/limit.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/subscribeFocus.cjs +26 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/subscribeFocus.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/subscribeFocus.js +24 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/subscribeFocus.js.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/subscribeReVisible.cjs +23 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/subscribeReVisible.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/subscribeReVisible.js +21 -0
- package/dist/node_modules/ahooks/es/useRequest/src/utils/subscribeReVisible.js.map +1 -0
- package/dist/node_modules/ahooks/es/useSize/index.cjs +34 -0
- package/dist/node_modules/ahooks/es/useSize/index.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useSize/index.js +32 -0
- package/dist/node_modules/ahooks/es/useSize/index.js.map +1 -0
- package/dist/node_modules/ahooks/es/useUnmount/index.cjs +22 -0
- package/dist/node_modules/ahooks/es/useUnmount/index.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useUnmount/index.js +20 -0
- package/dist/node_modules/ahooks/es/useUnmount/index.js.map +1 -0
- package/dist/node_modules/ahooks/es/useUpdate/index.cjs +13 -0
- package/dist/node_modules/ahooks/es/useUpdate/index.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useUpdate/index.js +11 -0
- package/dist/node_modules/ahooks/es/useUpdate/index.js.map +1 -0
- package/dist/node_modules/ahooks/es/useUpdateEffect/index.cjs +9 -0
- package/dist/node_modules/ahooks/es/useUpdateEffect/index.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useUpdateEffect/index.js +7 -0
- package/dist/node_modules/ahooks/es/useUpdateEffect/index.js.map +1 -0
- package/dist/node_modules/ahooks/es/useVirtualList/index.cjs +123 -0
- package/dist/node_modules/ahooks/es/useVirtualList/index.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/useVirtualList/index.js +121 -0
- package/dist/node_modules/ahooks/es/useVirtualList/index.js.map +1 -0
- package/dist/node_modules/ahooks/es/utils/createEffectWithTarget.cjs +53 -0
- package/dist/node_modules/ahooks/es/utils/createEffectWithTarget.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/utils/createEffectWithTarget.js +51 -0
- package/dist/node_modules/ahooks/es/utils/createEffectWithTarget.js.map +1 -0
- package/dist/node_modules/ahooks/es/utils/depsAreSame.cjs +16 -0
- package/dist/node_modules/ahooks/es/utils/depsAreSame.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/utils/depsAreSame.js +14 -0
- package/dist/node_modules/ahooks/es/utils/depsAreSame.js.map +1 -0
- package/dist/node_modules/ahooks/es/utils/domTarget.cjs +27 -0
- package/dist/node_modules/ahooks/es/utils/domTarget.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/utils/domTarget.js +25 -0
- package/dist/node_modules/ahooks/es/utils/domTarget.js.map +1 -0
- package/dist/node_modules/ahooks/es/utils/index.cjs +10 -0
- package/dist/node_modules/ahooks/es/utils/index.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/utils/index.js +7 -0
- package/dist/node_modules/ahooks/es/utils/index.js.map +1 -0
- package/dist/node_modules/ahooks/es/utils/isBrowser.cjs +9 -0
- package/dist/node_modules/ahooks/es/utils/isBrowser.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/utils/isBrowser.js +7 -0
- package/dist/node_modules/ahooks/es/utils/isBrowser.js.map +1 -0
- package/dist/node_modules/ahooks/es/utils/isDev.cjs +7 -0
- package/dist/node_modules/ahooks/es/utils/isDev.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/utils/isDev.js +5 -0
- package/dist/node_modules/ahooks/es/utils/isDev.js.map +1 -0
- package/dist/node_modules/ahooks/es/utils/useEffectWithTarget.cjs +10 -0
- package/dist/node_modules/ahooks/es/utils/useEffectWithTarget.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/utils/useEffectWithTarget.js +8 -0
- package/dist/node_modules/ahooks/es/utils/useEffectWithTarget.js.map +1 -0
- package/dist/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.cjs +13 -0
- package/dist/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.js +11 -0
- package/dist/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.js.map +1 -0
- package/dist/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.cjs +10 -0
- package/dist/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.cjs.map +1 -0
- package/dist/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.js +8 -0
- package/dist/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/common.cjs +55 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/common.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/common.js +52 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/common.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/const.cjs +63 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/const.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/const.js +57 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/const.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/loadSlardar/index.cjs +72 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/loadSlardar/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/loadSlardar/index.js +70 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/loadSlardar/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/loadSlardar/loadSlardar.cjs +65 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/loadSlardar/loadSlardar.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/loadSlardar/loadSlardar.js +63 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/loadSlardar/loadSlardar.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/monitor.cjs +20 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/monitor.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/monitor.js +18 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/monitor.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/dom.cjs +12 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/dom.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/dom.js +10 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/dom.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/index.cjs +15 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/index.js +13 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.cjs +11 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.js +9 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/ufspAndSufsp.cjs +14 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/ufspAndSufsp.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/ufspAndSufsp.js +12 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/ufspAndSufsp.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.cjs +31 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.js +29 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/sladarWebLite/index.cjs +157 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/sladarWebLite/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/sladarWebLite/index.js +155 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/sladarWebLite/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/sladarWebLite/proxy.cjs +73 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/sladarWebLite/proxy.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/sladarWebLite/proxy.js +71 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/sladarWebLite/proxy.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/utils.cjs +195 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/utils.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/utils.js +183 -0
- package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/utils.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/basic.cjs +41 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/basic.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/basic.js +39 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/basic.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/cancelHandler.cjs +109 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/cancelHandler.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/cancelHandler.js +88 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/cancelHandler.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/errorHandler.cjs +78 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/errorHandler.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/errorHandler.js +76 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/errorHandler.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/fetch.cjs +237 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/fetch.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/fetch.js +235 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/fetch.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/rollbackHandler.cjs +28 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/rollbackHandler.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/rollbackHandler.js +26 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/rollbackHandler.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/slardar/index.cjs +33 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/slardar/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/slardar/index.js +30 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/slardar/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/slardar/path.cjs +13 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/slardar/path.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/slardar/path.js +11 -0
- package/dist/packages/chatui/node_modules/@byted-iaas/fetch/lib/slardar/path.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/dist/es/index.cjs +446 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/dist/es/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/dist/es/index.js +443 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/dist/es/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.cjs +12 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +10 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.cjs +40 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +38 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/classCallCheck.cjs +10 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/classCallCheck.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +8 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/classCallCheck.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/construct.cjs +24 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/construct.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/construct.js +22 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/construct.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/createClass.cjs +23 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/createClass.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/createClass.js +21 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/createClass.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +19 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/defineProperty.js +17 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.cjs +11 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +9 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/inherits.cjs +24 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/inherits.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/inherits.js +22 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/inherits.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeFunction.cjs +8 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeFunction.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +6 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.cjs +17 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +15 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.cjs +17 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +15 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.cjs +12 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +10 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/typeof.cjs +14 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/typeof.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/typeof.js +12 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/typeof.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.cjs +43 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +41 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/regeneratorRuntime.cjs +365 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/regeneratorRuntime.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +363 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/regeneratorRuntime.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/typeof.cjs +22 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/typeof.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/typeof.js +20 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/typeof.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/regenerator/index.cjs +25 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/regenerator/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/regenerator/index.js +23 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/regenerator/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcModal.cjs +14 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcModal.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcModal.js +12 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcModal.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcNotification.cjs +23 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcNotification.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcNotification.js +21 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcNotification.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/utils/index.cjs +21 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/utils/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/utils/index.js +19 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/utils/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/displayText.cjs +22 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/displayText.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/displayText.js +20 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/displayText.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.cjs +137 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.js +134 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/reportToSlardar.cjs +63 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/reportToSlardar.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/reportToSlardar.js +61 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/reportToSlardar.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/base.cjs +236 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/base.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/base.js +232 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/base.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/constant.cjs +26 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/constant.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/constant.js +24 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/constant.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/type.cjs +87 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/type.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/type.js +82 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/type.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/utils.cjs +19 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/utils.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/utils.js +16 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/utils.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/index.cjs +11 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/index.js +9 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/adapters/xhr.cjs +235 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/adapters/xhr.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/adapters/xhr.js +233 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/adapters/xhr.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/axios.cjs +75 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/axios.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/axios.js +73 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/axios.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/Cancel.cjs +31 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/Cancel.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/Cancel.js +29 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/Cancel.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/CancelToken.cjs +133 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/CancelToken.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/CancelToken.js +131 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/CancelToken.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/isCancel.cjs +17 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/isCancel.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/isCancel.js +15 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/isCancel.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/Axios.cjs +158 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/Axios.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/Axios.js +156 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/Axios.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/InterceptorManager.cjs +59 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/InterceptorManager.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/InterceptorManager.js +57 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/InterceptorManager.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/buildFullPath.cjs +35 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/buildFullPath.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/buildFullPath.js +33 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/buildFullPath.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/createError.cjs +32 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/createError.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/createError.js +30 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/createError.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/dispatchRequest.cjs +96 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/dispatchRequest.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/dispatchRequest.js +94 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/dispatchRequest.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/enhanceError.cjs +46 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/enhanceError.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/enhanceError.js +44 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/enhanceError.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/mergeConfig.cjs +104 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/mergeConfig.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/mergeConfig.js +102 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/mergeConfig.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/settle.cjs +39 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/settle.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/settle.js +37 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/settle.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/transformData.cjs +28 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/transformData.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/transformData.js +26 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/transformData.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/defaults.cjs +151 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/defaults.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/defaults.js +149 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/defaults.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/env/data.cjs +16 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/env/data.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/env/data.js +14 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/env/data.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/bind.cjs +14 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/bind.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/bind.js +12 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/bind.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/buildURL.cjs +75 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/buildURL.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/buildURL.js +73 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/buildURL.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/combineURLs.cjs +26 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/combineURLs.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/combineURLs.js +24 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/combineURLs.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/cookies.cjs +67 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/cookies.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/cookies.js +65 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/cookies.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAbsoluteURL.cjs +26 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAbsoluteURL.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAbsoluteURL.js +24 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAxiosError.cjs +23 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAxiosError.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAxiosError.js +21 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAxiosError.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.cjs +82 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.js +80 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/normalizeHeaderName.cjs +17 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/normalizeHeaderName.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/normalizeHeaderName.js +15 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/normalizeHeaderName.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/parseHeaders.cjs +67 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/parseHeaders.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/parseHeaders.js +65 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/parseHeaders.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/spread.cjs +39 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/spread.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/spread.js +37 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/spread.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/validator.cjs +87 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/validator.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/validator.js +85 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/validator.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/utils.cjs +354 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/utils.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/utils.js +352 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/utils.js.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/js-cookie/src/js.cookie.cjs +173 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/js-cookie/src/js.cookie.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/js-cookie/src/js.cookie.js +171 -0
- package/dist/packages/chatui/node_modules/@byted-paas/vfetch/node_modules/js-cookie/src/js.cookie.js.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/client.cjs +135 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/client.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/client.js +133 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/client.js.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/constant.cjs +29 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/constant.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/constant.js +26 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/constant.js.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/interface.cjs +11 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/interface.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/interface.js +11 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/interface.js.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/logger.cjs +67 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/logger.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/logger.js +65 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/logger.js.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/slardar/index.cjs +11 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/slardar/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/slardar/index.js +9 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/slardar/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/storage/index.cjs +40 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/storage/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/storage/index.js +38 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/storage/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/storage/storageSlardar.cjs +52 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/storage/storageSlardar.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/storage/storageSlardar.js +50 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/storage/storageSlardar.js.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/translate/index.cjs +197 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/translate/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/translate/index.js +195 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/translate/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/translate/util.cjs +21 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/translate/util.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/translate/util.js +19 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/translate/util.js.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/util.cjs +166 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/util.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/util.js +149 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/lib/util.js.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/const.cjs +13 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/const.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/const.js +8 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/const.js.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/eviction/strategies.cjs +57 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/eviction/strategies.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/eviction/strategies.js +54 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/eviction/strategies.js.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/report.cjs +114 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/report.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/report.js +108 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/report.js.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/storage.cjs +495 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/storage.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/storage.js +493 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/storage.js.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/utils.cjs +86 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/utils.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/utils.js +80 -0
- package/dist/packages/chatui/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/utils.js.map +1 -0
- package/dist/packages/chatui/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -2
- package/dist/packages/chatui/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
- package/dist/packages/chatui/node_modules/@radix-ui/react-slot/dist/index.js +1 -1
- package/dist/packages/chatui/node_modules/@slardar/integrations/dist/action.cjs +982 -0
- package/dist/packages/chatui/node_modules/@slardar/integrations/dist/action.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@slardar/integrations/dist/action.js +980 -0
- package/dist/packages/chatui/node_modules/@slardar/integrations/dist/action.js.map +1 -0
- package/dist/packages/chatui/node_modules/@slardar/integrations/dist/captureConsole.cjs +162 -0
- package/dist/packages/chatui/node_modules/@slardar/integrations/dist/captureConsole.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@slardar/integrations/dist/captureConsole.js +160 -0
- package/dist/packages/chatui/node_modules/@slardar/integrations/dist/captureConsole.js.map +1 -0
- package/dist/packages/chatui/node_modules/@slardar/integrations/dist/heatmap.cjs +534 -0
- package/dist/packages/chatui/node_modules/@slardar/integrations/dist/heatmap.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@slardar/integrations/dist/heatmap.js +532 -0
- package/dist/packages/chatui/node_modules/@slardar/integrations/dist/heatmap.js.map +1 -0
- package/dist/packages/chatui/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.cjs +139 -0
- package/dist/packages/chatui/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.js +137 -0
- package/dist/packages/chatui/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.js.map +1 -0
- package/dist/packages/chatui/node_modules/@volcengine/console-web-sdk/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +19 -0
- package/dist/packages/chatui/node_modules/@volcengine/console-web-sdk/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/@volcengine/console-web-sdk/node_modules/@babel/runtime/helpers/esm/defineProperty.js +17 -0
- package/dist/packages/chatui/node_modules/@volcengine/console-web-sdk/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/createUpdateEffect/index.cjs +27 -0
- package/dist/packages/chatui/node_modules/ahooks/es/createUpdateEffect/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/createUpdateEffect/index.js +22 -0
- package/dist/packages/chatui/node_modules/ahooks/es/createUpdateEffect/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useCreation/index.cjs +22 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useCreation/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useCreation/index.js +20 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useCreation/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useEventListener/index.cjs +41 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useEventListener/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useEventListener/index.js +39 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useEventListener/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useLatest/index.cjs +12 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useLatest/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useLatest/index.js +10 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useLatest/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useMemoizedFn/index.cjs +32 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useMemoizedFn/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useMemoizedFn/index.js +30 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useMemoizedFn/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useMount/index.cjs +25 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useMount/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useMount/index.js +23 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useMount/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRafState/index.cjs +23 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRafState/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRafState/index.js +21 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRafState/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/index.cjs +8 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/index.js +6 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/Fetch.cjs +150 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/Fetch.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/Fetch.js +148 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/Fetch.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useAutoRunPlugin.cjs +51 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useAutoRunPlugin.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useAutoRunPlugin.js +49 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useAutoRunPlugin.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useCachePlugin.cjs +127 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useCachePlugin.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useCachePlugin.js +125 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useCachePlugin.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useDebouncePlugin.cjs +64 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useDebouncePlugin.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useDebouncePlugin.js +62 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useDebouncePlugin.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useLoadingDelayPlugin.cjs +44 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useLoadingDelayPlugin.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useLoadingDelayPlugin.js +42 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useLoadingDelayPlugin.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/usePollingPlugin.cjs +66 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/usePollingPlugin.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/usePollingPlugin.js +64 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/usePollingPlugin.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useRefreshOnWindowFocusPlugin.cjs +34 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useRefreshOnWindowFocusPlugin.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useRefreshOnWindowFocusPlugin.js +32 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useRefreshOnWindowFocusPlugin.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useRetryPlugin.cjs +51 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useRetryPlugin.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useRetryPlugin.js +49 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useRetryPlugin.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useThrottlePlugin.cjs +58 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useThrottlePlugin.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useThrottlePlugin.js +56 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/plugins/useThrottlePlugin.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/useRequest.cjs +38 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/useRequest.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/useRequest.js +36 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/useRequest.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/useRequestImplement.cjs +58 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/useRequestImplement.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/useRequestImplement.js +56 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/useRequestImplement.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/cache.cjs +26 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/cache.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/cache.js +23 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/cache.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/cachePromise.cjs +24 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/cachePromise.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/cachePromise.js +21 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/cachePromise.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/cacheSubscribe.cjs +22 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/cacheSubscribe.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/cacheSubscribe.js +19 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/cacheSubscribe.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/isDocumentVisible.cjs +13 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/isDocumentVisible.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/isDocumentVisible.js +11 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/isDocumentVisible.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/isOnline.cjs +14 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/isOnline.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/isOnline.js +12 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/isOnline.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/limit.cjs +23 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/limit.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/limit.js +21 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/limit.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/subscribeFocus.cjs +26 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/subscribeFocus.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/subscribeFocus.js +24 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/subscribeFocus.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/subscribeReVisible.cjs +23 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/subscribeReVisible.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/subscribeReVisible.js +21 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useRequest/src/utils/subscribeReVisible.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useSize/index.cjs +34 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useSize/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useSize/index.js +32 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useSize/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useUnmount/index.cjs +22 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useUnmount/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useUnmount/index.js +20 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useUnmount/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useUpdate/index.cjs +13 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useUpdate/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useUpdate/index.js +11 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useUpdate/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useUpdateEffect/index.cjs +9 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useUpdateEffect/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useUpdateEffect/index.js +7 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useUpdateEffect/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useVirtualList/index.cjs +123 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useVirtualList/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useVirtualList/index.js +121 -0
- package/dist/packages/chatui/node_modules/ahooks/es/useVirtualList/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/createEffectWithTarget.cjs +53 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/createEffectWithTarget.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/createEffectWithTarget.js +51 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/createEffectWithTarget.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/depsAreSame.cjs +16 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/depsAreSame.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/depsAreSame.js +14 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/depsAreSame.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/domTarget.cjs +27 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/domTarget.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/domTarget.js +25 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/domTarget.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/index.cjs +10 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/index.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/index.js +7 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/index.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/isBrowser.cjs +9 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/isBrowser.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/isBrowser.js +7 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/isBrowser.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/isDev.cjs +7 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/isDev.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/isDev.js +5 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/isDev.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/useEffectWithTarget.cjs +10 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/useEffectWithTarget.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/useEffectWithTarget.js +8 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/useEffectWithTarget.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.cjs +13 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.js +11 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.js.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.cjs +10 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.js +8 -0
- package/dist/packages/chatui/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.js.map +1 -0
- package/dist/packages/chatui/node_modules/zustand/esm/react/shallow.cjs +15 -0
- package/dist/packages/chatui/node_modules/zustand/esm/react/shallow.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/zustand/esm/react/shallow.js +13 -0
- package/dist/packages/chatui/node_modules/zustand/esm/react/shallow.js.map +1 -0
- package/dist/packages/chatui/node_modules/zustand/esm/react.cjs +26 -0
- package/dist/packages/chatui/node_modules/zustand/esm/react.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/zustand/esm/react.js +23 -0
- package/dist/packages/chatui/node_modules/zustand/esm/react.js.map +1 -0
- package/dist/packages/chatui/node_modules/zustand/esm/vanilla/shallow.cjs +58 -0
- package/dist/packages/chatui/node_modules/zustand/esm/vanilla/shallow.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/zustand/esm/vanilla/shallow.js +56 -0
- package/dist/packages/chatui/node_modules/zustand/esm/vanilla/shallow.js.map +1 -0
- package/dist/packages/chatui/node_modules/zustand/esm/vanilla.cjs +27 -0
- package/dist/packages/chatui/node_modules/zustand/esm/vanilla.cjs.map +1 -0
- package/dist/packages/chatui/node_modules/zustand/esm/vanilla.js +25 -0
- package/dist/packages/chatui/node_modules/zustand/esm/vanilla.js.map +1 -0
- package/dist/packages/core/dist/index.cjs +39 -34
- package/dist/packages/core/dist/index.cjs.map +1 -1
- package/dist/packages/core/dist/index.js +39 -34
- package/dist/packages/core/dist/index.js.map +1 -1
- package/dist/plugins/adkPlugin.d.ts +1 -0
- package/dist/plugins/adkPlugin.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/** eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/**
|
|
4
|
+
* 使用 script 标签加载 slardar, 脚本中有预收集代码,监控时间早
|
|
5
|
+
* https://cloud.bytedance.net/docs/slardar/docs/63c8ab7a6773b3023778be76/65f7da9e9e0487030f30eb2a?x-resource-account=public
|
|
6
|
+
*/
|
|
7
|
+
const loadSlardarScript = (slardarUrl, appName, GlobalSlardarName) => {
|
|
8
|
+
(function (w, d, u, b, n, pc, ga, ae, po, s, p, e, t, pp) {
|
|
9
|
+
pc = 'precollect';
|
|
10
|
+
ga = 'getAttribute';
|
|
11
|
+
ae = 'addEventListener';
|
|
12
|
+
s = function (m) {
|
|
13
|
+
p = [].slice.call(arguments);
|
|
14
|
+
p.push(Date.now(), location.href);
|
|
15
|
+
(m == pc ? s.p.a : s.q).push(p);
|
|
16
|
+
};
|
|
17
|
+
s.q = [];
|
|
18
|
+
s.p = { a: [] };
|
|
19
|
+
w[n] = s;
|
|
20
|
+
e = document.createElement('script');
|
|
21
|
+
e.src = u + '?bid=' + b + '&globalName=' + n;
|
|
22
|
+
e.crossOrigin = u.indexOf('sdk-web') > 0 ? 'anonymous' : 'use-credentials';
|
|
23
|
+
d.getElementsByTagName('head')[0].appendChild(e);
|
|
24
|
+
if (ae in w) {
|
|
25
|
+
s.pcErr = function (e) {
|
|
26
|
+
e = e || w.event;
|
|
27
|
+
t = e.target || e.srcElement;
|
|
28
|
+
if (t instanceof Element || t instanceof HTMLElement) {
|
|
29
|
+
if (t[ga]('integrity')) {
|
|
30
|
+
w[n](pc, 'sri', t[ga]('href') || t[ga]('src'));
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
w[n](pc, 'st', {
|
|
34
|
+
tagName: t.tagName,
|
|
35
|
+
url: t[ga]('href') || t[ga]('src'),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
w[n](pc, 'err', e.error);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
s.pcRej = function (e) {
|
|
44
|
+
e = e || w.event;
|
|
45
|
+
w[n](pc, 'reject', e.reason || (e.detail && e.detail.reason));
|
|
46
|
+
};
|
|
47
|
+
w[ae]('error', s.pcErr, true);
|
|
48
|
+
w[ae]('unhandledrejection', s.pcRej, true);
|
|
49
|
+
}
|
|
50
|
+
if ('PerformanceLongTaskTiming' in w) {
|
|
51
|
+
pp = s.pp = { entries: [] };
|
|
52
|
+
pp.observer = new PerformanceObserver(function (l) {
|
|
53
|
+
pp.entries = pp.entries.concat(l.getEntries());
|
|
54
|
+
});
|
|
55
|
+
pp.observer.observe({
|
|
56
|
+
entryTypes: ['longtask'],
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
})(window, document, slardarUrl, appName, GlobalSlardarName);
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export { loadSlardarScript };
|
|
63
|
+
//# sourceMappingURL=loadSlardar.js.map
|
package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/loadSlardar/loadSlardar.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadSlardar.js","sources":["../../../../../../../../node_modules/@byted/iaas-monitor/lib/loadSlardar/loadSlardar.js"],"sourcesContent":["/** eslint-disable */\n// @ts-nocheck\n/**\n * 使用 script 标签加载 slardar, 脚本中有预收集代码,监控时间早\n * https://cloud.bytedance.net/docs/slardar/docs/63c8ab7a6773b3023778be76/65f7da9e9e0487030f30eb2a?x-resource-account=public\n */\nexport const loadSlardarScript = (slardarUrl, appName, GlobalSlardarName) => {\n (function (w, d, u, b, n, pc, ga, ae, po, s, p, e, t, pp) {\n pc = 'precollect';\n ga = 'getAttribute';\n ae = 'addEventListener';\n po = 'PerformanceObserver';\n s = function (m) {\n p = [].slice.call(arguments);\n p.push(Date.now(), location.href);\n (m == pc ? s.p.a : s.q).push(p);\n };\n s.q = [];\n s.p = { a: [] };\n w[n] = s;\n e = document.createElement('script');\n e.src = u + '?bid=' + b + '&globalName=' + n;\n e.crossOrigin = u.indexOf('sdk-web') > 0 ? 'anonymous' : 'use-credentials';\n d.getElementsByTagName('head')[0].appendChild(e);\n if (ae in w) {\n s.pcErr = function (e) {\n e = e || w.event;\n t = e.target || e.srcElement;\n if (t instanceof Element || t instanceof HTMLElement) {\n if (t[ga]('integrity')) {\n w[n](pc, 'sri', t[ga]('href') || t[ga]('src'));\n }\n else {\n w[n](pc, 'st', {\n tagName: t.tagName,\n url: t[ga]('href') || t[ga]('src'),\n });\n }\n }\n else {\n w[n](pc, 'err', e.error);\n }\n };\n s.pcRej = function (e) {\n e = e || w.event;\n w[n](pc, 'reject', e.reason || (e.detail && e.detail.reason));\n };\n w[ae]('error', s.pcErr, true);\n w[ae]('unhandledrejection', s.pcRej, true);\n }\n if ('PerformanceLongTaskTiming' in w) {\n pp = s.pp = { entries: [] };\n pp.observer = new PerformanceObserver(function (l) {\n pp.entries = pp.entries.concat(l.getEntries());\n });\n pp.observer.observe({\n entryTypes: ['longtask'],\n });\n }\n })(window, document, slardarUrl, appName, GlobalSlardarName);\n};\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,iBAAiB,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,iBAAiB,KAAK;AAC7E,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE;AAC9D,QAAQ,EAAE,GAAG,YAAY,CAAC;AAC1B,QAAQ,EAAE,GAAG,cAAc,CAAC;AAC5B,QAAQ,EAAE,GAAG,kBAAkB,CAAC;AAEhC,QAAQ,CAAC,GAAG,UAAU,CAAC,EAAE;AACzB,YAAY,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AACzC,YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC9C,YAAY,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;AAC5C,SAAS,CAAC;AACV,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;AACjB,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;AACxB,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AACjB,QAAQ,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;AAC7C,QAAQ,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,OAAO,GAAG,CAAC,GAAG,cAAc,GAAG,CAAC,CAAC;AACrD,QAAQ,CAAC,CAAC,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,WAAW,GAAG,iBAAiB,CAAC;AACnF,QAAQ,CAAC,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;AACzD,QAAQ,IAAI,EAAE,IAAI,CAAC,EAAE;AACrB,YAAY,CAAC,CAAC,KAAK,GAAG,UAAU,CAAC,EAAE;AACnC,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC;AACjC,gBAAgB,CAAC,GAAG,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,UAAU,CAAC;AAC7C,gBAAgB,IAAI,CAAC,YAAY,OAAO,IAAI,CAAC,YAAY,WAAW,EAAE;AACtE,oBAAoB,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,WAAW,CAAC,EAAE;AAC5C,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AACvE,qBAAqB;AACrB,yBAAyB;AACzB,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE;AACvC,4BAA4B,OAAO,EAAE,CAAC,CAAC,OAAO;AAC9C,4BAA4B,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC;AAC9D,yBAAyB,CAAC,CAAC;AAC3B,qBAAqB;AACrB,iBAAiB;AACjB,qBAAqB;AACrB,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;AAC7C,iBAAiB;AACjB,aAAa,CAAC;AACd,YAAY,CAAC,CAAC,KAAK,GAAG,UAAU,CAAC,EAAE;AACnC,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC;AACjC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;AAC9E,aAAa,CAAC;AACd,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AAC1C,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,oBAAoB,EAAE,CAAC,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AACvD,SAAS;AACT,QAAQ,IAAI,2BAA2B,IAAI,CAAC,EAAE;AAC9C,YAAY,EAAE,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AACxC,YAAY,EAAE,CAAC,QAAQ,GAAG,IAAI,mBAAmB,CAAC,UAAU,CAAC,EAAE;AAC/D,gBAAgB,EAAE,CAAC,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC;AAC/D,aAAa,CAAC,CAAC;AACf,YAAY,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;AAChC,gBAAgB,UAAU,EAAE,CAAC,UAAU,CAAC;AACxC,aAAa,CAAC,CAAC;AACf,SAAS;AACT,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC;AACjE;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('../../../@slardar/integrations/dist/action.cjs');
|
|
4
|
+
require('../../../@slardar/integrations/dist/heatmap.cjs');
|
|
5
|
+
require('../../../@slardar/integrations/dist/captureConsole.cjs');
|
|
6
|
+
require('./loadSlardar/index.cjs');
|
|
7
|
+
require('./const.cjs');
|
|
8
|
+
require('./utils.cjs');
|
|
9
|
+
require('./performanceMetrics/index.cjs');
|
|
10
|
+
|
|
11
|
+
(undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=monitor.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor.cjs","sources":["../../../../../../../node_modules/@byted/iaas-monitor/lib/monitor.js"],"sourcesContent":["var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { merge, cloneDeep } from 'lodash-es';\nimport { actionPlugin } from '@slardar/integrations/dist/action';\nimport { env } from '@volcengine/console-web-sdk';\nimport { heatmap } from '@slardar/integrations/dist/heatmap';\nimport { captureConsole } from '@slardar/integrations/dist/captureConsole';\nimport { loadSlardar } from './loadSlardar';\nimport { CloudSlardarEnv, GlobalSlardarName } from './const';\nimport { defaultSlardarConfig, getEnv, getRelease, handleAutoReportErr, checkEnableReport, isVolcEngine } from './utils';\nimport { AutoUfspCollector, reportDomPerformance } from './performanceMetrics';\n// 请求错误P0请求构造fatal error\nconst extendsFatalAction = (ev, fatalAction) => {\n if ((fatalAction === null || fatalAction === void 0 ? void 0 : fatalAction.length) &&\n (ev === null || ev === void 0 ? void 0 : ev.ev_type) === 'http' &&\n fatalAction.some(ac => new RegExp(ac).exec(ev.payload.request.url)) &&\n ev.payload.response.status !== 200) {\n ev.payload.extra = Object.assign(Object.assign({}, (ev.payload.extra || undefined)), { level: 'fatal' });\n }\n return ev;\n};\n// 添加referrer\nconst extendsCommon = (ev) => {\n var _a, _b;\n const commonExtra = {\n referrer: (_a = window.document.referrer) === null || _a === void 0 ? void 0 : _a.slice(0, 200),\n };\n // 在ifarme中 document.referrer会取parent window's Window.location. https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer\n if (window.top !== window) {\n commonExtra.iframeReferrer = (_b = window.document.referrer) === null || _b === void 0 ? void 0 : _b.slice(0, 200);\n }\n ev.payload.extra = Object.assign(Object.assign({}, (ev.payload.extra || undefined)), commonExtra);\n return ev;\n};\nconst handleConfig = (config) => {\n let newConfig = cloneDeep(config);\n newConfig = merge({}, defaultSlardarConfig, newConfig || {});\n newConfig.bid = newConfig.bid;\n newConfig.env = newConfig.env || CloudSlardarEnv.UNKNOWN;\n newConfig.release = getRelease(newConfig.release);\n // 根据火山法务结论,userId 可以不加密直接上报\n newConfig.userId = newConfig.userId || 'userIdNotExist';\n return newConfig;\n};\nexport let browserClient = null;\nconst setContext = (options) => {\n var _a, _b;\n // 在ifarme中 document.referrer会取parent window's Window.location. https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer\n if (window.top !== window) {\n browserClient === null || browserClient === void 0 ? void 0 : browserClient('context.set', 'iframeReferrer', (_a = window.document.referrer) === null || _a === void 0 ? void 0 : _a.slice(0, 200));\n }\n browserClient === null || browserClient === void 0 ? void 0 : browserClient('context.set', 'referrer', (_b = window.document.referrer) === null || _b === void 0 ? void 0 : _b.slice(0, 200));\n browserClient === null || browserClient === void 0 ? void 0 : browserClient('context.set', 'region', options.region);\n};\n// 隔离slardar 设置当前bid,监控会有嵌套,得保证上报bid一致\nconst getBidList = () => {\n var _a, _b;\n const l = (_b = (_a = window[GlobalSlardarName]) === null || _a === void 0 ? void 0 : _a.call(window, 'context.get', 'bidList')) === null || _b === void 0 ? void 0 : _b.split(',');\n return (l === null || l === void 0 ? void 0 : l.length) ? l : [];\n};\nconst pushBid = (bid) => {\n var _a;\n const bidList = getBidList();\n bidList.push(bid);\n (_a = window[GlobalSlardarName]) === null || _a === void 0 ? void 0 : _a.call(window, 'context.set', 'bidList', bidList.join(','));\n};\nconst popBid = (bid) => {\n var _a;\n const bidList = getBidList();\n const newBidList = bidList.filter((item) => item !== bid);\n (_a = window[GlobalSlardarName]) === null || _a === void 0 ? void 0 : _a.call(window, 'context.set', 'bidList', newBidList.join(','));\n};\nconst getCurrentBid = () => {\n const bidList = getBidList();\n return (bidList === null || bidList === void 0 ? void 0 : bidList.length) ? bidList[bidList.length - 1] : '';\n};\nconst browserExtensionPattern = /(chrome-extension|safari-extension|moz-extension|safari-web-extension):\\/\\//i;\nconst asyncInit = (bid, options, finalConfig) => {\n var _a;\n (_a = window[GlobalSlardarName]) === null || _a === void 0 ? void 0 : _a.call(window, 'on', 'init', () => {\n var _a, _b;\n if (!browserClient) {\n browserClient = (_b = (_a = window[GlobalSlardarName]) === null || _a === void 0 ? void 0 : _a.create) === null || _b === void 0 ? void 0 : _b.call(_a);\n IAASMonitor.browserClient = browserClient;\n }\n if (browserClient) {\n setContext(options);\n browserClient === null || browserClient === void 0 ? void 0 : browserClient('init', finalConfig);\n browserClient === null || browserClient === void 0 ? void 0 : browserClient('start');\n // 销毁时移除bid\n browserClient === null || browserClient === void 0 ? void 0 : browserClient.on('beforeDestroy', () => {\n popBid(bid);\n });\n pushBid(bid);\n // 拦截处理\n browserClient === null || browserClient === void 0 ? void 0 : browserClient('on', 'beforeSend', (ev) => {\n var _a, _b, _c, _d, _e, _f, _g;\n // JSErr自动上报时添加lv / reportType 字段\n handleAutoReportErr(ev);\n // 如果不属于当前的bid则过滤掉\n if (ev.common.bid !== getCurrentBid()) {\n return false;\n }\n if (ev.ev_type === 'js_error') {\n if ((_a = ev.payload) === null || _a === void 0 ? void 0 : _a.error) {\n const stack = ((_c = (_b = ev.payload) === null || _b === void 0 ? void 0 : _b.error) === null || _c === void 0 ? void 0 : _c.stack) || '';\n const lines = stack.split(' at ');\n // 匹配浏览器插件路径(Chrome/Safari/Firefox)\n if (lines.some((str) => browserExtensionPattern.test(str))) {\n return false;\n }\n }\n }\n // 过滤掉登录态失效401跳转带来的白屏问题\n if (ev.ev_type === 'blank_screen' && ((_e = (_d = ev.payload) === null || _d === void 0 ? void 0 : _d.error) === null || _e === void 0 ? void 0 : _e.type) === 'js_error' && ((_g = (_f = ev.payload) === null || _f === void 0 ? void 0 : _f.error) === null || _g === void 0 ? void 0 : _g.message.includes('401'))) {\n return false;\n }\n let event = ev;\n if (options.beforeSend) {\n event = options.beforeSend(event);\n // 如果用户返回false,则不发送\n if (!event) {\n return false;\n }\n }\n event = extendsCommon(event);\n event = extendsFatalAction(event, options.fatalAction);\n return event;\n });\n new AutoUfspCollector({\n logger: browserClient,\n });\n reportDomPerformance(browserClient);\n }\n });\n};\nconst initMonitor = (bid, options) => {\n (() => __awaiter(void 0, void 0, void 0, function* () {\n var _a, _b;\n if (!((_a = window[GlobalSlardarName]) === null || _a === void 0 ? void 0 : _a.create)) {\n yield loadSlardar();\n }\n const enableReport = (_b = options.enableReport) !== null && _b !== void 0 ? _b : isVolcEngine();\n const enableLocalReport = options.enableLocalReport;\n const enableCaptureConsoleErr = options.enableCaptureConsoleErr || true;\n const slardarConfig = Object.assign({ env: getEnv(), userId: options.userId.toString(), bid, release: getRelease(), integrations: [\n actionPlugin({ pure: env.isBytePlus ? false : true, types: ['click'] }),\n options.enableHeatMap ? heatmap({ trackRootScroll: false }) : null,\n enableCaptureConsoleErr ? captureConsole({ levels: ['error'] }) : null,\n ].filter(Boolean) }, (options.slardarConfig || undefined));\n const finalConfig = handleConfig(slardarConfig);\n const finalEnableReport = checkEnableReport(finalConfig, enableReport, enableLocalReport);\n if (!finalEnableReport) {\n return;\n }\n asyncInit(bid, options, finalConfig);\n }))();\n};\nconst destroyMonitor = () => {\n var _a;\n // 需要手动销毁browserClient实例\n (_a = browserClient === null || browserClient === void 0 ? void 0 : browserClient.destroy) === null || _a === void 0 ? void 0 : _a.call(browserClient);\n // browserClient实例还在并且没有销毁,只销毁了一些plugins 和effects\n browserClient = null;\n};\nexport const IAASMonitor = {\n init: initMonitor,\n destroy: destroyMonitor,\n browserClient: browserClient,\n};\n"],"names":["this"],"mappings":";;;;;;;;;;AAAgB,CAACA,SAAI,IAAIA,SAAI,CAAC,SAAS,KAAK,UAAU,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AACzF,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;AAChH,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,EAAE,UAAU,OAAO,EAAE,MAAM,EAAE;AAC/D,QAAQ,SAAS,SAAS,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACnG,QAAQ,SAAS,QAAQ,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACtG,QAAQ,SAAS,IAAI,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,EAAE;AACtH,QAAQ,IAAI,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,UAAU,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9E,KAAK,CAAC,CAAC;AACP;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import '../../../@slardar/integrations/dist/action.js';
|
|
2
|
+
import '../../../@slardar/integrations/dist/heatmap.js';
|
|
3
|
+
import '../../../@slardar/integrations/dist/captureConsole.js';
|
|
4
|
+
import './loadSlardar/index.js';
|
|
5
|
+
import './const.js';
|
|
6
|
+
import './utils.js';
|
|
7
|
+
import './performanceMetrics/index.js';
|
|
8
|
+
|
|
9
|
+
(undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
10
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
11
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
12
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
13
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
14
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
15
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=monitor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor.js","sources":["../../../../../../../node_modules/@byted/iaas-monitor/lib/monitor.js"],"sourcesContent":["var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { merge, cloneDeep } from 'lodash-es';\nimport { actionPlugin } from '@slardar/integrations/dist/action';\nimport { env } from '@volcengine/console-web-sdk';\nimport { heatmap } from '@slardar/integrations/dist/heatmap';\nimport { captureConsole } from '@slardar/integrations/dist/captureConsole';\nimport { loadSlardar } from './loadSlardar';\nimport { CloudSlardarEnv, GlobalSlardarName } from './const';\nimport { defaultSlardarConfig, getEnv, getRelease, handleAutoReportErr, checkEnableReport, isVolcEngine } from './utils';\nimport { AutoUfspCollector, reportDomPerformance } from './performanceMetrics';\n// 请求错误P0请求构造fatal error\nconst extendsFatalAction = (ev, fatalAction) => {\n if ((fatalAction === null || fatalAction === void 0 ? void 0 : fatalAction.length) &&\n (ev === null || ev === void 0 ? void 0 : ev.ev_type) === 'http' &&\n fatalAction.some(ac => new RegExp(ac).exec(ev.payload.request.url)) &&\n ev.payload.response.status !== 200) {\n ev.payload.extra = Object.assign(Object.assign({}, (ev.payload.extra || undefined)), { level: 'fatal' });\n }\n return ev;\n};\n// 添加referrer\nconst extendsCommon = (ev) => {\n var _a, _b;\n const commonExtra = {\n referrer: (_a = window.document.referrer) === null || _a === void 0 ? void 0 : _a.slice(0, 200),\n };\n // 在ifarme中 document.referrer会取parent window's Window.location. https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer\n if (window.top !== window) {\n commonExtra.iframeReferrer = (_b = window.document.referrer) === null || _b === void 0 ? void 0 : _b.slice(0, 200);\n }\n ev.payload.extra = Object.assign(Object.assign({}, (ev.payload.extra || undefined)), commonExtra);\n return ev;\n};\nconst handleConfig = (config) => {\n let newConfig = cloneDeep(config);\n newConfig = merge({}, defaultSlardarConfig, newConfig || {});\n newConfig.bid = newConfig.bid;\n newConfig.env = newConfig.env || CloudSlardarEnv.UNKNOWN;\n newConfig.release = getRelease(newConfig.release);\n // 根据火山法务结论,userId 可以不加密直接上报\n newConfig.userId = newConfig.userId || 'userIdNotExist';\n return newConfig;\n};\nexport let browserClient = null;\nconst setContext = (options) => {\n var _a, _b;\n // 在ifarme中 document.referrer会取parent window's Window.location. https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer\n if (window.top !== window) {\n browserClient === null || browserClient === void 0 ? void 0 : browserClient('context.set', 'iframeReferrer', (_a = window.document.referrer) === null || _a === void 0 ? void 0 : _a.slice(0, 200));\n }\n browserClient === null || browserClient === void 0 ? void 0 : browserClient('context.set', 'referrer', (_b = window.document.referrer) === null || _b === void 0 ? void 0 : _b.slice(0, 200));\n browserClient === null || browserClient === void 0 ? void 0 : browserClient('context.set', 'region', options.region);\n};\n// 隔离slardar 设置当前bid,监控会有嵌套,得保证上报bid一致\nconst getBidList = () => {\n var _a, _b;\n const l = (_b = (_a = window[GlobalSlardarName]) === null || _a === void 0 ? void 0 : _a.call(window, 'context.get', 'bidList')) === null || _b === void 0 ? void 0 : _b.split(',');\n return (l === null || l === void 0 ? void 0 : l.length) ? l : [];\n};\nconst pushBid = (bid) => {\n var _a;\n const bidList = getBidList();\n bidList.push(bid);\n (_a = window[GlobalSlardarName]) === null || _a === void 0 ? void 0 : _a.call(window, 'context.set', 'bidList', bidList.join(','));\n};\nconst popBid = (bid) => {\n var _a;\n const bidList = getBidList();\n const newBidList = bidList.filter((item) => item !== bid);\n (_a = window[GlobalSlardarName]) === null || _a === void 0 ? void 0 : _a.call(window, 'context.set', 'bidList', newBidList.join(','));\n};\nconst getCurrentBid = () => {\n const bidList = getBidList();\n return (bidList === null || bidList === void 0 ? void 0 : bidList.length) ? bidList[bidList.length - 1] : '';\n};\nconst browserExtensionPattern = /(chrome-extension|safari-extension|moz-extension|safari-web-extension):\\/\\//i;\nconst asyncInit = (bid, options, finalConfig) => {\n var _a;\n (_a = window[GlobalSlardarName]) === null || _a === void 0 ? void 0 : _a.call(window, 'on', 'init', () => {\n var _a, _b;\n if (!browserClient) {\n browserClient = (_b = (_a = window[GlobalSlardarName]) === null || _a === void 0 ? void 0 : _a.create) === null || _b === void 0 ? void 0 : _b.call(_a);\n IAASMonitor.browserClient = browserClient;\n }\n if (browserClient) {\n setContext(options);\n browserClient === null || browserClient === void 0 ? void 0 : browserClient('init', finalConfig);\n browserClient === null || browserClient === void 0 ? void 0 : browserClient('start');\n // 销毁时移除bid\n browserClient === null || browserClient === void 0 ? void 0 : browserClient.on('beforeDestroy', () => {\n popBid(bid);\n });\n pushBid(bid);\n // 拦截处理\n browserClient === null || browserClient === void 0 ? void 0 : browserClient('on', 'beforeSend', (ev) => {\n var _a, _b, _c, _d, _e, _f, _g;\n // JSErr自动上报时添加lv / reportType 字段\n handleAutoReportErr(ev);\n // 如果不属于当前的bid则过滤掉\n if (ev.common.bid !== getCurrentBid()) {\n return false;\n }\n if (ev.ev_type === 'js_error') {\n if ((_a = ev.payload) === null || _a === void 0 ? void 0 : _a.error) {\n const stack = ((_c = (_b = ev.payload) === null || _b === void 0 ? void 0 : _b.error) === null || _c === void 0 ? void 0 : _c.stack) || '';\n const lines = stack.split(' at ');\n // 匹配浏览器插件路径(Chrome/Safari/Firefox)\n if (lines.some((str) => browserExtensionPattern.test(str))) {\n return false;\n }\n }\n }\n // 过滤掉登录态失效401跳转带来的白屏问题\n if (ev.ev_type === 'blank_screen' && ((_e = (_d = ev.payload) === null || _d === void 0 ? void 0 : _d.error) === null || _e === void 0 ? void 0 : _e.type) === 'js_error' && ((_g = (_f = ev.payload) === null || _f === void 0 ? void 0 : _f.error) === null || _g === void 0 ? void 0 : _g.message.includes('401'))) {\n return false;\n }\n let event = ev;\n if (options.beforeSend) {\n event = options.beforeSend(event);\n // 如果用户返回false,则不发送\n if (!event) {\n return false;\n }\n }\n event = extendsCommon(event);\n event = extendsFatalAction(event, options.fatalAction);\n return event;\n });\n new AutoUfspCollector({\n logger: browserClient,\n });\n reportDomPerformance(browserClient);\n }\n });\n};\nconst initMonitor = (bid, options) => {\n (() => __awaiter(void 0, void 0, void 0, function* () {\n var _a, _b;\n if (!((_a = window[GlobalSlardarName]) === null || _a === void 0 ? void 0 : _a.create)) {\n yield loadSlardar();\n }\n const enableReport = (_b = options.enableReport) !== null && _b !== void 0 ? _b : isVolcEngine();\n const enableLocalReport = options.enableLocalReport;\n const enableCaptureConsoleErr = options.enableCaptureConsoleErr || true;\n const slardarConfig = Object.assign({ env: getEnv(), userId: options.userId.toString(), bid, release: getRelease(), integrations: [\n actionPlugin({ pure: env.isBytePlus ? false : true, types: ['click'] }),\n options.enableHeatMap ? heatmap({ trackRootScroll: false }) : null,\n enableCaptureConsoleErr ? captureConsole({ levels: ['error'] }) : null,\n ].filter(Boolean) }, (options.slardarConfig || undefined));\n const finalConfig = handleConfig(slardarConfig);\n const finalEnableReport = checkEnableReport(finalConfig, enableReport, enableLocalReport);\n if (!finalEnableReport) {\n return;\n }\n asyncInit(bid, options, finalConfig);\n }))();\n};\nconst destroyMonitor = () => {\n var _a;\n // 需要手动销毁browserClient实例\n (_a = browserClient === null || browserClient === void 0 ? void 0 : browserClient.destroy) === null || _a === void 0 ? void 0 : _a.call(browserClient);\n // browserClient实例还在并且没有销毁,只销毁了一些plugins 和effects\n browserClient = null;\n};\nexport const IAASMonitor = {\n init: initMonitor,\n destroy: destroyMonitor,\n browserClient: browserClient,\n};\n"],"names":["this"],"mappings":";;;;;;;;AAAgB,CAACA,SAAI,IAAIA,SAAI,CAAC,SAAS,KAAK,UAAU,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AACzF,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;AAChH,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,EAAE,UAAU,OAAO,EAAE,MAAM,EAAE;AAC/D,QAAQ,SAAS,SAAS,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACnG,QAAQ,SAAS,QAAQ,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACtG,QAAQ,SAAS,IAAI,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,EAAE;AACtH,QAAQ,IAAI,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,UAAU,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9E,KAAK,CAAC,CAAC;AACP","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
(undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
7
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
8
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
9
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=dom.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom.cjs","sources":["../../../../../../../../../node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/dom.js"],"sourcesContent":["var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { getSufspTimestamp } from './utils';\nlet viewportHeight = 0;\nlet viewportWidth = 0;\n/**\n * 初始化视口尺寸\n */\nexport function initViewportSize() {\n viewportHeight = window.innerHeight;\n viewportWidth = window.innerWidth;\n // 尺寸变化\n window.addEventListener('resize', () => {\n viewportHeight = window.innerHeight;\n viewportWidth = window.innerWidth;\n });\n}\n/**\n * 计算视觉权重\n * @returns 视觉权重\n */\nexport function calculateVisualWeight({ domChangeHistory }) {\n var _a;\n let totalWeight = 0;\n const nodes = document.body.getElementsByTagName('*');\n let domCount = 0;\n for (let i = nodes.length - 1; i >= 0; i--) {\n const node = nodes[i];\n const rect = node.getBoundingClientRect();\n if (rect.width === 0 && rect.height === 0)\n continue;\n // 超出视窗的元素不计算权重\n if (rect.bottom < 0 || rect.top > viewportHeight)\n continue;\n let area = 0;\n // 只对文本节点计算权重\n if (node.children.length === 0 && ((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.length)) {\n domCount++;\n area = rect.width * rect.height;\n }\n totalWeight += area;\n }\n const weight = totalWeight / (viewportWidth * viewportHeight);\n // 记录DOM变化\n domChangeHistory.push({\n weight,\n timestamp: Math.floor(performance.now()),\n domCount,\n sufspTimestamp: getSufspTimestamp(),\n });\n}\nexport function pageRenderComplete(_a) {\n return __awaiter(this, arguments, void 0, function* ({ checkTimeout = 30 * 1000, filterFetchByUrl = url => true, domChangeHistory, }) {\n return new Promise(resolve => {\n let timeoutId;\n let overTimeId;\n let pendingRequests = new Set();\n // 存储每个请求URL模式的历史时间戳\n let requestHistory = new Map();\n let lastRequestTime = 0;\n // 页面稳定性判断参数\n const stabilityThreshold = 3000;\n const periodicRequestThreshold = 500;\n // 提取URL模式,忽略查询参数和特定ID\n function getUrlPattern(url) {\n try {\n // 移除查询参数和哈希\n const baseUrl = url.split('?')[0].split('#')[0];\n // 替换疑似ID的数字序列为占位符\n return baseUrl.replace(/\\/\\d+(?=\\/|$)/g, '/{id}');\n }\n catch (e) {\n return url;\n }\n }\n // 判断是否为周期性/重复请求\n function isPeriodicRequest(url, timestamp) {\n const urlPattern = getUrlPattern(url);\n const history = requestHistory.get(urlPattern) || [];\n if (history.length < 2)\n return false;\n // 检查时间间隔模式\n const recentHistory = [...history].slice(-5); // 只看最近5个请求\n const intervals = [];\n for (let i = 1; i < recentHistory.length; i++) {\n intervals.push(recentHistory[i] - recentHistory[i - 1]);\n }\n // 检查是否有一致的时间间隔\n const isConsistentInterval = intervals.some((interval, i, arr) => {\n if (i === 0)\n return false;\n return Math.abs(interval - arr[i - 1]) < 100; // 允许100ms的误差\n });\n // 检查是否有频繁的短时间内请求\n const hasFrequentRequests = intervals.some(interval => interval < periodicRequestThreshold);\n return isConsistentInterval || hasFrequentRequests;\n }\n // 拦截fetch请求\n const originalFetch = window.fetch;\n window.fetch = function (...args) {\n // 提取URL的更安全方式\n let url = '';\n try {\n if (typeof args[0] === 'string') {\n url = args[0];\n }\n else if (args[0] instanceof Request) {\n url = args[0].url;\n }\n else if (args[0] && typeof args[0] === 'object' && 'url' in args[0]) {\n url = String(args[0].url);\n }\n }\n catch (e) {\n // 忽略URL提取错误\n }\n const rId = Symbol();\n const currentTime = performance.now();\n if (filterFetchByUrl(url)) {\n // 更新请求历史\n const urlPattern = getUrlPattern(url);\n const history = requestHistory.get(urlPattern) || [];\n history.push(currentTime);\n requestHistory.set(urlPattern, history);\n // 记录非周期性请求\n if (!isPeriodicRequest(url, currentTime)) {\n pendingRequests.add(rId);\n lastRequestTime = currentTime;\n }\n }\n return originalFetch\n .apply(this, args)\n .then((response) => {\n // 请求成功完成后删除\n pendingRequests.delete(rId);\n checkStability();\n return response; // 返回响应以保持链式调用\n })\n .catch((error) => {\n checkStability();\n // 重新抛出错误以保持原始行为\n throw error;\n });\n };\n // 检查页面是否稳定\n function checkStability() {\n if (domChangeHistory.length === 0) {\n return;\n }\n const lastDomWeight = domChangeHistory[domChangeHistory.length - 1].weight;\n if (lastDomWeight < 0.1) {\n return;\n }\n // 现在只关注非周期性请求,因为周期性请求在添加时就被过滤掉了\n const pendingNonPeriodicRequests = pendingRequests.size;\n const currentTime = performance.now();\n const timeSinceLastRequest = currentTime - lastRequestTime;\n // 如果没有非周期性请求且已经过了足够的时间,准备完成\n if (pendingNonPeriodicRequests === 0 && timeSinceLastRequest > stabilityThreshold / 2) {\n clearTimeout(timeoutId);\n timeoutId = setTimeout(complete, stabilityThreshold);\n }\n }\n const observer = new MutationObserver(() => {\n clearTimeout(timeoutId);\n checkStability();\n });\n observer.observe(document.body, {\n childList: true, // 监听子元素的增减\n subtree: true, // 监听所有子孙节点的变化\n attributes: false, // 监听元素属性变化\n });\n function complete(result = true) {\n clearTimeout(timeoutId);\n clearTimeout(overTimeId);\n observer.disconnect();\n // 恢复原始方法\n window.fetch = originalFetch;\n resolve(result);\n }\n // 初始检查稳定性\n checkStability();\n // 如果在设定时间内没有变化,认为页面稳定\n overTimeId = setTimeout(() => {\n complete(false);\n }, checkTimeout);\n });\n });\n}\n"],"names":["this"],"mappings":";;AAAgB,CAACA,SAAI,IAAIA,SAAI,CAAC,SAAS,KAAK,UAAU,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AACzF,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;AAChH,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,EAAE,UAAU,OAAO,EAAE,MAAM,EAAE;AAC/D,QAAQ,SAAS,SAAS,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACnG,QAAQ,SAAS,QAAQ,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACtG,QAAQ,SAAS,IAAI,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,EAAE;AACtH,QAAQ,IAAI,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,UAAU,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9E,KAAK,CAAC,CAAC;AACP;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
(undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=dom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom.js","sources":["../../../../../../../../../node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/dom.js"],"sourcesContent":["var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { getSufspTimestamp } from './utils';\nlet viewportHeight = 0;\nlet viewportWidth = 0;\n/**\n * 初始化视口尺寸\n */\nexport function initViewportSize() {\n viewportHeight = window.innerHeight;\n viewportWidth = window.innerWidth;\n // 尺寸变化\n window.addEventListener('resize', () => {\n viewportHeight = window.innerHeight;\n viewportWidth = window.innerWidth;\n });\n}\n/**\n * 计算视觉权重\n * @returns 视觉权重\n */\nexport function calculateVisualWeight({ domChangeHistory }) {\n var _a;\n let totalWeight = 0;\n const nodes = document.body.getElementsByTagName('*');\n let domCount = 0;\n for (let i = nodes.length - 1; i >= 0; i--) {\n const node = nodes[i];\n const rect = node.getBoundingClientRect();\n if (rect.width === 0 && rect.height === 0)\n continue;\n // 超出视窗的元素不计算权重\n if (rect.bottom < 0 || rect.top > viewportHeight)\n continue;\n let area = 0;\n // 只对文本节点计算权重\n if (node.children.length === 0 && ((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.length)) {\n domCount++;\n area = rect.width * rect.height;\n }\n totalWeight += area;\n }\n const weight = totalWeight / (viewportWidth * viewportHeight);\n // 记录DOM变化\n domChangeHistory.push({\n weight,\n timestamp: Math.floor(performance.now()),\n domCount,\n sufspTimestamp: getSufspTimestamp(),\n });\n}\nexport function pageRenderComplete(_a) {\n return __awaiter(this, arguments, void 0, function* ({ checkTimeout = 30 * 1000, filterFetchByUrl = url => true, domChangeHistory, }) {\n return new Promise(resolve => {\n let timeoutId;\n let overTimeId;\n let pendingRequests = new Set();\n // 存储每个请求URL模式的历史时间戳\n let requestHistory = new Map();\n let lastRequestTime = 0;\n // 页面稳定性判断参数\n const stabilityThreshold = 3000;\n const periodicRequestThreshold = 500;\n // 提取URL模式,忽略查询参数和特定ID\n function getUrlPattern(url) {\n try {\n // 移除查询参数和哈希\n const baseUrl = url.split('?')[0].split('#')[0];\n // 替换疑似ID的数字序列为占位符\n return baseUrl.replace(/\\/\\d+(?=\\/|$)/g, '/{id}');\n }\n catch (e) {\n return url;\n }\n }\n // 判断是否为周期性/重复请求\n function isPeriodicRequest(url, timestamp) {\n const urlPattern = getUrlPattern(url);\n const history = requestHistory.get(urlPattern) || [];\n if (history.length < 2)\n return false;\n // 检查时间间隔模式\n const recentHistory = [...history].slice(-5); // 只看最近5个请求\n const intervals = [];\n for (let i = 1; i < recentHistory.length; i++) {\n intervals.push(recentHistory[i] - recentHistory[i - 1]);\n }\n // 检查是否有一致的时间间隔\n const isConsistentInterval = intervals.some((interval, i, arr) => {\n if (i === 0)\n return false;\n return Math.abs(interval - arr[i - 1]) < 100; // 允许100ms的误差\n });\n // 检查是否有频繁的短时间内请求\n const hasFrequentRequests = intervals.some(interval => interval < periodicRequestThreshold);\n return isConsistentInterval || hasFrequentRequests;\n }\n // 拦截fetch请求\n const originalFetch = window.fetch;\n window.fetch = function (...args) {\n // 提取URL的更安全方式\n let url = '';\n try {\n if (typeof args[0] === 'string') {\n url = args[0];\n }\n else if (args[0] instanceof Request) {\n url = args[0].url;\n }\n else if (args[0] && typeof args[0] === 'object' && 'url' in args[0]) {\n url = String(args[0].url);\n }\n }\n catch (e) {\n // 忽略URL提取错误\n }\n const rId = Symbol();\n const currentTime = performance.now();\n if (filterFetchByUrl(url)) {\n // 更新请求历史\n const urlPattern = getUrlPattern(url);\n const history = requestHistory.get(urlPattern) || [];\n history.push(currentTime);\n requestHistory.set(urlPattern, history);\n // 记录非周期性请求\n if (!isPeriodicRequest(url, currentTime)) {\n pendingRequests.add(rId);\n lastRequestTime = currentTime;\n }\n }\n return originalFetch\n .apply(this, args)\n .then((response) => {\n // 请求成功完成后删除\n pendingRequests.delete(rId);\n checkStability();\n return response; // 返回响应以保持链式调用\n })\n .catch((error) => {\n checkStability();\n // 重新抛出错误以保持原始行为\n throw error;\n });\n };\n // 检查页面是否稳定\n function checkStability() {\n if (domChangeHistory.length === 0) {\n return;\n }\n const lastDomWeight = domChangeHistory[domChangeHistory.length - 1].weight;\n if (lastDomWeight < 0.1) {\n return;\n }\n // 现在只关注非周期性请求,因为周期性请求在添加时就被过滤掉了\n const pendingNonPeriodicRequests = pendingRequests.size;\n const currentTime = performance.now();\n const timeSinceLastRequest = currentTime - lastRequestTime;\n // 如果没有非周期性请求且已经过了足够的时间,准备完成\n if (pendingNonPeriodicRequests === 0 && timeSinceLastRequest > stabilityThreshold / 2) {\n clearTimeout(timeoutId);\n timeoutId = setTimeout(complete, stabilityThreshold);\n }\n }\n const observer = new MutationObserver(() => {\n clearTimeout(timeoutId);\n checkStability();\n });\n observer.observe(document.body, {\n childList: true, // 监听子元素的增减\n subtree: true, // 监听所有子孙节点的变化\n attributes: false, // 监听元素属性变化\n });\n function complete(result = true) {\n clearTimeout(timeoutId);\n clearTimeout(overTimeId);\n observer.disconnect();\n // 恢复原始方法\n window.fetch = originalFetch;\n resolve(result);\n }\n // 初始检查稳定性\n checkStability();\n // 如果在设定时间内没有变化,认为页面稳定\n overTimeId = setTimeout(() => {\n complete(false);\n }, checkTimeout);\n });\n });\n}\n"],"names":["this"],"mappings":"AAAgB,CAACA,SAAI,IAAIA,SAAI,CAAC,SAAS,KAAK,UAAU,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AACzF,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;AAChH,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,EAAE,UAAU,OAAO,EAAE,MAAM,EAAE;AAC/D,QAAQ,SAAS,SAAS,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACnG,QAAQ,SAAS,QAAQ,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACtG,QAAQ,SAAS,IAAI,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,EAAE;AACtH,QAAQ,IAAI,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,UAAU,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9E,KAAK,CAAC,CAAC;AACP","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('./dom.cjs');
|
|
4
|
+
require('../../utils.cjs');
|
|
5
|
+
|
|
6
|
+
(undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
7
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
8
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
9
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
10
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
11
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
12
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../../../../../node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/index.js"],"sourcesContent":["var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { initViewportSize, calculateVisualWeight, pageRenderComplete } from './dom';\nimport { findSteepestWeightTime, getSufspTimestamp } from './utils';\nimport { getHasRouteChanged, loggerPerformanceMetrics } from '../utils';\nexport class AutoUfspCollector {\n constructor(options) {\n this.observer = null;\n this.domChangeHistory = [];\n this.targetElement = null;\n this.customCheck = null;\n this.logger = options.logger;\n this.checkTimeout = options.checkTimeout || 20 * 1000;\n this.filterFetchByUrl =\n options.filterFetchByUrl ||\n ((url) => {\n return url.includes('/iaas/bff');\n });\n this.targetElement = options.targetElement || null;\n this.customCheck = options.customCheck || null;\n if (!this.logger) {\n throw new Error('logger is required');\n }\n this.init();\n }\n init() {\n initViewportSize();\n this.domChangeHistory = [];\n const targetElementCheckFn = (domChangeHistory) => !!document.querySelector(this.targetElement || '');\n const customCheckFn = this.targetElement ? targetElementCheckFn : this.customCheck;\n const MutationObserver = window.MutationObserver;\n this.observer = new MutationObserver(() => {\n var _a;\n calculateVisualWeight({ domChangeHistory: this.domChangeHistory });\n // 使用自定义检查方法\n if (!!customCheckFn) {\n if (customCheckFn(this.domChangeHistory)) {\n this.reportUfspByAuto({\n ufsp: performance.now(),\n sufsp: getSufspTimestamp(),\n }, true);\n (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();\n }\n }\n });\n this.observer.observe(document.body, {\n childList: true,\n subtree: true,\n attributes: true,\n characterData: true,\n });\n // 如果配置了目标元素或自定义检查方法,启动相应的检测\n if (!customCheckFn) {\n this.checkStability();\n }\n }\n sendEvent(name, duration) {\n loggerPerformanceMetrics(this.logger, name, duration, {\n collectWay: 'auto',\n });\n }\n reportUfspByAuto({ ufsp, sufsp, }, isCustomCheck = false) {\n var _a;\n const performanceTiming = performance.timing;\n if (!performanceTiming._iaas_ufsp_auto && !getHasRouteChanged()) {\n const performancePaintEntries = performance.getEntriesByType('paint');\n const fcp = ((_a = performancePaintEntries.find(item => item.name === 'first-contentful-paint')) === null || _a === void 0 ? void 0 : _a.startTime) || 0;\n if (Math.abs(fcp - ufsp) < 10000) {\n this.sendEvent('ufsp', ufsp);\n !isCustomCheck && this.sendEvent('sufsp', sufsp);\n }\n }\n if (isCustomCheck) {\n this.sendEvent('sufsp', sufsp);\n }\n performanceTiming._iaas_ufsp_auto = ufsp;\n console.log('========iaas-auto-ufsp-report========', ufsp);\n }\n checkStability() {\n return __awaiter(this, void 0, void 0, function* () {\n yield pageRenderComplete({\n checkTimeout: this.checkTimeout,\n filterFetchByUrl: this.filterFetchByUrl,\n domChangeHistory: this.domChangeHistory,\n }).then(() => {\n var _a;\n const point = findSteepestWeightTime(this.domChangeHistory);\n if (point === null || point === void 0 ? void 0 : point.timestamp) {\n this.reportUfspByAuto({\n ufsp: point.timestamp,\n sufsp: point.sufspTimestamp,\n });\n // 使用最大权重记录的时间戳进行上报\n (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();\n }\n });\n });\n }\n}\n"],"names":["this"],"mappings":";;;;;AAAgB,CAACA,SAAI,IAAIA,SAAI,CAAC,SAAS,KAAK,UAAU,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AACzF,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;AAChH,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,EAAE,UAAU,OAAO,EAAE,MAAM,EAAE;AAC/D,QAAQ,SAAS,SAAS,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACnG,QAAQ,SAAS,QAAQ,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACtG,QAAQ,SAAS,IAAI,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,EAAE;AACtH,QAAQ,IAAI,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,UAAU,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9E,KAAK,CAAC,CAAC;AACP;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import './dom.js';
|
|
2
|
+
import '../../utils.js';
|
|
3
|
+
|
|
4
|
+
(undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/index.js"],"sourcesContent":["var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { initViewportSize, calculateVisualWeight, pageRenderComplete } from './dom';\nimport { findSteepestWeightTime, getSufspTimestamp } from './utils';\nimport { getHasRouteChanged, loggerPerformanceMetrics } from '../utils';\nexport class AutoUfspCollector {\n constructor(options) {\n this.observer = null;\n this.domChangeHistory = [];\n this.targetElement = null;\n this.customCheck = null;\n this.logger = options.logger;\n this.checkTimeout = options.checkTimeout || 20 * 1000;\n this.filterFetchByUrl =\n options.filterFetchByUrl ||\n ((url) => {\n return url.includes('/iaas/bff');\n });\n this.targetElement = options.targetElement || null;\n this.customCheck = options.customCheck || null;\n if (!this.logger) {\n throw new Error('logger is required');\n }\n this.init();\n }\n init() {\n initViewportSize();\n this.domChangeHistory = [];\n const targetElementCheckFn = (domChangeHistory) => !!document.querySelector(this.targetElement || '');\n const customCheckFn = this.targetElement ? targetElementCheckFn : this.customCheck;\n const MutationObserver = window.MutationObserver;\n this.observer = new MutationObserver(() => {\n var _a;\n calculateVisualWeight({ domChangeHistory: this.domChangeHistory });\n // 使用自定义检查方法\n if (!!customCheckFn) {\n if (customCheckFn(this.domChangeHistory)) {\n this.reportUfspByAuto({\n ufsp: performance.now(),\n sufsp: getSufspTimestamp(),\n }, true);\n (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();\n }\n }\n });\n this.observer.observe(document.body, {\n childList: true,\n subtree: true,\n attributes: true,\n characterData: true,\n });\n // 如果配置了目标元素或自定义检查方法,启动相应的检测\n if (!customCheckFn) {\n this.checkStability();\n }\n }\n sendEvent(name, duration) {\n loggerPerformanceMetrics(this.logger, name, duration, {\n collectWay: 'auto',\n });\n }\n reportUfspByAuto({ ufsp, sufsp, }, isCustomCheck = false) {\n var _a;\n const performanceTiming = performance.timing;\n if (!performanceTiming._iaas_ufsp_auto && !getHasRouteChanged()) {\n const performancePaintEntries = performance.getEntriesByType('paint');\n const fcp = ((_a = performancePaintEntries.find(item => item.name === 'first-contentful-paint')) === null || _a === void 0 ? void 0 : _a.startTime) || 0;\n if (Math.abs(fcp - ufsp) < 10000) {\n this.sendEvent('ufsp', ufsp);\n !isCustomCheck && this.sendEvent('sufsp', sufsp);\n }\n }\n if (isCustomCheck) {\n this.sendEvent('sufsp', sufsp);\n }\n performanceTiming._iaas_ufsp_auto = ufsp;\n console.log('========iaas-auto-ufsp-report========', ufsp);\n }\n checkStability() {\n return __awaiter(this, void 0, void 0, function* () {\n yield pageRenderComplete({\n checkTimeout: this.checkTimeout,\n filterFetchByUrl: this.filterFetchByUrl,\n domChangeHistory: this.domChangeHistory,\n }).then(() => {\n var _a;\n const point = findSteepestWeightTime(this.domChangeHistory);\n if (point === null || point === void 0 ? void 0 : point.timestamp) {\n this.reportUfspByAuto({\n ufsp: point.timestamp,\n sufsp: point.sufspTimestamp,\n });\n // 使用最大权重记录的时间戳进行上报\n (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();\n }\n });\n });\n }\n}\n"],"names":["this"],"mappings":";;;AAAgB,CAACA,SAAI,IAAIA,SAAI,CAAC,SAAS,KAAK,UAAU,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AACzF,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;AAChH,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,EAAE,UAAU,OAAO,EAAE,MAAM,EAAE;AAC/D,QAAQ,SAAS,SAAS,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACnG,QAAQ,SAAS,QAAQ,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACtG,QAAQ,SAAS,IAAI,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,EAAE;AACtH,QAAQ,IAAI,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,UAAU,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9E,KAAK,CAAC,CAAC;AACP","x_google_ignoreList":[0]}
|
package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.cjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('./autoUfspCollect/index.cjs');
|
|
4
|
+
require('../utils.cjs');
|
|
5
|
+
require('./ufspAndSufsp.cjs');
|
|
6
|
+
var utils = require('./utils.cjs');
|
|
7
|
+
|
|
8
|
+
utils.initRouteChangeListener();
|
|
9
|
+
|
|
10
|
+
exports.initRouteChangeListener = utils.initRouteChangeListener;
|
|
11
|
+
//# sourceMappingURL=index.cjs.map
|
package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../../../../node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.js"],"sourcesContent":["import { AutoUfspCollector } from './autoUfspCollect';\nimport { reportDomPerformance } from './dom';\nimport reportUfspAndSufsp, { markSufspStart, markSufspEnd } from './ufspAndSufsp';\nimport { loggerPerformanceMetrics, initRouteChangeListener } from './utils';\ninitRouteChangeListener();\nexport { reportDomPerformance, reportUfspAndSufsp, AutoUfspCollector, markSufspStart, markSufspEnd, loggerPerformanceMetrics, initRouteChangeListener, };\n"],"names":["initRouteChangeListener"],"mappings":";;;;;;;AAIAA,6BAAuB,EAAE;;;;","x_google_ignoreList":[0]}
|
package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.js"],"sourcesContent":["import { AutoUfspCollector } from './autoUfspCollect';\nimport { reportDomPerformance } from './dom';\nimport reportUfspAndSufsp, { markSufspStart, markSufspEnd } from './ufspAndSufsp';\nimport { loggerPerformanceMetrics, initRouteChangeListener } from './utils';\ninitRouteChangeListener();\nexport { reportDomPerformance, reportUfspAndSufsp, AutoUfspCollector, markSufspStart, markSufspEnd, loggerPerformanceMetrics, initRouteChangeListener, };\n"],"names":[],"mappings":";;;;;AAIA,uBAAuB,EAAE;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('../utils.cjs');
|
|
4
|
+
|
|
5
|
+
(undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
7
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
8
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
9
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
10
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
11
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=ufspAndSufsp.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ufspAndSufsp.cjs","sources":["../../../../../../../../node_modules/@byted/iaas-monitor/lib/performanceMetrics/ufspAndSufsp.js"],"sourcesContent":["var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { getHasRouteChanged, loggerPerformanceMetrics } from './utils';\nconst markSufspStartKey = 'IaaSBaseSpaRouteChangeStart';\nconst markSufspEndKey = 'IaaSBaseSpaRouteChangeEnd';\nexport const markSufspStart = () => {\n performance.mark(markSufspStartKey);\n};\nexport const markSufspEnd = () => {\n performance.mark(markSufspEndKey);\n};\n/**\n * 上报用户首屏耗时\n */\nfunction reportUfspAndSufsp(logger) {\n return __awaiter(this, void 0, void 0, function* () {\n var _a, _b;\n if (!logger) {\n return;\n }\n const sendReport = (name, duration) => {\n loggerPerformanceMetrics(logger, name, duration, {\n collectWay: 'custom',\n });\n };\n const performanceTiming = performance.timing;\n yield Promise.resolve();\n if (!performanceTiming._iaas_ufsp && !getHasRouteChanged()) {\n const duration = Math.floor(performance.now());\n const performancePaintEntries = performance.getEntriesByType('paint');\n const fcp = ((_a = performancePaintEntries.find(item => item.name === 'first-contentful-paint')) === null || _a === void 0 ? void 0 : _a.startTime) || 0;\n // 引入fcp进行判断,避免有的页面没有上报 ufsp 导致ufsp数值不正确\n if (Math.abs(fcp - duration) < 10000 && duration > 0 && duration < 50000) {\n sendReport('ufsp', duration);\n performanceTiming._iaas_ufsp = duration;\n }\n }\n try {\n performance.mark(markSufspEndKey);\n performance.measure('sufsp', markSufspStartKey, markSufspEndKey);\n const duration = Math.floor((_b = performance.getEntriesByName('sufsp')[0]) === null || _b === void 0 ? void 0 : _b.duration);\n sendReport('sufsp', duration);\n performance.clearMarks(markSufspEndKey);\n performance.clearMeasures('sufsp');\n // eslint-disable-next-line @cloud-infra/meta/log-catch\n }\n catch (_c) {\n // 防止在 measure 时 没有 spaNavigationStart\n }\n });\n}\nexport default reportUfspAndSufsp;\n"],"names":["this"],"mappings":";;;;AAAgB,CAACA,SAAI,IAAIA,SAAI,CAAC,SAAS,KAAK,UAAU,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AACzF,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;AAChH,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,EAAE,UAAU,OAAO,EAAE,MAAM,EAAE;AAC/D,QAAQ,SAAS,SAAS,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACnG,QAAQ,SAAS,QAAQ,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACtG,QAAQ,SAAS,IAAI,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,EAAE;AACtH,QAAQ,IAAI,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,UAAU,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9E,KAAK,CAAC,CAAC;AACP;;","x_google_ignoreList":[0]}
|
package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/ufspAndSufsp.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import '../utils.js';
|
|
2
|
+
|
|
3
|
+
(undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
7
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
8
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
9
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=ufspAndSufsp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ufspAndSufsp.js","sources":["../../../../../../../../node_modules/@byted/iaas-monitor/lib/performanceMetrics/ufspAndSufsp.js"],"sourcesContent":["var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { getHasRouteChanged, loggerPerformanceMetrics } from './utils';\nconst markSufspStartKey = 'IaaSBaseSpaRouteChangeStart';\nconst markSufspEndKey = 'IaaSBaseSpaRouteChangeEnd';\nexport const markSufspStart = () => {\n performance.mark(markSufspStartKey);\n};\nexport const markSufspEnd = () => {\n performance.mark(markSufspEndKey);\n};\n/**\n * 上报用户首屏耗时\n */\nfunction reportUfspAndSufsp(logger) {\n return __awaiter(this, void 0, void 0, function* () {\n var _a, _b;\n if (!logger) {\n return;\n }\n const sendReport = (name, duration) => {\n loggerPerformanceMetrics(logger, name, duration, {\n collectWay: 'custom',\n });\n };\n const performanceTiming = performance.timing;\n yield Promise.resolve();\n if (!performanceTiming._iaas_ufsp && !getHasRouteChanged()) {\n const duration = Math.floor(performance.now());\n const performancePaintEntries = performance.getEntriesByType('paint');\n const fcp = ((_a = performancePaintEntries.find(item => item.name === 'first-contentful-paint')) === null || _a === void 0 ? void 0 : _a.startTime) || 0;\n // 引入fcp进行判断,避免有的页面没有上报 ufsp 导致ufsp数值不正确\n if (Math.abs(fcp - duration) < 10000 && duration > 0 && duration < 50000) {\n sendReport('ufsp', duration);\n performanceTiming._iaas_ufsp = duration;\n }\n }\n try {\n performance.mark(markSufspEndKey);\n performance.measure('sufsp', markSufspStartKey, markSufspEndKey);\n const duration = Math.floor((_b = performance.getEntriesByName('sufsp')[0]) === null || _b === void 0 ? void 0 : _b.duration);\n sendReport('sufsp', duration);\n performance.clearMarks(markSufspEndKey);\n performance.clearMeasures('sufsp');\n // eslint-disable-next-line @cloud-infra/meta/log-catch\n }\n catch (_c) {\n // 防止在 measure 时 没有 spaNavigationStart\n }\n });\n}\nexport default reportUfspAndSufsp;\n"],"names":["this"],"mappings":";;AAAgB,CAACA,SAAI,IAAIA,SAAI,CAAC,SAAS,KAAK,UAAU,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AACzF,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;AAChH,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,EAAE,UAAU,OAAO,EAAE,MAAM,EAAE;AAC/D,QAAQ,SAAS,SAAS,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACnG,QAAQ,SAAS,QAAQ,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACtG,QAAQ,SAAS,IAAI,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,EAAE;AACtH,QAAQ,IAAI,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,UAAU,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9E,KAAK,CAAC,CAAC;AACP","x_google_ignoreList":[0]}
|
package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.cjs
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var utils = require('../utils.cjs');
|
|
4
|
+
|
|
5
|
+
const hasRouteChangedKey = '__iaas_monitor_has_route_changed';
|
|
6
|
+
const lastPathnameKey = '__iaas_monitor_last_pathname';
|
|
7
|
+
let timer = null;
|
|
8
|
+
// 监听路由变化
|
|
9
|
+
const initRouteChangeListener = () => {
|
|
10
|
+
if (window[hasRouteChangedKey]) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
const handleRouteChange = () => {
|
|
14
|
+
if (timer) {
|
|
15
|
+
clearTimeout(timer);
|
|
16
|
+
}
|
|
17
|
+
// 路由稳定后才算
|
|
18
|
+
timer = setTimeout(() => {
|
|
19
|
+
const pathname = utils.extractPid(window.location.href);
|
|
20
|
+
if (window[lastPathnameKey] !== pathname) {
|
|
21
|
+
window[hasRouteChangedKey] = true;
|
|
22
|
+
window[lastPathnameKey] = pathname;
|
|
23
|
+
window.removeEventListener('popstate', handleRouteChange);
|
|
24
|
+
}
|
|
25
|
+
}, 2000);
|
|
26
|
+
};
|
|
27
|
+
window.addEventListener('popstate', handleRouteChange);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
exports.initRouteChangeListener = initRouteChangeListener;
|
|
31
|
+
//# sourceMappingURL=utils.cjs.map
|
package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.cjs","sources":["../../../../../../../../node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.js"],"sourcesContent":["import { getReportCommonCategories, extractPid } from '../utils';\n/**\n * 上报性能指标, 使用双报,上报自定义事件与自定义性能指标。当前业务消费使用自定义事件消费\n * @param logger slardar 实例\n * @param name 指标名称\n * @param duration 指标值\n * @param extra 额外参数\n */\nexport function loggerPerformanceMetrics(logger, name, duration, extra = {}) {\n const commonCategories = getReportCommonCategories();\n const categories = Object.assign(Object.assign({}, extra), commonCategories);\n logger('sendEvent', {\n name: name,\n metrics: {\n duration,\n },\n categories: categories,\n });\n logger('sendCustomPerfMetric', {\n name: name,\n value: duration,\n extra: categories,\n });\n}\nconst hasRouteChangedKey = '__iaas_monitor_has_route_changed';\nconst lastPathnameKey = '__iaas_monitor_last_pathname';\nlet timer = null;\nlet initStartTime = 0;\n// 监听路由变化\nexport const initRouteChangeListener = () => {\n initStartTime = Date.now();\n if (window[hasRouteChangedKey]) {\n return;\n }\n const handleRouteChange = () => {\n if (timer) {\n clearTimeout(timer);\n }\n // 路由稳定后才算\n timer = setTimeout(() => {\n const pathname = extractPid(window.location.href);\n if (window[lastPathnameKey] !== pathname) {\n window[hasRouteChangedKey] = true;\n window[lastPathnameKey] = pathname;\n window.removeEventListener('popstate', handleRouteChange);\n }\n }, 2000);\n };\n window.addEventListener('popstate', handleRouteChange);\n};\nexport const getHasRouteChanged = () => {\n return !!window[hasRouteChangedKey];\n};\n"],"names":["extractPid"],"mappings":";;;;AAwBA,MAAM,kBAAkB,GAAG,kCAAkC,CAAC;AAC9D,MAAM,eAAe,GAAG,8BAA8B,CAAC;AACvD,IAAI,KAAK,GAAG,IAAI,CAAC;AAEjB;AACY,MAAC,uBAAuB,GAAG,MAAM;AAE7C,IAAI,IAAI,MAAM,CAAC,kBAAkB,CAAC,EAAE;AACpC,QAAQ,OAAO;AACf,KAAK;AACL,IAAI,MAAM,iBAAiB,GAAG,MAAM;AACpC,QAAQ,IAAI,KAAK,EAAE;AACnB,YAAY,YAAY,CAAC,KAAK,CAAC,CAAC;AAChC,SAAS;AACT;AACA,QAAQ,KAAK,GAAG,UAAU,CAAC,MAAM;AACjC,YAAY,MAAM,QAAQ,GAAGA,gBAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC9D,YAAY,IAAI,MAAM,CAAC,eAAe,CAAC,KAAK,QAAQ,EAAE;AACtD,gBAAgB,MAAM,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC;AAClD,gBAAgB,MAAM,CAAC,eAAe,CAAC,GAAG,QAAQ,CAAC;AACnD,gBAAgB,MAAM,CAAC,mBAAmB,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;AAC1E,aAAa;AACb,SAAS,EAAE,IAAI,CAAC,CAAC;AACjB,KAAK,CAAC;AACN,IAAI,MAAM,CAAC,gBAAgB,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;AAC3D;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { extractPid } from '../utils.js';
|
|
2
|
+
|
|
3
|
+
const hasRouteChangedKey = '__iaas_monitor_has_route_changed';
|
|
4
|
+
const lastPathnameKey = '__iaas_monitor_last_pathname';
|
|
5
|
+
let timer = null;
|
|
6
|
+
// 监听路由变化
|
|
7
|
+
const initRouteChangeListener = () => {
|
|
8
|
+
if (window[hasRouteChangedKey]) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
const handleRouteChange = () => {
|
|
12
|
+
if (timer) {
|
|
13
|
+
clearTimeout(timer);
|
|
14
|
+
}
|
|
15
|
+
// 路由稳定后才算
|
|
16
|
+
timer = setTimeout(() => {
|
|
17
|
+
const pathname = extractPid(window.location.href);
|
|
18
|
+
if (window[lastPathnameKey] !== pathname) {
|
|
19
|
+
window[hasRouteChangedKey] = true;
|
|
20
|
+
window[lastPathnameKey] = pathname;
|
|
21
|
+
window.removeEventListener('popstate', handleRouteChange);
|
|
22
|
+
}
|
|
23
|
+
}, 2000);
|
|
24
|
+
};
|
|
25
|
+
window.addEventListener('popstate', handleRouteChange);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export { initRouteChangeListener };
|
|
29
|
+
//# sourceMappingURL=utils.js.map
|
package/dist/packages/chatui/node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../../../../../../node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.js"],"sourcesContent":["import { getReportCommonCategories, extractPid } from '../utils';\n/**\n * 上报性能指标, 使用双报,上报自定义事件与自定义性能指标。当前业务消费使用自定义事件消费\n * @param logger slardar 实例\n * @param name 指标名称\n * @param duration 指标值\n * @param extra 额外参数\n */\nexport function loggerPerformanceMetrics(logger, name, duration, extra = {}) {\n const commonCategories = getReportCommonCategories();\n const categories = Object.assign(Object.assign({}, extra), commonCategories);\n logger('sendEvent', {\n name: name,\n metrics: {\n duration,\n },\n categories: categories,\n });\n logger('sendCustomPerfMetric', {\n name: name,\n value: duration,\n extra: categories,\n });\n}\nconst hasRouteChangedKey = '__iaas_monitor_has_route_changed';\nconst lastPathnameKey = '__iaas_monitor_last_pathname';\nlet timer = null;\nlet initStartTime = 0;\n// 监听路由变化\nexport const initRouteChangeListener = () => {\n initStartTime = Date.now();\n if (window[hasRouteChangedKey]) {\n return;\n }\n const handleRouteChange = () => {\n if (timer) {\n clearTimeout(timer);\n }\n // 路由稳定后才算\n timer = setTimeout(() => {\n const pathname = extractPid(window.location.href);\n if (window[lastPathnameKey] !== pathname) {\n window[hasRouteChangedKey] = true;\n window[lastPathnameKey] = pathname;\n window.removeEventListener('popstate', handleRouteChange);\n }\n }, 2000);\n };\n window.addEventListener('popstate', handleRouteChange);\n};\nexport const getHasRouteChanged = () => {\n return !!window[hasRouteChangedKey];\n};\n"],"names":[],"mappings":";;AAwBA,MAAM,kBAAkB,GAAG,kCAAkC,CAAC;AAC9D,MAAM,eAAe,GAAG,8BAA8B,CAAC;AACvD,IAAI,KAAK,GAAG,IAAI,CAAC;AAEjB;AACY,MAAC,uBAAuB,GAAG,MAAM;AAE7C,IAAI,IAAI,MAAM,CAAC,kBAAkB,CAAC,EAAE;AACpC,QAAQ,OAAO;AACf,KAAK;AACL,IAAI,MAAM,iBAAiB,GAAG,MAAM;AACpC,QAAQ,IAAI,KAAK,EAAE;AACnB,YAAY,YAAY,CAAC,KAAK,CAAC,CAAC;AAChC,SAAS;AACT;AACA,QAAQ,KAAK,GAAG,UAAU,CAAC,MAAM;AACjC,YAAY,MAAM,QAAQ,GAAG,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC9D,YAAY,IAAI,MAAM,CAAC,eAAe,CAAC,KAAK,QAAQ,EAAE;AACtD,gBAAgB,MAAM,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC;AAClD,gBAAgB,MAAM,CAAC,eAAe,CAAC,GAAG,QAAQ,CAAC;AACnD,gBAAgB,MAAM,CAAC,mBAAmB,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;AAC1E,aAAa;AACb,SAAS,EAAE,IAAI,CAAC,CAAC;AACjB,KAAK,CAAC;AACN,IAAI,MAAM,CAAC,gBAAgB,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;AAC3D;;;;","x_google_ignoreList":[0]}
|