@tanstack/query-devtools 5.51.15 → 5.52.3

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/dev.cjs CHANGED
@@ -10,14 +10,18 @@ var __export = (target, all) => {
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
12
 
13
- // ../../node_modules/.pnpm/solid-js@1.8.17/node_modules/solid-js/dist/solid.js
13
+ // ../../node_modules/.pnpm/solid-js@1.8.19/node_modules/solid-js/dist/solid.js
14
+ function getContextId(count) {
15
+ const num = String(count), len = num.length - 1;
16
+ return sharedConfig.context.id + (len ? String.fromCharCode(96 + len) : "") + num;
17
+ }
14
18
  function setHydrateContext(context) {
15
19
  sharedConfig.context = context;
16
20
  }
17
21
  function nextHydrateContext() {
18
22
  return {
19
23
  ...sharedConfig.context,
20
- id: `${sharedConfig.context.id}${sharedConfig.context.count++}-`,
24
+ id: sharedConfig.getNextContextId(),
21
25
  count: 0
22
26
  };
23
27
  }
@@ -102,18 +106,18 @@ function createResource(pSource, pFetcher, pOptions) {
102
106
  if (arguments.length === 2 && typeof pFetcher === "object" || arguments.length === 1) {
103
107
  source = true;
104
108
  fetcher = pSource;
105
- options = pFetcher || {};
109
+ options = {};
106
110
  } else {
107
111
  source = pSource;
108
112
  fetcher = pFetcher;
109
- options = pOptions || {};
113
+ options = {};
110
114
  }
111
115
  let pr = null, initP = NO_INIT, id = null, loadedUnderTransition = false, scheduled = false, resolved = "initialValue" in options, dynamic = typeof source === "function" && createMemo(source);
112
116
  const contexts = /* @__PURE__ */ new Set(), [value, setValue] = (options.storage || createSignal)(options.initialValue), [error, setError] = createSignal(void 0), [track, trigger] = createSignal(void 0, {
113
117
  equals: false
114
118
  }), [state, setState] = createSignal(resolved ? "ready" : "unresolved");
115
119
  if (sharedConfig.context) {
116
- id = `${sharedConfig.context.id}${sharedConfig.context.count++}`;
120
+ id = sharedConfig.getNextContextId();
117
121
  let v;
118
122
  if (options.ssrLoadFrom === "initial")
119
123
  initP = options.initialValue;
@@ -125,11 +129,9 @@ function createResource(pSource, pFetcher, pOptions) {
125
129
  pr = null;
126
130
  key !== void 0 && (resolved = true);
127
131
  if ((p2 === initP || v === initP) && options.onHydrated)
128
- queueMicrotask(
129
- () => options.onHydrated(key, {
130
- value: v
131
- })
132
- );
132
+ queueMicrotask(() => options.onHydrated(key, {
133
+ value: v
134
+ }));
133
135
  initP = NO_INIT;
134
136
  if (Transition && p2 && loadedUnderTransition) {
135
137
  Transition.promises.delete(p2);
@@ -185,12 +187,10 @@ function createResource(pSource, pFetcher, pOptions) {
185
187
  }
186
188
  if (Transition && pr)
187
189
  Transition.promises.delete(pr);
188
- const p2 = initP !== NO_INIT ? initP : untrack(
189
- () => fetcher(lookup, {
190
- value: value(),
191
- refetching
192
- })
193
- );
190
+ const p2 = initP !== NO_INIT ? initP : untrack(() => fetcher(lookup, {
191
+ value: value(),
192
+ refetching
193
+ }));
194
194
  if (!isPromise(p2)) {
195
195
  loadEnd(pr, p2, void 0, lookup);
196
196
  return p2;
@@ -200,7 +200,7 @@ function createResource(pSource, pFetcher, pOptions) {
200
200
  if (p2.status === "success")
201
201
  loadEnd(pr, p2.value, void 0, lookup);
202
202
  else
203
- loadEnd(pr, void 0, void 0, lookup);
203
+ loadEnd(pr, void 0, castError(p2.value), lookup);
204
204
  return p2;
205
205
  }
206
206
  scheduled = true;
@@ -209,10 +209,7 @@ function createResource(pSource, pFetcher, pOptions) {
209
209
  setState(resolved ? "refreshing" : "pending");
210
210
  trigger();
211
211
  }, false);
212
- return p2.then(
213
- (v) => loadEnd(p2, v, void 0, lookup),
214
- (e2) => loadEnd(p2, void 0, castError(e2), lookup)
215
- );
212
+ return p2.then((v) => loadEnd(p2, v, void 0, lookup), (e2) => loadEnd(p2, void 0, castError(e2), lookup));
216
213
  }
217
214
  Object.defineProperties(read, {
218
215
  state: {
@@ -242,13 +239,10 @@ function createResource(pSource, pFetcher, pOptions) {
242
239
  createComputed(() => load(false));
243
240
  else
244
241
  load(false);
245
- return [
246
- read,
247
- {
248
- refetch: load,
249
- mutate: setValue
250
- }
251
- ];
242
+ return [read, {
243
+ refetch: load,
244
+ mutate: setValue
245
+ }];
252
246
  }
253
247
  function batch(fn) {
254
248
  return runUpdates(fn, false);
@@ -356,7 +350,8 @@ function createContext(defaultValue, options) {
356
350
  };
357
351
  }
358
352
  function useContext(context) {
359
- return Owner && Owner.context && Owner.context[context.id] !== void 0 ? Owner.context[context.id] : context.defaultValue;
353
+ let value;
354
+ return Owner && Owner.context && (value = Owner.context[context.id]) !== void 0 ? value : context.defaultValue;
360
355
  }
361
356
  function children(fn) {
362
357
  const children2 = createMemo(fn);
@@ -449,11 +444,7 @@ function updateComputation(node) {
449
444
  return;
450
445
  cleanNode(node);
451
446
  const time = ExecCount;
452
- runComputation(
453
- node,
454
- Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
455
- time
456
- );
447
+ runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
457
448
  if (Transition && !Transition.running && Transition.sources.has(node)) {
458
449
  queueMicrotask(() => {
459
450
  runUpdates(() => {
@@ -831,16 +822,13 @@ function resolveChildren(children2) {
831
822
  function createProvider(id, options) {
832
823
  return function provider(props) {
833
824
  let res;
834
- createRenderEffect(
835
- () => res = untrack(() => {
836
- Owner.context = {
837
- ...Owner.context,
838
- [id]: props.value
839
- };
840
- return children(() => props.children);
841
- }),
842
- void 0
843
- );
825
+ createRenderEffect(() => res = untrack(() => {
826
+ Owner.context = {
827
+ ...Owner.context,
828
+ [id]: props.value
829
+ };
830
+ return children(() => props.children);
831
+ }), void 0);
844
832
  return res;
845
833
  };
846
834
  }
@@ -852,10 +840,10 @@ function mapArray(list, mapFn, options = {}) {
852
840
  let items = [], mapped = [], disposers = [], len = 0, indexes = mapFn.length > 1 ? [] : null;
853
841
  onCleanup(() => dispose(disposers));
854
842
  return () => {
855
- let newItems = list() || [], i2, j;
843
+ let newItems = list() || [], newLen = newItems.length, i2, j;
856
844
  newItems[$TRACK];
857
845
  return untrack(() => {
858
- let newLen = newItems.length, newIndices, newIndicesNext, temp, tempdisposers, tempIndexes, start, end, newEnd, item;
846
+ let newIndices, newIndicesNext, temp, tempdisposers, tempIndexes, start, end, newEnd, item;
859
847
  if (newLen === 0) {
860
848
  if (len !== 0) {
861
849
  dispose(disposers);
@@ -942,10 +930,10 @@ function indexArray(list, mapFn, options = {}) {
942
930
  let items = [], mapped = [], disposers = [], signals = [], len = 0, i2;
943
931
  onCleanup(() => dispose(disposers));
944
932
  return () => {
945
- const newItems = list() || [];
933
+ const newItems = list() || [], newLen = newItems.length;
946
934
  newItems[$TRACK];
947
935
  return untrack(() => {
948
- if (newItems.length === 0) {
936
+ if (newLen === 0) {
949
937
  if (len !== 0) {
950
938
  dispose(disposers);
951
939
  disposers = [];
@@ -971,7 +959,7 @@ function indexArray(list, mapFn, options = {}) {
971
959
  mapped = [];
972
960
  len = 0;
973
961
  }
974
- for (i2 = 0; i2 < newItems.length; i2++) {
962
+ for (i2 = 0; i2 < newLen; i2++) {
975
963
  if (i2 < items.length && items[i2] !== newItems[i2]) {
976
964
  signals[i2](() => newItems[i2]);
977
965
  } else if (i2 >= items.length) {
@@ -981,7 +969,7 @@ function indexArray(list, mapFn, options = {}) {
981
969
  for (; i2 < items.length; i2++) {
982
970
  disposers[i2]();
983
971
  }
984
- len = signals.length = disposers.length = newItems.length;
972
+ len = signals.length = disposers.length = newLen;
985
973
  items = newItems.slice(0);
986
974
  return mapped = mapped.slice(0, len);
987
975
  });
@@ -1026,31 +1014,28 @@ function mergeProps(...sources) {
1026
1014
  sources[i2] = typeof s2 === "function" ? (proxy = true, createMemo(s2)) : s2;
1027
1015
  }
1028
1016
  if (proxy) {
1029
- return new Proxy(
1030
- {
1031
- get(property) {
1032
- for (let i2 = sources.length - 1; i2 >= 0; i2--) {
1033
- const v = resolveSource(sources[i2])[property];
1034
- if (v !== void 0)
1035
- return v;
1036
- }
1037
- },
1038
- has(property) {
1039
- for (let i2 = sources.length - 1; i2 >= 0; i2--) {
1040
- if (property in resolveSource(sources[i2]))
1041
- return true;
1042
- }
1043
- return false;
1044
- },
1045
- keys() {
1046
- const keys2 = [];
1047
- for (let i2 = 0; i2 < sources.length; i2++)
1048
- keys2.push(...Object.keys(resolveSource(sources[i2])));
1049
- return [...new Set(keys2)];
1017
+ return new Proxy({
1018
+ get(property) {
1019
+ for (let i2 = sources.length - 1; i2 >= 0; i2--) {
1020
+ const v = resolveSource(sources[i2])[property];
1021
+ if (v !== void 0)
1022
+ return v;
1050
1023
  }
1051
1024
  },
1052
- propTraps
1053
- );
1025
+ has(property) {
1026
+ for (let i2 = sources.length - 1; i2 >= 0; i2--) {
1027
+ if (property in resolveSource(sources[i2]))
1028
+ return true;
1029
+ }
1030
+ return false;
1031
+ },
1032
+ keys() {
1033
+ const keys2 = [];
1034
+ for (let i2 = 0; i2 < sources.length; i2++)
1035
+ keys2.push(...Object.keys(resolveSource(sources[i2])));
1036
+ return [...new Set(keys2)];
1037
+ }
1038
+ }, propTraps);
1054
1039
  }
1055
1040
  const sourcesMap = {};
1056
1041
  const defined = /* @__PURE__ */ Object.create(null);
@@ -1096,37 +1081,29 @@ function splitProps(props, ...keys2) {
1096
1081
  if ($PROXY in props) {
1097
1082
  const blocked = new Set(keys2.length > 1 ? keys2.flat() : keys2[0]);
1098
1083
  const res = keys2.map((k) => {
1099
- return new Proxy(
1100
- {
1101
- get(property) {
1102
- return k.includes(property) ? props[property] : void 0;
1103
- },
1104
- has(property) {
1105
- return k.includes(property) && property in props;
1106
- },
1107
- keys() {
1108
- return k.filter((property) => property in props);
1109
- }
1084
+ return new Proxy({
1085
+ get(property) {
1086
+ return k.includes(property) ? props[property] : void 0;
1110
1087
  },
1111
- propTraps
1112
- );
1113
- });
1114
- res.push(
1115
- new Proxy(
1116
- {
1117
- get(property) {
1118
- return blocked.has(property) ? void 0 : props[property];
1119
- },
1120
- has(property) {
1121
- return blocked.has(property) ? false : property in props;
1122
- },
1123
- keys() {
1124
- return Object.keys(props).filter((k) => !blocked.has(k));
1125
- }
1088
+ has(property) {
1089
+ return k.includes(property) && property in props;
1126
1090
  },
1127
- propTraps
1128
- )
1129
- );
1091
+ keys() {
1092
+ return k.filter((property) => property in props);
1093
+ }
1094
+ }, propTraps);
1095
+ });
1096
+ res.push(new Proxy({
1097
+ get(property) {
1098
+ return blocked.has(property) ? void 0 : props[property];
1099
+ },
1100
+ has(property) {
1101
+ return blocked.has(property) ? false : property in props;
1102
+ },
1103
+ keys() {
1104
+ return Object.keys(props).filter((k) => !blocked.has(k));
1105
+ }
1106
+ }, propTraps));
1130
1107
  return res;
1131
1108
  }
1132
1109
  const otherObject = {};
@@ -1170,26 +1147,24 @@ function lazy(fn) {
1170
1147
  comp = s2;
1171
1148
  }
1172
1149
  let Comp;
1173
- return createMemo(
1174
- () => (Comp = comp()) && untrack(() => {
1175
- if (false)
1176
- ;
1177
- if (!ctx)
1178
- return Comp(props);
1179
- const c2 = sharedConfig.context;
1180
- setHydrateContext(ctx);
1181
- const r2 = Comp(props);
1182
- setHydrateContext(c2);
1183
- return r2;
1184
- })
1185
- );
1150
+ return createMemo(() => (Comp = comp()) && untrack(() => {
1151
+ if (false)
1152
+ ;
1153
+ if (!ctx)
1154
+ return Comp(props);
1155
+ const c2 = sharedConfig.context;
1156
+ setHydrateContext(ctx);
1157
+ const r2 = Comp(props);
1158
+ setHydrateContext(c2);
1159
+ return r2;
1160
+ }));
1186
1161
  };
1187
1162
  wrap.preload = () => p2 || ((p2 = fn()).then((mod) => comp = () => mod.default), p2);
1188
1163
  return wrap;
1189
1164
  }
1190
1165
  function createUniqueId() {
1191
1166
  const ctx = sharedConfig.context;
1192
- return ctx ? `${ctx.id}${ctx.count++}` : `cl-${counter++}`;
1167
+ return ctx ? sharedConfig.getNextContextId() : `cl-${counter++}`;
1193
1168
  }
1194
1169
  function For(props) {
1195
1170
  const fallback = "fallback" in props && {
@@ -1208,80 +1183,66 @@ function Show(props) {
1208
1183
  const condition = createMemo(() => props.when, void 0, {
1209
1184
  equals: (a2, b2) => keyed ? a2 === b2 : !a2 === !b2
1210
1185
  });
1211
- return createMemo(
1212
- () => {
1213
- const c2 = condition();
1214
- if (c2) {
1215
- const child = props.children;
1216
- const fn = typeof child === "function" && child.length > 0;
1217
- return fn ? untrack(
1218
- () => child(
1219
- keyed ? c2 : () => {
1220
- if (!untrack(condition))
1221
- throw narrowedError("Show");
1222
- return props.when;
1223
- }
1224
- )
1225
- ) : child;
1226
- }
1227
- return props.fallback;
1228
- },
1229
- void 0,
1230
- void 0
1231
- );
1186
+ return createMemo(() => {
1187
+ const c2 = condition();
1188
+ if (c2) {
1189
+ const child = props.children;
1190
+ const fn = typeof child === "function" && child.length > 0;
1191
+ return fn ? untrack(() => child(keyed ? c2 : () => {
1192
+ if (!untrack(condition))
1193
+ throw narrowedError("Show");
1194
+ return props.when;
1195
+ })) : child;
1196
+ }
1197
+ return props.fallback;
1198
+ }, void 0, void 0);
1232
1199
  }
1233
1200
  function Switch(props) {
1234
1201
  let keyed = false;
1235
1202
  const equals = (a2, b2) => (keyed ? a2[1] === b2[1] : !a2[1] === !b2[1]) && a2[2] === b2[2];
1236
- const conditions = children(() => props.children), evalConditions = createMemo(
1237
- () => {
1238
- let conds = conditions();
1239
- if (!Array.isArray(conds))
1240
- conds = [conds];
1241
- for (let i2 = 0; i2 < conds.length; i2++) {
1242
- const c2 = conds[i2].when;
1243
- if (c2) {
1244
- keyed = !!conds[i2].keyed;
1245
- return [i2, c2, conds[i2]];
1246
- }
1203
+ const conditions = children(() => props.children), evalConditions = createMemo(() => {
1204
+ let conds = conditions();
1205
+ if (!Array.isArray(conds))
1206
+ conds = [conds];
1207
+ for (let i2 = 0; i2 < conds.length; i2++) {
1208
+ const c2 = conds[i2].when;
1209
+ if (c2) {
1210
+ keyed = !!conds[i2].keyed;
1211
+ return [i2, c2, conds[i2]];
1247
1212
  }
1248
- return [-1];
1249
- },
1250
- void 0,
1251
- {
1252
- equals
1253
1213
  }
1254
- );
1255
- return createMemo(
1256
- () => {
1257
- const [index, when, cond] = evalConditions();
1258
- if (index < 0)
1259
- return props.fallback;
1260
- const c2 = cond.children;
1261
- const fn = typeof c2 === "function" && c2.length > 0;
1262
- return fn ? untrack(
1263
- () => c2(
1264
- keyed ? when : () => {
1265
- if (untrack(evalConditions)[0] !== index)
1266
- throw narrowedError("Match");
1267
- return cond.when;
1268
- }
1269
- )
1270
- ) : c2;
1271
- },
1272
- void 0,
1273
- void 0
1274
- );
1214
+ return [-1];
1215
+ }, void 0, {
1216
+ equals
1217
+ });
1218
+ return createMemo(() => {
1219
+ const [index, when, cond] = evalConditions();
1220
+ if (index < 0)
1221
+ return props.fallback;
1222
+ const c2 = cond.children;
1223
+ const fn = typeof c2 === "function" && c2.length > 0;
1224
+ return fn ? untrack(() => c2(keyed ? when : () => {
1225
+ if (untrack(evalConditions)[0] !== index)
1226
+ throw narrowedError("Match");
1227
+ return cond.when;
1228
+ })) : c2;
1229
+ }, void 0, void 0);
1275
1230
  }
1276
1231
  function Match(props) {
1277
1232
  return props;
1278
1233
  }
1279
1234
  var sharedConfig, equalFn, $PROXY, $TRACK, signalOptions, ERROR, runEffects, STALE, PENDING, UNOWNED, NO_INIT, Owner, Transition, Scheduler, ExternalSourceConfig, Listener, Updates, Effects, ExecCount, transPending, setTransPending, SuspenseContext, FALLBACK, hydrationEnabled, propTraps, counter, narrowedError, DEV;
1280
1235
  var init_solid = __esm({
1281
- "../../node_modules/.pnpm/solid-js@1.8.17/node_modules/solid-js/dist/solid.js"() {
1236
+ "../../node_modules/.pnpm/solid-js@1.8.19/node_modules/solid-js/dist/solid.js"() {
1282
1237
  sharedConfig = {
1283
1238
  context: void 0,
1284
- registry: void 0
1239
+ registry: void 0,
1240
+ getContextId() {
1241
+ return getContextId(this.context.count);
1242
+ },
1243
+ getNextContextId() {
1244
+ return getContextId(this.context.count++);
1245
+ }
1285
1246
  };
1286
1247
  equalFn = (a2, b2) => a2 === b2;
1287
1248
  $PROXY = Symbol("solid-proxy");
@@ -1345,7 +1306,7 @@ var init_solid = __esm({
1345
1306
  }
1346
1307
  });
1347
1308
 
1348
- // ../../node_modules/.pnpm/solid-js@1.8.17/node_modules/solid-js/web/dist/web.js
1309
+ // ../../node_modules/.pnpm/solid-js@1.8.19/node_modules/solid-js/web/dist/web.js
1349
1310
  function getPropAlias(prop, tagName) {
1350
1311
  const a2 = PropAliases[prop];
1351
1312
  return typeof a2 === "object" ? a2[tagName] ? a2["$"] : void 0 : a2;
@@ -1422,7 +1383,7 @@ function template(html, isCE, isSVG) {
1422
1383
  const create = () => {
1423
1384
  const t2 = document.createElement("template");
1424
1385
  t2.innerHTML = html;
1425
- return isSVG ? t2.content.firstChild.firstChild : t2.content.firstChild;
1386
+ return t2.content.firstChild;
1426
1387
  };
1427
1388
  const fn = isCE ? () => untrack(() => document.importNode(node || (node = create()), true)) : () => (node || (node = create())).cloneNode(true);
1428
1389
  fn.cloneNode = fn;
@@ -1527,13 +1488,9 @@ function style(node, value, prev) {
1527
1488
  function spread(node, props = {}, isSVG, skipChildren) {
1528
1489
  const prevProps = {};
1529
1490
  if (!skipChildren) {
1530
- createRenderEffect(
1531
- () => prevProps.children = insertExpression(node, props.children, prevProps.children)
1532
- );
1491
+ createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
1533
1492
  }
1534
- createRenderEffect(
1535
- () => typeof props.ref === "function" ? use(props.ref, node) : props.ref = node
1536
- );
1493
+ createRenderEffect(() => typeof props.ref === "function" && use(props.ref, node));
1537
1494
  createRenderEffect(() => assign(node, props, isSVG, true, prevProps, true));
1538
1495
  return prevProps;
1539
1496
  }
@@ -1558,8 +1515,6 @@ function assign(node, props, isSVG, skipChildren, prevProps = {}, skipRef = fals
1558
1515
  }
1559
1516
  for (const prop in props) {
1560
1517
  if (prop === "children") {
1561
- if (!skipChildren)
1562
- insertExpression(node, props.children);
1563
1518
  continue;
1564
1519
  }
1565
1520
  const value = props[prop];
@@ -1688,8 +1643,11 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
1688
1643
  if (t2 === "string" || t2 === "number") {
1689
1644
  if (hydrating)
1690
1645
  return current;
1691
- if (t2 === "number")
1646
+ if (t2 === "number") {
1692
1647
  value = value.toString();
1648
+ if (value === current)
1649
+ return current;
1650
+ }
1693
1651
  if (multi) {
1694
1652
  let node = current[0];
1695
1653
  if (node && node.nodeType === 3) {
@@ -1777,11 +1735,7 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
1777
1735
  if (unwrap) {
1778
1736
  while (typeof item === "function")
1779
1737
  item = item();
1780
- dynamic = normalizeIncomingArray(
1781
- normalized,
1782
- Array.isArray(item) ? item : [item],
1783
- Array.isArray(prev) ? prev : [prev]
1784
- ) || dynamic;
1738
+ dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item], Array.isArray(prev) ? prev : [prev]) || dynamic;
1785
1739
  } else {
1786
1740
  normalized.push(item);
1787
1741
  dynamic = true;
@@ -1822,48 +1776,45 @@ function cleanChildren(parent, current, marker, replacement) {
1822
1776
  return [node];
1823
1777
  }
1824
1778
  function getHydrationKey() {
1825
- const hydrate = sharedConfig.context;
1826
- return `${hydrate.id}${hydrate.count++}`;
1779
+ return sharedConfig.getNextContextId();
1827
1780
  }
1828
1781
  function createElement(tagName, isSVG = false) {
1829
1782
  return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName);
1830
1783
  }
1831
1784
  function Portal(props) {
1832
- const { useShadow } = props, marker = document.createTextNode(""), mount = () => props.mount || document.body, owner = getOwner();
1785
+ const {
1786
+ useShadow
1787
+ } = props, marker = document.createTextNode(""), mount = () => props.mount || document.body, owner = getOwner();
1833
1788
  let content;
1834
1789
  let hydrating = !!sharedConfig.context;
1835
- createEffect(
1836
- () => {
1837
- if (hydrating)
1838
- getOwner().user = hydrating = false;
1839
- content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
1840
- const el = mount();
1841
- if (el instanceof HTMLHeadElement) {
1842
- const [clean, setClean] = createSignal(false);
1843
- const cleanup = () => setClean(true);
1844
- createRoot((dispose3) => insert(el, () => !clean() ? content() : dispose3(), null));
1845
- onCleanup(cleanup);
1846
- } else {
1847
- const container = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container.attachShadow ? container.attachShadow({
1848
- mode: "open"
1849
- }) : container;
1850
- Object.defineProperty(container, "_$host", {
1851
- get() {
1852
- return marker.parentNode;
1853
- },
1854
- configurable: true
1855
- });
1856
- insert(renderRoot, content);
1857
- el.appendChild(container);
1858
- props.ref && props.ref(container);
1859
- onCleanup(() => el.removeChild(container));
1860
- }
1861
- },
1862
- void 0,
1863
- {
1864
- render: !hydrating
1790
+ createEffect(() => {
1791
+ if (hydrating)
1792
+ getOwner().user = hydrating = false;
1793
+ content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
1794
+ const el = mount();
1795
+ if (el instanceof HTMLHeadElement) {
1796
+ const [clean, setClean] = createSignal(false);
1797
+ const cleanup = () => setClean(true);
1798
+ createRoot((dispose3) => insert(el, () => !clean() ? content() : dispose3(), null));
1799
+ onCleanup(cleanup);
1800
+ } else {
1801
+ const container = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container.attachShadow ? container.attachShadow({
1802
+ mode: "open"
1803
+ }) : container;
1804
+ Object.defineProperty(container, "_$host", {
1805
+ get() {
1806
+ return marker.parentNode;
1807
+ },
1808
+ configurable: true
1809
+ });
1810
+ insert(renderRoot, content);
1811
+ el.appendChild(container);
1812
+ props.ref && props.ref(container);
1813
+ onCleanup(() => el.removeChild(container));
1865
1814
  }
1866
- );
1815
+ }, void 0, {
1816
+ render: !hydrating
1817
+ });
1867
1818
  return marker;
1868
1819
  }
1869
1820
  function Dynamic(props) {
@@ -1884,52 +1835,12 @@ function Dynamic(props) {
1884
1835
  }
1885
1836
  var booleans, Properties, ChildProperties, Aliases, PropAliases, DelegatedEvents, SVGElements, SVGNamespace, $$EVENTS, isServer, SVG_NAMESPACE;
1886
1837
  var init_web = __esm({
1887
- "../../node_modules/.pnpm/solid-js@1.8.17/node_modules/solid-js/web/dist/web.js"() {
1838
+ "../../node_modules/.pnpm/solid-js@1.8.19/node_modules/solid-js/web/dist/web.js"() {
1888
1839
  init_solid();
1889
1840
  init_solid();
1890
- booleans = [
1891
- "allowfullscreen",
1892
- "async",
1893
- "autofocus",
1894
- "autoplay",
1895
- "checked",
1896
- "controls",
1897
- "default",
1898
- "disabled",
1899
- "formnovalidate",
1900
- "hidden",
1901
- "indeterminate",
1902
- "inert",
1903
- "ismap",
1904
- "loop",
1905
- "multiple",
1906
- "muted",
1907
- "nomodule",
1908
- "novalidate",
1909
- "open",
1910
- "playsinline",
1911
- "readonly",
1912
- "required",
1913
- "reversed",
1914
- "seamless",
1915
- "selected"
1916
- ];
1917
- Properties = /* @__PURE__ */ new Set([
1918
- "className",
1919
- "value",
1920
- "readOnly",
1921
- "formNoValidate",
1922
- "isMap",
1923
- "noModule",
1924
- "playsInline",
1925
- ...booleans
1926
- ]);
1927
- ChildProperties = /* @__PURE__ */ new Set([
1928
- "innerHTML",
1929
- "textContent",
1930
- "innerText",
1931
- "children"
1932
- ]);
1841
+ 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"];
1842
+ Properties = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
1843
+ ChildProperties = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]);
1933
1844
  Aliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
1934
1845
  className: "class",
1935
1846
  htmlFor: "for"
@@ -1959,30 +1870,7 @@ var init_web = __esm({
1959
1870
  TEXTAREA: 1
1960
1871
  }
1961
1872
  });
1962
- DelegatedEvents = /* @__PURE__ */ new Set([
1963
- "beforeinput",
1964
- "click",
1965
- "dblclick",
1966
- "contextmenu",
1967
- "focusin",
1968
- "focusout",
1969
- "input",
1970
- "keydown",
1971
- "keyup",
1972
- "mousedown",
1973
- "mousemove",
1974
- "mouseout",
1975
- "mouseover",
1976
- "mouseup",
1977
- "pointerdown",
1978
- "pointermove",
1979
- "pointerout",
1980
- "pointerover",
1981
- "pointerup",
1982
- "touchend",
1983
- "touchmove",
1984
- "touchstart"
1985
- ]);
1873
+ 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"]);
1986
1874
  SVGElements = /* @__PURE__ */ new Set([
1987
1875
  "altGlyph",
1988
1876
  "altGlyphDef",
@@ -2771,21 +2659,21 @@ var init_plainer = __esm({
2771
2659
  }
2772
2660
  });
2773
2661
 
2774
- // ../../node_modules/.pnpm/is-what@4.1.15/node_modules/is-what/dist/index.js
2662
+ // ../../node_modules/.pnpm/is-what@4.1.16/node_modules/is-what/dist/index.js
2775
2663
  function getType2(payload) {
2776
2664
  return Object.prototype.toString.call(payload).slice(8, -1);
2777
2665
  }
2666
+ function isArray2(payload) {
2667
+ return getType2(payload) === "Array";
2668
+ }
2778
2669
  function isPlainObject2(payload) {
2779
2670
  if (getType2(payload) !== "Object")
2780
2671
  return false;
2781
2672
  const prototype = Object.getPrototypeOf(payload);
2782
2673
  return !!prototype && prototype.constructor === Object && prototype === Object.prototype;
2783
2674
  }
2784
- function isArray2(payload) {
2785
- return getType2(payload) === "Array";
2786
- }
2787
2675
  var init_dist = __esm({
2788
- "../../node_modules/.pnpm/is-what@4.1.15/node_modules/is-what/dist/index.js"() {
2676
+ "../../node_modules/.pnpm/is-what@4.1.16/node_modules/is-what/dist/index.js"() {
2789
2677
  }
2790
2678
  });
2791
2679
 
@@ -3788,7 +3676,7 @@ var init_clsx = __esm({
3788
3676
  }
3789
3677
  });
3790
3678
 
3791
- // ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.3_solid-js@1.8.17/node_modules/@solid-primitives/transition-group/dist/index.js
3679
+ // ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.5_solid-js@1.8.19/node_modules/@solid-primitives/transition-group/dist/index.js
3792
3680
  function createListTransition(source, options) {
3793
3681
  const initSource = untrack(source);
3794
3682
  if (isServer) {
@@ -3855,7 +3743,7 @@ function createListTransition(source, options) {
3855
3743
  }
3856
3744
  var noop;
3857
3745
  var init_dist4 = __esm({
3858
- "../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.3_solid-js@1.8.17/node_modules/@solid-primitives/transition-group/dist/index.js"() {
3746
+ "../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.5_solid-js@1.8.19/node_modules/@solid-primitives/transition-group/dist/index.js"() {
3859
3747
  init_solid();
3860
3748
  init_web();
3861
3749
  noop = () => {
@@ -3863,7 +3751,7 @@ var init_dist4 = __esm({
3863
3751
  }
3864
3752
  });
3865
3753
 
3866
- // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.17/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
3754
+ // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.19/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
3867
3755
  function chain(callbacks) {
3868
3756
  return (...args) => {
3869
3757
  for (const callback of callbacks)
@@ -3906,7 +3794,7 @@ function handleDiffArray(current, prev, handleAdded, handleRemoved) {
3906
3794
  }
3907
3795
  var isClient, isDev, noop2, isNonNullable, filterNonNullable, access, asArray, tryOnCleanup;
3908
3796
  var init_R5675YMU = __esm({
3909
- "../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.17/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js"() {
3797
+ "../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.19/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js"() {
3910
3798
  init_solid();
3911
3799
  init_web();
3912
3800
  isClient = !isServer;
@@ -3920,14 +3808,14 @@ var init_R5675YMU = __esm({
3920
3808
  }
3921
3809
  });
3922
3810
 
3923
- // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.17/node_modules/@solid-primitives/utils/dist/index/index.js
3811
+ // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.19/node_modules/@solid-primitives/utils/dist/index/index.js
3924
3812
  var init_index = __esm({
3925
- "../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.17/node_modules/@solid-primitives/utils/dist/index/index.js"() {
3813
+ "../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.19/node_modules/@solid-primitives/utils/dist/index/index.js"() {
3926
3814
  init_R5675YMU();
3927
3815
  }
3928
3816
  });
3929
3817
 
3930
- // ../../node_modules/.pnpm/@solid-primitives+refs@1.0.5_solid-js@1.8.17/node_modules/@solid-primitives/refs/dist/index.js
3818
+ // ../../node_modules/.pnpm/@solid-primitives+refs@1.0.8_solid-js@1.8.19/node_modules/@solid-primitives/refs/dist/index.js
3931
3819
  function mergeRefs(...refs) {
3932
3820
  return chain(refs);
3933
3821
  }
@@ -3960,7 +3848,7 @@ function resolveElements(fn, predicate = defaultElementPredicate, serverPredicat
3960
3848
  }
3961
3849
  var defaultElementPredicate;
3962
3850
  var init_dist5 = __esm({
3963
- "../../node_modules/.pnpm/@solid-primitives+refs@1.0.5_solid-js@1.8.17/node_modules/@solid-primitives/refs/dist/index.js"() {
3851
+ "../../node_modules/.pnpm/@solid-primitives+refs@1.0.8_solid-js@1.8.19/node_modules/@solid-primitives/refs/dist/index.js"() {
3964
3852
  init_index();
3965
3853
  init_solid();
3966
3854
  init_web();
@@ -3968,7 +3856,7 @@ var init_dist5 = __esm({
3968
3856
  }
3969
3857
  });
3970
3858
 
3971
- // ../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.8.17/node_modules/solid-transition-group/dist/index.js
3859
+ // ../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.8.19/node_modules/solid-transition-group/dist/index.js
3972
3860
  function createClassnames(props) {
3973
3861
  return createMemo(() => {
3974
3862
  const name = props.name || "s";
@@ -4006,7 +3894,6 @@ function enterTransition(classes, events, el, done) {
4006
3894
  });
4007
3895
  function endTransition(e2) {
4008
3896
  if (!e2 || e2.target === el) {
4009
- done?.();
4010
3897
  el.removeEventListener("transitionend", endTransition);
4011
3898
  el.removeEventListener("animationend", endTransition);
4012
3899
  el.classList.remove(...classes.enterActive);
@@ -4044,7 +3931,7 @@ function exitTransition(classes, events, el, done) {
4044
3931
  }
4045
3932
  var TransitionGroup;
4046
3933
  var init_dist6 = __esm({
4047
- "../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.8.17/node_modules/solid-transition-group/dist/index.js"() {
3934
+ "../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.8.19/node_modules/solid-transition-group/dist/index.js"() {
4048
3935
  init_solid();
4049
3936
  init_dist4();
4050
3937
  init_dist5();
@@ -4098,7 +3985,7 @@ var init_dist6 = __esm({
4098
3985
  }
4099
3986
  });
4100
3987
 
4101
- // ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.2_solid-js@1.8.17/node_modules/@solid-primitives/keyed/dist/index.js
3988
+ // ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.2_solid-js@1.8.19/node_modules/@solid-primitives/keyed/dist/index.js
4102
3989
  function dispose2(list) {
4103
3990
  for (const o2 of list)
4104
3991
  o2.dispose();
@@ -4196,14 +4083,14 @@ function Key(props) {
4196
4083
  }
4197
4084
  var FALLBACK2;
4198
4085
  var init_dist7 = __esm({
4199
- "../../node_modules/.pnpm/@solid-primitives+keyed@1.2.2_solid-js@1.8.17/node_modules/@solid-primitives/keyed/dist/index.js"() {
4086
+ "../../node_modules/.pnpm/@solid-primitives+keyed@1.2.2_solid-js@1.8.19/node_modules/@solid-primitives/keyed/dist/index.js"() {
4200
4087
  init_solid();
4201
4088
  init_web();
4202
4089
  FALLBACK2 = Symbol("fallback");
4203
4090
  }
4204
4091
  });
4205
4092
 
4206
- // ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.8.17/node_modules/@solid-primitives/storage/dist/index.js
4093
+ // ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.8.19/node_modules/@solid-primitives/storage/dist/index.js
4207
4094
  function createStorage(props) {
4208
4095
  const [error, setError] = createSignal();
4209
4096
  const handleError2 = props?.throw ? (err, fallback) => {
@@ -4348,7 +4235,7 @@ function createStorage(props) {
4348
4235
  }
4349
4236
  var createLocalStorage, addClearMethod, serializeCookieOptions, cookieStorage;
4350
4237
  var init_dist8 = __esm({
4351
- "../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.8.17/node_modules/@solid-primitives/storage/dist/index.js"() {
4238
+ "../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.8.19/node_modules/@solid-primitives/storage/dist/index.js"() {
4352
4239
  init_solid();
4353
4240
  createLocalStorage = createStorage;
4354
4241
  addClearMethod = (storage) => {
@@ -4428,7 +4315,7 @@ var init_dist8 = __esm({
4428
4315
  }
4429
4316
  });
4430
4317
 
4431
- // ../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.3_solid-js@1.8.17/node_modules/@solid-primitives/event-listener/dist/index.js
4318
+ // ../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.3_solid-js@1.8.19/node_modules/@solid-primitives/event-listener/dist/index.js
4432
4319
  function makeEventListener(target, type, handler, options) {
4433
4320
  target.addEventListener(type, handler, options);
4434
4321
  return tryOnCleanup(target.removeEventListener.bind(target, type, handler, options));
@@ -4448,14 +4335,14 @@ function createEventListener(targets, type, handler, options) {
4448
4335
  createRenderEffect(attachListeners);
4449
4336
  }
4450
4337
  var init_dist9 = __esm({
4451
- "../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.3_solid-js@1.8.17/node_modules/@solid-primitives/event-listener/dist/index.js"() {
4338
+ "../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.3_solid-js@1.8.19/node_modules/@solid-primitives/event-listener/dist/index.js"() {
4452
4339
  init_index();
4453
4340
  init_solid();
4454
4341
  init_web();
4455
4342
  }
4456
4343
  });
4457
4344
 
4458
- // ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.25_solid-js@1.8.17/node_modules/@solid-primitives/resize-observer/dist/index.js
4345
+ // ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.26_solid-js@1.8.19/node_modules/@solid-primitives/resize-observer/dist/index.js
4459
4346
  function makeResizeObserver(callback, options) {
4460
4347
  if (isServer) {
4461
4348
  return { observe: noop2, unobserve: noop2 };
@@ -4486,14 +4373,40 @@ function createResizeObserver(targets, onResize, options) {
4486
4373
  }, []);
4487
4374
  }
4488
4375
  var init_dist10 = __esm({
4489
- "../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.25_solid-js@1.8.17/node_modules/@solid-primitives/resize-observer/dist/index.js"() {
4376
+ "../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.26_solid-js@1.8.19/node_modules/@solid-primitives/resize-observer/dist/index.js"() {
4490
4377
  init_index();
4491
4378
  init_solid();
4492
4379
  init_web();
4493
4380
  }
4494
4381
  });
4495
4382
 
4496
- // ../../node_modules/.pnpm/@kobalte+utils@0.9.0_solid-js@1.8.17/node_modules/@kobalte/utils/dist/index.js
4383
+ // ../../node_modules/.pnpm/@solid-primitives+props@3.1.11_solid-js@1.8.19/node_modules/@solid-primitives/props/dist/index.js
4384
+ function stringStyleToObject(style2) {
4385
+ const object = {};
4386
+ let match;
4387
+ while (match = extractCSSregex.exec(style2)) {
4388
+ object[match[1]] = match[2];
4389
+ }
4390
+ return object;
4391
+ }
4392
+ function combineStyle(a2, b2) {
4393
+ if (typeof a2 === "string") {
4394
+ if (typeof b2 === "string")
4395
+ return `${a2};${b2}`;
4396
+ a2 = stringStyleToObject(a2);
4397
+ } else if (typeof b2 === "string") {
4398
+ b2 = stringStyleToObject(b2);
4399
+ }
4400
+ return { ...a2, ...b2 };
4401
+ }
4402
+ var extractCSSregex;
4403
+ var init_dist11 = __esm({
4404
+ "../../node_modules/.pnpm/@solid-primitives+props@3.1.11_solid-js@1.8.19/node_modules/@solid-primitives/props/dist/index.js"() {
4405
+ extractCSSregex = /((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;
4406
+ }
4407
+ });
4408
+
4409
+ // ../../node_modules/.pnpm/@kobalte+utils@0.9.0_solid-js@1.8.19/node_modules/@kobalte/utils/dist/index.js
4497
4410
  function addItemToArray(array, item, index = -1) {
4498
4411
  if (!(index in array)) {
4499
4412
  return [...array, item];
@@ -4703,9 +4616,6 @@ function isStyleVisible(element) {
4703
4616
  function isAttributeVisible(element, childElement) {
4704
4617
  return !element.hasAttribute("hidden") && (element.nodeName === "DETAILS" && childElement && childElement.nodeName !== "SUMMARY" ? element.hasAttribute("open") : true);
4705
4618
  }
4706
- function isElementInScope(element, scope) {
4707
- return scope.some((node) => node.contains(element));
4708
- }
4709
4619
  function getFocusableTreeWalker(root, opts, scope) {
4710
4620
  const selector = opts?.tabbable ? TABBABLE_ELEMENT_SELECTOR : FOCUSABLE_ELEMENT_SELECTOR;
4711
4621
  const walker2 = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {
@@ -4713,7 +4623,7 @@ function getFocusableTreeWalker(root, opts, scope) {
4713
4623
  if (opts?.from?.contains(node)) {
4714
4624
  return NodeFilter.FILTER_REJECT;
4715
4625
  }
4716
- if (node.matches(selector) && isElementVisible(node) && (!scope || isElementInScope(node, scope)) && (!opts?.accept || opts.accept(node))) {
4626
+ if (node.matches(selector) && isElementVisible(node) && (!scope) && (!opts?.accept || opts.accept(node))) {
4717
4627
  return NodeFilter.FILTER_ACCEPT;
4718
4628
  }
4719
4629
  return NodeFilter.FILTER_SKIP;
@@ -4868,7 +4778,6 @@ function scrollIntoViewport(targetElement, opts) {
4868
4778
  targetElement?.scrollIntoView?.({ block: "nearest" });
4869
4779
  const { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();
4870
4780
  if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {
4871
- opts?.containingElement?.scrollIntoView?.({ block: "center", inline: "center" });
4872
4781
  targetElement.scrollIntoView?.({ block: "nearest" });
4873
4782
  }
4874
4783
  } else {
@@ -4882,8 +4791,8 @@ function scrollIntoViewport(targetElement, opts) {
4882
4791
  }
4883
4792
  }
4884
4793
  var EventKey, supportsPreventScrollCached, focusableElements, tabbableElements, FOCUSABLE_ELEMENT_SELECTOR, TABBABLE_ELEMENT_SELECTOR, transitionsByElement, transitionCallbacks, visuallyHiddenStyles;
4885
- var init_dist11 = __esm({
4886
- "../../node_modules/.pnpm/@kobalte+utils@0.9.0_solid-js@1.8.17/node_modules/@kobalte/utils/dist/index.js"() {
4794
+ var init_dist12 = __esm({
4795
+ "../../node_modules/.pnpm/@kobalte+utils@0.9.0_solid-js@1.8.19/node_modules/@kobalte/utils/dist/index.js"() {
4887
4796
  init_solid();
4888
4797
  init_dist9();
4889
4798
  init_dist5();
@@ -4948,60 +4857,317 @@ var init_dist11 = __esm({
4948
4857
  }
4949
4858
  });
4950
4859
 
4951
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/BLN63FDC.js
4952
- function createControllableSignal(props) {
4953
- const [_value, _setValue] = createSignal(props.defaultValue?.());
4954
- const isControlled = createMemo(() => props.value?.() !== void 0);
4955
- const value = createMemo(() => isControlled() ? props.value?.() : _value());
4956
- const setValue = (next) => {
4957
- untrack(() => {
4958
- const nextValue = accessWith(next, value());
4959
- if (!Object.is(nextValue, value())) {
4960
- if (!isControlled()) {
4961
- _setValue(nextValue);
4962
- }
4963
- props.onChange?.(nextValue);
4964
- }
4965
- return nextValue;
4966
- });
4860
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/E4R2EMM4.js
4861
+ function createRegisterId(setter) {
4862
+ return (id) => {
4863
+ setter(id);
4864
+ return () => setter(void 0);
4967
4865
  };
4968
- return [value, setValue];
4969
4866
  }
4970
- function createControllableBooleanSignal(props) {
4971
- const [_value, setValue] = createControllableSignal(props);
4972
- const value = () => _value() ?? false;
4973
- return [value, setValue];
4867
+ var init_E4R2EMM4 = __esm({
4868
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/E4R2EMM4.js"() {
4869
+ }
4870
+ });
4871
+
4872
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/ET5T45DO.js
4873
+ function createTagName(ref, fallback) {
4874
+ const [tagName, setTagName] = createSignal(stringOrUndefined(fallback?.()));
4875
+ createEffect(() => {
4876
+ setTagName(ref()?.tagName.toLowerCase() || stringOrUndefined(fallback?.()));
4877
+ });
4878
+ return tagName;
4974
4879
  }
4975
- function createControllableArraySignal(props) {
4976
- const [_value, setValue] = createControllableSignal(props);
4977
- const value = () => _value() ?? [];
4978
- return [value, setValue];
4880
+ function stringOrUndefined(value) {
4881
+ return isString2(value) ? value : void 0;
4979
4882
  }
4980
- var init_BLN63FDC = __esm({
4981
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/BLN63FDC.js"() {
4982
- init_dist11();
4883
+ var init_ET5T45DO = __esm({
4884
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/ET5T45DO.js"() {
4885
+ init_dist12();
4983
4886
  init_solid();
4984
4887
  }
4985
4888
  });
4986
4889
 
4987
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/7CVNMTYF.js
4988
- function useOptionalDomCollectionContext() {
4989
- return useContext(DomCollectionContext);
4890
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/6Y7B2NEO.js
4891
+ function Polymorphic(props) {
4892
+ const [local, others] = splitProps(props, ["as"]);
4893
+ if (!local.as) {
4894
+ throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");
4895
+ }
4896
+ return (
4897
+ // @ts-ignore: Props are valid but not worth calculating
4898
+ createComponent(Dynamic, mergeProps(others, {
4899
+ get component() {
4900
+ return local.as;
4901
+ }
4902
+ }))
4903
+ );
4990
4904
  }
4991
- function useDomCollectionContext() {
4992
- const context = useOptionalDomCollectionContext();
4905
+ var init_Y7B2NEO = __esm({
4906
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/6Y7B2NEO.js"() {
4907
+ init_web();
4908
+ init_solid();
4909
+ }
4910
+ });
4911
+
4912
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/Q2DJLZQE.js
4913
+ function createFormControl(props) {
4914
+ const defaultId = `form-control-${createUniqueId()}`;
4915
+ const mergedProps = mergeDefaultProps({
4916
+ id: defaultId
4917
+ }, props);
4918
+ const [labelId, setLabelId] = createSignal();
4919
+ const [fieldId, setFieldId] = createSignal();
4920
+ const [descriptionId, setDescriptionId] = createSignal();
4921
+ const [errorMessageId, setErrorMessageId] = createSignal();
4922
+ const getAriaLabelledBy = (fieldId2, fieldAriaLabel, fieldAriaLabelledBy) => {
4923
+ const hasAriaLabelledBy = fieldAriaLabelledBy != null || labelId() != null;
4924
+ return [
4925
+ fieldAriaLabelledBy,
4926
+ labelId(),
4927
+ // If there is both an aria-label and aria-labelledby, add the field itself has an aria-labelledby
4928
+ hasAriaLabelledBy && fieldAriaLabel != null ? fieldId2 : void 0
4929
+ ].filter(Boolean).join(" ") || void 0;
4930
+ };
4931
+ const getAriaDescribedBy = (fieldAriaDescribedBy) => {
4932
+ return [
4933
+ descriptionId(),
4934
+ // Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA.
4935
+ // See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
4936
+ errorMessageId(),
4937
+ fieldAriaDescribedBy
4938
+ ].filter(Boolean).join(" ") || void 0;
4939
+ };
4940
+ const dataset = createMemo(() => ({
4941
+ "data-valid": access(mergedProps.validationState) === "valid" ? "" : void 0,
4942
+ "data-invalid": access(mergedProps.validationState) === "invalid" ? "" : void 0,
4943
+ "data-required": access(mergedProps.required) ? "" : void 0,
4944
+ "data-disabled": access(mergedProps.disabled) ? "" : void 0,
4945
+ "data-readonly": access(mergedProps.readOnly) ? "" : void 0
4946
+ }));
4947
+ const formControlContext = {
4948
+ name: () => access(mergedProps.name) ?? access(mergedProps.id),
4949
+ dataset,
4950
+ validationState: () => access(mergedProps.validationState),
4951
+ isRequired: () => access(mergedProps.required),
4952
+ isDisabled: () => access(mergedProps.disabled),
4953
+ isReadOnly: () => access(mergedProps.readOnly),
4954
+ labelId,
4955
+ fieldId,
4956
+ descriptionId,
4957
+ errorMessageId,
4958
+ getAriaLabelledBy,
4959
+ getAriaDescribedBy,
4960
+ generateId: createGenerateId(() => access(mergedProps.id)),
4961
+ registerLabel: createRegisterId(setLabelId),
4962
+ registerField: createRegisterId(setFieldId),
4963
+ registerDescription: createRegisterId(setDescriptionId),
4964
+ registerErrorMessage: createRegisterId(setErrorMessageId)
4965
+ };
4966
+ return {
4967
+ formControlContext
4968
+ };
4969
+ }
4970
+ function useFormControlContext() {
4971
+ const context = useContext(FormControlContext);
4993
4972
  if (context === void 0) {
4994
- throw new Error(
4995
- "[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component"
4996
- );
4973
+ throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");
4997
4974
  }
4998
4975
  return context;
4999
4976
  }
5000
- function isElementPreceding(a2, b2) {
5001
- return Boolean(
5002
- b2.compareDocumentPosition(a2) & Node.DOCUMENT_POSITION_PRECEDING
5003
- );
5004
- }
4977
+ function FormControlDescription(props) {
4978
+ const context = useFormControlContext();
4979
+ const mergedProps = mergeDefaultProps({
4980
+ id: context.generateId("description")
4981
+ }, props);
4982
+ createEffect(() => onCleanup(context.registerDescription(mergedProps.id)));
4983
+ return createComponent(Polymorphic, mergeProps({
4984
+ as: "div"
4985
+ }, () => context.dataset(), mergedProps));
4986
+ }
4987
+ function FormControlErrorMessage(props) {
4988
+ const context = useFormControlContext();
4989
+ const mergedProps = mergeDefaultProps({
4990
+ id: context.generateId("error-message")
4991
+ }, props);
4992
+ const [local, others] = splitProps(mergedProps, ["forceMount"]);
4993
+ const isInvalid = () => context.validationState() === "invalid";
4994
+ createEffect(() => {
4995
+ if (!isInvalid()) {
4996
+ return;
4997
+ }
4998
+ onCleanup(context.registerErrorMessage(others.id));
4999
+ });
5000
+ return createComponent(Show, {
5001
+ get when() {
5002
+ return local.forceMount || isInvalid();
5003
+ },
5004
+ get children() {
5005
+ return createComponent(Polymorphic, mergeProps({
5006
+ as: "div"
5007
+ }, () => context.dataset(), others));
5008
+ }
5009
+ });
5010
+ }
5011
+ function FormControlLabel(props) {
5012
+ let ref;
5013
+ const context = useFormControlContext();
5014
+ const mergedProps = mergeDefaultProps({
5015
+ id: context.generateId("label")
5016
+ }, props);
5017
+ const [local, others] = splitProps(mergedProps, ["ref"]);
5018
+ const tagName = createTagName(() => ref, () => "label");
5019
+ createEffect(() => onCleanup(context.registerLabel(others.id)));
5020
+ return createComponent(Polymorphic, mergeProps({
5021
+ as: "label",
5022
+ ref(r$) {
5023
+ const _ref$ = mergeRefs((el) => ref = el, local.ref);
5024
+ typeof _ref$ === "function" && _ref$(r$);
5025
+ },
5026
+ get ["for"]() {
5027
+ return createMemo(() => tagName() === "label")() ? context.fieldId() : void 0;
5028
+ }
5029
+ }, () => context.dataset(), others));
5030
+ }
5031
+ var FORM_CONTROL_PROP_NAMES, FormControlContext;
5032
+ var init_Q2DJLZQE = __esm({
5033
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/Q2DJLZQE.js"() {
5034
+ init_E4R2EMM4();
5035
+ init_ET5T45DO();
5036
+ init_Y7B2NEO();
5037
+ init_dist12();
5038
+ init_solid();
5039
+ init_web();
5040
+ FORM_CONTROL_PROP_NAMES = ["id", "name", "validationState", "required", "disabled", "readOnly"];
5041
+ FormControlContext = createContext();
5042
+ }
5043
+ });
5044
+
5045
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/ANN3A2QM.js
5046
+ function createFormResetListener(element, handler) {
5047
+ createEffect(
5048
+ on(element, (element2) => {
5049
+ if (element2 == null) {
5050
+ return;
5051
+ }
5052
+ const form = getClosestForm(element2);
5053
+ if (form == null) {
5054
+ return;
5055
+ }
5056
+ form.addEventListener("reset", handler, { passive: true });
5057
+ onCleanup(() => {
5058
+ form.removeEventListener("reset", handler);
5059
+ });
5060
+ })
5061
+ );
5062
+ }
5063
+ function getClosestForm(element) {
5064
+ return isFormElement(element) ? element.form : element.closest("form");
5065
+ }
5066
+ function isFormElement(element) {
5067
+ return element.matches("textarea, input, select, button");
5068
+ }
5069
+ var init_ANN3A2QM = __esm({
5070
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/ANN3A2QM.js"() {
5071
+ init_solid();
5072
+ }
5073
+ });
5074
+
5075
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/BLN63FDC.js
5076
+ function createControllableSignal(props) {
5077
+ const [_value, _setValue] = createSignal(props.defaultValue?.());
5078
+ const isControlled = createMemo(() => props.value?.() !== void 0);
5079
+ const value = createMemo(() => isControlled() ? props.value?.() : _value());
5080
+ const setValue = (next) => {
5081
+ untrack(() => {
5082
+ const nextValue = accessWith(next, value());
5083
+ if (!Object.is(nextValue, value())) {
5084
+ if (!isControlled()) {
5085
+ _setValue(nextValue);
5086
+ }
5087
+ props.onChange?.(nextValue);
5088
+ }
5089
+ return nextValue;
5090
+ });
5091
+ };
5092
+ return [value, setValue];
5093
+ }
5094
+ function createControllableBooleanSignal(props) {
5095
+ const [_value, setValue] = createControllableSignal(props);
5096
+ const value = () => _value() ?? false;
5097
+ return [value, setValue];
5098
+ }
5099
+ function createControllableArraySignal(props) {
5100
+ const [_value, setValue] = createControllableSignal(props);
5101
+ const value = () => _value() ?? [];
5102
+ return [value, setValue];
5103
+ }
5104
+ var init_BLN63FDC = __esm({
5105
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/BLN63FDC.js"() {
5106
+ init_dist12();
5107
+ init_solid();
5108
+ }
5109
+ });
5110
+
5111
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/YGDQXQ2B.js
5112
+ function createToggleState(props = {}) {
5113
+ const [isSelected, _setIsSelected] = createControllableBooleanSignal({
5114
+ value: () => access(props.isSelected),
5115
+ defaultValue: () => !!access(props.defaultIsSelected),
5116
+ onChange: (value) => props.onSelectedChange?.(value)
5117
+ });
5118
+ const setIsSelected = (value) => {
5119
+ if (!access(props.isReadOnly) && !access(props.isDisabled)) {
5120
+ _setIsSelected(value);
5121
+ }
5122
+ };
5123
+ const toggle = () => {
5124
+ if (!access(props.isReadOnly) && !access(props.isDisabled)) {
5125
+ _setIsSelected(!isSelected());
5126
+ }
5127
+ };
5128
+ return {
5129
+ isSelected,
5130
+ setIsSelected,
5131
+ toggle
5132
+ };
5133
+ }
5134
+ var init_YGDQXQ2B = __esm({
5135
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/YGDQXQ2B.js"() {
5136
+ init_BLN63FDC();
5137
+ init_dist12();
5138
+ }
5139
+ });
5140
+
5141
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/5ZKAE4VZ.js
5142
+ var __defProp2, __export2;
5143
+ var init_ZKAE4VZ = __esm({
5144
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/5ZKAE4VZ.js"() {
5145
+ __defProp2 = Object.defineProperty;
5146
+ __export2 = (target, all) => {
5147
+ for (var name in all)
5148
+ __defProp2(target, name, { get: all[name], enumerable: true });
5149
+ };
5150
+ }
5151
+ });
5152
+
5153
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/7CVNMTYF.js
5154
+ function useOptionalDomCollectionContext() {
5155
+ return useContext(DomCollectionContext);
5156
+ }
5157
+ function useDomCollectionContext() {
5158
+ const context = useOptionalDomCollectionContext();
5159
+ if (context === void 0) {
5160
+ throw new Error(
5161
+ "[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component"
5162
+ );
5163
+ }
5164
+ return context;
5165
+ }
5166
+ function isElementPreceding(a2, b2) {
5167
+ return Boolean(
5168
+ b2.compareDocumentPosition(a2) & Node.DOCUMENT_POSITION_PRECEDING
5169
+ );
5170
+ }
5005
5171
  function findDOMIndex(items, item) {
5006
5172
  const itemEl = item.ref();
5007
5173
  if (!itemEl) {
@@ -5148,15 +5314,15 @@ function createDomCollectionItem(props) {
5148
5314
  }
5149
5315
  var DomCollectionContext;
5150
5316
  var init_CVNMTYF = __esm({
5151
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/7CVNMTYF.js"() {
5317
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/7CVNMTYF.js"() {
5152
5318
  init_BLN63FDC();
5153
- init_dist11();
5319
+ init_dist12();
5154
5320
  init_solid();
5155
5321
  DomCollectionContext = createContext();
5156
5322
  }
5157
5323
  });
5158
5324
 
5159
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/3NGA46QE.js
5325
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/JMA2RWU6.js
5160
5326
  function buildNodes(params) {
5161
5327
  let index = params.startIndex ?? 0;
5162
5328
  const level = params.startLevel ?? 0;
@@ -5264,14 +5430,14 @@ function createCollection(props, deps = []) {
5264
5430
  return props.factory(nodes);
5265
5431
  });
5266
5432
  }
5267
- var init_NGA46QE = __esm({
5268
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/3NGA46QE.js"() {
5269
- init_dist11();
5433
+ var init_JMA2RWU6 = __esm({
5434
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/JMA2RWU6.js"() {
5435
+ init_dist12();
5270
5436
  init_solid();
5271
5437
  }
5272
5438
  });
5273
5439
 
5274
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/XHJPQEZP.js
5440
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/XHJPQEZP.js
5275
5441
  function isRTL(locale) {
5276
5442
  if (Intl.Locale) {
5277
5443
  const script = new Intl.Locale(locale).maximize().script ?? "";
@@ -5348,7 +5514,7 @@ function createCollator(options) {
5348
5514
  }
5349
5515
  var RTL_SCRIPTS, RTL_LANGS, currentLocale, listeners, I18nContext, cache;
5350
5516
  var init_XHJPQEZP = __esm({
5351
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/XHJPQEZP.js"() {
5517
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/XHJPQEZP.js"() {
5352
5518
  init_solid();
5353
5519
  init_web();
5354
5520
  RTL_SCRIPTS = /* @__PURE__ */ new Set([
@@ -5393,7 +5559,7 @@ var init_XHJPQEZP = __esm({
5393
5559
  }
5394
5560
  });
5395
5561
 
5396
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/F2YUHYY4.js
5562
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/H6DSIDEC.js
5397
5563
  function createControllableSelectionSignal(props) {
5398
5564
  const [_value, setValue] = createControllableSignal(props);
5399
5565
  const value = () => _value() ?? new Selection();
@@ -5534,7 +5700,7 @@ function createSelectableCollection(props, ref, scrollRef) {
5534
5700
  selectOnFocus: () => access(props.selectionManager).selectionBehavior() === "replace"
5535
5701
  };
5536
5702
  const mergedProps = mergeProps(defaultProps, props);
5537
- const finalScrollRef = () => scrollRef?.() ?? ref();
5703
+ const finalScrollRef = () => ref();
5538
5704
  const { direction } = useLocale();
5539
5705
  let scrollPos = { top: 0, left: 0 };
5540
5706
  createEventListener(
@@ -5556,6 +5722,7 @@ function createSelectableCollection(props, ref, scrollRef) {
5556
5722
  keyboardDelegate: () => access(mergedProps.keyboardDelegate),
5557
5723
  selectionManager: () => access(mergedProps.selectionManager)
5558
5724
  });
5725
+ const orientation = () => access(mergedProps.orientation) ?? "vertical";
5559
5726
  const onKeyDown = (e2) => {
5560
5727
  callHandler(e2, typeSelectHandlers.onKeyDown);
5561
5728
  if (e2.altKey && e2.key === "Tab") {
@@ -5581,7 +5748,7 @@ function createSelectableCollection(props, ref, scrollRef) {
5581
5748
  const shouldFocusWrap = access(mergedProps.shouldFocusWrap);
5582
5749
  const focusedKey = manager.focusedKey();
5583
5750
  switch (e2.key) {
5584
- case "ArrowDown": {
5751
+ case (orientation() === "vertical" ? "ArrowDown" : "ArrowRight"): {
5585
5752
  if (delegate.getKeyBelow) {
5586
5753
  e2.preventDefault();
5587
5754
  let nextKey;
@@ -5597,7 +5764,7 @@ function createSelectableCollection(props, ref, scrollRef) {
5597
5764
  }
5598
5765
  break;
5599
5766
  }
5600
- case "ArrowUp": {
5767
+ case (orientation() === "vertical" ? "ArrowUp" : "ArrowLeft"): {
5601
5768
  if (delegate.getKeyAbove) {
5602
5769
  e2.preventDefault();
5603
5770
  let nextKey;
@@ -5613,7 +5780,7 @@ function createSelectableCollection(props, ref, scrollRef) {
5613
5780
  }
5614
5781
  break;
5615
5782
  }
5616
- case "ArrowLeft": {
5783
+ case (orientation() === "vertical" ? "ArrowLeft" : "ArrowUp"): {
5617
5784
  if (delegate.getKeyLeftOf) {
5618
5785
  e2.preventDefault();
5619
5786
  const isRTL3 = direction() === "rtl";
@@ -5627,7 +5794,7 @@ function createSelectableCollection(props, ref, scrollRef) {
5627
5794
  }
5628
5795
  break;
5629
5796
  }
5630
- case "ArrowRight": {
5797
+ case (orientation() === "vertical" ? "ArrowRight" : "ArrowDown"): {
5631
5798
  if (delegate.getKeyRightOf) {
5632
5799
  e2.preventDefault();
5633
5800
  const isRTL3 = direction() === "rtl";
@@ -6000,12 +6167,12 @@ function createListState(props) {
6000
6167
  };
6001
6168
  }
6002
6169
  var Selection, SelectionManager, ListCollection;
6003
- var init_F2YUHYY4 = __esm({
6004
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/F2YUHYY4.js"() {
6005
- init_NGA46QE();
6170
+ var init_H6DSIDEC = __esm({
6171
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/H6DSIDEC.js"() {
6172
+ init_JMA2RWU6();
6006
6173
  init_XHJPQEZP();
6007
6174
  init_BLN63FDC();
6008
- init_dist11();
6175
+ init_dist12();
6009
6176
  init_solid();
6010
6177
  Selection = class _Selection extends Set {
6011
6178
  anchorKey;
@@ -6387,343 +6554,99 @@ var init_F2YUHYY4 = __esm({
6387
6554
  }
6388
6555
  });
6389
6556
 
6390
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/32MH7W7S.js
6391
- function createPresence(present) {
6392
- const [node, setNode] = createSignal();
6393
- let styles = {};
6394
- let prevPresent = present();
6395
- let prevAnimationName = "none";
6396
- const [state, send] = createStateMachine(
6397
- present() ? "mounted" : "unmounted",
6398
- {
6399
- mounted: {
6400
- UNMOUNT: "unmounted",
6401
- ANIMATION_OUT: "unmountSuspended"
6402
- },
6403
- unmountSuspended: {
6404
- MOUNT: "mounted",
6405
- ANIMATION_END: "unmounted"
6406
- },
6407
- unmounted: {
6408
- MOUNT: "mounted"
6409
- }
6410
- }
6411
- );
6412
- createEffect(
6413
- on(state, (state2) => {
6414
- const currentAnimationName = getAnimationName(styles);
6415
- prevAnimationName = state2 === "mounted" ? currentAnimationName : "none";
6416
- })
6417
- );
6418
- createEffect(
6419
- on(present, (present2) => {
6420
- if (prevPresent === present2) {
6421
- return;
6422
- }
6423
- const currentAnimationName = getAnimationName(styles);
6424
- if (present2) {
6425
- send("MOUNT");
6426
- } else if (styles?.display === "none") {
6427
- send("UNMOUNT");
6428
- } else {
6429
- const isAnimating = prevAnimationName !== currentAnimationName;
6430
- if (prevPresent && isAnimating) {
6431
- send("ANIMATION_OUT");
6432
- } else {
6433
- send("UNMOUNT");
6434
- }
6435
- }
6436
- prevPresent = present2;
6437
- })
6438
- );
6439
- createEffect(
6440
- on(node, (node2) => {
6441
- if (node2) {
6442
- const handleAnimationEnd = (event) => {
6443
- const currentAnimationName = getAnimationName(styles);
6444
- const isCurrentAnimation = currentAnimationName.includes(
6445
- event.animationName
6446
- );
6447
- if (event.target === node2 && isCurrentAnimation) {
6448
- send("ANIMATION_END");
6449
- }
6450
- };
6451
- const handleAnimationStart = (event) => {
6452
- if (event.target === node2) {
6453
- prevAnimationName = getAnimationName(styles);
6454
- }
6455
- };
6456
- node2.addEventListener("animationstart", handleAnimationStart);
6457
- node2.addEventListener("animationcancel", handleAnimationEnd);
6458
- node2.addEventListener("animationend", handleAnimationEnd);
6459
- onCleanup(() => {
6460
- node2.removeEventListener("animationstart", handleAnimationStart);
6461
- node2.removeEventListener("animationcancel", handleAnimationEnd);
6462
- node2.removeEventListener("animationend", handleAnimationEnd);
6463
- });
6464
- } else {
6465
- send("ANIMATION_END");
6466
- }
6467
- })
6468
- );
6469
- return {
6470
- isPresent: () => ["mounted", "unmountSuspended"].includes(state()),
6471
- setRef: (el) => {
6472
- if (el) {
6473
- styles = getComputedStyle(el);
6474
- }
6475
- setNode(el);
6476
- }
6477
- };
6478
- }
6479
- function getAnimationName(styles) {
6480
- return styles?.animationName || "none";
6481
- }
6482
- function createStateMachine(initialState, machine) {
6483
- const reduce = (state2, event) => {
6484
- const nextState = machine[state2][event];
6485
- return nextState ?? state2;
6486
- };
6487
- const [state, setState] = createSignal(initialState);
6488
- const send = (event) => {
6489
- setState((prev) => reduce(prev, event));
6490
- };
6491
- return [state, send];
6492
- }
6493
- var init_MH7W7S = __esm({
6494
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/32MH7W7S.js"() {
6495
- init_solid();
6496
- }
6497
- });
6498
-
6499
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/SNFWSEOJ.js
6500
- function Polymorphic(props) {
6501
- const [local, others] = splitProps(props, ["as"]);
6502
- if (!local.as) {
6503
- throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");
6504
- }
6505
- return (
6506
- // @ts-ignore: Props are valid but not worth calculating
6507
- createComponent(Dynamic, mergeProps({
6508
- get component() {
6509
- return local.as;
6510
- }
6511
- }, others))
6512
- );
6513
- }
6514
- var init_SNFWSEOJ = __esm({
6515
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/SNFWSEOJ.js"() {
6516
- init_web();
6517
- init_solid();
6518
- }
6519
- });
6520
-
6521
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/5ZKAE4VZ.js
6522
- var __defProp2, __export2;
6523
- var init_ZKAE4VZ = __esm({
6524
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/5ZKAE4VZ.js"() {
6525
- __defProp2 = Object.defineProperty;
6526
- __export2 = (target, all) => {
6527
- for (var name in all)
6528
- __defProp2(target, name, { get: all[name], enumerable: true });
6529
- };
6530
- }
6531
- });
6532
-
6533
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/E4R2EMM4.js
6534
- function createRegisterId(setter) {
6535
- return (id) => {
6536
- setter(id);
6537
- return () => setter(void 0);
6538
- };
6539
- }
6540
- var init_E4R2EMM4 = __esm({
6541
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/E4R2EMM4.js"() {
6557
+ // ../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/chunk/ZV6G25TT.js
6558
+ var access2;
6559
+ var init_ZV6G25TT = __esm({
6560
+ "../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/chunk/ZV6G25TT.js"() {
6561
+ access2 = (v) => typeof v === "function" ? v() : v;
6542
6562
  }
6543
6563
  });
6544
6564
 
6545
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/3QD537TT.js
6546
- function createTagName(ref, fallback) {
6547
- const [tagName, setTagName] = createSignal(stringOrUndefined(fallback?.()));
6548
- createEffect(() => {
6549
- setTagName(ref()?.tagName.toLowerCase() || stringOrUndefined(fallback?.()));
6550
- });
6551
- return tagName;
6552
- }
6553
- function stringOrUndefined(value) {
6554
- return isString2(value) ? value : void 0;
6555
- }
6556
- var init_QD537TT = __esm({
6557
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/3QD537TT.js"() {
6558
- init_dist11();
6559
- init_solid();
6565
+ // ../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/reactivity/index.js
6566
+ var init_reactivity = __esm({
6567
+ "../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/reactivity/index.js"() {
6568
+ init_ZV6G25TT();
6560
6569
  }
6561
6570
  });
6562
6571
 
6563
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/IXGTCCA7.js
6564
- function createFormControl(props) {
6565
- const defaultId = `form-control-${createUniqueId()}`;
6566
- const mergedProps = mergeDefaultProps({
6567
- id: defaultId
6568
- }, props);
6569
- const [labelId, setLabelId] = createSignal();
6570
- const [fieldId, setFieldId] = createSignal();
6571
- const [descriptionId, setDescriptionId] = createSignal();
6572
- const [errorMessageId, setErrorMessageId] = createSignal();
6573
- const getAriaLabelledBy = (fieldId2, fieldAriaLabel, fieldAriaLabelledBy) => {
6574
- const hasAriaLabelledBy = fieldAriaLabelledBy != null || labelId() != null;
6575
- return [
6576
- fieldAriaLabelledBy,
6577
- labelId(),
6578
- // If there is both an aria-label and aria-labelledby, add the field itself has an aria-labelledby
6579
- hasAriaLabelledBy && fieldAriaLabel != null ? fieldId2 : void 0
6580
- ].filter(Boolean).join(" ") || void 0;
6581
- };
6582
- const getAriaDescribedBy = (fieldAriaDescribedBy) => {
6583
- return [
6584
- descriptionId(),
6585
- // Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA.
6586
- // See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
6587
- errorMessageId(),
6588
- fieldAriaDescribedBy
6589
- ].filter(Boolean).join(" ") || void 0;
6590
- };
6591
- const dataset = createMemo(() => ({
6592
- "data-valid": access(mergedProps.validationState) === "valid" ? "" : void 0,
6593
- "data-invalid": access(mergedProps.validationState) === "invalid" ? "" : void 0,
6594
- "data-required": access(mergedProps.required) ? "" : void 0,
6595
- "data-disabled": access(mergedProps.disabled) ? "" : void 0,
6596
- "data-readonly": access(mergedProps.readOnly) ? "" : void 0
6597
- }));
6598
- const formControlContext = {
6599
- name: () => access(mergedProps.name) ?? access(mergedProps.id),
6600
- dataset,
6601
- validationState: () => access(mergedProps.validationState),
6602
- isRequired: () => access(mergedProps.required),
6603
- isDisabled: () => access(mergedProps.disabled),
6604
- isReadOnly: () => access(mergedProps.readOnly),
6605
- labelId,
6606
- fieldId,
6607
- descriptionId,
6608
- errorMessageId,
6609
- getAriaLabelledBy,
6610
- getAriaDescribedBy,
6611
- generateId: createGenerateId(() => access(mergedProps.id)),
6612
- registerLabel: createRegisterId(setLabelId),
6613
- registerField: createRegisterId(setFieldId),
6614
- registerDescription: createRegisterId(setDescriptionId),
6615
- registerErrorMessage: createRegisterId(setErrorMessageId)
6616
- };
6617
- return {
6618
- formControlContext
6619
- };
6620
- }
6621
- function useFormControlContext() {
6622
- const context = useContext(FormControlContext);
6623
- if (context === void 0) {
6624
- throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");
6625
- }
6626
- return context;
6627
- }
6628
- function FormControlDescription(props) {
6629
- const context = useFormControlContext();
6630
- const mergedProps = mergeDefaultProps({
6631
- id: context.generateId("description")
6632
- }, props);
6633
- createEffect(() => onCleanup(context.registerDescription(mergedProps.id)));
6634
- return createComponent(Polymorphic, mergeProps({
6635
- as: "div"
6636
- }, () => context.dataset(), mergedProps));
6637
- }
6638
- function FormControlErrorMessage(props) {
6639
- const context = useFormControlContext();
6640
- const mergedProps = mergeDefaultProps({
6641
- id: context.generateId("error-message")
6642
- }, props);
6643
- const [local, others] = splitProps(mergedProps, ["forceMount"]);
6644
- const isInvalid = () => context.validationState() === "invalid";
6645
- createEffect(() => {
6646
- if (!isInvalid()) {
6647
- return;
6648
- }
6649
- onCleanup(context.registerErrorMessage(others.id));
6650
- });
6651
- return createComponent(Show, {
6652
- get when() {
6653
- return local.forceMount || isInvalid();
6654
- },
6655
- get children() {
6656
- return createComponent(Polymorphic, mergeProps({
6657
- as: "div"
6658
- }, () => context.dataset(), others));
6659
- }
6660
- });
6661
- }
6662
- function FormControlLabel(props) {
6663
- let ref;
6664
- const context = useFormControlContext();
6665
- const mergedProps = mergeDefaultProps({
6666
- id: context.generateId("label")
6667
- }, props);
6668
- const [local, others] = splitProps(mergedProps, ["ref"]);
6669
- const tagName = createTagName(() => ref, () => "label");
6670
- createEffect(() => onCleanup(context.registerLabel(others.id)));
6671
- return createComponent(Polymorphic, mergeProps({
6672
- as: "label",
6673
- ref(r$) {
6674
- const _ref$ = mergeRefs((el) => ref = el, local.ref);
6675
- typeof _ref$ === "function" && _ref$(r$);
6676
- },
6677
- get ["for"]() {
6678
- return createMemo(() => tagName() === "label")() ? context.fieldId() : void 0;
6679
- }
6680
- }, () => context.dataset(), others));
6681
- }
6682
- var FORM_CONTROL_PROP_NAMES, FormControlContext;
6683
- var init_IXGTCCA7 = __esm({
6684
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/IXGTCCA7.js"() {
6685
- init_E4R2EMM4();
6686
- init_QD537TT();
6687
- init_SNFWSEOJ();
6688
- init_dist11();
6572
+ // ../../node_modules/.pnpm/solid-presence@0.1.7_solid-js@1.8.19/node_modules/solid-presence/dist/index.js
6573
+ var createPresence, presence_default, src_default;
6574
+ var init_dist13 = __esm({
6575
+ "../../node_modules/.pnpm/solid-presence@0.1.7_solid-js@1.8.19/node_modules/solid-presence/dist/index.js"() {
6576
+ init_reactivity();
6689
6577
  init_solid();
6690
- init_web();
6691
- FORM_CONTROL_PROP_NAMES = ["id", "name", "validationState", "required", "disabled", "readOnly"];
6692
- FormControlContext = createContext();
6693
- }
6694
- });
6695
-
6696
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/ANN3A2QM.js
6697
- function createFormResetListener(element, handler) {
6698
- createEffect(
6699
- on(element, (element2) => {
6700
- if (element2 == null) {
6701
- return;
6702
- }
6703
- const form = getClosestForm(element2);
6704
- if (form == null) {
6705
- return;
6706
- }
6707
- form.addEventListener("reset", handler, { passive: true });
6708
- onCleanup(() => {
6709
- form.removeEventListener("reset", handler);
6578
+ createPresence = (props) => {
6579
+ const refStyles = createMemo(() => {
6580
+ const element = access2(props.element);
6581
+ if (!element)
6582
+ return;
6583
+ return getComputedStyle(element);
6584
+ });
6585
+ const getAnimationName = () => {
6586
+ return refStyles()?.animationName ?? "none";
6587
+ };
6588
+ const [presentState, setPresentState] = createSignal(access2(props.show) ? "present" : "hidden");
6589
+ let animationName = "none";
6590
+ createEffect((prevShow) => {
6591
+ const show = access2(props.show);
6592
+ untrack(() => {
6593
+ if (prevShow === show)
6594
+ return show;
6595
+ const prevAnimationName = animationName;
6596
+ const currentAnimationName = getAnimationName();
6597
+ if (show) {
6598
+ setPresentState("present");
6599
+ } else if (currentAnimationName === "none" || refStyles()?.display === "none") {
6600
+ setPresentState("hidden");
6601
+ } else {
6602
+ const isAnimating = prevAnimationName !== currentAnimationName;
6603
+ if (prevShow === true && isAnimating) {
6604
+ setPresentState("hiding");
6605
+ } else {
6606
+ setPresentState("hidden");
6607
+ }
6608
+ }
6609
+ });
6610
+ return show;
6611
+ });
6612
+ createEffect(() => {
6613
+ const element = access2(props.element);
6614
+ if (!element)
6615
+ return;
6616
+ const handleAnimationStart = (event) => {
6617
+ if (event.target === element) {
6618
+ animationName = getAnimationName();
6619
+ }
6620
+ };
6621
+ const handleAnimationEnd = (event) => {
6622
+ const currentAnimationName = getAnimationName();
6623
+ const isCurrentAnimation = currentAnimationName.includes(
6624
+ event.animationName
6625
+ );
6626
+ if (event.target === element && isCurrentAnimation && presentState() === "hiding") {
6627
+ setPresentState("hidden");
6628
+ }
6629
+ };
6630
+ element.addEventListener("animationstart", handleAnimationStart);
6631
+ element.addEventListener("animationcancel", handleAnimationEnd);
6632
+ element.addEventListener("animationend", handleAnimationEnd);
6633
+ onCleanup(() => {
6634
+ element.removeEventListener("animationstart", handleAnimationStart);
6635
+ element.removeEventListener("animationcancel", handleAnimationEnd);
6636
+ element.removeEventListener("animationend", handleAnimationEnd);
6637
+ });
6710
6638
  });
6711
- })
6712
- );
6713
- }
6714
- function getClosestForm(element) {
6715
- return isFormElement(element) ? element.form : element.closest("form");
6716
- }
6717
- function isFormElement(element) {
6718
- return element.matches("textarea, input, select, button");
6719
- }
6720
- var init_ANN3A2QM = __esm({
6721
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/ANN3A2QM.js"() {
6722
- init_solid();
6639
+ return {
6640
+ present: () => presentState() === "present" || presentState() === "hiding",
6641
+ state: presentState
6642
+ };
6643
+ };
6644
+ presence_default = createPresence;
6645
+ src_default = presence_default;
6723
6646
  }
6724
6647
  });
6725
6648
 
6726
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/ZKYDDHM6.js
6649
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/ZKYDDHM6.js
6727
6650
  function indexOf(node) {
6728
6651
  return layers.findIndex((layer) => layer.node === node);
6729
6652
  }
@@ -6784,8 +6707,8 @@ function restoreBodyPointerEvents(node) {
6784
6707
  }
6785
6708
  var DATA_TOP_LAYER_ATTR, originalBodyPointerEvents, hasDisabledBodyPointerEvents, layers, layerStack;
6786
6709
  var init_ZKYDDHM6 = __esm({
6787
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/ZKYDDHM6.js"() {
6788
- init_dist11();
6710
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/ZKYDDHM6.js"() {
6711
+ init_dist12();
6789
6712
  DATA_TOP_LAYER_ATTR = "data-kb-top-layer";
6790
6713
  hasDisabledBodyPointerEvents = false;
6791
6714
  layers = [];
@@ -6805,7 +6728,7 @@ var init_ZKYDDHM6 = __esm({
6805
6728
  }
6806
6729
  });
6807
6730
 
6808
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/EOS4KX3P.js
6731
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/7OVKXYPU.js
6809
6732
  function isButton(element) {
6810
6733
  const tagName = element.tagName.toLowerCase();
6811
6734
  if (tagName === "button") {
@@ -6866,13 +6789,13 @@ function ButtonRoot(props) {
6866
6789
  }, others));
6867
6790
  }
6868
6791
  var button_exports, BUTTON_INPUT_TYPES, Button;
6869
- var init_EOS4KX3P = __esm({
6870
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/EOS4KX3P.js"() {
6871
- init_QD537TT();
6872
- init_SNFWSEOJ();
6792
+ var init_OVKXYPU = __esm({
6793
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/7OVKXYPU.js"() {
6794
+ init_ET5T45DO();
6795
+ init_Y7B2NEO();
6873
6796
  init_ZKAE4VZ();
6874
6797
  init_web();
6875
- init_dist11();
6798
+ init_dist12();
6876
6799
  init_solid();
6877
6800
  button_exports = {};
6878
6801
  __export2(button_exports, {
@@ -6891,37 +6814,7 @@ var init_EOS4KX3P = __esm({
6891
6814
  }
6892
6815
  });
6893
6816
 
6894
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/YGDQXQ2B.js
6895
- function createToggleState(props = {}) {
6896
- const [isSelected, _setIsSelected] = createControllableBooleanSignal({
6897
- value: () => access(props.isSelected),
6898
- defaultValue: () => !!access(props.defaultIsSelected),
6899
- onChange: (value) => props.onSelectedChange?.(value)
6900
- });
6901
- const setIsSelected = (value) => {
6902
- if (!access(props.isReadOnly) && !access(props.isDisabled)) {
6903
- _setIsSelected(value);
6904
- }
6905
- };
6906
- const toggle = () => {
6907
- if (!access(props.isReadOnly) && !access(props.isDisabled)) {
6908
- _setIsSelected(!isSelected());
6909
- }
6910
- };
6911
- return {
6912
- isSelected,
6913
- setIsSelected,
6914
- toggle
6915
- };
6916
- }
6917
- var init_YGDQXQ2B = __esm({
6918
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/YGDQXQ2B.js"() {
6919
- init_BLN63FDC();
6920
- init_dist11();
6921
- }
6922
- });
6923
-
6924
- // ../../node_modules/.pnpm/@floating-ui+utils@0.1.6/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
6817
+ // ../../node_modules/.pnpm/@floating-ui+utils@0.2.5/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
6925
6818
  function clamp2(start, value, end) {
6926
6819
  return max(start, min(value, end));
6927
6820
  }
@@ -7016,20 +6909,35 @@ function getPaddingObject(padding) {
7016
6909
  };
7017
6910
  }
7018
6911
  function rectToClientRect(rect) {
6912
+ const {
6913
+ x,
6914
+ y,
6915
+ width,
6916
+ height
6917
+ } = rect;
7019
6918
  return {
7020
- ...rect,
7021
- top: rect.y,
7022
- left: rect.x,
7023
- right: rect.x + rect.width,
7024
- bottom: rect.y + rect.height
6919
+ width,
6920
+ height,
6921
+ top: y,
6922
+ left: x,
6923
+ right: x + width,
6924
+ bottom: y + height,
6925
+ x,
6926
+ y
7025
6927
  };
7026
6928
  }
7027
- var sides, min, max, oppositeSideMap, oppositeAlignmentMap;
6929
+ var sides, min, max, round, floor, createCoords, oppositeSideMap, oppositeAlignmentMap;
7028
6930
  var init_floating_ui_utils = __esm({
7029
- "../../node_modules/.pnpm/@floating-ui+utils@0.1.6/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"() {
6931
+ "../../node_modules/.pnpm/@floating-ui+utils@0.2.5/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"() {
7030
6932
  sides = ["top", "right", "bottom", "left"];
7031
6933
  min = Math.min;
7032
6934
  max = Math.max;
6935
+ round = Math.round;
6936
+ floor = Math.floor;
6937
+ createCoords = (v) => ({
6938
+ x: v,
6939
+ y: v
6940
+ });
7033
6941
  oppositeSideMap = {
7034
6942
  left: "right",
7035
6943
  right: "left",
@@ -7043,7 +6951,7 @@ var init_floating_ui_utils = __esm({
7043
6951
  }
7044
6952
  });
7045
6953
 
7046
- // ../../node_modules/.pnpm/@floating-ui+core@1.5.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
6954
+ // ../../node_modules/.pnpm/@floating-ui+core@1.6.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
7047
6955
  function computeCoordsFromPlacement(_ref, placement, rtl) {
7048
6956
  let {
7049
6957
  reference,
@@ -7129,9 +7037,10 @@ async function detectOverflow(state, options) {
7129
7037
  strategy
7130
7038
  }));
7131
7039
  const rect = elementContext === "floating" ? {
7132
- ...rects.floating,
7133
7040
  x,
7134
- y
7041
+ y,
7042
+ width: rects.floating.width,
7043
+ height: rects.floating.height
7135
7044
  } : rects.reference;
7136
7045
  const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
7137
7046
  const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
@@ -7142,6 +7051,7 @@ async function detectOverflow(state, options) {
7142
7051
  y: 1
7143
7052
  };
7144
7053
  const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
7054
+ elements,
7145
7055
  rect,
7146
7056
  offsetParent,
7147
7057
  strategy
@@ -7204,7 +7114,7 @@ async function convertValueToCoords(state, options) {
7204
7114
  }
7205
7115
  var computePosition, arrow, flip, hide, offset, shift, size;
7206
7116
  var init_floating_ui_core = __esm({
7207
- "../../node_modules/.pnpm/@floating-ui+core@1.5.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs"() {
7117
+ "../../node_modules/.pnpm/@floating-ui+core@1.6.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs"() {
7208
7118
  init_floating_ui_utils();
7209
7119
  init_floating_ui_utils();
7210
7120
  computePosition = async (reference, floating, config) => {
@@ -7280,7 +7190,6 @@ var init_floating_ui_core = __esm({
7280
7190
  } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
7281
7191
  }
7282
7192
  i2 = -1;
7283
- continue;
7284
7193
  }
7285
7194
  }
7286
7195
  return {
@@ -7335,11 +7244,11 @@ var init_floating_ui_core = __esm({
7335
7244
  const minPadding = min(paddingObject[minProp], largestPossiblePadding);
7336
7245
  const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
7337
7246
  const min$1 = minPadding;
7338
- const max3 = clientSize - arrowDimensions[length] - maxPadding;
7247
+ const max2 = clientSize - arrowDimensions[length] - maxPadding;
7339
7248
  const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
7340
- const offset3 = clamp2(min$1, center, max3);
7341
- const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center != offset3 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
7342
- const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max3 : 0;
7249
+ const offset3 = clamp2(min$1, center, max2);
7250
+ const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset3 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
7251
+ const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max2 : 0;
7343
7252
  return {
7344
7253
  [axis]: coords[axis] + alignmentOffset,
7345
7254
  data: {
@@ -7383,10 +7292,12 @@ var init_floating_ui_core = __esm({
7383
7292
  return {};
7384
7293
  }
7385
7294
  const side = getSide(placement);
7295
+ const initialSideAxis = getSideAxis(initialPlacement);
7386
7296
  const isBasePlacement = getSide(initialPlacement) === initialPlacement;
7387
7297
  const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
7388
7298
  const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
7389
- if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== "none") {
7299
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
7300
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
7390
7301
  fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
7391
7302
  }
7392
7303
  const placements2 = [initialPlacement, ...fallbackPlacements];
@@ -7423,8 +7334,16 @@ var init_floating_ui_core = __esm({
7423
7334
  if (!resetPlacement) {
7424
7335
  switch (fallbackStrategy) {
7425
7336
  case "bestFit": {
7426
- var _overflowsData$map$so;
7427
- const placement2 = (_overflowsData$map$so = overflowsData.map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a2, b2) => a2[1] - b2[1])[0]) == null ? void 0 : _overflowsData$map$so[0];
7337
+ var _overflowsData$filter2;
7338
+ const placement2 = (_overflowsData$filter2 = overflowsData.filter((d) => {
7339
+ if (hasFallbackAxisSideDirection) {
7340
+ const currentSideAxis = getSideAxis(d.placement);
7341
+ return currentSideAxis === initialSideAxis || // Create a bias to the `y` side axis due to horizontal
7342
+ // reading directions favoring greater width.
7343
+ currentSideAxis === "y";
7344
+ }
7345
+ return true;
7346
+ }).map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a2, b2) => a2[1] - b2[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
7428
7347
  if (placement2) {
7429
7348
  resetPlacement = placement2;
7430
7349
  }
@@ -7504,15 +7423,24 @@ var init_floating_ui_core = __esm({
7504
7423
  name: "offset",
7505
7424
  options,
7506
7425
  async fn(state) {
7426
+ var _middlewareData$offse, _middlewareData$arrow;
7507
7427
  const {
7508
7428
  x,
7509
- y
7429
+ y,
7430
+ placement,
7431
+ middlewareData
7510
7432
  } = state;
7511
7433
  const diffCoords = await convertValueToCoords(state, options);
7434
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
7435
+ return {};
7436
+ }
7512
7437
  return {
7513
7438
  x: x + diffCoords.x,
7514
7439
  y: y + diffCoords.y,
7515
- data: diffCoords
7440
+ data: {
7441
+ ...diffCoords,
7442
+ placement
7443
+ }
7516
7444
  };
7517
7445
  }
7518
7446
  };
@@ -7559,16 +7487,16 @@ var init_floating_ui_core = __esm({
7559
7487
  if (checkMainAxis) {
7560
7488
  const minSide = mainAxis === "y" ? "top" : "left";
7561
7489
  const maxSide = mainAxis === "y" ? "bottom" : "right";
7562
- const min3 = mainAxisCoord + overflow[minSide];
7563
- const max3 = mainAxisCoord - overflow[maxSide];
7564
- mainAxisCoord = clamp2(min3, mainAxisCoord, max3);
7490
+ const min2 = mainAxisCoord + overflow[minSide];
7491
+ const max2 = mainAxisCoord - overflow[maxSide];
7492
+ mainAxisCoord = clamp2(min2, mainAxisCoord, max2);
7565
7493
  }
7566
7494
  if (checkCrossAxis) {
7567
7495
  const minSide = crossAxis === "y" ? "top" : "left";
7568
7496
  const maxSide = crossAxis === "y" ? "bottom" : "right";
7569
- const min3 = crossAxisCoord + overflow[minSide];
7570
- const max3 = crossAxisCoord - overflow[maxSide];
7571
- crossAxisCoord = clamp2(min3, crossAxisCoord, max3);
7497
+ const min2 = crossAxisCoord + overflow[minSide];
7498
+ const max2 = crossAxisCoord - overflow[maxSide];
7499
+ crossAxisCoord = clamp2(min2, crossAxisCoord, max2);
7572
7500
  }
7573
7501
  const limitedCoords = limiter.fn({
7574
7502
  ...state,
@@ -7621,16 +7549,16 @@ var init_floating_ui_core = __esm({
7621
7549
  widthSide = side;
7622
7550
  heightSide = alignment === "end" ? "top" : "bottom";
7623
7551
  }
7624
- const overflowAvailableHeight = height - overflow[heightSide];
7625
- const overflowAvailableWidth = width - overflow[widthSide];
7552
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
7553
+ const maximumClippingWidth = width - overflow.left - overflow.right;
7554
+ const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
7555
+ const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
7626
7556
  const noShift = !state.middlewareData.shift;
7627
7557
  let availableHeight = overflowAvailableHeight;
7628
7558
  let availableWidth = overflowAvailableWidth;
7629
7559
  if (isYAxis) {
7630
- const maximumClippingWidth = width - overflow.left - overflow.right;
7631
7560
  availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
7632
7561
  } else {
7633
- const maximumClippingHeight = height - overflow.top - overflow.bottom;
7634
7562
  availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
7635
7563
  }
7636
7564
  if (noShift && !alignment) {
@@ -7664,22 +7592,7 @@ var init_floating_ui_core = __esm({
7664
7592
  }
7665
7593
  });
7666
7594
 
7667
- // ../../node_modules/.pnpm/@floating-ui+utils@0.2.2/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
7668
- var min2, max2, round, floor, createCoords;
7669
- var init_floating_ui_utils2 = __esm({
7670
- "../../node_modules/.pnpm/@floating-ui+utils@0.2.2/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"() {
7671
- min2 = Math.min;
7672
- max2 = Math.max;
7673
- round = Math.round;
7674
- floor = Math.floor;
7675
- createCoords = (v) => ({
7676
- x: v,
7677
- y: v
7678
- });
7679
- }
7680
- });
7681
-
7682
- // ../../node_modules/.pnpm/@floating-ui+utils@0.2.2/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
7595
+ // ../../node_modules/.pnpm/@floating-ui+utils@0.2.5/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
7683
7596
  function getNodeName(node) {
7684
7597
  if (isNode(node)) {
7685
7598
  return (node.nodeName || "").toLowerCase();
@@ -7721,9 +7634,18 @@ function isOverflowElement(element) {
7721
7634
  function isTableElement(element) {
7722
7635
  return ["table", "td", "th"].includes(getNodeName(element));
7723
7636
  }
7724
- function isContainingBlock(element) {
7637
+ function isTopLayer(element) {
7638
+ return [":popover-open", ":modal"].some((selector) => {
7639
+ try {
7640
+ return element.matches(selector);
7641
+ } catch (e2) {
7642
+ return false;
7643
+ }
7644
+ });
7645
+ }
7646
+ function isContainingBlock(elementOrCss) {
7725
7647
  const webkit = isWebKit();
7726
- const css = getComputedStyle2(element);
7648
+ const css = isElement(elementOrCss) ? getComputedStyle2(elementOrCss) : elementOrCss;
7727
7649
  return css.transform !== "none" || css.perspective !== "none" || (css.containerType ? css.containerType !== "normal" : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== "none" : false) || !webkit && (css.filter ? css.filter !== "none" : false) || ["transform", "perspective", "filter"].some((value) => (css.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css.contain || "").includes(value));
7728
7650
  }
7729
7651
  function getContainingBlock(element) {
@@ -7731,6 +7653,8 @@ function getContainingBlock(element) {
7731
7653
  while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
7732
7654
  if (isContainingBlock(currentNode)) {
7733
7655
  return currentNode;
7656
+ } else if (isTopLayer(currentNode)) {
7657
+ return null;
7734
7658
  }
7735
7659
  currentNode = getParentNode(currentNode);
7736
7660
  }
@@ -7755,8 +7679,8 @@ function getNodeScroll(element) {
7755
7679
  };
7756
7680
  }
7757
7681
  return {
7758
- scrollLeft: element.pageXOffset,
7759
- scrollTop: element.pageYOffset
7682
+ scrollLeft: element.scrollX,
7683
+ scrollTop: element.scrollY
7760
7684
  };
7761
7685
  }
7762
7686
  function getParentNode(node) {
@@ -7799,11 +7723,11 @@ function getOverflowAncestors(node, list, traverseIframes) {
7799
7723
  return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
7800
7724
  }
7801
7725
  var init_floating_ui_utils_dom = __esm({
7802
- "../../node_modules/.pnpm/@floating-ui+utils@0.2.2/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs"() {
7726
+ "../../node_modules/.pnpm/@floating-ui+utils@0.2.5/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs"() {
7803
7727
  }
7804
7728
  });
7805
7729
 
7806
- // ../../node_modules/.pnpm/@floating-ui+dom@1.6.5/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
7730
+ // ../../node_modules/.pnpm/@floating-ui+dom@1.6.8/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
7807
7731
  function getCssDimensions(element) {
7808
7732
  const css = getComputedStyle2(element);
7809
7733
  let width = parseFloat(css.width) || 0;
@@ -7920,15 +7844,6 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
7920
7844
  y
7921
7845
  });
7922
7846
  }
7923
- function isTopLayer(element) {
7924
- return topLayerSelectors.some((selector) => {
7925
- try {
7926
- return element.matches(selector);
7927
- } catch (e2) {
7928
- return false;
7929
- }
7930
- });
7931
- }
7932
7847
  function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
7933
7848
  let {
7934
7849
  elements,
@@ -7977,12 +7892,12 @@ function getDocumentRect(element) {
7977
7892
  const html = getDocumentElement(element);
7978
7893
  const scroll = getNodeScroll(element);
7979
7894
  const body = element.ownerDocument.body;
7980
- const width = max2(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
7981
- const height = max2(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
7895
+ const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
7896
+ const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
7982
7897
  let x = -scroll.scrollLeft + getWindowScrollBarX(element);
7983
7898
  const y = -scroll.scrollTop;
7984
7899
  if (getComputedStyle2(body).direction === "rtl") {
7985
- x += max2(html.clientWidth, body.clientWidth) - width;
7900
+ x += max(html.clientWidth, body.clientWidth) - width;
7986
7901
  }
7987
7902
  return {
7988
7903
  width,
@@ -8094,10 +8009,10 @@ function getClippingRect(_ref) {
8094
8009
  const firstClippingAncestor = clippingAncestors[0];
8095
8010
  const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
8096
8011
  const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
8097
- accRect.top = max2(rect.top, accRect.top);
8098
- accRect.right = min2(rect.right, accRect.right);
8099
- accRect.bottom = min2(rect.bottom, accRect.bottom);
8100
- accRect.left = max2(rect.left, accRect.left);
8012
+ accRect.top = max(rect.top, accRect.top);
8013
+ accRect.right = min(rect.right, accRect.right);
8014
+ accRect.bottom = min(rect.bottom, accRect.bottom);
8015
+ accRect.left = max(rect.left, accRect.left);
8101
8016
  return accRect;
8102
8017
  }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
8103
8018
  return {
@@ -8224,7 +8139,7 @@ function observeMove(element, onMove) {
8224
8139
  const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
8225
8140
  const options = {
8226
8141
  rootMargin,
8227
- threshold: max2(0, min2(1, threshold)) || 1
8142
+ threshold: max(0, min(1, threshold)) || 1
8228
8143
  };
8229
8144
  let isFirstUpdate = true;
8230
8145
  function handleObserve(entries2) {
@@ -8325,14 +8240,13 @@ function autoUpdate(reference, floating, update, options) {
8325
8240
  }
8326
8241
  };
8327
8242
  }
8328
- var noOffsets, topLayerSelectors, getElementRects, platform, offset2, shift2, flip2, size2, hide2, arrow2, computePosition2;
8243
+ var noOffsets, getElementRects, platform, offset2, shift2, flip2, size2, hide2, arrow2, computePosition2;
8329
8244
  var init_floating_ui_dom = __esm({
8330
- "../../node_modules/.pnpm/@floating-ui+dom@1.6.5/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"() {
8245
+ "../../node_modules/.pnpm/@floating-ui+dom@1.6.8/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"() {
8331
8246
  init_floating_ui_core();
8332
- init_floating_ui_utils2();
8247
+ init_floating_ui_utils();
8333
8248
  init_floating_ui_utils_dom();
8334
8249
  noOffsets = /* @__PURE__ */ createCoords(0);
8335
- topLayerSelectors = [":popover-open", ":modal"];
8336
8250
  getElementRects = async function(data) {
8337
8251
  const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
8338
8252
  const getDimensionsFn = this.getDimensions;
@@ -8383,7 +8297,7 @@ var init_floating_ui_dom = __esm({
8383
8297
  }
8384
8298
  });
8385
8299
 
8386
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/6SUY5UYD.js
8300
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/4X2EKUJ3.js
8387
8301
  function usePopperContext() {
8388
8302
  const context = useContext(PopperContext);
8389
8303
  if (context === void 0) {
@@ -8403,10 +8317,10 @@ function PopperArrow(props) {
8403
8317
  const stroke = () => contentStyle()?.getPropertyValue(`border-${dir()}-color`) || "none";
8404
8318
  const borderWidth = () => contentStyle()?.getPropertyValue(`border-${dir()}-width`) || "0px";
8405
8319
  const strokeWidth = () => {
8406
- return parseInt(borderWidth()) * 2 * (DEFAULT_SIZE / local.size);
8320
+ return Number.parseInt(borderWidth()) * 2 * (DEFAULT_SIZE / local.size);
8407
8321
  };
8408
8322
  const rotate = () => {
8409
- return `rotate(${ROTATION_DEG[dir()]} ${HALF_DEFAULT_SIZE} ${HALF_DEFAULT_SIZE})`;
8323
+ return `rotate(${ROTATION_DEG[dir()]} ${HALF_DEFAULT_SIZE} ${HALF_DEFAULT_SIZE}) translate(0 2)`;
8410
8324
  };
8411
8325
  return createComponent(Polymorphic, mergeProps({
8412
8326
  as: "div",
@@ -8416,7 +8330,7 @@ function PopperArrow(props) {
8416
8330
  },
8417
8331
  "aria-hidden": "true",
8418
8332
  get style() {
8419
- return {
8333
+ return combineStyle({
8420
8334
  // server side rendering
8421
8335
  position: "absolute",
8422
8336
  "font-size": `${local.size}px`,
@@ -8425,9 +8339,8 @@ function PopperArrow(props) {
8425
8339
  "pointer-events": "none",
8426
8340
  fill: fill(),
8427
8341
  stroke: stroke(),
8428
- "stroke-width": strokeWidth(),
8429
- ...local.style
8430
- };
8342
+ "stroke-width": strokeWidth()
8343
+ }, local.style);
8431
8344
  }
8432
8345
  }, others, {
8433
8346
  get children() {
@@ -8456,13 +8369,12 @@ function PopperPositioner(props) {
8456
8369
  },
8457
8370
  "data-popper-positioner": "",
8458
8371
  get style() {
8459
- return {
8372
+ return combineStyle({
8460
8373
  position: "absolute",
8461
8374
  top: 0,
8462
8375
  left: 0,
8463
- "min-width": "max-content",
8464
- ...local.style
8465
- };
8376
+ "min-width": "max-content"
8377
+ }, local.style);
8466
8378
  }
8467
8379
  }, others));
8468
8380
  }
@@ -8689,16 +8601,17 @@ function PopperRoot(props) {
8689
8601
  });
8690
8602
  }
8691
8603
  var PopperContext, _tmpl$, DEFAULT_SIZE, HALF_DEFAULT_SIZE, ROTATION_DEG, REVERSE_BASE_PLACEMENT, Popper;
8692
- var init_SUY5UYD = __esm({
8693
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/6SUY5UYD.js"() {
8604
+ var init_X2EKUJ3 = __esm({
8605
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/4X2EKUJ3.js"() {
8694
8606
  init_XHJPQEZP();
8695
- init_SNFWSEOJ();
8607
+ init_Y7B2NEO();
8696
8608
  init_web();
8697
- init_dist11();
8609
+ init_dist12();
8698
8610
  init_solid();
8611
+ init_dist11();
8699
8612
  init_floating_ui_dom();
8700
8613
  PopperContext = createContext();
8701
- _tmpl$ = /* @__PURE__ */ template(`<svg display="block" viewBox="0 0 30 30"><g><path fill="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"></path><path stroke="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z">`);
8614
+ _tmpl$ = /* @__PURE__ */ template(`<svg display="block" viewBox="0 0 30 30" style="transform:scale(1.02)"><g><path fill="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"></path><path stroke="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z">`);
8702
8615
  DEFAULT_SIZE = 30;
8703
8616
  HALF_DEFAULT_SIZE = DEFAULT_SIZE / 2;
8704
8617
  ROTATION_DEG = {
@@ -8722,7 +8635,7 @@ var init_SUY5UYD = __esm({
8722
8635
  }
8723
8636
  });
8724
8637
 
8725
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/QZ25QYEA.js
8638
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/QEMPLYZX.js
8726
8639
  function createEscapeKeyDown(props) {
8727
8640
  const handleKeyDown = (event) => {
8728
8641
  if (event.key === EventKey.Escape) {
@@ -8743,15 +8656,15 @@ function createEscapeKeyDown(props) {
8743
8656
  });
8744
8657
  });
8745
8658
  }
8746
- var init_QZ25QYEA = __esm({
8747
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/QZ25QYEA.js"() {
8748
- init_dist11();
8659
+ var init_QEMPLYZX = __esm({
8660
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/QEMPLYZX.js"() {
8661
+ init_dist12();
8749
8662
  init_solid();
8750
8663
  init_web();
8751
8664
  }
8752
8665
  });
8753
8666
 
8754
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/QGCMYLTA.js
8667
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/QGCMYLTA.js
8755
8668
  function createInteractOutside(props, ref) {
8756
8669
  let pointerDownTimeoutId;
8757
8670
  let clickHandler = noop3;
@@ -8852,9 +8765,9 @@ function createInteractOutside(props, ref) {
8852
8765
  }
8853
8766
  var POINTER_DOWN_OUTSIDE_EVENT, FOCUS_OUTSIDE_EVENT;
8854
8767
  var init_QGCMYLTA = __esm({
8855
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/QGCMYLTA.js"() {
8768
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/QGCMYLTA.js"() {
8856
8769
  init_ZKYDDHM6();
8857
- init_dist11();
8770
+ init_dist12();
8858
8771
  init_solid();
8859
8772
  init_web();
8860
8773
  POINTER_DOWN_OUTSIDE_EVENT = "interactOutside.pointerDownOutside";
@@ -8862,7 +8775,7 @@ var init_QGCMYLTA = __esm({
8862
8775
  }
8863
8776
  });
8864
8777
 
8865
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/7MUMWGWR.js
8778
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/G7G3PFRJ.js
8866
8779
  function useOptionalDismissableLayerContext() {
8867
8780
  return useContext(DismissableLayerContext);
8868
8781
  }
@@ -8980,20 +8893,20 @@ function DismissableLayer(props) {
8980
8893
  });
8981
8894
  }
8982
8895
  var DismissableLayerContext;
8983
- var init_MUMWGWR = __esm({
8984
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/7MUMWGWR.js"() {
8985
- init_QZ25QYEA();
8896
+ var init_G7G3PFRJ = __esm({
8897
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/G7G3PFRJ.js"() {
8898
+ init_QEMPLYZX();
8986
8899
  init_QGCMYLTA();
8987
8900
  init_ZKYDDHM6();
8988
- init_SNFWSEOJ();
8901
+ init_Y7B2NEO();
8989
8902
  init_web();
8990
- init_dist11();
8903
+ init_dist12();
8991
8904
  init_solid();
8992
8905
  DismissableLayerContext = createContext();
8993
8906
  }
8994
8907
  });
8995
8908
 
8996
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/7LCANGHD.js
8909
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/7LCANGHD.js
8997
8910
  function createDisclosureState(props = {}) {
8998
8911
  const [isOpen, setIsOpen] = createControllableBooleanSignal({
8999
8912
  value: () => access(props.open),
@@ -9018,13 +8931,13 @@ function createDisclosureState(props = {}) {
9018
8931
  };
9019
8932
  }
9020
8933
  var init_LCANGHD = __esm({
9021
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/7LCANGHD.js"() {
8934
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/7LCANGHD.js"() {
9022
8935
  init_BLN63FDC();
9023
- init_dist11();
8936
+ init_dist12();
9024
8937
  }
9025
8938
  });
9026
8939
 
9027
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/YXI762UW.js
8940
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/Q2BOFK7I.js
9028
8941
  function useRadioGroupContext() {
9029
8942
  const context = useContext(RadioGroupContext);
9030
8943
  if (context === void 0) {
@@ -9137,16 +9050,22 @@ function RadioGroupItemIndicator(props) {
9137
9050
  id: context.generateId("indicator")
9138
9051
  }, props);
9139
9052
  const [local, others] = splitProps(mergedProps, ["ref", "forceMount"]);
9140
- const presence = createPresence(() => local.forceMount || context.isSelected());
9053
+ const [ref, setRef] = createSignal();
9054
+ const {
9055
+ present
9056
+ } = src_default({
9057
+ show: () => local.forceMount || context.isSelected(),
9058
+ element: () => ref() ?? null
9059
+ });
9141
9060
  return createComponent(Show, {
9142
9061
  get when() {
9143
- return presence.isPresent();
9062
+ return present();
9144
9063
  },
9145
9064
  get children() {
9146
9065
  return createComponent(Polymorphic, mergeProps({
9147
9066
  as: "div",
9148
9067
  ref(r$) {
9149
- const _ref$ = mergeRefs(presence.setRef, local.ref);
9068
+ const _ref$ = mergeRefs(setRef, local.ref);
9150
9069
  typeof _ref$ === "function" && _ref$(r$);
9151
9070
  }
9152
9071
  }, () => context.dataset(), others));
@@ -9234,10 +9153,9 @@ function RadioGroupItemInput(props) {
9234
9153
  return formControlContext.isReadOnly();
9235
9154
  },
9236
9155
  get style() {
9237
- return {
9238
- ...visuallyHiddenStyles,
9239
- ...local.style
9240
- };
9156
+ return combineStyle({
9157
+ ...visuallyHiddenStyles
9158
+ }, local.style);
9241
9159
  },
9242
9160
  get ["aria-labelledby"]() {
9243
9161
  return ariaLabelledBy();
@@ -9353,18 +9271,19 @@ function RadioGroupRoot(props) {
9353
9271
  });
9354
9272
  }
9355
9273
  var radio_group_exports, RadioGroupContext, RadioGroupItemContext, RadioGroup;
9356
- var init_YXI762UW = __esm({
9357
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/YXI762UW.js"() {
9358
- init_IXGTCCA7();
9274
+ var init_Q2BOFK7I = __esm({
9275
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/Q2BOFK7I.js"() {
9276
+ init_Q2DJLZQE();
9359
9277
  init_ANN3A2QM();
9360
9278
  init_E4R2EMM4();
9361
- init_MH7W7S();
9362
9279
  init_BLN63FDC();
9363
- init_SNFWSEOJ();
9280
+ init_Y7B2NEO();
9364
9281
  init_ZKAE4VZ();
9365
9282
  init_web();
9366
- init_dist11();
9283
+ init_dist12();
9367
9284
  init_solid();
9285
+ init_dist13();
9286
+ init_dist11();
9368
9287
  radio_group_exports = {};
9369
9288
  __export2(radio_group_exports, {
9370
9289
  Description: () => FormControlDescription,
@@ -9395,7 +9314,7 @@ var init_YXI762UW = __esm({
9395
9314
  }
9396
9315
  });
9397
9316
 
9398
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/FHLXHFZN.js
9317
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/GLKC2QFF.js
9399
9318
  function createSelectableList(props, ref, scrollRef) {
9400
9319
  const collator = createCollator({ usage: "search", sensitivity: "base" });
9401
9320
  const delegate = createMemo(() => {
@@ -9418,18 +9337,17 @@ function createSelectableList(props, ref, scrollRef) {
9418
9337
  shouldUseVirtualFocus: () => access(props.shouldUseVirtualFocus),
9419
9338
  allowsTabNavigation: () => access(props.allowsTabNavigation),
9420
9339
  isVirtualized: () => access(props.isVirtualized),
9421
- scrollToKey: (key) => access(props.scrollToKey)?.(key)
9340
+ scrollToKey: (key) => access(props.scrollToKey)?.(key),
9341
+ orientation: () => access(props.orientation)
9422
9342
  },
9423
- ref,
9424
- scrollRef
9425
- );
9343
+ ref);
9426
9344
  }
9427
9345
  var ListKeyboardDelegate;
9428
- var init_FHLXHFZN = __esm({
9429
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/FHLXHFZN.js"() {
9430
- init_F2YUHYY4();
9346
+ var init_GLKC2QFF = __esm({
9347
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/GLKC2QFF.js"() {
9348
+ init_H6DSIDEC();
9431
9349
  init_XHJPQEZP();
9432
- init_dist11();
9350
+ init_dist12();
9433
9351
  init_solid();
9434
9352
  ListKeyboardDelegate = class {
9435
9353
  collection;
@@ -9540,7 +9458,7 @@ var init_FHLXHFZN = __esm({
9540
9458
  }
9541
9459
  });
9542
9460
 
9543
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/ISKHZMHS.js
9461
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/ISKHZMHS.js
9544
9462
  function createFocusScope(props, ref) {
9545
9463
  const [isPaused, setIsPaused] = createSignal(false);
9546
9464
  const focusScope = {
@@ -9718,9 +9636,9 @@ function createFocusScope(props, ref) {
9718
9636
  }
9719
9637
  var AUTOFOCUS_ON_MOUNT_EVENT, AUTOFOCUS_ON_UNMOUNT_EVENT, EVENT_OPTIONS, focusScopeStack;
9720
9638
  var init_ISKHZMHS = __esm({
9721
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/ISKHZMHS.js"() {
9639
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/ISKHZMHS.js"() {
9722
9640
  init_ZKYDDHM6();
9723
- init_dist11();
9641
+ init_dist12();
9724
9642
  init_solid();
9725
9643
  init_web();
9726
9644
  AUTOFOCUS_ON_MOUNT_EVENT = "focusScope.autoFocusOnMount";
@@ -9750,15 +9668,15 @@ var init_ISKHZMHS = __esm({
9750
9668
  }
9751
9669
  });
9752
9670
 
9753
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/YA7DCYMB.js
9671
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/YA7DCYMB.js
9754
9672
  var DATA_LIVE_ANNOUNCER_ATTR;
9755
9673
  var init_YA7DCYMB = __esm({
9756
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/YA7DCYMB.js"() {
9674
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/YA7DCYMB.js"() {
9757
9675
  DATA_LIVE_ANNOUNCER_ATTR = "data-live-announcer";
9758
9676
  }
9759
9677
  });
9760
9678
 
9761
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/TZGE2AQH.js
9679
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/TZGE2AQH.js
9762
9680
  function createHideOutside(props) {
9763
9681
  createEffect(() => {
9764
9682
  if (access(props.isDisabled)) {
@@ -9877,36 +9795,21 @@ function ariaHideOutside(targets, root = document.body) {
9877
9795
  }
9878
9796
  var refCountMap, observerStack;
9879
9797
  var init_TZGE2AQH = __esm({
9880
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/TZGE2AQH.js"() {
9798
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/TZGE2AQH.js"() {
9881
9799
  init_YA7DCYMB();
9882
9800
  init_ZKYDDHM6();
9883
- init_dist11();
9801
+ init_dist12();
9884
9802
  init_solid();
9885
9803
  refCountMap = /* @__PURE__ */ new WeakMap();
9886
9804
  observerStack = [];
9887
9805
  }
9888
9806
  });
9889
9807
 
9890
- // ../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/chunk/OZCI4NDN.js
9891
- var access2;
9892
- var init_OZCI4NDN = __esm({
9893
- "../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/chunk/OZCI4NDN.js"() {
9894
- access2 = (v) => typeof v === "function" ? v() : v;
9895
- }
9896
- });
9897
-
9898
- // ../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/reactivity/index.js
9899
- var init_reactivity = __esm({
9900
- "../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/reactivity/index.js"() {
9901
- init_OZCI4NDN();
9902
- }
9903
- });
9904
-
9905
- // ../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/chunk/6PYUKSWQ.js
9808
+ // ../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/chunk/HD4B7J7A.js
9906
9809
  var activeStyles, createStyle, style_default;
9907
- var init_PYUKSWQ = __esm({
9908
- "../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/chunk/6PYUKSWQ.js"() {
9909
- init_OZCI4NDN();
9810
+ var init_HD4B7J7A = __esm({
9811
+ "../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/chunk/HD4B7J7A.js"() {
9812
+ init_ZV6G25TT();
9910
9813
  init_solid();
9911
9814
  activeStyles = /* @__PURE__ */ new Map();
9912
9815
  createStyle = (props) => {
@@ -9957,17 +9860,17 @@ var init_PYUKSWQ = __esm({
9957
9860
  }
9958
9861
  });
9959
9862
 
9960
- // ../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/create/style.js
9863
+ // ../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/create/style.js
9961
9864
  var init_style = __esm({
9962
- "../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/create/style.js"() {
9963
- init_PYUKSWQ();
9865
+ "../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/create/style.js"() {
9866
+ init_HD4B7J7A();
9964
9867
  }
9965
9868
  });
9966
9869
 
9967
- // ../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/scroll/index.js
9870
+ // ../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/scroll/index.js
9968
9871
  var getScrollDimensions, isScrollContainer, getScrollAtLocation;
9969
9872
  var init_scroll = __esm({
9970
- "../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/scroll/index.js"() {
9873
+ "../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/scroll/index.js"() {
9971
9874
  getScrollDimensions = (element, axis) => {
9972
9875
  switch (axis) {
9973
9876
  case "x":
@@ -10009,10 +9912,10 @@ var init_scroll = __esm({
10009
9912
  }
10010
9913
  });
10011
9914
 
10012
- // ../../node_modules/.pnpm/solid-prevent-scroll@0.1.7_solid-js@1.8.17/node_modules/solid-prevent-scroll/dist/index.js
10013
- var preventScrollStack, setPreventScrollStack, isActive, createPreventScroll, getDeltaXY, getTouchXY, wouldScroll, contains2, preventScroll_default, src_default;
10014
- var init_dist12 = __esm({
10015
- "../../node_modules/.pnpm/solid-prevent-scroll@0.1.7_solid-js@1.8.17/node_modules/solid-prevent-scroll/dist/index.js"() {
9915
+ // ../../node_modules/.pnpm/solid-prevent-scroll@0.1.9_solid-js@1.8.19/node_modules/solid-prevent-scroll/dist/index.js
9916
+ var preventScrollStack, setPreventScrollStack, isActive, createPreventScroll, getDeltaXY, getTouchXY, wouldScroll, contains2, preventScroll_default, src_default2;
9917
+ var init_dist14 = __esm({
9918
+ "../../node_modules/.pnpm/solid-prevent-scroll@0.1.9_solid-js@1.8.19/node_modules/solid-prevent-scroll/dist/index.js"() {
10016
9919
  init_reactivity();
10017
9920
  init_solid();
10018
9921
  init_style();
@@ -10027,6 +9930,7 @@ var init_dist12 = __esm({
10027
9930
  hideScrollbar: true,
10028
9931
  preventScrollbarShift: true,
10029
9932
  preventScrollbarShiftMode: "padding",
9933
+ restoreScrollPosition: true,
10030
9934
  allowPinchZoom: false
10031
9935
  },
10032
9936
  props
@@ -10050,15 +9954,8 @@ var init_dist12 = __esm({
10050
9954
  return;
10051
9955
  const { body } = document;
10052
9956
  const scrollbarWidth = window.innerWidth - body.offsetWidth;
10053
- style_default({
10054
- key: "prevent-scroll-overflow",
10055
- element: body,
10056
- style: {
10057
- overflow: "hidden"
10058
- }
10059
- });
10060
9957
  if (access2(defaultedProps.preventScrollbarShift)) {
10061
- const style2 = {};
9958
+ const style2 = { overflow: "hidden" };
10062
9959
  const properties = [];
10063
9960
  if (scrollbarWidth > 0) {
10064
9961
  if (access2(defaultedProps.preventScrollbarShiftMode) === "padding") {
@@ -10074,16 +9971,24 @@ var init_dist12 = __esm({
10074
9971
  const offsetTop = window.scrollY;
10075
9972
  const offsetLeft = window.scrollX;
10076
9973
  style_default({
10077
- key: "prevent-scroll-scrollbar",
9974
+ key: "prevent-scroll",
10078
9975
  element: body,
10079
9976
  style: style2,
10080
9977
  properties,
10081
9978
  cleanup: () => {
10082
- if (scrollbarWidth > 0) {
9979
+ if (access2(defaultedProps.restoreScrollPosition) && scrollbarWidth > 0) {
10083
9980
  window.scrollTo(offsetLeft, offsetTop);
10084
9981
  }
10085
9982
  }
10086
9983
  });
9984
+ } else {
9985
+ style_default({
9986
+ key: "prevent-scroll",
9987
+ element: body,
9988
+ style: {
9989
+ overflow: "hidden"
9990
+ }
9991
+ });
10087
9992
  }
10088
9993
  });
10089
9994
  createEffect(() => {
@@ -10194,11 +10099,11 @@ var init_dist12 = __esm({
10194
10099
  return false;
10195
10100
  };
10196
10101
  preventScroll_default = createPreventScroll;
10197
- src_default = preventScroll_default;
10102
+ src_default2 = preventScroll_default;
10198
10103
  }
10199
10104
  });
10200
10105
 
10201
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/FEWVDVRO.js
10106
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/3F4B62RP.js
10202
10107
  function useOptionalMenuContext() {
10203
10108
  return useContext(MenuContext);
10204
10109
  }
@@ -10394,22 +10299,177 @@ function MenuCheckboxItem(props) {
10394
10299
  local.onSelect?.();
10395
10300
  state.toggle();
10396
10301
  };
10397
- return createComponent(MenuItemBase, mergeProps({
10398
- role: "menuitemcheckbox",
10399
- get checked() {
10400
- return state.isSelected();
10302
+ return createComponent(MenuItemBase, mergeProps({
10303
+ role: "menuitemcheckbox",
10304
+ get checked() {
10305
+ return state.isSelected();
10306
+ },
10307
+ onSelect
10308
+ }, others));
10309
+ }
10310
+ function useOptionalMenubarContext() {
10311
+ return useContext(MenubarContext);
10312
+ }
10313
+ function MenuTrigger(props) {
10314
+ const rootContext = useMenuRootContext();
10315
+ const context = useMenuContext();
10316
+ const optionalMenubarContext = useOptionalMenubarContext();
10317
+ const {
10318
+ direction
10319
+ } = useLocale();
10320
+ const mergedProps = mergeDefaultProps({
10321
+ id: rootContext.generateId("trigger")
10322
+ }, props);
10323
+ const [local, others] = splitProps(mergedProps, ["ref", "id", "disabled", "onPointerDown", "onClick", "onKeyDown", "onMouseOver", "onFocus"]);
10324
+ let key = () => rootContext.value();
10325
+ if (optionalMenubarContext !== void 0) {
10326
+ key = () => rootContext.value() ?? local.id;
10327
+ if (optionalMenubarContext.lastValue() === void 0)
10328
+ optionalMenubarContext.setLastValue(key);
10329
+ }
10330
+ const tagName = createTagName(() => context.triggerRef(), () => "button");
10331
+ const isNativeLink = createMemo(() => {
10332
+ return tagName() === "a" && context.triggerRef()?.getAttribute("href") != null;
10333
+ });
10334
+ createEffect(on(() => optionalMenubarContext?.value(), (value) => {
10335
+ if (!isNativeLink())
10336
+ return;
10337
+ if (value === key())
10338
+ context.triggerRef()?.focus();
10339
+ }));
10340
+ const handleClick = () => {
10341
+ if (optionalMenubarContext !== void 0) {
10342
+ if (!context.isOpen()) {
10343
+ if (!optionalMenubarContext.autoFocusMenu()) {
10344
+ optionalMenubarContext.setAutoFocusMenu(true);
10345
+ }
10346
+ context.open(false);
10347
+ } else {
10348
+ if (optionalMenubarContext.value() === key())
10349
+ optionalMenubarContext.closeMenu();
10350
+ }
10351
+ } else
10352
+ context.toggle(true);
10353
+ };
10354
+ const onPointerDown = (e2) => {
10355
+ callHandler(e2, local.onPointerDown);
10356
+ e2.currentTarget.dataset.pointerType = e2.pointerType;
10357
+ if (!local.disabled && e2.pointerType !== "touch" && e2.button === 0) {
10358
+ handleClick();
10359
+ }
10360
+ };
10361
+ const onClick = (e2) => {
10362
+ callHandler(e2, local.onClick);
10363
+ if (!local.disabled) {
10364
+ if (e2.currentTarget.dataset.pointerType === "touch")
10365
+ handleClick();
10366
+ }
10367
+ };
10368
+ const onKeyDown = (e2) => {
10369
+ callHandler(e2, local.onKeyDown);
10370
+ if (local.disabled) {
10371
+ return;
10372
+ }
10373
+ if (isNativeLink()) {
10374
+ switch (e2.key) {
10375
+ case "Enter":
10376
+ case " ":
10377
+ return;
10378
+ }
10379
+ }
10380
+ switch (e2.key) {
10381
+ case "Enter":
10382
+ case " ":
10383
+ case MENU_KEYS.first(rootContext.orientation()):
10384
+ e2.stopPropagation();
10385
+ e2.preventDefault();
10386
+ scrollIntoViewport(e2.currentTarget);
10387
+ context.open("first");
10388
+ optionalMenubarContext?.setAutoFocusMenu(true);
10389
+ optionalMenubarContext?.setValue(key);
10390
+ break;
10391
+ case MENU_KEYS.last(rootContext.orientation()):
10392
+ e2.stopPropagation();
10393
+ e2.preventDefault();
10394
+ context.open("last");
10395
+ break;
10396
+ case MENUBAR_KEYS.next(direction(), rootContext.orientation()):
10397
+ if (optionalMenubarContext === void 0)
10398
+ break;
10399
+ e2.stopPropagation();
10400
+ e2.preventDefault();
10401
+ optionalMenubarContext.nextMenu();
10402
+ break;
10403
+ case MENUBAR_KEYS.previous(direction(), rootContext.orientation()):
10404
+ if (optionalMenubarContext === void 0)
10405
+ break;
10406
+ e2.stopPropagation();
10407
+ e2.preventDefault();
10408
+ optionalMenubarContext.previousMenu();
10409
+ break;
10410
+ }
10411
+ };
10412
+ const onMouseOver = (e2) => {
10413
+ callHandler(e2, local.onMouseOver);
10414
+ if (context.triggerRef()?.dataset.pointerType === "touch")
10415
+ return;
10416
+ if (!local.disabled && optionalMenubarContext !== void 0 && optionalMenubarContext.value() !== void 0) {
10417
+ optionalMenubarContext.setValue(key);
10418
+ }
10419
+ };
10420
+ const onFocus = (e2) => {
10421
+ callHandler(e2, local.onFocus);
10422
+ if (optionalMenubarContext !== void 0 && e2.currentTarget.dataset.pointerType !== "touch")
10423
+ optionalMenubarContext.setValue(key);
10424
+ };
10425
+ createEffect(() => onCleanup(context.registerTriggerId(local.id)));
10426
+ return createComponent(ButtonRoot, mergeProps({
10427
+ ref(r$) {
10428
+ const _ref$ = mergeRefs(context.setTriggerRef, local.ref);
10429
+ typeof _ref$ === "function" && _ref$(r$);
10401
10430
  },
10402
- onSelect
10403
- }, others));
10431
+ get ["data-kb-menu-value-trigger"]() {
10432
+ return rootContext.value();
10433
+ },
10434
+ get id() {
10435
+ return local.id;
10436
+ },
10437
+ get disabled() {
10438
+ return local.disabled;
10439
+ },
10440
+ "aria-haspopup": "true",
10441
+ get ["aria-expanded"]() {
10442
+ return context.isOpen();
10443
+ },
10444
+ get ["aria-controls"]() {
10445
+ return createMemo(() => !!context.isOpen())() ? context.contentId() : void 0;
10446
+ },
10447
+ get ["data-highlighted"]() {
10448
+ return key() !== void 0 && optionalMenubarContext?.value() === key() ? true : void 0;
10449
+ },
10450
+ get tabIndex() {
10451
+ return optionalMenubarContext !== void 0 ? optionalMenubarContext.value() === key() || optionalMenubarContext.lastValue() === key() ? 0 : -1 : void 0;
10452
+ },
10453
+ onPointerDown,
10454
+ onMouseOver,
10455
+ onClick,
10456
+ onKeyDown,
10457
+ onFocus,
10458
+ role: optionalMenubarContext !== void 0 ? "menuitem" : void 0
10459
+ }, () => context.dataset(), others));
10404
10460
  }
10405
- function useOptionalMenubarContext() {
10406
- return useContext(MenubarContext);
10461
+ function useOptionalNavigationMenuContext() {
10462
+ return useContext(NavigationMenuContext);
10407
10463
  }
10408
10464
  function MenuContentBase(props) {
10409
10465
  let ref;
10410
10466
  const rootContext = useMenuRootContext();
10411
10467
  const context = useMenuContext();
10412
10468
  const optionalMenubarContext = useOptionalMenubarContext();
10469
+ const optionalNavigationMenuContext = useOptionalNavigationMenuContext();
10470
+ const {
10471
+ direction
10472
+ } = useLocale();
10413
10473
  const mergedProps = mergeDefaultProps({
10414
10474
  id: rootContext.generateId(`content-${createUniqueId()}`)
10415
10475
  }, props);
@@ -10425,7 +10485,8 @@ function MenuContentBase(props) {
10425
10485
  deferAutoFocus: true,
10426
10486
  // ensure all menu items are mounted and collection is not empty before trying to autofocus.
10427
10487
  shouldFocusWrap: true,
10428
- disallowTypeAhead: () => !context.listState().selectionManager().isFocused()
10488
+ disallowTypeAhead: () => !context.listState().selectionManager().isFocused(),
10489
+ orientation: () => rootContext.orientation() === "horizontal" ? "vertical" : "horizontal"
10429
10490
  }, () => ref);
10430
10491
  createFocusScope({
10431
10492
  trapFocus: () => isRootModalContent() && context.isOpen(),
@@ -10445,14 +10506,14 @@ function MenuContentBase(props) {
10445
10506
  if (optionalMenubarContext !== void 0) {
10446
10507
  if (e2.currentTarget.getAttribute("aria-haspopup") !== "true")
10447
10508
  switch (e2.key) {
10448
- case "ArrowRight":
10509
+ case MENUBAR_KEYS.next(direction(), rootContext.orientation()):
10449
10510
  e2.stopPropagation();
10450
10511
  e2.preventDefault();
10451
10512
  context.close(true);
10452
10513
  optionalMenubarContext.setAutoFocusMenu(true);
10453
10514
  optionalMenubarContext.nextMenu();
10454
10515
  break;
10455
- case "ArrowLeft":
10516
+ case MENUBAR_KEYS.previous(direction(), rootContext.orientation()):
10456
10517
  if (e2.currentTarget.hasAttribute("data-closed"))
10457
10518
  break;
10458
10519
  e2.stopPropagation();
@@ -10496,66 +10557,70 @@ function MenuContentBase(props) {
10496
10557
  }
10497
10558
  };
10498
10559
  createEffect(() => onCleanup(context.registerContentId(local.id)));
10560
+ const commonAttributes = {
10561
+ ref: mergeRefs((el) => {
10562
+ context.setContentRef(el);
10563
+ ref = el;
10564
+ }, local.ref),
10565
+ role: "menu",
10566
+ get id() {
10567
+ return local.id;
10568
+ },
10569
+ get tabIndex() {
10570
+ return selectableList.tabIndex();
10571
+ },
10572
+ get "aria-labelledby"() {
10573
+ return context.triggerId();
10574
+ },
10575
+ onKeyDown: composeEventHandlers([local.onKeyDown, selectableList.onKeyDown, onKeyDown]),
10576
+ onMouseDown: composeEventHandlers([local.onMouseDown, selectableList.onMouseDown]),
10577
+ onFocusIn: composeEventHandlers([local.onFocusIn, selectableList.onFocusIn]),
10578
+ onFocusOut: composeEventHandlers([local.onFocusOut, selectableList.onFocusOut]),
10579
+ onPointerEnter,
10580
+ onPointerMove,
10581
+ get "data-orientation"() {
10582
+ return rootContext.orientation();
10583
+ }
10584
+ };
10499
10585
  return createComponent(Show, {
10500
10586
  get when() {
10501
- return context.contentPresence.isPresent();
10587
+ return context.contentPresent();
10502
10588
  },
10503
10589
  get children() {
10504
- return createComponent(Popper.Positioner, {
10590
+ return createComponent(Show, {
10591
+ get when() {
10592
+ return optionalNavigationMenuContext === void 0 || context.parentMenuContext() != null;
10593
+ },
10594
+ get fallback() {
10595
+ return createComponent(Polymorphic, mergeProps({
10596
+ as: "div"
10597
+ }, () => context.dataset(), commonAttributes, others));
10598
+ },
10505
10599
  get children() {
10506
- return createComponent(DismissableLayer, mergeProps({
10507
- ref(r$) {
10508
- const _ref$ = mergeRefs((el) => {
10509
- context.setContentRef(el);
10510
- context.contentPresence.setRef(el);
10511
- ref = el;
10512
- }, local.ref);
10513
- typeof _ref$ === "function" && _ref$(r$);
10514
- },
10515
- role: "menu",
10516
- get id() {
10517
- return local.id;
10518
- },
10519
- get tabIndex() {
10520
- return selectableList.tabIndex();
10521
- },
10522
- get disableOutsidePointerEvents() {
10523
- return createMemo(() => !!isRootModalContent())() && context.isOpen();
10524
- },
10525
- get excludedElements() {
10526
- return [context.triggerRef];
10527
- },
10528
- bypassTopMostLayerCheck: true,
10529
- get style() {
10530
- return {
10531
- "--kb-menu-content-transform-origin": "var(--kb-popper-content-transform-origin)",
10532
- position: "relative",
10533
- ...local.style
10534
- };
10535
- },
10536
- get ["aria-labelledby"]() {
10537
- return context.triggerId();
10538
- },
10539
- onEscapeKeyDown,
10540
- onFocusOutside,
10541
- get onDismiss() {
10542
- return context.close;
10543
- },
10544
- get onKeyDown() {
10545
- return composeEventHandlers([local.onKeyDown, selectableList.onKeyDown, onKeyDown]);
10546
- },
10547
- get onMouseDown() {
10548
- return composeEventHandlers([local.onMouseDown, selectableList.onMouseDown]);
10549
- },
10550
- get onFocusIn() {
10551
- return composeEventHandlers([local.onFocusIn, selectableList.onFocusIn]);
10552
- },
10553
- get onFocusOut() {
10554
- return composeEventHandlers([local.onFocusOut, selectableList.onFocusOut]);
10555
- },
10556
- onPointerEnter,
10557
- onPointerMove
10558
- }, () => context.dataset(), others));
10600
+ return createComponent(Popper.Positioner, {
10601
+ get children() {
10602
+ return createComponent(DismissableLayer, mergeProps({
10603
+ get disableOutsidePointerEvents() {
10604
+ return createMemo(() => !!isRootModalContent())() && context.isOpen();
10605
+ },
10606
+ get excludedElements() {
10607
+ return [context.triggerRef];
10608
+ },
10609
+ bypassTopMostLayerCheck: true,
10610
+ get style() {
10611
+ return combineStyle({
10612
+ "--kb-menu-content-transform-origin": "var(--kb-popper-content-transform-origin)",
10613
+ position: "relative"
10614
+ }, local.style);
10615
+ },
10616
+ onEscapeKeyDown,
10617
+ onFocusOutside,
10618
+ get onDismiss() {
10619
+ return context.close;
10620
+ }
10621
+ }, () => context.dataset(), commonAttributes, others));
10622
+ }
10623
+ });
10559
10624
  }
10560
10625
  });
10561
10626
  }
@@ -10566,9 +10631,9 @@ function MenuContent(props) {
10566
10631
  const rootContext = useMenuRootContext();
10567
10632
  const context = useMenuContext();
10568
10633
  const [local, others] = splitProps(props, ["ref"]);
10569
- src_default({
10634
+ src_default2({
10570
10635
  element: () => ref ?? null,
10571
- enabled: () => context.isOpen() && rootContext.preventScroll()
10636
+ enabled: () => context.contentPresent() && rootContext.preventScroll()
10572
10637
  });
10573
10638
  return createComponent(MenuContentBase, mergeProps({
10574
10639
  ref(r$) {
@@ -10693,7 +10758,7 @@ function MenuPortal(props) {
10693
10758
  const context = useMenuContext();
10694
10759
  return createComponent(Show, {
10695
10760
  get when() {
10696
- return context.contentPresence.isPresent();
10761
+ return context.contentPresent();
10697
10762
  },
10698
10763
  get children() {
10699
10764
  return createComponent(Portal, props);
@@ -10797,8 +10862,10 @@ function Menu(props) {
10797
10862
  const rootContext = useMenuRootContext();
10798
10863
  const parentDomCollectionContext = useOptionalDomCollectionContext();
10799
10864
  const parentMenuContext = useOptionalMenuContext();
10865
+ const optionalMenubarContext = useOptionalMenubarContext();
10866
+ const optionalNavigationMenuContext = useOptionalNavigationMenuContext();
10800
10867
  const mergedProps = mergeDefaultProps({
10801
- placement: "bottom-start"
10868
+ placement: rootContext.orientation() === "horizontal" ? "bottom-start" : "right-start"
10802
10869
  }, props);
10803
10870
  const [local, others] = splitProps(mergedProps, ["open", "defaultOpen", "onOpenChange"]);
10804
10871
  let pointerGraceTimeoutId = 0;
@@ -10823,7 +10890,12 @@ function Menu(props) {
10823
10890
  defaultOpen: () => local.defaultOpen,
10824
10891
  onOpenChange: (isOpen) => local.onOpenChange?.(isOpen)
10825
10892
  });
10826
- const contentPresence = createPresence(() => rootContext.forceMount() || disclosureState.isOpen());
10893
+ const {
10894
+ present: contentPresent
10895
+ } = src_default({
10896
+ show: () => rootContext.forceMount() || disclosureState.isOpen(),
10897
+ element: () => contentRef() ?? null
10898
+ });
10827
10899
  const listState = createListState({
10828
10900
  selectionMode: "none",
10829
10901
  dataSource: items
@@ -10842,7 +10914,7 @@ function Menu(props) {
10842
10914
  setFocusStrategy(focusStrategy2);
10843
10915
  disclosureState.toggle();
10844
10916
  };
10845
- const focusContent = () => {
10917
+ const _focusContent = () => {
10846
10918
  const content = contentRef();
10847
10919
  if (content) {
10848
10920
  focusWithoutScrolling(content);
@@ -10850,6 +10922,12 @@ function Menu(props) {
10850
10922
  listState.selectionManager().setFocusedKey(void 0);
10851
10923
  }
10852
10924
  };
10925
+ const focusContent = () => {
10926
+ if (optionalNavigationMenuContext != null)
10927
+ setTimeout(() => _focusContent());
10928
+ else
10929
+ _focusContent();
10930
+ };
10853
10931
  const registerNestedMenu = (element) => {
10854
10932
  setNestedMenus((prev) => [...prev, element]);
10855
10933
  const parentUnregister = parentMenuContext?.registerNestedMenu(element);
@@ -10894,6 +10972,32 @@ function Menu(props) {
10894
10972
  parentUnregister();
10895
10973
  });
10896
10974
  });
10975
+ createEffect(() => {
10976
+ if (parentMenuContext !== void 0)
10977
+ return;
10978
+ optionalMenubarContext?.registerMenu(rootContext.value(), [contentRef(), ...nestedMenus()]);
10979
+ });
10980
+ createEffect(() => {
10981
+ if (parentMenuContext !== void 0 || optionalMenubarContext === void 0)
10982
+ return;
10983
+ if (optionalMenubarContext.value() === rootContext.value()) {
10984
+ triggerRef()?.focus();
10985
+ if (optionalMenubarContext.autoFocusMenu())
10986
+ open(true);
10987
+ } else
10988
+ close();
10989
+ });
10990
+ createEffect(() => {
10991
+ if (parentMenuContext !== void 0 || optionalMenubarContext === void 0)
10992
+ return;
10993
+ if (disclosureState.isOpen())
10994
+ optionalMenubarContext.setValue(rootContext.value());
10995
+ });
10996
+ onCleanup(() => {
10997
+ if (parentMenuContext !== void 0)
10998
+ return;
10999
+ optionalMenubarContext?.unregisterMenu(rootContext.value());
11000
+ });
10897
11001
  const dataset = createMemo(() => ({
10898
11002
  "data-expanded": disclosureState.isOpen() ? "" : void 0,
10899
11003
  "data-closed": !disclosureState.isOpen() ? "" : void 0
@@ -10901,7 +11005,7 @@ function Menu(props) {
10901
11005
  const context = {
10902
11006
  dataset,
10903
11007
  isOpen: disclosureState.isOpen,
10904
- contentPresence,
11008
+ contentPresent,
10905
11009
  nestedMenus,
10906
11010
  currentPlacement,
10907
11011
  pointerGraceTimeoutId: () => pointerGraceTimeoutId,
@@ -10934,11 +11038,19 @@ function Menu(props) {
10934
11038
  return createComponent(MenuContext.Provider, {
10935
11039
  value: context,
10936
11040
  get children() {
10937
- return createComponent(Popper, mergeProps({
10938
- anchorRef: triggerRef,
10939
- contentRef,
10940
- onCurrentPlacementChange: setCurrentPlacement
10941
- }, others));
11041
+ return createComponent(Show, {
11042
+ when: optionalNavigationMenuContext === void 0,
11043
+ get fallback() {
11044
+ return others.children;
11045
+ },
11046
+ get children() {
11047
+ return createComponent(Popper, mergeProps({
11048
+ anchorRef: triggerRef,
11049
+ contentRef,
11050
+ onCurrentPlacementChange: setCurrentPlacement
11051
+ }, others));
11052
+ }
11053
+ });
10942
11054
  }
10943
11055
  });
10944
11056
  }
@@ -10957,6 +11069,7 @@ function MenuSub(props) {
10957
11069
  }
10958
11070
  function MenuSubContent(props) {
10959
11071
  const context = useMenuContext();
11072
+ const rootContext = useMenuRootContext();
10960
11073
  const [local, others] = splitProps(props, ["onFocusOutside", "onKeyDown"]);
10961
11074
  const {
10962
11075
  direction
@@ -10977,7 +11090,7 @@ function MenuSubContent(props) {
10977
11090
  const onKeyDown = (e2) => {
10978
11091
  callHandler(e2, local.onKeyDown);
10979
11092
  const isKeyDownInside = contains(e2.currentTarget, e2.target);
10980
- const isCloseKey = SUB_CLOSE_KEYS[direction()].includes(e2.key);
11093
+ const isCloseKey = SUB_CLOSE_KEYS.close(direction(), rootContext.orientation()).includes(e2.key);
10981
11094
  const isSubMenu = context.parentMenuContext() != null;
10982
11095
  if (isKeyDownInside && isCloseKey && isSubMenu) {
10983
11096
  context.close();
@@ -11103,7 +11216,7 @@ function MenuSubTrigger(props) {
11103
11216
  if (local.disabled) {
11104
11217
  return;
11105
11218
  }
11106
- if (SUB_OPEN_KEYS[direction()].includes(e2.key)) {
11219
+ if (SUB_OPEN_KEYS.open(direction(), rootContext.orientation()).includes(e2.key)) {
11107
11220
  e2.stopPropagation();
11108
11221
  e2.preventDefault();
11109
11222
  parentSelectionManager().setFocused(false);
@@ -11197,12 +11310,13 @@ function MenuSubTrigger(props) {
11197
11310
  }, () => context.dataset(), others));
11198
11311
  }
11199
11312
  function MenuRoot(props) {
11313
+ const optionalMenubarContext = useOptionalMenubarContext();
11200
11314
  const defaultId = `menu-${createUniqueId()}`;
11201
11315
  const mergedProps = mergeDefaultProps({
11202
11316
  id: defaultId,
11203
11317
  modal: true
11204
11318
  }, props);
11205
- const [local, others] = splitProps(mergedProps, ["id", "modal", "preventScroll", "forceMount", "open", "defaultOpen", "onOpenChange", "value"]);
11319
+ const [local, others] = splitProps(mergedProps, ["id", "modal", "preventScroll", "forceMount", "open", "defaultOpen", "onOpenChange", "value", "orientation"]);
11206
11320
  const disclosureState = createDisclosureState({
11207
11321
  open: () => local.open,
11208
11322
  defaultOpen: () => local.defaultOpen,
@@ -11213,7 +11327,8 @@ function MenuRoot(props) {
11213
11327
  preventScroll: () => local.preventScroll ?? context.isModal(),
11214
11328
  forceMount: () => local.forceMount ?? false,
11215
11329
  generateId: createGenerateId(() => local.id),
11216
- value: () => local.value
11330
+ value: () => local.value,
11331
+ orientation: () => local.orientation ?? optionalMenubarContext?.orientation() ?? "horizontal"
11217
11332
  };
11218
11333
  return createComponent(MenuRootContext.Provider, {
11219
11334
  value: context,
@@ -11229,204 +11344,66 @@ function MenuRoot(props) {
11229
11344
  }
11230
11345
  });
11231
11346
  }
11232
- var MenuContext, MenuItemContext, MenuRootContext, MenubarContext, MenuGroupContext, MenuRadioGroupContext, SUB_CLOSE_KEYS, SELECTION_KEYS, SUB_OPEN_KEYS;
11233
- var init_FEWVDVRO = __esm({
11234
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/FEWVDVRO.js"() {
11235
- init_SUY5UYD();
11347
+ var MenuContext, MenuItemContext, MenuRootContext, MenubarContext, MENUBAR_KEYS, MENU_KEYS, NavigationMenuContext, MenuGroupContext, MenuRadioGroupContext, SUB_CLOSE_KEYS, SELECTION_KEYS, SUB_OPEN_KEYS;
11348
+ var init_F4B62RP = __esm({
11349
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/3F4B62RP.js"() {
11350
+ init_X2EKUJ3();
11236
11351
  init_CVNMTYF();
11237
- init_FHLXHFZN();
11238
- init_F2YUHYY4();
11352
+ init_GLKC2QFF();
11353
+ init_H6DSIDEC();
11239
11354
  init_XHJPQEZP();
11240
11355
  init_ISKHZMHS();
11241
11356
  init_TZGE2AQH();
11242
- init_MUMWGWR();
11357
+ init_G7G3PFRJ();
11243
11358
  init_YGDQXQ2B();
11244
11359
  init_LCANGHD();
11360
+ init_OVKXYPU();
11245
11361
  init_E4R2EMM4();
11246
- init_MH7W7S();
11247
11362
  init_BLN63FDC();
11248
- init_SNFWSEOJ();
11363
+ init_ET5T45DO();
11364
+ init_Y7B2NEO();
11249
11365
  init_web();
11250
- init_dist11();
11251
- init_solid();
11252
11366
  init_dist12();
11367
+ init_solid();
11368
+ init_dist14();
11369
+ init_dist11();
11370
+ init_dist13();
11253
11371
  MenuContext = createContext();
11254
11372
  MenuItemContext = createContext();
11255
11373
  MenuRootContext = createContext();
11256
11374
  MenubarContext = createContext();
11375
+ MENUBAR_KEYS = {
11376
+ next: (dir, orientation) => dir === "ltr" ? orientation === "horizontal" ? "ArrowRight" : "ArrowDown" : orientation === "horizontal" ? "ArrowLeft" : "ArrowUp",
11377
+ previous: (dir, orientation) => MENUBAR_KEYS.next(dir === "ltr" ? "rtl" : "ltr", orientation)
11378
+ };
11379
+ MENU_KEYS = {
11380
+ first: (orientation) => orientation === "horizontal" ? "ArrowDown" : "ArrowRight",
11381
+ last: (orientation) => orientation === "horizontal" ? "ArrowUp" : "ArrowLeft"
11382
+ };
11383
+ NavigationMenuContext = createContext();
11257
11384
  MenuGroupContext = createContext();
11258
11385
  MenuRadioGroupContext = createContext();
11259
11386
  SUB_CLOSE_KEYS = {
11260
- ltr: ["ArrowLeft"],
11261
- rtl: ["ArrowRight"]
11387
+ close: (dir, orientation) => {
11388
+ if (dir === "ltr") {
11389
+ return [orientation === "horizontal" ? "ArrowLeft" : "ArrowUp"];
11390
+ }
11391
+ return [orientation === "horizontal" ? "ArrowRight" : "ArrowDown"];
11392
+ }
11262
11393
  };
11263
11394
  SELECTION_KEYS = ["Enter", " "];
11264
11395
  SUB_OPEN_KEYS = {
11265
- ltr: [...SELECTION_KEYS, "ArrowRight"],
11266
- rtl: [...SELECTION_KEYS, "ArrowLeft"]
11267
- };
11268
- }
11269
- });
11270
-
11271
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/7X66VFHP.js
11272
- function MenuTrigger(props) {
11273
- const rootContext = useMenuRootContext();
11274
- const context = useMenuContext();
11275
- const optionalMenubarContext = useOptionalMenubarContext();
11276
- const mergedProps = mergeDefaultProps({
11277
- id: rootContext.generateId("trigger")
11278
- }, props);
11279
- const [local, others] = splitProps(mergedProps, ["ref", "id", "disabled", "onPointerDown", "onClick", "onKeyDown", "onMouseOver", "onFocus"]);
11280
- let key;
11281
- if (optionalMenubarContext !== void 0) {
11282
- key = rootContext.value() ?? local.id;
11283
- createEffect(() => {
11284
- optionalMenubarContext.registerMenu(key, [context.contentRef(), ...context.nestedMenus()]);
11285
- });
11286
- createEffect(() => {
11287
- if (optionalMenubarContext.value() === key) {
11288
- context.triggerRef()?.focus();
11289
- if (optionalMenubarContext.autoFocusMenu())
11290
- context.open(true);
11291
- } else
11292
- context.close(true);
11293
- });
11294
- createEffect(() => {
11295
- if (context.isOpen())
11296
- optionalMenubarContext.setValue(key);
11297
- });
11298
- onCleanup(() => {
11299
- optionalMenubarContext.unregisterMenu(key);
11300
- });
11301
- if (optionalMenubarContext.lastValue() === void 0)
11302
- optionalMenubarContext.setLastValue(key);
11303
- }
11304
- const tagName = createTagName(() => context.triggerRef(), () => "button");
11305
- const isNativeLink = createMemo(() => {
11306
- return tagName() === "a" && context.triggerRef()?.getAttribute("href") != null;
11307
- });
11308
- const handleClick = () => {
11309
- optionalMenubarContext?.setAutoFocusMenu(true);
11310
- if (optionalMenubarContext !== void 0)
11311
- context.toggle(false);
11312
- else
11313
- context.toggle(true);
11314
- if (optionalMenubarContext !== void 0 && !context.isOpen() && optionalMenubarContext.value() === key) {
11315
- optionalMenubarContext.closeMenu();
11316
- }
11317
- };
11318
- const onPointerDown = (e2) => {
11319
- callHandler(e2, local.onPointerDown);
11320
- e2.currentTarget.dataset.pointerType = e2.pointerType;
11321
- if (!local.disabled && e2.pointerType !== "touch" && e2.button === 0) {
11322
- handleClick();
11323
- }
11324
- };
11325
- const onClick = (e2) => {
11326
- callHandler(e2, local.onClick);
11327
- if (!local.disabled) {
11328
- if (e2.currentTarget.dataset.pointerType === "touch")
11329
- handleClick();
11330
- }
11331
- };
11332
- const onKeyDown = (e2) => {
11333
- callHandler(e2, local.onKeyDown);
11334
- if (local.disabled) {
11335
- return;
11336
- }
11337
- if (isNativeLink()) {
11338
- switch (e2.key) {
11339
- case "Enter":
11340
- case " ":
11341
- return;
11396
+ open: (dir, orientation) => {
11397
+ if (dir === "ltr") {
11398
+ return [...SELECTION_KEYS, orientation === "horizontal" ? "ArrowRight" : "ArrowDown"];
11399
+ }
11400
+ return [...SELECTION_KEYS, orientation === "horizontal" ? "ArrowLeft" : "ArrowUp"];
11342
11401
  }
11343
- }
11344
- switch (e2.key) {
11345
- case "Enter":
11346
- case " ":
11347
- case "ArrowDown":
11348
- e2.stopPropagation();
11349
- e2.preventDefault();
11350
- scrollIntoViewport(e2.currentTarget);
11351
- context.toggle("first");
11352
- break;
11353
- case "ArrowUp":
11354
- e2.stopPropagation();
11355
- e2.preventDefault();
11356
- context.toggle("last");
11357
- break;
11358
- case "ArrowRight":
11359
- if (optionalMenubarContext === void 0)
11360
- break;
11361
- e2.stopPropagation();
11362
- e2.preventDefault();
11363
- optionalMenubarContext.nextMenu();
11364
- break;
11365
- case "ArrowLeft":
11366
- if (optionalMenubarContext === void 0)
11367
- break;
11368
- e2.stopPropagation();
11369
- e2.preventDefault();
11370
- optionalMenubarContext.previousMenu();
11371
- break;
11372
- }
11373
- };
11374
- const onMouseOver = (e2) => {
11375
- callHandler(e2, local.onMouseOver);
11376
- if (!local.disabled && optionalMenubarContext !== void 0 && optionalMenubarContext.value() !== void 0) {
11377
- optionalMenubarContext.setValue(key);
11378
- }
11379
- };
11380
- const onFocus = (e2) => {
11381
- callHandler(e2, local.onFocus);
11382
- if (optionalMenubarContext !== void 0)
11383
- optionalMenubarContext.setValue(key);
11384
- };
11385
- createEffect(() => onCleanup(context.registerTriggerId(local.id)));
11386
- return createComponent(ButtonRoot, mergeProps({
11387
- ref(r$) {
11388
- const _ref$ = mergeRefs(context.setTriggerRef, local.ref);
11389
- typeof _ref$ === "function" && _ref$(r$);
11390
- },
11391
- get id() {
11392
- return local.id;
11393
- },
11394
- get disabled() {
11395
- return local.disabled;
11396
- },
11397
- "aria-haspopup": "true",
11398
- get ["aria-expanded"]() {
11399
- return context.isOpen();
11400
- },
11401
- get ["aria-controls"]() {
11402
- return createMemo(() => !!context.isOpen())() ? context.contentId() : void 0;
11403
- },
11404
- get ["data-highlighted"]() {
11405
- return key !== void 0 && optionalMenubarContext?.value() === key ? true : void 0;
11406
- },
11407
- get tabIndex() {
11408
- return optionalMenubarContext !== void 0 ? optionalMenubarContext.value() === key || optionalMenubarContext.lastValue() === key ? 0 : -1 : void 0;
11409
- },
11410
- onPointerDown,
11411
- onMouseOver,
11412
- onClick,
11413
- onKeyDown,
11414
- onFocus,
11415
- role: optionalMenubarContext !== void 0 ? "menuitem" : void 0
11416
- }, () => context.dataset(), others));
11417
- }
11418
- var init_X66VFHP = __esm({
11419
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/7X66VFHP.js"() {
11420
- init_FEWVDVRO();
11421
- init_EOS4KX3P();
11422
- init_QD537TT();
11423
- init_web();
11424
- init_dist11();
11425
- init_solid();
11402
+ };
11426
11403
  }
11427
11404
  });
11428
11405
 
11429
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/QXPEHVJD.js
11406
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/STGRFJHZ.js
11430
11407
  function SeparatorRoot(props) {
11431
11408
  let ref;
11432
11409
  const mergedProps = mergeDefaultProps({
@@ -11452,13 +11429,13 @@ function SeparatorRoot(props) {
11452
11429
  }, others));
11453
11430
  }
11454
11431
  var separator_exports, Separator;
11455
- var init_QXPEHVJD = __esm({
11456
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/QXPEHVJD.js"() {
11457
- init_QD537TT();
11458
- init_SNFWSEOJ();
11432
+ var init_STGRFJHZ = __esm({
11433
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/STGRFJHZ.js"() {
11434
+ init_ET5T45DO();
11435
+ init_Y7B2NEO();
11459
11436
  init_ZKAE4VZ();
11460
11437
  init_web();
11461
- init_dist11();
11438
+ init_dist12();
11462
11439
  init_solid();
11463
11440
  separator_exports = {};
11464
11441
  __export2(separator_exports, {
@@ -11469,7 +11446,7 @@ var init_QXPEHVJD = __esm({
11469
11446
  }
11470
11447
  });
11471
11448
 
11472
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/JTYXMUDU.js
11449
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/V2JBZ7BJ.js
11473
11450
  function DropdownMenuContent(props) {
11474
11451
  const rootContext = useMenuRootContext();
11475
11452
  const context = useMenuContext();
@@ -11502,15 +11479,14 @@ function DropdownMenuRoot(props) {
11502
11479
  return createComponent(MenuRoot, mergedProps);
11503
11480
  }
11504
11481
  var dropdown_menu_exports, DropdownMenu;
11505
- var init_JTYXMUDU = __esm({
11506
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/JTYXMUDU.js"() {
11507
- init_X66VFHP();
11508
- init_FEWVDVRO();
11509
- init_QXPEHVJD();
11510
- init_SUY5UYD();
11482
+ var init_V2JBZ7BJ = __esm({
11483
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/V2JBZ7BJ.js"() {
11484
+ init_F4B62RP();
11485
+ init_STGRFJHZ();
11486
+ init_X2EKUJ3();
11511
11487
  init_ZKAE4VZ();
11512
11488
  init_web();
11513
- init_dist11();
11489
+ init_dist12();
11514
11490
  init_solid();
11515
11491
  dropdown_menu_exports = {};
11516
11492
  __export2(dropdown_menu_exports, {
@@ -11558,11 +11534,11 @@ var init_JTYXMUDU = __esm({
11558
11534
  }
11559
11535
  });
11560
11536
 
11561
- // ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/index.js
11562
- var init_dist13 = __esm({
11563
- "../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/index.js"() {
11564
- init_YXI762UW();
11565
- init_JTYXMUDU();
11537
+ // ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/index.js
11538
+ var init_dist15 = __esm({
11539
+ "../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/index.js"() {
11540
+ init_Q2BOFK7I();
11541
+ init_V2JBZ7BJ();
11566
11542
  }
11567
11543
  });
11568
11544
 
@@ -11883,14 +11859,14 @@ function ArrowDown() {
11883
11859
  }
11884
11860
  function ArrowLeft() {
11885
11861
  return (() => {
11886
- const _el$6 = _tmpl$5();
11862
+ var _el$6 = _tmpl$5();
11887
11863
  _el$6.style.setProperty("transform", "rotate(90deg)");
11888
11864
  return _el$6;
11889
11865
  })();
11890
11866
  }
11891
11867
  function ArrowRight() {
11892
11868
  return (() => {
11893
- const _el$7 = _tmpl$5();
11869
+ var _el$7 = _tmpl$5();
11894
11870
  _el$7.style.setProperty("transform", "rotate(-90deg)");
11895
11871
  return _el$7;
11896
11872
  })();
@@ -11921,7 +11897,7 @@ function Copier() {
11921
11897
  }
11922
11898
  function CopiedCopier(props) {
11923
11899
  return (() => {
11924
- const _el$16 = _tmpl$14(), _el$17 = _el$16.firstChild;
11900
+ var _el$16 = _tmpl$14(), _el$17 = _el$16.firstChild;
11925
11901
  createRenderEffect(() => setAttribute(_el$17, "stroke", props.theme === "dark" ? "#12B76A" : "#027A48"));
11926
11902
  return _el$16;
11927
11903
  })();
@@ -11938,7 +11914,7 @@ function Check(props) {
11938
11914
  return props.checked;
11939
11915
  },
11940
11916
  get children() {
11941
- const _el$20 = _tmpl$14(), _el$21 = _el$20.firstChild;
11917
+ var _el$20 = _tmpl$14(), _el$21 = _el$20.firstChild;
11942
11918
  createRenderEffect(() => setAttribute(_el$21, "stroke", props.theme === "dark" ? "#9B8AFB" : "#6938EF"));
11943
11919
  return _el$20;
11944
11920
  }
@@ -11947,7 +11923,7 @@ function Check(props) {
11947
11923
  return !props.checked;
11948
11924
  },
11949
11925
  get children() {
11950
- const _el$22 = _tmpl$17(), _el$23 = _el$22.firstChild;
11926
+ var _el$22 = _tmpl$17(), _el$23 = _el$22.firstChild;
11951
11927
  createRenderEffect(() => setAttribute(_el$23, "stroke", props.theme === "dark" ? "#9B8AFB" : "#6938EF"));
11952
11928
  return _el$22;
11953
11929
  }
@@ -11968,7 +11944,7 @@ function PauseCircle() {
11968
11944
  function TanstackLogo() {
11969
11945
  const id = createUniqueId();
11970
11946
  return (() => {
11971
- const _el$28 = _tmpl$222(), _el$29 = _el$28.firstChild, _el$30 = _el$29.nextSibling, _el$31 = _el$30.nextSibling, _el$32 = _el$31.firstChild, _el$33 = _el$31.nextSibling, _el$34 = _el$33.firstChild, _el$35 = _el$33.nextSibling, _el$36 = _el$35.nextSibling, _el$37 = _el$36.firstChild, _el$38 = _el$36.nextSibling, _el$39 = _el$38.firstChild, _el$40 = _el$38.nextSibling, _el$41 = _el$40.nextSibling, _el$42 = _el$41.firstChild, _el$43 = _el$41.nextSibling, _el$44 = _el$43.firstChild, _el$45 = _el$43.nextSibling, _el$46 = _el$45.nextSibling, _el$47 = _el$46.firstChild, _el$48 = _el$46.nextSibling, _el$49 = _el$48.firstChild, _el$50 = _el$48.nextSibling, _el$51 = _el$50.nextSibling, _el$52 = _el$51.firstChild, _el$53 = _el$51.nextSibling, _el$54 = _el$53.firstChild, _el$55 = _el$53.nextSibling, _el$56 = _el$55.nextSibling, _el$57 = _el$56.firstChild, _el$58 = _el$56.nextSibling, _el$59 = _el$58.firstChild, _el$60 = _el$58.nextSibling, _el$61 = _el$60.nextSibling, _el$62 = _el$61.firstChild, _el$63 = _el$61.nextSibling, _el$64 = _el$63.firstChild, _el$65 = _el$63.nextSibling, _el$66 = _el$65.firstChild, _el$67 = _el$66.nextSibling, _el$68 = _el$67.nextSibling, _el$69 = _el$68.nextSibling, _el$70 = _el$69.nextSibling, _el$71 = _el$65.nextSibling, _el$72 = _el$71.firstChild, _el$73 = _el$71.nextSibling, _el$74 = _el$73.firstChild, _el$75 = _el$73.nextSibling, _el$76 = _el$75.firstChild, _el$77 = _el$76.nextSibling, _el$78 = _el$77.nextSibling, _el$79 = _el$78.firstChild, _el$80 = _el$79.nextSibling, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling, _el$83 = _el$82.nextSibling, _el$84 = _el$83.nextSibling, _el$85 = _el$84.nextSibling, _el$86 = _el$85.nextSibling, _el$87 = _el$86.nextSibling, _el$88 = _el$87.nextSibling, _el$89 = _el$88.nextSibling, _el$90 = _el$89.nextSibling, _el$91 = _el$75.nextSibling, _el$92 = _el$91.firstChild, _el$93 = _el$91.nextSibling, _el$94 = _el$93.firstChild, _el$95 = _el$93.nextSibling, _el$96 = _el$95.firstChild, _el$97 = _el$96.nextSibling, _el$98 = _el$95.nextSibling, _el$99 = _el$98.firstChild, _el$100 = _el$98.nextSibling, _el$101 = _el$100.firstChild, _el$102 = _el$100.nextSibling, _el$103 = _el$102.firstChild, _el$104 = _el$103.nextSibling, _el$105 = _el$104.nextSibling, _el$106 = _el$105.nextSibling, _el$107 = _el$106.nextSibling, _el$108 = _el$107.nextSibling, _el$109 = _el$108.nextSibling, _el$110 = _el$109.nextSibling, _el$111 = _el$110.nextSibling, _el$112 = _el$111.nextSibling, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling, _el$115 = _el$114.nextSibling, _el$116 = _el$115.nextSibling, _el$117 = _el$116.nextSibling, _el$118 = _el$117.nextSibling, _el$119 = _el$118.nextSibling, _el$120 = _el$119.nextSibling;
11947
+ var _el$28 = _tmpl$222(), _el$29 = _el$28.firstChild, _el$30 = _el$29.nextSibling, _el$31 = _el$30.nextSibling, _el$32 = _el$31.firstChild, _el$33 = _el$31.nextSibling, _el$34 = _el$33.firstChild, _el$35 = _el$33.nextSibling, _el$36 = _el$35.nextSibling, _el$37 = _el$36.firstChild, _el$38 = _el$36.nextSibling, _el$39 = _el$38.firstChild, _el$40 = _el$38.nextSibling, _el$41 = _el$40.nextSibling, _el$42 = _el$41.firstChild, _el$43 = _el$41.nextSibling, _el$44 = _el$43.firstChild, _el$45 = _el$43.nextSibling, _el$46 = _el$45.nextSibling, _el$47 = _el$46.firstChild, _el$48 = _el$46.nextSibling, _el$49 = _el$48.firstChild, _el$50 = _el$48.nextSibling, _el$51 = _el$50.nextSibling, _el$52 = _el$51.firstChild, _el$53 = _el$51.nextSibling, _el$54 = _el$53.firstChild, _el$55 = _el$53.nextSibling, _el$56 = _el$55.nextSibling, _el$57 = _el$56.firstChild, _el$58 = _el$56.nextSibling, _el$59 = _el$58.firstChild, _el$60 = _el$58.nextSibling, _el$61 = _el$60.nextSibling, _el$62 = _el$61.firstChild, _el$63 = _el$61.nextSibling, _el$64 = _el$63.firstChild, _el$65 = _el$63.nextSibling, _el$66 = _el$65.firstChild, _el$67 = _el$66.nextSibling, _el$68 = _el$67.nextSibling, _el$69 = _el$68.nextSibling, _el$70 = _el$69.nextSibling, _el$71 = _el$65.nextSibling, _el$72 = _el$71.firstChild, _el$73 = _el$71.nextSibling, _el$74 = _el$73.firstChild, _el$75 = _el$73.nextSibling, _el$76 = _el$75.firstChild, _el$77 = _el$76.nextSibling, _el$78 = _el$77.nextSibling, _el$79 = _el$78.firstChild, _el$80 = _el$79.nextSibling, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling, _el$83 = _el$82.nextSibling, _el$84 = _el$83.nextSibling, _el$85 = _el$84.nextSibling, _el$86 = _el$85.nextSibling, _el$87 = _el$86.nextSibling, _el$88 = _el$87.nextSibling, _el$89 = _el$88.nextSibling, _el$90 = _el$89.nextSibling, _el$91 = _el$75.nextSibling, _el$92 = _el$91.firstChild, _el$93 = _el$91.nextSibling, _el$94 = _el$93.firstChild, _el$95 = _el$93.nextSibling, _el$96 = _el$95.firstChild, _el$97 = _el$96.nextSibling, _el$98 = _el$95.nextSibling, _el$99 = _el$98.firstChild, _el$100 = _el$98.nextSibling, _el$101 = _el$100.firstChild, _el$102 = _el$100.nextSibling, _el$103 = _el$102.firstChild, _el$104 = _el$103.nextSibling, _el$105 = _el$104.nextSibling, _el$106 = _el$105.nextSibling, _el$107 = _el$106.nextSibling, _el$108 = _el$107.nextSibling, _el$109 = _el$108.nextSibling, _el$110 = _el$109.nextSibling, _el$111 = _el$110.nextSibling, _el$112 = _el$111.nextSibling, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling, _el$115 = _el$114.nextSibling, _el$116 = _el$115.nextSibling, _el$117 = _el$116.nextSibling, _el$118 = _el$117.nextSibling, _el$119 = _el$118.nextSibling, _el$120 = _el$119.nextSibling;
11972
11948
  setAttribute(_el$29, "id", `a-${id}`);
11973
11949
  setAttribute(_el$30, "fill", `url(#a-${id})`);
11974
11950
  setAttribute(_el$32, "id", `am-${id}`);
@@ -12109,8 +12085,6 @@ var init_Context = __esm({
12109
12085
 
12110
12086
  // src/Explorer.tsx
12111
12087
  function chunkArray(array, size3) {
12112
- if (size3 < 1)
12113
- return [];
12114
12088
  let i2 = 0;
12115
12089
  const result = [];
12116
12090
  while (i2 < array.length) {
@@ -12172,14 +12146,14 @@ function Explorer(props) {
12172
12146
  const subEntryPages = createMemo(() => chunkArray(subEntries(), 100));
12173
12147
  const currentDataPath = props.dataPath ?? [];
12174
12148
  return (() => {
12175
- const _el$6 = _tmpl$62();
12149
+ var _el$6 = _tmpl$62();
12176
12150
  insert(_el$6, createComponent(Show, {
12177
12151
  get when() {
12178
12152
  return subEntryPages().length;
12179
12153
  },
12180
12154
  get children() {
12181
12155
  return [(() => {
12182
- const _el$7 = _tmpl$72(), _el$8 = _el$7.firstChild, _el$9 = _el$8.firstChild, _el$10 = _el$9.nextSibling, _el$11 = _el$10.nextSibling, _el$12 = _el$11.nextSibling, _el$13 = _el$12.firstChild;
12156
+ var _el$7 = _tmpl$72(), _el$8 = _el$7.firstChild, _el$9 = _el$8.firstChild, _el$10 = _el$9.nextSibling, _el$11 = _el$10.nextSibling, _el$12 = _el$11.nextSibling, _el$13 = _el$12.firstChild;
12183
12157
  _el$8.$$click = () => toggleExpanded();
12184
12158
  insert(_el$8, createComponent(Expander, {
12185
12159
  get expanded() {
@@ -12195,7 +12169,7 @@ function Explorer(props) {
12195
12169
  return props.editable;
12196
12170
  },
12197
12171
  get children() {
12198
- const _el$14 = _tmpl$62();
12172
+ var _el$14 = _tmpl$62();
12199
12173
  insert(_el$14, createComponent(CopyButton, {
12200
12174
  get value() {
12201
12175
  return props.value;
@@ -12232,15 +12206,15 @@ function Explorer(props) {
12232
12206
  }
12233
12207
  }), null);
12234
12208
  createRenderEffect((_p$) => {
12235
- const _v$3 = styles().expanderButtonContainer, _v$4 = styles().expanderButton, _v$5 = styles().info;
12236
- _v$3 !== _p$._v$3 && className(_el$7, _p$._v$3 = _v$3);
12237
- _v$4 !== _p$._v$4 && className(_el$8, _p$._v$4 = _v$4);
12238
- _v$5 !== _p$._v$5 && className(_el$12, _p$._v$5 = _v$5);
12209
+ var _v$3 = styles().expanderButtonContainer, _v$4 = styles().expanderButton, _v$5 = styles().info;
12210
+ _v$3 !== _p$.e && className(_el$7, _p$.e = _v$3);
12211
+ _v$4 !== _p$.t && className(_el$8, _p$.t = _v$4);
12212
+ _v$5 !== _p$.a && className(_el$12, _p$.a = _v$5);
12239
12213
  return _p$;
12240
12214
  }, {
12241
- _v$3: void 0,
12242
- _v$4: void 0,
12243
- _v$5: void 0
12215
+ e: void 0,
12216
+ t: void 0,
12217
+ a: void 0
12244
12218
  });
12245
12219
  return _el$7;
12246
12220
  })(), createComponent(Show, {
@@ -12253,7 +12227,7 @@ function Explorer(props) {
12253
12227
  return subEntryPages().length === 1;
12254
12228
  },
12255
12229
  get children() {
12256
- const _el$15 = _tmpl$62();
12230
+ var _el$15 = _tmpl$62();
12257
12231
  insert(_el$15, createComponent(Key, {
12258
12232
  get each() {
12259
12233
  return subEntries();
@@ -12293,13 +12267,13 @@ function Explorer(props) {
12293
12267
  return subEntryPages().length > 1;
12294
12268
  },
12295
12269
  get children() {
12296
- const _el$16 = _tmpl$62();
12270
+ var _el$16 = _tmpl$62();
12297
12271
  insert(_el$16, createComponent(Index, {
12298
12272
  get each() {
12299
12273
  return subEntryPages();
12300
12274
  },
12301
12275
  children: (entries2, index) => (() => {
12302
- const _el$22 = _tmpl$112(), _el$23 = _el$22.firstChild, _el$24 = _el$23.firstChild, _el$25 = _el$24.firstChild, _el$29 = _el$25.nextSibling, _el$27 = _el$29.nextSibling, _el$30 = _el$27.nextSibling; _el$30.nextSibling;
12276
+ var _el$22 = _tmpl$112(), _el$23 = _el$22.firstChild, _el$24 = _el$23.firstChild, _el$25 = _el$24.firstChild, _el$29 = _el$25.nextSibling, _el$27 = _el$29.nextSibling, _el$30 = _el$27.nextSibling; _el$30.nextSibling;
12303
12277
  _el$24.$$click = () => setExpandedPages((old) => old.includes(index) ? old.filter((d) => d !== index) : [...old, index]);
12304
12278
  insert(_el$24, createComponent(Expander, {
12305
12279
  get expanded() {
@@ -12313,7 +12287,7 @@ function Explorer(props) {
12313
12287
  return expandedPages().includes(index);
12314
12288
  },
12315
12289
  get children() {
12316
- const _el$31 = _tmpl$62();
12290
+ var _el$31 = _tmpl$62();
12317
12291
  insert(_el$31, createComponent(Key, {
12318
12292
  get each() {
12319
12293
  return entries2();
@@ -12345,13 +12319,13 @@ function Explorer(props) {
12345
12319
  }
12346
12320
  }), null);
12347
12321
  createRenderEffect((_p$) => {
12348
- const _v$10 = styles().entry, _v$11 = styles().expanderButton;
12349
- _v$10 !== _p$._v$10 && className(_el$23, _p$._v$10 = _v$10);
12350
- _v$11 !== _p$._v$11 && className(_el$24, _p$._v$11 = _v$11);
12322
+ var _v$10 = styles().entry, _v$11 = styles().expanderButton;
12323
+ _v$10 !== _p$.e && className(_el$23, _p$.e = _v$10);
12324
+ _v$11 !== _p$.t && className(_el$24, _p$.t = _v$11);
12351
12325
  return _p$;
12352
12326
  }, {
12353
- _v$10: void 0,
12354
- _v$11: void 0
12327
+ e: void 0,
12328
+ t: void 0
12355
12329
  });
12356
12330
  return _el$22;
12357
12331
  })()
@@ -12369,7 +12343,7 @@ function Explorer(props) {
12369
12343
  return subEntryPages().length === 0;
12370
12344
  },
12371
12345
  get children() {
12372
- const _el$17 = _tmpl$102(), _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild;
12346
+ var _el$17 = _tmpl$102(), _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild;
12373
12347
  insert(_el$18, () => props.label, _el$19);
12374
12348
  insert(_el$17, createComponent(Show, {
12375
12349
  get when() {
@@ -12377,7 +12351,7 @@ function Explorer(props) {
12377
12351
  },
12378
12352
  get fallback() {
12379
12353
  return (() => {
12380
- const _el$32 = _tmpl$92();
12354
+ var _el$32 = _tmpl$92();
12381
12355
  insert(_el$32, () => displayValue(props.value));
12382
12356
  createRenderEffect(() => className(_el$32, styles().value));
12383
12357
  return _el$32;
@@ -12389,20 +12363,20 @@ function Explorer(props) {
12389
12363
  return createMemo(() => !!(props.editable && props.activeQuery !== void 0))() && (type() === "string" || type() === "number");
12390
12364
  },
12391
12365
  get children() {
12392
- const _el$20 = _tmpl$82();
12366
+ var _el$20 = _tmpl$82();
12393
12367
  _el$20.addEventListener("change", (changeEvent) => {
12394
12368
  const oldData = props.activeQuery.state.data;
12395
12369
  const newData = updateNestedDataByPath(oldData, currentDataPath, type() === "number" ? changeEvent.target.valueAsNumber : changeEvent.target.value);
12396
12370
  queryClient.setQueryData(props.activeQuery.queryKey, newData);
12397
12371
  });
12398
12372
  createRenderEffect((_p$) => {
12399
- const _v$6 = type() === "number" ? "number" : "text", _v$7 = clsx(styles().value, styles().editableInput);
12400
- _v$6 !== _p$._v$6 && setAttribute(_el$20, "type", _p$._v$6 = _v$6);
12401
- _v$7 !== _p$._v$7 && className(_el$20, _p$._v$7 = _v$7);
12373
+ var _v$6 = type() === "number" ? "number" : "text", _v$7 = clsx(styles().value, styles().editableInput);
12374
+ _v$6 !== _p$.e && setAttribute(_el$20, "type", _p$.e = _v$6);
12375
+ _v$7 !== _p$.t && className(_el$20, _p$.t = _v$7);
12402
12376
  return _p$;
12403
12377
  }, {
12404
- _v$6: void 0,
12405
- _v$7: void 0
12378
+ e: void 0,
12379
+ t: void 0
12406
12380
  });
12407
12381
  createRenderEffect(() => _el$20.value = props.value);
12408
12382
  return _el$20;
@@ -12412,7 +12386,7 @@ function Explorer(props) {
12412
12386
  return type() === "boolean";
12413
12387
  },
12414
12388
  get children() {
12415
- const _el$21 = _tmpl$92();
12389
+ var _el$21 = _tmpl$92();
12416
12390
  insert(_el$21, createComponent(ToggleValueButton, {
12417
12391
  get activeQuery() {
12418
12392
  return props.activeQuery;
@@ -12443,13 +12417,13 @@ function Explorer(props) {
12443
12417
  }
12444
12418
  }), null);
12445
12419
  createRenderEffect((_p$) => {
12446
- const _v$8 = styles().row, _v$9 = styles().label;
12447
- _v$8 !== _p$._v$8 && className(_el$17, _p$._v$8 = _v$8);
12448
- _v$9 !== _p$._v$9 && className(_el$18, _p$._v$9 = _v$9);
12420
+ var _v$8 = styles().row, _v$9 = styles().label;
12421
+ _v$8 !== _p$.e && className(_el$17, _p$.e = _v$8);
12422
+ _v$9 !== _p$.t && className(_el$18, _p$.t = _v$9);
12449
12423
  return _p$;
12450
12424
  }, {
12451
- _v$8: void 0,
12452
- _v$9: void 0
12425
+ e: void 0,
12426
+ t: void 0
12453
12427
  });
12454
12428
  return _el$17;
12455
12429
  }
@@ -12499,7 +12473,7 @@ var init_Explorer = __esm({
12499
12473
  return theme() === "dark" ? darkStyles(css) : lightStyles(css);
12500
12474
  });
12501
12475
  return (() => {
12502
- const _el$ = _tmpl$23();
12476
+ var _el$ = _tmpl$23();
12503
12477
  createRenderEffect(() => className(_el$, clsx(styles().expander, css`
12504
12478
  transform: rotate(${props.expanded ? 90 : 0}deg);
12505
12479
  `, props.expanded && css`
@@ -12520,7 +12494,7 @@ var init_Explorer = __esm({
12520
12494
  });
12521
12495
  const [copyState, setCopyState] = createSignal("NoCopy");
12522
12496
  return (() => {
12523
- const _el$2 = _tmpl$24();
12497
+ var _el$2 = _tmpl$24();
12524
12498
  addEventListener(_el$2, "click", copyState() === "NoCopy" ? () => {
12525
12499
  navigator.clipboard.writeText(stringify(props.value)).then(() => {
12526
12500
  setCopyState("SuccessCopy");
@@ -12566,13 +12540,13 @@ var init_Explorer = __esm({
12566
12540
  }
12567
12541
  }));
12568
12542
  createRenderEffect((_p$) => {
12569
- const _v$ = styles().actionButton, _v$2 = `${copyState() === "NoCopy" ? "Copy object to clipboard" : copyState() === "SuccessCopy" ? "Object copied to clipboard" : "Error copying object to clipboard"}`;
12570
- _v$ !== _p$._v$ && className(_el$2, _p$._v$ = _v$);
12571
- _v$2 !== _p$._v$2 && setAttribute(_el$2, "aria-label", _p$._v$2 = _v$2);
12543
+ var _v$ = styles().actionButton, _v$2 = `${copyState() === "NoCopy" ? "Copy object to clipboard" : copyState() === "SuccessCopy" ? "Object copied to clipboard" : "Error copying object to clipboard"}`;
12544
+ _v$ !== _p$.e && className(_el$2, _p$.e = _v$);
12545
+ _v$2 !== _p$.t && setAttribute(_el$2, "aria-label", _p$.t = _v$2);
12572
12546
  return _p$;
12573
12547
  }, {
12574
- _v$: void 0,
12575
- _v$2: void 0
12548
+ e: void 0,
12549
+ t: void 0
12576
12550
  });
12577
12551
  return _el$2;
12578
12552
  })();
@@ -12587,7 +12561,7 @@ var init_Explorer = __esm({
12587
12561
  });
12588
12562
  const queryClient = useQueryDevtoolsContext().client;
12589
12563
  return (() => {
12590
- const _el$3 = _tmpl$32();
12564
+ var _el$3 = _tmpl$32();
12591
12565
  _el$3.$$click = () => {
12592
12566
  const oldData = props.activeQuery.state.data;
12593
12567
  const newData = updateNestedDataByPath(oldData, props.dataPath, []);
@@ -12608,7 +12582,7 @@ var init_Explorer = __esm({
12608
12582
  });
12609
12583
  const queryClient = useQueryDevtoolsContext().client;
12610
12584
  return (() => {
12611
- const _el$4 = _tmpl$42();
12585
+ var _el$4 = _tmpl$42();
12612
12586
  _el$4.$$click = () => {
12613
12587
  const oldData = props.activeQuery.state.data;
12614
12588
  const newData = deleteNestedDataByPath(oldData, props.dataPath);
@@ -12629,7 +12603,7 @@ var init_Explorer = __esm({
12629
12603
  });
12630
12604
  const queryClient = useQueryDevtoolsContext().client;
12631
12605
  return (() => {
12632
- const _el$5 = _tmpl$52();
12606
+ var _el$5 = _tmpl$52();
12633
12607
  _el$5.$$click = () => {
12634
12608
  const oldData = props.activeQuery.state.data;
12635
12609
  const newData = updateNestedDataByPath(oldData, props.dataPath, !props.value);
@@ -12817,7 +12791,7 @@ var init_Devtools = __esm({
12817
12791
  init_dist7();
12818
12792
  init_dist8();
12819
12793
  init_dist10();
12820
- init_dist13();
12794
+ init_dist15();
12821
12795
  init_web();
12822
12796
  init_theme();
12823
12797
  init_utils();
@@ -13079,8 +13053,8 @@ var init_Devtools = __esm({
13079
13053
  });
13080
13054
  }
13081
13055
  }), (() => {
13082
- const _el$ = _tmpl$26();
13083
- const _ref$ = transitionsContainerRef;
13056
+ var _el$ = _tmpl$26();
13057
+ var _ref$ = transitionsContainerRef;
13084
13058
  typeof _ref$ === "function" ? use(_ref$, _el$) : transitionsContainerRef = _el$;
13085
13059
  insert(_el$, createComponent(TransitionGroup, {
13086
13060
  name: "tsqd-panel-transition",
@@ -13110,7 +13084,7 @@ var init_Devtools = __esm({
13110
13084
  return !isOpen();
13111
13085
  },
13112
13086
  get children() {
13113
- const _el$2 = _tmpl$25(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
13087
+ var _el$2 = _tmpl$25(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
13114
13088
  insert(_el$3, createComponent(TanstackLogo, {}));
13115
13089
  _el$4.$$click = () => props.setLocalStore("open", "true");
13116
13090
  insert(_el$4, createComponent(TanstackLogo, {}));
@@ -13193,7 +13167,7 @@ var init_Devtools = __esm({
13193
13167
  });
13194
13168
  });
13195
13169
  return (() => {
13196
- const _el$5 = _tmpl$26();
13170
+ var _el$5 = _tmpl$26();
13197
13171
  _el$5.style.setProperty("--tsqd-font-size", "16px");
13198
13172
  _el$5.style.setProperty("max-height", "100vh");
13199
13173
  _el$5.style.setProperty("height", "100vh");
@@ -13318,8 +13292,8 @@ var init_Devtools = __esm({
13318
13292
  `;
13319
13293
  };
13320
13294
  return (() => {
13321
- const _el$6 = _tmpl$33(), _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling;
13322
- const _ref$2 = panelRef;
13295
+ var _el$6 = _tmpl$33(), _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling;
13296
+ var _ref$2 = panelRef;
13323
13297
  typeof _ref$2 === "function" ? use(_ref$2, _el$6) : panelRef = _el$6;
13324
13298
  _el$7.$$mousedown = handleDragStart;
13325
13299
  _el$8.$$click = () => props.setLocalStore("open", "false");
@@ -13333,23 +13307,23 @@ var init_Devtools = __esm({
13333
13307
  }
13334
13308
  }), null);
13335
13309
  createRenderEffect((_p$) => {
13336
- const _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
13310
+ var _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
13337
13311
  [css`
13338
13312
  min-width: min-content;
13339
13313
  `]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
13340
13314
  }, "tsqd-main-panel"), _v$2 = position() === "bottom" || position() === "top" ? `${props.localStore.height || DEFAULT_HEIGHT}px` : "auto", _v$3 = position() === "right" || position() === "left" ? `${props.localStore.width || DEFAULT_WIDTH}px` : "auto", _v$4 = clsx(styles().dragHandle, styles()[`dragHandle-position-${position()}`], "tsqd-drag-handle"), _v$5 = clsx(styles().closeBtn, styles()[`closeBtn-position-${position()}`], "tsqd-minimize-btn");
13341
- _v$ !== _p$._v$ && className(_el$6, _p$._v$ = _v$);
13342
- _v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$6.style.setProperty("height", _v$2) : _el$6.style.removeProperty("height"));
13343
- _v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$6.style.setProperty("width", _v$3) : _el$6.style.removeProperty("width"));
13344
- _v$4 !== _p$._v$4 && className(_el$7, _p$._v$4 = _v$4);
13345
- _v$5 !== _p$._v$5 && className(_el$8, _p$._v$5 = _v$5);
13315
+ _v$ !== _p$.e && className(_el$6, _p$.e = _v$);
13316
+ _v$2 !== _p$.t && ((_p$.t = _v$2) != null ? _el$6.style.setProperty("height", _v$2) : _el$6.style.removeProperty("height"));
13317
+ _v$3 !== _p$.a && ((_p$.a = _v$3) != null ? _el$6.style.setProperty("width", _v$3) : _el$6.style.removeProperty("width"));
13318
+ _v$4 !== _p$.o && className(_el$7, _p$.o = _v$4);
13319
+ _v$5 !== _p$.i && className(_el$8, _p$.i = _v$5);
13346
13320
  return _p$;
13347
13321
  }, {
13348
- _v$: void 0,
13349
- _v$2: void 0,
13350
- _v$3: void 0,
13351
- _v$4: void 0,
13352
- _v$5: void 0
13322
+ e: void 0,
13323
+ t: void 0,
13324
+ a: void 0,
13325
+ o: void 0,
13326
+ i: void 0
13353
13327
  });
13354
13328
  return _el$6;
13355
13329
  })();
@@ -13410,8 +13384,8 @@ var init_Devtools = __esm({
13410
13384
  el.style.setProperty("--tsqd-font-size", variable);
13411
13385
  };
13412
13386
  return [(() => {
13413
- const _el$9 = _tmpl$212(), _el$10 = _el$9.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.firstChild, _el$13 = _el$12.firstChild, _el$14 = _el$13.nextSibling, _el$15 = _el$14.firstChild, _el$16 = _el$10.nextSibling, _el$17 = _el$16.firstChild, _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild, _el$20 = _el$18.nextSibling, _el$23 = _el$20.nextSibling, _el$26 = _el$17.nextSibling, _el$27 = _el$26.firstChild, _el$28 = _el$27.nextSibling;
13414
- const _ref$3 = containerRef;
13387
+ var _el$9 = _tmpl$212(), _el$10 = _el$9.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.firstChild, _el$13 = _el$12.firstChild, _el$14 = _el$13.nextSibling, _el$15 = _el$14.firstChild, _el$16 = _el$10.nextSibling, _el$17 = _el$16.firstChild, _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild, _el$20 = _el$18.nextSibling, _el$23 = _el$20.nextSibling, _el$26 = _el$17.nextSibling, _el$27 = _el$26.firstChild, _el$28 = _el$27.nextSibling;
13388
+ var _ref$3 = containerRef;
13415
13389
  typeof _ref$3 === "function" ? use(_ref$3, _el$9) : containerRef = _el$9;
13416
13390
  _el$12.$$click = () => {
13417
13391
  if (!pip().pipWindow) {
@@ -13491,12 +13465,12 @@ var init_Devtools = __esm({
13491
13465
  return selectedView() === "queries";
13492
13466
  },
13493
13467
  get children() {
13494
- const _el$21 = _tmpl$43();
13468
+ var _el$21 = _tmpl$43();
13495
13469
  _el$21.addEventListener("change", (e2) => {
13496
13470
  props.setLocalStore("sort", e2.currentTarget.value);
13497
13471
  });
13498
13472
  insert(_el$21, () => Object.keys(sortFns).map((key) => (() => {
13499
- const _el$44 = _tmpl$223(); _el$44.firstChild;
13473
+ var _el$44 = _tmpl$223(); _el$44.firstChild;
13500
13474
  _el$44.value = key;
13501
13475
  insert(_el$44, key, null);
13502
13476
  return _el$44;
@@ -13510,12 +13484,12 @@ var init_Devtools = __esm({
13510
13484
  return selectedView() === "mutations";
13511
13485
  },
13512
13486
  get children() {
13513
- const _el$22 = _tmpl$53();
13487
+ var _el$22 = _tmpl$53();
13514
13488
  _el$22.addEventListener("change", (e2) => {
13515
13489
  props.setLocalStore("mutationSort", e2.currentTarget.value);
13516
13490
  });
13517
13491
  insert(_el$22, () => Object.keys(mutationSortFns).map((key) => (() => {
13518
- const _el$46 = _tmpl$223(); _el$46.firstChild;
13492
+ var _el$46 = _tmpl$223(); _el$46.firstChild;
13519
13493
  _el$46.value = key;
13520
13494
  insert(_el$46, key, null);
13521
13495
  return _el$46;
@@ -13566,7 +13540,7 @@ var init_Devtools = __esm({
13566
13540
  }
13567
13541
  };
13568
13542
  insert(_el$28, (() => {
13569
- const _c$ = createMemo(() => !!offline());
13543
+ var _c$ = createMemo(() => !!offline());
13570
13544
  return () => _c$() ? createComponent(Offline, {}) : createComponent(Wifi, {});
13571
13545
  })());
13572
13546
  insert(_el$26, createComponent(Show, {
@@ -13574,7 +13548,7 @@ var init_Devtools = __esm({
13574
13548
  return !pip().pipWindow;
13575
13549
  },
13576
13550
  get children() {
13577
- const _el$29 = _tmpl$83();
13551
+ var _el$29 = _tmpl$83();
13578
13552
  _el$29.$$click = () => {
13579
13553
  pip().requestPipWindow(Number(window.innerWidth), Number(props.localStore.height ?? 500));
13580
13554
  };
@@ -13605,7 +13579,7 @@ var init_Devtools = __esm({
13605
13579
  },
13606
13580
  get children() {
13607
13581
  return [(() => {
13608
- const _el$30 = _tmpl$93();
13582
+ var _el$30 = _tmpl$93();
13609
13583
  createRenderEffect(() => className(_el$30, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
13610
13584
  return _el$30;
13611
13585
  })(), createComponent(dropdown_menu_exports.Sub, {
@@ -13755,7 +13729,7 @@ var init_Devtools = __esm({
13755
13729
  return selectedView() === "queries";
13756
13730
  },
13757
13731
  get children() {
13758
- const _el$40 = _tmpl$192(), _el$41 = _el$40.firstChild;
13732
+ var _el$40 = _tmpl$192(), _el$41 = _el$40.firstChild;
13759
13733
  insert(_el$41, createComponent(Key, {
13760
13734
  by: (q) => q.queryHash,
13761
13735
  get each() {
@@ -13776,7 +13750,7 @@ var init_Devtools = __esm({
13776
13750
  return selectedView() === "mutations";
13777
13751
  },
13778
13752
  get children() {
13779
- const _el$42 = _tmpl$202(), _el$43 = _el$42.firstChild;
13753
+ var _el$42 = _tmpl$202(), _el$43 = _el$42.firstChild;
13780
13754
  insert(_el$43, createComponent(Key, {
13781
13755
  by: (m) => m.mutationId,
13782
13756
  get each() {
@@ -13793,55 +13767,55 @@ var init_Devtools = __esm({
13793
13767
  }
13794
13768
  }), null);
13795
13769
  createRenderEffect((_p$) => {
13796
- const _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && css`
13770
+ var _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && css`
13797
13771
  height: 50%;
13798
13772
  max-height: 50%;
13799
13773
  `, panelWidth() < secondBreakpoint && !(selectedQueryHash() || selectedMutationId()) && css`
13800
13774
  height: 100%;
13801
13775
  max-height: 100%;
13802
13776
  `, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = styles().logoAndToggleContainer, _v$9 = clsx(styles().logo, "tsqd-text-logo-container"), _v$10 = clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack"), _v$11 = clsx(styles().queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$12 = clsx(styles().row, "tsqd-filters-actions-container"), _v$13 = clsx(styles().filtersContainer, "tsqd-filters-container"), _v$14 = clsx(styles().filterInput, "tsqd-query-filter-textfield-container"), _v$15 = clsx("tsqd-query-filter-textfield"), _v$16 = clsx(styles().filterSelect, "tsqd-query-filter-sort-container"), _v$17 = `Sort order ${(selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1 ? "descending" : "ascending"}`, _v$18 = (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1, _v$19 = clsx(styles().actionsContainer, "tsqd-actions-container"), _v$20 = clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$21 = `Clear ${selectedView()} cache`, _v$22 = clsx(styles().actionsBtn, offline() && styles().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$23 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$24 = offline(), _v$25 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`;
13803
- _v$6 !== _p$._v$6 && className(_el$9, _p$._v$6 = _v$6);
13804
- _v$7 !== _p$._v$7 && className(_el$10, _p$._v$7 = _v$7);
13805
- _v$8 !== _p$._v$8 && className(_el$11, _p$._v$8 = _v$8);
13806
- _v$9 !== _p$._v$9 && className(_el$12, _p$._v$9 = _v$9);
13807
- _v$10 !== _p$._v$10 && className(_el$13, _p$._v$10 = _v$10);
13808
- _v$11 !== _p$._v$11 && className(_el$14, _p$._v$11 = _v$11);
13809
- _v$12 !== _p$._v$12 && className(_el$16, _p$._v$12 = _v$12);
13810
- _v$13 !== _p$._v$13 && className(_el$17, _p$._v$13 = _v$13);
13811
- _v$14 !== _p$._v$14 && className(_el$18, _p$._v$14 = _v$14);
13812
- _v$15 !== _p$._v$15 && className(_el$19, _p$._v$15 = _v$15);
13813
- _v$16 !== _p$._v$16 && className(_el$20, _p$._v$16 = _v$16);
13814
- _v$17 !== _p$._v$17 && setAttribute(_el$23, "aria-label", _p$._v$17 = _v$17);
13815
- _v$18 !== _p$._v$18 && setAttribute(_el$23, "aria-pressed", _p$._v$18 = _v$18);
13816
- _v$19 !== _p$._v$19 && className(_el$26, _p$._v$19 = _v$19);
13817
- _v$20 !== _p$._v$20 && className(_el$27, _p$._v$20 = _v$20);
13818
- _v$21 !== _p$._v$21 && setAttribute(_el$27, "title", _p$._v$21 = _v$21);
13819
- _v$22 !== _p$._v$22 && className(_el$28, _p$._v$22 = _v$22);
13820
- _v$23 !== _p$._v$23 && setAttribute(_el$28, "aria-label", _p$._v$23 = _v$23);
13821
- _v$24 !== _p$._v$24 && setAttribute(_el$28, "aria-pressed", _p$._v$24 = _v$24);
13822
- _v$25 !== _p$._v$25 && setAttribute(_el$28, "title", _p$._v$25 = _v$25);
13777
+ _v$6 !== _p$.e && className(_el$9, _p$.e = _v$6);
13778
+ _v$7 !== _p$.t && className(_el$10, _p$.t = _v$7);
13779
+ _v$8 !== _p$.a && className(_el$11, _p$.a = _v$8);
13780
+ _v$9 !== _p$.o && className(_el$12, _p$.o = _v$9);
13781
+ _v$10 !== _p$.i && className(_el$13, _p$.i = _v$10);
13782
+ _v$11 !== _p$.n && className(_el$14, _p$.n = _v$11);
13783
+ _v$12 !== _p$.s && className(_el$16, _p$.s = _v$12);
13784
+ _v$13 !== _p$.h && className(_el$17, _p$.h = _v$13);
13785
+ _v$14 !== _p$.r && className(_el$18, _p$.r = _v$14);
13786
+ _v$15 !== _p$.d && className(_el$19, _p$.d = _v$15);
13787
+ _v$16 !== _p$.l && className(_el$20, _p$.l = _v$16);
13788
+ _v$17 !== _p$.u && setAttribute(_el$23, "aria-label", _p$.u = _v$17);
13789
+ _v$18 !== _p$.c && setAttribute(_el$23, "aria-pressed", _p$.c = _v$18);
13790
+ _v$19 !== _p$.w && className(_el$26, _p$.w = _v$19);
13791
+ _v$20 !== _p$.m && className(_el$27, _p$.m = _v$20);
13792
+ _v$21 !== _p$.f && setAttribute(_el$27, "title", _p$.f = _v$21);
13793
+ _v$22 !== _p$.y && className(_el$28, _p$.y = _v$22);
13794
+ _v$23 !== _p$.g && setAttribute(_el$28, "aria-label", _p$.g = _v$23);
13795
+ _v$24 !== _p$.p && setAttribute(_el$28, "aria-pressed", _p$.p = _v$24);
13796
+ _v$25 !== _p$.b && setAttribute(_el$28, "title", _p$.b = _v$25);
13823
13797
  return _p$;
13824
13798
  }, {
13825
- _v$6: void 0,
13826
- _v$7: void 0,
13827
- _v$8: void 0,
13828
- _v$9: void 0,
13829
- _v$10: void 0,
13830
- _v$11: void 0,
13831
- _v$12: void 0,
13832
- _v$13: void 0,
13833
- _v$14: void 0,
13834
- _v$15: void 0,
13835
- _v$16: void 0,
13836
- _v$17: void 0,
13837
- _v$18: void 0,
13838
- _v$19: void 0,
13839
- _v$20: void 0,
13840
- _v$21: void 0,
13841
- _v$22: void 0,
13842
- _v$23: void 0,
13843
- _v$24: void 0,
13844
- _v$25: void 0
13799
+ e: void 0,
13800
+ t: void 0,
13801
+ a: void 0,
13802
+ o: void 0,
13803
+ i: void 0,
13804
+ n: void 0,
13805
+ s: void 0,
13806
+ h: void 0,
13807
+ r: void 0,
13808
+ d: void 0,
13809
+ l: void 0,
13810
+ u: void 0,
13811
+ c: void 0,
13812
+ w: void 0,
13813
+ m: void 0,
13814
+ f: void 0,
13815
+ y: void 0,
13816
+ g: void 0,
13817
+ p: void 0,
13818
+ b: void 0
13845
13819
  });
13846
13820
  createRenderEffect(() => _el$19.value = selectedView() === "queries" ? props.localStore.filter || "" : props.localStore.mutationFilter || "");
13847
13821
  return _el$9;
@@ -13908,7 +13882,7 @@ var init_Devtools = __esm({
13908
13882
  return queryState();
13909
13883
  },
13910
13884
  get children() {
13911
- const _el$48 = _tmpl$242(), _el$49 = _el$48.firstChild, _el$50 = _el$49.nextSibling;
13885
+ var _el$48 = _tmpl$242(), _el$49 = _el$48.firstChild, _el$50 = _el$49.nextSibling;
13912
13886
  _el$48.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
13913
13887
  insert(_el$49, observers);
13914
13888
  insert(_el$50, () => props.query.queryHash);
@@ -13921,15 +13895,15 @@ var init_Devtools = __esm({
13921
13895
  }
13922
13896
  }), null);
13923
13897
  createRenderEffect((_p$) => {
13924
- const _v$26 = clsx(styles().queryRow, selectedQueryHash() === props.query.queryHash && styles().selectedQueryRow, "tsqd-query-row"), _v$27 = `Query key ${props.query.queryHash}`, _v$28 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
13925
- _v$26 !== _p$._v$26 && className(_el$48, _p$._v$26 = _v$26);
13926
- _v$27 !== _p$._v$27 && setAttribute(_el$48, "aria-label", _p$._v$27 = _v$27);
13927
- _v$28 !== _p$._v$28 && className(_el$49, _p$._v$28 = _v$28);
13898
+ var _v$26 = clsx(styles().queryRow, selectedQueryHash() === props.query.queryHash && styles().selectedQueryRow, "tsqd-query-row"), _v$27 = `Query key ${props.query.queryHash}`, _v$28 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
13899
+ _v$26 !== _p$.e && className(_el$48, _p$.e = _v$26);
13900
+ _v$27 !== _p$.t && setAttribute(_el$48, "aria-label", _p$.t = _v$27);
13901
+ _v$28 !== _p$.a && className(_el$49, _p$.a = _v$28);
13928
13902
  return _p$;
13929
13903
  }, {
13930
- _v$26: void 0,
13931
- _v$27: void 0,
13932
- _v$28: void 0
13904
+ e: void 0,
13905
+ t: void 0,
13906
+ a: void 0
13933
13907
  });
13934
13908
  return _el$48;
13935
13909
  }
@@ -13988,7 +13962,7 @@ var init_Devtools = __esm({
13988
13962
  return mutationState();
13989
13963
  },
13990
13964
  get children() {
13991
- const _el$52 = _tmpl$242(), _el$53 = _el$52.firstChild, _el$54 = _el$53.nextSibling;
13965
+ var _el$52 = _tmpl$242(), _el$53 = _el$52.firstChild, _el$54 = _el$53.nextSibling;
13992
13966
  _el$52.$$click = () => {
13993
13967
  setSelectedMutationId(props.mutation.mutationId === selectedMutationId() ? null : props.mutation.mutationId);
13994
13968
  };
@@ -14034,15 +14008,15 @@ var init_Devtools = __esm({
14034
14008
  }), null);
14035
14009
  insert(_el$54, () => new Date(props.mutation.state.submittedAt).toLocaleString(), null);
14036
14010
  createRenderEffect((_p$) => {
14037
- const _v$29 = clsx(styles().queryRow, selectedMutationId() === props.mutation.mutationId && styles().selectedQueryRow, "tsqd-query-row"), _v$30 = `Mutation submitted at ${new Date(props.mutation.state.submittedAt).toLocaleString()}`, _v$31 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
14038
- _v$29 !== _p$._v$29 && className(_el$52, _p$._v$29 = _v$29);
14039
- _v$30 !== _p$._v$30 && setAttribute(_el$52, "aria-label", _p$._v$30 = _v$30);
14040
- _v$31 !== _p$._v$31 && className(_el$53, _p$._v$31 = _v$31);
14011
+ var _v$29 = clsx(styles().queryRow, selectedMutationId() === props.mutation.mutationId && styles().selectedQueryRow, "tsqd-query-row"), _v$30 = `Mutation submitted at ${new Date(props.mutation.state.submittedAt).toLocaleString()}`, _v$31 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
14012
+ _v$29 !== _p$.e && className(_el$52, _p$.e = _v$29);
14013
+ _v$30 !== _p$.t && setAttribute(_el$52, "aria-label", _p$.t = _v$30);
14014
+ _v$31 !== _p$.a && className(_el$53, _p$.a = _v$31);
14041
14015
  return _p$;
14042
14016
  }, {
14043
- _v$29: void 0,
14044
- _v$30: void 0,
14045
- _v$31: void 0
14017
+ e: void 0,
14018
+ t: void 0,
14019
+ a: void 0
14046
14020
  });
14047
14021
  return _el$52;
14048
14022
  }
@@ -14062,7 +14036,7 @@ var init_Devtools = __esm({
14062
14036
  return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
14063
14037
  });
14064
14038
  return (() => {
14065
- const _el$55 = _tmpl$26();
14039
+ var _el$55 = _tmpl$26();
14066
14040
  insert(_el$55, createComponent(QueryStatus, {
14067
14041
  label: "Fresh",
14068
14042
  color: "green",
@@ -14127,7 +14101,7 @@ var init_Devtools = __esm({
14127
14101
  return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
14128
14102
  });
14129
14103
  return (() => {
14130
- const _el$56 = _tmpl$26();
14104
+ var _el$56 = _tmpl$26();
14131
14105
  insert(_el$56, createComponent(QueryStatus, {
14132
14106
  label: "Paused",
14133
14107
  color: "purple",
@@ -14188,8 +14162,8 @@ var init_Devtools = __esm({
14188
14162
  return true;
14189
14163
  });
14190
14164
  return (() => {
14191
- const _el$57 = _tmpl$27(), _el$59 = _el$57.firstChild, _el$61 = _el$59.nextSibling;
14192
- const _ref$4 = tagRef;
14165
+ var _el$57 = _tmpl$27(), _el$59 = _el$57.firstChild, _el$61 = _el$59.nextSibling;
14166
+ var _ref$4 = tagRef;
14193
14167
  typeof _ref$4 === "function" ? use(_ref$4, _el$57) : tagRef = _el$57;
14194
14168
  _el$57.addEventListener("mouseleave", () => {
14195
14169
  setMouseOver(false);
@@ -14218,7 +14192,7 @@ var init_Devtools = __esm({
14218
14192
  return createMemo(() => !!!showLabel())() && (mouseOver() || focused());
14219
14193
  },
14220
14194
  get children() {
14221
- const _el$58 = _tmpl$252();
14195
+ var _el$58 = _tmpl$252();
14222
14196
  insert(_el$58, () => props.label);
14223
14197
  createRenderEffect(() => className(_el$58, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
14224
14198
  return _el$58;
@@ -14229,7 +14203,7 @@ var init_Devtools = __esm({
14229
14203
  return showLabel();
14230
14204
  },
14231
14205
  get children() {
14232
- const _el$60 = _tmpl$262();
14206
+ var _el$60 = _tmpl$262();
14233
14207
  insert(_el$60, () => props.label);
14234
14208
  createRenderEffect(() => className(_el$60, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
14235
14209
  return _el$60;
@@ -14237,7 +14211,7 @@ var init_Devtools = __esm({
14237
14211
  }), _el$61);
14238
14212
  insert(_el$61, () => props.count);
14239
14213
  createRenderEffect((_p$) => {
14240
- const _v$32 = clsx(css`
14214
+ var _v$32 = clsx(css`
14241
14215
  width: ${tokens.size[1.5]};
14242
14216
  height: ${tokens.size[1.5]};
14243
14217
  border-radius: ${tokens.border.radius.full};
@@ -14246,12 +14220,12 @@ var init_Devtools = __esm({
14246
14220
  background-color: ${t2(colors[props.color][100], colors[props.color][900])};
14247
14221
  color: ${t2(colors[props.color][700], colors[props.color][300])};
14248
14222
  `, "tsqd-query-status-tag-count");
14249
- _v$32 !== _p$._v$32 && className(_el$59, _p$._v$32 = _v$32);
14250
- _v$33 !== _p$._v$33 && className(_el$61, _p$._v$33 = _v$33);
14223
+ _v$32 !== _p$.e && className(_el$59, _p$.e = _v$32);
14224
+ _v$33 !== _p$.t && className(_el$61, _p$.t = _v$33);
14251
14225
  return _p$;
14252
14226
  }, {
14253
- _v$32: void 0,
14254
- _v$33: void 0
14227
+ e: void 0,
14228
+ t: void 0
14255
14229
  });
14256
14230
  return _el$57;
14257
14231
  })();
@@ -14350,7 +14324,7 @@ var init_Devtools = __esm({
14350
14324
  return createMemo(() => !!activeQuery())() && activeQueryState();
14351
14325
  },
14352
14326
  get children() {
14353
- const _el$62 = _tmpl$30(), _el$63 = _el$62.firstChild, _el$64 = _el$63.nextSibling, _el$65 = _el$64.firstChild, _el$66 = _el$65.firstChild, _el$67 = _el$66.firstChild, _el$68 = _el$66.nextSibling, _el$69 = _el$65.nextSibling, _el$70 = _el$69.firstChild, _el$71 = _el$70.nextSibling, _el$72 = _el$69.nextSibling, _el$73 = _el$72.firstChild, _el$74 = _el$73.nextSibling, _el$75 = _el$64.nextSibling, _el$76 = _el$75.nextSibling, _el$77 = _el$76.firstChild, _el$78 = _el$77.firstChild, _el$79 = _el$77.nextSibling, _el$80 = _el$79.firstChild, _el$81 = _el$79.nextSibling, _el$82 = _el$81.firstChild, _el$83 = _el$81.nextSibling, _el$84 = _el$83.firstChild, _el$85 = _el$83.nextSibling, _el$86 = _el$85.firstChild, _el$87 = _el$86.nextSibling, _el$96 = _el$76.nextSibling, _el$97 = _el$96.nextSibling, _el$98 = _el$97.nextSibling, _el$99 = _el$98.nextSibling;
14327
+ var _el$62 = _tmpl$30(), _el$63 = _el$62.firstChild, _el$64 = _el$63.nextSibling, _el$65 = _el$64.firstChild, _el$66 = _el$65.firstChild, _el$67 = _el$66.firstChild, _el$68 = _el$66.nextSibling, _el$69 = _el$65.nextSibling, _el$70 = _el$69.firstChild, _el$71 = _el$70.nextSibling, _el$72 = _el$69.nextSibling, _el$73 = _el$72.firstChild, _el$74 = _el$73.nextSibling, _el$75 = _el$64.nextSibling, _el$76 = _el$75.nextSibling, _el$77 = _el$76.firstChild, _el$78 = _el$77.firstChild, _el$79 = _el$77.nextSibling, _el$80 = _el$79.firstChild, _el$81 = _el$79.nextSibling, _el$82 = _el$81.firstChild, _el$83 = _el$81.nextSibling, _el$84 = _el$83.firstChild, _el$85 = _el$83.nextSibling, _el$86 = _el$85.firstChild, _el$87 = _el$86.nextSibling, _el$96 = _el$76.nextSibling, _el$97 = _el$96.nextSibling, _el$98 = _el$97.nextSibling, _el$99 = _el$98.nextSibling;
14354
14328
  insert(_el$67, () => displayValue(activeQuery().queryKey, true));
14355
14329
  insert(_el$68, statusLabel);
14356
14330
  insert(_el$71, observerCount);
@@ -14395,7 +14369,7 @@ var init_Devtools = __esm({
14395
14369
  return errorTypes().length === 0 || queryStatus() === "error";
14396
14370
  },
14397
14371
  get children() {
14398
- const _el$88 = _tmpl$28(), _el$89 = _el$88.firstChild, _el$90 = _el$89.nextSibling;
14372
+ var _el$88 = _tmpl$28(), _el$89 = _el$88.firstChild, _el$90 = _el$89.nextSibling;
14399
14373
  _el$88.$$click = () => {
14400
14374
  if (!activeQuery().state.error) {
14401
14375
  triggerError();
@@ -14405,19 +14379,19 @@ var init_Devtools = __esm({
14405
14379
  };
14406
14380
  insert(_el$88, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$90);
14407
14381
  createRenderEffect((_p$) => {
14408
- const _v$34 = clsx(css`
14382
+ var _v$34 = clsx(css`
14409
14383
  color: ${t2(colors.red[500], colors.red[400])};
14410
14384
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$35 = queryStatus() === "pending", _v$36 = css`
14411
14385
  background-color: ${t2(colors.red[500], colors.red[400])};
14412
14386
  `;
14413
- _v$34 !== _p$._v$34 && className(_el$88, _p$._v$34 = _v$34);
14414
- _v$35 !== _p$._v$35 && (_el$88.disabled = _p$._v$35 = _v$35);
14415
- _v$36 !== _p$._v$36 && className(_el$89, _p$._v$36 = _v$36);
14387
+ _v$34 !== _p$.e && className(_el$88, _p$.e = _v$34);
14388
+ _v$35 !== _p$.t && (_el$88.disabled = _p$.t = _v$35);
14389
+ _v$36 !== _p$.a && className(_el$89, _p$.a = _v$36);
14416
14390
  return _p$;
14417
14391
  }, {
14418
- _v$34: void 0,
14419
- _v$35: void 0,
14420
- _v$36: void 0
14392
+ e: void 0,
14393
+ t: void 0,
14394
+ a: void 0
14421
14395
  });
14422
14396
  return _el$88;
14423
14397
  }
@@ -14427,7 +14401,7 @@ var init_Devtools = __esm({
14427
14401
  return !(errorTypes().length === 0 || queryStatus() === "error");
14428
14402
  },
14429
14403
  get children() {
14430
- const _el$91 = _tmpl$29(), _el$92 = _el$91.firstChild, _el$93 = _el$92.nextSibling, _el$94 = _el$93.nextSibling; _el$94.firstChild;
14404
+ var _el$91 = _tmpl$29(), _el$92 = _el$91.firstChild, _el$93 = _el$92.nextSibling, _el$94 = _el$93.nextSibling; _el$94.firstChild;
14431
14405
  _el$94.addEventListener("change", (e2) => {
14432
14406
  const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
14433
14407
  triggerError(errorType);
@@ -14437,7 +14411,7 @@ var init_Devtools = __esm({
14437
14411
  return errorTypes();
14438
14412
  },
14439
14413
  children: (errorType) => (() => {
14440
- const _el$100 = _tmpl$31();
14414
+ var _el$100 = _tmpl$31();
14441
14415
  insert(_el$100, () => errorType.name);
14442
14416
  createRenderEffect(() => _el$100.value = errorType.name);
14443
14417
  return _el$100;
@@ -14445,17 +14419,17 @@ var init_Devtools = __esm({
14445
14419
  }), null);
14446
14420
  insert(_el$91, createComponent(ChevronDown, {}), null);
14447
14421
  createRenderEffect((_p$) => {
14448
- const _v$37 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$38 = css`
14422
+ var _v$37 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$38 = css`
14449
14423
  background-color: ${tokens.colors.red[400]};
14450
14424
  `, _v$39 = queryStatus() === "pending";
14451
- _v$37 !== _p$._v$37 && className(_el$91, _p$._v$37 = _v$37);
14452
- _v$38 !== _p$._v$38 && className(_el$92, _p$._v$38 = _v$38);
14453
- _v$39 !== _p$._v$39 && (_el$94.disabled = _p$._v$39 = _v$39);
14425
+ _v$37 !== _p$.e && className(_el$91, _p$.e = _v$37);
14426
+ _v$38 !== _p$.t && className(_el$92, _p$.t = _v$38);
14427
+ _v$39 !== _p$.a && (_el$94.disabled = _p$.a = _v$39);
14454
14428
  return _p$;
14455
14429
  }, {
14456
- _v$37: void 0,
14457
- _v$38: void 0,
14458
- _v$39: void 0
14430
+ e: void 0,
14431
+ t: void 0,
14432
+ a: void 0
14459
14433
  });
14460
14434
  return _el$91;
14461
14435
  }
@@ -14479,7 +14453,7 @@ var init_Devtools = __esm({
14479
14453
  }
14480
14454
  }));
14481
14455
  createRenderEffect((_p$) => {
14482
- const _v$40 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$41 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$42 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$43 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$44 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$45 = clsx(styles().actionsBody, "tsqd-query-details-actions-container"), _v$46 = clsx(css`
14456
+ var _v$40 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$41 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$42 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$43 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$44 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$45 = clsx(styles().actionsBody, "tsqd-query-details-actions-container"), _v$46 = clsx(css`
14483
14457
  color: ${t2(colors.blue[600], colors.blue[400])};
14484
14458
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$47 = statusLabel() === "fetching", _v$48 = css`
14485
14459
  background-color: ${t2(colors.blue[600], colors.blue[400])};
@@ -14500,58 +14474,58 @@ var init_Devtools = __esm({
14500
14474
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$59 = restoringLoading(), _v$60 = css`
14501
14475
  background-color: ${t2(colors.cyan[500], colors.cyan[400])};
14502
14476
  `, _v$61 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$62 = tokens.size[2], _v$63 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$64 = tokens.size[2];
14503
- _v$40 !== _p$._v$40 && className(_el$62, _p$._v$40 = _v$40);
14504
- _v$41 !== _p$._v$41 && className(_el$63, _p$._v$41 = _v$41);
14505
- _v$42 !== _p$._v$42 && className(_el$64, _p$._v$42 = _v$42);
14506
- _v$43 !== _p$._v$43 && className(_el$68, _p$._v$43 = _v$43);
14507
- _v$44 !== _p$._v$44 && className(_el$75, _p$._v$44 = _v$44);
14508
- _v$45 !== _p$._v$45 && className(_el$76, _p$._v$45 = _v$45);
14509
- _v$46 !== _p$._v$46 && className(_el$77, _p$._v$46 = _v$46);
14510
- _v$47 !== _p$._v$47 && (_el$77.disabled = _p$._v$47 = _v$47);
14511
- _v$48 !== _p$._v$48 && className(_el$78, _p$._v$48 = _v$48);
14512
- _v$49 !== _p$._v$49 && className(_el$79, _p$._v$49 = _v$49);
14513
- _v$50 !== _p$._v$50 && (_el$79.disabled = _p$._v$50 = _v$50);
14514
- _v$51 !== _p$._v$51 && className(_el$80, _p$._v$51 = _v$51);
14515
- _v$52 !== _p$._v$52 && className(_el$81, _p$._v$52 = _v$52);
14516
- _v$53 !== _p$._v$53 && (_el$81.disabled = _p$._v$53 = _v$53);
14517
- _v$54 !== _p$._v$54 && className(_el$82, _p$._v$54 = _v$54);
14518
- _v$55 !== _p$._v$55 && className(_el$83, _p$._v$55 = _v$55);
14519
- _v$56 !== _p$._v$56 && (_el$83.disabled = _p$._v$56 = _v$56);
14520
- _v$57 !== _p$._v$57 && className(_el$84, _p$._v$57 = _v$57);
14521
- _v$58 !== _p$._v$58 && className(_el$85, _p$._v$58 = _v$58);
14522
- _v$59 !== _p$._v$59 && (_el$85.disabled = _p$._v$59 = _v$59);
14523
- _v$60 !== _p$._v$60 && className(_el$86, _p$._v$60 = _v$60);
14524
- _v$61 !== _p$._v$61 && className(_el$96, _p$._v$61 = _v$61);
14525
- _v$62 !== _p$._v$62 && ((_p$._v$62 = _v$62) != null ? _el$97.style.setProperty("padding", _v$62) : _el$97.style.removeProperty("padding"));
14526
- _v$63 !== _p$._v$63 && className(_el$98, _p$._v$63 = _v$63);
14527
- _v$64 !== _p$._v$64 && ((_p$._v$64 = _v$64) != null ? _el$99.style.setProperty("padding", _v$64) : _el$99.style.removeProperty("padding"));
14477
+ _v$40 !== _p$.e && className(_el$62, _p$.e = _v$40);
14478
+ _v$41 !== _p$.t && className(_el$63, _p$.t = _v$41);
14479
+ _v$42 !== _p$.a && className(_el$64, _p$.a = _v$42);
14480
+ _v$43 !== _p$.o && className(_el$68, _p$.o = _v$43);
14481
+ _v$44 !== _p$.i && className(_el$75, _p$.i = _v$44);
14482
+ _v$45 !== _p$.n && className(_el$76, _p$.n = _v$45);
14483
+ _v$46 !== _p$.s && className(_el$77, _p$.s = _v$46);
14484
+ _v$47 !== _p$.h && (_el$77.disabled = _p$.h = _v$47);
14485
+ _v$48 !== _p$.r && className(_el$78, _p$.r = _v$48);
14486
+ _v$49 !== _p$.d && className(_el$79, _p$.d = _v$49);
14487
+ _v$50 !== _p$.l && (_el$79.disabled = _p$.l = _v$50);
14488
+ _v$51 !== _p$.u && className(_el$80, _p$.u = _v$51);
14489
+ _v$52 !== _p$.c && className(_el$81, _p$.c = _v$52);
14490
+ _v$53 !== _p$.w && (_el$81.disabled = _p$.w = _v$53);
14491
+ _v$54 !== _p$.m && className(_el$82, _p$.m = _v$54);
14492
+ _v$55 !== _p$.f && className(_el$83, _p$.f = _v$55);
14493
+ _v$56 !== _p$.y && (_el$83.disabled = _p$.y = _v$56);
14494
+ _v$57 !== _p$.g && className(_el$84, _p$.g = _v$57);
14495
+ _v$58 !== _p$.p && className(_el$85, _p$.p = _v$58);
14496
+ _v$59 !== _p$.b && (_el$85.disabled = _p$.b = _v$59);
14497
+ _v$60 !== _p$.T && className(_el$86, _p$.T = _v$60);
14498
+ _v$61 !== _p$.A && className(_el$96, _p$.A = _v$61);
14499
+ _v$62 !== _p$.O && ((_p$.O = _v$62) != null ? _el$97.style.setProperty("padding", _v$62) : _el$97.style.removeProperty("padding"));
14500
+ _v$63 !== _p$.I && className(_el$98, _p$.I = _v$63);
14501
+ _v$64 !== _p$.S && ((_p$.S = _v$64) != null ? _el$99.style.setProperty("padding", _v$64) : _el$99.style.removeProperty("padding"));
14528
14502
  return _p$;
14529
14503
  }, {
14530
- _v$40: void 0,
14531
- _v$41: void 0,
14532
- _v$42: void 0,
14533
- _v$43: void 0,
14534
- _v$44: void 0,
14535
- _v$45: void 0,
14536
- _v$46: void 0,
14537
- _v$47: void 0,
14538
- _v$48: void 0,
14539
- _v$49: void 0,
14540
- _v$50: void 0,
14541
- _v$51: void 0,
14542
- _v$52: void 0,
14543
- _v$53: void 0,
14544
- _v$54: void 0,
14545
- _v$55: void 0,
14546
- _v$56: void 0,
14547
- _v$57: void 0,
14548
- _v$58: void 0,
14549
- _v$59: void 0,
14550
- _v$60: void 0,
14551
- _v$61: void 0,
14552
- _v$62: void 0,
14553
- _v$63: void 0,
14554
- _v$64: void 0
14504
+ e: void 0,
14505
+ t: void 0,
14506
+ a: void 0,
14507
+ o: void 0,
14508
+ i: void 0,
14509
+ n: void 0,
14510
+ s: void 0,
14511
+ h: void 0,
14512
+ r: void 0,
14513
+ d: void 0,
14514
+ l: void 0,
14515
+ u: void 0,
14516
+ c: void 0,
14517
+ w: void 0,
14518
+ m: void 0,
14519
+ f: void 0,
14520
+ y: void 0,
14521
+ g: void 0,
14522
+ p: void 0,
14523
+ b: void 0,
14524
+ T: void 0,
14525
+ A: void 0,
14526
+ O: void 0,
14527
+ I: void 0,
14528
+ S: void 0
14555
14529
  });
14556
14530
  return _el$62;
14557
14531
  }
@@ -14607,7 +14581,7 @@ var init_Devtools = __esm({
14607
14581
  return activeMutation();
14608
14582
  },
14609
14583
  get children() {
14610
- const _el$101 = _tmpl$322(), _el$102 = _el$101.firstChild, _el$103 = _el$102.nextSibling, _el$104 = _el$103.firstChild, _el$105 = _el$104.firstChild, _el$106 = _el$105.firstChild, _el$107 = _el$105.nextSibling, _el$108 = _el$104.nextSibling, _el$109 = _el$108.firstChild, _el$110 = _el$109.nextSibling, _el$111 = _el$103.nextSibling, _el$112 = _el$111.nextSibling, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling, _el$115 = _el$114.nextSibling, _el$116 = _el$115.nextSibling, _el$117 = _el$116.nextSibling, _el$118 = _el$117.nextSibling;
14584
+ var _el$101 = _tmpl$322(), _el$102 = _el$101.firstChild, _el$103 = _el$102.nextSibling, _el$104 = _el$103.firstChild, _el$105 = _el$104.firstChild, _el$106 = _el$105.firstChild, _el$107 = _el$105.nextSibling, _el$108 = _el$104.nextSibling, _el$109 = _el$108.firstChild, _el$110 = _el$109.nextSibling, _el$111 = _el$103.nextSibling, _el$112 = _el$111.nextSibling, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling, _el$115 = _el$114.nextSibling, _el$116 = _el$115.nextSibling, _el$117 = _el$116.nextSibling, _el$118 = _el$117.nextSibling;
14611
14585
  insert(_el$106, createComponent(Show, {
14612
14586
  get when() {
14613
14587
  return activeMutation().options.mutationKey;
@@ -14661,33 +14635,33 @@ var init_Devtools = __esm({
14661
14635
  }
14662
14636
  }));
14663
14637
  createRenderEffect((_p$) => {
14664
- const _v$65 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$66 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$67 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$68 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$69 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$70 = tokens.size[2], _v$71 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$72 = tokens.size[2], _v$73 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$74 = tokens.size[2], _v$75 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$76 = tokens.size[2];
14665
- _v$65 !== _p$._v$65 && className(_el$101, _p$._v$65 = _v$65);
14666
- _v$66 !== _p$._v$66 && className(_el$102, _p$._v$66 = _v$66);
14667
- _v$67 !== _p$._v$67 && className(_el$103, _p$._v$67 = _v$67);
14668
- _v$68 !== _p$._v$68 && className(_el$107, _p$._v$68 = _v$68);
14669
- _v$69 !== _p$._v$69 && className(_el$111, _p$._v$69 = _v$69);
14670
- _v$70 !== _p$._v$70 && ((_p$._v$70 = _v$70) != null ? _el$112.style.setProperty("padding", _v$70) : _el$112.style.removeProperty("padding"));
14671
- _v$71 !== _p$._v$71 && className(_el$113, _p$._v$71 = _v$71);
14672
- _v$72 !== _p$._v$72 && ((_p$._v$72 = _v$72) != null ? _el$114.style.setProperty("padding", _v$72) : _el$114.style.removeProperty("padding"));
14673
- _v$73 !== _p$._v$73 && className(_el$115, _p$._v$73 = _v$73);
14674
- _v$74 !== _p$._v$74 && ((_p$._v$74 = _v$74) != null ? _el$116.style.setProperty("padding", _v$74) : _el$116.style.removeProperty("padding"));
14675
- _v$75 !== _p$._v$75 && className(_el$117, _p$._v$75 = _v$75);
14676
- _v$76 !== _p$._v$76 && ((_p$._v$76 = _v$76) != null ? _el$118.style.setProperty("padding", _v$76) : _el$118.style.removeProperty("padding"));
14638
+ var _v$65 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$66 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$67 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$68 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$69 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$70 = tokens.size[2], _v$71 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$72 = tokens.size[2], _v$73 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$74 = tokens.size[2], _v$75 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$76 = tokens.size[2];
14639
+ _v$65 !== _p$.e && className(_el$101, _p$.e = _v$65);
14640
+ _v$66 !== _p$.t && className(_el$102, _p$.t = _v$66);
14641
+ _v$67 !== _p$.a && className(_el$103, _p$.a = _v$67);
14642
+ _v$68 !== _p$.o && className(_el$107, _p$.o = _v$68);
14643
+ _v$69 !== _p$.i && className(_el$111, _p$.i = _v$69);
14644
+ _v$70 !== _p$.n && ((_p$.n = _v$70) != null ? _el$112.style.setProperty("padding", _v$70) : _el$112.style.removeProperty("padding"));
14645
+ _v$71 !== _p$.s && className(_el$113, _p$.s = _v$71);
14646
+ _v$72 !== _p$.h && ((_p$.h = _v$72) != null ? _el$114.style.setProperty("padding", _v$72) : _el$114.style.removeProperty("padding"));
14647
+ _v$73 !== _p$.r && className(_el$115, _p$.r = _v$73);
14648
+ _v$74 !== _p$.d && ((_p$.d = _v$74) != null ? _el$116.style.setProperty("padding", _v$74) : _el$116.style.removeProperty("padding"));
14649
+ _v$75 !== _p$.l && className(_el$117, _p$.l = _v$75);
14650
+ _v$76 !== _p$.u && ((_p$.u = _v$76) != null ? _el$118.style.setProperty("padding", _v$76) : _el$118.style.removeProperty("padding"));
14677
14651
  return _p$;
14678
14652
  }, {
14679
- _v$65: void 0,
14680
- _v$66: void 0,
14681
- _v$67: void 0,
14682
- _v$68: void 0,
14683
- _v$69: void 0,
14684
- _v$70: void 0,
14685
- _v$71: void 0,
14686
- _v$72: void 0,
14687
- _v$73: void 0,
14688
- _v$74: void 0,
14689
- _v$75: void 0,
14690
- _v$76: void 0
14653
+ e: void 0,
14654
+ t: void 0,
14655
+ a: void 0,
14656
+ o: void 0,
14657
+ i: void 0,
14658
+ n: void 0,
14659
+ s: void 0,
14660
+ h: void 0,
14661
+ r: void 0,
14662
+ d: void 0,
14663
+ l: void 0,
14664
+ u: void 0
14691
14665
  });
14692
14666
  return _el$101;
14693
14667
  }