botframework-webchat-core 4.18.1 → 4.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/activity.js +3 -0
- package/boot/deprecated/activity.js +7 -0
- package/boot/deprecated/activity.mjs +5 -0
- package/boot/deprecated/graph.js +7 -0
- package/boot/deprecated/graph.mjs +5 -0
- package/boot/deprecated/internal.js +7 -0
- package/boot/deprecated/internal.mjs +5 -0
- package/dist/WebChatActivity-CYqxBG_4.d.mts +271 -0
- package/dist/WebChatActivity-CYqxBG_4.d.ts +271 -0
- package/dist/_dtsroll-chunks/B7Whm73Q-tagged.d.ts +71 -0
- package/dist/_dtsroll-chunks/C-MxR98A-botframework-webchat-core-debug-api.d.ts +135 -0
- package/dist/_dtsroll-chunks/CAquHfZK-botframework-webchat-base.utils.d.ts +17 -0
- package/dist/_dtsroll-chunks/CDVed0Q--botframework-webchat-core.org-schema.d.ts +601 -0
- package/dist/_dtsroll-chunks/vlDgTKWF-botframework-webchat-core-graph.d.ts +239 -0
- package/dist/botframework-webchat-core.activity.d.mts +23 -0
- package/dist/botframework-webchat-core.activity.d.ts +23 -0
- package/dist/botframework-webchat-core.activity.js +2 -0
- package/dist/botframework-webchat-core.activity.js.map +1 -0
- package/dist/botframework-webchat-core.activity.mjs +2 -0
- package/dist/botframework-webchat-core.activity.mjs.map +1 -0
- package/dist/botframework-webchat-core.d.mts +267 -662
- package/dist/botframework-webchat-core.d.ts +556 -0
- package/dist/botframework-webchat-core.graph.d.mts +9 -0
- package/dist/botframework-webchat-core.graph.d.ts +9 -0
- package/dist/botframework-webchat-core.graph.js +2 -0
- package/dist/botframework-webchat-core.graph.js.map +1 -0
- package/dist/botframework-webchat-core.graph.mjs +2 -0
- package/dist/botframework-webchat-core.graph.mjs.map +1 -0
- package/dist/botframework-webchat-core.internal.d.mts +61 -0
- package/dist/botframework-webchat-core.internal.d.ts +61 -0
- package/dist/botframework-webchat-core.internal.js +2 -0
- package/dist/botframework-webchat-core.internal.js.map +1 -0
- package/dist/botframework-webchat-core.internal.mjs +2 -0
- package/dist/botframework-webchat-core.internal.mjs.map +1 -0
- package/dist/botframework-webchat-core.js +2 -0
- package/dist/botframework-webchat-core.js.map +1 -0
- package/dist/botframework-webchat-core.json-ld.d.mts +2 -0
- package/dist/botframework-webchat-core.json-ld.d.ts +2 -0
- package/dist/botframework-webchat-core.json-ld.js +2 -0
- package/dist/botframework-webchat-core.json-ld.js.map +1 -0
- package/dist/botframework-webchat-core.json-ld.mjs +2 -0
- package/dist/botframework-webchat-core.json-ld.mjs.map +1 -0
- package/dist/botframework-webchat-core.mjs +1 -2
- package/dist/botframework-webchat-core.mjs.map +1 -1
- package/dist/botframework-webchat-core.org-schema.d.mts +2 -0
- package/dist/botframework-webchat-core.org-schema.d.ts +2 -0
- package/dist/botframework-webchat-core.org-schema.js +2 -0
- package/dist/botframework-webchat-core.org-schema.js.map +1 -0
- package/dist/botframework-webchat-core.org-schema.mjs +2 -0
- package/dist/botframework-webchat-core.org-schema.mjs.map +1 -0
- package/dist/chunk-A4GEFYZJ.mjs +2 -0
- package/dist/chunk-A4GEFYZJ.mjs.map +1 -0
- package/dist/chunk-HZWWJL43.mjs +2 -0
- package/dist/chunk-HZWWJL43.mjs.map +1 -0
- package/dist/chunk-ICNZKQJW.mjs +2 -0
- package/dist/chunk-ICNZKQJW.mjs.map +1 -0
- package/dist/chunk-K6E6QQMQ.js +2 -0
- package/dist/chunk-K6E6QQMQ.js.map +1 -0
- package/dist/chunk-KPT5FBH2.mjs +2 -0
- package/dist/chunk-KPT5FBH2.mjs.map +1 -0
- package/dist/chunk-LO5BZSVE.js +2 -0
- package/dist/chunk-LO5BZSVE.js.map +1 -0
- package/dist/chunk-LP2X2JTR.js +2 -0
- package/dist/chunk-LP2X2JTR.js.map +1 -0
- package/dist/chunk-RUERYYZO.js +2 -0
- package/dist/chunk-RUERYYZO.js.map +1 -0
- package/dist/chunk-XOE3AOSM.js +2 -0
- package/dist/chunk-XOE3AOSM.js.map +1 -0
- package/dist/chunk-Y6ZDNVRT.mjs +2 -0
- package/dist/chunk-Y6ZDNVRT.mjs.map +1 -0
- package/{lib/createStore.d.ts → dist/createStore-CcvouBrW.d.mts} +29 -7
- package/dist/createStore-CcvouBrW.d.ts +65 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -1
- package/graph.js +3 -0
- package/internal.js +3 -0
- package/json-ld.js +3 -0
- package/org-schema.js +3 -0
- package/package.json +147 -73
- package/src/__tests__/activityFromBot.spec.js +2 -0
- package/src/__tests__/addMetaTag.spec.js +8 -0
- package/src/__tests__/addMetaTag.spec.mjs +8 -0
- package/src/__tests__/connectSaga.spec.js +2 -0
- package/src/__tests__/deleteKey.spec.js +2 -0
- package/src/__tests__/detectSlowConnectionSaga.spec.js +3 -1
- package/src/__tests__/observeOnce.spec.js +2 -0
- package/src/__tests__/speakableActivity.spec.js +2 -0
- package/src/__tests__/uniqueID.spec.js +2 -0
- package/src/actions/clearSuggestedActions.ts +20 -0
- package/src/actions/{connect.js → connect.ts} +9 -1
- package/src/actions/muteVoiceRecording.ts +17 -0
- package/src/actions/postVoiceActivity.ts +21 -0
- package/src/actions/registerActionSink.ts +29 -0
- package/src/actions/registerVoiceHandler.ts +24 -0
- package/src/actions/{sendEvent.js → sendEvent.ts} +1 -1
- package/src/actions/{sendMessageBack.js → sendMessageBack.ts} +1 -1
- package/src/actions/{sendPostBack.js → sendPostBack.ts} +1 -1
- package/src/actions/{setDictateInterims.js → setDictateInterims.ts} +1 -1
- package/src/actions/{setDictateState.js → setDictateState.ts} +1 -1
- package/src/actions/{setLanguage.js → setLanguage.ts} +1 -1
- package/src/actions/{setSendBox.js → setSendBox.ts} +1 -1
- package/src/actions/{setSendTimeout.js → setSendTimeout.ts} +1 -1
- package/src/actions/setSendTypingIndicator.ts +1 -1
- package/src/actions/setSuggestedActions.ts +35 -0
- package/src/actions/setVoiceState.ts +21 -0
- package/src/actions/startVoiceRecording.ts +17 -0
- package/src/actions/stopVoiceRecording.ts +17 -0
- package/src/actions/{submitSendBox.js → submitSendBox.ts} +1 -1
- package/src/actions/unmuteVoiceRecording.ts +17 -0
- package/src/actions/unregisterActionSink.ts +29 -0
- package/src/actions/unregisterVoiceHandler.ts +19 -0
- package/src/boot/activity.ts +19 -0
- package/src/boot/graph.ts +18 -0
- package/src/boot/internal.ts +11 -0
- package/src/boot/json-ld.ts +6 -0
- package/src/boot/org-schema.ts +29 -0
- package/src/buildInfo.ts +9 -0
- package/src/constants/{ActivityClientState.js → ActivityClientState.ts} +3 -3
- package/src/constants/DictateState.ts +10 -0
- package/src/createPromiseQueue.js +8 -6
- package/src/createReducer.ts +28 -20
- package/src/createSagas.ts +6 -3
- package/src/createStore.ts +26 -10
- package/src/env.d.ts +12 -0
- package/src/graph/createGraphFromStore.ts +121 -0
- package/src/index.ts +62 -45
- package/src/internal/StoreDebugAPIRegistry.ts +4 -0
- package/src/internal/actions/setRawState.ts +48 -0
- package/src/internal/types/suggestedActions.ts +11 -0
- package/src/internal/types/suggestedActionsOriginActivity.ts +16 -0
- package/src/reducers/activities/combineActivitiesReducer.ts +58 -0
- package/src/reducers/activities/createGroupedActivitiesReducer.ts +297 -0
- package/src/reducers/activities/patchActivity.ts +37 -0
- package/src/reducers/activities/sort/deleteActivityByLocalId.activity.spec.ts +144 -0
- package/src/reducers/activities/sort/deleteActivityByLocalId.howTo.spec.ts +148 -0
- package/src/reducers/activities/sort/deleteActivityByLocalId.howToWithLivestream.spec.ts +248 -0
- package/src/reducers/activities/sort/deleteActivityByLocalId.livestream.spec.ts +156 -0
- package/src/reducers/activities/sort/deleteActivityByLocalId.ts +177 -0
- package/src/reducers/activities/sort/private/computePartListTimestamp.ts +9 -0
- package/src/reducers/activities/sort/private/computeSortedActivities.ts +51 -0
- package/src/reducers/activities/sort/private/getLogicalTimestamp.spec.ts +49 -0
- package/src/reducers/activities/sort/private/getLogicalTimestamp.ts +33 -0
- package/src/reducers/activities/sort/private/getPartGroupingMetadataMap.spec.ts +92 -0
- package/src/reducers/activities/sort/private/getPartGroupingMetadataMap.ts +37 -0
- package/src/reducers/activities/sort/private/insertSorted.spec.ts +106 -0
- package/src/reducers/activities/sort/private/insertSorted.ts +18 -0
- package/src/reducers/activities/sort/property/LocalId.ts +60 -0
- package/src/reducers/activities/sort/property/Position.ts +39 -0
- package/src/reducers/activities/sort/property/ReceivedAt.ts +45 -0
- package/src/reducers/activities/sort/property/SendStatus.ts +51 -0
- package/src/reducers/activities/sort/queryLocalIdByActivityId.ts +6 -0
- package/src/reducers/activities/sort/queryLocalIdByClientActivityId.ts +6 -0
- package/src/reducers/activities/sort/types.ts +80 -0
- package/src/reducers/activities/sort/updateActivityChannelData.ts +101 -0
- package/src/reducers/activities/sort/updateSendState.ts +22 -0
- package/src/reducers/activities/sort/upsert.activity.spec.ts +500 -0
- package/src/reducers/activities/sort/upsert.howTo.spec.ts +368 -0
- package/src/reducers/activities/sort/upsert.howToWithLivestream.spec.ts +384 -0
- package/src/reducers/activities/sort/upsert.livestream.spec.ts +418 -0
- package/src/reducers/activities/sort/upsert.ts +498 -0
- package/src/reducers/activities/tsconfig.json +4 -0
- package/src/reducers/createNotificationsReducer.ts +4 -4
- package/src/reducers/suggestedActions.ts +21 -0
- package/src/reducers/suggestedActionsOriginActivity.ts +24 -0
- package/src/reducers/voiceActivity.ts +102 -0
- package/src/sagas/actionSinkSaga.ts +39 -0
- package/src/sagas/observeActivitySaga.ts +51 -1
- package/src/sagas/postActivitySaga.ts +17 -10
- package/src/sagas/postVoiceActivitySaga.ts +76 -0
- package/src/sagas/queueIncomingActivitySaga.ts +10 -4
- package/src/sagas/sendMessageToPostActivitySaga.ts +4 -1
- package/src/sagas/speakActivityAndStartDictateOnIncomingActivityFromOthersSaga.js +10 -4
- package/src/sagas/startDictateOnSpeakCompleteSaga.js +3 -3
- package/src/sagas/startSpeakActivityOnPostActivitySaga.js +15 -5
- package/src/sagas/stopDictateOnCardActionSaga.js +11 -3
- package/src/sagas/stopSpeakingActivityOnInputSaga.js +22 -4
- package/src/selectors/combineSelectors.ts +1 -1
- package/src/tsconfig.json +3 -15
- package/src/types/StoreDebugAPI.ts +25 -0
- package/src/types/WebChatActivity.ts +31 -14
- package/src/types/external/DirectLineActivity.ts +1 -1
- package/src/types/external/Observable.ts +4 -1
- package/src/types/internal/GlobalScopeClock.ts +10 -10
- package/src/types/internal/ReduxState.ts +2 -0
- package/src/types/internal/WebChatOutgoingActivity.ts +1 -1
- package/src/utils/dateToLocaleISOString.chatham.spec.js +1 -2
- package/src/utils/dateToLocaleISOString.japan.spec.js +1 -2
- package/src/utils/dateToLocaleISOString.newfoundland.spec.js +1 -2
- package/src/utils/dateToLocaleISOString.pacific.spec.js +1 -2
- package/src/utils/dateToLocaleISOString.utc.spec.js +1 -3
- package/src/utils/deleteKey.ts +1 -1
- package/src/utils/getActivityLivestreamingMetadata.spec.ts +297 -0
- package/src/utils/getActivityLivestreamingMetadata.ts +197 -0
- package/src/utils/getOrgSchemaMessage.spec.ts +4 -1
- package/src/utils/getOrgSchemaMessage.ts +16 -16
- package/src/utils/onErrorResumeNext.ts +1 -1
- package/src/utils/voiceActivity/getVoiceActivityRole.spec.ts +150 -0
- package/src/utils/voiceActivity/getVoiceActivityRole.ts +16 -0
- package/src/utils/voiceActivity/getVoiceActivityText.spec.ts +100 -0
- package/src/utils/voiceActivity/getVoiceActivityText.ts +11 -0
- package/src/utils/voiceActivity/isVoiceActivity.spec.ts +202 -0
- package/src/utils/voiceActivity/isVoiceActivity.ts +21 -0
- package/src/utils/voiceActivity/isVoiceTranscriptActivity.spec.ts +224 -0
- package/src/utils/voiceActivity/isVoiceTranscriptActivity.ts +24 -0
- package/dist/botframework-webchat-core.mjs.LEGAL.txt +0 -0
- package/lib/actions/clearSuggestedActions.js +0 -15
- package/lib/actions/connect.js +0 -33
- package/lib/actions/connectionStatusUpdate.js +0 -20
- package/lib/actions/deleteActivity.d.ts +0 -13
- package/lib/actions/deleteActivity.d.ts.map +0 -1
- package/lib/actions/deleteActivity.js +0 -19
- package/lib/actions/disconnect.js +0 -21
- package/lib/actions/dismissNotification.d.ts +0 -12
- package/lib/actions/dismissNotification.d.ts.map +0 -1
- package/lib/actions/dismissNotification.js +0 -19
- package/lib/actions/emitTypingIndicator.js +0 -15
- package/lib/actions/incomingActivity.d.ts +0 -14
- package/lib/actions/incomingActivity.d.ts.map +0 -1
- package/lib/actions/incomingActivity.js +0 -19
- package/lib/actions/markActivity.d.ts +0 -17
- package/lib/actions/markActivity.d.ts.map +0 -1
- package/lib/actions/markActivity.js +0 -22
- package/lib/actions/postActivity.d.ts +0 -64
- package/lib/actions/postActivity.d.ts.map +0 -1
- package/lib/actions/postActivity.js +0 -31
- package/lib/actions/queueIncomingActivity.js +0 -18
- package/lib/actions/reconnect.js +0 -17
- package/lib/actions/sagaError.d.ts +0 -8
- package/lib/actions/sagaError.d.ts.map +0 -1
- package/lib/actions/sagaError.js +0 -15
- package/lib/actions/sendEvent.js +0 -19
- package/lib/actions/sendFiles.d.ts +0 -19
- package/lib/actions/sendFiles.d.ts.map +0 -1
- package/lib/actions/sendFiles.js +0 -20
- package/lib/actions/sendMessage.d.ts +0 -19
- package/lib/actions/sendMessage.d.ts.map +0 -1
- package/lib/actions/sendMessage.js +0 -24
- package/lib/actions/sendMessageBack.js +0 -20
- package/lib/actions/sendPostBack.js +0 -18
- package/lib/actions/setClockSkewAdjustment.js +0 -12
- package/lib/actions/setDictateInterims.js +0 -18
- package/lib/actions/setDictateState.js +0 -18
- package/lib/actions/setLanguage.js +0 -18
- package/lib/actions/setNotification.d.ts +0 -10
- package/lib/actions/setNotification.d.ts.map +0 -1
- package/lib/actions/setNotification.js +0 -37
- package/lib/actions/setReferenceGrammarID.js +0 -18
- package/lib/actions/setSendBox.js +0 -18
- package/lib/actions/setSendBoxAttachments.d.ts +0 -13
- package/lib/actions/setSendBoxAttachments.d.ts.map +0 -1
- package/lib/actions/setSendBoxAttachments.js +0 -18
- package/lib/actions/setSendTimeout.js +0 -18
- package/lib/actions/setSendTypingIndicator.d.ts +0 -11
- package/lib/actions/setSendTypingIndicator.d.ts.map +0 -1
- package/lib/actions/setSendTypingIndicator.js +0 -18
- package/lib/actions/setSuggestedActions.js +0 -20
- package/lib/actions/startDictate.js +0 -15
- package/lib/actions/startSpeakingActivity.js +0 -15
- package/lib/actions/stopDictate.js +0 -15
- package/lib/actions/stopSpeakingActivity.js +0 -15
- package/lib/actions/submitSendBox.js +0 -22
- package/lib/actions/updateConnectionStatus.js +0 -18
- package/lib/constants/ActivityClientState.js +0 -16
- package/lib/constants/DictateState.js +0 -17
- package/lib/createPromiseQueue.js +0 -30
- package/lib/createReducer.d.ts +0 -60
- package/lib/createReducer.d.ts.map +0 -1
- package/lib/createReducer.js +0 -45
- package/lib/createSagas.d.ts +0 -8
- package/lib/createSagas.d.ts.map +0 -1
- package/lib/createSagas.js +0 -112
- package/lib/createStore.d.ts.map +0 -1
- package/lib/createStore.js +0 -131
- package/lib/definitions/activityFromBot.js +0 -11
- package/lib/definitions/speakableActivity.js +0 -10
- package/lib/definitions/speakingActivity.js +0 -13
- package/lib/index.d.ts +0 -76
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -309
- package/lib/reducers/connectivityStatus.js +0 -49
- package/lib/reducers/createActivitiesReducer.d.ts +0 -12
- package/lib/reducers/createActivitiesReducer.d.ts.map +0 -1
- package/lib/reducers/createActivitiesReducer.js +0 -267
- package/lib/reducers/createInternalReducer.d.ts +0 -10
- package/lib/reducers/createInternalReducer.d.ts.map +0 -1
- package/lib/reducers/createInternalReducer.js +0 -19
- package/lib/reducers/createNotificationsReducer.d.ts +0 -11
- package/lib/reducers/createNotificationsReducer.d.ts.map +0 -1
- package/lib/reducers/createNotificationsReducer.js +0 -55
- package/lib/reducers/createTypingReducer.d.ts +0 -14
- package/lib/reducers/createTypingReducer.d.ts.map +0 -1
- package/lib/reducers/createTypingReducer.js +0 -50
- package/lib/reducers/dictateInterims.js +0 -23
- package/lib/reducers/dictateState.js +0 -38
- package/lib/reducers/language.js +0 -23
- package/lib/reducers/private/findBeforeAfter.d.ts +0 -4
- package/lib/reducers/private/findBeforeAfter.d.ts.map +0 -1
- package/lib/reducers/private/findBeforeAfter.js +0 -24
- package/lib/reducers/readyState.js +0 -23
- package/lib/reducers/referenceGrammarID.js +0 -23
- package/lib/reducers/sendBoxAttachments.d.ts +0 -9
- package/lib/reducers/sendBoxAttachments.d.ts.map +0 -1
- package/lib/reducers/sendBoxAttachments.js +0 -23
- package/lib/reducers/sendBoxValue.js +0 -23
- package/lib/reducers/sendTimeout.js +0 -23
- package/lib/reducers/sendTypingIndicator.js +0 -23
- package/lib/reducers/shouldSpeakIncomingActivity.js +0 -25
- package/lib/reducers/suggestedActions.js +0 -32
- package/lib/sagas/clearSuggestedActionsOnPostActivitySaga.js +0 -62
- package/lib/sagas/connectSaga.js +0 -445
- package/lib/sagas/connectionStatusToNotificationSaga.js +0 -107
- package/lib/sagas/connectionStatusUpdateSaga.js +0 -63
- package/lib/sagas/detectSlowConnectionSaga.d.ts +0 -5
- package/lib/sagas/detectSlowConnectionSaga.d.ts.map +0 -1
- package/lib/sagas/detectSlowConnectionSaga.js +0 -50
- package/lib/sagas/effects/forever.js +0 -19
- package/lib/sagas/effects/forkPut.js +0 -51
- package/lib/sagas/effects/observeEach.js +0 -45
- package/lib/sagas/effects/observeOnce.d.ts +0 -3
- package/lib/sagas/effects/observeOnce.d.ts.map +0 -1
- package/lib/sagas/effects/observeOnce.js +0 -42
- package/lib/sagas/effects/whileConnected.d.ts +0 -7
- package/lib/sagas/effects/whileConnected.d.ts.map +0 -1
- package/lib/sagas/effects/whileConnected.js +0 -55
- package/lib/sagas/emitTypingIndicatorToPostActivitySaga.js +0 -63
- package/lib/sagas/markAllAsSpokenOnStopSpeakActivitySaga.js +0 -78
- package/lib/sagas/observeActivitySaga.d.ts +0 -2
- package/lib/sagas/observeActivitySaga.d.ts.map +0 -1
- package/lib/sagas/observeActivitySaga.js +0 -117
- package/lib/sagas/postActivitySaga.d.ts +0 -3
- package/lib/sagas/postActivitySaga.d.ts.map +0 -1
- package/lib/sagas/postActivitySaga.js +0 -264
- package/lib/sagas/queueIncomingActivitySaga.d.ts +0 -3
- package/lib/sagas/queueIncomingActivitySaga.d.ts.map +0 -1
- package/lib/sagas/queueIncomingActivitySaga.js +0 -197
- package/lib/sagas/sendEventToPostActivitySaga.js +0 -68
- package/lib/sagas/sendFilesToPostActivitySaga.js +0 -85
- package/lib/sagas/sendMessageBackToPostActivitySaga.js +0 -70
- package/lib/sagas/sendMessageToPostActivitySaga.d.ts +0 -2
- package/lib/sagas/sendMessageToPostActivitySaga.d.ts.map +0 -1
- package/lib/sagas/sendMessageToPostActivitySaga.js +0 -91
- package/lib/sagas/sendPostBackToPostActivitySaga.js +0 -69
- package/lib/sagas/sendTypingIndicatorOnSetSendBoxSaga.d.ts +0 -3
- package/lib/sagas/sendTypingIndicatorOnSetSendBoxSaga.d.ts.map +0 -1
- package/lib/sagas/sendTypingIndicatorOnSetSendBoxSaga.js +0 -145
- package/lib/sagas/speakActivityAndStartDictateOnIncomingActivityFromOthersSaga.js +0 -106
- package/lib/sagas/startDictateOnSpeakCompleteSaga.js +0 -65
- package/lib/sagas/startSpeakActivityOnPostActivitySaga.js +0 -62
- package/lib/sagas/stopDictateOnCardActionSaga.js +0 -65
- package/lib/sagas/stopSpeakingActivityOnInputSaga.js +0 -68
- package/lib/sagas/submitSendBoxSaga.js +0 -84
- package/lib/selectors/activities.d.ts +0 -9
- package/lib/selectors/activities.d.ts.map +0 -1
- package/lib/selectors/activities.js +0 -33
- package/lib/selectors/combineSelectors.js +0 -31
- package/lib/selectors/dictateState.js +0 -12
- package/lib/selectors/language.d.ts +0 -4
- package/lib/selectors/language.d.ts.map +0 -1
- package/lib/selectors/language.js +0 -12
- package/lib/selectors/notifications.js +0 -13
- package/lib/selectors/sendBoxAttachments.js +0 -11
- package/lib/selectors/sendBoxValue.js +0 -12
- package/lib/selectors/sendTimeout.d.ts +0 -4
- package/lib/selectors/sendTimeout.d.ts.map +0 -1
- package/lib/selectors/sendTimeout.js +0 -12
- package/lib/selectors/sendTypingIndicator.d.ts +0 -4
- package/lib/selectors/sendTypingIndicator.d.ts.map +0 -1
- package/lib/selectors/sendTypingIndicator.js +0 -12
- package/lib/selectors/shouldSpeakIncomingActivity.js +0 -12
- package/lib/types/AnyAnd.d.ts +0 -2
- package/lib/types/AnyAnd.d.ts.map +0 -1
- package/lib/types/AnyAnd.js +0 -6
- package/lib/types/GlobalScopePonyfill.d.ts +0 -8
- package/lib/types/GlobalScopePonyfill.d.ts.map +0 -1
- package/lib/types/GlobalScopePonyfill.js +0 -6
- package/lib/types/OneOrMany.d.ts +0 -3
- package/lib/types/OneOrMany.d.ts.map +0 -1
- package/lib/types/OneOrMany.js +0 -6
- package/lib/types/SendBoxAttachment.d.ts +0 -5
- package/lib/types/SendBoxAttachment.d.ts.map +0 -1
- package/lib/types/SendBoxAttachment.js +0 -6
- package/lib/types/WebChatActivity.d.ts +0 -128
- package/lib/types/WebChatActivity.d.ts.map +0 -1
- package/lib/types/WebChatActivity.js +0 -6
- package/lib/types/external/DirectLineActivity.d.ts +0 -3
- package/lib/types/external/DirectLineActivity.d.ts.map +0 -1
- package/lib/types/external/DirectLineActivity.js +0 -6
- package/lib/types/external/DirectLineAnimationCard.d.ts +0 -6
- package/lib/types/external/DirectLineAnimationCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineAnimationCard.js +0 -6
- package/lib/types/external/DirectLineAttachment.d.ts +0 -9
- package/lib/types/external/DirectLineAttachment.d.ts.map +0 -1
- package/lib/types/external/DirectLineAttachment.js +0 -6
- package/lib/types/external/DirectLineAudioCard.d.ts +0 -6
- package/lib/types/external/DirectLineAudioCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineAudioCard.js +0 -6
- package/lib/types/external/DirectLineBasicCardEssence.d.ts +0 -12
- package/lib/types/external/DirectLineBasicCardEssence.d.ts.map +0 -1
- package/lib/types/external/DirectLineBasicCardEssence.js +0 -6
- package/lib/types/external/DirectLineCardAction.d.ts +0 -110
- package/lib/types/external/DirectLineCardAction.d.ts.map +0 -1
- package/lib/types/external/DirectLineCardAction.js +0 -6
- package/lib/types/external/DirectLineCardImage.d.ts +0 -8
- package/lib/types/external/DirectLineCardImage.d.ts.map +0 -1
- package/lib/types/external/DirectLineCardImage.js +0 -6
- package/lib/types/external/DirectLineHeroCard.d.ts +0 -6
- package/lib/types/external/DirectLineHeroCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineHeroCard.js +0 -6
- package/lib/types/external/DirectLineJSBotConnection.d.ts +0 -3
- package/lib/types/external/DirectLineJSBotConnection.d.ts.map +0 -1
- package/lib/types/external/DirectLineJSBotConnection.js +0 -6
- package/lib/types/external/DirectLineMediaCardEssence.d.ts +0 -21
- package/lib/types/external/DirectLineMediaCardEssence.d.ts.map +0 -1
- package/lib/types/external/DirectLineMediaCardEssence.js +0 -6
- package/lib/types/external/DirectLineOAuthCard.d.ts +0 -8
- package/lib/types/external/DirectLineOAuthCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineOAuthCard.js +0 -6
- package/lib/types/external/DirectLineReceiptCard.d.ts +0 -28
- package/lib/types/external/DirectLineReceiptCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineReceiptCard.js +0 -6
- package/lib/types/external/DirectLineSignInCard.d.ts +0 -8
- package/lib/types/external/DirectLineSignInCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineSignInCard.js +0 -6
- package/lib/types/external/DirectLineSuggestedAction.d.ts +0 -7
- package/lib/types/external/DirectLineSuggestedAction.d.ts.map +0 -1
- package/lib/types/external/DirectLineSuggestedAction.js +0 -6
- package/lib/types/external/DirectLineThumbnailCard.d.ts +0 -6
- package/lib/types/external/DirectLineThumbnailCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineThumbnailCard.js +0 -6
- package/lib/types/external/DirectLineVideoCard.d.ts +0 -6
- package/lib/types/external/DirectLineVideoCard.d.ts.map +0 -1
- package/lib/types/external/DirectLineVideoCard.js +0 -6
- package/lib/types/external/Observable.d.ts +0 -49
- package/lib/types/external/Observable.d.ts.map +0 -1
- package/lib/types/external/Observable.js +0 -6
- package/lib/types/external/OrgSchema/Action.d.ts +0 -29
- package/lib/types/external/OrgSchema/Action.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/Action.js +0 -38
- package/lib/types/external/OrgSchema/Claim.d.ts +0 -35
- package/lib/types/external/OrgSchema/Claim.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/Claim.js +0 -41
- package/lib/types/external/OrgSchema/CreativeWork.d.ts +0 -57
- package/lib/types/external/OrgSchema/CreativeWork.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/CreativeWork.js +0 -52
- package/lib/types/external/OrgSchema/DefinedTerm.d.ts +0 -26
- package/lib/types/external/OrgSchema/DefinedTerm.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/DefinedTerm.js +0 -33
- package/lib/types/external/OrgSchema/Project.d.ts +0 -20
- package/lib/types/external/OrgSchema/Project.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/Project.js +0 -32
- package/lib/types/external/OrgSchema/Thing.d.ts +0 -53
- package/lib/types/external/OrgSchema/Thing.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/Thing.js +0 -54
- package/lib/types/external/OrgSchema/VoteAction.d.ts +0 -22
- package/lib/types/external/OrgSchema/VoteAction.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/VoteAction.js +0 -34
- package/lib/types/external/OrgSchema/private/orgSchemaProperties.d.ts +0 -3
- package/lib/types/external/OrgSchema/private/orgSchemaProperties.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/private/orgSchemaProperties.js +0 -22
- package/lib/types/external/OrgSchema/private/orgSchemaProperty.d.ts +0 -4
- package/lib/types/external/OrgSchema/private/orgSchemaProperty.d.ts.map +0 -1
- package/lib/types/external/OrgSchema/private/orgSchemaProperty.js +0 -15
- package/lib/types/internal/GlobalScopeClock.d.ts +0 -15
- package/lib/types/internal/GlobalScopeClock.d.ts.map +0 -1
- package/lib/types/internal/GlobalScopeClock.js +0 -6
- package/lib/types/internal/Notification.d.ts +0 -10
- package/lib/types/internal/Notification.d.ts.map +0 -1
- package/lib/types/internal/Notification.js +0 -6
- package/lib/types/internal/ReduxState.d.ts +0 -19
- package/lib/types/internal/ReduxState.d.ts.map +0 -1
- package/lib/types/internal/ReduxState.js +0 -6
- package/lib/types/internal/SendStatus.d.ts +0 -7
- package/lib/types/internal/SendStatus.d.ts.map +0 -1
- package/lib/types/internal/SendStatus.js +0 -19
- package/lib/types/internal/WebChatOutgoingActivity.d.ts +0 -49
- package/lib/types/internal/WebChatOutgoingActivity.d.ts.map +0 -1
- package/lib/types/internal/WebChatOutgoingActivity.js +0 -6
- package/lib/utils/dateToLocaleISOString.d.ts +0 -2
- package/lib/utils/dateToLocaleISOString.d.ts.map +0 -1
- package/lib/utils/dateToLocaleISOString.js +0 -52
- package/lib/utils/deleteKey.d.ts +0 -2
- package/lib/utils/deleteKey.d.ts.map +0 -1
- package/lib/utils/deleteKey.js +0 -30
- package/lib/utils/getOrgSchemaMessage.d.ts +0 -4
- package/lib/utils/getOrgSchemaMessage.d.ts.map +0 -1
- package/lib/utils/getOrgSchemaMessage.js +0 -21
- package/lib/utils/isForbiddenPropertyName.d.ts +0 -2
- package/lib/utils/isForbiddenPropertyName.d.ts.map +0 -1
- package/lib/utils/isForbiddenPropertyName.js +0 -16
- package/lib/utils/onErrorResumeNext.d.ts +0 -3
- package/lib/utils/onErrorResumeNext.d.ts.map +0 -1
- package/lib/utils/onErrorResumeNext.js +0 -19
- package/lib/utils/once.d.ts +0 -2
- package/lib/utils/once.d.ts.map +0 -1
- package/lib/utils/once.js +0 -16
- package/lib/utils/singleToArray.d.ts +0 -2
- package/lib/utils/singleToArray.d.ts.map +0 -1
- package/lib/utils/singleToArray.js +0 -10
- package/lib/utils/sleep.d.ts +0 -3
- package/lib/utils/sleep.d.ts.map +0 -1
- package/lib/utils/sleep.js +0 -12
- package/lib/utils/uniqueID.d.ts +0 -2
- package/lib/utils/uniqueID.d.ts.map +0 -1
- package/lib/utils/uniqueID.js +0 -14
- package/lib/utils/warnOnce.d.ts +0 -2
- package/lib/utils/warnOnce.d.ts.map +0 -1
- package/lib/utils/warnOnce.js +0 -14
- package/src/actions/clearSuggestedActions.js +0 -9
- package/src/actions/setSuggestedActions.js +0 -12
- package/src/constants/DictateState.js +0 -7
- package/src/reducers/createActivitiesReducer.ts +0 -304
- package/src/reducers/private/findBeforeAfter.spec.ts +0 -90
- package/src/reducers/private/findBeforeAfter.ts +0 -30
- package/src/reducers/suggestedActions.js +0 -23
- package/src/types/OneOrMany.ts +0 -3
- package/src/types/external/OrgSchema/Action.spec.ts +0 -35
- package/src/types/external/OrgSchema/Action.ts +0 -52
- package/src/types/external/OrgSchema/Claim.spec.ts +0 -45
- package/src/types/external/OrgSchema/Claim.ts +0 -48
- package/src/types/external/OrgSchema/CreativeWork.parseCreativeWork.spec.ts +0 -51
- package/src/types/external/OrgSchema/CreativeWork.ts +0 -83
- package/src/types/external/OrgSchema/DefinedTerm.ts +0 -37
- package/src/types/external/OrgSchema/Project.parseProject.spec.ts +0 -17
- package/src/types/external/OrgSchema/Project.ts +0 -29
- package/src/types/external/OrgSchema/Thing.parseThing.spec.ts +0 -54
- package/src/types/external/OrgSchema/Thing.ts +0 -94
- package/src/types/external/OrgSchema/VoteAction.spec.ts +0 -35
- package/src/types/external/OrgSchema/VoteAction.ts +0 -31
- package/src/types/external/OrgSchema/private/orgSchemaProperties.spec.ts +0 -41
- package/src/types/external/OrgSchema/private/orgSchemaProperties.ts +0 -23
- package/src/types/external/OrgSchema/private/orgSchemaProperty.spec.ts +0 -21
- package/src/types/external/OrgSchema/private/orgSchemaProperty.ts +0 -6
- package/src/utils/isForbiddenPropertyName.spec.js +0 -6
- package/src/utils/isForbiddenPropertyName.ts +0 -33
- package/src/utils/singleToArray.ts +0 -3
- package/src/utils/warnOnce.ts +0 -5
- /package/src/actions/{connectionStatusUpdate.js → connectionStatusUpdate.ts} +0 -0
- /package/src/actions/{disconnect.js → disconnect.ts} +0 -0
- /package/src/actions/{emitTypingIndicator.js → emitTypingIndicator.ts} +0 -0
- /package/src/actions/{queueIncomingActivity.js → queueIncomingActivity.ts} +0 -0
- /package/src/actions/{reconnect.js → reconnect.ts} +0 -0
- /package/src/actions/{startDictate.js → startDictate.ts} +0 -0
- /package/src/actions/{startSpeakingActivity.js → startSpeakingActivity.ts} +0 -0
- /package/src/actions/{stopDictate.js → stopDictate.ts} +0 -0
- /package/src/actions/{stopSpeakingActivity.js → stopSpeakingActivity.ts} +0 -0
- /package/src/actions/{updateConnectionStatus.js → updateConnectionStatus.ts} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkXOE3AOSMjs = require('./chunk-XOE3AOSM.js');var _valibot = require('valibot');var _uuid = require('uuid');var _iterfest = require('iter-fest');var _differencejs = require('core-js-pure/features/set/difference.js'); var _differencejs2 = _interopRequireDefault(_differencejs);var Mr=Object.create,Be=Object.defineProperty,Cr=Object.getOwnPropertyDescriptor,Lr=Object.getOwnPropertyNames,_r=Object.getPrototypeOf,zr=Object.prototype.hasOwnProperty,c=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports),kr=(o,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Lr(e))!zr.call(o,n)&&n!==t&&Be(o,n,{get:()=>e[n],enumerable:!(r=Cr(e,n))||r.enumerable});return o},Je=(o,e,t)=>(t=o!=null?Mr(_r(o)):{},kr(e||!o||!o.__esModule?Be(t,"default",{value:o,enumerable:!0}):t,o));function V(){return _valibot.transform.call(void 0, o=>Object.freeze(o))}var We=_valibot.pipe.call(void 0, _valibot.string.call(void 0, "Blank node identifier must be a string"),_valibot.startsWith.call(void 0, "_:","Blank node identifier must starts with _:")),ki=_valibot.is.bind(We),J= exports.a =_valibot.union.call(void 0, [We,_valibot.pipe.call(void 0, _valibot.string.call(void 0, "Identifier must be a string"),_valibot.url.call(void 0, "Identifier must be an IRI"))],"@id is required and must be an IRI or blank node identifier"),Fi=_valibot.is.bind(J),Z=_valibot.strictObject.call(void 0, {"@type":_valibot.literal.call(void 0, "@json"),"@value":_valibot.unknown.call(void 0, )},"JSON literal must only have @type and @value"),Bi=_valibot.is.bind(Z),nt=_valibot.union.call(void 0, [_valibot.boolean.call(void 0, ),_valibot.number.call(void 0, ),_valibot.string.call(void 0, )],"Only boolean, number, and string are allowed for JSON-LD literal"),Wi=_valibot.is.bind(nt),W=_valibot.pipe.call(void 0, _valibot.strictObject.call(void 0, {"@id":J,"@type":_valibot.optional.call(void 0, _valibot.union.call(void 0, [_valibot.string.call(void 0, ),_valibot.pipe.call(void 0, _valibot.array.call(void 0, _valibot.string.call(void 0, )),_valibot.minLength.call(void 0, 1))],"@type must be string or array of string with at least 1 element"))},"NodeReference must only have @id and optional @type"),V()),hn=_valibot.is.bind(void 0,W),Ge= exports.b =_valibot.pipe.call(void 0, _valibot.objectWithRest.call(void 0, {"@context":_valibot.optional.call(void 0, _valibot.string.call(void 0, "@context must be an IRI")),"@id":J,"@type":_valibot.pipe.call(void 0, _valibot.array.call(void 0, _valibot.string.call(void 0, "element in @type must be a string"),"@type must be array of string"),V(),_valibot.minLength.call(void 0, 1,"@type must have at least one element")),hasPart:_valibot.optional.call(void 0, _valibot.pipe.call(void 0, _valibot.array.call(void 0, W,"hasPart must be array of NodeReference"),V(),_valibot.minLength.call(void 0, 1,"hasPart, if present, must have at least one element"))),isPartOf:_valibot.optional.call(void 0, _valibot.pipe.call(void 0, _valibot.array.call(void 0, W,"isPartOf must be array of NodeReference"),V(),_valibot.minLength.call(void 0, 1,"isPartOf, if present, must have at least one element")))},_valibot.pipe.call(void 0, _valibot.array.call(void 0, _valibot.union.call(void 0, [Z,nt,W],"Properties of slant node must be array of JSON literal, literal or node reference")),_valibot.minLength.call(void 0, 1,"Properties of slant node must be an array with at least 1 element"))),V()),yn=_valibot.union.call(void 0, [_valibot.array.call(void 0, _valibot.union.call(void 0, [Z,nt,W])),Z,nt,W,_valibot.null_.call(void 0, )],"Only JSON literal, literal, node reference or null can be parsed into slant node"),bn=_valibot.pipe.call(void 0, _valibot.looseObject.call(void 0, {}),_valibot.transform.call(void 0, o=>{let e=new Map,t,r;for(let[n,i]of Object.entries(o))switch(n){case"@context":t=_valibot.parse.call(void 0, _valibot.string.call(void 0, "@context must be an IRI"),i);break;case"@id":r=_valibot.parse.call(void 0, J,i);break;default:{let a=_valibot.parse.call(void 0, yn,i),u=Object.freeze(Array.isArray(a)?a.slice(0):a===null||typeof a>"u"?[]:[a]);u.length&&e.set(n,u);break}}return _valibot.parse.call(void 0, Ge,Object.fromEntries([...t?[["@context",t]]:[],["@id",r],...Array.from(e)]))}));function mn(o){return _valibot.parse.call(void 0, bn,o)}var gn=mn,Zt=_valibot.pipe.call(void 0, _valibot.object.call(void 0, {"@id":J,"@type":_valibot.pipe.call(void 0, _valibot.array.call(void 0, _valibot.string.call(void 0, )),_valibot.includes.call(void 0, "urn:microsoft:webchat:direct-line-activity")),identifier:_valibot.optional.call(void 0, _valibot.array.call(void 0, J)),position:_valibot.tuple.call(void 0, [_valibot.number.call(void 0, )]),sender:_valibot.optional.call(void 0, _valibot.tuple.call(void 0, [W])),"urn:microsoft:webchat:direct-line-activity:raw-json":_valibot.tuple.call(void 0, [Z]),"urn:microsoft:webchat:direct-line-activity:type":_valibot.tuple.call(void 0, [_valibot.string.call(void 0, )])}),_valibot.readonly.call(void 0, )),qi=_valibot.is.bind(void 0,Zt),_=c((o,e)=>{"use strict";var t=function(r){return r&&r.Math===Math&&r};e.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof global=="object"&&global)||t(typeof o=="object"&&o)||(function(){return this})()||Function("return this")()}),H=c((o,e)=>{"use strict";e.exports=function(t){try{return!!t()}catch (e2){return!0}}}),Dt=c((o,e)=>{"use strict";var t=H();e.exports=!t(function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")})}),$e=c((o,e)=>{"use strict";var t=Dt(),r=Function.prototype,n=r.apply,i=r.call;e.exports=typeof Reflect=="object"&&Reflect.apply||(t?i.bind(n):function(){return i.apply(n,arguments)})}),G=c((o,e)=>{"use strict";var t=Dt(),r=Function.prototype,n=r.call,i=t&&r.bind.bind(n,n);e.exports=t?i:function(a){return function(){return n.apply(a,arguments)}}}),Mt=c((o,e)=>{"use strict";var t=G(),r=t({}.toString),n=t("".slice);e.exports=function(i){return n(r(i),8,-1)}}),qe=c((o,e)=>{"use strict";var t=Mt(),r=G();e.exports=function(n){if(t(n)==="Function")return r(n)}}),k=c((o,e)=>{"use strict";var t=typeof document=="object"&&document.all;e.exports=typeof t>"u"&&t!==void 0?function(r){return typeof r=="function"||r===t}:function(r){return typeof r=="function"}}),tt=c((o,e)=>{"use strict";var t=H();e.exports=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}),$=c((o,e)=>{"use strict";var t=Dt(),r=Function.prototype.call;e.exports=t?r.bind(r):function(){return r.apply(r,arguments)}}),Pn=c(o=>{"use strict";var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);o.f=r?function(n){var i=t(this,n);return!!i&&i.enumerable}:e}),te=c((o,e)=>{"use strict";e.exports=function(t,r){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:r}}}),En=c((o,e)=>{"use strict";var t=G(),r=H(),n=Mt(),i=Object,a=t("".split);e.exports=r(function(){return!i("z").propertyIsEnumerable(0)})?function(u){return n(u)==="String"?a(u,""):i(u)}:i}),Ct=c((o,e)=>{"use strict";e.exports=function(t){return t==null}}),ee=c((o,e)=>{"use strict";var t=Ct(),r=TypeError;e.exports=function(n){if(t(n))throw new r("Can't call method on "+n);return n}}),Ve=c((o,e)=>{"use strict";var t=En(),r=ee();e.exports=function(n){return t(r(n))}}),K=c((o,e)=>{"use strict";var t=k();e.exports=function(r){return typeof r=="object"?r!==null:t(r)}}),Lt=c((o,e)=>{"use strict";e.exports={}}),ot=c((o,e)=>{"use strict";var t=Lt(),r=_(),n=k(),i=function(a){return n(a)?a:void 0};e.exports=function(a,u){return arguments.length<2?i(t[a])||i(r[a]):t[a]&&t[a][u]||r[a]&&r[a][u]}}),re=c((o,e)=>{"use strict";var t=G();e.exports=t({}.isPrototypeOf)}),Ot=c((o,e)=>{"use strict";var t=_(),r=t.navigator,n=r&&r.userAgent;e.exports=n?String(n):""}),He=c((o,e)=>{"use strict";var t=_(),r=Ot(),n=t.process,i=t.Deno,a=n&&n.versions||i&&i.version,u=a&&a.v8,s,v;u&&(s=u.split("."),v=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!v&&r&&(s=r.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=r.match(/Chrome\/(\d+)/),s&&(v=+s[1]))),e.exports=v}),Ke=c((o,e)=>{"use strict";var t=He(),r=H(),n=_(),i=n.String;e.exports=!!Object.getOwnPropertySymbols&&!r(function(){var a=Symbol("symbol detection");return!i(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&t&&t<41})}),Xe=c((o,e)=>{"use strict";var t=Ke();e.exports=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),Ye=c((o,e)=>{"use strict";var t=ot(),r=k(),n=re(),i=Xe(),a=Object;e.exports=i?function(u){return typeof u=="symbol"}:function(u){var s=t("Symbol");return r(s)&&n(s.prototype,a(u))}}),_t=c((o,e)=>{"use strict";var t=String;e.exports=function(r){try{return t(r)}catch (e3){return"Object"}}}),et=c((o,e)=>{"use strict";var t=k(),r=_t(),n=TypeError;e.exports=function(i){if(t(i))return i;throw new n(r(i)+" is not a function")}}),ne=c((o,e)=>{"use strict";var t=et(),r=Ct();e.exports=function(n,i){var a=n[i];return r(a)?void 0:t(a)}}),In=c((o,e)=>{"use strict";var t=$(),r=k(),n=K(),i=TypeError;e.exports=function(a,u){var s,v;if(u==="string"&&r(s=a.toString)&&!n(v=t(s,a))||r(s=a.valueOf)&&!n(v=t(s,a))||u!=="string"&&r(s=a.toString)&&!n(v=t(s,a)))return v;throw new i("Can't convert object to primitive value")}}),jt=c((o,e)=>{"use strict";e.exports=!0}),Nn=c((o,e)=>{"use strict";var t=_(),r=Object.defineProperty;e.exports=function(n,i){try{r(t,n,{value:i,configurable:!0,writable:!0})}catch (e4){t[n]=i}return i}}),zt=c((o,e)=>{"use strict";var t=jt(),r=_(),n=Nn(),i="__core-js_shared__",a=e.exports=r[i]||n(i,{});(a.versions||(a.versions=[])).push({version:"3.49.0",mode:t?"pure":"global",copyright:"\xA9 2013\u20132025 Denis Pushkarev (zloirock.ru), 2025\u20132026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),Qe=c((o,e)=>{"use strict";var t=zt();e.exports=function(r,n){return t[r]||(t[r]=n||{})}}),Rn=c((o,e)=>{"use strict";var t=ee(),r=Object;e.exports=function(n){return r(t(n))}}),dt=c((o,e)=>{"use strict";var t=G(),r=Rn(),n=t({}.hasOwnProperty);e.exports=Object.hasOwn||function(i,a){return n(r(i),a)}}),Ze=c((o,e)=>{"use strict";var t=G(),r=0,n=Math.random(),i=t(1.1.toString);e.exports=function(a){return"Symbol("+(a===void 0?"":a)+")_"+i(++r+n,36)}}),q=c((o,e)=>{"use strict";var t=_(),r=Qe(),n=dt(),i=Ze(),a=Ke(),u=Xe(),s=t.Symbol,v=r("wks"),f=u?s.for||s:s&&s.withoutSetter||i;e.exports=function(l){return n(v,l)||(v[l]=a&&n(s,l)?s[l]:f("Symbol."+l)),v[l]}}),Tn=c((o,e)=>{"use strict";var t=$(),r=K(),n=Ye(),i=ne(),a=In(),u=q(),s=TypeError,v=u("toPrimitive");e.exports=function(f,l){if(!r(f)||n(f))return f;var y=i(f,v),p;if(y){if(l===void 0&&(l="default"),p=t(y,f,l),!r(p)||n(p))return p;throw new s("Can't convert object to primitive value")}return l===void 0&&(l="number"),a(f,l)}}),tr=c((o,e)=>{"use strict";var t=Tn(),r=Ye();e.exports=function(n){var i=t(n,"string");return r(i)?i:i+""}}),er=c((o,e)=>{"use strict";var t=_(),r=K(),n=t.document,i=r(n)&&r(n.createElement);e.exports=function(a){return i?n.createElement(a):{}}}),rr=c((o,e)=>{"use strict";var t=tt(),r=H(),n=er();e.exports=!t&&!r(function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!==7})}),An=c(o=>{"use strict";var e=tt(),t=$(),r=Pn(),n=te(),i=Ve(),a=tr(),u=dt(),s=rr(),v=Object.getOwnPropertyDescriptor;o.f=e?v:function(f,l){if(f=i(f),l=a(l),s)try{return v(f,l)}catch (e5){}if(u(f,l))return n(!t(r.f,f,l),f[l])}}),nr=c((o,e)=>{"use strict";var t=H(),r=k(),n=/#|\.prototype\./,i=function(f,l){var y=u[a(f)];return y===v?!0:y===s?!1:r(l)?t(l):!!l},a=i.normalize=function(f){return String(f).replace(n,".").toLowerCase()},u=i.data={},s=i.NATIVE="N",v=i.POLYFILL="P";e.exports=i}),kt=c((o,e)=>{"use strict";var t=qe(),r=et(),n=Dt(),i=t(t.bind);e.exports=function(a,u){return r(a),u===void 0?a:n?i(a,u):function(){return a.apply(u,arguments)}}}),Dn=c((o,e)=>{"use strict";var t=tt(),r=H();e.exports=t&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})}),ht=c((o,e)=>{"use strict";var t=K(),r=String,n=TypeError;e.exports=function(i){if(t(i))return i;throw new n(r(i)+" is not an object")}}),Ft=c(o=>{"use strict";var e=tt(),t=rr(),r=Dn(),n=ht(),i=tr(),a=TypeError,u=Object.defineProperty,s=Object.getOwnPropertyDescriptor,v="enumerable",f="configurable",l="writable";o.f=e?r?function(y,p,b){if(n(y),p=i(p),n(b),typeof y=="function"&&p==="prototype"&&"value"in b&&l in b&&!b[l]){var d=s(y,p);d&&d[l]&&(y[p]=b.value,b={configurable:f in b?b[f]:d[f],enumerable:v in b?b[v]:d[v],writable:!1})}return u(y,p,b)}:u:function(y,p,b){if(n(y),p=i(p),n(b),t)try{return u(y,p,b)}catch (e6){}if("get"in b||"set"in b)throw new a("Accessors not supported");return"value"in b&&(y[p]=b.value),y}}),Ut=c((o,e)=>{"use strict";var t=tt(),r=Ft(),n=te();e.exports=t?function(i,a,u){return r.f(i,a,n(1,u))}:function(i,a,u){return i[a]=u,i}}),rt=c((o,e)=>{"use strict";var t=_(),r=$e(),n=qe(),i=k(),a=An().f,u=nr(),s=Lt(),v=kt(),f=Ut(),l=dt();zt();var y=function(p){var b=function(d,g,m){if(this instanceof b){switch(arguments.length){case 0:return new p;case 1:return new p(d);case 2:return new p(d,g)}return new p(d,g,m)}return r(p,this,arguments)};return b.prototype=p.prototype,b};e.exports=function(p,b){var d=p.target,g=p.global,m=p.stat,x=p.proto,j=g?t:m?t[d]:t[d]&&t[d].prototype,w=g?s:s[d]||f(s,d,{})[d],O=w.prototype,E,A,T,I,D,U,M,F,z;for(I in b)E=u(g?I:d+(m?".":"#")+I,p.forced),A=!E&&j&&l(j,I),U=w[I],A&&(p.dontCallGetSet?(z=a(j,I),M=z&&z.value):M=j[I]),D=A&&M?M:b[I],!(!E&&!x&&typeof U==typeof D)&&(p.bind&&A?F=v(D,t):p.wrap&&A?F=y(D):x&&i(D)?F=n(D):F=D,(p.sham||D&&D.sham||U&&U.sham)&&f(F,"sham",!0),f(w,I,F),x&&(T=d+"Prototype",l(s,T)||f(s,T,{}),f(s[T],I,D),p.real&&O&&(E||!O[I])&&f(O,I,D)))}}),Mn=c((o,e)=>{"use strict";e.exports=function(){}}),Cn=c((o,e)=>{"use strict";var t=TypeError,r=9007199254740991;e.exports=function(n){if(n>r)throw new t("Maximum allowed index exceeded");return n}}),Ln=c((o,e)=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(n){var i=+n;return(i>0?r:t)(i)}}),oe=c((o,e)=>{"use strict";var t=Ln();e.exports=function(r){var n=+r;return n!==n||n===0?0:t(n)}}),_n=c((o,e)=>{"use strict";var t=oe(),r=Math.min;e.exports=function(n){var i=t(n);return i>0?r(i,9007199254740991):0}}),or=c((o,e)=>{"use strict";var t=_n();e.exports=function(r){return t(r.length)}}),zn=c((o,e)=>{"use strict";var t=oe(),r=Math.max,n=Math.min;e.exports=function(i,a){var u=t(i);return u<0?r(u+a,0):n(u,a)}}),kn=c((o,e)=>{"use strict";var t=tt(),r=Ft(),n=te();e.exports=function(i,a,u){t?r.f(i,a,n(0,u)):i[a]=u}}),ir=c(()=>{"use strict";var o=rt(),e=Mn(),t=Cn(),r=or(),n=zn(),i=Ve(),a=oe(),u=kn(),s=Array,v=Math.max,f=Math.min;o({target:"Array",proto:!0},{toSpliced:function(l,y){var p=i(this),b=r(p),d=n(l,b),g=arguments.length,m=0,x,j,w,O;for(g===0?x=j=0:g===1?(x=0,j=b-d):(x=g-2,j=f(v(a(y),0),b-d)),w=t(b+x-j),O=s(w);m<d;m++)u(O,m,p[m]);for(;m<d+x;m++)u(O,m,arguments[m-d+2]);for(;m<w;m++)u(O,m,p[m+j-x]);return O}}),e("toSpliced")}),Fn=c((o,e)=>{"use strict";var t=ot();e.exports=t}),Un=c((o,e)=>{"use strict";ir();var t=Fn();e.exports=t("Array","toSpliced")}),Bn=c((o,e)=>{"use strict";var t=Un();e.exports=t}),Jn=c(()=>{"use strict";ir()}),Wn=c((o,e)=>{"use strict";var t=Bn();Jn(),e.exports=t}),Gn=c((o,e)=>{"use strict";var t=Wn();e.exports=t}),$n=c((o,e)=>{"use strict";e.exports=Gn()}),ar=c((o,e)=>{"use strict";var t=_(),r=Ot(),n=Mt(),i=function(a){return r.slice(0,a.length)===a};e.exports=(function(){return i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":t.Bun&&typeof Bun.version=="string"?"BUN":t.Deno&&typeof Deno.version=="object"?"DENO":n(t.process)==="process"?"NODE":t.window&&t.document?"BROWSER":"REST"})()}),ie=c((o,e)=>{"use strict";var t=ar();e.exports=t==="NODE"}),sr=c((o,e)=>{"use strict";var t=Ut();e.exports=function(r,n,i,a){return a&&a.enumerable?r[n]=i:t(r,n,i),r}}),qn=c((o,e)=>{"use strict";var t=G(),r=et();e.exports=function(n,i,a){try{return t(r(Object.getOwnPropertyDescriptor(n,i)[a]))}catch (e7){}}}),Vn=c((o,e)=>{"use strict";var t=K();e.exports=function(r){return t(r)||r===null}}),Hn=c((o,e)=>{"use strict";var t=Vn(),r=String,n=TypeError;e.exports=function(i){if(t(i))return i;throw new n("Can't set "+r(i)+" as a prototype")}}),Kn=c((o,e)=>{"use strict";var t=qn(),r=K(),n=ee(),i=Hn();e.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var a=!1,u={},s;try{s=t(Object.prototype,"__proto__","set"),s(u,[]),a=u instanceof Array}catch (e8){}return function(v,f){return n(v),i(f),r(v)&&(a?s(v,f):v.__proto__=f),v}})():void 0)}),ae=c((o,e)=>{"use strict";var t=q(),r=t("toStringTag"),n={};n[r]="z",e.exports=String(n)==="[object z]"}),se=c((o,e)=>{"use strict";var t=ae(),r=k(),n=Mt(),i=q(),a=i("toStringTag"),u=Object,s=n((function(){return arguments})())==="Arguments",v=function(f,l){try{return f[l]}catch (e9){}};e.exports=t?n:function(f){var l,y,p;return f===void 0?"Undefined":f===null?"Null":typeof(y=v(l=u(f),a))=="string"?y:s?n(l):(p=n(l))==="Object"&&r(l.callee)?"Arguments":p}}),Xn=c((o,e)=>{"use strict";var t=ae(),r=se();e.exports=t?{}.toString:function(){return"[object "+r(this)+"]"}}),Yn=c((o,e)=>{"use strict";var t=ae(),r=Ft().f,n=Ut(),i=dt(),a=Xn(),u=q(),s=u("toStringTag");e.exports=function(v,f,l,y){var p=l?v:v&&v.prototype;p&&(i(p,s)||r(p,s,{configurable:!0,value:f}),y&&!t&&n(p,"toString",a))}}),Qn=c((o,e)=>{"use strict";var t=Ft();e.exports=function(r,n,i){return t.f(r,n,i)}}),Zn=c((o,e)=>{"use strict";var t=ot(),r=Qn(),n=q(),i=tt(),a=n("species");e.exports=function(u){var s=t(u);i&&s&&!s[a]&&r(s,a,{configurable:!0,get:function(){return this}})}}),to=c((o,e)=>{"use strict";var t=re(),r=TypeError;e.exports=function(n,i){if(t(i,n))return n;throw new r("Incorrect invocation")}}),cr=c((o,e)=>{"use strict";var t=G(),r=k(),n=zt(),i=t(Function.toString);r(n.inspectSource)||(n.inspectSource=function(a){return i(a)}),e.exports=n.inspectSource}),eo=c((o,e)=>{"use strict";var t=G(),r=H(),n=k(),i=se(),a=ot(),u=cr(),s=function(){},v=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,l=t(f.exec),y=!f.test(s),p=function(d){if(!n(d))return!1;try{return v(s,[],d),!0}catch (e10){return!1}},b=function(d){if(!n(d))return!1;switch(i(d)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return y||!!l(f,u(d))}catch (e11){return!0}};b.sham=!0,e.exports=!v||r(function(){var d;return p(p.call)||!p(Object)||!p(function(){d=!0})||d})?b:p}),ro=c((o,e)=>{"use strict";var t=eo(),r=_t(),n=TypeError;e.exports=function(i){if(t(i))return i;throw new n(r(i)+" is not a constructor")}}),no=c((o,e)=>{"use strict";var t=ht(),r=ro(),n=Ct(),i=q(),a=i("species");e.exports=function(u,s){var v=t(u).constructor,f;return v===void 0||n(f=t(v)[a])?s:r(f)}}),oo=c((o,e)=>{"use strict";var t=ot();e.exports=t("document","documentElement")}),io=c((o,e)=>{"use strict";var t=G();e.exports=t([].slice)}),ao=c((o,e)=>{"use strict";var t=TypeError;e.exports=function(r,n){if(r<n)throw new t("Not enough arguments");return r}}),ur=c((o,e)=>{"use strict";var t=Ot();e.exports=/ipad|iphone|ipod/i.test(t)&&/applewebkit/i.test(t)}),fr=c((o,e)=>{"use strict";var t=_(),r=$e(),n=kt(),i=k(),a=dt(),u=H(),s=oo(),v=io(),f=er(),l=ao(),y=ur(),p=ie(),b=t.setImmediate,d=t.clearImmediate,g=t.process,m=t.Dispatch,x=t.Function,j=t.MessageChannel,w=t.String,O=0,E={},A="onreadystatechange",T,I,D,U;u(function(){T=t.location});var M=function(P){if(a(E,P)){var X=E[P];delete E[P],X()}},F=function(P){return function(){M(P)}},z=function(P){M(P.data)},B=function(P){t.postMessage(w(P),T.protocol+"//"+T.host)};(!b||!d)&&(b=function(P){l(arguments.length,1);var X=i(P)?P:x(P),C=v(arguments,1);return E[++O]=function(){r(X,void 0,C)},I(O),O},d=function(P){delete E[P]},p?I=function(P){g.nextTick(F(P))}:m&&m.now?I=function(P){m.now(F(P))}:j&&!y?(D=new j,U=D.port2,D.port1.onmessage=z,I=n(U.postMessage,U)):t.addEventListener&&i(t.postMessage)&&!t.importScripts&&T&&T.protocol!=="file:"&&!u(B)?(I=B,t.addEventListener("message",z,!1)):A in f("script")?I=function(P){s.appendChild(f("script"))[A]=function(){s.removeChild(this),M(P)}}:I=function(P){setTimeout(F(P),0)}),e.exports={set:b,clear:d}}),so=c((o,e)=>{"use strict";var t=_(),r=tt(),n=Object.getOwnPropertyDescriptor;e.exports=function(i){if(!r)return t[i];var a=n(t,i);return a&&a.value}}),pr=c((o,e)=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(r){var n={item:r,next:null},i=this.tail;i?i.next=n:this.head=n,this.tail=n},get:function(){var r=this.head;if(r){var n=this.head=r.next;return n===null&&(this.tail=null),r.item}}},e.exports=t}),co=c((o,e)=>{"use strict";var t=Ot();e.exports=/ipad|iphone|ipod/i.test(t)&&typeof Pebble<"u"}),uo=c((o,e)=>{"use strict";var t=Ot();e.exports=/web0s(?!.*chrome)/i.test(t)}),fo=c((o,e)=>{"use strict";var t=_(),r=so(),n=kt(),i=fr().set,a=pr(),u=ur(),s=co(),v=uo(),f=ie(),l=t.MutationObserver||t.WebKitMutationObserver,y=t.document,p=t.process,b=t.Promise,d=r("queueMicrotask"),g,m,x,j,w;d||(O=new a,E=function(){var A,T;for(f&&(A=p.domain)&&A.exit();T=O.get();)try{T()}catch(I){throw O.head&&g(),I}A&&A.enter()},!u&&!f&&!v&&l&&y?(m=!0,x=y.createTextNode(""),new l(E).observe(x,{characterData:!0}),g=function(){x.data=m=!m}):!s&&b&&b.resolve?(j=b.resolve(void 0),j.constructor=b,w=n(j.then,j),g=function(){w(E)}):f?g=function(){p.nextTick(E)}:(i=n(i,t),g=function(){i(E)}),d=function(A){O.head||g(),O.add(A)});var O,E;e.exports=d}),po=c((o,e)=>{"use strict";e.exports=function(t,r){try{arguments.length===1?console.error(t):console.error(t,r)}catch (e12){}}}),ce=c((o,e)=>{"use strict";e.exports=function(t){try{return{error:!1,value:t()}}catch(r){return{error:!0,value:r}}}}),lo=c((o,e)=>{"use strict";var t=_(),r=k(),n=t.WeakMap;e.exports=r(n)&&/native code/.test(String(n))}),vo=c((o,e)=>{"use strict";var t=Qe(),r=Ze(),n=t("keys");e.exports=function(i){return n[i]||(n[i]=r(i))}}),ho=c((o,e)=>{"use strict";e.exports={}}),yo=c((o,e)=>{"use strict";var t=lo(),r=_(),n=K(),i=Ut(),a=dt(),u=zt(),s=vo(),v=ho(),f="Object already initialized",l=r.TypeError,y=r.WeakMap,p,b,d,g=function(w){return d(w)?b(w):p(w,{})},m=function(w){return function(O){var E;if(!n(O)||(E=b(O)).type!==w)throw new l("Incompatible receiver, "+w+" required");return E}};t||u.state?(x=u.state||(u.state=new y),x.get=x.get,x.has=x.has,x.set=x.set,p=function(w,O){if(x.has(w))throw new l(f);return O.facade=w,x.set(w,O),O},b=function(w){return x.get(w)||{}},d=function(w){return x.has(w)}):(j=s("state"),v[j]=!0,p=function(w,O){if(a(w,j))throw new l(f);return O.facade=w,i(w,j,O),O},b=function(w){return a(w,j)?w[j]:{}},d=function(w){return a(w,j)});var x,j;e.exports={set:p,get:b,has:d,enforce:g,getterFor:m}}),St=c((o,e)=>{"use strict";var t=_();e.exports=t.Promise}),Pt=c((o,e)=>{"use strict";var t=_(),r=St(),n=k(),i=nr(),a=cr(),u=q(),s=ar(),v=jt(),f=He(),l=r&&r.prototype,y=u("species"),p=!1,b=n(t.PromiseRejectionEvent),d=i("Promise",function(){var g=a(r),m=g!==String(r);if(!m&&f===66||v&&!(l.catch&&l.finally))return!0;if(!f||f<51||!/native code/.test(g)){var x=new r(function(O){O(1)}),j=function(O){O(function(){},function(){})},w=x.constructor={};if(w[y]=j,p=x.then(function(){})instanceof j,!p)return!0}return!m&&(s==="BROWSER"||s==="DENO")&&!b});e.exports={CONSTRUCTOR:d,REJECTION_EVENT:b,SUBCLASSING:p}}),yt=c((o,e)=>{"use strict";var t=et(),r=TypeError,n=function(i){var a,u;this.promise=new i(function(s,v){if(a!==void 0||u!==void 0)throw new r("Bad Promise constructor");a=s,u=v}),this.resolve=t(a),this.reject=t(u)};e.exports.f=function(i){return new n(i)}}),bo=c(()=>{"use strict";var o=rt(),e=jt(),t=ie(),r=_(),n=Lt(),i=$(),a=sr(),u=Kn(),s=Yn(),v=Zn(),f=et(),l=k(),y=K(),p=to(),b=no(),d=fr().set,g=fo(),m=po(),x=ce(),j=pr(),w=yo(),O=St(),E=Pt(),A=yt(),T="Promise",I=E.CONSTRUCTOR,D=E.REJECTION_EVENT,U=E.SUBCLASSING,M=w.getterFor(T),F=w.set,z=O&&O.prototype,B=O,P=z,X=r.TypeError,C=r.document,it=r.process,Bt=A.f,Er=Bt,Ir=!!(C&&C.createEvent&&r.dispatchEvent),pe="unhandledrejection",Nr="rejectionhandled",le=0,ve=1,Rr=2,Jt=1,de=2,Et,he,ye,be,me=function(h){var S;return y(h)&&l(S=h.then)?S:!1},ge=function(h,S){var N=S.value,R=S.state===ve,L=R?h.ok:h.fail,It=h.resolve,Nt=h.reject,ct=h.domain,ut,je,Se;try{L?(R||(S.rejection===de&&Ar(S),S.rejection=Jt),L===!0?ut=N:(ct&&ct.enter(),ut=L(N),ct&&(ct.exit(),Se=!0)),ut===h.promise?Nt(new X("Promise-chain cycle")):(je=me(ut))?i(je,ut,It,Nt):It(ut)):Nt(N)}catch(Dr){ct&&!Se&&ct.exit(),Nt(Dr)}},we=function(h,S){h.notified||(h.notified=!0,g(function(){for(var N=h.reactions,R;R=N.get();)ge(R,h);h.notified=!1,S&&!h.rejection&&Tr(h)}))},xe=function(h,S,N){var R,L;Ir?(R=C.createEvent("Event"),R.promise=S,R.reason=N,R.initEvent(h,!1,!0),r.dispatchEvent(R)):R={promise:S,reason:N},!D&&(L=r["on"+h])?L(R):h===pe&&m("Unhandled promise rejection",N)},Tr=function(h){i(d,r,function(){var S=h.facade,N=h.value,R=Oe(h),L;if(R&&(L=x(function(){t?it.emit("unhandledRejection",N,S):xe(pe,S,N)}),h.rejection=t||Oe(h)?de:Jt,L.error))throw L.value})},Oe=function(h){return h.rejection!==Jt&&!h.parent},Ar=function(h){i(d,r,function(){var S=h.facade;t?it.emit("rejectionHandled",S):xe(Nr,S,h.value)})},at=function(h,S,N){return function(R){h(S,R,N)}},st=function(h,S,N){h.done||(h.done=!0,N&&(h=N),h.value=S,h.state=Rr,we(h,!0))},Wt=function(h,S,N){if(!h.done){h.done=!0,N&&(h=N);try{if(h.facade===S)throw new X("Promise can't be resolved itself");var R=me(S);R?g(function(){var L={done:!1};try{i(R,S,at(Wt,L,h),at(st,L,h))}catch(It){st(L,It,h)}}):(h.value=S,h.state=ve,we(h,!1))}catch(L){st({done:!1},L,h)}}};if(I&&(B=function(h){p(this,P),f(h),i(Et,this);var S=M(this);try{h(at(Wt,S),at(st,S))}catch(N){st(S,N)}},P=B.prototype,Et=function(h){F(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new j,rejection:!1,state:le,value:null})},Et.prototype=a(P,"then",function(h,S){var N=M(this),R=Bt(b(this,B));return N.parent=!0,R.ok=l(h)?h:!0,R.fail=l(S)&&S,R.domain=t?it.domain:void 0,N.state===le?N.reactions.add(R):g(function(){ge(R,N)}),R.promise}),he=function(){var h=new Et,S=M(h);this.promise=h,this.resolve=at(Wt,S),this.reject=at(st,S)},A.f=Bt=function(h){return h===B||h===ye?new he(h):Er(h)},!e&&l(O)&&z!==Object.prototype)){be=z.then,U||a(z,"then",function(h,S){var N=this;return new B(function(R,L){i(be,N,R,L)}).then(h,S)},{unsafe:!0});try{delete z.constructor}catch (e13){}u&&u(z,P)}o({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:B}),ye=n.Promise,s(B,T,!1,!0),v(T)}),lr=c((o,e)=>{"use strict";e.exports={}}),mo=c((o,e)=>{"use strict";var t=q(),r=lr(),n=t("iterator"),i=Array.prototype;e.exports=function(a){return a!==void 0&&(r.Array===a||i[n]===a)}}),vr=c((o,e)=>{"use strict";var t=se(),r=ne(),n=Ct(),i=lr(),a=q(),u=a("iterator");e.exports=function(s){if(!n(s))return r(s,u)||r(s,"@@iterator")||i[t(s)]}}),go=c((o,e)=>{"use strict";var t=$(),r=et(),n=ht(),i=_t(),a=vr(),u=TypeError;e.exports=function(s,v){var f=arguments.length<2?a(s):v;if(r(f))return n(t(f,s));throw new u(i(s)+" is not iterable")}}),wo=c((o,e)=>{"use strict";var t=$(),r=ht(),n=ne();e.exports=function(i,a,u){var s,v;r(i);try{if(s=n(i,"return"),!s){if(a==="throw")throw u;return u}s=t(s,i)}catch(f){v=!0,s=f}if(a==="throw")throw u;if(v)throw s;return r(s),u}}),dr=c((o,e)=>{"use strict";var t=kt(),r=$(),n=ht(),i=_t(),a=mo(),u=or(),s=re(),v=go(),f=vr(),l=wo(),y=TypeError,p=function(d,g){this.stopped=d,this.result=g},b=p.prototype;e.exports=function(d,g,m){var x=m&&m.that,j=!!(m&&m.AS_ENTRIES),w=!!(m&&m.IS_RECORD),O=!!(m&&m.IS_ITERATOR),E=!!(m&&m.INTERRUPTED),A=t(g,x),T,I,D,U,M,F,z,B=function(C){var it=T;return T=void 0,it&&l(it,"normal"),new p(!0,C)},P=function(C){return j?(n(C),E?A(C[0],C[1],B):A(C[0],C[1])):E?A(C,B):A(C)};if(w)T=d.iterator;else if(O)T=d;else{if(I=f(d),!I)throw new y(i(d)+" is not iterable");if(a(I)){for(D=0,U=u(d);U>D;D++)if(M=P(d[D]),M&&s(b,M))return M;return new p(!1)}T=v(d,I)}for(F=w?d.next:T.next;!(z=r(F,T)).done;){var X=z.value;try{M=P(X)}catch(C){if(T)l(T,"throw",C);else throw C}if(typeof M=="object"&&M&&s(b,M))return M}return new p(!1)}}),xo=c((o,e)=>{"use strict";var t=q(),r=t("iterator"),n=!1;try{i=0,a={next:function(){return{done:!!i++}},return:function(){n=!0}},a[r]=function(){return this},Array.from(a,function(){throw 2})}catch (e14){}var i,a;e.exports=function(u,s){try{if(!s&&!n)return!1}catch (e15){return!1}var v=!1;try{var f={};f[r]=function(){return{next:function(){return{done:v=!0}}}},u(f)}catch (e16){}return v}}),hr=c((o,e)=>{"use strict";var t=St(),r=xo(),n=Pt().CONSTRUCTOR;e.exports=n||!r(function(i){t.all(i).then(void 0,function(){})})}),Oo=c(()=>{"use strict";var o=rt(),e=$(),t=et(),r=yt(),n=ce(),i=dr(),a=hr();o({target:"Promise",stat:!0,forced:a},{all:function(u){var s=this,v=r.f(s),f=v.resolve,l=v.reject,y=n(function(){var p=t(s.resolve),b=[],d=0,g=1;i(u,function(m){var x=d++,j=!1;g++,e(p,s,m).then(function(w){j||(j=!0,b[x]=w,--g||f(b))},l)}),--g||f(b)});return y.error&&l(y.value),v.promise}})}),jo=c(()=>{"use strict";var o=rt(),e=jt(),t=Pt().CONSTRUCTOR,r=St(),n=ot(),i=k(),a=sr(),u=r&&r.prototype;o({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(v){return this.then(void 0,v)}}),!e&&i(r)&&(s=n("Promise").prototype.catch,u.catch!==s&&a(u,"catch",s,{unsafe:!0}));var s}),So=c(()=>{"use strict";var o=rt(),e=$(),t=et(),r=yt(),n=ce(),i=dr(),a=hr();o({target:"Promise",stat:!0,forced:a},{race:function(u){var s=this,v=r.f(s),f=v.reject,l=n(function(){var y=t(s.resolve);i(u,function(p){e(y,s,p).then(v.resolve,f)})});return l.error&&f(l.value),v.promise}})}),Po=c(()=>{"use strict";var o=rt(),e=yt(),t=Pt().CONSTRUCTOR;o({target:"Promise",stat:!0,forced:t},{reject:function(r){var n=e.f(this),i=n.reject;return i(r),n.promise}})}),Eo=c((o,e)=>{"use strict";var t=ht(),r=K(),n=yt();e.exports=function(i,a){if(t(i),r(a)&&a.constructor===i)return a;var u=n.f(i),s=u.resolve;return s(a),u.promise}}),Io=c(()=>{"use strict";var o=rt(),e=ot(),t=jt(),r=St(),n=Pt().CONSTRUCTOR,i=Eo(),a=e("Promise"),u=t&&!n;o({target:"Promise",stat:!0,forced:t||n},{resolve:function(s){return i(u&&this===a?r:this,s)}})}),No=c(()=>{"use strict";bo(),Oo(),jo(),So(),Po(),Io()}),yr=c(()=>{"use strict";var o=rt(),e=yt();o({target:"Promise",stat:!0},{withResolvers:function(){var t=e.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}})}),Ro=c((o,e)=>{"use strict";No(),yr();var t=$(),r=k(),n=Lt(),i=n.Promise,a=i.withResolvers;e.exports=function(){return t(a,r(this)?this:i)}}),To=c((o,e)=>{"use strict";var t=Ro();e.exports=t}),Ao=c(()=>{"use strict";yr()}),Do=c((o,e)=>{"use strict";var t=To();Ao(),e.exports=t}),Mo=c((o,e)=>{"use strict";var t=Do();e.exports=t}),Co=c((o,e)=>{"use strict";e.exports=Mo()}),Vi=Object.freeze(Array.from(new Set([...Object.getOwnPropertyNames(Object.prototype),"prototype"]))),Lo=Object.prototype;function Ae(o){return Object.getPrototypeOf(o)===Lo}var Hi=Object.freeze([]),Ki=Je($n()),Xi=Je(Co()),$o=_valibot.union.call(void 0, [_valibot.pipe.call(void 0, _valibot.array.call(void 0, _valibot.union.call(void 0, [nt,Z,W],"Array in flat node must be literal, JSON value, or node reference")),V()),Z,nt,W,_valibot.null_.call(void 0, )],"Non-array value in flat node must be literal, JSON value, node reference, or null"),qo=_valibot.pipe.call(void 0, _valibot.objectWithRest.call(void 0, {"@context":_valibot.optional.call(void 0, _valibot.string.call(void 0, "Complex @context is not supported in our implementation")),"@id":J,"@type":_valibot.optional.call(void 0, _valibot.union.call(void 0, [_valibot.pipe.call(void 0, _valibot.array.call(void 0, _valibot.string.call(void 0, )),_valibot.minLength.call(void 0, 1),V()),_valibot.string.call(void 0, )],"@type must be string or array of string with at least 1 element"))},$o),V());function Vo(){return _uuid.v4.call(void 0, )}function Qt(o,e,t){var l;let r=_valibot.safeParse.call(void 0, nt,o);if(r.success)return r.output;let n=_valibot.safeParse.call(void 0, _valibot.pipe.call(void 0, Z,_valibot.check.call(void 0, y=>Ae(y))),o);if(n.success)return n.output;let i=_valibot.safeParse.call(void 0, W,o);if(i.success)return i.output;if(o=o,!Ae(o)||!_valibot.is.call(void 0, _valibot.object.call(void 0, {}),o)){let y=new Error(`Only literals, JSON literals, and plain object can be flattened: ${JSON.stringify(o)}`);throw y.cause={input:o},y}let a=t.get(o);if(a)return a;let u=(l=_valibot.parse.call(void 0, _valibot.optional.call(void 0, J),o&&typeof o=="object"&&"@id"in o&&o["@id"]||void 0))!=null?l:`_:${Vo()}`;e.get(u)&&console.warn(`Object [@id="${u}"] has already added to the graph.`),e.set(u,void 0);let s=new Map;for(let[y,p]of Object.entries(o)){let b;if(Array.isArray(p)){let d=[];for(let g of p)d.push(Qt(g,e,t));b=Object.freeze(d),s.set(y,b)}else typeof p<"u"&&(b=Qt(p,e,t),s.set(y,b))}s.set("@id",u);let v=_valibot.parse.call(void 0, qo,Object.fromEntries(Array.from(s))),f=_valibot.parse.call(void 0, W,Object.freeze({"@id":u}));return e.set(u,v),t.set(o,f),f}function Ho(o){_valibot.assert.call(void 0, _valibot.pipe.call(void 0, _valibot.looseObject.call(void 0, {}),_valibot.check.call(void 0, r=>!hn(r),"Node reference cannot be flattened")),o);let e=new Map,t=Qt(o,e,new Map);return{graph:Object.freeze(Array.from(e.values())),output:t}}var Ko=Ho;function Xo(o,e){let t=o["@type"];return typeof t=="string"?t===e:!!t&&t.includes(e)}var oi=_valibot.pipe.call(void 0, _valibot.intersect.call(void 0, [Zt,_valibot.object.call(void 0, {"@type":_valibot.pipe.call(void 0, _valibot.array.call(void 0, _valibot.string.call(void 0, )),_valibot.minLength.call(void 0, 1),_valibot.includes.call(void 0, "Message")),encodingFormat:_valibot.tuple.call(void 0, [_valibot.picklist.call(void 0, ["text/markdown","text/plain"])]),text:_valibot.optional.call(void 0, _valibot.tuple.call(void 0, [_valibot.string.call(void 0, )]))})]),V());function ii(...o){return e=>o.reduceRight((t,r)=>r(t),e)}function ai(...o){return e=>ii(...o.map(t=>t(e)))}var ze=_valibot.pipe.call(void 0, _valibot.map.call(void 0, J,_valibot.object.call(void 0, {"@id":J})),_valibot.check.call(void 0, o=>_iterfest.iteratorEvery.call(void 0, o.entries(),([e,t])=>e===t["@id"]),"Key returned in Map must match `@id` in value")),ke=()=>o=>e=>{_valibot.assert.call(void 0, ze,e);let t=o(Object.freeze(e));return _valibot.assert.call(void 0, ze,t),Object.freeze(t)},pt,xt,lt,vt,Ue,li=(Ue=class{constructor(o,...e){_chunkXOE3AOSMjs.d.call(void 0, this,pt,!1);_chunkXOE3AOSMjs.d.call(void 0, this,xt);_chunkXOE3AOSMjs.d.call(void 0, this,lt,Object.freeze(new Map));_chunkXOE3AOSMjs.d.call(void 0, this,vt,new Set);_chunkXOE3AOSMjs.e.call(void 0, this,xt,ai(ke,...[o,...e].flatMap(t=>[t,ke])))}act(o){if(_chunkXOE3AOSMjs.c.call(void 0, this,pt))throw new Error("Another transaction is ongoing");_chunkXOE3AOSMjs.e.call(void 0, this,pt,!0);let e;try{let t=this.getState.bind(this),r=new Map;o(Object.freeze({getState:t,upsert(...a){for(let u of a){let s=u["@id"];r.has(s)&&console.warn(`botframework-webchat: Should NOT upsert a node multiple times in a single transaction (@id = "${s}")`),r.set(s,u)}}}));let n=new Map(_chunkXOE3AOSMjs.c.call(void 0, this,lt)),i=new Set;for(let a of _chunkXOE3AOSMjs.c.call(void 0, this,xt).call(this,{getState:t})(()=>{throw new Error("At least one middleware must not fallthrough")})(Object.freeze(r)).values())n.set(a["@id"],Object.freeze({...a})),i.add(a["@id"]);i.size&&(_chunkXOE3AOSMjs.e.call(void 0, this,lt,Object.freeze(n)),e=Object.freeze({upsertedNodeIdentifiers:Object.freeze(i)}))}finally{_chunkXOE3AOSMjs.e.call(void 0, this,pt,!1)}if(e)for(let t of _chunkXOE3AOSMjs.c.call(void 0, this,vt))t(e)}getState(){return _chunkXOE3AOSMjs.c.call(void 0, this,lt)}subscribe(o){return _chunkXOE3AOSMjs.c.call(void 0, this,vt).add(o),()=>{_chunkXOE3AOSMjs.c.call(void 0, this,vt).delete(o)}}},pt=new WeakMap,xt=new WeakMap,lt=new WeakMap,vt=new WeakMap,Ue),vi=li,di=new Map([["Message",oi],["urn:microsoft:webchat:direct-line-activity",Zt]]),hi=()=>o=>e=>{for(let t of e.values()){_valibot.assert.call(void 0, Ge,t);for(let[r,n]of di)Xo(t,r)&&_valibot.assert.call(void 0, n,t)}return o(e)},yi=hi;function At(o,e){return _differencejs2.default.call(void 0, o,e)}function Q(o){return new Set(o==null?void 0:o.map(e=>e["@id"]))}var mi=({getState:o})=>e=>t=>{var s,v;let r=o(),n=new Map(t);function i(...f){for(let l of f)n.set(l["@id"],l)}function a(f){var y;let l=(y=n.get(f))!=null?y:r.get(f);if(!l)throw new Error(`Cannot find node with @id "${f}"`);return l}function u(f,l){let y=a(f);if(!y)throw new Error(`Cannot find node with @id of ${f} to update`);let p=l(y);return Object.is(y,p)||i(p),!0}for(let[f,l]of t){let y=r.get(f);if(y){let d=At(Q(y.hasPart),Q(l.hasPart));for(let m of d)u(m,x=>{let{isPartOf:j,...w}=x;if(j){let O=j.filter(E=>E["@id"]!==f);if(j.length!==O.length)return Object.freeze({...w,...O.length?{isPartOf:O}:{}})}return x});let g=At(Q(y.isPartOf),Q(l.isPartOf));for(let m of g)u(m,x=>{let{hasPart:j,...w}=x;if(j){let O=j.filter(E=>E["@id"]!==f);if(j.length!==O.length)return Object.freeze({...w,...O.length?{hasPart:O}:{}})}return x})}let p=At(Q(l.hasPart),Q((s=y==null?void 0:y.hasPart)!=null?s:[]));for(let d of p)u(d,g=>{var m,x;return(m=g.isPartOf)!=null&&m.find(j=>j["@id"]===f)?g:Object.freeze({...g,isPartOf:Object.freeze([...(x=g.isPartOf)!=null?x:[],Object.freeze({"@id":f})])})});let b=At(Q(l.isPartOf),Q((v=y==null?void 0:y.isPartOf)!=null?v:[]));for(let d of b)u(d,g=>{var m,x;return(m=g.hasPart)!=null&&m.find(j=>j["@id"]===f)?g:Object.freeze({...g,hasPart:Object.freeze([...(x=g.hasPart)!=null?x:[],Object.freeze({"@id":f})])})})}return e(n)},gi=mi,wi=()=>o=>e=>{let t=new Map;for(let r of e.values())for(let n of Ko(r).graph)t.set(n["@id"],gn(n));return o(t)},xi=wi,Oi=()=>()=>o=>o,ji=Oi,Si=class extends vi{constructor(){super(xi,yi,gi,ji)}},ia= exports.e =Si;var fe=_valibot.pipe.call(void 0, J,_valibot.transform.call(void 0, o=>o)),xr=_valibot.object.call(void 0, {channelData:_valibot.object.call(void 0, {"webchat:internal:local-id":fe})});function va(o){return _valibot.parse.call(void 0, xr,o).channelData["webchat:internal:local-id"]}function Ri(o){let e=_valibot.safeParse.call(void 0, xr,o);return e.success?e.output.channelData["webchat:internal:local-id"]:void 0}function Ti(o,e){let t={...o.channelData};return typeof e=="undefined"?delete t["webchat:internal:local-id"]:t["webchat:internal:local-id"]=_valibot.parse.call(void 0, fe,e),{...o,channelData:t}}function Ai(){return _valibot.parse.call(void 0, fe,`_:${_uuid.v4.call(void 0, )}`)}function da(o){if(Ri(o))throw new Error("botframework-webchat: Cannot generate a new local ID for activity because the activity already has a local ID");return Ti(o,Ai())}var Sr=_valibot.number.call(void 0, "position must be a number"),Pr=_valibot.object.call(void 0, {channelData:_valibot.object.call(void 0, {"webchat:internal:position":Sr})});function ba(o){return _valibot.parse.call(void 0, Pr,o).channelData["webchat:internal:position"]}function ma(o){let e=_valibot.safeParse.call(void 0, Pr,o);return e.success?e.output.channelData["webchat:internal:position"]:void 0}function ga(o,e){let t={...o.channelData};return typeof e=="undefined"?delete t["webchat:internal:position"]:t["webchat:internal:position"]=_valibot.parse.call(void 0, Sr,e),{...o,channelData:t}}exports.a = J; exports.b = Ge; exports.c = Xo; exports.d = oi; exports.e = ia; exports.f = fe; exports.g = va; exports.h = Ti; exports.i = da; exports.j = Sr; exports.k = ba; exports.l = ma; exports.m = ga;
|
|
2
|
+
//# sourceMappingURL=chunk-RUERYYZO.js.map
|