@tanstack/query-devtools 5.32.1 → 5.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Devtools/{4D2YBWGB.jsx → NKCIXXMF.jsx} +5828 -6736
- package/build/Devtools/{WIIHGP5G.js → Q436JGP5.js} +5935 -6650
- package/build/Devtools/{XEEESJAM.jsx → RGA35KVA.jsx} +5828 -6736
- package/build/Devtools/{YADHKLPO.js → U2TDTBMY.js} +5935 -6650
- package/build/chunk/{EY5FZ5D2.js → 6EPU3DES.js} +601 -755
- package/build/chunk/{BWUNFN7M.js → LNJC7UVE.js} +601 -755
- package/build/chunk/{4MX274MJ.jsx → WIJZKUEN.jsx} +600 -759
- package/build/chunk/{HLOIZPIT.jsx → YDKHGUIL.jsx} +600 -759
- package/build/dev.cjs +6652 -7149
- package/build/dev.js +2 -2
- package/build/dev.jsx +2 -2
- package/build/index.cjs +6652 -7149
- package/build/index.js +2 -2
- package/build/index.jsx +2 -2
- package/package.json +12 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/solid-js@1.8.
|
|
1
|
+
// ../../node_modules/.pnpm/solid-js@1.8.17/node_modules/solid-js/dist/solid.js
|
|
2
2
|
var sharedConfig = {
|
|
3
3
|
context: void 0,
|
|
4
4
|
registry: void 0
|
|
@@ -142,9 +142,11 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
142
142
|
pr = null;
|
|
143
143
|
key !== void 0 && (resolved = true);
|
|
144
144
|
if ((p === initP || v === initP) && options.onHydrated)
|
|
145
|
-
queueMicrotask(
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
queueMicrotask(
|
|
146
|
+
() => options.onHydrated(key, {
|
|
147
|
+
value: v
|
|
148
|
+
})
|
|
149
|
+
);
|
|
148
150
|
initP = NO_INIT;
|
|
149
151
|
if (Transition && p && loadedUnderTransition) {
|
|
150
152
|
Transition.promises.delete(p);
|
|
@@ -200,10 +202,12 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
200
202
|
}
|
|
201
203
|
if (Transition && pr)
|
|
202
204
|
Transition.promises.delete(pr);
|
|
203
|
-
const p = initP !== NO_INIT ? initP : untrack(
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
const p = initP !== NO_INIT ? initP : untrack(
|
|
206
|
+
() => fetcher(lookup, {
|
|
207
|
+
value: value(),
|
|
208
|
+
refetching
|
|
209
|
+
})
|
|
210
|
+
);
|
|
207
211
|
if (!isPromise(p)) {
|
|
208
212
|
loadEnd(pr, p, void 0, lookup);
|
|
209
213
|
return p;
|
|
@@ -222,7 +226,10 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
222
226
|
setState(resolved ? "refreshing" : "pending");
|
|
223
227
|
trigger();
|
|
224
228
|
}, false);
|
|
225
|
-
return p.then(
|
|
229
|
+
return p.then(
|
|
230
|
+
(v) => loadEnd(p, v, void 0, lookup),
|
|
231
|
+
(e) => loadEnd(p, void 0, castError(e), lookup)
|
|
232
|
+
);
|
|
226
233
|
}
|
|
227
234
|
Object.defineProperties(read, {
|
|
228
235
|
state: {
|
|
@@ -252,10 +259,13 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
252
259
|
createComputed(() => load(false));
|
|
253
260
|
else
|
|
254
261
|
load(false);
|
|
255
|
-
return [
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
262
|
+
return [
|
|
263
|
+
read,
|
|
264
|
+
{
|
|
265
|
+
refetch: load,
|
|
266
|
+
mutate: setValue
|
|
267
|
+
}
|
|
268
|
+
];
|
|
259
269
|
}
|
|
260
270
|
function batch(fn) {
|
|
261
271
|
return runUpdates(fn, false);
|
|
@@ -287,7 +297,7 @@ function on(deps, fn, options) {
|
|
|
287
297
|
input = deps();
|
|
288
298
|
if (defer) {
|
|
289
299
|
defer = false;
|
|
290
|
-
return
|
|
300
|
+
return prevValue;
|
|
291
301
|
}
|
|
292
302
|
const result = untrack(() => fn(input, prevInput, prevValue));
|
|
293
303
|
prevInput = input;
|
|
@@ -306,9 +316,6 @@ function onCleanup(fn) {
|
|
|
306
316
|
Owner.cleanups.push(fn);
|
|
307
317
|
return fn;
|
|
308
318
|
}
|
|
309
|
-
function getListener() {
|
|
310
|
-
return Listener;
|
|
311
|
-
}
|
|
312
319
|
function getOwner() {
|
|
313
320
|
return Owner;
|
|
314
321
|
}
|
|
@@ -461,7 +468,11 @@ function updateComputation(node) {
|
|
|
461
468
|
return;
|
|
462
469
|
cleanNode(node);
|
|
463
470
|
const time = ExecCount;
|
|
464
|
-
runComputation(
|
|
471
|
+
runComputation(
|
|
472
|
+
node,
|
|
473
|
+
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
|
|
474
|
+
time
|
|
475
|
+
);
|
|
465
476
|
if (Transition && !Transition.running && Transition.sources.has(node)) {
|
|
466
477
|
queueMicrotask(() => {
|
|
467
478
|
runUpdates(() => {
|
|
@@ -839,13 +850,16 @@ function resolveChildren(children2) {
|
|
|
839
850
|
function createProvider(id, options) {
|
|
840
851
|
return function provider(props) {
|
|
841
852
|
let res;
|
|
842
|
-
createRenderEffect(
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
853
|
+
createRenderEffect(
|
|
854
|
+
() => res = untrack(() => {
|
|
855
|
+
Owner.context = {
|
|
856
|
+
...Owner.context,
|
|
857
|
+
[id]: props.value
|
|
858
|
+
};
|
|
859
|
+
return children(() => props.children);
|
|
860
|
+
}),
|
|
861
|
+
void 0
|
|
862
|
+
);
|
|
849
863
|
return res;
|
|
850
864
|
};
|
|
851
865
|
}
|
|
@@ -1061,28 +1075,31 @@ function mergeProps(...sources) {
|
|
|
1061
1075
|
sources[i] = typeof s === "function" ? (proxy = true, createMemo(s)) : s;
|
|
1062
1076
|
}
|
|
1063
1077
|
if (proxy) {
|
|
1064
|
-
return new Proxy(
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1078
|
+
return new Proxy(
|
|
1079
|
+
{
|
|
1080
|
+
get(property) {
|
|
1081
|
+
for (let i = sources.length - 1; i >= 0; i--) {
|
|
1082
|
+
const v = resolveSource(sources[i])[property];
|
|
1083
|
+
if (v !== void 0)
|
|
1084
|
+
return v;
|
|
1085
|
+
}
|
|
1086
|
+
},
|
|
1087
|
+
has(property) {
|
|
1088
|
+
for (let i = sources.length - 1; i >= 0; i--) {
|
|
1089
|
+
if (property in resolveSource(sources[i]))
|
|
1090
|
+
return true;
|
|
1091
|
+
}
|
|
1092
|
+
return false;
|
|
1093
|
+
},
|
|
1094
|
+
keys() {
|
|
1095
|
+
const keys = [];
|
|
1096
|
+
for (let i = 0; i < sources.length; i++)
|
|
1097
|
+
keys.push(...Object.keys(resolveSource(sources[i])));
|
|
1098
|
+
return [...new Set(keys)];
|
|
1076
1099
|
}
|
|
1077
|
-
return false;
|
|
1078
1100
|
},
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
for (let i = 0; i < sources.length; i++)
|
|
1082
|
-
keys.push(...Object.keys(resolveSource(sources[i])));
|
|
1083
|
-
return [...new Set(keys)];
|
|
1084
|
-
}
|
|
1085
|
-
}, propTraps);
|
|
1101
|
+
propTraps
|
|
1102
|
+
);
|
|
1086
1103
|
}
|
|
1087
1104
|
const sourcesMap = {};
|
|
1088
1105
|
const defined = /* @__PURE__ */ Object.create(null);
|
|
@@ -1128,29 +1145,37 @@ function splitProps(props, ...keys) {
|
|
|
1128
1145
|
if ($PROXY in props) {
|
|
1129
1146
|
const blocked = new Set(keys.length > 1 ? keys.flat() : keys[0]);
|
|
1130
1147
|
const res = keys.map((k) => {
|
|
1131
|
-
return new Proxy(
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1148
|
+
return new Proxy(
|
|
1149
|
+
{
|
|
1150
|
+
get(property) {
|
|
1151
|
+
return k.includes(property) ? props[property] : void 0;
|
|
1152
|
+
},
|
|
1153
|
+
has(property) {
|
|
1154
|
+
return k.includes(property) && property in props;
|
|
1155
|
+
},
|
|
1156
|
+
keys() {
|
|
1157
|
+
return k.filter((property) => property in props);
|
|
1158
|
+
}
|
|
1137
1159
|
},
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
}
|
|
1141
|
-
}, propTraps);
|
|
1160
|
+
propTraps
|
|
1161
|
+
);
|
|
1142
1162
|
});
|
|
1143
|
-
res.push(
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1163
|
+
res.push(
|
|
1164
|
+
new Proxy(
|
|
1165
|
+
{
|
|
1166
|
+
get(property) {
|
|
1167
|
+
return blocked.has(property) ? void 0 : props[property];
|
|
1168
|
+
},
|
|
1169
|
+
has(property) {
|
|
1170
|
+
return blocked.has(property) ? false : property in props;
|
|
1171
|
+
},
|
|
1172
|
+
keys() {
|
|
1173
|
+
return Object.keys(props).filter((k) => !blocked.has(k));
|
|
1174
|
+
}
|
|
1175
|
+
},
|
|
1176
|
+
propTraps
|
|
1177
|
+
)
|
|
1178
|
+
);
|
|
1154
1179
|
return res;
|
|
1155
1180
|
}
|
|
1156
1181
|
const otherObject = {};
|
|
@@ -1194,17 +1219,19 @@ function lazy(fn) {
|
|
|
1194
1219
|
comp = s;
|
|
1195
1220
|
}
|
|
1196
1221
|
let Comp;
|
|
1197
|
-
return createMemo(
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1222
|
+
return createMemo(
|
|
1223
|
+
() => (Comp = comp()) && untrack(() => {
|
|
1224
|
+
if (false)
|
|
1225
|
+
;
|
|
1226
|
+
if (!ctx)
|
|
1227
|
+
return Comp(props);
|
|
1228
|
+
const c = sharedConfig.context;
|
|
1229
|
+
setHydrateContext(ctx);
|
|
1230
|
+
const r = Comp(props);
|
|
1231
|
+
setHydrateContext(c);
|
|
1232
|
+
return r;
|
|
1233
|
+
})
|
|
1234
|
+
);
|
|
1208
1235
|
};
|
|
1209
1236
|
wrap.preload = () => p || ((p = fn()).then((mod) => comp = () => mod.default), p);
|
|
1210
1237
|
return wrap;
|
|
@@ -1232,60 +1259,120 @@ function Show(props) {
|
|
|
1232
1259
|
const condition = createMemo(() => props.when, void 0, {
|
|
1233
1260
|
equals: (a, b) => keyed ? a === b : !a === !b
|
|
1234
1261
|
});
|
|
1235
|
-
return createMemo(
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1262
|
+
return createMemo(
|
|
1263
|
+
() => {
|
|
1264
|
+
const c = condition();
|
|
1265
|
+
if (c) {
|
|
1266
|
+
const child = props.children;
|
|
1267
|
+
const fn = typeof child === "function" && child.length > 0;
|
|
1268
|
+
return fn ? untrack(
|
|
1269
|
+
() => child(
|
|
1270
|
+
keyed ? c : () => {
|
|
1271
|
+
if (!untrack(condition))
|
|
1272
|
+
throw narrowedError("Show");
|
|
1273
|
+
return props.when;
|
|
1274
|
+
}
|
|
1275
|
+
)
|
|
1276
|
+
) : child;
|
|
1277
|
+
}
|
|
1278
|
+
return props.fallback;
|
|
1279
|
+
},
|
|
1280
|
+
void 0,
|
|
1281
|
+
void 0
|
|
1282
|
+
);
|
|
1248
1283
|
}
|
|
1249
1284
|
function Switch(props) {
|
|
1250
1285
|
let keyed = false;
|
|
1251
1286
|
const equals = (a, b) => (keyed ? a[1] === b[1] : !a[1] === !b[1]) && a[2] === b[2];
|
|
1252
|
-
const conditions = children(() => props.children), evalConditions = createMemo(
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1287
|
+
const conditions = children(() => props.children), evalConditions = createMemo(
|
|
1288
|
+
() => {
|
|
1289
|
+
let conds = conditions();
|
|
1290
|
+
if (!Array.isArray(conds))
|
|
1291
|
+
conds = [conds];
|
|
1292
|
+
for (let i = 0; i < conds.length; i++) {
|
|
1293
|
+
const c = conds[i].when;
|
|
1294
|
+
if (c) {
|
|
1295
|
+
keyed = !!conds[i].keyed;
|
|
1296
|
+
return [i, c, conds[i]];
|
|
1297
|
+
}
|
|
1261
1298
|
}
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
return
|
|
1277
|
-
|
|
1278
|
-
|
|
1299
|
+
return [-1];
|
|
1300
|
+
},
|
|
1301
|
+
void 0,
|
|
1302
|
+
{
|
|
1303
|
+
equals
|
|
1304
|
+
}
|
|
1305
|
+
);
|
|
1306
|
+
return createMemo(
|
|
1307
|
+
() => {
|
|
1308
|
+
const [index, when, cond] = evalConditions();
|
|
1309
|
+
if (index < 0)
|
|
1310
|
+
return props.fallback;
|
|
1311
|
+
const c = cond.children;
|
|
1312
|
+
const fn = typeof c === "function" && c.length > 0;
|
|
1313
|
+
return fn ? untrack(
|
|
1314
|
+
() => c(
|
|
1315
|
+
keyed ? when : () => {
|
|
1316
|
+
if (untrack(evalConditions)[0] !== index)
|
|
1317
|
+
throw narrowedError("Match");
|
|
1318
|
+
return cond.when;
|
|
1319
|
+
}
|
|
1320
|
+
)
|
|
1321
|
+
) : c;
|
|
1322
|
+
},
|
|
1323
|
+
void 0,
|
|
1324
|
+
void 0
|
|
1325
|
+
);
|
|
1279
1326
|
}
|
|
1280
1327
|
function Match(props) {
|
|
1281
1328
|
return props;
|
|
1282
1329
|
}
|
|
1283
1330
|
var DEV = void 0;
|
|
1284
1331
|
|
|
1285
|
-
// ../../node_modules/.pnpm/solid-js@1.8.
|
|
1286
|
-
var booleans = [
|
|
1287
|
-
|
|
1288
|
-
|
|
1332
|
+
// ../../node_modules/.pnpm/solid-js@1.8.17/node_modules/solid-js/web/dist/web.js
|
|
1333
|
+
var booleans = [
|
|
1334
|
+
"allowfullscreen",
|
|
1335
|
+
"async",
|
|
1336
|
+
"autofocus",
|
|
1337
|
+
"autoplay",
|
|
1338
|
+
"checked",
|
|
1339
|
+
"controls",
|
|
1340
|
+
"default",
|
|
1341
|
+
"disabled",
|
|
1342
|
+
"formnovalidate",
|
|
1343
|
+
"hidden",
|
|
1344
|
+
"indeterminate",
|
|
1345
|
+
"inert",
|
|
1346
|
+
"ismap",
|
|
1347
|
+
"loop",
|
|
1348
|
+
"multiple",
|
|
1349
|
+
"muted",
|
|
1350
|
+
"nomodule",
|
|
1351
|
+
"novalidate",
|
|
1352
|
+
"open",
|
|
1353
|
+
"playsinline",
|
|
1354
|
+
"readonly",
|
|
1355
|
+
"required",
|
|
1356
|
+
"reversed",
|
|
1357
|
+
"seamless",
|
|
1358
|
+
"selected"
|
|
1359
|
+
];
|
|
1360
|
+
var Properties = /* @__PURE__ */ new Set([
|
|
1361
|
+
"className",
|
|
1362
|
+
"value",
|
|
1363
|
+
"readOnly",
|
|
1364
|
+
"formNoValidate",
|
|
1365
|
+
"isMap",
|
|
1366
|
+
"noModule",
|
|
1367
|
+
"playsInline",
|
|
1368
|
+
...booleans
|
|
1369
|
+
]);
|
|
1370
|
+
var ChildProperties = /* @__PURE__ */ new Set([
|
|
1371
|
+
"innerHTML",
|
|
1372
|
+
"textContent",
|
|
1373
|
+
"innerText",
|
|
1374
|
+
"children"
|
|
1375
|
+
]);
|
|
1289
1376
|
var Aliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
1290
1377
|
className: "class",
|
|
1291
1378
|
htmlFor: "for"
|
|
@@ -1319,7 +1406,30 @@ function getPropAlias(prop, tagName) {
|
|
|
1319
1406
|
const a = PropAliases[prop];
|
|
1320
1407
|
return typeof a === "object" ? a[tagName] ? a["$"] : void 0 : a;
|
|
1321
1408
|
}
|
|
1322
|
-
var DelegatedEvents = /* @__PURE__ */ new Set([
|
|
1409
|
+
var DelegatedEvents = /* @__PURE__ */ new Set([
|
|
1410
|
+
"beforeinput",
|
|
1411
|
+
"click",
|
|
1412
|
+
"dblclick",
|
|
1413
|
+
"contextmenu",
|
|
1414
|
+
"focusin",
|
|
1415
|
+
"focusout",
|
|
1416
|
+
"input",
|
|
1417
|
+
"keydown",
|
|
1418
|
+
"keyup",
|
|
1419
|
+
"mousedown",
|
|
1420
|
+
"mousemove",
|
|
1421
|
+
"mouseout",
|
|
1422
|
+
"mouseover",
|
|
1423
|
+
"mouseup",
|
|
1424
|
+
"pointerdown",
|
|
1425
|
+
"pointermove",
|
|
1426
|
+
"pointerout",
|
|
1427
|
+
"pointerover",
|
|
1428
|
+
"pointerup",
|
|
1429
|
+
"touchend",
|
|
1430
|
+
"touchmove",
|
|
1431
|
+
"touchstart"
|
|
1432
|
+
]);
|
|
1323
1433
|
var SVGElements = /* @__PURE__ */ new Set([
|
|
1324
1434
|
"altGlyph",
|
|
1325
1435
|
"altGlyphDef",
|
|
@@ -1343,6 +1453,7 @@ var SVGElements = /* @__PURE__ */ new Set([
|
|
|
1343
1453
|
"feDiffuseLighting",
|
|
1344
1454
|
"feDisplacementMap",
|
|
1345
1455
|
"feDistantLight",
|
|
1456
|
+
"feDropShadow",
|
|
1346
1457
|
"feFlood",
|
|
1347
1458
|
"feFuncA",
|
|
1348
1459
|
"feFuncB",
|
|
@@ -1499,7 +1610,7 @@ function clearDelegatedEvents(document2 = window.document) {
|
|
|
1499
1610
|
}
|
|
1500
1611
|
}
|
|
1501
1612
|
function setAttribute(node, name, value) {
|
|
1502
|
-
if (sharedConfig.context)
|
|
1613
|
+
if (!!sharedConfig.context && node.isConnected)
|
|
1503
1614
|
return;
|
|
1504
1615
|
if (value == null)
|
|
1505
1616
|
node.removeAttribute(name);
|
|
@@ -1507,7 +1618,7 @@ function setAttribute(node, name, value) {
|
|
|
1507
1618
|
node.setAttribute(name, value);
|
|
1508
1619
|
}
|
|
1509
1620
|
function setAttributeNS(node, namespace, name, value) {
|
|
1510
|
-
if (sharedConfig.context)
|
|
1621
|
+
if (!!sharedConfig.context && node.isConnected)
|
|
1511
1622
|
return;
|
|
1512
1623
|
if (value == null)
|
|
1513
1624
|
node.removeAttributeNS(namespace, name);
|
|
@@ -1515,7 +1626,7 @@ function setAttributeNS(node, namespace, name, value) {
|
|
|
1515
1626
|
node.setAttributeNS(namespace, name, value);
|
|
1516
1627
|
}
|
|
1517
1628
|
function className(node, value) {
|
|
1518
|
-
if (sharedConfig.context)
|
|
1629
|
+
if (!!sharedConfig.context && node.isConnected)
|
|
1519
1630
|
return;
|
|
1520
1631
|
if (value == null)
|
|
1521
1632
|
node.removeAttribute("class");
|
|
@@ -1580,9 +1691,13 @@ function style(node, value, prev) {
|
|
|
1580
1691
|
function spread(node, props = {}, isSVG, skipChildren) {
|
|
1581
1692
|
const prevProps = {};
|
|
1582
1693
|
if (!skipChildren) {
|
|
1583
|
-
createRenderEffect(
|
|
1694
|
+
createRenderEffect(
|
|
1695
|
+
() => prevProps.children = insertExpression(node, props.children, prevProps.children)
|
|
1696
|
+
);
|
|
1584
1697
|
}
|
|
1585
|
-
createRenderEffect(
|
|
1698
|
+
createRenderEffect(
|
|
1699
|
+
() => typeof props.ref === "function" ? use(props.ref, node) : props.ref = node
|
|
1700
|
+
);
|
|
1586
1701
|
createRenderEffect(() => assign(node, props, isSVG, true, prevProps, true));
|
|
1587
1702
|
return prevProps;
|
|
1588
1703
|
}
|
|
@@ -1669,7 +1784,7 @@ function assignProp(node, prop, value, prev, isSVG, skipRef) {
|
|
|
1669
1784
|
if (forceProp) {
|
|
1670
1785
|
prop = prop.slice(5);
|
|
1671
1786
|
isProp = true;
|
|
1672
|
-
} else if (sharedConfig.context)
|
|
1787
|
+
} else if (!!sharedConfig.context && node.isConnected)
|
|
1673
1788
|
return value;
|
|
1674
1789
|
if (prop === "class" || prop === "className")
|
|
1675
1790
|
className(node, value);
|
|
@@ -1715,7 +1830,8 @@ function eventHandler(e) {
|
|
|
1715
1830
|
}
|
|
1716
1831
|
}
|
|
1717
1832
|
function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
1718
|
-
|
|
1833
|
+
const hydrating = !!sharedConfig.context && parent.isConnected;
|
|
1834
|
+
if (hydrating) {
|
|
1719
1835
|
!current && (current = [...parent.childNodes]);
|
|
1720
1836
|
let cleaned = [];
|
|
1721
1837
|
for (let i = 0; i < current.length; i++) {
|
|
@@ -1734,7 +1850,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
1734
1850
|
const t = typeof value, multi = marker !== void 0;
|
|
1735
1851
|
parent = multi && current[0] && current[0].parentNode || parent;
|
|
1736
1852
|
if (t === "string" || t === "number") {
|
|
1737
|
-
if (
|
|
1853
|
+
if (hydrating)
|
|
1738
1854
|
return current;
|
|
1739
1855
|
if (t === "number")
|
|
1740
1856
|
value = value.toString();
|
|
@@ -1752,7 +1868,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
1752
1868
|
current = parent.textContent = value;
|
|
1753
1869
|
}
|
|
1754
1870
|
} else if (value == null || t === "boolean") {
|
|
1755
|
-
if (
|
|
1871
|
+
if (hydrating)
|
|
1756
1872
|
return current;
|
|
1757
1873
|
current = cleanChildren(parent, current, marker);
|
|
1758
1874
|
} else if (t === "function") {
|
|
@@ -1770,7 +1886,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
1770
1886
|
createRenderEffect(() => current = insertExpression(parent, array, current, marker, true));
|
|
1771
1887
|
return () => current;
|
|
1772
1888
|
}
|
|
1773
|
-
if (
|
|
1889
|
+
if (hydrating) {
|
|
1774
1890
|
if (!array.length)
|
|
1775
1891
|
return current;
|
|
1776
1892
|
if (marker === void 0)
|
|
@@ -1796,7 +1912,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
1796
1912
|
}
|
|
1797
1913
|
current = array;
|
|
1798
1914
|
} else if (value.nodeType) {
|
|
1799
|
-
if (
|
|
1915
|
+
if (hydrating && value.parentNode)
|
|
1800
1916
|
return current = multi ? [value] : value;
|
|
1801
1917
|
if (Array.isArray(current)) {
|
|
1802
1918
|
if (multi)
|
|
@@ -1814,7 +1930,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
1814
1930
|
function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
1815
1931
|
let dynamic = false;
|
|
1816
1932
|
for (let i = 0, len = array.length; i < len; i++) {
|
|
1817
|
-
let item = array[i], prev = current && current[
|
|
1933
|
+
let item = array[i], prev = current && current[normalized.length], t;
|
|
1818
1934
|
if (item == null || item === true || item === false)
|
|
1819
1935
|
;
|
|
1820
1936
|
else if ((t = typeof item) === "object" && item.nodeType) {
|
|
@@ -1825,7 +1941,11 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
|
1825
1941
|
if (unwrap) {
|
|
1826
1942
|
while (typeof item === "function")
|
|
1827
1943
|
item = item();
|
|
1828
|
-
dynamic = normalizeIncomingArray(
|
|
1944
|
+
dynamic = normalizeIncomingArray(
|
|
1945
|
+
normalized,
|
|
1946
|
+
Array.isArray(item) ? item : [item],
|
|
1947
|
+
Array.isArray(prev) ? prev : [prev]
|
|
1948
|
+
) || dynamic;
|
|
1829
1949
|
} else {
|
|
1830
1950
|
normalized.push(item);
|
|
1831
1951
|
dynamic = true;
|
|
@@ -1875,39 +1995,41 @@ function createElement(tagName, isSVG = false) {
|
|
|
1875
1995
|
return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName);
|
|
1876
1996
|
}
|
|
1877
1997
|
function Portal(props) {
|
|
1878
|
-
const {
|
|
1879
|
-
useShadow
|
|
1880
|
-
} = props, marker = document.createTextNode(""), mount = () => props.mount || document.body, owner = getOwner();
|
|
1998
|
+
const { useShadow } = props, marker = document.createTextNode(""), mount = () => props.mount || document.body, owner = getOwner();
|
|
1881
1999
|
let content;
|
|
1882
2000
|
let hydrating = !!sharedConfig.context;
|
|
1883
|
-
createEffect(
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
2001
|
+
createEffect(
|
|
2002
|
+
() => {
|
|
2003
|
+
if (hydrating)
|
|
2004
|
+
getOwner().user = hydrating = false;
|
|
2005
|
+
content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
|
|
2006
|
+
const el = mount();
|
|
2007
|
+
if (el instanceof HTMLHeadElement) {
|
|
2008
|
+
const [clean, setClean] = createSignal(false);
|
|
2009
|
+
const cleanup = () => setClean(true);
|
|
2010
|
+
createRoot((dispose2) => insert(el, () => !clean() ? content() : dispose2(), null));
|
|
2011
|
+
onCleanup(cleanup);
|
|
2012
|
+
} else {
|
|
2013
|
+
const container = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container.attachShadow ? container.attachShadow({
|
|
2014
|
+
mode: "open"
|
|
2015
|
+
}) : container;
|
|
2016
|
+
Object.defineProperty(container, "_$host", {
|
|
2017
|
+
get() {
|
|
2018
|
+
return marker.parentNode;
|
|
2019
|
+
},
|
|
2020
|
+
configurable: true
|
|
2021
|
+
});
|
|
2022
|
+
insert(renderRoot, content);
|
|
2023
|
+
el.appendChild(container);
|
|
2024
|
+
props.ref && props.ref(container);
|
|
2025
|
+
onCleanup(() => el.removeChild(container));
|
|
2026
|
+
}
|
|
2027
|
+
},
|
|
2028
|
+
void 0,
|
|
2029
|
+
{
|
|
2030
|
+
render: !hydrating
|
|
1907
2031
|
}
|
|
1908
|
-
|
|
1909
|
-
render: !hydrating
|
|
1910
|
-
});
|
|
2032
|
+
);
|
|
1911
2033
|
return marker;
|
|
1912
2034
|
}
|
|
1913
2035
|
function Dynamic(props) {
|
|
@@ -1927,140 +2049,82 @@ function Dynamic(props) {
|
|
|
1927
2049
|
});
|
|
1928
2050
|
}
|
|
1929
2051
|
|
|
1930
|
-
// ../../node_modules/.pnpm/superjson@
|
|
1931
|
-
var DoubleIndexedKV =
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
};
|
|
1952
|
-
return DoubleIndexedKV2;
|
|
1953
|
-
}()
|
|
1954
|
-
);
|
|
2052
|
+
// ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/double-indexed-kv.js
|
|
2053
|
+
var DoubleIndexedKV = class {
|
|
2054
|
+
constructor() {
|
|
2055
|
+
this.keyToValue = /* @__PURE__ */ new Map();
|
|
2056
|
+
this.valueToKey = /* @__PURE__ */ new Map();
|
|
2057
|
+
}
|
|
2058
|
+
set(key, value) {
|
|
2059
|
+
this.keyToValue.set(key, value);
|
|
2060
|
+
this.valueToKey.set(value, key);
|
|
2061
|
+
}
|
|
2062
|
+
getByKey(key) {
|
|
2063
|
+
return this.keyToValue.get(key);
|
|
2064
|
+
}
|
|
2065
|
+
getByValue(value) {
|
|
2066
|
+
return this.valueToKey.get(value);
|
|
2067
|
+
}
|
|
2068
|
+
clear() {
|
|
2069
|
+
this.keyToValue.clear();
|
|
2070
|
+
this.valueToKey.clear();
|
|
2071
|
+
}
|
|
2072
|
+
};
|
|
1955
2073
|
|
|
1956
|
-
// ../../node_modules/.pnpm/superjson@
|
|
1957
|
-
var Registry =
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
};
|
|
1982
|
-
return Registry2;
|
|
1983
|
-
}()
|
|
1984
|
-
);
|
|
2074
|
+
// ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/registry.js
|
|
2075
|
+
var Registry = class {
|
|
2076
|
+
constructor(generateIdentifier) {
|
|
2077
|
+
this.generateIdentifier = generateIdentifier;
|
|
2078
|
+
this.kv = new DoubleIndexedKV();
|
|
2079
|
+
}
|
|
2080
|
+
register(value, identifier) {
|
|
2081
|
+
if (this.kv.getByValue(value)) {
|
|
2082
|
+
return;
|
|
2083
|
+
}
|
|
2084
|
+
if (!identifier) {
|
|
2085
|
+
identifier = this.generateIdentifier(value);
|
|
2086
|
+
}
|
|
2087
|
+
this.kv.set(identifier, value);
|
|
2088
|
+
}
|
|
2089
|
+
clear() {
|
|
2090
|
+
this.kv.clear();
|
|
2091
|
+
}
|
|
2092
|
+
getIdentifier(value) {
|
|
2093
|
+
return this.kv.getByValue(value);
|
|
2094
|
+
}
|
|
2095
|
+
getValue(identifier) {
|
|
2096
|
+
return this.kv.getByKey(identifier);
|
|
2097
|
+
}
|
|
2098
|
+
};
|
|
1985
2099
|
|
|
1986
|
-
// ../../node_modules/.pnpm/superjson@
|
|
1987
|
-
var
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
return extendStatics(d, b);
|
|
1997
|
-
};
|
|
1998
|
-
return function(d, b) {
|
|
1999
|
-
if (typeof b !== "function" && b !== null)
|
|
2000
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
2001
|
-
extendStatics(d, b);
|
|
2002
|
-
function __() {
|
|
2003
|
-
this.constructor = d;
|
|
2004
|
-
}
|
|
2005
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2006
|
-
};
|
|
2007
|
-
}();
|
|
2008
|
-
var ClassRegistry = (
|
|
2009
|
-
/** @class */
|
|
2010
|
-
function(_super) {
|
|
2011
|
-
__extends(ClassRegistry2, _super);
|
|
2012
|
-
function ClassRegistry2() {
|
|
2013
|
-
var _this = _super.call(this, function(c) {
|
|
2014
|
-
return c.name;
|
|
2015
|
-
}) || this;
|
|
2016
|
-
_this.classToAllowedProps = /* @__PURE__ */ new Map();
|
|
2017
|
-
return _this;
|
|
2018
|
-
}
|
|
2019
|
-
ClassRegistry2.prototype.register = function(value, options) {
|
|
2020
|
-
if (typeof options === "object") {
|
|
2021
|
-
if (options.allowProps) {
|
|
2022
|
-
this.classToAllowedProps.set(value, options.allowProps);
|
|
2023
|
-
}
|
|
2024
|
-
_super.prototype.register.call(this, value, options.identifier);
|
|
2025
|
-
} else {
|
|
2026
|
-
_super.prototype.register.call(this, value, options);
|
|
2100
|
+
// ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/class-registry.js
|
|
2101
|
+
var ClassRegistry = class extends Registry {
|
|
2102
|
+
constructor() {
|
|
2103
|
+
super((c) => c.name);
|
|
2104
|
+
this.classToAllowedProps = /* @__PURE__ */ new Map();
|
|
2105
|
+
}
|
|
2106
|
+
register(value, options) {
|
|
2107
|
+
if (typeof options === "object") {
|
|
2108
|
+
if (options.allowProps) {
|
|
2109
|
+
this.classToAllowedProps.set(value, options.allowProps);
|
|
2027
2110
|
}
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
};
|
|
2032
|
-
return ClassRegistry2;
|
|
2033
|
-
}(Registry)
|
|
2034
|
-
);
|
|
2035
|
-
|
|
2036
|
-
// ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/util.js
|
|
2037
|
-
var __read = function(o, n) {
|
|
2038
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
2039
|
-
if (!m)
|
|
2040
|
-
return o;
|
|
2041
|
-
var i = m.call(o), r, ar = [], e;
|
|
2042
|
-
try {
|
|
2043
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
2044
|
-
ar.push(r.value);
|
|
2045
|
-
} catch (error) {
|
|
2046
|
-
e = { error };
|
|
2047
|
-
} finally {
|
|
2048
|
-
try {
|
|
2049
|
-
if (r && !r.done && (m = i["return"]))
|
|
2050
|
-
m.call(i);
|
|
2051
|
-
} finally {
|
|
2052
|
-
if (e)
|
|
2053
|
-
throw e.error;
|
|
2111
|
+
super.register(value, options.identifier);
|
|
2112
|
+
} else {
|
|
2113
|
+
super.register(value, options);
|
|
2054
2114
|
}
|
|
2055
2115
|
}
|
|
2056
|
-
|
|
2116
|
+
getAllowedProps(value) {
|
|
2117
|
+
return this.classToAllowedProps.get(value);
|
|
2118
|
+
}
|
|
2057
2119
|
};
|
|
2120
|
+
|
|
2121
|
+
// ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/util.js
|
|
2058
2122
|
function valuesOfObj(record) {
|
|
2059
2123
|
if ("values" in Object) {
|
|
2060
2124
|
return Object.values(record);
|
|
2061
2125
|
}
|
|
2062
|
-
|
|
2063
|
-
for (
|
|
2126
|
+
const values = [];
|
|
2127
|
+
for (const key in record) {
|
|
2064
2128
|
if (record.hasOwnProperty(key)) {
|
|
2065
2129
|
values.push(record[key]);
|
|
2066
2130
|
}
|
|
@@ -2068,13 +2132,13 @@ function valuesOfObj(record) {
|
|
|
2068
2132
|
return values;
|
|
2069
2133
|
}
|
|
2070
2134
|
function find(record, predicate) {
|
|
2071
|
-
|
|
2135
|
+
const values = valuesOfObj(record);
|
|
2072
2136
|
if ("find" in values) {
|
|
2073
2137
|
return values.find(predicate);
|
|
2074
2138
|
}
|
|
2075
|
-
|
|
2076
|
-
for (
|
|
2077
|
-
|
|
2139
|
+
const valuesNotNever = values;
|
|
2140
|
+
for (let i = 0; i < valuesNotNever.length; i++) {
|
|
2141
|
+
const value = valuesNotNever[i];
|
|
2078
2142
|
if (predicate(value)) {
|
|
2079
2143
|
return value;
|
|
2080
2144
|
}
|
|
@@ -2082,17 +2146,14 @@ function find(record, predicate) {
|
|
|
2082
2146
|
return void 0;
|
|
2083
2147
|
}
|
|
2084
2148
|
function forEach(record, run) {
|
|
2085
|
-
Object.entries(record).forEach(
|
|
2086
|
-
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
2087
|
-
return run(value, key);
|
|
2088
|
-
});
|
|
2149
|
+
Object.entries(record).forEach(([key, value]) => run(value, key));
|
|
2089
2150
|
}
|
|
2090
2151
|
function includes(arr, value) {
|
|
2091
2152
|
return arr.indexOf(value) !== -1;
|
|
2092
2153
|
}
|
|
2093
2154
|
function findArr(record, predicate) {
|
|
2094
|
-
for (
|
|
2095
|
-
|
|
2155
|
+
for (let i = 0; i < record.length; i++) {
|
|
2156
|
+
const value = record[i];
|
|
2096
2157
|
if (predicate(value)) {
|
|
2097
2158
|
return value;
|
|
2098
2159
|
}
|
|
@@ -2100,39 +2161,27 @@ function findArr(record, predicate) {
|
|
|
2100
2161
|
return void 0;
|
|
2101
2162
|
}
|
|
2102
2163
|
|
|
2103
|
-
// ../../node_modules/.pnpm/superjson@
|
|
2104
|
-
var CustomTransformerRegistry =
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
};
|
|
2118
|
-
CustomTransformerRegistry2.prototype.findByName = function(name) {
|
|
2119
|
-
return this.transfomers[name];
|
|
2120
|
-
};
|
|
2121
|
-
return CustomTransformerRegistry2;
|
|
2122
|
-
}()
|
|
2123
|
-
);
|
|
2124
|
-
|
|
2125
|
-
// ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/is.js
|
|
2126
|
-
var getType = function(payload) {
|
|
2127
|
-
return Object.prototype.toString.call(payload).slice(8, -1);
|
|
2128
|
-
};
|
|
2129
|
-
var isUndefined = function(payload) {
|
|
2130
|
-
return typeof payload === "undefined";
|
|
2131
|
-
};
|
|
2132
|
-
var isNull = function(payload) {
|
|
2133
|
-
return payload === null;
|
|
2164
|
+
// ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/custom-transformer-registry.js
|
|
2165
|
+
var CustomTransformerRegistry = class {
|
|
2166
|
+
constructor() {
|
|
2167
|
+
this.transfomers = {};
|
|
2168
|
+
}
|
|
2169
|
+
register(transformer) {
|
|
2170
|
+
this.transfomers[transformer.name] = transformer;
|
|
2171
|
+
}
|
|
2172
|
+
findApplicable(v) {
|
|
2173
|
+
return find(this.transfomers, (transformer) => transformer.isApplicable(v));
|
|
2174
|
+
}
|
|
2175
|
+
findByName(name) {
|
|
2176
|
+
return this.transfomers[name];
|
|
2177
|
+
}
|
|
2134
2178
|
};
|
|
2135
|
-
|
|
2179
|
+
|
|
2180
|
+
// ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/is.js
|
|
2181
|
+
var getType = (payload) => Object.prototype.toString.call(payload).slice(8, -1);
|
|
2182
|
+
var isUndefined = (payload) => typeof payload === "undefined";
|
|
2183
|
+
var isNull = (payload) => payload === null;
|
|
2184
|
+
var isPlainObject = (payload) => {
|
|
2136
2185
|
if (typeof payload !== "object" || payload === null)
|
|
2137
2186
|
return false;
|
|
2138
2187
|
if (payload === Object.prototype)
|
|
@@ -2141,77 +2190,39 @@ var isPlainObject = function(payload) {
|
|
|
2141
2190
|
return true;
|
|
2142
2191
|
return Object.getPrototypeOf(payload) === Object.prototype;
|
|
2143
2192
|
};
|
|
2144
|
-
var isEmptyObject =
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
var
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
var
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
var
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
var
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
var
|
|
2160
|
-
|
|
2161
|
-
};
|
|
2162
|
-
var isMap = function(payload) {
|
|
2163
|
-
return payload instanceof Map;
|
|
2164
|
-
};
|
|
2165
|
-
var isSet = function(payload) {
|
|
2166
|
-
return payload instanceof Set;
|
|
2167
|
-
};
|
|
2168
|
-
var isSymbol = function(payload) {
|
|
2169
|
-
return getType(payload) === "Symbol";
|
|
2170
|
-
};
|
|
2171
|
-
var isDate = function(payload) {
|
|
2172
|
-
return payload instanceof Date && !isNaN(payload.valueOf());
|
|
2173
|
-
};
|
|
2174
|
-
var isError = function(payload) {
|
|
2175
|
-
return payload instanceof Error;
|
|
2176
|
-
};
|
|
2177
|
-
var isNaNValue = function(payload) {
|
|
2178
|
-
return typeof payload === "number" && isNaN(payload);
|
|
2179
|
-
};
|
|
2180
|
-
var isPrimitive = function(payload) {
|
|
2181
|
-
return isBoolean(payload) || isNull(payload) || isUndefined(payload) || isNumber(payload) || isString(payload) || isSymbol(payload);
|
|
2182
|
-
};
|
|
2183
|
-
var isBigint = function(payload) {
|
|
2184
|
-
return typeof payload === "bigint";
|
|
2185
|
-
};
|
|
2186
|
-
var isInfinite = function(payload) {
|
|
2187
|
-
return payload === Infinity || payload === -Infinity;
|
|
2188
|
-
};
|
|
2189
|
-
var isTypedArray = function(payload) {
|
|
2190
|
-
return ArrayBuffer.isView(payload) && !(payload instanceof DataView);
|
|
2191
|
-
};
|
|
2192
|
-
var isURL = function(payload) {
|
|
2193
|
-
return payload instanceof URL;
|
|
2194
|
-
};
|
|
2193
|
+
var isEmptyObject = (payload) => isPlainObject(payload) && Object.keys(payload).length === 0;
|
|
2194
|
+
var isArray = (payload) => Array.isArray(payload);
|
|
2195
|
+
var isString = (payload) => typeof payload === "string";
|
|
2196
|
+
var isNumber = (payload) => typeof payload === "number" && !isNaN(payload);
|
|
2197
|
+
var isBoolean = (payload) => typeof payload === "boolean";
|
|
2198
|
+
var isRegExp = (payload) => payload instanceof RegExp;
|
|
2199
|
+
var isMap = (payload) => payload instanceof Map;
|
|
2200
|
+
var isSet = (payload) => payload instanceof Set;
|
|
2201
|
+
var isSymbol = (payload) => getType(payload) === "Symbol";
|
|
2202
|
+
var isDate = (payload) => payload instanceof Date && !isNaN(payload.valueOf());
|
|
2203
|
+
var isError = (payload) => payload instanceof Error;
|
|
2204
|
+
var isNaNValue = (payload) => typeof payload === "number" && isNaN(payload);
|
|
2205
|
+
var isPrimitive = (payload) => isBoolean(payload) || isNull(payload) || isUndefined(payload) || isNumber(payload) || isString(payload) || isSymbol(payload);
|
|
2206
|
+
var isBigint = (payload) => typeof payload === "bigint";
|
|
2207
|
+
var isInfinite = (payload) => payload === Infinity || payload === -Infinity;
|
|
2208
|
+
var isTypedArray = (payload) => ArrayBuffer.isView(payload) && !(payload instanceof DataView);
|
|
2209
|
+
var isURL = (payload) => payload instanceof URL;
|
|
2195
2210
|
|
|
2196
|
-
// ../../node_modules/.pnpm/superjson@
|
|
2197
|
-
var escapeKey =
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
var segment = "";
|
|
2206
|
-
for (var i = 0; i < string.length; i++) {
|
|
2207
|
-
var char = string.charAt(i);
|
|
2208
|
-
var isEscapedDot = char === "\\" && string.charAt(i + 1) === ".";
|
|
2211
|
+
// ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/pathstringifier.js
|
|
2212
|
+
var escapeKey = (key) => key.replace(/\./g, "\\.");
|
|
2213
|
+
var stringifyPath = (path) => path.map(String).map(escapeKey).join(".");
|
|
2214
|
+
var parsePath = (string) => {
|
|
2215
|
+
const result = [];
|
|
2216
|
+
let segment = "";
|
|
2217
|
+
for (let i = 0; i < string.length; i++) {
|
|
2218
|
+
let char = string.charAt(i);
|
|
2219
|
+
const isEscapedDot = char === "\\" && string.charAt(i + 1) === ".";
|
|
2209
2220
|
if (isEscapedDot) {
|
|
2210
2221
|
segment += ".";
|
|
2211
2222
|
i++;
|
|
2212
2223
|
continue;
|
|
2213
2224
|
}
|
|
2214
|
-
|
|
2225
|
+
const isEndOfSegment = char === ".";
|
|
2215
2226
|
if (isEndOfSegment) {
|
|
2216
2227
|
result.push(segment);
|
|
2217
2228
|
segment = "";
|
|
@@ -2219,50 +2230,12 @@ var parsePath = function(string) {
|
|
|
2219
2230
|
}
|
|
2220
2231
|
segment += char;
|
|
2221
2232
|
}
|
|
2222
|
-
|
|
2233
|
+
const lastSegment = segment;
|
|
2223
2234
|
result.push(lastSegment);
|
|
2224
2235
|
return result;
|
|
2225
2236
|
};
|
|
2226
2237
|
|
|
2227
|
-
// ../../node_modules/.pnpm/superjson@
|
|
2228
|
-
var __assign = function() {
|
|
2229
|
-
__assign = Object.assign || function(t) {
|
|
2230
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2231
|
-
s = arguments[i];
|
|
2232
|
-
for (var p in s)
|
|
2233
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2234
|
-
t[p] = s[p];
|
|
2235
|
-
}
|
|
2236
|
-
return t;
|
|
2237
|
-
};
|
|
2238
|
-
return __assign.apply(this, arguments);
|
|
2239
|
-
};
|
|
2240
|
-
var __read2 = function(o, n) {
|
|
2241
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
2242
|
-
if (!m)
|
|
2243
|
-
return o;
|
|
2244
|
-
var i = m.call(o), r, ar = [], e;
|
|
2245
|
-
try {
|
|
2246
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
2247
|
-
ar.push(r.value);
|
|
2248
|
-
} catch (error) {
|
|
2249
|
-
e = { error };
|
|
2250
|
-
} finally {
|
|
2251
|
-
try {
|
|
2252
|
-
if (r && !r.done && (m = i["return"]))
|
|
2253
|
-
m.call(i);
|
|
2254
|
-
} finally {
|
|
2255
|
-
if (e)
|
|
2256
|
-
throw e.error;
|
|
2257
|
-
}
|
|
2258
|
-
}
|
|
2259
|
-
return ar;
|
|
2260
|
-
};
|
|
2261
|
-
var __spreadArray = function(to, from) {
|
|
2262
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
2263
|
-
to[j] = from[i];
|
|
2264
|
-
return to;
|
|
2265
|
-
};
|
|
2238
|
+
// ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/transformer.js
|
|
2266
2239
|
function simpleTransformation(isApplicable, annotation, transform, untransform) {
|
|
2267
2240
|
return {
|
|
2268
2241
|
isApplicable,
|
|
@@ -2272,47 +2245,35 @@ function simpleTransformation(isApplicable, annotation, transform, untransform)
|
|
|
2272
2245
|
};
|
|
2273
2246
|
}
|
|
2274
2247
|
var simpleRules = [
|
|
2275
|
-
simpleTransformation(isUndefined, "undefined",
|
|
2276
|
-
|
|
2277
|
-
}, function() {
|
|
2278
|
-
return void 0;
|
|
2279
|
-
}),
|
|
2280
|
-
simpleTransformation(isBigint, "bigint", function(v) {
|
|
2281
|
-
return v.toString();
|
|
2282
|
-
}, function(v) {
|
|
2248
|
+
simpleTransformation(isUndefined, "undefined", () => null, () => void 0),
|
|
2249
|
+
simpleTransformation(isBigint, "bigint", (v) => v.toString(), (v) => {
|
|
2283
2250
|
if (typeof BigInt !== "undefined") {
|
|
2284
2251
|
return BigInt(v);
|
|
2285
2252
|
}
|
|
2286
2253
|
return v;
|
|
2287
2254
|
}),
|
|
2288
|
-
simpleTransformation(isDate, "Date",
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
return new Date(v);
|
|
2292
|
-
}),
|
|
2293
|
-
simpleTransformation(isError, "Error", function(v, superJson) {
|
|
2294
|
-
var baseError = {
|
|
2255
|
+
simpleTransformation(isDate, "Date", (v) => v.toISOString(), (v) => new Date(v)),
|
|
2256
|
+
simpleTransformation(isError, "Error", (v, superJson) => {
|
|
2257
|
+
const baseError = {
|
|
2295
2258
|
name: v.name,
|
|
2296
2259
|
message: v.message
|
|
2297
2260
|
};
|
|
2298
|
-
superJson.allowedErrorProps.forEach(
|
|
2261
|
+
superJson.allowedErrorProps.forEach((prop) => {
|
|
2299
2262
|
baseError[prop] = v[prop];
|
|
2300
2263
|
});
|
|
2301
2264
|
return baseError;
|
|
2302
|
-
},
|
|
2303
|
-
|
|
2265
|
+
}, (v, superJson) => {
|
|
2266
|
+
const e = new Error(v.message);
|
|
2304
2267
|
e.name = v.name;
|
|
2305
2268
|
e.stack = v.stack;
|
|
2306
|
-
superJson.allowedErrorProps.forEach(
|
|
2269
|
+
superJson.allowedErrorProps.forEach((prop) => {
|
|
2307
2270
|
e[prop] = v[prop];
|
|
2308
2271
|
});
|
|
2309
2272
|
return e;
|
|
2310
2273
|
}),
|
|
2311
|
-
simpleTransformation(isRegExp, "regexp",
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
var body = regex.slice(1, regex.lastIndexOf("/"));
|
|
2315
|
-
var flags = regex.slice(regex.lastIndexOf("/") + 1);
|
|
2274
|
+
simpleTransformation(isRegExp, "regexp", (v) => "" + v, (regex) => {
|
|
2275
|
+
const body = regex.slice(1, regex.lastIndexOf("/"));
|
|
2276
|
+
const flags = regex.slice(regex.lastIndexOf("/") + 1);
|
|
2316
2277
|
return new RegExp(body, flags);
|
|
2317
2278
|
}),
|
|
2318
2279
|
simpleTransformation(
|
|
@@ -2320,21 +2281,11 @@ var simpleRules = [
|
|
|
2320
2281
|
"set",
|
|
2321
2282
|
// (sets only exist in es6+)
|
|
2322
2283
|
// eslint-disable-next-line es5/no-es6-methods
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
},
|
|
2326
|
-
function(v) {
|
|
2327
|
-
return new Set(v);
|
|
2328
|
-
}
|
|
2284
|
+
(v) => [...v.values()],
|
|
2285
|
+
(v) => new Set(v)
|
|
2329
2286
|
),
|
|
2330
|
-
simpleTransformation(isMap, "map",
|
|
2331
|
-
|
|
2332
|
-
}, function(v) {
|
|
2333
|
-
return new Map(v);
|
|
2334
|
-
}),
|
|
2335
|
-
simpleTransformation(function(v) {
|
|
2336
|
-
return isNaNValue(v) || isInfinite(v);
|
|
2337
|
-
}, "number", function(v) {
|
|
2287
|
+
simpleTransformation(isMap, "map", (v) => [...v.entries()], (v) => new Map(v)),
|
|
2288
|
+
simpleTransformation((v) => isNaNValue(v) || isInfinite(v), "number", (v) => {
|
|
2338
2289
|
if (isNaNValue(v)) {
|
|
2339
2290
|
return "NaN";
|
|
2340
2291
|
}
|
|
@@ -2344,16 +2295,10 @@ var simpleRules = [
|
|
|
2344
2295
|
return "-Infinity";
|
|
2345
2296
|
}
|
|
2346
2297
|
}, Number),
|
|
2347
|
-
simpleTransformation(
|
|
2348
|
-
return v === 0 && 1 / v === -Infinity;
|
|
2349
|
-
}, "number", function() {
|
|
2298
|
+
simpleTransformation((v) => v === 0 && 1 / v === -Infinity, "number", () => {
|
|
2350
2299
|
return "-0";
|
|
2351
2300
|
}, Number),
|
|
2352
|
-
simpleTransformation(isURL, "URL",
|
|
2353
|
-
return v.toString();
|
|
2354
|
-
}, function(v) {
|
|
2355
|
-
return new URL(v);
|
|
2356
|
-
})
|
|
2301
|
+
simpleTransformation(isURL, "URL", (v) => v.toString(), (v) => new URL(v))
|
|
2357
2302
|
];
|
|
2358
2303
|
function compositeTransformation(isApplicable, annotation, transform, untransform) {
|
|
2359
2304
|
return {
|
|
@@ -2363,19 +2308,17 @@ function compositeTransformation(isApplicable, annotation, transform, untransfor
|
|
|
2363
2308
|
untransform
|
|
2364
2309
|
};
|
|
2365
2310
|
}
|
|
2366
|
-
var symbolRule = compositeTransformation(
|
|
2311
|
+
var symbolRule = compositeTransformation((s, superJson) => {
|
|
2367
2312
|
if (isSymbol(s)) {
|
|
2368
|
-
|
|
2313
|
+
const isRegistered = !!superJson.symbolRegistry.getIdentifier(s);
|
|
2369
2314
|
return isRegistered;
|
|
2370
2315
|
}
|
|
2371
2316
|
return false;
|
|
2372
|
-
},
|
|
2373
|
-
|
|
2317
|
+
}, (s, superJson) => {
|
|
2318
|
+
const identifier = superJson.symbolRegistry.getIdentifier(s);
|
|
2374
2319
|
return ["symbol", identifier];
|
|
2375
|
-
},
|
|
2376
|
-
|
|
2377
|
-
}, function(_, a, superJson) {
|
|
2378
|
-
var value = superJson.symbolRegistry.getValue(a[1]);
|
|
2320
|
+
}, (v) => v.description, (_, a, superJson) => {
|
|
2321
|
+
const value = superJson.symbolRegistry.getValue(a[1]);
|
|
2379
2322
|
if (!value) {
|
|
2380
2323
|
throw new Error("Trying to deserialize unknown symbol");
|
|
2381
2324
|
}
|
|
@@ -2391,77 +2334,69 @@ var constructorToName = [
|
|
|
2391
2334
|
Float32Array,
|
|
2392
2335
|
Float64Array,
|
|
2393
2336
|
Uint8ClampedArray
|
|
2394
|
-
].reduce(
|
|
2337
|
+
].reduce((obj, ctor) => {
|
|
2395
2338
|
obj[ctor.name] = ctor;
|
|
2396
2339
|
return obj;
|
|
2397
2340
|
}, {});
|
|
2398
|
-
var typedArrayRule = compositeTransformation(isTypedArray,
|
|
2399
|
-
|
|
2400
|
-
}, function(v) {
|
|
2401
|
-
return __spreadArray([], __read2(v));
|
|
2402
|
-
}, function(v, a) {
|
|
2403
|
-
var ctor = constructorToName[a[1]];
|
|
2341
|
+
var typedArrayRule = compositeTransformation(isTypedArray, (v) => ["typed-array", v.constructor.name], (v) => [...v], (v, a) => {
|
|
2342
|
+
const ctor = constructorToName[a[1]];
|
|
2404
2343
|
if (!ctor) {
|
|
2405
2344
|
throw new Error("Trying to deserialize unknown typed array");
|
|
2406
2345
|
}
|
|
2407
2346
|
return new ctor(v);
|
|
2408
2347
|
});
|
|
2409
2348
|
function isInstanceOfRegisteredClass(potentialClass, superJson) {
|
|
2410
|
-
if (potentialClass
|
|
2411
|
-
|
|
2349
|
+
if (potentialClass?.constructor) {
|
|
2350
|
+
const isRegistered = !!superJson.classRegistry.getIdentifier(potentialClass.constructor);
|
|
2412
2351
|
return isRegistered;
|
|
2413
2352
|
}
|
|
2414
2353
|
return false;
|
|
2415
2354
|
}
|
|
2416
|
-
var classRule = compositeTransformation(isInstanceOfRegisteredClass,
|
|
2417
|
-
|
|
2355
|
+
var classRule = compositeTransformation(isInstanceOfRegisteredClass, (clazz, superJson) => {
|
|
2356
|
+
const identifier = superJson.classRegistry.getIdentifier(clazz.constructor);
|
|
2418
2357
|
return ["class", identifier];
|
|
2419
|
-
},
|
|
2420
|
-
|
|
2358
|
+
}, (clazz, superJson) => {
|
|
2359
|
+
const allowedProps = superJson.classRegistry.getAllowedProps(clazz.constructor);
|
|
2421
2360
|
if (!allowedProps) {
|
|
2422
|
-
return
|
|
2361
|
+
return { ...clazz };
|
|
2423
2362
|
}
|
|
2424
|
-
|
|
2425
|
-
allowedProps.forEach(
|
|
2363
|
+
const result = {};
|
|
2364
|
+
allowedProps.forEach((prop) => {
|
|
2426
2365
|
result[prop] = clazz[prop];
|
|
2427
2366
|
});
|
|
2428
2367
|
return result;
|
|
2429
|
-
},
|
|
2430
|
-
|
|
2368
|
+
}, (v, a, superJson) => {
|
|
2369
|
+
const clazz = superJson.classRegistry.getValue(a[1]);
|
|
2431
2370
|
if (!clazz) {
|
|
2432
2371
|
throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");
|
|
2433
2372
|
}
|
|
2434
2373
|
return Object.assign(Object.create(clazz.prototype), v);
|
|
2435
2374
|
});
|
|
2436
|
-
var customRule = compositeTransformation(
|
|
2375
|
+
var customRule = compositeTransformation((value, superJson) => {
|
|
2437
2376
|
return !!superJson.customTransformerRegistry.findApplicable(value);
|
|
2438
|
-
},
|
|
2439
|
-
|
|
2377
|
+
}, (value, superJson) => {
|
|
2378
|
+
const transformer = superJson.customTransformerRegistry.findApplicable(value);
|
|
2440
2379
|
return ["custom", transformer.name];
|
|
2441
|
-
},
|
|
2442
|
-
|
|
2380
|
+
}, (value, superJson) => {
|
|
2381
|
+
const transformer = superJson.customTransformerRegistry.findApplicable(value);
|
|
2443
2382
|
return transformer.serialize(value);
|
|
2444
|
-
},
|
|
2445
|
-
|
|
2383
|
+
}, (v, a, superJson) => {
|
|
2384
|
+
const transformer = superJson.customTransformerRegistry.findByName(a[1]);
|
|
2446
2385
|
if (!transformer) {
|
|
2447
2386
|
throw new Error("Trying to deserialize unknown custom value");
|
|
2448
2387
|
}
|
|
2449
2388
|
return transformer.deserialize(v);
|
|
2450
2389
|
});
|
|
2451
2390
|
var compositeRules = [classRule, symbolRule, customRule, typedArrayRule];
|
|
2452
|
-
var transformValue =
|
|
2453
|
-
|
|
2454
|
-
return rule.isApplicable(value, superJson);
|
|
2455
|
-
});
|
|
2391
|
+
var transformValue = (value, superJson) => {
|
|
2392
|
+
const applicableCompositeRule = findArr(compositeRules, (rule) => rule.isApplicable(value, superJson));
|
|
2456
2393
|
if (applicableCompositeRule) {
|
|
2457
2394
|
return {
|
|
2458
2395
|
value: applicableCompositeRule.transform(value, superJson),
|
|
2459
2396
|
type: applicableCompositeRule.annotation(value, superJson)
|
|
2460
2397
|
};
|
|
2461
2398
|
}
|
|
2462
|
-
|
|
2463
|
-
return rule.isApplicable(value, superJson);
|
|
2464
|
-
});
|
|
2399
|
+
const applicableSimpleRule = findArr(simpleRules, (rule) => rule.isApplicable(value, superJson));
|
|
2465
2400
|
if (applicableSimpleRule) {
|
|
2466
2401
|
return {
|
|
2467
2402
|
value: applicableSimpleRule.transform(value, superJson),
|
|
@@ -2471,10 +2406,10 @@ var transformValue = function(value, superJson) {
|
|
|
2471
2406
|
return void 0;
|
|
2472
2407
|
};
|
|
2473
2408
|
var simpleRulesByAnnotation = {};
|
|
2474
|
-
simpleRules.forEach(
|
|
2409
|
+
simpleRules.forEach((rule) => {
|
|
2475
2410
|
simpleRulesByAnnotation[rule.annotation] = rule;
|
|
2476
2411
|
});
|
|
2477
|
-
var untransformValue =
|
|
2412
|
+
var untransformValue = (json, type, superJson) => {
|
|
2478
2413
|
if (isArray(type)) {
|
|
2479
2414
|
switch (type[0]) {
|
|
2480
2415
|
case "symbol":
|
|
@@ -2489,7 +2424,7 @@ var untransformValue = function(json, type, superJson) {
|
|
|
2489
2424
|
throw new Error("Unknown transformation: " + type);
|
|
2490
2425
|
}
|
|
2491
2426
|
} else {
|
|
2492
|
-
|
|
2427
|
+
const transformation = simpleRulesByAnnotation[type];
|
|
2493
2428
|
if (!transformation) {
|
|
2494
2429
|
throw new Error("Unknown transformation: " + type);
|
|
2495
2430
|
}
|
|
@@ -2497,9 +2432,9 @@ var untransformValue = function(json, type, superJson) {
|
|
|
2497
2432
|
}
|
|
2498
2433
|
};
|
|
2499
2434
|
|
|
2500
|
-
// ../../node_modules/.pnpm/superjson@
|
|
2501
|
-
var getNthKey =
|
|
2502
|
-
|
|
2435
|
+
// ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/accessDeep.js
|
|
2436
|
+
var getNthKey = (value, n) => {
|
|
2437
|
+
const keys = value.keys();
|
|
2503
2438
|
while (n > 0) {
|
|
2504
2439
|
keys.next();
|
|
2505
2440
|
n--;
|
|
@@ -2517,16 +2452,16 @@ function validatePath(path) {
|
|
|
2517
2452
|
throw new Error("constructor is not allowed as a property");
|
|
2518
2453
|
}
|
|
2519
2454
|
}
|
|
2520
|
-
var getDeep =
|
|
2455
|
+
var getDeep = (object, path) => {
|
|
2521
2456
|
validatePath(path);
|
|
2522
|
-
for (
|
|
2523
|
-
|
|
2457
|
+
for (let i = 0; i < path.length; i++) {
|
|
2458
|
+
const key = path[i];
|
|
2524
2459
|
if (isSet(object)) {
|
|
2525
2460
|
object = getNthKey(object, +key);
|
|
2526
2461
|
} else if (isMap(object)) {
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2462
|
+
const row = +key;
|
|
2463
|
+
const type = +path[++i] === 0 ? "key" : "value";
|
|
2464
|
+
const keyOfRow = getNthKey(object, row);
|
|
2530
2465
|
switch (type) {
|
|
2531
2466
|
case "key":
|
|
2532
2467
|
object = keyOfRow;
|
|
@@ -2541,30 +2476,30 @@ var getDeep = function(object, path) {
|
|
|
2541
2476
|
}
|
|
2542
2477
|
return object;
|
|
2543
2478
|
};
|
|
2544
|
-
var setDeep =
|
|
2479
|
+
var setDeep = (object, path, mapper) => {
|
|
2545
2480
|
validatePath(path);
|
|
2546
2481
|
if (path.length === 0) {
|
|
2547
2482
|
return mapper(object);
|
|
2548
2483
|
}
|
|
2549
|
-
|
|
2550
|
-
for (
|
|
2551
|
-
|
|
2484
|
+
let parent = object;
|
|
2485
|
+
for (let i = 0; i < path.length - 1; i++) {
|
|
2486
|
+
const key = path[i];
|
|
2552
2487
|
if (isArray(parent)) {
|
|
2553
|
-
|
|
2488
|
+
const index = +key;
|
|
2554
2489
|
parent = parent[index];
|
|
2555
2490
|
} else if (isPlainObject(parent)) {
|
|
2556
2491
|
parent = parent[key];
|
|
2557
2492
|
} else if (isSet(parent)) {
|
|
2558
|
-
|
|
2493
|
+
const row = +key;
|
|
2559
2494
|
parent = getNthKey(parent, row);
|
|
2560
2495
|
} else if (isMap(parent)) {
|
|
2561
|
-
|
|
2496
|
+
const isEnd = i === path.length - 2;
|
|
2562
2497
|
if (isEnd) {
|
|
2563
2498
|
break;
|
|
2564
2499
|
}
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2500
|
+
const row = +key;
|
|
2501
|
+
const type = +path[++i] === 0 ? "key" : "value";
|
|
2502
|
+
const keyOfRow = getNthKey(parent, row);
|
|
2568
2503
|
switch (type) {
|
|
2569
2504
|
case "key":
|
|
2570
2505
|
parent = keyOfRow;
|
|
@@ -2575,30 +2510,30 @@ var setDeep = function(object, path, mapper) {
|
|
|
2575
2510
|
}
|
|
2576
2511
|
}
|
|
2577
2512
|
}
|
|
2578
|
-
|
|
2513
|
+
const lastKey = path[path.length - 1];
|
|
2579
2514
|
if (isArray(parent)) {
|
|
2580
2515
|
parent[+lastKey] = mapper(parent[+lastKey]);
|
|
2581
2516
|
} else if (isPlainObject(parent)) {
|
|
2582
2517
|
parent[lastKey] = mapper(parent[lastKey]);
|
|
2583
2518
|
}
|
|
2584
2519
|
if (isSet(parent)) {
|
|
2585
|
-
|
|
2586
|
-
|
|
2520
|
+
const oldValue = getNthKey(parent, +lastKey);
|
|
2521
|
+
const newValue = mapper(oldValue);
|
|
2587
2522
|
if (oldValue !== newValue) {
|
|
2588
|
-
parent
|
|
2523
|
+
parent.delete(oldValue);
|
|
2589
2524
|
parent.add(newValue);
|
|
2590
2525
|
}
|
|
2591
2526
|
}
|
|
2592
2527
|
if (isMap(parent)) {
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2528
|
+
const row = +path[path.length - 2];
|
|
2529
|
+
const keyToRow = getNthKey(parent, row);
|
|
2530
|
+
const type = +lastKey === 0 ? "key" : "value";
|
|
2596
2531
|
switch (type) {
|
|
2597
2532
|
case "key": {
|
|
2598
|
-
|
|
2533
|
+
const newKey = mapper(keyToRow);
|
|
2599
2534
|
parent.set(newKey, parent.get(keyToRow));
|
|
2600
2535
|
if (newKey !== keyToRow) {
|
|
2601
|
-
parent
|
|
2536
|
+
parent.delete(keyToRow);
|
|
2602
2537
|
}
|
|
2603
2538
|
break;
|
|
2604
2539
|
}
|
|
@@ -2611,77 +2546,40 @@ var setDeep = function(object, path, mapper) {
|
|
|
2611
2546
|
return object;
|
|
2612
2547
|
};
|
|
2613
2548
|
|
|
2614
|
-
// ../../node_modules/.pnpm/superjson@
|
|
2615
|
-
|
|
2616
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
2617
|
-
if (!m)
|
|
2618
|
-
return o;
|
|
2619
|
-
var i = m.call(o), r, ar = [], e;
|
|
2620
|
-
try {
|
|
2621
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
2622
|
-
ar.push(r.value);
|
|
2623
|
-
} catch (error) {
|
|
2624
|
-
e = { error };
|
|
2625
|
-
} finally {
|
|
2626
|
-
try {
|
|
2627
|
-
if (r && !r.done && (m = i["return"]))
|
|
2628
|
-
m.call(i);
|
|
2629
|
-
} finally {
|
|
2630
|
-
if (e)
|
|
2631
|
-
throw e.error;
|
|
2632
|
-
}
|
|
2633
|
-
}
|
|
2634
|
-
return ar;
|
|
2635
|
-
};
|
|
2636
|
-
var __spreadArray2 = function(to, from) {
|
|
2637
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
2638
|
-
to[j] = from[i];
|
|
2639
|
-
return to;
|
|
2640
|
-
};
|
|
2641
|
-
function traverse(tree, walker2, origin) {
|
|
2642
|
-
if (origin === void 0) {
|
|
2643
|
-
origin = [];
|
|
2644
|
-
}
|
|
2549
|
+
// ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/plainer.js
|
|
2550
|
+
function traverse(tree, walker2, origin = []) {
|
|
2645
2551
|
if (!tree) {
|
|
2646
2552
|
return;
|
|
2647
2553
|
}
|
|
2648
2554
|
if (!isArray(tree)) {
|
|
2649
|
-
forEach(tree,
|
|
2650
|
-
return traverse(subtree, walker2, __spreadArray2(__spreadArray2([], __read3(origin)), __read3(parsePath(key))));
|
|
2651
|
-
});
|
|
2555
|
+
forEach(tree, (subtree, key) => traverse(subtree, walker2, [...origin, ...parsePath(key)]));
|
|
2652
2556
|
return;
|
|
2653
2557
|
}
|
|
2654
|
-
|
|
2558
|
+
const [nodeValue, children2] = tree;
|
|
2655
2559
|
if (children2) {
|
|
2656
|
-
forEach(children2,
|
|
2657
|
-
traverse(child, walker2,
|
|
2560
|
+
forEach(children2, (child, key) => {
|
|
2561
|
+
traverse(child, walker2, [...origin, ...parsePath(key)]);
|
|
2658
2562
|
});
|
|
2659
2563
|
}
|
|
2660
2564
|
walker2(nodeValue, origin);
|
|
2661
2565
|
}
|
|
2662
2566
|
function applyValueAnnotations(plain, annotations, superJson) {
|
|
2663
|
-
traverse(annotations,
|
|
2664
|
-
plain = setDeep(plain, path,
|
|
2665
|
-
return untransformValue(v, type, superJson);
|
|
2666
|
-
});
|
|
2567
|
+
traverse(annotations, (type, path) => {
|
|
2568
|
+
plain = setDeep(plain, path, (v) => untransformValue(v, type, superJson));
|
|
2667
2569
|
});
|
|
2668
2570
|
return plain;
|
|
2669
2571
|
}
|
|
2670
2572
|
function applyReferentialEqualityAnnotations(plain, annotations) {
|
|
2671
2573
|
function apply(identicalPaths, path) {
|
|
2672
|
-
|
|
2673
|
-
identicalPaths.map(parsePath).forEach(
|
|
2674
|
-
plain = setDeep(plain, identicalObjectPath,
|
|
2675
|
-
return object;
|
|
2676
|
-
});
|
|
2574
|
+
const object = getDeep(plain, parsePath(path));
|
|
2575
|
+
identicalPaths.map(parsePath).forEach((identicalObjectPath) => {
|
|
2576
|
+
plain = setDeep(plain, identicalObjectPath, () => object);
|
|
2677
2577
|
});
|
|
2678
2578
|
}
|
|
2679
2579
|
if (isArray(annotations)) {
|
|
2680
|
-
|
|
2681
|
-
root.forEach(
|
|
2682
|
-
plain = setDeep(plain, parsePath(identicalPath),
|
|
2683
|
-
return plain;
|
|
2684
|
-
});
|
|
2580
|
+
const [root, other] = annotations;
|
|
2581
|
+
root.forEach((identicalPath) => {
|
|
2582
|
+
plain = setDeep(plain, parsePath(identicalPath), () => plain);
|
|
2685
2583
|
});
|
|
2686
2584
|
if (other) {
|
|
2687
2585
|
forEach(other, apply);
|
|
@@ -2691,11 +2589,9 @@ function applyReferentialEqualityAnnotations(plain, annotations) {
|
|
|
2691
2589
|
}
|
|
2692
2590
|
return plain;
|
|
2693
2591
|
}
|
|
2694
|
-
var isDeep =
|
|
2695
|
-
return isPlainObject(object) || isArray(object) || isMap(object) || isSet(object) || isInstanceOfRegisteredClass(object, superJson);
|
|
2696
|
-
};
|
|
2592
|
+
var isDeep = (object, superJson) => isPlainObject(object) || isArray(object) || isMap(object) || isSet(object) || isInstanceOfRegisteredClass(object, superJson);
|
|
2697
2593
|
function addIdentity(object, path, identities) {
|
|
2698
|
-
|
|
2594
|
+
const existingSet = identities.get(object);
|
|
2699
2595
|
if (existingSet) {
|
|
2700
2596
|
existingSet.push(path);
|
|
2701
2597
|
} else {
|
|
@@ -2703,20 +2599,16 @@ function addIdentity(object, path, identities) {
|
|
|
2703
2599
|
}
|
|
2704
2600
|
}
|
|
2705
2601
|
function generateReferentialEqualityAnnotations(identitites, dedupe) {
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
identitites.forEach(
|
|
2602
|
+
const result = {};
|
|
2603
|
+
let rootEqualityPaths = void 0;
|
|
2604
|
+
identitites.forEach((paths) => {
|
|
2709
2605
|
if (paths.length <= 1) {
|
|
2710
2606
|
return;
|
|
2711
2607
|
}
|
|
2712
2608
|
if (!dedupe) {
|
|
2713
|
-
paths = paths.map(
|
|
2714
|
-
return path.map(String);
|
|
2715
|
-
}).sort(function(a, b) {
|
|
2716
|
-
return a.length - b.length;
|
|
2717
|
-
});
|
|
2609
|
+
paths = paths.map((path) => path.map(String)).sort((a, b) => a.length - b.length);
|
|
2718
2610
|
}
|
|
2719
|
-
|
|
2611
|
+
const [representativePath, ...identicalPaths] = paths;
|
|
2720
2612
|
if (representativePath.length === 0) {
|
|
2721
2613
|
rootEqualityPaths = identicalPaths.map(stringifyPath);
|
|
2722
2614
|
} else {
|
|
@@ -2733,21 +2625,11 @@ function generateReferentialEqualityAnnotations(identitites, dedupe) {
|
|
|
2733
2625
|
return isEmptyObject(result) ? void 0 : result;
|
|
2734
2626
|
}
|
|
2735
2627
|
}
|
|
2736
|
-
var walker =
|
|
2737
|
-
|
|
2738
|
-
if (path === void 0) {
|
|
2739
|
-
path = [];
|
|
2740
|
-
}
|
|
2741
|
-
if (objectsInThisPath === void 0) {
|
|
2742
|
-
objectsInThisPath = [];
|
|
2743
|
-
}
|
|
2744
|
-
if (seenObjects === void 0) {
|
|
2745
|
-
seenObjects = /* @__PURE__ */ new Map();
|
|
2746
|
-
}
|
|
2747
|
-
var primitive = isPrimitive(object);
|
|
2628
|
+
var walker = (object, identities, superJson, dedupe, path = [], objectsInThisPath = [], seenObjects = /* @__PURE__ */ new Map()) => {
|
|
2629
|
+
const primitive = isPrimitive(object);
|
|
2748
2630
|
if (!primitive) {
|
|
2749
2631
|
addIdentity(object, path, identities);
|
|
2750
|
-
|
|
2632
|
+
const seen = seenObjects.get(object);
|
|
2751
2633
|
if (seen) {
|
|
2752
2634
|
return dedupe ? {
|
|
2753
2635
|
transformedValue: null
|
|
@@ -2755,39 +2637,42 @@ var walker = function(object, identities, superJson, dedupe, path, objectsInThis
|
|
|
2755
2637
|
}
|
|
2756
2638
|
}
|
|
2757
2639
|
if (!isDeep(object, superJson)) {
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
transformedValue:
|
|
2761
|
-
annotations: [
|
|
2640
|
+
const transformed2 = transformValue(object, superJson);
|
|
2641
|
+
const result2 = transformed2 ? {
|
|
2642
|
+
transformedValue: transformed2.value,
|
|
2643
|
+
annotations: [transformed2.type]
|
|
2762
2644
|
} : {
|
|
2763
2645
|
transformedValue: object
|
|
2764
2646
|
};
|
|
2765
2647
|
if (!primitive) {
|
|
2766
|
-
seenObjects.set(object,
|
|
2648
|
+
seenObjects.set(object, result2);
|
|
2767
2649
|
}
|
|
2768
|
-
return
|
|
2650
|
+
return result2;
|
|
2769
2651
|
}
|
|
2770
2652
|
if (includes(objectsInThisPath, object)) {
|
|
2771
2653
|
return {
|
|
2772
2654
|
transformedValue: null
|
|
2773
2655
|
};
|
|
2774
2656
|
}
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
forEach(transformed,
|
|
2780
|
-
|
|
2657
|
+
const transformationResult = transformValue(object, superJson);
|
|
2658
|
+
const transformed = transformationResult?.value ?? object;
|
|
2659
|
+
const transformedValue = isArray(transformed) ? [] : {};
|
|
2660
|
+
const innerAnnotations = {};
|
|
2661
|
+
forEach(transformed, (value, index) => {
|
|
2662
|
+
if (index === "__proto__" || index === "constructor" || index === "prototype") {
|
|
2663
|
+
throw new Error(`Detected property ${index}. This is a prototype pollution risk, please remove it from your object.`);
|
|
2664
|
+
}
|
|
2665
|
+
const recursiveResult = walker(value, identities, superJson, dedupe, [...path, index], [...objectsInThisPath, object], seenObjects);
|
|
2781
2666
|
transformedValue[index] = recursiveResult.transformedValue;
|
|
2782
2667
|
if (isArray(recursiveResult.annotations)) {
|
|
2783
2668
|
innerAnnotations[index] = recursiveResult.annotations;
|
|
2784
2669
|
} else if (isPlainObject(recursiveResult.annotations)) {
|
|
2785
|
-
forEach(recursiveResult.annotations,
|
|
2670
|
+
forEach(recursiveResult.annotations, (tree, key) => {
|
|
2786
2671
|
innerAnnotations[escapeKey(index) + "." + key] = tree;
|
|
2787
2672
|
});
|
|
2788
2673
|
}
|
|
2789
2674
|
});
|
|
2790
|
-
|
|
2675
|
+
const result = isEmptyObject(innerAnnotations) ? {
|
|
2791
2676
|
transformedValue,
|
|
2792
2677
|
annotations: !!transformationResult ? [transformationResult.type] : void 0
|
|
2793
2678
|
} : {
|
|
@@ -2848,120 +2733,81 @@ function copy(target, options = {}) {
|
|
|
2848
2733
|
}, {});
|
|
2849
2734
|
}
|
|
2850
2735
|
|
|
2851
|
-
// ../../node_modules/.pnpm/superjson@
|
|
2852
|
-
var
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2736
|
+
// ../../node_modules/.pnpm/superjson@2.2.1/node_modules/superjson/dist/index.js
|
|
2737
|
+
var SuperJSON = class {
|
|
2738
|
+
/**
|
|
2739
|
+
* @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
|
|
2740
|
+
*/
|
|
2741
|
+
constructor({ dedupe = false } = {}) {
|
|
2742
|
+
this.classRegistry = new ClassRegistry();
|
|
2743
|
+
this.symbolRegistry = new Registry((s) => s.description ?? "");
|
|
2744
|
+
this.customTransformerRegistry = new CustomTransformerRegistry();
|
|
2745
|
+
this.allowedErrorProps = [];
|
|
2746
|
+
this.dedupe = dedupe;
|
|
2747
|
+
}
|
|
2748
|
+
serialize(object) {
|
|
2749
|
+
const identities = /* @__PURE__ */ new Map();
|
|
2750
|
+
const output = walker(object, identities, this, this.dedupe);
|
|
2751
|
+
const res = {
|
|
2752
|
+
json: output.transformedValue
|
|
2753
|
+
};
|
|
2754
|
+
if (output.annotations) {
|
|
2755
|
+
res.meta = {
|
|
2756
|
+
...res.meta,
|
|
2757
|
+
values: output.annotations
|
|
2758
|
+
};
|
|
2759
|
+
}
|
|
2760
|
+
const equalityAnnotations = generateReferentialEqualityAnnotations(identities, this.dedupe);
|
|
2761
|
+
if (equalityAnnotations) {
|
|
2762
|
+
res.meta = {
|
|
2763
|
+
...res.meta,
|
|
2764
|
+
referentialEqualities: equalityAnnotations
|
|
2765
|
+
};
|
|
2881
2766
|
}
|
|
2767
|
+
return res;
|
|
2768
|
+
}
|
|
2769
|
+
deserialize(payload) {
|
|
2770
|
+
const { json, meta } = payload;
|
|
2771
|
+
let result = copy(json);
|
|
2772
|
+
if (meta?.values) {
|
|
2773
|
+
result = applyValueAnnotations(result, meta.values, this);
|
|
2774
|
+
}
|
|
2775
|
+
if (meta?.referentialEqualities) {
|
|
2776
|
+
result = applyReferentialEqualityAnnotations(result, meta.referentialEqualities);
|
|
2777
|
+
}
|
|
2778
|
+
return result;
|
|
2779
|
+
}
|
|
2780
|
+
stringify(object) {
|
|
2781
|
+
return JSON.stringify(this.serialize(object));
|
|
2782
|
+
}
|
|
2783
|
+
parse(string) {
|
|
2784
|
+
return this.deserialize(JSON.parse(string));
|
|
2785
|
+
}
|
|
2786
|
+
registerClass(v, options) {
|
|
2787
|
+
this.classRegistry.register(v, options);
|
|
2788
|
+
}
|
|
2789
|
+
registerSymbol(v, identifier) {
|
|
2790
|
+
this.symbolRegistry.register(v, identifier);
|
|
2791
|
+
}
|
|
2792
|
+
registerCustom(transformer, name) {
|
|
2793
|
+
this.customTransformerRegistry.register({
|
|
2794
|
+
name,
|
|
2795
|
+
...transformer
|
|
2796
|
+
});
|
|
2797
|
+
}
|
|
2798
|
+
allowErrorProps(...props) {
|
|
2799
|
+
this.allowedErrorProps.push(...props);
|
|
2882
2800
|
}
|
|
2883
|
-
return ar;
|
|
2884
|
-
};
|
|
2885
|
-
var __spreadArray3 = function(to, from) {
|
|
2886
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
2887
|
-
to[j] = from[i];
|
|
2888
|
-
return to;
|
|
2889
2801
|
};
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
});
|
|
2900
|
-
this.customTransformerRegistry = new CustomTransformerRegistry();
|
|
2901
|
-
this.allowedErrorProps = [];
|
|
2902
|
-
this.dedupe = dedupe;
|
|
2903
|
-
}
|
|
2904
|
-
SuperJSON2.prototype.serialize = function(object) {
|
|
2905
|
-
var identities = /* @__PURE__ */ new Map();
|
|
2906
|
-
var output = walker(object, identities, this, this.dedupe);
|
|
2907
|
-
var res = {
|
|
2908
|
-
json: output.transformedValue
|
|
2909
|
-
};
|
|
2910
|
-
if (output.annotations) {
|
|
2911
|
-
res.meta = __assign2(__assign2({}, res.meta), { values: output.annotations });
|
|
2912
|
-
}
|
|
2913
|
-
var equalityAnnotations = generateReferentialEqualityAnnotations(identities, this.dedupe);
|
|
2914
|
-
if (equalityAnnotations) {
|
|
2915
|
-
res.meta = __assign2(__assign2({}, res.meta), { referentialEqualities: equalityAnnotations });
|
|
2916
|
-
}
|
|
2917
|
-
return res;
|
|
2918
|
-
};
|
|
2919
|
-
SuperJSON2.prototype.deserialize = function(payload) {
|
|
2920
|
-
var json = payload.json, meta = payload.meta;
|
|
2921
|
-
var result = copy(json);
|
|
2922
|
-
if (meta === null || meta === void 0 ? void 0 : meta.values) {
|
|
2923
|
-
result = applyValueAnnotations(result, meta.values, this);
|
|
2924
|
-
}
|
|
2925
|
-
if (meta === null || meta === void 0 ? void 0 : meta.referentialEqualities) {
|
|
2926
|
-
result = applyReferentialEqualityAnnotations(result, meta.referentialEqualities);
|
|
2927
|
-
}
|
|
2928
|
-
return result;
|
|
2929
|
-
};
|
|
2930
|
-
SuperJSON2.prototype.stringify = function(object) {
|
|
2931
|
-
return JSON.stringify(this.serialize(object));
|
|
2932
|
-
};
|
|
2933
|
-
SuperJSON2.prototype.parse = function(string) {
|
|
2934
|
-
return this.deserialize(JSON.parse(string));
|
|
2935
|
-
};
|
|
2936
|
-
SuperJSON2.prototype.registerClass = function(v, options) {
|
|
2937
|
-
this.classRegistry.register(v, options);
|
|
2938
|
-
};
|
|
2939
|
-
SuperJSON2.prototype.registerSymbol = function(v, identifier) {
|
|
2940
|
-
this.symbolRegistry.register(v, identifier);
|
|
2941
|
-
};
|
|
2942
|
-
SuperJSON2.prototype.registerCustom = function(transformer, name) {
|
|
2943
|
-
this.customTransformerRegistry.register(__assign2({ name }, transformer));
|
|
2944
|
-
};
|
|
2945
|
-
SuperJSON2.prototype.allowErrorProps = function() {
|
|
2946
|
-
var _a;
|
|
2947
|
-
var props = [];
|
|
2948
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
2949
|
-
props[_i] = arguments[_i];
|
|
2950
|
-
}
|
|
2951
|
-
(_a = this.allowedErrorProps).push.apply(_a, __spreadArray3([], __read4(props)));
|
|
2952
|
-
};
|
|
2953
|
-
SuperJSON2.defaultInstance = new SuperJSON2();
|
|
2954
|
-
SuperJSON2.serialize = SuperJSON2.defaultInstance.serialize.bind(SuperJSON2.defaultInstance);
|
|
2955
|
-
SuperJSON2.deserialize = SuperJSON2.defaultInstance.deserialize.bind(SuperJSON2.defaultInstance);
|
|
2956
|
-
SuperJSON2.stringify = SuperJSON2.defaultInstance.stringify.bind(SuperJSON2.defaultInstance);
|
|
2957
|
-
SuperJSON2.parse = SuperJSON2.defaultInstance.parse.bind(SuperJSON2.defaultInstance);
|
|
2958
|
-
SuperJSON2.registerClass = SuperJSON2.defaultInstance.registerClass.bind(SuperJSON2.defaultInstance);
|
|
2959
|
-
SuperJSON2.registerSymbol = SuperJSON2.defaultInstance.registerSymbol.bind(SuperJSON2.defaultInstance);
|
|
2960
|
-
SuperJSON2.registerCustom = SuperJSON2.defaultInstance.registerCustom.bind(SuperJSON2.defaultInstance);
|
|
2961
|
-
SuperJSON2.allowErrorProps = SuperJSON2.defaultInstance.allowErrorProps.bind(SuperJSON2.defaultInstance);
|
|
2962
|
-
return SuperJSON2;
|
|
2963
|
-
}()
|
|
2964
|
-
);
|
|
2802
|
+
SuperJSON.defaultInstance = new SuperJSON();
|
|
2803
|
+
SuperJSON.serialize = SuperJSON.defaultInstance.serialize.bind(SuperJSON.defaultInstance);
|
|
2804
|
+
SuperJSON.deserialize = SuperJSON.defaultInstance.deserialize.bind(SuperJSON.defaultInstance);
|
|
2805
|
+
SuperJSON.stringify = SuperJSON.defaultInstance.stringify.bind(SuperJSON.defaultInstance);
|
|
2806
|
+
SuperJSON.parse = SuperJSON.defaultInstance.parse.bind(SuperJSON.defaultInstance);
|
|
2807
|
+
SuperJSON.registerClass = SuperJSON.defaultInstance.registerClass.bind(SuperJSON.defaultInstance);
|
|
2808
|
+
SuperJSON.registerSymbol = SuperJSON.defaultInstance.registerSymbol.bind(SuperJSON.defaultInstance);
|
|
2809
|
+
SuperJSON.registerCustom = SuperJSON.defaultInstance.registerCustom.bind(SuperJSON.defaultInstance);
|
|
2810
|
+
SuperJSON.allowErrorProps = SuperJSON.defaultInstance.allowErrorProps.bind(SuperJSON.defaultInstance);
|
|
2965
2811
|
var serialize = SuperJSON.serialize;
|
|
2966
2812
|
SuperJSON.deserialize;
|
|
2967
2813
|
var stringify = SuperJSON.stringify;
|
|
@@ -3140,4 +2986,4 @@ var setupStyleSheet = (nonce, target) => {
|
|
|
3140
2986
|
}
|
|
3141
2987
|
};
|
|
3142
2988
|
|
|
3143
|
-
export { $
|
|
2989
|
+
export { $TRACK, DEV, Dynamic, For, Index, Match, Portal, Show, Switch, addEventListener, batch, className, clearDelegatedEvents, convertRemToPixels, createComponent, createComputed, createContext, createEffect, createMemo, createRenderEffect, createRoot, createSignal, createUniqueId, delegateEvents, deleteNestedDataByPath, displayValue, getMutationStatusColor, getOwner, getPreferredColorScheme, getQueryStatusColor, getQueryStatusColorByLabel, getQueryStatusLabel, getSidedProp, insert, isServer, lazy, mergeProps, mutationSortFns, on, onCleanup, onMount, render, setAttribute, setupStyleSheet, sortFns, splitProps, spread, stringify, template, untrack, updateNestedDataByPath, use, useContext, useTransition };
|