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