@tanstack/query-devtools 5.18.1 → 5.20.2

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.
@@ -1,4 +1,4 @@
1
- // ../../node_modules/.pnpm/solid-js@1.8.7/node_modules/solid-js/dist/solid.js
1
+ // ../../node_modules/.pnpm/solid-js@1.8.14/node_modules/solid-js/dist/solid.js
2
2
  var sharedConfig = {
3
3
  context: void 0,
4
4
  registry: void 0
@@ -34,7 +34,7 @@ var NO_INIT = {};
34
34
  var Owner = null;
35
35
  var Transition = null;
36
36
  var Scheduler = null;
37
- var ExternalSourceFactory = null;
37
+ var ExternalSourceConfig = null;
38
38
  var Listener = null;
39
39
  var Updates = null;
40
40
  var Effects = null;
@@ -143,11 +143,9 @@ 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
- () => options.onHydrated(key, {
148
- value: v
149
- })
150
- );
146
+ queueMicrotask(() => options.onHydrated(key, {
147
+ value: v
148
+ }));
151
149
  initP = NO_INIT;
152
150
  if (Transition && p && loadedUnderTransition) {
153
151
  Transition.promises.delete(p);
@@ -203,12 +201,10 @@ function createResource(pSource, pFetcher, pOptions) {
203
201
  }
204
202
  if (Transition && pr)
205
203
  Transition.promises.delete(pr);
206
- const p = initP !== NO_INIT ? initP : untrack(
207
- () => fetcher(lookup, {
208
- value: value(),
209
- refetching
210
- })
211
- );
204
+ const p = initP !== NO_INIT ? initP : untrack(() => fetcher(lookup, {
205
+ value: value(),
206
+ refetching
207
+ }));
212
208
  if (!isPromise(p)) {
213
209
  loadEnd(pr, p, void 0, lookup);
214
210
  return p;
@@ -227,10 +223,7 @@ function createResource(pSource, pFetcher, pOptions) {
227
223
  setState(resolved ? "refreshing" : "pending");
228
224
  trigger();
229
225
  }, false);
230
- return p.then(
231
- (v) => loadEnd(p, v, void 0, lookup),
232
- (e) => loadEnd(p, void 0, castError(e), lookup)
233
- );
226
+ return p.then((v) => loadEnd(p, v, void 0, lookup), (e) => loadEnd(p, void 0, castError(e), lookup));
234
227
  }
