@powerhousedao/connect 1.0.20-dev.0 → 1.0.20-dev.1
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/assets/{app-DULISSV9.js → app-BRmEr17M.js} +977 -587
- package/dist/assets/app-BRmEr17M.js.map +1 -0
- package/dist/assets/{app-b1jkE5Vo.css → app-BzvMUA_5.css} +3 -0
- package/dist/assets/{app-loader-B74nopv_.css → app-loader-DaCxVT0x.css} +4 -0
- package/dist/assets/{app-loader-CS6aHo9m.js → app-loader-_6yU4PFI.js} +105 -108
- package/dist/assets/app-loader-_6yU4PFI.js.map +1 -0
- package/dist/assets/{browser-ClaMQmoS.js → browser--PdVaTAw.js} +4 -4
- package/dist/assets/{browser-ClaMQmoS.js.map → browser--PdVaTAw.js.map} +1 -1
- package/dist/assets/{ccip-HqktEv5j.js → ccip-oTEe2poK.js} +4 -4
- package/dist/assets/{ccip-HqktEv5j.js.map → ccip-oTEe2poK.js.map} +1 -1
- package/dist/assets/{content-CwQswwKt.js → content-B1Gquii9.js} +26 -16
- package/dist/assets/{content-CwQswwKt.js.map → content-B1Gquii9.js.map} +1 -1
- package/dist/assets/{index-q1LnGFn2.js → index-C47jzF-n.js} +14 -14
- package/dist/assets/index-C47jzF-n.js.map +1 -0
- package/dist/assets/index-CXljh8x6.js +208 -0
- package/dist/assets/index-CXljh8x6.js.map +1 -0
- package/dist/assets/{index-4Y8IZCoL.js → index-Csy31V2Q.js} +4 -4
- package/dist/assets/{index-4Y8IZCoL.js.map → index-Csy31V2Q.js.map} +1 -1
- package/dist/assets/{index-DzXmrci3.js → index-DSo3d6TG.js} +7 -7
- package/dist/assets/{index-DzXmrci3.js.map → index-DSo3d6TG.js.map} +1 -1
- package/dist/assets/{main.uPY9aYSk.js → main.CUjcRUhx.js} +2 -2
- package/dist/assets/{main.uPY9aYSk.js.map → main.CUjcRUhx.js.map} +1 -1
- package/dist/assets/reactor-analytics-C7JH8QS3.js +44 -0
- package/dist/assets/reactor-analytics-C7JH8QS3.js.map +1 -0
- package/dist/assets/{router-CvCplkfB.js → router-B-9X40Vx.js} +20 -613
- package/dist/assets/router-B-9X40Vx.js.map +1 -0
- package/dist/assets/{style-Ce3V83BE.css → style-BPUyhu8E.css} +3 -0
- package/dist/index.html +1 -1
- package/dist/vite-envs.sh +1 -1
- package/package.json +9 -9
- package/dist/assets/app-DULISSV9.js.map +0 -1
- package/dist/assets/app-loader-CS6aHo9m.js.map +0 -1
- package/dist/assets/index-q1LnGFn2.js.map +0 -1
- package/dist/assets/reactor-analytics-C3XNgGME.js +0 -15
- package/dist/assets/reactor-analytics-C3XNgGME.js.map +0 -1
- package/dist/assets/router-CvCplkfB.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ccip-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ccip-oTEe2poK.js","assets/main.CUjcRUhx.js","assets/app-loader-_6yU4PFI.js","assets/app-loader-DaCxVT0x.css","assets/index-DSo3d6TG.js","assets/style-BPUyhu8E.css","assets/index-C47jzF-n.js","assets/browser--PdVaTAw.js","assets/router-B-9X40Vx.js","assets/reactor-analytics-C7JH8QS3.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __typeError = (msg) => {
|
|
4
4
|
throw TypeError(msg);
|
|
@@ -18,10 +18,10 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
18
18
|
return __privateGet(obj, member, getter);
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
|
-
var _InternalTransmitter_instances, buildInternalOperationUpdate_fn, _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout, _c, _initialState, _revertState, _cache, _client, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _d, _queries, _e2, _observers, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _f, _mutations, _scopes, _mutationId, _g, _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _h, _subtleCrypto, _keyPair, _keyPairStorage, _did, _ConnectCrypto_instances, initCrypto_fn, initialize_fn, parseDid_fn, generateECDSAKeyPair_fn, exportKeyPair_fn, importKeyPair_fn, _sign, _verify, _DB_NAME, _STORE_NAME, _KEY, _db, _BrowserKeyStorage_instances, useStore_fn;
|
|
22
|
-
import { _ as __vitePreload } from "./main.
|
|
21
|
+
var _InternalTransmitter_instances, buildInternalOperationUpdate_fn, _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout, _c, _initialState, _revertState, _cache, _client, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _d, _queries, _e2, _observers, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _f, _mutations, _scopes, _mutationId, _g, _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _h, _client2, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _currentThenable, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _QueryObserver_instances, executeFetch_fn, updateStaleTimeout_fn, computeRefetchInterval_fn, updateRefetchInterval_fn, updateTimers_fn, clearStaleTimeout_fn, clearRefetchInterval_fn, updateQuery_fn, notify_fn, _i, _subtleCrypto, _keyPair, _keyPairStorage, _did, _ConnectCrypto_instances, initCrypto_fn, initialize_fn, parseDid_fn, generateECDSAKeyPair_fn, exportKeyPair_fn, importKeyPair_fn, _sign, _verify, _DB_NAME, _STORE_NAME, _KEY, _db, _BrowserKeyStorage_instances, useStore_fn;
|
|
22
|
+
import { _ as __vitePreload } from "./main.CUjcRUhx.js";
|
|
23
23
|
import { jsx as jsx$1, Fragment, jsxs } from "react/jsx-runtime";
|
|
24
|
-
import { c as createAction, a as createReducer, i as isDocumentAction, R as ReorderStateExamplesInputSchema, D as DeleteStateExampleInputSchema, U as UpdateStateExampleInputSchema, A as AddStateExampleInputSchema, S as SetInitialStateInputSchema, b as SetStateSchemaInputSchema, d as ReorderModuleOperationsInputSchema, e as DeleteOperationInputSchema, M as MoveOperationInputSchema, f as SetOperationReducerInputSchema, g as SetOperationTemplateInputSchema, h as SetOperationDescriptionInputSchema, j as SetOperationSchemaInputSchema, k as SetOperationScopeInputSchema, l as SetOperationNameInputSchema, m as AddOperationInputSchema, n as ReorderOperationExamplesInputSchema, o as DeleteOperationExampleInputSchema, p as UpdateOperationExampleInputSchema, q as AddOperationExampleInputSchema, r as ReorderOperationErrorsInputSchema, s as DeleteOperationErrorInputSchema, t as SetOperationErrorTemplateInputSchema, u as SetOperationErrorDescriptionInputSchema, v as SetOperationErrorNameInputSchema, w as SetOperationErrorCodeInputSchema, x as AddOperationErrorInputSchema, y as ReorderModulesInputSchema, z as DeleteModuleInputSchema, B as SetModuleDescriptionInputSchema, C as SetModuleNameInputSchema, E as AddModuleInputSchema, F as ReorderChangeLogItemsInputSchema, G as DeleteChangeLogItemInputSchema, H as UpdateChangeLogItemInputSchema, I as AddChangeLogItemInputSchema, J as SetAuthorWebsiteInputSchema, K as SetAuthorNameInputSchema, L as SetModelDescriptionInputSchema, N as SetModelExtensionInputSchema, O as SetModelIdInputSchema, P as SetModelNameInputSchema, Q as baseCreateExtendedState, T as baseCreateDocument, V as baseSaveToFile, W as baseSaveToFileHandle, X as baseLoadFromFile, Y as baseLoadFromInput, Z as pascalCase, _ as logger$
|
|
24
|
+
import { c as createAction, a as createReducer, i as isDocumentAction, R as ReorderStateExamplesInputSchema, D as DeleteStateExampleInputSchema, U as UpdateStateExampleInputSchema, A as AddStateExampleInputSchema, S as SetInitialStateInputSchema, b as SetStateSchemaInputSchema, d as ReorderModuleOperationsInputSchema, e as DeleteOperationInputSchema, M as MoveOperationInputSchema, f as SetOperationReducerInputSchema, g as SetOperationTemplateInputSchema, h as SetOperationDescriptionInputSchema, j as SetOperationSchemaInputSchema, k as SetOperationScopeInputSchema, l as SetOperationNameInputSchema, m as AddOperationInputSchema, n as ReorderOperationExamplesInputSchema, o as DeleteOperationExampleInputSchema, p as UpdateOperationExampleInputSchema, q as AddOperationExampleInputSchema, r as ReorderOperationErrorsInputSchema, s as DeleteOperationErrorInputSchema, t as SetOperationErrorTemplateInputSchema, u as SetOperationErrorDescriptionInputSchema, v as SetOperationErrorNameInputSchema, w as SetOperationErrorCodeInputSchema, x as AddOperationErrorInputSchema, y as ReorderModulesInputSchema, z as DeleteModuleInputSchema, B as SetModuleDescriptionInputSchema, C as SetModuleNameInputSchema, E as AddModuleInputSchema, F as ReorderChangeLogItemsInputSchema, G as DeleteChangeLogItemInputSchema, H as UpdateChangeLogItemInputSchema, I as AddChangeLogItemInputSchema, J as SetAuthorWebsiteInputSchema, K as SetAuthorNameInputSchema, L as SetModelDescriptionInputSchema, N as SetModelExtensionInputSchema, O as SetModelIdInputSchema, P as SetModelNameInputSchema, Q as baseCreateExtendedState, T as baseCreateDocument, V as baseSaveToFile, W as baseSaveToFileHandle, X as baseLoadFromFile, Y as baseLoadFromInput, Z as pascalCase, _ as logger$2, $ as Icon, a0 as getDefaultExportFromCjs, a1 as LOCAL, a2 as commonjsGlobal, a3 as PUBLIC, a4 as SWITCHBOARD, a5 as locationInfoByLocation, a6 as sharingTypeOptions, a7 as objectType, a8 as recordType, a9 as stringType, aa as capitalCase, ab as CLOUD, ac as createZip, ad as LZString, ae as buildSignedOperation, af as getI18n, ag as getDefaults, ah as connectConfig, ai as hashDocumentStateForScope, aj as getAugmentedNamespace, ak as process, al as setErrorHandler, am as driveDocumentModelModule, an as createBrowserStorage, ao as createBrowserDocumentDriveServer, ap as generateId, aq as childLogger, ar as reducer$8, as as isDocumentDrive, at as generateAddNodeAction, au as isFileNode, av as uploadDocumentOperations, aw as updateFile, ax as addFolder, ay as isFolderNode, az as deleteNode, aA as updateNode, aB as FILE$1, aC as moveNode, aD as generateNodesCopy, aE as copyNode, aF as createState$1, aG as setDriveName, aH as setAvailableOffline, aI as setSharingType, aJ as SynchronizationUnitNotFoundError, aK as removeTrigger, aL as generateUUID, aM as PullResponderTransmitter, aN as addTrigger, aO as ReadDriveNotFoundError, aP as openUrl, aQ as getNodeOptions, aR as DRIVE$1, aS as FOLDER, aT as requestPublicDrive, aU as serviceWorkerManager, aV as packageJson, aW as t$1 } from "./app-loader-_6yU4PFI.js";
|
|
25
25
|
import * as React from "react";
|
|
26
26
|
import React__default, { useLayoutEffect, useEffect, useState, forwardRef, useCallback, useContext, useRef, useMemo, createContext, Component, Fragment as Fragment$1, createElement, useId as useId$1, useSyncExternalStore, isValidElement, cloneElement, Children, useReducer, useDebugValue, Suspense, lazy } from "react";
|
|
27
27
|
import * as ReactDOM from "react-dom";
|
|
@@ -1489,7 +1489,7 @@ class InternalTransmitter {
|
|
|
1489
1489
|
};
|
|
1490
1490
|
});
|
|
1491
1491
|
} catch (error) {
|
|
1492
|
-
logger$
|
|
1492
|
+
logger$2.error(error);
|
|
1493
1493
|
return strands.map(({ operations, ...s2 }) => {
|
|
1494
1494
|
var _a3;
|
|
1495
1495
|
return {
|
|
@@ -11446,9 +11446,9 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
11446
11446
|
}
|
|
11447
11447
|
} else {
|
|
11448
11448
|
if (Array.isArray(value) && typeof value[0] === "string" && registered == null) {
|
|
11449
|
-
for (var
|
|
11450
|
-
if (isProcessableValue(value[
|
|
11451
|
-
string2 += processStyleName(key) + ":" + processStyleValue(key, value[
|
|
11449
|
+
for (var _i2 = 0; _i2 < value.length; _i2++) {
|
|
11450
|
+
if (isProcessableValue(value[_i2])) {
|
|
11451
|
+
string2 += processStyleName(key) + ":" + processStyleValue(key, value[_i2]) + ";";
|
|
11452
11452
|
}
|
|
11453
11453
|
}
|
|
11454
11454
|
} else {
|
|
@@ -11628,7 +11628,7 @@ function _taggedTemplateLiteral(e2, t2) {
|
|
|
11628
11628
|
}
|
|
11629
11629
|
var index$2 = useLayoutEffect;
|
|
11630
11630
|
var _excluded$4 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"];
|
|
11631
|
-
var noop$
|
|
11631
|
+
var noop$2 = function noop2() {
|
|
11632
11632
|
};
|
|
11633
11633
|
function applyPrefixToName(prefix2, name2) {
|
|
11634
11634
|
if (!name2) {
|
|
@@ -11730,7 +11730,7 @@ function easeOutCubic(t2, b2, c2, d2) {
|
|
|
11730
11730
|
}
|
|
11731
11731
|
function animatedScrollTo(element, to) {
|
|
11732
11732
|
var duration = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200;
|
|
11733
|
-
var callback = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : noop$
|
|
11733
|
+
var callback = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : noop$2;
|
|
11734
11734
|
var start = getScrollTop(element);
|
|
11735
11735
|
var change = to - start;
|
|
11736
11736
|
var increment = 10;
|
|
@@ -11791,8 +11791,8 @@ var options = {
|
|
|
11791
11791
|
};
|
|
11792
11792
|
var w$1 = typeof window !== "undefined" ? window : {};
|
|
11793
11793
|
if (w$1.addEventListener && w$1.removeEventListener) {
|
|
11794
|
-
w$1.addEventListener("p", noop$
|
|
11795
|
-
w$1.removeEventListener("p", noop$
|
|
11794
|
+
w$1.addEventListener("p", noop$2, options);
|
|
11795
|
+
w$1.removeEventListener("p", noop$2, false);
|
|
11796
11796
|
}
|
|
11797
11797
|
var supportsPassiveEvents = passiveOptionAccessed;
|
|
11798
11798
|
function notNullish(item) {
|
|
@@ -12668,8 +12668,8 @@ function memoizeOne(resultFn, isEqual2) {
|
|
|
12668
12668
|
var cache = null;
|
|
12669
12669
|
function memoized2() {
|
|
12670
12670
|
var newArgs = [];
|
|
12671
|
-
for (var
|
|
12672
|
-
newArgs[
|
|
12671
|
+
for (var _i2 = 0; _i2 < arguments.length; _i2++) {
|
|
12672
|
+
newArgs[_i2] = arguments[_i2];
|
|
12673
12673
|
}
|
|
12674
12674
|
if (cache && cache.lastThis === this && isEqual2(newArgs, cache.lastArgs)) {
|
|
12675
12675
|
return cache.lastResult;
|
|
@@ -14533,7 +14533,7 @@ var Select$1 = /* @__PURE__ */ function(_Component) {
|
|
|
14533
14533
|
id,
|
|
14534
14534
|
innerRef: this.getInputRef,
|
|
14535
14535
|
onBlur: this.onInputBlur,
|
|
14536
|
-
onChange: noop$
|
|
14536
|
+
onChange: noop$2,
|
|
14537
14537
|
onFocus: this.onInputFocus,
|
|
14538
14538
|
disabled: isDisabled,
|
|
14539
14539
|
tabIndex,
|
|
@@ -20580,7 +20580,7 @@ async function call(client2, args) {
|
|
|
20580
20580
|
} catch (err) {
|
|
20581
20581
|
const data2 = getRevertErrorData(err);
|
|
20582
20582
|
const { offchainLookup, offchainLookupSignature } = await __vitePreload(async () => {
|
|
20583
|
-
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-
|
|
20583
|
+
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-oTEe2poK.js");
|
|
20584
20584
|
return { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 };
|
|
20585
20585
|
}, true ? __vite__mapDeps([0,1,2,3]) : void 0);
|
|
20586
20586
|
if (client2.ccipRead !== false && (data2 == null ? void 0 : data2.slice(0, 10)) === offchainLookupSignature && to)
|
|
@@ -21729,7 +21729,7 @@ async function getFeeHistory(client2, { blockCount, blockNumber, blockTag = "lat
|
|
|
21729
21729
|
}, { dedupe: Boolean(blockNumberHex) });
|
|
21730
21730
|
return formatFeeHistory(feeHistory);
|
|
21731
21731
|
}
|
|
21732
|
-
async function getFilterChanges(
|
|
21732
|
+
async function getFilterChanges(_client3, { filter }) {
|
|
21733
21733
|
const strict = "strict" in filter && filter.strict;
|
|
21734
21734
|
const logs = await filter.request({
|
|
21735
21735
|
method: "eth_getFilterChanges",
|
|
@@ -21746,7 +21746,7 @@ async function getFilterChanges(_client2, { filter }) {
|
|
|
21746
21746
|
strict
|
|
21747
21747
|
});
|
|
21748
21748
|
}
|
|
21749
|
-
async function getFilterLogs(
|
|
21749
|
+
async function getFilterLogs(_client3, { filter }) {
|
|
21750
21750
|
const strict = filter.strict ?? false;
|
|
21751
21751
|
const logs = await filter.request({
|
|
21752
21752
|
method: "eth_getFilterLogs",
|
|
@@ -24813,7 +24813,7 @@ function watchBlockNumber(client2, { emitOnBegin = false, emitMissed = false, on
|
|
|
24813
24813
|
};
|
|
24814
24814
|
return enablePolling ? pollBlockNumber() : subscribeBlockNumber();
|
|
24815
24815
|
}
|
|
24816
|
-
async function uninstallFilter(
|
|
24816
|
+
async function uninstallFilter(_client3, { filter }) {
|
|
24817
24817
|
return filter.request({
|
|
24818
24818
|
method: "eth_uninstallFilter",
|
|
24819
24819
|
params: [filter.id]
|
|
@@ -28960,7 +28960,7 @@ var Subscribable = class {
|
|
|
28960
28960
|
}
|
|
28961
28961
|
};
|
|
28962
28962
|
var isServer = typeof window === "undefined" || "Deno" in globalThis;
|
|
28963
|
-
function noop() {
|
|
28963
|
+
function noop$1() {
|
|
28964
28964
|
}
|
|
28965
28965
|
function functionalUpdate(updater, input) {
|
|
28966
28966
|
return typeof updater === "function" ? updater(input) : updater;
|
|
@@ -29594,7 +29594,7 @@ var Query = (_d = class extends Removable {
|
|
|
29594
29594
|
var _a2, _b2;
|
|
29595
29595
|
const promise = (_a2 = __privateGet(this, _retryer)) == null ? void 0 : _a2.promise;
|
|
29596
29596
|
(_b2 = __privateGet(this, _retryer)) == null ? void 0 : _b2.cancel(options2);
|
|
29597
|
-
return promise ? promise.then(noop).catch(noop) : Promise.resolve();
|
|
29597
|
+
return promise ? promise.then(noop$1).catch(noop$1) : Promise.resolve();
|
|
29598
29598
|
}
|
|
29599
29599
|
destroy() {
|
|
29600
29600
|
super.destroy();
|
|
@@ -30050,7 +30050,7 @@ var Mutation = (_f = class extends Removable {
|
|
|
30050
30050
|
this.execute(this.state.variables);
|
|
30051
30051
|
}
|
|
30052
30052
|
async execute(variables) {
|
|
30053
|
-
var _a2, _b2, _c2, _d2, _e3, _f2, _g2, _h2,
|
|
30053
|
+
var _a2, _b2, _c2, _d2, _e3, _f2, _g2, _h2, _i2, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
30054
30054
|
__privateSet(this, _retryer2, createRetryer({
|
|
30055
30055
|
fn: () => {
|
|
30056
30056
|
if (!this.options.mutationFn) {
|
|
@@ -30101,8 +30101,8 @@ var Mutation = (_f = class extends Removable {
|
|
|
30101
30101
|
this
|
|
30102
30102
|
));
|
|
30103
30103
|
await ((_h2 = (_g2 = this.options).onSuccess) == null ? void 0 : _h2.call(_g2, data, variables, this.state.context));
|
|
30104
|
-
await ((_j = (
|
|
30105
|
-
|
|
30104
|
+
await ((_j = (_i2 = __privateGet(this, _mutationCache).config).onSettled) == null ? void 0 : _j.call(
|
|
30105
|
+
_i2,
|
|
30106
30106
|
data,
|
|
30107
30107
|
null,
|
|
30108
30108
|
this.state.variables,
|
|
@@ -30336,7 +30336,7 @@ var MutationCache = (_g = class extends Subscribable {
|
|
|
30336
30336
|
const pausedMutations = this.getAll().filter((x2) => x2.state.isPaused);
|
|
30337
30337
|
return notifyManager.batch(
|
|
30338
30338
|
() => Promise.all(
|
|
30339
|
-
pausedMutations.map((mutation) => mutation.continue().catch(noop))
|
|
30339
|
+
pausedMutations.map((mutation) => mutation.continue().catch(noop$1))
|
|
30340
30340
|
)
|
|
30341
30341
|
);
|
|
30342
30342
|
}
|
|
@@ -30582,7 +30582,7 @@ var QueryClient = (_h = class {
|
|
|
30582
30582
|
const promises = notifyManager.batch(
|
|
30583
30583
|
() => __privateGet(this, _queryCache).findAll(filters).map((query) => query.cancel(defaultedCancelOptions))
|
|
30584
30584
|
);
|
|
30585
|
-
return Promise.all(promises).then(noop).catch(noop);
|
|
30585
|
+
return Promise.all(promises).then(noop$1).catch(noop$1);
|
|
30586
30586
|
}
|
|
30587
30587
|
invalidateQueries(filters, options2 = {}) {
|
|
30588
30588
|
return notifyManager.batch(() => {
|
|
@@ -30610,12 +30610,12 @@ var QueryClient = (_h = class {
|
|
|
30610
30610
|
() => __privateGet(this, _queryCache).findAll(filters).filter((query) => !query.isDisabled()).map((query) => {
|
|
30611
30611
|
let promise = query.fetch(void 0, fetchOptions);
|
|
30612
30612
|
if (!fetchOptions.throwOnError) {
|
|
30613
|
-
promise = promise.catch(noop);
|
|
30613
|
+
promise = promise.catch(noop$1);
|
|
30614
30614
|
}
|
|
30615
30615
|
return query.state.fetchStatus === "paused" ? Promise.resolve() : promise;
|
|
30616
30616
|
})
|
|
30617
30617
|
);
|
|
30618
|
-
return Promise.all(promises).then(noop);
|
|
30618
|
+
return Promise.all(promises).then(noop$1);
|
|
30619
30619
|
}
|
|
30620
30620
|
fetchQuery(options2) {
|
|
30621
30621
|
const defaultedOptions = this.defaultQueryOptions(options2);
|
|
@@ -30628,14 +30628,14 @@ var QueryClient = (_h = class {
|
|
|
30628
30628
|
) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
|
|
30629
30629
|
}
|
|
30630
30630
|
prefetchQuery(options2) {
|
|
30631
|
-
return this.fetchQuery(options2).then(noop).catch(noop);
|
|
30631
|
+
return this.fetchQuery(options2).then(noop$1).catch(noop$1);
|
|
30632
30632
|
}
|
|
30633
30633
|
fetchInfiniteQuery(options2) {
|
|
30634
30634
|
options2.behavior = infiniteQueryBehavior(options2.pages);
|
|
30635
30635
|
return this.fetchQuery(options2);
|
|
30636
30636
|
}
|
|
30637
30637
|
prefetchInfiniteQuery(options2) {
|
|
30638
|
-
return this.fetchInfiniteQuery(options2).then(noop).catch(noop);
|
|
30638
|
+
return this.fetchInfiniteQuery(options2).then(noop$1).catch(noop$1);
|
|
30639
30639
|
}
|
|
30640
30640
|
ensureInfiniteQueryData(options2) {
|
|
30641
30641
|
options2.behavior = infiniteQueryBehavior(options2.pages);
|
|
@@ -30737,6 +30737,455 @@ var QueryClient = (_h = class {
|
|
|
30737
30737
|
__privateGet(this, _mutationCache2).clear();
|
|
30738
30738
|
}
|
|
30739
30739
|
}, _queryCache = new WeakMap(), _mutationCache2 = new WeakMap(), _defaultOptions2 = new WeakMap(), _queryDefaults = new WeakMap(), _mutationDefaults = new WeakMap(), _mountCount = new WeakMap(), _unsubscribeFocus = new WeakMap(), _unsubscribeOnline = new WeakMap(), _h);
|
|
30740
|
+
var QueryObserver = (_i = class extends Subscribable {
|
|
30741
|
+
constructor(client2, options2) {
|
|
30742
|
+
super();
|
|
30743
|
+
__privateAdd(this, _QueryObserver_instances);
|
|
30744
|
+
__privateAdd(this, _client2);
|
|
30745
|
+
__privateAdd(this, _currentQuery);
|
|
30746
|
+
__privateAdd(this, _currentQueryInitialState);
|
|
30747
|
+
__privateAdd(this, _currentResult);
|
|
30748
|
+
__privateAdd(this, _currentResultState);
|
|
30749
|
+
__privateAdd(this, _currentResultOptions);
|
|
30750
|
+
__privateAdd(this, _currentThenable);
|
|
30751
|
+
__privateAdd(this, _selectError);
|
|
30752
|
+
__privateAdd(this, _selectFn);
|
|
30753
|
+
__privateAdd(this, _selectResult);
|
|
30754
|
+
// This property keeps track of the last query with defined data.
|
|
30755
|
+
// It will be used to pass the previous data and query to the placeholder function between renders.
|
|
30756
|
+
__privateAdd(this, _lastQueryWithDefinedData);
|
|
30757
|
+
__privateAdd(this, _staleTimeoutId);
|
|
30758
|
+
__privateAdd(this, _refetchIntervalId);
|
|
30759
|
+
__privateAdd(this, _currentRefetchInterval);
|
|
30760
|
+
__privateAdd(this, _trackedProps, /* @__PURE__ */ new Set());
|
|
30761
|
+
this.options = options2;
|
|
30762
|
+
__privateSet(this, _client2, client2);
|
|
30763
|
+
__privateSet(this, _selectError, null);
|
|
30764
|
+
__privateSet(this, _currentThenable, pendingThenable());
|
|
30765
|
+
if (!this.options.experimental_prefetchInRender) {
|
|
30766
|
+
__privateGet(this, _currentThenable).reject(
|
|
30767
|
+
new Error("experimental_prefetchInRender feature flag is not enabled")
|
|
30768
|
+
);
|
|
30769
|
+
}
|
|
30770
|
+
this.bindMethods();
|
|
30771
|
+
this.setOptions(options2);
|
|
30772
|
+
}
|
|
30773
|
+
bindMethods() {
|
|
30774
|
+
this.refetch = this.refetch.bind(this);
|
|
30775
|
+
}
|
|
30776
|
+
onSubscribe() {
|
|
30777
|
+
if (this.listeners.size === 1) {
|
|
30778
|
+
__privateGet(this, _currentQuery).addObserver(this);
|
|
30779
|
+
if (shouldFetchOnMount(__privateGet(this, _currentQuery), this.options)) {
|
|
30780
|
+
__privateMethod(this, _QueryObserver_instances, executeFetch_fn).call(this);
|
|
30781
|
+
} else {
|
|
30782
|
+
this.updateResult();
|
|
30783
|
+
}
|
|
30784
|
+
__privateMethod(this, _QueryObserver_instances, updateTimers_fn).call(this);
|
|
30785
|
+
}
|
|
30786
|
+
}
|
|
30787
|
+
onUnsubscribe() {
|
|
30788
|
+
if (!this.hasListeners()) {
|
|
30789
|
+
this.destroy();
|
|
30790
|
+
}
|
|
30791
|
+
}
|
|
30792
|
+
shouldFetchOnReconnect() {
|
|
30793
|
+
return shouldFetchOn(
|
|
30794
|
+
__privateGet(this, _currentQuery),
|
|
30795
|
+
this.options,
|
|
30796
|
+
this.options.refetchOnReconnect
|
|
30797
|
+
);
|
|
30798
|
+
}
|
|
30799
|
+
shouldFetchOnWindowFocus() {
|
|
30800
|
+
return shouldFetchOn(
|
|
30801
|
+
__privateGet(this, _currentQuery),
|
|
30802
|
+
this.options,
|
|
30803
|
+
this.options.refetchOnWindowFocus
|
|
30804
|
+
);
|
|
30805
|
+
}
|
|
30806
|
+
destroy() {
|
|
30807
|
+
this.listeners = /* @__PURE__ */ new Set();
|
|
30808
|
+
__privateMethod(this, _QueryObserver_instances, clearStaleTimeout_fn).call(this);
|
|
30809
|
+
__privateMethod(this, _QueryObserver_instances, clearRefetchInterval_fn).call(this);
|
|
30810
|
+
__privateGet(this, _currentQuery).removeObserver(this);
|
|
30811
|
+
}
|
|
30812
|
+
setOptions(options2) {
|
|
30813
|
+
const prevOptions = this.options;
|
|
30814
|
+
const prevQuery = __privateGet(this, _currentQuery);
|
|
30815
|
+
this.options = __privateGet(this, _client2).defaultQueryOptions(options2);
|
|
30816
|
+
if (this.options.enabled !== void 0 && typeof this.options.enabled !== "boolean" && typeof this.options.enabled !== "function" && typeof resolveEnabled(this.options.enabled, __privateGet(this, _currentQuery)) !== "boolean") {
|
|
30817
|
+
throw new Error(
|
|
30818
|
+
"Expected enabled to be a boolean or a callback that returns a boolean"
|
|
30819
|
+
);
|
|
30820
|
+
}
|
|
30821
|
+
__privateMethod(this, _QueryObserver_instances, updateQuery_fn).call(this);
|
|
30822
|
+
__privateGet(this, _currentQuery).setOptions(this.options);
|
|
30823
|
+
if (prevOptions._defaulted && !shallowEqualObjects(this.options, prevOptions)) {
|
|
30824
|
+
__privateGet(this, _client2).getQueryCache().notify({
|
|
30825
|
+
type: "observerOptionsUpdated",
|
|
30826
|
+
query: __privateGet(this, _currentQuery),
|
|
30827
|
+
observer: this
|
|
30828
|
+
});
|
|
30829
|
+
}
|
|
30830
|
+
const mounted = this.hasListeners();
|
|
30831
|
+
if (mounted && shouldFetchOptionally(
|
|
30832
|
+
__privateGet(this, _currentQuery),
|
|
30833
|
+
prevQuery,
|
|
30834
|
+
this.options,
|
|
30835
|
+
prevOptions
|
|
30836
|
+
)) {
|
|
30837
|
+
__privateMethod(this, _QueryObserver_instances, executeFetch_fn).call(this);
|
|
30838
|
+
}
|
|
30839
|
+
this.updateResult();
|
|
30840
|
+
if (mounted && (__privateGet(this, _currentQuery) !== prevQuery || resolveEnabled(this.options.enabled, __privateGet(this, _currentQuery)) !== resolveEnabled(prevOptions.enabled, __privateGet(this, _currentQuery)) || resolveStaleTime(this.options.staleTime, __privateGet(this, _currentQuery)) !== resolveStaleTime(prevOptions.staleTime, __privateGet(this, _currentQuery)))) {
|
|
30841
|
+
__privateMethod(this, _QueryObserver_instances, updateStaleTimeout_fn).call(this);
|
|
30842
|
+
}
|
|
30843
|
+
const nextRefetchInterval = __privateMethod(this, _QueryObserver_instances, computeRefetchInterval_fn).call(this);
|
|
30844
|
+
if (mounted && (__privateGet(this, _currentQuery) !== prevQuery || resolveEnabled(this.options.enabled, __privateGet(this, _currentQuery)) !== resolveEnabled(prevOptions.enabled, __privateGet(this, _currentQuery)) || nextRefetchInterval !== __privateGet(this, _currentRefetchInterval))) {
|
|
30845
|
+
__privateMethod(this, _QueryObserver_instances, updateRefetchInterval_fn).call(this, nextRefetchInterval);
|
|
30846
|
+
}
|
|
30847
|
+
}
|
|
30848
|
+
getOptimisticResult(options2) {
|
|
30849
|
+
const query = __privateGet(this, _client2).getQueryCache().build(__privateGet(this, _client2), options2);
|
|
30850
|
+
const result = this.createResult(query, options2);
|
|
30851
|
+
if (shouldAssignObserverCurrentProperties(this, result)) {
|
|
30852
|
+
__privateSet(this, _currentResult, result);
|
|
30853
|
+
__privateSet(this, _currentResultOptions, this.options);
|
|
30854
|
+
__privateSet(this, _currentResultState, __privateGet(this, _currentQuery).state);
|
|
30855
|
+
}
|
|
30856
|
+
return result;
|
|
30857
|
+
}
|
|
30858
|
+
getCurrentResult() {
|
|
30859
|
+
return __privateGet(this, _currentResult);
|
|
30860
|
+
}
|
|
30861
|
+
trackResult(result, onPropTracked) {
|
|
30862
|
+
const trackedResult = {};
|
|
30863
|
+
Object.keys(result).forEach((key) => {
|
|
30864
|
+
Object.defineProperty(trackedResult, key, {
|
|
30865
|
+
configurable: false,
|
|
30866
|
+
enumerable: true,
|
|
30867
|
+
get: () => {
|
|
30868
|
+
this.trackProp(key);
|
|
30869
|
+
onPropTracked == null ? void 0 : onPropTracked(key);
|
|
30870
|
+
return result[key];
|
|
30871
|
+
}
|
|
30872
|
+
});
|
|
30873
|
+
});
|
|
30874
|
+
return trackedResult;
|
|
30875
|
+
}
|
|
30876
|
+
trackProp(key) {
|
|
30877
|
+
__privateGet(this, _trackedProps).add(key);
|
|
30878
|
+
}
|
|
30879
|
+
getCurrentQuery() {
|
|
30880
|
+
return __privateGet(this, _currentQuery);
|
|
30881
|
+
}
|
|
30882
|
+
refetch({ ...options2 } = {}) {
|
|
30883
|
+
return this.fetch({
|
|
30884
|
+
...options2
|
|
30885
|
+
});
|
|
30886
|
+
}
|
|
30887
|
+
fetchOptimistic(options2) {
|
|
30888
|
+
const defaultedOptions = __privateGet(this, _client2).defaultQueryOptions(options2);
|
|
30889
|
+
const query = __privateGet(this, _client2).getQueryCache().build(__privateGet(this, _client2), defaultedOptions);
|
|
30890
|
+
return query.fetch().then(() => this.createResult(query, defaultedOptions));
|
|
30891
|
+
}
|
|
30892
|
+
fetch(fetchOptions) {
|
|
30893
|
+
return __privateMethod(this, _QueryObserver_instances, executeFetch_fn).call(this, {
|
|
30894
|
+
...fetchOptions,
|
|
30895
|
+
cancelRefetch: fetchOptions.cancelRefetch ?? true
|
|
30896
|
+
}).then(() => {
|
|
30897
|
+
this.updateResult();
|
|
30898
|
+
return __privateGet(this, _currentResult);
|
|
30899
|
+
});
|
|
30900
|
+
}
|
|
30901
|
+
createResult(query, options2) {
|
|
30902
|
+
var _a2;
|
|
30903
|
+
const prevQuery = __privateGet(this, _currentQuery);
|
|
30904
|
+
const prevOptions = this.options;
|
|
30905
|
+
const prevResult = __privateGet(this, _currentResult);
|
|
30906
|
+
const prevResultState = __privateGet(this, _currentResultState);
|
|
30907
|
+
const prevResultOptions = __privateGet(this, _currentResultOptions);
|
|
30908
|
+
const queryChange = query !== prevQuery;
|
|
30909
|
+
const queryInitialState = queryChange ? query.state : __privateGet(this, _currentQueryInitialState);
|
|
30910
|
+
const { state } = query;
|
|
30911
|
+
let newState = { ...state };
|
|
30912
|
+
let isPlaceholderData = false;
|
|
30913
|
+
let data;
|
|
30914
|
+
if (options2._optimisticResults) {
|
|
30915
|
+
const mounted = this.hasListeners();
|
|
30916
|
+
const fetchOnMount = !mounted && shouldFetchOnMount(query, options2);
|
|
30917
|
+
const fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options2, prevOptions);
|
|
30918
|
+
if (fetchOnMount || fetchOptionally) {
|
|
30919
|
+
newState = {
|
|
30920
|
+
...newState,
|
|
30921
|
+
...fetchState(state.data, query.options)
|
|
30922
|
+
};
|
|
30923
|
+
}
|
|
30924
|
+
if (options2._optimisticResults === "isRestoring") {
|
|
30925
|
+
newState.fetchStatus = "idle";
|
|
30926
|
+
}
|
|
30927
|
+
}
|
|
30928
|
+
let { error, errorUpdatedAt, status } = newState;
|
|
30929
|
+
if (options2.select && newState.data !== void 0) {
|
|
30930
|
+
if (prevResult && newState.data === (prevResultState == null ? void 0 : prevResultState.data) && options2.select === __privateGet(this, _selectFn)) {
|
|
30931
|
+
data = __privateGet(this, _selectResult);
|
|
30932
|
+
} else {
|
|
30933
|
+
try {
|
|
30934
|
+
__privateSet(this, _selectFn, options2.select);
|
|
30935
|
+
data = options2.select(newState.data);
|
|
30936
|
+
data = replaceData(prevResult == null ? void 0 : prevResult.data, data, options2);
|
|
30937
|
+
__privateSet(this, _selectResult, data);
|
|
30938
|
+
__privateSet(this, _selectError, null);
|
|
30939
|
+
} catch (selectError) {
|
|
30940
|
+
__privateSet(this, _selectError, selectError);
|
|
30941
|
+
}
|
|
30942
|
+
}
|
|
30943
|
+
} else {
|
|
30944
|
+
data = newState.data;
|
|
30945
|
+
}
|
|
30946
|
+
if (options2.placeholderData !== void 0 && data === void 0 && status === "pending") {
|
|
30947
|
+
let placeholderData;
|
|
30948
|
+
if ((prevResult == null ? void 0 : prevResult.isPlaceholderData) && options2.placeholderData === (prevResultOptions == null ? void 0 : prevResultOptions.placeholderData)) {
|
|
30949
|
+
placeholderData = prevResult.data;
|
|
30950
|
+
} else {
|
|
30951
|
+
placeholderData = typeof options2.placeholderData === "function" ? options2.placeholderData(
|
|
30952
|
+
(_a2 = __privateGet(this, _lastQueryWithDefinedData)) == null ? void 0 : _a2.state.data,
|
|
30953
|
+
__privateGet(this, _lastQueryWithDefinedData)
|
|
30954
|
+
) : options2.placeholderData;
|
|
30955
|
+
if (options2.select && placeholderData !== void 0) {
|
|
30956
|
+
try {
|
|
30957
|
+
placeholderData = options2.select(placeholderData);
|
|
30958
|
+
__privateSet(this, _selectError, null);
|
|
30959
|
+
} catch (selectError) {
|
|
30960
|
+
__privateSet(this, _selectError, selectError);
|
|
30961
|
+
}
|
|
30962
|
+
}
|
|
30963
|
+
}
|
|
30964
|
+
if (placeholderData !== void 0) {
|
|
30965
|
+
status = "success";
|
|
30966
|
+
data = replaceData(
|
|
30967
|
+
prevResult == null ? void 0 : prevResult.data,
|
|
30968
|
+
placeholderData,
|
|
30969
|
+
options2
|
|
30970
|
+
);
|
|
30971
|
+
isPlaceholderData = true;
|
|
30972
|
+
}
|
|
30973
|
+
}
|
|
30974
|
+
if (__privateGet(this, _selectError)) {
|
|
30975
|
+
error = __privateGet(this, _selectError);
|
|
30976
|
+
data = __privateGet(this, _selectResult);
|
|
30977
|
+
errorUpdatedAt = Date.now();
|
|
30978
|
+
status = "error";
|
|
30979
|
+
}
|
|
30980
|
+
const isFetching = newState.fetchStatus === "fetching";
|
|
30981
|
+
const isPending = status === "pending";
|
|
30982
|
+
const isError2 = status === "error";
|
|
30983
|
+
const isLoading = isPending && isFetching;
|
|
30984
|
+
const hasData = data !== void 0;
|
|
30985
|
+
const result = {
|
|
30986
|
+
status,
|
|
30987
|
+
fetchStatus: newState.fetchStatus,
|
|
30988
|
+
isPending,
|
|
30989
|
+
isSuccess: status === "success",
|
|
30990
|
+
isError: isError2,
|
|
30991
|
+
isInitialLoading: isLoading,
|
|
30992
|
+
isLoading,
|
|
30993
|
+
data,
|
|
30994
|
+
dataUpdatedAt: newState.dataUpdatedAt,
|
|
30995
|
+
error,
|
|
30996
|
+
errorUpdatedAt,
|
|
30997
|
+
failureCount: newState.fetchFailureCount,
|
|
30998
|
+
failureReason: newState.fetchFailureReason,
|
|
30999
|
+
errorUpdateCount: newState.errorUpdateCount,
|
|
31000
|
+
isFetched: newState.dataUpdateCount > 0 || newState.errorUpdateCount > 0,
|
|
31001
|
+
isFetchedAfterMount: newState.dataUpdateCount > queryInitialState.dataUpdateCount || newState.errorUpdateCount > queryInitialState.errorUpdateCount,
|
|
31002
|
+
isFetching,
|
|
31003
|
+
isRefetching: isFetching && !isPending,
|
|
31004
|
+
isLoadingError: isError2 && !hasData,
|
|
31005
|
+
isPaused: newState.fetchStatus === "paused",
|
|
31006
|
+
isPlaceholderData,
|
|
31007
|
+
isRefetchError: isError2 && hasData,
|
|
31008
|
+
isStale: isStale(query, options2),
|
|
31009
|
+
refetch: this.refetch,
|
|
31010
|
+
promise: __privateGet(this, _currentThenable)
|
|
31011
|
+
};
|
|
31012
|
+
const nextResult = result;
|
|
31013
|
+
if (this.options.experimental_prefetchInRender) {
|
|
31014
|
+
const finalizeThenableIfPossible = (thenable) => {
|
|
31015
|
+
if (nextResult.status === "error") {
|
|
31016
|
+
thenable.reject(nextResult.error);
|
|
31017
|
+
} else if (nextResult.data !== void 0) {
|
|
31018
|
+
thenable.resolve(nextResult.data);
|
|
31019
|
+
}
|
|
31020
|
+
};
|
|
31021
|
+
const recreateThenable = () => {
|
|
31022
|
+
const pending = __privateSet(this, _currentThenable, nextResult.promise = pendingThenable());
|
|
31023
|
+
finalizeThenableIfPossible(pending);
|
|
31024
|
+
};
|
|
31025
|
+
const prevThenable = __privateGet(this, _currentThenable);
|
|
31026
|
+
switch (prevThenable.status) {
|
|
31027
|
+
case "pending":
|
|
31028
|
+
if (query.queryHash === prevQuery.queryHash) {
|
|
31029
|
+
finalizeThenableIfPossible(prevThenable);
|
|
31030
|
+
}
|
|
31031
|
+
break;
|
|
31032
|
+
case "fulfilled":
|
|
31033
|
+
if (nextResult.status === "error" || nextResult.data !== prevThenable.value) {
|
|
31034
|
+
recreateThenable();
|
|
31035
|
+
}
|
|
31036
|
+
break;
|
|
31037
|
+
case "rejected":
|
|
31038
|
+
if (nextResult.status !== "error" || nextResult.error !== prevThenable.reason) {
|
|
31039
|
+
recreateThenable();
|
|
31040
|
+
}
|
|
31041
|
+
break;
|
|
31042
|
+
}
|
|
31043
|
+
}
|
|
31044
|
+
return nextResult;
|
|
31045
|
+
}
|
|
31046
|
+
updateResult() {
|
|
31047
|
+
const prevResult = __privateGet(this, _currentResult);
|
|
31048
|
+
const nextResult = this.createResult(__privateGet(this, _currentQuery), this.options);
|
|
31049
|
+
__privateSet(this, _currentResultState, __privateGet(this, _currentQuery).state);
|
|
31050
|
+
__privateSet(this, _currentResultOptions, this.options);
|
|
31051
|
+
if (__privateGet(this, _currentResultState).data !== void 0) {
|
|
31052
|
+
__privateSet(this, _lastQueryWithDefinedData, __privateGet(this, _currentQuery));
|
|
31053
|
+
}
|
|
31054
|
+
if (shallowEqualObjects(nextResult, prevResult)) {
|
|
31055
|
+
return;
|
|
31056
|
+
}
|
|
31057
|
+
__privateSet(this, _currentResult, nextResult);
|
|
31058
|
+
const shouldNotifyListeners = () => {
|
|
31059
|
+
if (!prevResult) {
|
|
31060
|
+
return true;
|
|
31061
|
+
}
|
|
31062
|
+
const { notifyOnChangeProps } = this.options;
|
|
31063
|
+
const notifyOnChangePropsValue = typeof notifyOnChangeProps === "function" ? notifyOnChangeProps() : notifyOnChangeProps;
|
|
31064
|
+
if (notifyOnChangePropsValue === "all" || !notifyOnChangePropsValue && !__privateGet(this, _trackedProps).size) {
|
|
31065
|
+
return true;
|
|
31066
|
+
}
|
|
31067
|
+
const includedProps = new Set(
|
|
31068
|
+
notifyOnChangePropsValue ?? __privateGet(this, _trackedProps)
|
|
31069
|
+
);
|
|
31070
|
+
if (this.options.throwOnError) {
|
|
31071
|
+
includedProps.add("error");
|
|
31072
|
+
}
|
|
31073
|
+
return Object.keys(__privateGet(this, _currentResult)).some((key) => {
|
|
31074
|
+
const typedKey = key;
|
|
31075
|
+
const changed = __privateGet(this, _currentResult)[typedKey] !== prevResult[typedKey];
|
|
31076
|
+
return changed && includedProps.has(typedKey);
|
|
31077
|
+
});
|
|
31078
|
+
};
|
|
31079
|
+
__privateMethod(this, _QueryObserver_instances, notify_fn).call(this, { listeners: shouldNotifyListeners() });
|
|
31080
|
+
}
|
|
31081
|
+
onQueryUpdate() {
|
|
31082
|
+
this.updateResult();
|
|
31083
|
+
if (this.hasListeners()) {
|
|
31084
|
+
__privateMethod(this, _QueryObserver_instances, updateTimers_fn).call(this);
|
|
31085
|
+
}
|
|
31086
|
+
}
|
|
31087
|
+
}, _client2 = new WeakMap(), _currentQuery = new WeakMap(), _currentQueryInitialState = new WeakMap(), _currentResult = new WeakMap(), _currentResultState = new WeakMap(), _currentResultOptions = new WeakMap(), _currentThenable = new WeakMap(), _selectError = new WeakMap(), _selectFn = new WeakMap(), _selectResult = new WeakMap(), _lastQueryWithDefinedData = new WeakMap(), _staleTimeoutId = new WeakMap(), _refetchIntervalId = new WeakMap(), _currentRefetchInterval = new WeakMap(), _trackedProps = new WeakMap(), _QueryObserver_instances = new WeakSet(), executeFetch_fn = function(fetchOptions) {
|
|
31088
|
+
__privateMethod(this, _QueryObserver_instances, updateQuery_fn).call(this);
|
|
31089
|
+
let promise = __privateGet(this, _currentQuery).fetch(
|
|
31090
|
+
this.options,
|
|
31091
|
+
fetchOptions
|
|
31092
|
+
);
|
|
31093
|
+
if (!(fetchOptions == null ? void 0 : fetchOptions.throwOnError)) {
|
|
31094
|
+
promise = promise.catch(noop$1);
|
|
31095
|
+
}
|
|
31096
|
+
return promise;
|
|
31097
|
+
}, updateStaleTimeout_fn = function() {
|
|
31098
|
+
__privateMethod(this, _QueryObserver_instances, clearStaleTimeout_fn).call(this);
|
|
31099
|
+
const staleTime = resolveStaleTime(
|
|
31100
|
+
this.options.staleTime,
|
|
31101
|
+
__privateGet(this, _currentQuery)
|
|
31102
|
+
);
|
|
31103
|
+
if (isServer || __privateGet(this, _currentResult).isStale || !isValidTimeout(staleTime)) {
|
|
31104
|
+
return;
|
|
31105
|
+
}
|
|
31106
|
+
const time = timeUntilStale(__privateGet(this, _currentResult).dataUpdatedAt, staleTime);
|
|
31107
|
+
const timeout = time + 1;
|
|
31108
|
+
__privateSet(this, _staleTimeoutId, setTimeout(() => {
|
|
31109
|
+
if (!__privateGet(this, _currentResult).isStale) {
|
|
31110
|
+
this.updateResult();
|
|
31111
|
+
}
|
|
31112
|
+
}, timeout));
|
|
31113
|
+
}, computeRefetchInterval_fn = function() {
|
|
31114
|
+
return (typeof this.options.refetchInterval === "function" ? this.options.refetchInterval(__privateGet(this, _currentQuery)) : this.options.refetchInterval) ?? false;
|
|
31115
|
+
}, updateRefetchInterval_fn = function(nextInterval) {
|
|
31116
|
+
__privateMethod(this, _QueryObserver_instances, clearRefetchInterval_fn).call(this);
|
|
31117
|
+
__privateSet(this, _currentRefetchInterval, nextInterval);
|
|
31118
|
+
if (isServer || resolveEnabled(this.options.enabled, __privateGet(this, _currentQuery)) === false || !isValidTimeout(__privateGet(this, _currentRefetchInterval)) || __privateGet(this, _currentRefetchInterval) === 0) {
|
|
31119
|
+
return;
|
|
31120
|
+
}
|
|
31121
|
+
__privateSet(this, _refetchIntervalId, setInterval(() => {
|
|
31122
|
+
if (this.options.refetchIntervalInBackground || focusManager.isFocused()) {
|
|
31123
|
+
__privateMethod(this, _QueryObserver_instances, executeFetch_fn).call(this);
|
|
31124
|
+
}
|
|
31125
|
+
}, __privateGet(this, _currentRefetchInterval)));
|
|
31126
|
+
}, updateTimers_fn = function() {
|
|
31127
|
+
__privateMethod(this, _QueryObserver_instances, updateStaleTimeout_fn).call(this);
|
|
31128
|
+
__privateMethod(this, _QueryObserver_instances, updateRefetchInterval_fn).call(this, __privateMethod(this, _QueryObserver_instances, computeRefetchInterval_fn).call(this));
|
|
31129
|
+
}, clearStaleTimeout_fn = function() {
|
|
31130
|
+
if (__privateGet(this, _staleTimeoutId)) {
|
|
31131
|
+
clearTimeout(__privateGet(this, _staleTimeoutId));
|
|
31132
|
+
__privateSet(this, _staleTimeoutId, void 0);
|
|
31133
|
+
}
|
|
31134
|
+
}, clearRefetchInterval_fn = function() {
|
|
31135
|
+
if (__privateGet(this, _refetchIntervalId)) {
|
|
31136
|
+
clearInterval(__privateGet(this, _refetchIntervalId));
|
|
31137
|
+
__privateSet(this, _refetchIntervalId, void 0);
|
|
31138
|
+
}
|
|
31139
|
+
}, updateQuery_fn = function() {
|
|
31140
|
+
const query = __privateGet(this, _client2).getQueryCache().build(__privateGet(this, _client2), this.options);
|
|
31141
|
+
if (query === __privateGet(this, _currentQuery)) {
|
|
31142
|
+
return;
|
|
31143
|
+
}
|
|
31144
|
+
const prevQuery = __privateGet(this, _currentQuery);
|
|
31145
|
+
__privateSet(this, _currentQuery, query);
|
|
31146
|
+
__privateSet(this, _currentQueryInitialState, query.state);
|
|
31147
|
+
if (this.hasListeners()) {
|
|
31148
|
+
prevQuery == null ? void 0 : prevQuery.removeObserver(this);
|
|
31149
|
+
query.addObserver(this);
|
|
31150
|
+
}
|
|
31151
|
+
}, notify_fn = function(notifyOptions) {
|
|
31152
|
+
notifyManager.batch(() => {
|
|
31153
|
+
if (notifyOptions.listeners) {
|
|
31154
|
+
this.listeners.forEach((listener) => {
|
|
31155
|
+
listener(__privateGet(this, _currentResult));
|
|
31156
|
+
});
|
|
31157
|
+
}
|
|
31158
|
+
__privateGet(this, _client2).getQueryCache().notify({
|
|
31159
|
+
query: __privateGet(this, _currentQuery),
|
|
31160
|
+
type: "observerResultsUpdated"
|
|
31161
|
+
});
|
|
31162
|
+
});
|
|
31163
|
+
}, _i);
|
|
31164
|
+
function shouldLoadOnMount(query, options2) {
|
|
31165
|
+
return resolveEnabled(options2.enabled, query) !== false && query.state.data === void 0 && !(query.state.status === "error" && options2.retryOnMount === false);
|
|
31166
|
+
}
|
|
31167
|
+
function shouldFetchOnMount(query, options2) {
|
|
31168
|
+
return shouldLoadOnMount(query, options2) || query.state.data !== void 0 && shouldFetchOn(query, options2, options2.refetchOnMount);
|
|
31169
|
+
}
|
|
31170
|
+
function shouldFetchOn(query, options2, field) {
|
|
31171
|
+
if (resolveEnabled(options2.enabled, query) !== false) {
|
|
31172
|
+
const value = typeof field === "function" ? field(query) : field;
|
|
31173
|
+
return value === "always" || value !== false && isStale(query, options2);
|
|
31174
|
+
}
|
|
31175
|
+
return false;
|
|
31176
|
+
}
|
|
31177
|
+
function shouldFetchOptionally(query, prevQuery, options2, prevOptions) {
|
|
31178
|
+
return (query !== prevQuery || resolveEnabled(prevOptions.enabled, query) === false) && (!options2.suspense || query.state.status !== "error") && isStale(query, options2);
|
|
31179
|
+
}
|
|
31180
|
+
function isStale(query, options2) {
|
|
31181
|
+
return resolveEnabled(options2.enabled, query) !== false && query.isStaleByTime(resolveStaleTime(options2.staleTime, query));
|
|
31182
|
+
}
|
|
31183
|
+
function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
|
|
31184
|
+
if (!shallowEqualObjects(observer.getCurrentResult(), optimisticResult)) {
|
|
31185
|
+
return true;
|
|
31186
|
+
}
|
|
31187
|
+
return false;
|
|
31188
|
+
}
|
|
30740
31189
|
var QueryClientContext = React.createContext(
|
|
30741
31190
|
void 0
|
|
30742
31191
|
);
|
|
@@ -30759,6 +31208,140 @@ var QueryClientProvider = ({
|
|
|
30759
31208
|
}, [client2]);
|
|
30760
31209
|
return /* @__PURE__ */ jsx$1(QueryClientContext.Provider, { value: client2, children });
|
|
30761
31210
|
};
|
|
31211
|
+
var IsRestoringContext = React.createContext(false);
|
|
31212
|
+
var useIsRestoring = () => React.useContext(IsRestoringContext);
|
|
31213
|
+
IsRestoringContext.Provider;
|
|
31214
|
+
function createValue() {
|
|
31215
|
+
let isReset = false;
|
|
31216
|
+
return {
|
|
31217
|
+
clearReset: () => {
|
|
31218
|
+
isReset = false;
|
|
31219
|
+
},
|
|
31220
|
+
reset: () => {
|
|
31221
|
+
isReset = true;
|
|
31222
|
+
},
|
|
31223
|
+
isReset: () => {
|
|
31224
|
+
return isReset;
|
|
31225
|
+
}
|
|
31226
|
+
};
|
|
31227
|
+
}
|
|
31228
|
+
var QueryErrorResetBoundaryContext = React.createContext(createValue());
|
|
31229
|
+
var useQueryErrorResetBoundary = () => React.useContext(QueryErrorResetBoundaryContext);
|
|
31230
|
+
function shouldThrowError(throwError, params) {
|
|
31231
|
+
if (typeof throwError === "function") {
|
|
31232
|
+
return throwError(...params);
|
|
31233
|
+
}
|
|
31234
|
+
return !!throwError;
|
|
31235
|
+
}
|
|
31236
|
+
function noop() {
|
|
31237
|
+
}
|
|
31238
|
+
var ensurePreventErrorBoundaryRetry = (options2, errorResetBoundary) => {
|
|
31239
|
+
if (options2.suspense || options2.throwOnError || options2.experimental_prefetchInRender) {
|
|
31240
|
+
if (!errorResetBoundary.isReset()) {
|
|
31241
|
+
options2.retryOnMount = false;
|
|
31242
|
+
}
|
|
31243
|
+
}
|
|
31244
|
+
};
|
|
31245
|
+
var useClearResetErrorBoundary = (errorResetBoundary) => {
|
|
31246
|
+
React.useEffect(() => {
|
|
31247
|
+
errorResetBoundary.clearReset();
|
|
31248
|
+
}, [errorResetBoundary]);
|
|
31249
|
+
};
|
|
31250
|
+
var getHasError = ({
|
|
31251
|
+
result,
|
|
31252
|
+
errorResetBoundary,
|
|
31253
|
+
throwOnError,
|
|
31254
|
+
query,
|
|
31255
|
+
suspense
|
|
31256
|
+
}) => {
|
|
31257
|
+
return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
|
|
31258
|
+
};
|
|
31259
|
+
var ensureSuspenseTimers = (defaultedOptions) => {
|
|
31260
|
+
const originalStaleTime = defaultedOptions.staleTime;
|
|
31261
|
+
if (defaultedOptions.suspense) {
|
|
31262
|
+
defaultedOptions.staleTime = typeof originalStaleTime === "function" ? (...args) => Math.max(originalStaleTime(...args), 1e3) : Math.max(originalStaleTime ?? 1e3, 1e3);
|
|
31263
|
+
if (typeof defaultedOptions.gcTime === "number") {
|
|
31264
|
+
defaultedOptions.gcTime = Math.max(defaultedOptions.gcTime, 1e3);
|
|
31265
|
+
}
|
|
31266
|
+
}
|
|
31267
|
+
};
|
|
31268
|
+
var willFetch = (result, isRestoring) => result.isLoading && result.isFetching && !isRestoring;
|
|
31269
|
+
var shouldSuspend = (defaultedOptions, result) => (defaultedOptions == null ? void 0 : defaultedOptions.suspense) && result.isPending;
|
|
31270
|
+
var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).catch(() => {
|
|
31271
|
+
errorResetBoundary.clearReset();
|
|
31272
|
+
});
|
|
31273
|
+
function useBaseQuery(options2, Observer, queryClient) {
|
|
31274
|
+
var _a2, _b2, _c2, _d2, _e3;
|
|
31275
|
+
const client2 = useQueryClient();
|
|
31276
|
+
const isRestoring = useIsRestoring();
|
|
31277
|
+
const errorResetBoundary = useQueryErrorResetBoundary();
|
|
31278
|
+
const defaultedOptions = client2.defaultQueryOptions(options2);
|
|
31279
|
+
(_b2 = (_a2 = client2.getDefaultOptions().queries) == null ? void 0 : _a2._experimental_beforeQuery) == null ? void 0 : _b2.call(
|
|
31280
|
+
_a2,
|
|
31281
|
+
defaultedOptions
|
|
31282
|
+
);
|
|
31283
|
+
defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
|
|
31284
|
+
ensureSuspenseTimers(defaultedOptions);
|
|
31285
|
+
ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary);
|
|
31286
|
+
useClearResetErrorBoundary(errorResetBoundary);
|
|
31287
|
+
const isNewCacheEntry = !client2.getQueryCache().get(defaultedOptions.queryHash);
|
|
31288
|
+
const [observer] = React.useState(
|
|
31289
|
+
() => new Observer(
|
|
31290
|
+
client2,
|
|
31291
|
+
defaultedOptions
|
|
31292
|
+
)
|
|
31293
|
+
);
|
|
31294
|
+
const result = observer.getOptimisticResult(defaultedOptions);
|
|
31295
|
+
const shouldSubscribe = !isRestoring && options2.subscribed !== false;
|
|
31296
|
+
React.useSyncExternalStore(
|
|
31297
|
+
React.useCallback(
|
|
31298
|
+
(onStoreChange) => {
|
|
31299
|
+
const unsubscribe = shouldSubscribe ? observer.subscribe(notifyManager.batchCalls(onStoreChange)) : noop;
|
|
31300
|
+
observer.updateResult();
|
|
31301
|
+
return unsubscribe;
|
|
31302
|
+
},
|
|
31303
|
+
[observer, shouldSubscribe]
|
|
31304
|
+
),
|
|
31305
|
+
() => observer.getCurrentResult(),
|
|
31306
|
+
() => observer.getCurrentResult()
|
|
31307
|
+
);
|
|
31308
|
+
React.useEffect(() => {
|
|
31309
|
+
observer.setOptions(defaultedOptions);
|
|
31310
|
+
}, [defaultedOptions, observer]);
|
|
31311
|
+
if (shouldSuspend(defaultedOptions, result)) {
|
|
31312
|
+
throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary);
|
|
31313
|
+
}
|
|
31314
|
+
if (getHasError({
|
|
31315
|
+
result,
|
|
31316
|
+
errorResetBoundary,
|
|
31317
|
+
throwOnError: defaultedOptions.throwOnError,
|
|
31318
|
+
query: client2.getQueryCache().get(defaultedOptions.queryHash),
|
|
31319
|
+
suspense: defaultedOptions.suspense
|
|
31320
|
+
})) {
|
|
31321
|
+
throw result.error;
|
|
31322
|
+
}
|
|
31323
|
+
(_d2 = (_c2 = client2.getDefaultOptions().queries) == null ? void 0 : _c2._experimental_afterQuery) == null ? void 0 : _d2.call(
|
|
31324
|
+
_c2,
|
|
31325
|
+
defaultedOptions,
|
|
31326
|
+
result
|
|
31327
|
+
);
|
|
31328
|
+
if (defaultedOptions.experimental_prefetchInRender && !isServer && willFetch(result, isRestoring)) {
|
|
31329
|
+
const promise = isNewCacheEntry ? (
|
|
31330
|
+
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
31331
|
+
fetchOptimistic(defaultedOptions, observer, errorResetBoundary)
|
|
31332
|
+
) : (
|
|
31333
|
+
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
|
31334
|
+
(_e3 = client2.getQueryCache().get(defaultedOptions.queryHash)) == null ? void 0 : _e3.promise
|
|
31335
|
+
);
|
|
31336
|
+
promise == null ? void 0 : promise.catch(noop).finally(() => {
|
|
31337
|
+
observer.updateResult();
|
|
31338
|
+
});
|
|
31339
|
+
}
|
|
31340
|
+
return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
|
|
31341
|
+
}
|
|
31342
|
+
function useQuery(options2, queryClient) {
|
|
31343
|
+
return useBaseQuery(options2, QueryObserver);
|
|
31344
|
+
}
|
|
30762
31345
|
const FormInput = forwardRef(function FormInput2(props, ref) {
|
|
30763
31346
|
const { icon, errorMessage, isDirty, containerClassName, inputClassName, errorMessageClassName, hideErrors = false, ...delegatedProps } = props;
|
|
30764
31347
|
const type = props.type ?? "text";
|
|
@@ -50723,7 +51306,7 @@ const downloadFile = async (document2) => {
|
|
|
50723
51306
|
window.document.body.appendChild(link);
|
|
50724
51307
|
link.click();
|
|
50725
51308
|
window.document.body.removeChild(link);
|
|
50726
|
-
}).catch(logger$
|
|
51309
|
+
}).catch(logger$2.error);
|
|
50727
51310
|
};
|
|
50728
51311
|
async function exportFile(document2, getDocumentModelModule2) {
|
|
50729
51312
|
var _a2, _b2;
|
|
@@ -50920,7 +51503,7 @@ async function signOperation(operation, sign, documentId, document2, reducer2, u
|
|
|
50920
51503
|
if (!operation.context) return operation;
|
|
50921
51504
|
if (!operation.context.signer) return operation;
|
|
50922
51505
|
if (!reducer2) {
|
|
50923
|
-
logger$
|
|
51506
|
+
logger$2.error(
|
|
50924
51507
|
`Document model '${document2.documentType}' does not have a reducer`
|
|
50925
51508
|
);
|
|
50926
51509
|
return operation;
|
|
@@ -52822,7 +53405,7 @@ function useFileNodeDocument(props) {
|
|
|
52822
53405
|
}
|
|
52823
53406
|
)
|
|
52824
53407
|
).catch((error) => {
|
|
52825
|
-
logger$
|
|
53408
|
+
logger$2.error(error);
|
|
52826
53409
|
setFileNodeDocument({
|
|
52827
53410
|
driveId,
|
|
52828
53411
|
documentId,
|
|
@@ -52854,7 +53437,7 @@ function useFileNodeDocument(props) {
|
|
|
52854
53437
|
fileNodeDocument.driveId,
|
|
52855
53438
|
fileNodeDocument.documentId,
|
|
52856
53439
|
fileNodeDocument.documentType
|
|
52857
|
-
).then(setSelectedDocument).catch(logger$
|
|
53440
|
+
).then(setSelectedDocument).catch(logger$2.error);
|
|
52858
53441
|
}
|
|
52859
53442
|
});
|
|
52860
53443
|
return removeListener;
|
|
@@ -55612,7 +56195,7 @@ function makeLogger() {
|
|
|
55612
56195
|
}
|
|
55613
56196
|
return logger2;
|
|
55614
56197
|
}
|
|
55615
|
-
const logger = makeLogger();
|
|
56198
|
+
const logger$1 = makeLogger();
|
|
55616
56199
|
const DSN_REGEX = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;
|
|
55617
56200
|
function isValidProtocol(protocol) {
|
|
55618
56201
|
return protocol === "http" || protocol === "https";
|
|
@@ -55664,7 +56247,7 @@ function validateDsn(dsn) {
|
|
|
55664
56247
|
const requiredComponents = ["protocol", "publicKey", "host", "projectId"];
|
|
55665
56248
|
const hasMissingRequiredComponent = requiredComponents.find((component) => {
|
|
55666
56249
|
if (!dsn[component]) {
|
|
55667
|
-
logger.error(`Invalid Sentry Dsn: ${component} missing`);
|
|
56250
|
+
logger$1.error(`Invalid Sentry Dsn: ${component} missing`);
|
|
55668
56251
|
return true;
|
|
55669
56252
|
}
|
|
55670
56253
|
return false;
|
|
@@ -55673,15 +56256,15 @@ function validateDsn(dsn) {
|
|
|
55673
56256
|
return false;
|
|
55674
56257
|
}
|
|
55675
56258
|
if (!projectId.match(/^\d+$/)) {
|
|
55676
|
-
logger.error(`Invalid Sentry Dsn: Invalid projectId ${projectId}`);
|
|
56259
|
+
logger$1.error(`Invalid Sentry Dsn: Invalid projectId ${projectId}`);
|
|
55677
56260
|
return false;
|
|
55678
56261
|
}
|
|
55679
56262
|
if (!isValidProtocol(protocol)) {
|
|
55680
|
-
logger.error(`Invalid Sentry Dsn: Invalid protocol ${protocol}`);
|
|
56263
|
+
logger$1.error(`Invalid Sentry Dsn: Invalid protocol ${protocol}`);
|
|
55681
56264
|
return false;
|
|
55682
56265
|
}
|
|
55683
56266
|
if (port && isNaN(parseInt(port, 10))) {
|
|
55684
|
-
logger.error(`Invalid Sentry Dsn: Invalid port ${port}`);
|
|
56267
|
+
logger$1.error(`Invalid Sentry Dsn: Invalid port ${port}`);
|
|
55685
56268
|
return false;
|
|
55686
56269
|
}
|
|
55687
56270
|
return true;
|
|
@@ -55723,7 +56306,7 @@ function addNonEnumerableProperty(obj, name2, value) {
|
|
|
55723
56306
|
configurable: true
|
|
55724
56307
|
});
|
|
55725
56308
|
} catch (o_O) {
|
|
55726
|
-
DEBUG_BUILD$5 && logger.log(`Failed to add non-enumerable property "${name2}" to object`, obj);
|
|
56309
|
+
DEBUG_BUILD$5 && logger$1.log(`Failed to add non-enumerable property "${name2}" to object`, obj);
|
|
55727
56310
|
}
|
|
55728
56311
|
}
|
|
55729
56312
|
function markFunctionWrapped(wrapped, original) {
|
|
@@ -55938,7 +56521,7 @@ function triggerHandlers$1(type, data) {
|
|
|
55938
56521
|
try {
|
|
55939
56522
|
handler(data);
|
|
55940
56523
|
} catch (e2) {
|
|
55941
|
-
DEBUG_BUILD$5 && logger.error(
|
|
56524
|
+
DEBUG_BUILD$5 && logger$1.error(
|
|
55942
56525
|
`Error while triggering instrumentation handler.
|
|
55943
56526
|
Type: ${type}
|
|
55944
56527
|
Name: ${getFunctionName(handler)}
|
|
@@ -56220,7 +56803,7 @@ function supportsNativeFetch() {
|
|
|
56220
56803
|
}
|
|
56221
56804
|
doc.head.removeChild(sandbox);
|
|
56222
56805
|
} catch (err) {
|
|
56223
|
-
DEBUG_BUILD$5 && logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", err);
|
|
56806
|
+
DEBUG_BUILD$5 && logger$1.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", err);
|
|
56224
56807
|
}
|
|
56225
56808
|
}
|
|
56226
56809
|
return result;
|
|
@@ -56986,7 +57569,7 @@ function objectToBaggageHeader(object) {
|
|
|
56986
57569
|
const baggageEntry = `${encodeURIComponent(objectKey)}=${encodeURIComponent(objectValue)}`;
|
|
56987
57570
|
const newBaggageHeader = currentIndex === 0 ? baggageEntry : `${baggageHeader},${baggageEntry}`;
|
|
56988
57571
|
if (newBaggageHeader.length > MAX_BAGGAGE_STRING_LENGTH) {
|
|
56989
|
-
DEBUG_BUILD$5 && logger.warn(
|
|
57572
|
+
DEBUG_BUILD$5 && logger$1.warn(
|
|
56990
57573
|
`Not adding key: ${objectKey} with val: ${objectValue} to baggage header due to exceeding baggage size limits.`
|
|
56991
57574
|
);
|
|
56992
57575
|
return baggageHeader;
|
|
@@ -57257,7 +57840,7 @@ function notifyEventProcessors(processors, event, hint, index2 = 0) {
|
|
|
57257
57840
|
resolve(event);
|
|
57258
57841
|
} else {
|
|
57259
57842
|
const result = processor({ ...event }, hint);
|
|
57260
|
-
DEBUG_BUILD$4 && processor.id && result === null && logger.log(`Event processor "${processor.id}" dropped event`);
|
|
57843
|
+
DEBUG_BUILD$4 && processor.id && result === null && logger$1.log(`Event processor "${processor.id}" dropped event`);
|
|
57261
57844
|
if (isThenable(result)) {
|
|
57262
57845
|
void result.then((final) => notifyEventProcessors(processors, final, hint, index2 + 1).then(resolve)).then(null, reject);
|
|
57263
57846
|
} else {
|
|
@@ -58370,7 +58953,7 @@ class Scope {
|
|
|
58370
58953
|
captureException(exception, hint) {
|
|
58371
58954
|
const eventId = hint && hint.event_id ? hint.event_id : uuid4();
|
|
58372
58955
|
if (!this._client) {
|
|
58373
|
-
logger.warn("No client configured on scope - will not capture exception!");
|
|
58956
|
+
logger$1.warn("No client configured on scope - will not capture exception!");
|
|
58374
58957
|
return eventId;
|
|
58375
58958
|
}
|
|
58376
58959
|
const syntheticException = new Error("Sentry syntheticException");
|
|
@@ -58397,7 +58980,7 @@ class Scope {
|
|
|
58397
58980
|
captureMessage(message, level, hint) {
|
|
58398
58981
|
const eventId = hint && hint.event_id ? hint.event_id : uuid4();
|
|
58399
58982
|
if (!this._client) {
|
|
58400
|
-
logger.warn("No client configured on scope - will not capture message!");
|
|
58983
|
+
logger$1.warn("No client configured on scope - will not capture message!");
|
|
58401
58984
|
return eventId;
|
|
58402
58985
|
}
|
|
58403
58986
|
const syntheticException = new Error(message);
|
|
@@ -58424,7 +59007,7 @@ class Scope {
|
|
|
58424
59007
|
captureEvent(event, hint) {
|
|
58425
59008
|
const eventId = hint && hint.event_id ? hint.event_id : uuid4();
|
|
58426
59009
|
if (!this._client) {
|
|
58427
|
-
logger.warn("No client configured on scope - will not capture event!");
|
|
59010
|
+
logger$1.warn("No client configured on scope - will not capture event!");
|
|
58428
59011
|
return eventId;
|
|
58429
59012
|
}
|
|
58430
59013
|
this._client.captureEvent(event, { ...hint, event_id: eventId }, this);
|
|
@@ -58798,7 +59381,7 @@ class Hub {
|
|
|
58798
59381
|
try {
|
|
58799
59382
|
return client2.getIntegration(integration);
|
|
58800
59383
|
} catch (_oO) {
|
|
58801
|
-
DEBUG_BUILD$4 && logger.warn(`Cannot retrieve integration ${integration.id} from the current Hub`);
|
|
59384
|
+
DEBUG_BUILD$4 && logger$1.warn(`Cannot retrieve integration ${integration.id} from the current Hub`);
|
|
58802
59385
|
return null;
|
|
58803
59386
|
}
|
|
58804
59387
|
}
|
|
@@ -58826,11 +59409,11 @@ class Hub {
|
|
|
58826
59409
|
if (DEBUG_BUILD$4 && !result) {
|
|
58827
59410
|
const client2 = this.getClient();
|
|
58828
59411
|
if (!client2) {
|
|
58829
|
-
logger.warn(
|
|
59412
|
+
logger$1.warn(
|
|
58830
59413
|
"Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'"
|
|
58831
59414
|
);
|
|
58832
59415
|
} else {
|
|
58833
|
-
logger.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
|
|
59416
|
+
logger$1.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
|
|
58834
59417
|
Sentry.addTracingExtensions();
|
|
58835
59418
|
Sentry.init({...});
|
|
58836
59419
|
`);
|
|
@@ -58926,7 +59509,7 @@ Sentry.init({...});
|
|
|
58926
59509
|
if (sentry && sentry.extensions && typeof sentry.extensions[method] === "function") {
|
|
58927
59510
|
return sentry.extensions[method].apply(this, args);
|
|
58928
59511
|
}
|
|
58929
|
-
DEBUG_BUILD$4 && logger.warn(`Extension method ${method} couldn't be found, doing nothing.`);
|
|
59512
|
+
DEBUG_BUILD$4 && logger$1.warn(`Extension method ${method} couldn't be found, doing nothing.`);
|
|
58930
59513
|
}
|
|
58931
59514
|
}
|
|
58932
59515
|
function getMainCarrier() {
|
|
@@ -58992,7 +59575,7 @@ function errorCallback() {
|
|
|
58992
59575
|
const activeTransaction = getActiveTransaction();
|
|
58993
59576
|
if (activeTransaction) {
|
|
58994
59577
|
const status = "internal_error";
|
|
58995
|
-
DEBUG_BUILD$4 && logger.log(`[Tracing] Transaction: ${status} -> Global error occured`);
|
|
59578
|
+
DEBUG_BUILD$4 && logger$1.log(`[Tracing] Transaction: ${status} -> Global error occured`);
|
|
58996
59579
|
activeTransaction.setStatus(status);
|
|
58997
59580
|
}
|
|
58998
59581
|
}
|
|
@@ -59495,7 +60078,7 @@ class Span {
|
|
|
59495
60078
|
const nameStr = spanToJSON(childSpan).description || "< unknown name >";
|
|
59496
60079
|
const idStr = rootSpan.spanContext().spanId;
|
|
59497
60080
|
const logMessage = `[Tracing] Starting '${opStr}' span on transaction '${nameStr}' (${idStr}).`;
|
|
59498
|
-
logger.log(logMessage);
|
|
60081
|
+
logger$1.log(logMessage);
|
|
59499
60082
|
this._logMessage = logMessage;
|
|
59500
60083
|
}
|
|
59501
60084
|
return childSpan;
|
|
@@ -59592,7 +60175,7 @@ class Span {
|
|
|
59592
60175
|
rootSpan && rootSpan.spanContext().spanId !== this._spanId) {
|
|
59593
60176
|
const logMessage = this._logMessage;
|
|
59594
60177
|
if (logMessage) {
|
|
59595
|
-
logger.log(logMessage.replace("Starting", "Finishing"));
|
|
60178
|
+
logger$1.log(logMessage.replace("Starting", "Finishing"));
|
|
59596
60179
|
}
|
|
59597
60180
|
}
|
|
59598
60181
|
this._endTime = spanTimeInputToSeconds(endTimestamp);
|
|
@@ -59909,7 +60492,7 @@ class Transaction extends Span {
|
|
|
59909
60492
|
return void 0;
|
|
59910
60493
|
}
|
|
59911
60494
|
if (!this._name) {
|
|
59912
|
-
DEBUG_BUILD$4 && logger.warn("Transaction has no name, falling back to `<unlabeled transaction>`.");
|
|
60495
|
+
DEBUG_BUILD$4 && logger$1.warn("Transaction has no name, falling back to `<unlabeled transaction>`.");
|
|
59913
60496
|
this._name = "<unlabeled transaction>";
|
|
59914
60497
|
}
|
|
59915
60498
|
super.end(endTimestamp);
|
|
@@ -59918,7 +60501,7 @@ class Transaction extends Span {
|
|
|
59918
60501
|
client2.emit("finishTransaction", this);
|
|
59919
60502
|
}
|
|
59920
60503
|
if (this._sampled !== true) {
|
|
59921
|
-
DEBUG_BUILD$4 && logger.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");
|
|
60504
|
+
DEBUG_BUILD$4 && logger$1.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");
|
|
59922
60505
|
if (client2) {
|
|
59923
60506
|
client2.recordDroppedEvent("sample_rate", "transaction");
|
|
59924
60507
|
}
|
|
@@ -59968,13 +60551,13 @@ class Transaction extends Span {
|
|
|
59968
60551
|
};
|
|
59969
60552
|
const hasMeasurements = Object.keys(this._measurements).length > 0;
|
|
59970
60553
|
if (hasMeasurements) {
|
|
59971
|
-
DEBUG_BUILD$4 && logger.log(
|
|
60554
|
+
DEBUG_BUILD$4 && logger$1.log(
|
|
59972
60555
|
"[Measurements] Adding measurements to transaction",
|
|
59973
60556
|
JSON.stringify(this._measurements, void 0, 2)
|
|
59974
60557
|
);
|
|
59975
60558
|
transaction.measurements = this._measurements;
|
|
59976
60559
|
}
|
|
59977
|
-
DEBUG_BUILD$4 && logger.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`);
|
|
60560
|
+
DEBUG_BUILD$4 && logger$1.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`);
|
|
59978
60561
|
return transaction;
|
|
59979
60562
|
}
|
|
59980
60563
|
}
|
|
@@ -60043,7 +60626,7 @@ class IdleTransaction extends Transaction {
|
|
|
60043
60626
|
this._finishReason = IDLE_TRANSACTION_FINISH_REASONS[4];
|
|
60044
60627
|
this._autoFinishAllowed = !delayAutoFinishUntilSignal;
|
|
60045
60628
|
if (_onScope) {
|
|
60046
|
-
DEBUG_BUILD$4 && logger.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`);
|
|
60629
|
+
DEBUG_BUILD$4 && logger$1.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`);
|
|
60047
60630
|
_idleHub.getScope().setSpan(this);
|
|
60048
60631
|
}
|
|
60049
60632
|
if (!delayAutoFinishUntilSignal) {
|
|
@@ -60067,7 +60650,7 @@ class IdleTransaction extends Transaction {
|
|
|
60067
60650
|
}
|
|
60068
60651
|
if (this.spanRecorder) {
|
|
60069
60652
|
DEBUG_BUILD$4 && // eslint-disable-next-line deprecation/deprecation
|
|
60070
|
-
logger.log("[Tracing] finishing IdleTransaction", new Date(endTimestampInS * 1e3).toISOString(), this.op);
|
|
60653
|
+
logger$1.log("[Tracing] finishing IdleTransaction", new Date(endTimestampInS * 1e3).toISOString(), this.op);
|
|
60071
60654
|
for (const callback of this._beforeFinishCallbacks) {
|
|
60072
60655
|
callback(this, endTimestampInS);
|
|
60073
60656
|
}
|
|
@@ -60078,7 +60661,7 @@ class IdleTransaction extends Transaction {
|
|
|
60078
60661
|
if (!spanToJSON(span).timestamp) {
|
|
60079
60662
|
span.setStatus("cancelled");
|
|
60080
60663
|
span.end(endTimestampInS);
|
|
60081
|
-
DEBUG_BUILD$4 && logger.log("[Tracing] cancelling span since transaction ended early", JSON.stringify(span, void 0, 2));
|
|
60664
|
+
DEBUG_BUILD$4 && logger$1.log("[Tracing] cancelling span since transaction ended early", JSON.stringify(span, void 0, 2));
|
|
60082
60665
|
}
|
|
60083
60666
|
const { start_timestamp: startTime, timestamp: endTime } = spanToJSON(span);
|
|
60084
60667
|
const spanStartedBeforeTransactionFinish = startTime && startTime < endTimestampInS;
|
|
@@ -60087,16 +60670,16 @@ class IdleTransaction extends Transaction {
|
|
|
60087
60670
|
if (DEBUG_BUILD$4) {
|
|
60088
60671
|
const stringifiedSpan = JSON.stringify(span, void 0, 2);
|
|
60089
60672
|
if (!spanStartedBeforeTransactionFinish) {
|
|
60090
|
-
logger.log("[Tracing] discarding Span since it happened after Transaction was finished", stringifiedSpan);
|
|
60673
|
+
logger$1.log("[Tracing] discarding Span since it happened after Transaction was finished", stringifiedSpan);
|
|
60091
60674
|
} else if (!spanEndedBeforeFinalTimeout) {
|
|
60092
|
-
logger.log("[Tracing] discarding Span since it finished after Transaction final timeout", stringifiedSpan);
|
|
60675
|
+
logger$1.log("[Tracing] discarding Span since it finished after Transaction final timeout", stringifiedSpan);
|
|
60093
60676
|
}
|
|
60094
60677
|
}
|
|
60095
60678
|
return spanStartedBeforeTransactionFinish && spanEndedBeforeFinalTimeout;
|
|
60096
60679
|
});
|
|
60097
|
-
DEBUG_BUILD$4 && logger.log("[Tracing] flushing IdleTransaction");
|
|
60680
|
+
DEBUG_BUILD$4 && logger$1.log("[Tracing] flushing IdleTransaction");
|
|
60098
60681
|
} else {
|
|
60099
|
-
DEBUG_BUILD$4 && logger.log("[Tracing] No active IdleTransaction");
|
|
60682
|
+
DEBUG_BUILD$4 && logger$1.log("[Tracing] No active IdleTransaction");
|
|
60100
60683
|
}
|
|
60101
60684
|
if (this._onScope) {
|
|
60102
60685
|
const scope = this._idleHub.getScope();
|
|
@@ -60134,7 +60717,7 @@ class IdleTransaction extends Transaction {
|
|
|
60134
60717
|
this._popActivity(id);
|
|
60135
60718
|
};
|
|
60136
60719
|
this.spanRecorder = new IdleTransactionSpanRecorder(pushActivity, popActivity, this.spanContext().spanId, maxlen);
|
|
60137
|
-
DEBUG_BUILD$4 && logger.log("Starting heartbeat");
|
|
60720
|
+
DEBUG_BUILD$4 && logger$1.log("Starting heartbeat");
|
|
60138
60721
|
this._pingHeartbeat();
|
|
60139
60722
|
}
|
|
60140
60723
|
this.spanRecorder.add(this);
|
|
@@ -60177,7 +60760,7 @@ class IdleTransaction extends Transaction {
|
|
|
60177
60760
|
*/
|
|
60178
60761
|
sendAutoFinishSignal() {
|
|
60179
60762
|
if (!this._autoFinishAllowed) {
|
|
60180
|
-
DEBUG_BUILD$4 && logger.log("[Tracing] Received finish signal for idle transaction.");
|
|
60763
|
+
DEBUG_BUILD$4 && logger$1.log("[Tracing] Received finish signal for idle transaction.");
|
|
60181
60764
|
this._restartIdleTimeout();
|
|
60182
60765
|
this._autoFinishAllowed = true;
|
|
60183
60766
|
}
|
|
@@ -60200,9 +60783,9 @@ class IdleTransaction extends Transaction {
|
|
|
60200
60783
|
*/
|
|
60201
60784
|
_pushActivity(spanId) {
|
|
60202
60785
|
this.cancelIdleTimeout(void 0, { restartOnChildSpanChange: !this._idleTimeoutCanceledPermanently });
|
|
60203
|
-
DEBUG_BUILD$4 && logger.log(`[Tracing] pushActivity: ${spanId}`);
|
|
60786
|
+
DEBUG_BUILD$4 && logger$1.log(`[Tracing] pushActivity: ${spanId}`);
|
|
60204
60787
|
this.activities[spanId] = true;
|
|
60205
|
-
DEBUG_BUILD$4 && logger.log("[Tracing] new activities count", Object.keys(this.activities).length);
|
|
60788
|
+
DEBUG_BUILD$4 && logger$1.log("[Tracing] new activities count", Object.keys(this.activities).length);
|
|
60206
60789
|
}
|
|
60207
60790
|
/**
|
|
60208
60791
|
* Remove an activity from usage
|
|
@@ -60210,9 +60793,9 @@ class IdleTransaction extends Transaction {
|
|
|
60210
60793
|
*/
|
|
60211
60794
|
_popActivity(spanId) {
|
|
60212
60795
|
if (this.activities[spanId]) {
|
|
60213
|
-
DEBUG_BUILD$4 && logger.log(`[Tracing] popActivity ${spanId}`);
|
|
60796
|
+
DEBUG_BUILD$4 && logger$1.log(`[Tracing] popActivity ${spanId}`);
|
|
60214
60797
|
delete this.activities[spanId];
|
|
60215
|
-
DEBUG_BUILD$4 && logger.log("[Tracing] new activities count", Object.keys(this.activities).length);
|
|
60798
|
+
DEBUG_BUILD$4 && logger$1.log("[Tracing] new activities count", Object.keys(this.activities).length);
|
|
60216
60799
|
}
|
|
60217
60800
|
if (Object.keys(this.activities).length === 0) {
|
|
60218
60801
|
const endTimestamp = timestampInSeconds();
|
|
@@ -60243,7 +60826,7 @@ class IdleTransaction extends Transaction {
|
|
|
60243
60826
|
this._prevHeartbeatString = heartbeatString;
|
|
60244
60827
|
if (this._heartbeatCounter >= 3) {
|
|
60245
60828
|
if (this._autoFinishAllowed) {
|
|
60246
|
-
DEBUG_BUILD$4 && logger.log("[Tracing] Transaction finished because of no change for 3 heart beats");
|
|
60829
|
+
DEBUG_BUILD$4 && logger$1.log("[Tracing] Transaction finished because of no change for 3 heart beats");
|
|
60247
60830
|
this.setStatus("deadline_exceeded");
|
|
60248
60831
|
this._finishReason = IDLE_TRANSACTION_FINISH_REASONS[0];
|
|
60249
60832
|
this.end();
|
|
@@ -60256,7 +60839,7 @@ class IdleTransaction extends Transaction {
|
|
|
60256
60839
|
* Pings the heartbeat
|
|
60257
60840
|
*/
|
|
60258
60841
|
_pingHeartbeat() {
|
|
60259
|
-
DEBUG_BUILD$4 && logger.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`);
|
|
60842
|
+
DEBUG_BUILD$4 && logger$1.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`);
|
|
60260
60843
|
setTimeout(() => {
|
|
60261
60844
|
this._beat();
|
|
60262
60845
|
}, this._heartbeatInterval);
|
|
@@ -60285,12 +60868,12 @@ function sampleTransaction(transaction, options2, samplingContext) {
|
|
|
60285
60868
|
transaction.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, sampleRate);
|
|
60286
60869
|
}
|
|
60287
60870
|
if (!isValidSampleRate(sampleRate)) {
|
|
60288
|
-
DEBUG_BUILD$4 && logger.warn("[Tracing] Discarding transaction because of invalid sample rate.");
|
|
60871
|
+
DEBUG_BUILD$4 && logger$1.warn("[Tracing] Discarding transaction because of invalid sample rate.");
|
|
60289
60872
|
transaction.sampled = false;
|
|
60290
60873
|
return transaction;
|
|
60291
60874
|
}
|
|
60292
60875
|
if (!sampleRate) {
|
|
60293
|
-
DEBUG_BUILD$4 && logger.log(
|
|
60876
|
+
DEBUG_BUILD$4 && logger$1.log(
|
|
60294
60877
|
`[Tracing] Discarding transaction because ${typeof options2.tracesSampler === "function" ? "tracesSampler returned 0 or false" : "a negative sampling decision was inherited or tracesSampleRate is set to 0"}`
|
|
60295
60878
|
);
|
|
60296
60879
|
transaction.sampled = false;
|
|
@@ -60298,7 +60881,7 @@ function sampleTransaction(transaction, options2, samplingContext) {
|
|
|
60298
60881
|
}
|
|
60299
60882
|
transaction.sampled = Math.random() < sampleRate;
|
|
60300
60883
|
if (!transaction.sampled) {
|
|
60301
|
-
DEBUG_BUILD$4 && logger.log(
|
|
60884
|
+
DEBUG_BUILD$4 && logger$1.log(
|
|
60302
60885
|
`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(
|
|
60303
60886
|
sampleRate
|
|
60304
60887
|
)})`
|
|
@@ -60306,12 +60889,12 @@ function sampleTransaction(transaction, options2, samplingContext) {
|
|
|
60306
60889
|
return transaction;
|
|
60307
60890
|
}
|
|
60308
60891
|
DEBUG_BUILD$4 && // eslint-disable-next-line deprecation/deprecation
|
|
60309
|
-
logger.log(`[Tracing] starting ${transaction.op} transaction - ${spanToJSON(transaction).description}`);
|
|
60892
|
+
logger$1.log(`[Tracing] starting ${transaction.op} transaction - ${spanToJSON(transaction).description}`);
|
|
60310
60893
|
return transaction;
|
|
60311
60894
|
}
|
|
60312
60895
|
function isValidSampleRate(rate) {
|
|
60313
60896
|
if (isNaN$1(rate) || !(typeof rate === "number" || typeof rate === "boolean")) {
|
|
60314
|
-
DEBUG_BUILD$4 && logger.warn(
|
|
60897
|
+
DEBUG_BUILD$4 && logger$1.warn(
|
|
60315
60898
|
`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(
|
|
60316
60899
|
rate
|
|
60317
60900
|
)} of type ${JSON.stringify(typeof rate)}.`
|
|
@@ -60319,7 +60902,7 @@ function isValidSampleRate(rate) {
|
|
|
60319
60902
|
return false;
|
|
60320
60903
|
}
|
|
60321
60904
|
if (rate < 0 || rate > 1) {
|
|
60322
|
-
DEBUG_BUILD$4 && logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${rate}.`);
|
|
60905
|
+
DEBUG_BUILD$4 && logger$1.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${rate}.`);
|
|
60323
60906
|
return false;
|
|
60324
60907
|
}
|
|
60325
60908
|
return true;
|
|
@@ -60337,7 +60920,7 @@ function _startTransaction(transactionContext, customSamplingContext) {
|
|
|
60337
60920
|
const configInstrumenter = options2.instrumenter || "sentry";
|
|
60338
60921
|
const transactionInstrumenter = transactionContext.instrumenter || "sentry";
|
|
60339
60922
|
if (configInstrumenter !== transactionInstrumenter) {
|
|
60340
|
-
DEBUG_BUILD$4 && logger.error(
|
|
60923
|
+
DEBUG_BUILD$4 && logger$1.error(
|
|
60341
60924
|
`A transaction was started with instrumenter=\`${transactionInstrumenter}\`, but the SDK is configured with the \`${configInstrumenter}\` instrumenter.
|
|
60342
60925
|
The transaction will not be sampled. Please use the ${configInstrumenter} instrumentation to start transactions.`
|
|
60343
60926
|
);
|
|
@@ -60520,7 +61103,7 @@ function afterSetupIntegrations(client2, integrations) {
|
|
|
60520
61103
|
}
|
|
60521
61104
|
function setupIntegration(client2, integration, integrationIndex) {
|
|
60522
61105
|
if (integrationIndex[integration.name]) {
|
|
60523
|
-
DEBUG_BUILD$4 && logger.log(`Integration skipped because it was already installed: ${integration.name}`);
|
|
61106
|
+
DEBUG_BUILD$4 && logger$1.log(`Integration skipped because it was already installed: ${integration.name}`);
|
|
60524
61107
|
return;
|
|
60525
61108
|
}
|
|
60526
61109
|
integrationIndex[integration.name] = integration;
|
|
@@ -60542,7 +61125,7 @@ function setupIntegration(client2, integration, integrationIndex) {
|
|
|
60542
61125
|
});
|
|
60543
61126
|
client2.addEventProcessor(processor);
|
|
60544
61127
|
}
|
|
60545
|
-
DEBUG_BUILD$4 && logger.log(`Integration installed: ${integration.name}`);
|
|
61128
|
+
DEBUG_BUILD$4 && logger$1.log(`Integration installed: ${integration.name}`);
|
|
60546
61129
|
}
|
|
60547
61130
|
function findIndex(arr, callback) {
|
|
60548
61131
|
for (let i2 = 0; i2 < arr.length; i2++) {
|
|
@@ -60627,7 +61210,7 @@ class BaseClient {
|
|
|
60627
61210
|
if (options2.dsn) {
|
|
60628
61211
|
this._dsn = makeDsn(options2.dsn);
|
|
60629
61212
|
} else {
|
|
60630
|
-
DEBUG_BUILD$4 && logger.warn("No DSN provided, client will not send events.");
|
|
61213
|
+
DEBUG_BUILD$4 && logger$1.warn("No DSN provided, client will not send events.");
|
|
60631
61214
|
}
|
|
60632
61215
|
if (this._dsn) {
|
|
60633
61216
|
const url = getEnvelopeEndpointWithUrlEncodedAuth(this._dsn, options2);
|
|
@@ -60645,7 +61228,7 @@ class BaseClient {
|
|
|
60645
61228
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
60646
61229
|
captureException(exception, hint, scope) {
|
|
60647
61230
|
if (checkOrSetAlreadyCaught(exception)) {
|
|
60648
|
-
DEBUG_BUILD$4 && logger.log(ALREADY_SEEN_ERROR);
|
|
61231
|
+
DEBUG_BUILD$4 && logger$1.log(ALREADY_SEEN_ERROR);
|
|
60649
61232
|
return;
|
|
60650
61233
|
}
|
|
60651
61234
|
let eventId = hint && hint.event_id;
|
|
@@ -60675,7 +61258,7 @@ class BaseClient {
|
|
|
60675
61258
|
*/
|
|
60676
61259
|
captureEvent(event, hint, scope) {
|
|
60677
61260
|
if (hint && hint.originalException && checkOrSetAlreadyCaught(hint.originalException)) {
|
|
60678
|
-
DEBUG_BUILD$4 && logger.log(ALREADY_SEEN_ERROR);
|
|
61261
|
+
DEBUG_BUILD$4 && logger$1.log(ALREADY_SEEN_ERROR);
|
|
60679
61262
|
return;
|
|
60680
61263
|
}
|
|
60681
61264
|
let eventId = hint && hint.event_id;
|
|
@@ -60693,7 +61276,7 @@ class BaseClient {
|
|
|
60693
61276
|
*/
|
|
60694
61277
|
captureSession(session) {
|
|
60695
61278
|
if (!(typeof session.release === "string")) {
|
|
60696
|
-
DEBUG_BUILD$4 && logger.warn("Discarded session because of missing or non-string release");
|
|
61279
|
+
DEBUG_BUILD$4 && logger$1.warn("Discarded session because of missing or non-string release");
|
|
60697
61280
|
} else {
|
|
60698
61281
|
this.sendSession(session);
|
|
60699
61282
|
updateSession(session, { init: false });
|
|
@@ -60801,7 +61384,7 @@ class BaseClient {
|
|
|
60801
61384
|
try {
|
|
60802
61385
|
return this._integrations[integration.id] || null;
|
|
60803
61386
|
} catch (_oO) {
|
|
60804
|
-
DEBUG_BUILD$4 && logger.warn(`Cannot retrieve integration ${integration.id} from the current Client`);
|
|
61387
|
+
DEBUG_BUILD$4 && logger$1.warn(`Cannot retrieve integration ${integration.id} from the current Client`);
|
|
60805
61388
|
return null;
|
|
60806
61389
|
}
|
|
60807
61390
|
}
|
|
@@ -60849,7 +61432,7 @@ class BaseClient {
|
|
|
60849
61432
|
if (this._options.sendClientReports) {
|
|
60850
61433
|
const count2 = typeof eventOrCount === "number" ? eventOrCount : 1;
|
|
60851
61434
|
const key = `${reason}:${category}`;
|
|
60852
|
-
DEBUG_BUILD$4 && logger.log(`Recording outcome: "${key}"${count2 > 1 ? ` (${count2} times)` : ""}`);
|
|
61435
|
+
DEBUG_BUILD$4 && logger$1.log(`Recording outcome: "${key}"${count2 > 1 ? ` (${count2} times)` : ""}`);
|
|
60853
61436
|
this._outcomes[key] = (this._outcomes[key] || 0) + count2;
|
|
60854
61437
|
}
|
|
60855
61438
|
}
|
|
@@ -60857,7 +61440,7 @@ class BaseClient {
|
|
|
60857
61440
|
* @inheritDoc
|
|
60858
61441
|
*/
|
|
60859
61442
|
captureAggregateMetrics(metricBucketItems) {
|
|
60860
|
-
DEBUG_BUILD$4 && logger.log(`Flushing aggregated metrics, number of metrics: ${metricBucketItems.length}`);
|
|
61443
|
+
DEBUG_BUILD$4 && logger$1.log(`Flushing aggregated metrics, number of metrics: ${metricBucketItems.length}`);
|
|
60861
61444
|
const metricsEnvelope = createMetricEnvelope(
|
|
60862
61445
|
metricBucketItems,
|
|
60863
61446
|
this._dsn,
|
|
@@ -61012,9 +61595,9 @@ class BaseClient {
|
|
|
61012
61595
|
if (DEBUG_BUILD$4) {
|
|
61013
61596
|
const sentryError = reason;
|
|
61014
61597
|
if (sentryError.logLevel === "log") {
|
|
61015
|
-
logger.log(sentryError.message);
|
|
61598
|
+
logger$1.log(sentryError.message);
|
|
61016
61599
|
} else {
|
|
61017
|
-
logger.warn(sentryError);
|
|
61600
|
+
logger$1.warn(sentryError);
|
|
61018
61601
|
}
|
|
61019
61602
|
}
|
|
61020
61603
|
return void 0;
|
|
@@ -61135,10 +61718,10 @@ Reason: ${reason}`
|
|
|
61135
61718
|
this.emit("beforeEnvelope", envelope);
|
|
61136
61719
|
if (this._isEnabled() && this._transport) {
|
|
61137
61720
|
return this._transport.send(envelope).then(null, (reason) => {
|
|
61138
|
-
DEBUG_BUILD$4 && logger.error("Error while sending event:", reason);
|
|
61721
|
+
DEBUG_BUILD$4 && logger$1.error("Error while sending event:", reason);
|
|
61139
61722
|
});
|
|
61140
61723
|
} else {
|
|
61141
|
-
DEBUG_BUILD$4 && logger.error("Transport disabled");
|
|
61724
|
+
DEBUG_BUILD$4 && logger$1.error("Transport disabled");
|
|
61142
61725
|
}
|
|
61143
61726
|
}
|
|
61144
61727
|
/**
|
|
@@ -61213,7 +61796,7 @@ function addEventProcessor(callback) {
|
|
|
61213
61796
|
function initAndBind(clientClass, options2) {
|
|
61214
61797
|
if (options2.debug === true) {
|
|
61215
61798
|
if (DEBUG_BUILD$4) {
|
|
61216
|
-
logger.enable();
|
|
61799
|
+
logger$1.enable();
|
|
61217
61800
|
} else {
|
|
61218
61801
|
consoleSandbox(() => {
|
|
61219
61802
|
console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");
|
|
@@ -61269,7 +61852,7 @@ function createTransport(options2, makeRequest, buffer2 = makePromiseBuffer(
|
|
|
61269
61852
|
const requestTask = () => makeRequest({ body: serializeEnvelope(filteredEnvelope, options2.textEncoder) }).then(
|
|
61270
61853
|
(response) => {
|
|
61271
61854
|
if (response.statusCode !== void 0 && (response.statusCode < 200 || response.statusCode >= 300)) {
|
|
61272
|
-
DEBUG_BUILD$4 && logger.warn(`Sentry responded with status code ${response.statusCode} to sent event.`);
|
|
61855
|
+
DEBUG_BUILD$4 && logger$1.warn(`Sentry responded with status code ${response.statusCode} to sent event.`);
|
|
61273
61856
|
}
|
|
61274
61857
|
rateLimits = updateRateLimits(rateLimits, response);
|
|
61275
61858
|
return response;
|
|
@@ -61283,7 +61866,7 @@ function createTransport(options2, makeRequest, buffer2 = makePromiseBuffer(
|
|
|
61283
61866
|
(result) => result,
|
|
61284
61867
|
(error) => {
|
|
61285
61868
|
if (error instanceof SentryError) {
|
|
61286
|
-
DEBUG_BUILD$4 && logger.error("Skipped sending event because buffer is full.");
|
|
61869
|
+
DEBUG_BUILD$4 && logger$1.error("Skipped sending event because buffer is full.");
|
|
61287
61870
|
recordEnvelopeLoss("queue_overflow");
|
|
61288
61871
|
return resolvedSyncPromise();
|
|
61289
61872
|
} else {
|
|
@@ -61412,26 +61995,26 @@ function _mergeOptions(internalOptions = {}, clientOptions = {}) {
|
|
|
61412
61995
|
}
|
|
61413
61996
|
function _shouldDropEvent$1(event, options2) {
|
|
61414
61997
|
if (options2.ignoreInternal && _isSentryError(event)) {
|
|
61415
|
-
DEBUG_BUILD$4 && logger.warn(`Event dropped due to being internal Sentry Error.
|
|
61998
|
+
DEBUG_BUILD$4 && logger$1.warn(`Event dropped due to being internal Sentry Error.
|
|
61416
61999
|
Event: ${getEventDescription(event)}`);
|
|
61417
62000
|
return true;
|
|
61418
62001
|
}
|
|
61419
62002
|
if (_isIgnoredError(event, options2.ignoreErrors)) {
|
|
61420
|
-
DEBUG_BUILD$4 && logger.warn(
|
|
62003
|
+
DEBUG_BUILD$4 && logger$1.warn(
|
|
61421
62004
|
`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
61422
62005
|
Event: ${getEventDescription(event)}`
|
|
61423
62006
|
);
|
|
61424
62007
|
return true;
|
|
61425
62008
|
}
|
|
61426
62009
|
if (_isIgnoredTransaction(event, options2.ignoreTransactions)) {
|
|
61427
|
-
DEBUG_BUILD$4 && logger.warn(
|
|
62010
|
+
DEBUG_BUILD$4 && logger$1.warn(
|
|
61428
62011
|
`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
61429
62012
|
Event: ${getEventDescription(event)}`
|
|
61430
62013
|
);
|
|
61431
62014
|
return true;
|
|
61432
62015
|
}
|
|
61433
62016
|
if (_isDeniedUrl(event, options2.denyUrls)) {
|
|
61434
|
-
DEBUG_BUILD$4 && logger.warn(
|
|
62017
|
+
DEBUG_BUILD$4 && logger$1.warn(
|
|
61435
62018
|
`Event dropped due to being matched by \`denyUrls\` option.
|
|
61436
62019
|
Event: ${getEventDescription(
|
|
61437
62020
|
event
|
|
@@ -61441,7 +62024,7 @@ Url: ${_getEventFilterUrl(event)}`
|
|
|
61441
62024
|
return true;
|
|
61442
62025
|
}
|
|
61443
62026
|
if (!_isAllowedUrl(event, options2.allowUrls)) {
|
|
61444
|
-
DEBUG_BUILD$4 && logger.warn(
|
|
62027
|
+
DEBUG_BUILD$4 && logger$1.warn(
|
|
61445
62028
|
`Event dropped due to not being matched by \`allowUrls\` option.
|
|
61446
62029
|
Event: ${getEventDescription(
|
|
61447
62030
|
event
|
|
@@ -61498,7 +62081,7 @@ function _getPossibleEventMessages(event) {
|
|
|
61498
62081
|
}
|
|
61499
62082
|
}
|
|
61500
62083
|
if (DEBUG_BUILD$4 && possibleMessages.length === 0) {
|
|
61501
|
-
logger.error(`Could not extract message for event ${getEventDescription(event)}`);
|
|
62084
|
+
logger$1.error(`Could not extract message for event ${getEventDescription(event)}`);
|
|
61502
62085
|
}
|
|
61503
62086
|
return possibleMessages;
|
|
61504
62087
|
}
|
|
@@ -61527,7 +62110,7 @@ function _getEventFilterUrl(event) {
|
|
|
61527
62110
|
}
|
|
61528
62111
|
return frames ? _getLastValidUrl(frames) : null;
|
|
61529
62112
|
} catch (oO) {
|
|
61530
|
-
DEBUG_BUILD$4 && logger.error(`Cannot extract url for event ${getEventDescription(event)}`);
|
|
62113
|
+
DEBUG_BUILD$4 && logger$1.error(`Cannot extract url for event ${getEventDescription(event)}`);
|
|
61531
62114
|
return null;
|
|
61532
62115
|
}
|
|
61533
62116
|
}
|
|
@@ -61567,7 +62150,7 @@ function registerBackgroundTabDetection() {
|
|
|
61567
62150
|
if (WINDOW$2.document.hidden && activeTransaction) {
|
|
61568
62151
|
const statusType = "cancelled";
|
|
61569
62152
|
const { op, status } = spanToJSON(activeTransaction);
|
|
61570
|
-
DEBUG_BUILD$3 && logger.log(`[Tracing] Transaction: ${statusType} -> since tab moved to the background, op: ${op}`);
|
|
62153
|
+
DEBUG_BUILD$3 && logger$1.log(`[Tracing] Transaction: ${statusType} -> since tab moved to the background, op: ${op}`);
|
|
61571
62154
|
if (!status) {
|
|
61572
62155
|
activeTransaction.setStatus(statusType);
|
|
61573
62156
|
}
|
|
@@ -61576,7 +62159,7 @@ function registerBackgroundTabDetection() {
|
|
|
61576
62159
|
}
|
|
61577
62160
|
});
|
|
61578
62161
|
} else {
|
|
61579
|
-
DEBUG_BUILD$3 && logger.warn("[Tracing] Could not set up background tab detection due to lack of global document");
|
|
62162
|
+
DEBUG_BUILD$3 && logger$1.warn("[Tracing] Could not set up background tab detection due to lack of global document");
|
|
61580
62163
|
}
|
|
61581
62164
|
}
|
|
61582
62165
|
const bindReporter = (callback, metric, reportAllChanges) => {
|
|
@@ -61977,7 +62560,7 @@ function triggerHandlers(type, data) {
|
|
|
61977
62560
|
try {
|
|
61978
62561
|
handler(data);
|
|
61979
62562
|
} catch (e2) {
|
|
61980
|
-
DEBUG_BUILD$3 && logger.error(
|
|
62563
|
+
DEBUG_BUILD$3 && logger$1.error(
|
|
61981
62564
|
`Error while triggering instrumentation handler.
|
|
61982
62565
|
Type: ${type}
|
|
61983
62566
|
Name: ${getFunctionName(handler)}
|
|
@@ -62177,7 +62760,7 @@ function _trackCLS() {
|
|
|
62177
62760
|
if (!entry) {
|
|
62178
62761
|
return;
|
|
62179
62762
|
}
|
|
62180
|
-
DEBUG_BUILD$3 && logger.log("[Measurements] Adding CLS");
|
|
62763
|
+
DEBUG_BUILD$3 && logger$1.log("[Measurements] Adding CLS");
|
|
62181
62764
|
_measurements["cls"] = { value: metric.value, unit: "" };
|
|
62182
62765
|
_clsEntry = entry;
|
|
62183
62766
|
}, true);
|
|
@@ -62188,7 +62771,7 @@ function _trackLCP() {
|
|
|
62188
62771
|
if (!entry) {
|
|
62189
62772
|
return;
|
|
62190
62773
|
}
|
|
62191
|
-
DEBUG_BUILD$3 && logger.log("[Measurements] Adding LCP");
|
|
62774
|
+
DEBUG_BUILD$3 && logger$1.log("[Measurements] Adding LCP");
|
|
62192
62775
|
_measurements["lcp"] = { value: metric.value, unit: "millisecond" };
|
|
62193
62776
|
_lcpEntry = entry;
|
|
62194
62777
|
}, true);
|
|
@@ -62201,7 +62784,7 @@ function _trackFID() {
|
|
|
62201
62784
|
}
|
|
62202
62785
|
const timeOrigin = msToSec(browserPerformanceTimeOrigin);
|
|
62203
62786
|
const startTime = msToSec(entry.startTime);
|
|
62204
|
-
DEBUG_BUILD$3 && logger.log("[Measurements] Adding FID");
|
|
62787
|
+
DEBUG_BUILD$3 && logger$1.log("[Measurements] Adding FID");
|
|
62205
62788
|
_measurements["fid"] = { value: metric.value, unit: "millisecond" };
|
|
62206
62789
|
_measurements["mark.fid"] = { value: timeOrigin + startTime, unit: "second" };
|
|
62207
62790
|
});
|
|
@@ -62212,7 +62795,7 @@ function _trackTtfb() {
|
|
|
62212
62795
|
if (!entry) {
|
|
62213
62796
|
return;
|
|
62214
62797
|
}
|
|
62215
|
-
DEBUG_BUILD$3 && logger.log("[Measurements] Adding TTFB");
|
|
62798
|
+
DEBUG_BUILD$3 && logger$1.log("[Measurements] Adding TTFB");
|
|
62216
62799
|
_measurements["ttfb"] = { value: metric.value, unit: "millisecond" };
|
|
62217
62800
|
});
|
|
62218
62801
|
}
|
|
@@ -62294,7 +62877,7 @@ function _trackINP(interactionIdToRouteNameMapping, interactionsSampleRate) {
|
|
|
62294
62877
|
const transport = client2 && client2.getTransport();
|
|
62295
62878
|
if (transport && envelope) {
|
|
62296
62879
|
transport.send(envelope).then(null, (reason) => {
|
|
62297
|
-
DEBUG_BUILD$3 && logger.error("Error while sending interaction:", reason);
|
|
62880
|
+
DEBUG_BUILD$3 && logger$1.error("Error while sending interaction:", reason);
|
|
62298
62881
|
});
|
|
62299
62882
|
}
|
|
62300
62883
|
return;
|
|
@@ -62306,7 +62889,7 @@ function addPerformanceEntries(transaction) {
|
|
|
62306
62889
|
if (!performance2 || !WINDOW$2.performance.getEntries || !browserPerformanceTimeOrigin) {
|
|
62307
62890
|
return;
|
|
62308
62891
|
}
|
|
62309
|
-
DEBUG_BUILD$3 && logger.log("[Tracing] Adding & adjusting spans using Performance API");
|
|
62892
|
+
DEBUG_BUILD$3 && logger$1.log("[Tracing] Adding & adjusting spans using Performance API");
|
|
62310
62893
|
const timeOrigin = msToSec(browserPerformanceTimeOrigin);
|
|
62311
62894
|
const performanceEntries = performance2.getEntries();
|
|
62312
62895
|
const { op, start_timestamp: transactionStartTime } = spanToJSON(transaction);
|
|
@@ -62328,11 +62911,11 @@ function addPerformanceEntries(transaction) {
|
|
|
62328
62911
|
const firstHidden = getVisibilityWatcher();
|
|
62329
62912
|
const shouldRecord = entry.startTime < firstHidden.firstHiddenTime;
|
|
62330
62913
|
if (entry.name === "first-paint" && shouldRecord) {
|
|
62331
|
-
DEBUG_BUILD$3 && logger.log("[Measurements] Adding FP");
|
|
62914
|
+
DEBUG_BUILD$3 && logger$1.log("[Measurements] Adding FP");
|
|
62332
62915
|
_measurements["fp"] = { value: entry.startTime, unit: "millisecond" };
|
|
62333
62916
|
}
|
|
62334
62917
|
if (entry.name === "first-contentful-paint" && shouldRecord) {
|
|
62335
|
-
DEBUG_BUILD$3 && logger.log("[Measurements] Adding FCP");
|
|
62918
|
+
DEBUG_BUILD$3 && logger$1.log("[Measurements] Adding FCP");
|
|
62336
62919
|
_measurements["fcp"] = { value: entry.startTime, unit: "millisecond" };
|
|
62337
62920
|
}
|
|
62338
62921
|
break;
|
|
@@ -62355,7 +62938,7 @@ function addPerformanceEntries(transaction) {
|
|
|
62355
62938
|
const measurementTimestamp = timeOrigin + msToSec(oldValue);
|
|
62356
62939
|
const normalizedValue = Math.abs((measurementTimestamp - transactionStartTime) * 1e3);
|
|
62357
62940
|
const delta = normalizedValue - oldValue;
|
|
62358
|
-
DEBUG_BUILD$3 && logger.log(`[Measurements] Normalized ${name2} from ${oldValue} to ${normalizedValue} (${delta})`);
|
|
62941
|
+
DEBUG_BUILD$3 && logger$1.log(`[Measurements] Normalized ${name2} from ${oldValue} to ${normalizedValue} (${delta})`);
|
|
62359
62942
|
_measurements[name2].value = normalizedValue;
|
|
62360
62943
|
});
|
|
62361
62944
|
const fidMark = _measurements["mark.fid"];
|
|
@@ -62490,7 +63073,7 @@ function _trackNavigator(transaction) {
|
|
|
62490
63073
|
}
|
|
62491
63074
|
function _tagMetricInfo(transaction) {
|
|
62492
63075
|
if (_lcpEntry) {
|
|
62493
|
-
DEBUG_BUILD$3 && logger.log("[Measurements] Adding LCP Data");
|
|
63076
|
+
DEBUG_BUILD$3 && logger$1.log("[Measurements] Adding LCP Data");
|
|
62494
63077
|
if (_lcpEntry.element) {
|
|
62495
63078
|
transaction.setTag("lcp.element", htmlTreeAsString(_lcpEntry.element));
|
|
62496
63079
|
}
|
|
@@ -62503,7 +63086,7 @@ function _tagMetricInfo(transaction) {
|
|
|
62503
63086
|
transaction.setTag("lcp.size", _lcpEntry.size);
|
|
62504
63087
|
}
|
|
62505
63088
|
if (_clsEntry && _clsEntry.sources) {
|
|
62506
|
-
DEBUG_BUILD$3 && logger.log("[Measurements] Adding CLS Data");
|
|
63089
|
+
DEBUG_BUILD$3 && logger$1.log("[Measurements] Adding CLS Data");
|
|
62507
63090
|
_clsEntry.sources.forEach(
|
|
62508
63091
|
(source, index2) => (
|
|
62509
63092
|
// TODO: Can we rewrite this to an attribute?
|
|
@@ -62526,7 +63109,7 @@ function _addTtfbRequestTimeToMeasurements(_measurements2) {
|
|
|
62526
63109
|
}
|
|
62527
63110
|
const { responseStart, requestStart } = navEntry;
|
|
62528
63111
|
if (requestStart <= responseStart) {
|
|
62529
|
-
DEBUG_BUILD$3 && logger.log("[Measurements] Adding TTFB Request Time");
|
|
63112
|
+
DEBUG_BUILD$3 && logger$1.log("[Measurements] Adding TTFB Request Time");
|
|
62530
63113
|
_measurements2["ttfb.requestTime"] = {
|
|
62531
63114
|
value: responseStart - requestStart,
|
|
62532
63115
|
unit: "millisecond"
|
|
@@ -62558,7 +63141,7 @@ function getSampleRate(transactionContext, options2, interactionsSampleRate) {
|
|
|
62558
63141
|
sampleRate = 1;
|
|
62559
63142
|
}
|
|
62560
63143
|
if (!isValidSampleRate(sampleRate)) {
|
|
62561
|
-
DEBUG_BUILD$3 && logger.warn("[Tracing] Discarding interaction span because of invalid sample rate.");
|
|
63144
|
+
DEBUG_BUILD$3 && logger$1.warn("[Tracing] Discarding interaction span because of invalid sample rate.");
|
|
62562
63145
|
return false;
|
|
62563
63146
|
}
|
|
62564
63147
|
if (sampleRate === true) {
|
|
@@ -62945,9 +63528,9 @@ const browserTracingIntegration = (_options = {}) => {
|
|
|
62945
63528
|
latestRoute.name = finalContext.name;
|
|
62946
63529
|
latestRoute.context = finalContext;
|
|
62947
63530
|
if (finalContext.sampled === false) {
|
|
62948
|
-
DEBUG_BUILD$3 && logger.log(`[Tracing] Will not send ${finalContext.op} transaction because of beforeNavigate.`);
|
|
63531
|
+
DEBUG_BUILD$3 && logger$1.log(`[Tracing] Will not send ${finalContext.op} transaction because of beforeNavigate.`);
|
|
62949
63532
|
}
|
|
62950
|
-
DEBUG_BUILD$3 && logger.log(`[Tracing] Starting ${finalContext.op} transaction on scope`);
|
|
63533
|
+
DEBUG_BUILD$3 && logger$1.log(`[Tracing] Starting ${finalContext.op} transaction on scope`);
|
|
62951
63534
|
const { location } = WINDOW$2;
|
|
62952
63535
|
const idleTransaction = startIdleTransaction(
|
|
62953
63536
|
hub,
|
|
@@ -62988,7 +63571,7 @@ const browserTracingIntegration = (_options = {}) => {
|
|
|
62988
63571
|
const clientOptionsTracePropagationTargets = clientOptions && clientOptions.tracePropagationTargets;
|
|
62989
63572
|
const tracePropagationTargets = clientOptionsTracePropagationTargets || options2.tracePropagationTargets;
|
|
62990
63573
|
if (DEBUG_BUILD$3 && _hasSetTracePropagationTargets && clientOptionsTracePropagationTargets) {
|
|
62991
|
-
logger.warn(
|
|
63574
|
+
logger$1.warn(
|
|
62992
63575
|
"[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."
|
|
62993
63576
|
);
|
|
62994
63577
|
}
|
|
@@ -62997,7 +63580,7 @@ const browserTracingIntegration = (_options = {}) => {
|
|
|
62997
63580
|
if (client2.on) {
|
|
62998
63581
|
client2.on("startNavigationSpan", (context) => {
|
|
62999
63582
|
if (activeSpan) {
|
|
63000
|
-
DEBUG_BUILD$3 && logger.log(`[Tracing] Finishing current transaction with op: ${spanToJSON(activeSpan).op}`);
|
|
63583
|
+
DEBUG_BUILD$3 && logger$1.log(`[Tracing] Finishing current transaction with op: ${spanToJSON(activeSpan).op}`);
|
|
63001
63584
|
activeSpan.end();
|
|
63002
63585
|
}
|
|
63003
63586
|
activeSpan = _createRouteTransaction({
|
|
@@ -63007,7 +63590,7 @@ const browserTracingIntegration = (_options = {}) => {
|
|
|
63007
63590
|
});
|
|
63008
63591
|
client2.on("startPageLoadSpan", (context) => {
|
|
63009
63592
|
if (activeSpan) {
|
|
63010
|
-
DEBUG_BUILD$3 && logger.log(`[Tracing] Finishing current transaction with op: ${spanToJSON(activeSpan).op}`);
|
|
63593
|
+
DEBUG_BUILD$3 && logger$1.log(`[Tracing] Finishing current transaction with op: ${spanToJSON(activeSpan).op}`);
|
|
63011
63594
|
activeSpan.end();
|
|
63012
63595
|
}
|
|
63013
63596
|
activeSpan = _createRouteTransaction({
|
|
@@ -63098,7 +63681,7 @@ function registerInteractionListener(options2, latestRoute) {
|
|
|
63098
63681
|
const op = "ui.action.click";
|
|
63099
63682
|
const currentTransaction = getActiveTransaction();
|
|
63100
63683
|
if (currentTransaction && currentTransaction.op && ["navigation", "pageload"].includes(currentTransaction.op)) {
|
|
63101
|
-
DEBUG_BUILD$3 && logger.warn(
|
|
63684
|
+
DEBUG_BUILD$3 && logger$1.warn(
|
|
63102
63685
|
`[Tracing] Did not create ${op} transaction because a pageload or navigation transaction is in progress.`
|
|
63103
63686
|
);
|
|
63104
63687
|
return void 0;
|
|
@@ -63109,7 +63692,7 @@ function registerInteractionListener(options2, latestRoute) {
|
|
|
63109
63692
|
inflightInteractionTransaction = void 0;
|
|
63110
63693
|
}
|
|
63111
63694
|
if (!latestRoute.name) {
|
|
63112
|
-
DEBUG_BUILD$3 && logger.warn(`[Tracing] Did not create ${op} transaction because _latestRouteName is missing.`);
|
|
63695
|
+
DEBUG_BUILD$3 && logger$1.warn(`[Tracing] Did not create ${op} transaction because _latestRouteName is missing.`);
|
|
63113
63696
|
return void 0;
|
|
63114
63697
|
}
|
|
63115
63698
|
const { location } = WINDOW$2;
|
|
@@ -63520,7 +64103,7 @@ class BrowserClient extends BaseClient {
|
|
|
63520
64103
|
*/
|
|
63521
64104
|
captureUserFeedback(feedback) {
|
|
63522
64105
|
if (!this._isEnabled()) {
|
|
63523
|
-
DEBUG_BUILD$2 && logger.warn("SDK not enabled, will not capture user feedback.");
|
|
64106
|
+
DEBUG_BUILD$2 && logger$1.warn("SDK not enabled, will not capture user feedback.");
|
|
63524
64107
|
return;
|
|
63525
64108
|
}
|
|
63526
64109
|
const envelope = createUserFeedbackEnvelope(feedback, {
|
|
@@ -63543,14 +64126,14 @@ class BrowserClient extends BaseClient {
|
|
|
63543
64126
|
_flushOutcomes() {
|
|
63544
64127
|
const outcomes = this._clearOutcomes();
|
|
63545
64128
|
if (outcomes.length === 0) {
|
|
63546
|
-
DEBUG_BUILD$2 && logger.log("No outcomes to send");
|
|
64129
|
+
DEBUG_BUILD$2 && logger$1.log("No outcomes to send");
|
|
63547
64130
|
return;
|
|
63548
64131
|
}
|
|
63549
64132
|
if (!this._dsn) {
|
|
63550
|
-
DEBUG_BUILD$2 && logger.log("No dsn provided, will not send outcomes");
|
|
64133
|
+
DEBUG_BUILD$2 && logger$1.log("No dsn provided, will not send outcomes");
|
|
63551
64134
|
return;
|
|
63552
64135
|
}
|
|
63553
|
-
DEBUG_BUILD$2 && logger.log("Sending outcomes:", outcomes);
|
|
64136
|
+
DEBUG_BUILD$2 && logger$1.log("Sending outcomes:", outcomes);
|
|
63554
64137
|
const envelope = createClientReportEnvelope(outcomes, this._options.tunnel && dsnToString(this._dsn));
|
|
63555
64138
|
this._sendEnvelope(envelope);
|
|
63556
64139
|
}
|
|
@@ -63576,7 +64159,7 @@ function getNativeFetchImplementation() {
|
|
|
63576
64159
|
}
|
|
63577
64160
|
document2.head.removeChild(sandbox);
|
|
63578
64161
|
} catch (e2) {
|
|
63579
|
-
DEBUG_BUILD$2 && logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", e2);
|
|
64162
|
+
DEBUG_BUILD$2 && logger$1.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", e2);
|
|
63580
64163
|
}
|
|
63581
64164
|
}
|
|
63582
64165
|
return cachedFetchImpl = fetchImpl.bind(WINDOW$1);
|
|
@@ -63807,7 +64390,7 @@ function _getDomBreadcrumbHandler(client2, dom) {
|
|
|
63807
64390
|
let keyAttrs = typeof dom === "object" ? dom.serializeAttribute : void 0;
|
|
63808
64391
|
let maxStringLength = typeof dom === "object" && typeof dom.maxStringLength === "number" ? dom.maxStringLength : void 0;
|
|
63809
64392
|
if (maxStringLength && maxStringLength > MAX_ALLOWED_STRING_LENGTH) {
|
|
63810
|
-
DEBUG_BUILD$2 && logger.warn(
|
|
64393
|
+
DEBUG_BUILD$2 && logger$1.warn(
|
|
63811
64394
|
`\`dom.maxStringLength\` cannot exceed ${MAX_ALLOWED_STRING_LENGTH}, but a value of ${maxStringLength} was configured. Sentry will use ${MAX_ALLOWED_STRING_LENGTH} instead.`
|
|
63812
64395
|
);
|
|
63813
64396
|
maxStringLength = MAX_ALLOWED_STRING_LENGTH;
|
|
@@ -63998,7 +64581,7 @@ const _dedupeIntegration = () => {
|
|
|
63998
64581
|
}
|
|
63999
64582
|
try {
|
|
64000
64583
|
if (_shouldDropEvent(currentEvent, previousEvent)) {
|
|
64001
|
-
DEBUG_BUILD$2 && logger.warn("Event dropped due to being a duplicate of previously captured event.");
|
|
64584
|
+
DEBUG_BUILD$2 && logger$1.warn("Event dropped due to being a duplicate of previously captured event.");
|
|
64002
64585
|
return null;
|
|
64003
64586
|
}
|
|
64004
64587
|
} catch (_oO) {
|
|
@@ -64252,7 +64835,7 @@ function _enhanceEventWithInitialFrame(event, url, line2, column2) {
|
|
|
64252
64835
|
return event;
|
|
64253
64836
|
}
|
|
64254
64837
|
function globalHandlerLog(type) {
|
|
64255
|
-
DEBUG_BUILD$2 && logger.log(`Global Handler attached: ${type}`);
|
|
64838
|
+
DEBUG_BUILD$2 && logger$1.log(`Global Handler attached: ${type}`);
|
|
64256
64839
|
}
|
|
64257
64840
|
function getOptions() {
|
|
64258
64841
|
const client2 = getClient();
|
|
@@ -64555,7 +65138,7 @@ function init$1(options2 = {}) {
|
|
|
64555
65138
|
}
|
|
64556
65139
|
function startSessionTracking() {
|
|
64557
65140
|
if (typeof WINDOW$1.document === "undefined") {
|
|
64558
|
-
DEBUG_BUILD$2 && logger.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");
|
|
65141
|
+
DEBUG_BUILD$2 && logger$1.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");
|
|
64559
65142
|
return;
|
|
64560
65143
|
}
|
|
64561
65144
|
startSession({ ignoreDuration: true });
|
|
@@ -68877,7 +69460,7 @@ function logInfo(message, shouldAddBreadcrumb) {
|
|
|
68877
69460
|
if (!DEBUG_BUILD$1) {
|
|
68878
69461
|
return;
|
|
68879
69462
|
}
|
|
68880
|
-
logger.info(message);
|
|
69463
|
+
logger$1.info(message);
|
|
68881
69464
|
if (shouldAddBreadcrumb) {
|
|
68882
69465
|
addLogBreadcrumb(message);
|
|
68883
69466
|
}
|
|
@@ -68886,7 +69469,7 @@ function logInfoNextTick(message, shouldAddBreadcrumb) {
|
|
|
68886
69469
|
if (!DEBUG_BUILD$1) {
|
|
68887
69470
|
return;
|
|
68888
69471
|
}
|
|
68889
|
-
logger.info(message);
|
|
69472
|
+
logger$1.info(message);
|
|
68890
69473
|
if (shouldAddBreadcrumb) {
|
|
68891
69474
|
setTimeout(() => {
|
|
68892
69475
|
addLogBreadcrumb(message);
|
|
@@ -69021,7 +69604,7 @@ class WorkerHandler {
|
|
|
69021
69604
|
}
|
|
69022
69605
|
this._worker.removeEventListener("message", listener);
|
|
69023
69606
|
if (!response.success) {
|
|
69024
|
-
DEBUG_BUILD$1 && logger.error("[Replay]", response.response);
|
|
69607
|
+
DEBUG_BUILD$1 && logger$1.error("[Replay]", response.response);
|
|
69025
69608
|
reject(new Error("Error in compression worker"));
|
|
69026
69609
|
return;
|
|
69027
69610
|
}
|
|
@@ -69094,7 +69677,7 @@ class EventBufferCompressionWorker {
|
|
|
69094
69677
|
this._totalSize = 0;
|
|
69095
69678
|
this.hasCheckout = false;
|
|
69096
69679
|
this._worker.postMessage("clear").then(null, (e2) => {
|
|
69097
|
-
DEBUG_BUILD$1 && logger.warn('[Replay] Sending "clear" message to worker failed', e2);
|
|
69680
|
+
DEBUG_BUILD$1 && logger$1.warn('[Replay] Sending "clear" message to worker failed', e2);
|
|
69098
69681
|
});
|
|
69099
69682
|
}
|
|
69100
69683
|
/** @inheritdoc */
|
|
@@ -69192,7 +69775,7 @@ class EventBufferProxy {
|
|
|
69192
69775
|
try {
|
|
69193
69776
|
await Promise.all(addEventPromises);
|
|
69194
69777
|
} catch (error) {
|
|
69195
|
-
DEBUG_BUILD$1 && logger.warn("[Replay] Failed to add events when switching buffers.", error);
|
|
69778
|
+
DEBUG_BUILD$1 && logger$1.warn("[Replay] Failed to add events when switching buffers.", error);
|
|
69196
69779
|
}
|
|
69197
69780
|
}
|
|
69198
69781
|
}
|
|
@@ -69393,7 +69976,7 @@ async function _addEvent(replay, event, isCheckout) {
|
|
|
69393
69976
|
return await replay.eventBuffer.addEvent(eventAfterPossibleCallback);
|
|
69394
69977
|
} catch (error) {
|
|
69395
69978
|
const reason = error && error instanceof EventBufferSizeExceededError ? "addEventSizeExceeded" : "addEvent";
|
|
69396
|
-
DEBUG_BUILD$1 && logger.error(error);
|
|
69979
|
+
DEBUG_BUILD$1 && logger$1.error(error);
|
|
69397
69980
|
await replay.stop({ reason });
|
|
69398
69981
|
const client2 = getClient();
|
|
69399
69982
|
if (client2) {
|
|
@@ -69424,7 +70007,7 @@ function maybeApplyCallback(event, callback) {
|
|
|
69424
70007
|
return callback(event);
|
|
69425
70008
|
}
|
|
69426
70009
|
} catch (error) {
|
|
69427
|
-
DEBUG_BUILD$1 && logger.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...", error);
|
|
70010
|
+
DEBUG_BUILD$1 && logger$1.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...", error);
|
|
69428
70011
|
return null;
|
|
69429
70012
|
}
|
|
69430
70013
|
return event;
|
|
@@ -69588,7 +70171,7 @@ function handleGlobalEventListener(replay, includeAfterSendEventHandling = false
|
|
|
69588
70171
|
return event;
|
|
69589
70172
|
}
|
|
69590
70173
|
if (isRrwebError(event, hint) && !replay.getOptions()._experiments.captureExceptions) {
|
|
69591
|
-
DEBUG_BUILD$1 && logger.log("[Replay] Ignoring error from rrweb internals", event);
|
|
70174
|
+
DEBUG_BUILD$1 && logger$1.log("[Replay] Ignoring error from rrweb internals", event);
|
|
69592
70175
|
return null;
|
|
69593
70176
|
}
|
|
69594
70177
|
const isErrorEventSampled = shouldSampleForBufferEvent(replay, event);
|
|
@@ -69777,10 +70360,10 @@ function getBodyString(body) {
|
|
|
69777
70360
|
return [void 0];
|
|
69778
70361
|
}
|
|
69779
70362
|
} catch (e2) {
|
|
69780
|
-
DEBUG_BUILD$1 && logger.warn("[Replay] Failed to serialize body", body);
|
|
70363
|
+
DEBUG_BUILD$1 && logger$1.warn("[Replay] Failed to serialize body", body);
|
|
69781
70364
|
return [void 0, "BODY_PARSE_ERROR"];
|
|
69782
70365
|
}
|
|
69783
|
-
DEBUG_BUILD$1 && logger.info("[Replay] Skipping network body because of body type", body);
|
|
70366
|
+
DEBUG_BUILD$1 && logger$1.info("[Replay] Skipping network body because of body type", body);
|
|
69784
70367
|
return [void 0, "UNPARSEABLE_BODY_TYPE"];
|
|
69785
70368
|
}
|
|
69786
70369
|
function mergeWarning(info, warning2) {
|
|
@@ -69930,7 +70513,7 @@ async function captureFetchBreadcrumbToReplay(breadcrumb, hint, options2) {
|
|
|
69930
70513
|
const result = makeNetworkReplayBreadcrumb("resource.fetch", data);
|
|
69931
70514
|
addNetworkBreadcrumb(options2.replay, result);
|
|
69932
70515
|
} catch (error) {
|
|
69933
|
-
DEBUG_BUILD$1 && logger.error("[Replay] Failed to capture fetch breadcrumb", error);
|
|
70516
|
+
DEBUG_BUILD$1 && logger$1.error("[Replay] Failed to capture fetch breadcrumb", error);
|
|
69934
70517
|
}
|
|
69935
70518
|
}
|
|
69936
70519
|
function enrichFetchBreadcrumb(breadcrumb, hint, options2) {
|
|
@@ -70023,7 +70606,7 @@ function getResponseData(bodyText, {
|
|
|
70023
70606
|
}
|
|
70024
70607
|
return buildNetworkRequestOrResponse(headers, size2, void 0);
|
|
70025
70608
|
} catch (error) {
|
|
70026
|
-
DEBUG_BUILD$1 && logger.warn("[Replay] Failed to serialize response body", error);
|
|
70609
|
+
DEBUG_BUILD$1 && logger$1.warn("[Replay] Failed to serialize response body", error);
|
|
70027
70610
|
return buildNetworkRequestOrResponse(headers, responseBodySize, void 0);
|
|
70028
70611
|
}
|
|
70029
70612
|
}
|
|
@@ -70036,7 +70619,7 @@ async function _parseFetchResponseBody(response) {
|
|
|
70036
70619
|
const text = await _tryGetResponseText(res);
|
|
70037
70620
|
return [text];
|
|
70038
70621
|
} catch (error) {
|
|
70039
|
-
DEBUG_BUILD$1 && logger.warn("[Replay] Failed to get text body from response", error);
|
|
70622
|
+
DEBUG_BUILD$1 && logger$1.warn("[Replay] Failed to get text body from response", error);
|
|
70040
70623
|
return [void 0, "BODY_PARSE_ERROR"];
|
|
70041
70624
|
}
|
|
70042
70625
|
}
|
|
@@ -70084,7 +70667,7 @@ function _tryCloneResponse(response) {
|
|
|
70084
70667
|
try {
|
|
70085
70668
|
return response.clone();
|
|
70086
70669
|
} catch (error) {
|
|
70087
|
-
DEBUG_BUILD$1 && logger.warn("[Replay] Failed to clone response body", error);
|
|
70670
|
+
DEBUG_BUILD$1 && logger$1.warn("[Replay] Failed to clone response body", error);
|
|
70088
70671
|
}
|
|
70089
70672
|
}
|
|
70090
70673
|
function _tryGetResponseText(response) {
|
|
@@ -70105,7 +70688,7 @@ async function captureXhrBreadcrumbToReplay(breadcrumb, hint, options2) {
|
|
|
70105
70688
|
const result = makeNetworkReplayBreadcrumb("resource.xhr", data);
|
|
70106
70689
|
addNetworkBreadcrumb(options2.replay, result);
|
|
70107
70690
|
} catch (error) {
|
|
70108
|
-
DEBUG_BUILD$1 && logger.error("[Replay] Failed to capture xhr breadcrumb", error);
|
|
70691
|
+
DEBUG_BUILD$1 && logger$1.error("[Replay] Failed to capture xhr breadcrumb", error);
|
|
70109
70692
|
}
|
|
70110
70693
|
}
|
|
70111
70694
|
function enrichXhrBreadcrumb(breadcrumb, hint, options2) {
|
|
@@ -70188,7 +70771,7 @@ function _getXhrResponseBody(xhr) {
|
|
|
70188
70771
|
} catch (e2) {
|
|
70189
70772
|
errors.push(e2);
|
|
70190
70773
|
}
|
|
70191
|
-
DEBUG_BUILD$1 && logger.warn("[Replay] Failed to get xhr response body", ...errors);
|
|
70774
|
+
DEBUG_BUILD$1 && logger$1.warn("[Replay] Failed to get xhr response body", ...errors);
|
|
70192
70775
|
return [void 0];
|
|
70193
70776
|
}
|
|
70194
70777
|
function _parseXhrResponse(body, responseType) {
|
|
@@ -70206,10 +70789,10 @@ function _parseXhrResponse(body, responseType) {
|
|
|
70206
70789
|
return [void 0];
|
|
70207
70790
|
}
|
|
70208
70791
|
} catch (e2) {
|
|
70209
|
-
DEBUG_BUILD$1 && logger.warn("[Replay] Failed to serialize body", body);
|
|
70792
|
+
DEBUG_BUILD$1 && logger$1.warn("[Replay] Failed to serialize body", body);
|
|
70210
70793
|
return [void 0, "BODY_PARSE_ERROR"];
|
|
70211
70794
|
}
|
|
70212
|
-
DEBUG_BUILD$1 && logger.info("[Replay] Skipping network body because of body type", body);
|
|
70795
|
+
DEBUG_BUILD$1 && logger$1.info("[Replay] Skipping network body because of body type", body);
|
|
70213
70796
|
return [void 0, "UNPARSEABLE_BODY_TYPE"];
|
|
70214
70797
|
}
|
|
70215
70798
|
function _getBodySize(body, responseType, textEncoder2) {
|
|
@@ -70263,7 +70846,7 @@ function beforeAddNetworkBreadcrumb(options2, breadcrumb, hint) {
|
|
|
70263
70846
|
captureFetchBreadcrumbToReplay(breadcrumb, hint, options2);
|
|
70264
70847
|
}
|
|
70265
70848
|
} catch (e2) {
|
|
70266
|
-
DEBUG_BUILD$1 && logger.warn("Error when enriching network breadcrumb");
|
|
70849
|
+
DEBUG_BUILD$1 && logger$1.warn("Error when enriching network breadcrumb");
|
|
70267
70850
|
}
|
|
70268
70851
|
}
|
|
70269
70852
|
function _isXhrBreadcrumb(breadcrumb) {
|
|
@@ -70458,7 +71041,7 @@ function getHandleRecordingEmit(replay) {
|
|
|
70458
71041
|
let hadFirstEvent = false;
|
|
70459
71042
|
return (event, _isCheckout) => {
|
|
70460
71043
|
if (!replay.checkAndHandleExpiredSession()) {
|
|
70461
|
-
DEBUG_BUILD$1 && logger.warn("[Replay] Received replay event after session expired.");
|
|
71044
|
+
DEBUG_BUILD$1 && logger$1.warn("[Replay] Received replay event after session expired.");
|
|
70462
71045
|
return;
|
|
70463
71046
|
}
|
|
70464
71047
|
const isCheckout = _isCheckout || !hadFirstEvent;
|
|
@@ -71237,7 +71820,7 @@ class ReplayContainer {
|
|
|
71237
71820
|
}
|
|
71238
71821
|
/** A wrapper to conditionally capture exceptions. */
|
|
71239
71822
|
_handleException(error) {
|
|
71240
|
-
DEBUG_BUILD$1 && logger.error("[Replay]", error);
|
|
71823
|
+
DEBUG_BUILD$1 && logger$1.error("[Replay]", error);
|
|
71241
71824
|
if (DEBUG_BUILD$1 && this._options._experiments && this._options._experiments.captureExceptions) {
|
|
71242
71825
|
captureException(error);
|
|
71243
71826
|
}
|
|
@@ -71497,7 +72080,7 @@ class ReplayContainer {
|
|
|
71497
72080
|
async _runFlush() {
|
|
71498
72081
|
const replayId = this.getSessionId();
|
|
71499
72082
|
if (!this.session || !this.eventBuffer || !replayId) {
|
|
71500
|
-
DEBUG_BUILD$1 && logger.error("[Replay] No session or eventBuffer found to flush.");
|
|
72083
|
+
DEBUG_BUILD$1 && logger$1.error("[Replay] No session or eventBuffer found to flush.");
|
|
71501
72084
|
return;
|
|
71502
72085
|
}
|
|
71503
72086
|
await this._addPerformanceEntries();
|
|
@@ -71551,7 +72134,7 @@ class ReplayContainer {
|
|
|
71551
72134
|
return;
|
|
71552
72135
|
}
|
|
71553
72136
|
if (!this.checkAndHandleExpiredSession()) {
|
|
71554
|
-
DEBUG_BUILD$1 && logger.error("[Replay] Attempting to finish replay event after session expired.");
|
|
72137
|
+
DEBUG_BUILD$1 && logger$1.error("[Replay] Attempting to finish replay event after session expired.");
|
|
71555
72138
|
return;
|
|
71556
72139
|
}
|
|
71557
72140
|
if (!this.session) {
|
|
@@ -71586,7 +72169,7 @@ class ReplayContainer {
|
|
|
71586
72169
|
try {
|
|
71587
72170
|
await this._flushLock;
|
|
71588
72171
|
} catch (err) {
|
|
71589
|
-
DEBUG_BUILD$1 && logger.error(err);
|
|
72172
|
+
DEBUG_BUILD$1 && logger$1.error(err);
|
|
71590
72173
|
} finally {
|
|
71591
72174
|
this._debouncedFlush();
|
|
71592
72175
|
}
|
|
@@ -72141,7 +72724,7 @@ function _extractErrorData(error, captureErrorCause) {
|
|
|
72141
72724
|
}
|
|
72142
72725
|
return extraErrorInfo;
|
|
72143
72726
|
} catch (oO) {
|
|
72144
|
-
DEBUG_BUILD && logger.error("Unable to extract extra data from the Error object:", oO);
|
|
72727
|
+
DEBUG_BUILD && logger$1.error("Unable to extract extra data from the Error object:", oO);
|
|
72145
72728
|
}
|
|
72146
72729
|
return null;
|
|
72147
72730
|
}
|
|
@@ -72183,7 +72766,7 @@ function _fetchResponseHandler(options2, requestInfo, response, requestInit) {
|
|
|
72183
72766
|
cookies = _parseCookieString(cookieString);
|
|
72184
72767
|
}
|
|
72185
72768
|
} catch (e2) {
|
|
72186
|
-
DEBUG_BUILD && logger.log(`Could not extract cookies from header ${cookieHeader}`);
|
|
72769
|
+
DEBUG_BUILD && logger$1.log(`Could not extract cookies from header ${cookieHeader}`);
|
|
72187
72770
|
}
|
|
72188
72771
|
return {
|
|
72189
72772
|
headers,
|
|
@@ -72213,12 +72796,12 @@ function _xhrResponseHandler(options2, xhr, method, headers) {
|
|
|
72213
72796
|
responseCookies = _parseCookieString(cookieString);
|
|
72214
72797
|
}
|
|
72215
72798
|
} catch (e2) {
|
|
72216
|
-
DEBUG_BUILD && logger.log("Could not extract cookies from response headers");
|
|
72799
|
+
DEBUG_BUILD && logger$1.log("Could not extract cookies from response headers");
|
|
72217
72800
|
}
|
|
72218
72801
|
try {
|
|
72219
72802
|
responseHeaders = _getXHRResponseHeaders(xhr);
|
|
72220
72803
|
} catch (e2) {
|
|
72221
|
-
DEBUG_BUILD && logger.log("Could not extract headers from response");
|
|
72804
|
+
DEBUG_BUILD && logger$1.log("Could not extract headers from response");
|
|
72222
72805
|
}
|
|
72223
72806
|
requestHeaders = headers;
|
|
72224
72807
|
}
|
|
@@ -72317,7 +72900,7 @@ function _wrapXHR(client2, options2) {
|
|
|
72317
72900
|
try {
|
|
72318
72901
|
_xhrResponseHandler(options2, xhr, method, headers);
|
|
72319
72902
|
} catch (e2) {
|
|
72320
|
-
DEBUG_BUILD && logger.warn("Error while extracting response event form XHR response", e2);
|
|
72903
|
+
DEBUG_BUILD && logger$1.warn("Error while extracting response event form XHR response", e2);
|
|
72321
72904
|
}
|
|
72322
72905
|
});
|
|
72323
72906
|
}
|
|
@@ -72611,7 +73194,7 @@ const useFilteredDocumentModels = () => {
|
|
|
72611
73194
|
return filteredDocumentModels;
|
|
72612
73195
|
};
|
|
72613
73196
|
async function loadBaseEditors() {
|
|
72614
|
-
const documentModelEditor = await __vitePreload(() => import("./index-
|
|
73197
|
+
const documentModelEditor = await __vitePreload(() => import("./index-DSo3d6TG.js"), true ? __vite__mapDeps([4,2,1,3]) : void 0);
|
|
72615
73198
|
await __vitePreload(() => Promise.resolve({}), true ? __vite__mapDeps([5]) : void 0);
|
|
72616
73199
|
const module = documentModelEditor.documentModelEditorModule;
|
|
72617
73200
|
return [module];
|
|
@@ -72653,11 +73236,11 @@ async function initReactor(reactor) {
|
|
|
72653
73236
|
const drives = await reactor.getDrives();
|
|
72654
73237
|
if (!drives.length && connectConfig.drives.sections.LOCAL.enabled) {
|
|
72655
73238
|
return reactor.addDrive({
|
|
73239
|
+
slug: "my-local-drive",
|
|
72656
73240
|
global: {
|
|
72657
|
-
id:
|
|
73241
|
+
id: generateId(),
|
|
72658
73242
|
name: "My Local Drive",
|
|
72659
|
-
icon: null
|
|
72660
|
-
slug: "my-local-drive"
|
|
73243
|
+
icon: null
|
|
72661
73244
|
},
|
|
72662
73245
|
local: {
|
|
72663
73246
|
availableOffline: false,
|
|
@@ -72665,7 +73248,7 @@ async function initReactor(reactor) {
|
|
|
72665
73248
|
listeners: [],
|
|
72666
73249
|
triggers: []
|
|
72667
73250
|
}
|
|
72668
|
-
}).catch(logger$
|
|
73251
|
+
}).catch(logger$2.error);
|
|
72669
73252
|
}
|
|
72670
73253
|
}
|
|
72671
73254
|
async function createReactor() {
|
|
@@ -72764,11 +73347,11 @@ const connectCrypto = (async () => {
|
|
|
72764
73347
|
return window.connectCrypto;
|
|
72765
73348
|
}
|
|
72766
73349
|
const { ConnectCrypto: ConnectCrypto2 } = await __vitePreload(async () => {
|
|
72767
|
-
const { ConnectCrypto: ConnectCrypto3 } = await import("./index-
|
|
73350
|
+
const { ConnectCrypto: ConnectCrypto3 } = await import("./index-C47jzF-n.js");
|
|
72768
73351
|
return { ConnectCrypto: ConnectCrypto3 };
|
|
72769
73352
|
}, true ? __vite__mapDeps([6,1,2,3]) : void 0);
|
|
72770
73353
|
const { BrowserKeyStorage: BrowserKeyStorage2 } = await __vitePreload(async () => {
|
|
72771
|
-
const { BrowserKeyStorage: BrowserKeyStorage3 } = await import("./index-
|
|
73354
|
+
const { BrowserKeyStorage: BrowserKeyStorage3 } = await import("./index-C47jzF-n.js");
|
|
72772
73355
|
return { BrowserKeyStorage: BrowserKeyStorage3 };
|
|
72773
73356
|
}, true ? __vite__mapDeps([6,1,2,3]) : void 0);
|
|
72774
73357
|
const connectCrypto2 = new ConnectCrypto2(new BrowserKeyStorage2());
|
|
@@ -72801,7 +73384,7 @@ function useConnectDid() {
|
|
|
72801
73384
|
if (did) {
|
|
72802
73385
|
return;
|
|
72803
73386
|
}
|
|
72804
|
-
connectCrypto.then((c2) => c2.did()).then((did2) => setDid(did2)).catch(logger$
|
|
73387
|
+
connectCrypto.then((c2) => c2.did()).then((did2) => setDid(did2)).catch(logger$2.error);
|
|
72805
73388
|
});
|
|
72806
73389
|
return did;
|
|
72807
73390
|
}
|
|
@@ -72817,7 +73400,7 @@ function useRenown() {
|
|
|
72817
73400
|
return;
|
|
72818
73401
|
}
|
|
72819
73402
|
const { initRenownBrowser } = await __vitePreload(async () => {
|
|
72820
|
-
const { initRenownBrowser: initRenownBrowser2 } = await import("./index-
|
|
73403
|
+
const { initRenownBrowser: initRenownBrowser2 } = await import("./index-C47jzF-n.js");
|
|
72821
73404
|
return { initRenownBrowser: initRenownBrowser2 };
|
|
72822
73405
|
}, true ? __vite__mapDeps([6,1,2,3]) : void 0);
|
|
72823
73406
|
const renownBrowser = initRenownBrowser(did2);
|
|
@@ -72891,7 +73474,7 @@ const useLogin = () => {
|
|
|
72891
73474
|
}
|
|
72892
73475
|
} catch (error) {
|
|
72893
73476
|
setStatus("not-authorized");
|
|
72894
|
-
logger$
|
|
73477
|
+
logger$2.error(error);
|
|
72895
73478
|
}
|
|
72896
73479
|
},
|
|
72897
73480
|
[renown]
|
|
@@ -73029,11 +73612,11 @@ function useDocumentDrives$1() {
|
|
|
73029
73612
|
const drive = await reactor.getDrive(id);
|
|
73030
73613
|
documentDrives2.push(drive);
|
|
73031
73614
|
} catch (error) {
|
|
73032
|
-
logger$
|
|
73615
|
+
logger$2.error(error);
|
|
73033
73616
|
}
|
|
73034
73617
|
}
|
|
73035
73618
|
} catch (error) {
|
|
73036
|
-
logger$
|
|
73619
|
+
logger$2.error(error);
|
|
73037
73620
|
} finally {
|
|
73038
73621
|
setDocumentDrives(documentDrives2);
|
|
73039
73622
|
}
|
|
@@ -73054,7 +73637,7 @@ function useDocumentDrives$1() {
|
|
|
73054
73637
|
"syncStatus",
|
|
73055
73638
|
async (_event, _status, error) => {
|
|
73056
73639
|
if (error) {
|
|
73057
|
-
logger$
|
|
73640
|
+
logger$2.error(error);
|
|
73058
73641
|
}
|
|
73059
73642
|
await refreshDocumentDrives();
|
|
73060
73643
|
}
|
|
@@ -73222,15 +73805,15 @@ function useDocumentDriveServer() {
|
|
|
73222
73805
|
if (!isAllowedToCreateDocuments) {
|
|
73223
73806
|
throw new Error("User is not allowed to create documents");
|
|
73224
73807
|
}
|
|
73225
|
-
const id = hashKey$1();
|
|
73226
73808
|
let drive = documentDrives.find((d2) => d2.state.global.id === driveId);
|
|
73227
73809
|
if (!drive) {
|
|
73228
73810
|
throw new Error(`Drive with id ${driveId} not found`);
|
|
73229
73811
|
}
|
|
73812
|
+
const documentId = generateId();
|
|
73230
73813
|
const action = generateAddNodeAction(
|
|
73231
73814
|
drive.state.global,
|
|
73232
73815
|
{
|
|
73233
|
-
id,
|
|
73816
|
+
id: documentId,
|
|
73234
73817
|
name: name2,
|
|
73235
73818
|
parentFolder: parentFolder ?? null,
|
|
73236
73819
|
documentType: documentType2,
|
|
@@ -73239,7 +73822,9 @@ function useDocumentDriveServer() {
|
|
|
73239
73822
|
["global"]
|
|
73240
73823
|
);
|
|
73241
73824
|
drive = await _addDriveOperation(driveId, action);
|
|
73242
|
-
const node2 = drive == null ? void 0 : drive.state.global.nodes.find(
|
|
73825
|
+
const node2 = drive == null ? void 0 : drive.state.global.nodes.find(
|
|
73826
|
+
(node22) => node22.id === documentId
|
|
73827
|
+
);
|
|
73243
73828
|
if (!node2 || !isFileNode(node2)) {
|
|
73244
73829
|
throw new Error("There was an error adding document");
|
|
73245
73830
|
}
|
|
@@ -73351,16 +73936,18 @@ function useDocumentDriveServer() {
|
|
|
73351
73936
|
if (!isAllowedToCreateDocuments) {
|
|
73352
73937
|
throw new Error("User is not allowed to create folders");
|
|
73353
73938
|
}
|
|
73354
|
-
const
|
|
73939
|
+
const folderId = generateId();
|
|
73355
73940
|
const drive = await _addDriveOperation(
|
|
73356
73941
|
driveId,
|
|
73357
73942
|
addFolder({
|
|
73358
|
-
id,
|
|
73943
|
+
id: folderId,
|
|
73359
73944
|
name: name2,
|
|
73360
73945
|
parentFolder
|
|
73361
73946
|
})
|
|
73362
73947
|
);
|
|
73363
|
-
const node2 = drive == null ? void 0 : drive.state.global.nodes.find(
|
|
73948
|
+
const node2 = drive == null ? void 0 : drive.state.global.nodes.find(
|
|
73949
|
+
(node22) => node22.id === folderId
|
|
73950
|
+
);
|
|
73364
73951
|
if (!node2 || !isFolderNode(node2)) {
|
|
73365
73952
|
throw new Error("There was an error adding folder");
|
|
73366
73953
|
}
|
|
@@ -73431,14 +74018,13 @@ function useDocumentDriveServer() {
|
|
|
73431
74018
|
(drive2) => drive2.state.global.id === src2.driveId
|
|
73432
74019
|
);
|
|
73433
74020
|
if (!drive) return;
|
|
73434
|
-
const generateId2 = () => hashKey$1();
|
|
73435
74021
|
const copyNodesInput = generateNodesCopy(
|
|
73436
74022
|
{
|
|
73437
74023
|
srcId: src2.id,
|
|
73438
74024
|
targetParentFolder: target.id,
|
|
73439
74025
|
targetName: src2.name
|
|
73440
74026
|
},
|
|
73441
|
-
|
|
74027
|
+
() => generateId(),
|
|
73442
74028
|
drive.state.global.nodes
|
|
73443
74029
|
);
|
|
73444
74030
|
const copyActions = copyNodesInput.map(
|
|
@@ -73495,7 +74081,7 @@ function useDocumentDriveServer() {
|
|
|
73495
74081
|
if (!isAllowedToCreateDocuments) {
|
|
73496
74082
|
throw new Error("User is not allowed to create drives");
|
|
73497
74083
|
}
|
|
73498
|
-
const id = drive.global.id ||
|
|
74084
|
+
const id = drive.global.id || generateId();
|
|
73499
74085
|
drive = createState$1(drive);
|
|
73500
74086
|
const newDrive = await reactor.addDrive(
|
|
73501
74087
|
{
|
|
@@ -74492,21 +75078,21 @@ const ReadModeContextProvider = (props) => {
|
|
|
74492
75078
|
const accessLevel = readMode ? "READ" : "WRITE";
|
|
74493
75079
|
const server = ReadModeInstance.getServer();
|
|
74494
75080
|
if (server && typeof server.setAllDefaultDrivesAccessLevel === "function") {
|
|
74495
|
-
server.setAllDefaultDrivesAccessLevel(accessLevel).catch(logger$
|
|
75081
|
+
server.setAllDefaultDrivesAccessLevel(accessLevel).catch(logger$2.error);
|
|
74496
75082
|
}
|
|
74497
75083
|
}, [readMode, ready]);
|
|
74498
75084
|
useEffect(() => {
|
|
74499
75085
|
if (!ready) {
|
|
74500
75086
|
return;
|
|
74501
75087
|
}
|
|
74502
|
-
getReadDrives(ReadModeInstance).then((drives) => setReadDrives(drives)).catch(logger$
|
|
75088
|
+
getReadDrives(ReadModeInstance).then((drives) => setReadDrives(drives)).catch(logger$2.error);
|
|
74503
75089
|
const unsubscribe = ReadModeInstance.onReadDrivesUpdate((newDrives) => {
|
|
74504
75090
|
setReadDrives(
|
|
74505
75091
|
(readDrives2) => readDrives2.length !== newDrives.length || drivesToHash$1(readDrives2) !== drivesToHash$1(newDrives) ? newDrives : readDrives2
|
|
74506
75092
|
);
|
|
74507
|
-
}).catch(logger$
|
|
75093
|
+
}).catch(logger$2.error);
|
|
74508
75094
|
return () => {
|
|
74509
|
-
unsubscribe.then((unsub) => unsub == null ? void 0 : unsub()).catch(logger$
|
|
75095
|
+
unsubscribe.then((unsub) => unsub == null ? void 0 : unsub()).catch(logger$2.error);
|
|
74510
75096
|
};
|
|
74511
75097
|
}, [ready]);
|
|
74512
75098
|
const context = useMemo(() => {
|
|
@@ -74591,7 +75177,8 @@ function useUiNodes() {
|
|
|
74591
75177
|
const makeUiDriveNode = useCallback(
|
|
74592
75178
|
async (drive) => {
|
|
74593
75179
|
const isReadDrive = "readContext" in drive;
|
|
74594
|
-
const { id, name: name2, icon
|
|
75180
|
+
const { id, name: name2, icon } = drive.state.global;
|
|
75181
|
+
const { slug } = drive;
|
|
74595
75182
|
const { sharingType: _sharingType, availableOffline } = !isReadDrive ? drive.state.local : { sharingType: PUBLIC, availableOffline: false };
|
|
74596
75183
|
const __sharingType = _sharingType == null ? void 0 : _sharingType.toUpperCase();
|
|
74597
75184
|
const sharingType = __sharingType === "PRIVATE" ? LOCAL : __sharingType;
|
|
@@ -74776,11 +75363,11 @@ function useUiNodes() {
|
|
|
74776
75363
|
const app2 = apps.find((a2) => a2.id === data.appId);
|
|
74777
75364
|
const newDrive = await addDrive(
|
|
74778
75365
|
{
|
|
75366
|
+
slug: "",
|
|
74779
75367
|
global: {
|
|
74780
75368
|
name: data.name,
|
|
74781
75369
|
id: void 0,
|
|
74782
|
-
icon: null
|
|
74783
|
-
slug: null
|
|
75370
|
+
icon: null
|
|
74784
75371
|
},
|
|
74785
75372
|
local: {
|
|
74786
75373
|
availableOffline: data.availableOffline,
|
|
@@ -80131,7 +80718,7 @@ const DangerZone = ({
|
|
|
80131
80718
|
clearStorage().then(() => {
|
|
80132
80719
|
navigate("/");
|
|
80133
80720
|
onRefresh();
|
|
80134
|
-
}).catch(logger$
|
|
80721
|
+
}).catch(logger$2.error);
|
|
80135
80722
|
},
|
|
80136
80723
|
onCancel: () => showModal("settingsModal", { onRefresh })
|
|
80137
80724
|
});
|
|
@@ -87670,250 +88257,72 @@ class AnalyticsQueryEngine {
|
|
|
87670
88257
|
return await this._analyticsStore.getDimensions();
|
|
87671
88258
|
}
|
|
87672
88259
|
}
|
|
87673
|
-
|
|
87674
|
-
|
|
87675
|
-
|
|
87676
|
-
|
|
87677
|
-
|
|
87678
|
-
if (queryClient === false) {
|
|
87679
|
-
return content;
|
|
87680
|
-
}
|
|
87681
|
-
return jsx$1(QueryClientProvider, { client: queryClient, children: content });
|
|
88260
|
+
function getGlobal(namespace2) {
|
|
88261
|
+
var _a2;
|
|
88262
|
+
if (typeof window === "undefined")
|
|
88263
|
+
return void 0;
|
|
88264
|
+
return (_a2 = window.powerhouse) == null ? void 0 : _a2[namespace2];
|
|
87682
88265
|
}
|
|
87683
|
-
function
|
|
87684
|
-
|
|
87685
|
-
|
|
87686
|
-
|
|
87687
|
-
|
|
87688
|
-
return context.store;
|
|
88266
|
+
function setGlobal(namespace2, value) {
|
|
88267
|
+
if (typeof window === "undefined")
|
|
88268
|
+
return;
|
|
88269
|
+
window.powerhouse = window.powerhouse || {};
|
|
88270
|
+
window.powerhouse[namespace2] = value;
|
|
87689
88271
|
}
|
|
87690
|
-
|
|
87691
|
-
|
|
87692
|
-
|
|
87693
|
-
|
|
88272
|
+
const logger = childLogger(["reactor-browser", "analytics", "provider"]);
|
|
88273
|
+
const defaultQueryClient = new QueryClient();
|
|
88274
|
+
const analyticsOptionsKey = ["analytics", "options"];
|
|
88275
|
+
const analyticsStoreKey = ["analytics", "store"];
|
|
88276
|
+
async function createAnalyticsStore({ databaseName }) {
|
|
88277
|
+
const globalAnalytics = getGlobal("analytics");
|
|
88278
|
+
if (databaseName === (globalAnalytics == null ? void 0 : globalAnalytics.options.databaseName)) {
|
|
88279
|
+
logger.warn("Analytics store already initialized with the same database name. Returning existing store.");
|
|
88280
|
+
return globalAnalytics.store;
|
|
87694
88281
|
}
|
|
87695
|
-
return context.engine;
|
|
87696
|
-
}
|
|
87697
|
-
async function createAnalyticsStore() {
|
|
87698
88282
|
const { BrowserAnalyticsStore } = await __vitePreload(async () => {
|
|
87699
|
-
const { BrowserAnalyticsStore: BrowserAnalyticsStore2 } = await import("./browser
|
|
88283
|
+
const { BrowserAnalyticsStore: BrowserAnalyticsStore2 } = await import("./browser--PdVaTAw.js");
|
|
87700
88284
|
return { BrowserAnalyticsStore: BrowserAnalyticsStore2 };
|
|
87701
88285
|
}, true ? __vite__mapDeps([7,2,1,3]) : void 0);
|
|
87702
|
-
const store = new BrowserAnalyticsStore({
|
|
87703
|
-
databaseName: `${connectConfig.routerBasename}:analytics`
|
|
87704
|
-
});
|
|
88286
|
+
const store = new BrowserAnalyticsStore({ databaseName });
|
|
87705
88287
|
await store.init();
|
|
88288
|
+
const engine = new AnalyticsQueryEngine(store);
|
|
88289
|
+
setGlobal("analytics", { store, engine, options: { databaseName } });
|
|
87706
88290
|
return store;
|
|
87707
88291
|
}
|
|
87708
|
-
|
|
87709
|
-
|
|
87710
|
-
|
|
87711
|
-
|
|
87712
|
-
|
|
87713
|
-
|
|
87714
|
-
|
|
87715
|
-
|
|
87716
|
-
|
|
87717
|
-
|
|
87718
|
-
|
|
87719
|
-
return baseOnMount == null ? void 0 : baseOnMount(setStoreAtom);
|
|
87720
|
-
};
|
|
87721
|
-
};
|
|
87722
|
-
function diffDocumentStates(doc1, doc2) {
|
|
87723
|
-
const changes = [];
|
|
87724
|
-
const globalChanges = diffStateObjects(doc1, doc2, "state.global", "global");
|
|
87725
|
-
changes.push(...globalChanges);
|
|
87726
|
-
const additions = changes.filter((c2) => c2.type === "add").length;
|
|
87727
|
-
const removals = changes.filter((c2) => c2.type === "remove").length;
|
|
87728
|
-
const changesByScope = {
|
|
87729
|
-
global: changes.filter((c2) => c2.scope === "global")
|
|
87730
|
-
};
|
|
87731
|
-
return {
|
|
87732
|
-
totalChanges: changes.length,
|
|
87733
|
-
additions,
|
|
87734
|
-
removals,
|
|
87735
|
-
changesByScope,
|
|
87736
|
-
changes
|
|
87737
|
-
};
|
|
88292
|
+
function useCreateAnalyticsStore(queryClient, options2) {
|
|
88293
|
+
queryClient.setQueryDefaults(analyticsOptionsKey, {
|
|
88294
|
+
queryFn: () => options2,
|
|
88295
|
+
staleTime: Infinity,
|
|
88296
|
+
gcTime: Infinity
|
|
88297
|
+
});
|
|
88298
|
+
queryClient.setQueryDefaults(analyticsStoreKey, {
|
|
88299
|
+
queryFn: () => createAnalyticsStore(options2),
|
|
88300
|
+
staleTime: Infinity,
|
|
88301
|
+
gcTime: Infinity
|
|
88302
|
+
});
|
|
87738
88303
|
}
|
|
87739
|
-
function
|
|
87740
|
-
|
|
87741
|
-
|
|
87742
|
-
|
|
87743
|
-
if (typeof obj1 === "string" && typeof obj2 === "string") {
|
|
87744
|
-
return diffStateStrings(obj1, obj2, path, scope);
|
|
87745
|
-
} else {
|
|
87746
|
-
changes.push({
|
|
87747
|
-
type: "remove",
|
|
87748
|
-
path,
|
|
87749
|
-
oldValue: obj1,
|
|
87750
|
-
scope
|
|
87751
|
-
});
|
|
87752
|
-
changes.push({
|
|
87753
|
-
type: "add",
|
|
87754
|
-
path,
|
|
87755
|
-
newValue: obj2,
|
|
87756
|
-
scope
|
|
87757
|
-
});
|
|
87758
|
-
}
|
|
87759
|
-
}
|
|
87760
|
-
return changes;
|
|
87761
|
-
}
|
|
87762
|
-
if (Array.isArray(obj1) && Array.isArray(obj2)) {
|
|
87763
|
-
if (obj1.length !== obj2.length) {
|
|
87764
|
-
changes.push({
|
|
87765
|
-
type: "remove",
|
|
87766
|
-
path,
|
|
87767
|
-
oldValue: obj1,
|
|
87768
|
-
scope
|
|
87769
|
-
});
|
|
87770
|
-
changes.push({
|
|
87771
|
-
type: "add",
|
|
87772
|
-
path,
|
|
87773
|
-
newValue: obj2,
|
|
87774
|
-
scope
|
|
87775
|
-
});
|
|
87776
|
-
return changes;
|
|
87777
|
-
}
|
|
87778
|
-
for (let i2 = 0; i2 < obj1.length; i2++) {
|
|
87779
|
-
const elementChanges = diffStateObjects(obj1[i2], obj2[i2], `${path}[${i2}]`, scope);
|
|
87780
|
-
changes.push(...elementChanges);
|
|
87781
|
-
}
|
|
87782
|
-
return changes;
|
|
87783
|
-
}
|
|
87784
|
-
const obj1Record = obj1;
|
|
87785
|
-
const obj2Record = obj2;
|
|
87786
|
-
const obj1Keys = Object.keys(obj1Record);
|
|
87787
|
-
const obj2Keys = Object.keys(obj2Record);
|
|
87788
|
-
for (const key of obj1Keys) {
|
|
87789
|
-
if (!(key in obj2Record)) {
|
|
87790
|
-
changes.push({
|
|
87791
|
-
type: "remove",
|
|
87792
|
-
path: `${path}.${key}`,
|
|
87793
|
-
oldValue: obj1Record[key],
|
|
87794
|
-
scope
|
|
87795
|
-
});
|
|
87796
|
-
}
|
|
87797
|
-
}
|
|
87798
|
-
for (const key of obj2Keys) {
|
|
87799
|
-
if (!(key in obj1Record)) {
|
|
87800
|
-
changes.push({
|
|
87801
|
-
type: "add",
|
|
87802
|
-
path: `${path}.${key}`,
|
|
87803
|
-
newValue: obj2Record[key],
|
|
87804
|
-
scope
|
|
87805
|
-
});
|
|
87806
|
-
} else if (obj1Record[key] !== obj2Record[key]) {
|
|
87807
|
-
const nestedChanges = diffStateObjects(obj1Record[key], obj2Record[key], `${path}.${key}`, scope);
|
|
87808
|
-
changes.push(...nestedChanges);
|
|
87809
|
-
}
|
|
87810
|
-
}
|
|
87811
|
-
return changes;
|
|
88304
|
+
function useAnalyticsStoreOptions() {
|
|
88305
|
+
return useQuery({
|
|
88306
|
+
queryKey: analyticsOptionsKey
|
|
88307
|
+
});
|
|
87812
88308
|
}
|
|
87813
|
-
function
|
|
87814
|
-
const
|
|
87815
|
-
const
|
|
87816
|
-
|
|
87817
|
-
|
|
87818
|
-
|
|
87819
|
-
|
|
87820
|
-
|
|
87821
|
-
newValue: str2[i2],
|
|
87822
|
-
scope
|
|
87823
|
-
});
|
|
87824
|
-
} else if (i2 >= str2.length) {
|
|
87825
|
-
changes.push({
|
|
87826
|
-
type: "remove",
|
|
87827
|
-
path: `${path}[${i2}]`,
|
|
87828
|
-
oldValue: str1[i2],
|
|
87829
|
-
scope
|
|
87830
|
-
});
|
|
87831
|
-
} else if (str1[i2] !== str2[i2]) {
|
|
87832
|
-
changes.push({
|
|
87833
|
-
type: "remove",
|
|
87834
|
-
path: `${path}[${i2}]`,
|
|
87835
|
-
oldValue: str1[i2],
|
|
87836
|
-
scope
|
|
87837
|
-
});
|
|
87838
|
-
changes.push({
|
|
87839
|
-
type: "add",
|
|
87840
|
-
path: `${path}[${i2}]`,
|
|
87841
|
-
newValue: str2[i2],
|
|
87842
|
-
scope
|
|
87843
|
-
});
|
|
87844
|
-
}
|
|
87845
|
-
}
|
|
87846
|
-
return changes;
|
|
88309
|
+
function useAnalyticsStore() {
|
|
88310
|
+
const { data: storeOptions } = useAnalyticsStoreOptions();
|
|
88311
|
+
const store = useQuery({
|
|
88312
|
+
queryKey: analyticsStoreKey,
|
|
88313
|
+
enabled: !!storeOptions,
|
|
88314
|
+
retry: false
|
|
88315
|
+
});
|
|
88316
|
+
return store.data;
|
|
87847
88317
|
}
|
|
87848
|
-
|
|
87849
|
-
|
|
87850
|
-
|
|
87851
|
-
|
|
87852
|
-
|
|
87853
|
-
|
|
87854
|
-
|
|
87855
|
-
async onStrands(strands) {
|
|
87856
|
-
if (strands.length === 0) {
|
|
87857
|
-
return;
|
|
87858
|
-
}
|
|
87859
|
-
const inputs = [];
|
|
87860
|
-
for (const strand of strands) {
|
|
87861
|
-
if (strand.operations.length === 0) {
|
|
87862
|
-
continue;
|
|
87863
|
-
}
|
|
87864
|
-
const firstOp = strand.operations[0];
|
|
87865
|
-
const source = AnalyticsPath.fromString(`ph/${strand.driveId}/${strand.documentId}/${strand.branch}/${strand.scope}`);
|
|
87866
|
-
if (firstOp.index === 0) {
|
|
87867
|
-
await this.clearSource(source);
|
|
87868
|
-
}
|
|
87869
|
-
for (const operation of strand.operations) {
|
|
87870
|
-
const diff2 = diffDocumentStates(operation.previousState, operation.state);
|
|
87871
|
-
for (const change of diff2.changes) {
|
|
87872
|
-
inputs.push(this.generateInput(strand.documentId, strand.branch, strand.scope, operation.index, change.type, 1, source, operation.timestamp, change.path));
|
|
87873
|
-
}
|
|
87874
|
-
}
|
|
87875
|
-
}
|
|
87876
|
-
if (inputs.length) {
|
|
87877
|
-
await this.analyticsStore.addSeriesValues(inputs);
|
|
87878
|
-
}
|
|
87879
|
-
}
|
|
87880
|
-
async onDisconnect() {
|
|
87881
|
-
}
|
|
87882
|
-
async clearSource(source) {
|
|
87883
|
-
try {
|
|
87884
|
-
await this.analyticsStore.clearSeriesBySource(source, true);
|
|
87885
|
-
} catch (e2) {
|
|
87886
|
-
this.logger.error("Failed to clear source", e2);
|
|
87887
|
-
}
|
|
87888
|
-
}
|
|
87889
|
-
generateInput(documentId, branch, scope, revision, type, value, source, timestamp, path) {
|
|
87890
|
-
const dimensions = {};
|
|
87891
|
-
const changePath = path.split("[")[0].replaceAll(".", "/");
|
|
87892
|
-
dimensions.changes = AnalyticsPath.fromString(`changes/${type}`);
|
|
87893
|
-
dimensions.document = AnalyticsPath.fromString(`document/${documentId}/${branch}/${scope}/${revision}`);
|
|
87894
|
-
dimensions.path = AnalyticsPath.fromString(`path/${changePath}`);
|
|
87895
|
-
return {
|
|
87896
|
-
dimensions,
|
|
87897
|
-
metric: "Count",
|
|
87898
|
-
start: DateTime.fromISO(timestamp),
|
|
87899
|
-
source,
|
|
87900
|
-
value
|
|
87901
|
-
};
|
|
87902
|
-
}
|
|
88318
|
+
function AnalyticsProvider({ children, databaseName, queryClient = defaultQueryClient }) {
|
|
88319
|
+
useCreateAnalyticsStore(queryClient, { databaseName });
|
|
88320
|
+
return jsx$1(QueryClientProvider, { client: queryClient, children });
|
|
88321
|
+
}
|
|
88322
|
+
function useAnalyticsEngine() {
|
|
88323
|
+
const globalAnalytics = getGlobal("analytics");
|
|
88324
|
+
return globalAnalytics == null ? void 0 : globalAnalytics.engine;
|
|
87903
88325
|
}
|
|
87904
|
-
const processorFactory = (module) => (driveId) => {
|
|
87905
|
-
return [
|
|
87906
|
-
{
|
|
87907
|
-
processor: new DiffAnalyticsProcessor(module.analyticsStore),
|
|
87908
|
-
filter: {
|
|
87909
|
-
branch: ["main"],
|
|
87910
|
-
documentId: ["*"],
|
|
87911
|
-
scope: ["*"],
|
|
87912
|
-
documentType: ["*"]
|
|
87913
|
-
}
|
|
87914
|
-
}
|
|
87915
|
-
];
|
|
87916
|
-
};
|
|
87917
88326
|
class ProcessorManager {
|
|
87918
88327
|
constructor(listeners, drive) {
|
|
87919
88328
|
__publicField(this, "listeners");
|
|
@@ -87989,15 +88398,7 @@ class ProcessorManager {
|
|
|
87989
88398
|
}
|
|
87990
88399
|
async function createProcessorManager() {
|
|
87991
88400
|
const reactor = await atomStore.get(reactorAtom);
|
|
87992
|
-
const analyticsStore = await atomStore.get(analyticsStoreAtom);
|
|
87993
88401
|
const manager = new ProcessorManager(reactor.listeners, reactor);
|
|
87994
|
-
const hostModule = {
|
|
87995
|
-
analyticsStore
|
|
87996
|
-
};
|
|
87997
|
-
await manager.registerFactory(
|
|
87998
|
-
"@powerhousedao/diff-analyzer",
|
|
87999
|
-
processorFactory(hostModule)
|
|
88000
|
-
);
|
|
88001
88402
|
reactor.on("driveAdded", async (drive) => {
|
|
88002
88403
|
await manager.registerDrive(drive.state.global.id);
|
|
88003
88404
|
});
|
|
@@ -88005,12 +88406,13 @@ async function createProcessorManager() {
|
|
|
88005
88406
|
}
|
|
88006
88407
|
const processorManagerAtom = atomWithLazy(createProcessorManager);
|
|
88007
88408
|
const useProcessorManager = () => useAtomValue(processorManagerAtom);
|
|
88008
|
-
unwrap(processorManagerAtom);
|
|
88409
|
+
const unwrappedProcessorManager = unwrap(processorManagerAtom);
|
|
88410
|
+
const useUnwrappedProcessorManager = () => useAtomValue(unwrappedProcessorManager);
|
|
88009
88411
|
atomStore.sub(reactorAtom, () => {
|
|
88010
88412
|
return atomStore.get(processorManagerAtom);
|
|
88011
88413
|
});
|
|
88012
88414
|
const Router = React__default.lazy(async () => {
|
|
88013
|
-
const createRouterComponent = await __vitePreload(() => import("./router-
|
|
88415
|
+
const createRouterComponent = await __vitePreload(() => import("./router-B-9X40Vx.js").then((n2) => n2.r), true ? __vite__mapDeps([8,1,2,3]) : void 0);
|
|
88014
88416
|
const router = await createRouterComponent.default();
|
|
88015
88417
|
return { default: router };
|
|
88016
88418
|
});
|
|
@@ -88022,7 +88424,7 @@ const Preloader = () => {
|
|
|
88022
88424
|
return null;
|
|
88023
88425
|
};
|
|
88024
88426
|
const ReactorAnalyticsProvider = lazy(
|
|
88025
|
-
() => __vitePreload(() => import("./reactor-analytics-
|
|
88427
|
+
() => __vitePreload(() => import("./reactor-analytics-C7JH8QS3.js"), true ? __vite__mapDeps([9,1,2,3]) : void 0)
|
|
88026
88428
|
);
|
|
88027
88429
|
const App = () => /* @__PURE__ */ jsx$1(React__default.StrictMode, { children: /* @__PURE__ */ jsx$1(Suspense, { fallback: /* @__PURE__ */ jsx$1(Fragment, {}), children: /* @__PURE__ */ jsxs(Provider, { store: atomStore, children: [
|
|
88028
88430
|
/* @__PURE__ */ jsx$1(Preloader, {}),
|
|
@@ -88046,166 +88448,154 @@ const app = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
88046
88448
|
default: App
|
|
88047
88449
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
88048
88450
|
export {
|
|
88049
|
-
|
|
88050
|
-
|
|
88451
|
+
addExternalPackage as $,
|
|
88452
|
+
useUiNodesContext as A,
|
|
88051
88453
|
Button$1 as B,
|
|
88052
|
-
|
|
88454
|
+
CONFLICT as C,
|
|
88053
88455
|
DataRouterContext as D,
|
|
88054
88456
|
ErrorResponseImpl as E,
|
|
88055
|
-
|
|
88056
|
-
|
|
88057
|
-
|
|
88058
|
-
|
|
88059
|
-
|
|
88060
|
-
|
|
88061
|
-
|
|
88062
|
-
|
|
88063
|
-
|
|
88064
|
-
|
|
88457
|
+
useUnwrappedReactor as F,
|
|
88458
|
+
useModal as G,
|
|
88459
|
+
useLogin as H,
|
|
88460
|
+
isElectron as I,
|
|
88461
|
+
isMac as J,
|
|
88462
|
+
useGetAppNameForEditorId as K,
|
|
88463
|
+
createMemoryRouter as L,
|
|
88464
|
+
ModalManager as M,
|
|
88465
|
+
useAnalyticsStore as N,
|
|
88466
|
+
Outlet as O,
|
|
88065
88467
|
Popover as P,
|
|
88066
|
-
|
|
88468
|
+
useUnwrappedProcessorManager as Q,
|
|
88067
88469
|
Router$1 as R,
|
|
88068
|
-
|
|
88069
|
-
|
|
88070
|
-
|
|
88071
|
-
|
|
88470
|
+
SUCCESS as S,
|
|
88471
|
+
AnalyticsProvider as T,
|
|
88472
|
+
rawKeyInHexfromUncompressed as U,
|
|
88473
|
+
compressedKeyInHexfromRaw as V,
|
|
88072
88474
|
WagmiContext$1 as W,
|
|
88073
|
-
|
|
88074
|
-
|
|
88075
|
-
|
|
88076
|
-
|
|
88475
|
+
encodeDIDfromHexString as X,
|
|
88476
|
+
RENOWN_URL as Y,
|
|
88477
|
+
getEnsInfo as Z,
|
|
88478
|
+
getHMRModule as _,
|
|
88077
88479
|
PopoverTrigger as a,
|
|
88078
|
-
|
|
88079
|
-
|
|
88080
|
-
|
|
88081
|
-
|
|
88082
|
-
|
|
88083
|
-
|
|
88084
|
-
|
|
88085
|
-
|
|
88086
|
-
|
|
88087
|
-
|
|
88088
|
-
|
|
88089
|
-
|
|
88090
|
-
|
|
88091
|
-
|
|
88092
|
-
|
|
88093
|
-
|
|
88094
|
-
|
|
88095
|
-
|
|
88096
|
-
|
|
88097
|
-
|
|
88098
|
-
|
|
88099
|
-
|
|
88100
|
-
|
|
88101
|
-
|
|
88102
|
-
|
|
88103
|
-
|
|
88104
|
-
|
|
88105
|
-
|
|
88106
|
-
|
|
88107
|
-
|
|
88108
|
-
|
|
88109
|
-
|
|
88110
|
-
|
|
88111
|
-
|
|
88112
|
-
|
|
88113
|
-
|
|
88114
|
-
|
|
88115
|
-
|
|
88116
|
-
|
|
88117
|
-
|
|
88118
|
-
|
|
88119
|
-
|
|
88120
|
-
|
|
88121
|
-
|
|
88122
|
-
|
|
88123
|
-
|
|
88124
|
-
|
|
88125
|
-
|
|
88126
|
-
|
|
88127
|
-
|
|
88128
|
-
|
|
88129
|
-
|
|
88130
|
-
|
|
88131
|
-
|
|
88132
|
-
|
|
88133
|
-
|
|
88134
|
-
|
|
88135
|
-
|
|
88136
|
-
|
|
88137
|
-
|
|
88138
|
-
|
|
88139
|
-
|
|
88140
|
-
|
|
88141
|
-
|
|
88480
|
+
Trigger$1 as a$,
|
|
88481
|
+
removeExternalPackage as a0,
|
|
88482
|
+
subscribeExternalPackages as a1,
|
|
88483
|
+
RENOWN_NETWORK_ID as a2,
|
|
88484
|
+
RENOWN_CHAIN_ID as a3,
|
|
88485
|
+
getChain as a4,
|
|
88486
|
+
DateTime as a5,
|
|
88487
|
+
AnalyticsPath as a6,
|
|
88488
|
+
PassthroughAnalyticsProfiler as a7,
|
|
88489
|
+
clsx as a8,
|
|
88490
|
+
get as a9,
|
|
88491
|
+
setOperationSchema as aA,
|
|
88492
|
+
setOperationDescription as aB,
|
|
88493
|
+
deleteOperation as aC,
|
|
88494
|
+
addOperationError as aD,
|
|
88495
|
+
deleteOperationError as aE,
|
|
88496
|
+
setOperationErrorName as aF,
|
|
88497
|
+
BaseError$3 as aG,
|
|
88498
|
+
getUrl as aH,
|
|
88499
|
+
stringify$1 as aI,
|
|
88500
|
+
decodeErrorResult as aJ,
|
|
88501
|
+
isAddressEqual as aK,
|
|
88502
|
+
call as aL,
|
|
88503
|
+
concat$3 as aM,
|
|
88504
|
+
encodeAbiParameters as aN,
|
|
88505
|
+
HttpRequestError as aO,
|
|
88506
|
+
isHex as aP,
|
|
88507
|
+
mergeClassNameProps as aQ,
|
|
88508
|
+
MISSING as aR,
|
|
88509
|
+
SYNCING as aS,
|
|
88510
|
+
INITIAL_SYNC as aT,
|
|
88511
|
+
ConnectDropdownMenu as aU,
|
|
88512
|
+
useOnClickOutside as aV,
|
|
88513
|
+
useEventListener as aW,
|
|
88514
|
+
useCopyToClipboard as aX,
|
|
88515
|
+
Select as aY,
|
|
88516
|
+
Provider$1 as aZ,
|
|
88517
|
+
Root3 as a_,
|
|
88518
|
+
set as aa,
|
|
88519
|
+
appendErrors as ab,
|
|
88520
|
+
useFormContext as ac,
|
|
88521
|
+
Primitive as ad,
|
|
88522
|
+
cva as ae,
|
|
88523
|
+
FormProvider as af,
|
|
88524
|
+
Controller as ag,
|
|
88525
|
+
Slot as ah,
|
|
88526
|
+
useForm as ai,
|
|
88527
|
+
Root2 as aj,
|
|
88528
|
+
List as ak,
|
|
88529
|
+
Trigger as al,
|
|
88530
|
+
Content$1 as am,
|
|
88531
|
+
setModelName as an,
|
|
88532
|
+
setModelId as ao,
|
|
88533
|
+
setModelDescription as ap,
|
|
88534
|
+
setModelExtension as aq,
|
|
88535
|
+
setAuthorName as ar,
|
|
88536
|
+
setAuthorWebsite as as,
|
|
88537
|
+
setStateSchema as at,
|
|
88538
|
+
setInitialState as au,
|
|
88539
|
+
addModule as av,
|
|
88540
|
+
setModuleName as aw,
|
|
88541
|
+
deleteModule as ax,
|
|
88542
|
+
addOperation as ay,
|
|
88543
|
+
setOperationName as az,
|
|
88142
88544
|
PopoverContent as b,
|
|
88143
|
-
|
|
88144
|
-
|
|
88145
|
-
|
|
88146
|
-
|
|
88147
|
-
|
|
88148
|
-
|
|
88149
|
-
|
|
88150
|
-
|
|
88151
|
-
|
|
88152
|
-
|
|
88153
|
-
|
|
88154
|
-
|
|
88155
|
-
|
|
88156
|
-
|
|
88157
|
-
|
|
88158
|
-
|
|
88159
|
-
|
|
88160
|
-
|
|
88161
|
-
|
|
88162
|
-
|
|
88163
|
-
|
|
88164
|
-
|
|
88165
|
-
|
|
88166
|
-
|
|
88167
|
-
|
|
88168
|
-
|
|
88169
|
-
|
|
88170
|
-
|
|
88171
|
-
|
|
88172
|
-
|
|
88173
|
-
|
|
88174
|
-
useUser as bo,
|
|
88175
|
-
useUserPermissions as bp,
|
|
88176
|
-
exportFile as bq,
|
|
88177
|
-
useGetDocumentModelModule as br,
|
|
88178
|
-
addActionContext as bs,
|
|
88179
|
-
signOperation as bt,
|
|
88180
|
-
useHotkeys as bu,
|
|
88181
|
-
DriveLayout as bv,
|
|
88182
|
-
DriveContextProvider as bw,
|
|
88183
|
-
SearchBar as bx,
|
|
88184
|
-
useAnalyticsEngine as by,
|
|
88185
|
-
useAnalyticsStore as bz,
|
|
88545
|
+
Portal as b0,
|
|
88546
|
+
Content2 as b1,
|
|
88547
|
+
validateInitialState as b2,
|
|
88548
|
+
validateStateSchemaName as b3,
|
|
88549
|
+
validateModules as b4,
|
|
88550
|
+
useDocumentDrives as b5,
|
|
88551
|
+
useDriveContext as b6,
|
|
88552
|
+
FILE as b7,
|
|
88553
|
+
useConnectDid as b8,
|
|
88554
|
+
useConnectCrypto as b9,
|
|
88555
|
+
useAtomValue as ba,
|
|
88556
|
+
themeAtom as bb,
|
|
88557
|
+
useUser as bc,
|
|
88558
|
+
useUserPermissions as bd,
|
|
88559
|
+
exportFile as be,
|
|
88560
|
+
useGetDocumentModelModule as bf,
|
|
88561
|
+
addActionContext as bg,
|
|
88562
|
+
signOperation as bh,
|
|
88563
|
+
useHotkeys as bi,
|
|
88564
|
+
DriveLayout as bj,
|
|
88565
|
+
DriveContextProvider as bk,
|
|
88566
|
+
SearchBar as bl,
|
|
88567
|
+
useQueryClient as bm,
|
|
88568
|
+
useAnalyticsEngine as bn,
|
|
88569
|
+
AnalyticsGranularity as bo,
|
|
88570
|
+
useGetEditor as bp,
|
|
88571
|
+
isSameDocument as bq,
|
|
88572
|
+
useFilteredDocumentModels as br,
|
|
88573
|
+
useDriveEditor as bs,
|
|
88574
|
+
useDocumentDriveById as bt,
|
|
88575
|
+
app as bu,
|
|
88186
88576
|
getEnsName as c,
|
|
88187
88577
|
BaseError$1 as d,
|
|
88188
|
-
|
|
88189
|
-
|
|
88578
|
+
useDocumentDriveServer as e,
|
|
88579
|
+
createRouter as f,
|
|
88190
88580
|
getEnsAvatar as g,
|
|
88191
|
-
|
|
88192
|
-
|
|
88193
|
-
|
|
88194
|
-
|
|
88195
|
-
|
|
88196
|
-
|
|
88197
|
-
|
|
88198
|
-
|
|
88199
|
-
|
|
88200
|
-
|
|
88201
|
-
|
|
88202
|
-
|
|
88581
|
+
createBrowserHistory as h,
|
|
88582
|
+
DataRouterStateContext as i,
|
|
88583
|
+
useRoutesImpl as j,
|
|
88584
|
+
useLocation as k,
|
|
88585
|
+
logV6DeprecationWarnings as l,
|
|
88586
|
+
mapRouteProperties as m,
|
|
88587
|
+
useNavigate as n,
|
|
88588
|
+
useTranslation as o,
|
|
88589
|
+
useUiNodes as p,
|
|
88590
|
+
useDocumentDrives$1 as q,
|
|
88591
|
+
useReadModeContext as r,
|
|
88592
|
+
useAsyncReactor as s,
|
|
88203
88593
|
twMerge as t,
|
|
88204
|
-
|
|
88205
|
-
|
|
88206
|
-
|
|
88207
|
-
|
|
88208
|
-
|
|
88209
|
-
|
|
88210
|
-
};
|
|
88211
|
-
//# sourceMappingURL=app-
|
|
88594
|
+
useQuery as u,
|
|
88595
|
+
useConnectConfig as v,
|
|
88596
|
+
toast as w,
|
|
88597
|
+
ERROR as x,
|
|
88598
|
+
isLatestVersion as y,
|
|
88599
|
+
useParams as z
|
|
88600
|
+
};
|
|
88601
|
+
//# sourceMappingURL=app-BRmEr17M.js.map
|