235
228
  Object.defineProperties(read, {
236
229
  state: {
@@ -260,23 +253,22 @@ function createResource(pSource, pFetcher, pOptions) {
260
253
  createComputed(() => load(false));
261
254
  else
262
255
  load(false);
263
- return [
264
- read,
265
- {
266
- refetch: load,
267
- mutate: setValue
268
- }
269
- ];
256
+ return [read, {
257
+ refetch: load,
258
+ mutate: setValue
259
+ }];
270
260
  }
271
261
  function batch(fn) {
272
262
  return runUpdates(fn, false);
273
263
  }
274
264
  function untrack(fn) {
275
- if (Listener === null)
265
+ if (!ExternalSourceConfig && Listener === null)
276
266
  return fn();
277
267
  const listener = Listener;
278
268
  Listener = null;
279
269
  try {
270
+ if (ExternalSourceConfig)
271
+ return ExternalSourceConfig.untrack(fn);
280
272
  return fn();
281
273
  } finally {
282
274
  Listener = listener;
@@ -470,11 +462,7 @@ function updateComputation(node) {
470
462
  return;
471
463
  cleanNode(node);
472
464
  const time = ExecCount;
473
- runComputation(
474
- node,
475
- Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
476
- time
477
- );
465
+ runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
478
466
  if (Transition && !Transition.running && Transition.sources.has(node)) {
479
467
  queueMicrotask(() => {
480
468
  runUpdates(() => {
@@ -554,14 +542,14 @@ function createComputation(fn, init, pure, state = STALE, options) {
554
542
  Owner.owned.push(c);
555
543
  }
556
544
  }
557
- if (ExternalSourceFactory) {
545
+ if (ExternalSourceConfig && c.fn) {
558
546
  const [track, trigger] = createSignal(void 0, {
559
547
  equals: false
560
548
  });
561
- const ordinary = ExternalSourceFactory(c.fn, trigger);
549
+ const ordinary = ExternalSourceConfig.factory(c.fn, trigger);
562
550
  onCleanup(() => ordinary.dispose());
563
551
  const triggerInTransition = () => startTransition(trigger).then(() => inTransition.dispose());
564
- const inTransition = ExternalSourceFactory(c.fn, triggerInTransition);
552
+ const inTransition = ExternalSourceConfig.factory(c.fn, triggerInTransition);
565
553
  c.fn = (x) => {
566
554
  track();
567
555
  return Transition && Transition.running ? inTransition.track(x) : ordinary.track(x);
@@ -852,16 +840,13 @@ function resolveChildren(children2) {
852
840
  function createProvider(id, options) {
853
841
  return function provider(props) {
854
842
  let res;
855
- createRenderEffect(
856
- () => res = untrack(() => {
857
- Owner.context = {
858
- ...Owner.context,
859
- [id]: props.value
860
- };
861
- return children(() => props.children);
862
- }),
863
- void 0
864
- );
843
+ createRenderEffect(() => res = untrack(() => {
844
+ Owner.context = {
845
+ ...Owner.context,
846
+ [id]: props.value
847
+ };
848
+ return children(() => props.children);
849
+ }), void 0);
865
850
  return res;
866
851
  };
867
852
  }
@@ -1077,108 +1062,96 @@ function mergeProps(...sources) {
1077
1062
  sources[i] = typeof s === "function" ? (proxy = true, createMemo(s)) : s;
1078
1063
  }
1079
1064
  if (proxy) {
1080
- return new Proxy(
1081
- {
1082
- get(property) {
1083
- for (let i = sources.length - 1; i >= 0; i--) {
1084
- const v = resolveSource(sources[i])[property];
1085
- if (v !== void 0)
1086
- return v;
1087
- }
1088
- },
1089
- has(property) {
1090
- for (let i = sources.length - 1; i >= 0; i--) {
1091
- if (property in resolveSource(sources[i]))
1092
- return true;
1093
- }
1094
- return false;
1095
- },
1096
- keys() {
1097
- const keys = [];
1098
- for (let i = 0; i < sources.length; i++)
1099
- keys.push(...Object.keys(resolveSource(sources[i])));
1100
- return [...new Set(keys)];
1065
+ return new Proxy({
1066
+ get(property) {
1067
+ for (let i = sources.length - 1; i >= 0; i--) {
1068
+ const v = resolveSource(sources[i])[property];
1069
+ if (v !== void 0)
1070
+ return v;
1101
1071
  }
1102
1072
  },
1103
- propTraps
1104
- );
1073
+ has(property) {
1074
+ for (let i = sources.length - 1; i >= 0; i--) {
1075
+ if (property in resolveSource(sources[i]))
1076
+ return true;
1077
+ }
1078
+ return false;
1079
+ },
1080
+ keys() {
1081
+ const keys = [];
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);
1105
1087
  }
1106
- const target = {};
1107
1088
  const sourcesMap = {};
1108
- const defined = /* @__PURE__ */ new Set();
1089
+ const defined = /* @__PURE__ */ Object.create(null);
1109
1090
  for (let i = sources.length - 1; i >= 0; i--) {
1110
1091
  const source = sources[i];
1111
1092
  if (!source)
1112
1093
  continue;
1113
1094
  const sourceKeys = Object.getOwnPropertyNames(source);
1114
- for (let i2 = 0, length = sourceKeys.length; i2 < length; i2++) {
1095
+ for (let i2 = sourceKeys.length - 1; i2 >= 0; i2--) {
1115
1096
  const key = sourceKeys[i2];
1116
1097
  if (key === "__proto__" || key === "constructor")
1117
1098
  continue;
1118
1099
  const desc = Object.getOwnPropertyDescriptor(source, key);
1119
- if (!defined.has(key)) {
1120
- if (desc.get) {
1121
- defined.add(key);
1122
- Object.defineProperty(target, key, {
1123
- enumerable: true,
1124
- configurable: true,
1125
- get: resolveSources.bind(sourcesMap[key] = [desc.get.bind(source)])
1126
- });
1127
- } else {
1128
- if (desc.value !== void 0)
1129
- defined.add(key);
1130
- target[key] = desc.value;
1131
- }
1100
+ if (!defined[key]) {
1101
+ defined[key] = desc.get ? {
1102
+ enumerable: true,
1103
+ configurable: true,
1104
+ get: resolveSources.bind(sourcesMap[key] = [desc.get.bind(source)])
1105
+ } : desc.value !== void 0 ? desc : void 0;
1132
1106
  } else {
1133
1107
  const sources2 = sourcesMap[key];
1134
1108
  if (sources2) {
1135
- if (desc.get) {
1109
+ if (desc.get)
1136
1110
  sources2.push(desc.get.bind(source));
1137
- } else if (desc.value !== void 0) {
1111
+ else if (desc.value !== void 0)
1138
1112
  sources2.push(() => desc.value);
1139
- }
1140
- } else if (target[key] === void 0)
1141
- target[key] = desc.value;
1113
+ }
1142
1114
  }
1143
1115
  }
1144
1116
  }
1117
+ const target = {};
1118
+ const definedKeys = Object.keys(defined);
1119
+ for (let i = definedKeys.length - 1; i >= 0; i--) {
1120
+ const key = definedKeys[i], desc = defined[key];
1121
+ if (desc && desc.get)
1122
+ Object.defineProperty(target, key, desc);
1123
+ else
1124
+ target[key] = desc ? desc.value : void 0;
1125
+ }
1145
1126
  return target;
1146
1127
  }
1147
1128
  function splitProps(props, ...keys) {
1148
1129
  if ($PROXY in props) {
1149
1130
  const blocked = new Set(keys.length > 1 ? keys.flat() : keys[0]);
1150
1131
  const res = keys.map((k) => {
1151
- return new Proxy(
1152
- {
1153
- get(property) {
1154
- return k.includes(property) ? props[property] : void 0;
1155
- },
1156
- has(property) {
1157
- return k.includes(property) && property in props;
1158
- },
1159
- keys() {
1160
- return k.filter((property) => property in props);
1161
- }
1132
+ return new Proxy({
1133
+ get(property) {
1134
+ return k.includes(property) ? props[property] : void 0;
1162
1135
  },
1163
- propTraps
1164
- );
1165
- });
1166
- res.push(
1167
- new Proxy(
1168
- {
1169
- get(property) {
1170
- return blocked.has(property) ? void 0 : props[property];
1171
- },
1172
- has(property) {
1173
- return blocked.has(property) ? false : property in props;
1174
- },
1175
- keys() {
1176
- return Object.keys(props).filter((k) => !blocked.has(k));
1177
- }
1136
+ has(property) {
1137
+ return k.includes(property) && property in props;
1178
1138
  },
1179
- propTraps
1180
- )
1181
- );
1139
+ keys() {
1140
+ return k.filter((property) => property in props);
1141
+ }
1142
+ }, propTraps);
1143
+ });
1144
+ res.push(new Proxy({
1145
+ get(property) {
1146
+ return blocked.has(property) ? void 0 : props[property];
1147
+ },
1148
+ has(property) {
1149
+ return blocked.has(property) ? false : property in props;
1150
+ },
1151
+ keys() {
1152
+ return Object.keys(props).filter((k) => !blocked.has(k));
1153
+ }
1154
+ }, propTraps));
1182
1155
  return res;
1183
1156
  }
1184
1157
  const otherObject = {};
@@ -1222,19 +1195,17 @@ function lazy(fn) {
1222
1195
  comp = s;
1223
1196
  }
1224
1197
  let Comp;
1225
- return createMemo(
1226
- () => (Comp = comp()) && untrack(() => {
1227
- if (false)
1228
- ;
1229
- if (!ctx)
1230
- return Comp(props);
1231
- const c = sharedConfig.context;
1232
- setHydrateContext(ctx);
1233
- const r = Comp(props);
1234
- setHydrateContext(c);
1235
- return r;
1236
- })
1237
- );
1198
+ return createMemo(() => (Comp = comp()) && untrack(() => {
1199
+ if (false)
1200
+ ;
1201
+ if (!ctx)
1202
+ return Comp(props);
1203
+ const c = sharedConfig.context;
1204
+ setHydrateContext(ctx);
1205
+ const r = Comp(props);
1206
+ setHydrateContext(c);
1207
+ return r;
1208
+ }));
1238
1209
  };
1239
1210
  wrap.preload = () => p || ((p = fn()).then((mod) => comp = () => mod.default), p);
1240
1211
  return wrap;
@@ -1262,70 +1233,50 @@ function Show(props) {
1262
1233
  const condition = createMemo(() => props.when, void 0, {
1263
1234
  equals: (a, b) => keyed ? a === b : !a === !b
1264
1235
  });
1265
- return createMemo(
1266
- () => {
1267
- const c = condition();
1268
- if (c) {
1269
- const child = props.children;
1270
- const fn = typeof child === "function" && child.length > 0;
1271
- return fn ? untrack(
1272
- () => child(
1273
- keyed ? c : () => {
1274
- if (!untrack(condition))
1275
- throw narrowedError("Show");
1276
- return props.when;
1277
- }
1278
- )
1279
- ) : child;
1280
- }
1281
- return props.fallback;
1282
- },
1283
- void 0,
1284
- void 0
1285
- );
1236
+ return createMemo(() => {
1237
+ const c = condition();
1238
+ if (c) {
1239
+ const child = props.children;
1240
+ const fn = typeof child === "function" && child.length > 0;
1241
+ return fn ? untrack(() => child(keyed ? c : () => {
1242
+ if (!untrack(condition))
1243
+ throw narrowedError("Show");
1244
+ return props.when;
1245
+ })) : child;
1246
+ }
1247
+ return props.fallback;
1248
+ }, void 0, void 0);
1286
1249
  }
1287
1250
  function Switch(props) {
1288
1251
  let keyed = false;
1289
- const equals = (a, b) => a[0] === b[0] && (keyed ? a[1] === b[1] : !a[1] === !b[1]) && a[2] === b[2];
1290
- const conditions = children(() => props.children), evalConditions = createMemo(
1291
- () => {
1292
- let conds = conditions();
1293
- if (!Array.isArray(conds))
1294
- conds = [conds];
1295
- for (let i = 0; i < conds.length; i++) {
1296
- const c = conds[i].when;
1297
- if (c) {
1298
- keyed = !!conds[i].keyed;
1299
- return [i, c, conds[i]];
1300
- }
1252
+ 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
+ let conds = conditions();
1255
+ if (!Array.isArray(conds))
1256
+ conds = [conds];
1257
+ for (let i = 0; i < conds.length; i++) {
1258
+ const c = conds[i].when;
1259
+ if (c) {
1260
+ keyed = !!conds[i].keyed;
1261
+ return [i, c, conds[i]];
1301
1262
  }
1302
- return [-1];
1303
- },
1304
- void 0,
1305
- {
1306
- equals
1307
- }
1308
- );
1309
- return createMemo(
1310
- () => {
1311
- const [index, when, cond] = evalConditions();
1312
- if (index < 0)
1313
- return props.fallback;
1314
- const c = cond.children;
1315
- const fn = typeof c === "function" && c.length > 0;
1316
- return fn ? untrack(
1317
- () => c(
1318
- keyed ? when : () => {
1319
- if (untrack(evalConditions)[0] !== index)
1320
- throw narrowedError("Match");
1321
- return cond.when;
1322
- }
1323
- )
1324
- ) : c;
1325
- },
1326
- void 0,
1327
- void 0
1328
- );
1263
+ }
1264
+ return [-1];
1265
+ }, void 0, {
1266
+ equals
1267
+ });
1268
+ return createMemo(() => {
1269
+ const [index, when, cond] = evalConditions();
1270
+ if (index < 0)
1271
+ return props.fallback;
1272
+ const c = cond.children;
1273
+ const fn = typeof c === "function" && c.length > 0;
1274
+ return fn ? untrack(() => c(keyed ? when : () => {
1275
+ if (untrack(evalConditions)[0] !== index)
1276
+ throw narrowedError("Match");
1277
+ return cond.when;
1278
+ })) : c;
1279
+ }, void 0, void 0);
1329
1280
  }
1330
1281
  function Match(props) {
1331
1282
  return props;
@@ -1333,50 +1284,10 @@ function Match(props) {
1333
1284
  var SuspenseListContext = createContext();
1334
1285
  var DEV = void 0;
1335
1286
 
1336
- // ../../node_modules/.pnpm/solid-js@1.8.7/node_modules/solid-js/web/dist/web.js
1337
- var booleans = [
1338
- "allowfullscreen",
1339
- "async",
1340
- "autofocus",
1341
- "autoplay",
1342
- "checked",
1343
- "controls",
1344
- "default",
1345
- "disabled",
1346
- "formnovalidate",
1347
- "hidden",
1348
- "indeterminate",
1349
- "inert",
1350
- "ismap",
1351
- "loop",
1352
- "multiple",
1353
- "muted",
1354
- "nomodule",
1355
- "novalidate",
1356
- "open",
1357
- "playsinline",
1358
- "readonly",
1359
- "required",
1360
- "reversed",
1361
- "seamless",
1362
- "selected"
1363
- ];
1364
- var Properties = /* @__PURE__ */ new Set([
1365
- "className",
1366
- "value",
1367
- "readOnly",
1368
- "formNoValidate",
1369
- "isMap",
1370
- "noModule",
1371
- "playsInline",
1372
- ...booleans
1373
- ]);
1374
- var ChildProperties = /* @__PURE__ */ new Set([
1375
- "innerHTML",
1376
- "textContent",
1377
- "innerText",
1378
- "children"
1379
- ]);
1287
+ // ../../node_modules/.pnpm/solid-js@1.8.14/node_modules/solid-js/web/dist/web.js
1288
+ var booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
1289
+ var Properties = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
1290
+ var ChildProperties = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]);
1380
1291
  var Aliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
1381
1292
  className: "class",
1382
1293
  htmlFor: "for"
@@ -1410,30 +1321,7 @@ function getPropAlias(prop, tagName) {
1410
1321
  const a = PropAliases[prop];
1411
1322
  return typeof a === "object" ? a[tagName] ? a["$"] : void 0 : a;
1412
1323
  }
1413
- var DelegatedEvents = /* @__PURE__ */ new Set([
1414
- "beforeinput",
1415
- "click",
1416
- "dblclick",
1417
- "contextmenu",
1418
- "focusin",
1419
- "focusout",
1420
- "input",
1421
- "keydown",
1422
- "keyup",
1423
- "mousedown",
1424
- "mousemove",
1425
- "mouseout",
1426
- "mouseover",
1427
- "mouseup",
1428
- "pointerdown",
1429
- "pointermove",
1430
- "pointerout",
1431
- "pointerover",
1432
- "pointerup",
1433
- "touchend",
1434
- "touchmove",
1435
- "touchstart"
1436
- ]);
1324
+ var DelegatedEvents = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
1437
1325
  var SVGElements = /* @__PURE__ */ new Set([
1438
1326
  "altGlyph",
1439
1327
  "altGlyphDef",
@@ -1687,9 +1575,7 @@ function style(node, value, prev) {
1687
1575
  function spread(node, props = {}, isSVG, skipChildren) {
1688
1576
  const prevProps = {};
1689
1577
  if (!skipChildren) {
1690
- createRenderEffect(
1691
- () => prevProps.children = insertExpression(node, props.children, prevProps.children)
1692
- );
1578
+ createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
1693
1579
  }
1694
1580
  createRenderEffect(() => props.ref && props.ref(node));
1695
1581
  createRenderEffect(() => assign(node, props, isSVG, true, prevProps, true));
@@ -1850,7 +1736,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
1850
1736
  if (multi) {
1851
1737
  let node = current[0];
1852
1738
  if (node && node.nodeType === 3) {
1853
- node.data = value;
1739
+ node.data !== value && (node.data = value);
1854
1740
  } else
1855
1741
  node = document.createTextNode(value);
1856
1742
  current = cleanChildren(parent, current, marker, node);
@@ -1934,11 +1820,7 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
1934
1820
  if (unwrap) {
1935
1821
  while (typeof item === "function")
1936
1822
  item = item();
1937
- dynamic = normalizeIncomingArray(
1938
- normalized,
1939
- Array.isArray(item) ? item : [item],
1940
- Array.isArray(prev) ? prev : [prev]
1941
- ) || dynamic;
1823
+ dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item], Array.isArray(prev) ? prev : [prev]) || dynamic;
1942
1824
  } else {
1943
1825
  normalized.push(item);
1944
1826
  dynamic = true;
@@ -1989,41 +1871,39 @@ function createElement(tagName, isSVG = false) {
1989
1871
  return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName);
1990
1872
  }
1991
1873
  function Portal(props) {
1992
- const { useShadow } = props, marker = document.createTextNode(""), mount = () => props.mount || document.body, owner = getOwner();
1874
+ const {
1875
+ useShadow
1876
+ } = props, marker = document.createTextNode(""), mount = () => props.mount || document.body, owner = getOwner();
1993
1877
  let content;
1994
1878
  let hydrating = !!sharedConfig.context;
1995
- createEffect(
1996
- () => {
1997
- if (hydrating)
1998
- getOwner().user = hydrating = false;
1999
- content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
2000
- const el = mount();
2001
- if (el instanceof HTMLHeadElement) {
2002
- const [clean, setClean] = createSignal(false);
2003
- const cleanup = () => setClean(true);
2004
- createRoot((dispose2) => insert(el, () => !clean() ? content() : dispose2(), null));
2005
- onCleanup(cleanup);
2006
- } else {
2007
- const container = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container.attachShadow ? container.attachShadow({
2008
- mode: "open"
2009
- }) : container;
2010
- Object.defineProperty(container, "_$host", {
2011
- get() {
2012
- return marker.parentNode;
2013
- },
2014
- configurable: true
2015
- });
2016
- insert(renderRoot, content);
2017
- el.appendChild(container);
2018
- props.ref && props.ref(container);
2019
- onCleanup(() => el.removeChild(container));
2020
- }
2021
- },
2022
- void 0,
2023
- {
2024
- render: !hydrating
1879
+ createEffect(() => {
1880
+ if (hydrating)
1881
+ getOwner().user = hydrating = false;
1882
+ content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
1883
+ const el = mount();
1884
+ if (el instanceof HTMLHeadElement) {
1885
+ const [clean, setClean] = createSignal(false);
1886
+ const cleanup = () => setClean(true);
1887
+ createRoot((dispose2) => insert(el, () => !clean() ? content() : dispose2(), null));
1888
+ onCleanup(cleanup);
1889
+ } else {
1890
+ const container = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container.attachShadow ? container.attachShadow({
1891
+ mode: "open"
1892
+ }) : container;
1893
+ Object.defineProperty(container, "_$host", {
1894
+ get() {
1895
+ return marker.parentNode;
1896
+ },
1897
+ configurable: true
1898
+ });
1899
+ insert(renderRoot, content);
1900
+ el.appendChild(container);
1901
+ props.ref && props.ref(container);
1902
+ onCleanup(() => el.removeChild(container));
2025
1903
  }
2026
- );
1904
+ }, void 0, {
1905
+ render: !hydrating
1906
+ });
2027
1907
  return marker;
2028
1908
  }
2029
1909
  function Dynamic(props) {
@@ -2100,7 +1980,7 @@ var Registry = (
2100
1980
  );
2101
1981
 
2102
1982
  // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/class-registry.js
2103
- var __extends = function() {
1983
+ var __extends = /* @__PURE__ */ function() {
2104
1984
  var extendStatics = function(d, b) {
2105
1985
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
2106
1986
  d2.__proto__ = b2;