@qwik.dev/core 2.0.0-beta.14 → 2.0.0-beta.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,3 @@
1
- /**
2
- * @license
3
- * @qwik.dev/core/optimizer 2.0.0-beta.14-dev+1e7496d
4
- * Copyright QwikDev. All Rights Reserved.
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
7
- */
8
1
  function jt(e = {}) {
9
2
  function n(f) {
10
3
  if (typeof f != "string")
@@ -80,7 +73,7 @@ function jt(e = {}) {
80
73
  for (; w < p.length && p.charCodeAt(w) === 47; ++w)
81
74
  ;
82
75
  const I = p.length - w, N = v < I ? v : I;
83
- let U = -1, T = 0;
76
+ let $ = -1, T = 0;
84
77
  for (; T <= N; ++T) {
85
78
  if (T === N) {
86
79
  if (I > N) {
@@ -88,18 +81,18 @@ function jt(e = {}) {
88
81
  return p.slice(w + T + 1);
89
82
  if (T === 0)
90
83
  return p.slice(w + T);
91
- } else v > N && (l.charCodeAt(E + T) === 47 ? U = T : T === 0 && (U = 0));
84
+ } else v > N && (l.charCodeAt(E + T) === 47 ? $ = T : T === 0 && ($ = 0));
92
85
  break;
93
86
  }
94
- const Q = l.charCodeAt(E + T), R = p.charCodeAt(w + T);
95
- if (Q !== R)
87
+ const Q = l.charCodeAt(E + T), B = p.charCodeAt(w + T);
88
+ if (Q !== B)
96
89
  break;
97
- Q === 47 && (U = T);
90
+ Q === 47 && ($ = T);
98
91
  }
99
92
  let F = "";
100
- for (T = E + U + 1; T <= s; ++T)
93
+ for (T = E + $ + 1; T <= s; ++T)
101
94
  (T === s || l.charCodeAt(T) === 47) && (F.length === 0 ? F += ".." : F += "/..");
102
- return F.length > 0 ? F + p.slice(w + U) : (w += U, p.charCodeAt(w) === 47 && ++w, p.slice(w));
95
+ return F.length > 0 ? F + p.slice(w + $) : (w += $, p.charCodeAt(w) === 47 && ++w, p.slice(w));
103
96
  }, t = function(l) {
104
97
  if (n(l), l.length === 0)
105
98
  return ".";
@@ -182,16 +175,16 @@ function jt(e = {}) {
182
175
  let E = l.charCodeAt(0), s;
183
176
  const v = E === 47;
184
177
  v ? (p.root = "/", s = 1) : s = 0;
185
- let w = -1, S = 0, I = -1, N = !0, U = l.length - 1, T = 0;
186
- for (; U >= s; --U) {
187
- if (E = l.charCodeAt(U), E === 47) {
178
+ let w = -1, S = 0, I = -1, N = !0, $ = l.length - 1, T = 0;
179
+ for (; $ >= s; --$) {
180
+ if (E = l.charCodeAt($), E === 47) {
188
181
  if (!N) {
189
- S = U + 1;
182
+ S = $ + 1;
190
183
  break;
191
184
  }
192
185
  continue;
193
186
  }
194
- I === -1 && (N = !1, I = U + 1), E === 46 ? w === -1 ? w = U : T !== 1 && (T = 1) : w !== -1 && (T = -1);
187
+ I === -1 && (N = !1, I = $ + 1), E === 46 ? w === -1 ? w = $ : T !== 1 && (T = 1) : w !== -1 && (T = -1);
195
188
  }
196
189
  return w === -1 || I === -1 || // We saw a non-dot character immediately before the dot
197
190
  T === 0 || // The (right-most) trimmed path component is exactly '..'
@@ -229,7 +222,7 @@ function jt(e = {}) {
229
222
  }
230
223
  };
231
224
  }
232
- const Ut = {
225
+ const $t = {
233
226
  darwin: {
234
227
  arm64: [
235
228
  {
@@ -269,7 +262,7 @@ const Ut = {
269
262
  ]
270
263
  }
271
264
  };
272
- async function $t() {
265
+ async function Ut() {
273
266
  const e = Tt(), n = {
274
267
  dynamicImport: (i) => {
275
268
  throw new Error(
@@ -293,10 +286,10 @@ async function $t() {
293
286
  }
294
287
  return n;
295
288
  }
296
- async function Rt(e) {
289
+ async function Bt(e) {
297
290
  const n = Tt();
298
291
  if (n === "node" || n === "bun") {
299
- const i = Ut[process.platform];
292
+ const i = $t[process.platform];
300
293
  if (i) {
301
294
  const r = i[process.arch];
302
295
  if (r)
@@ -321,15 +314,15 @@ async function Rt(e) {
321
314
  return await i.default(), i;
322
315
  }
323
316
  }
324
- const Tt = () => typeof Deno < "u" ? "deno" : typeof Bun < "u" ? "bun" : typeof process < "u" && typeof global < "u" && process.versions && process.versions.node ? "node" : typeof self < "u" && typeof location < "u" && typeof navigator < "u" && typeof fetch == "function" && typeof WorkerGlobalScope == "function" && typeof self.importScripts == "function" ? "webworker" : typeof window < "u" && typeof document < "u" && typeof location < "u" && typeof navigator < "u" && typeof Window == "function" && typeof fetch == "function" ? "browsermain" : "unknown", Bt = async (e = {}) => {
325
- const n = e?.sys || await $t(), i = e?.binding || await Rt(n);
317
+ const Tt = () => typeof Deno < "u" ? "deno" : typeof Bun < "u" ? "bun" : typeof process < "u" && typeof global < "u" && process.versions && process.versions.node ? "node" : typeof self < "u" && typeof location < "u" && typeof navigator < "u" && typeof fetch == "function" && typeof WorkerGlobalScope == "function" && typeof self.importScripts == "function" ? "webworker" : typeof window < "u" && typeof document < "u" && typeof location < "u" && typeof navigator < "u" && typeof Window == "function" && typeof fetch == "function" ? "browsermain" : "unknown", At = async (e = {}) => {
318
+ const n = e?.sys || await Ut(), i = e?.binding || await Bt(n);
326
319
  return {
327
320
  async transformModules(o) {
328
321
  return Ft(i, o);
329
322
  },
330
323
  sys: n
331
324
  };
332
- }, Ft = (e, n) => e.transform_modules(At(n)), At = (e) => {
325
+ }, Ft = (e, n) => e.transform_modules(Rt(n)), Rt = (e) => {
333
326
  const n = {
334
327
  minify: "simplify",
335
328
  sourceMaps: !1,
@@ -350,8 +343,8 @@ const Tt = () => typeof Deno < "u" ? "deno" : typeof Bun < "u" ? "bun" : typeof
350
343
  return Object.entries(e).forEach(([i, r]) => {
351
344
  r != null && (n[i] = r);
352
345
  }), n.entryStrategy = e.entryStrategy?.type ?? "smart", n.manualChunks = e.entryStrategy?.manual ?? void 0, n;
353
- }, Ar = {
354
- qwik: "2.0.0-beta.14-dev+1e7496d"
346
+ }, Rr = {
347
+ qwik: "2.0.0-beta.16-dev+a83ccf3"
355
348
  }, zt = (e, n = 0) => {
356
349
  for (let i = 0; i < e.length; i++) {
357
350
  const r = e.charCodeAt(i);
@@ -457,7 +450,7 @@ const Ze = [
457
450
  (e) => e.toLowerCase()
458
451
  );
459
452
  function Gt(e) {
460
- return Object.keys(e.bundles).sort($e);
453
+ return Object.keys(e.bundles).sort(Ue);
461
454
  }
462
455
  function Kt(e) {
463
456
  const n = Wt(e), i = {}, r = {};
@@ -467,15 +460,15 @@ function Kt(e) {
467
460
  for (const c of o) {
468
461
  h[c] = e.bundles[c];
469
462
  const a = e.bundles[c];
470
- Array.isArray(a.imports) && a.imports.sort($e), Array.isArray(a.dynamicImports) && a.dynamicImports.sort($e);
463
+ Array.isArray(a.imports) && a.imports.sort(Ue), Array.isArray(a.dynamicImports) && a.dynamicImports.sort(Ue);
471
464
  const u = [];
472
465
  for (const t of n)
473
466
  c === r[t] && u.push(t);
474
- u.length > 0 && (u.sort($e), a.symbols = u);
467
+ u.length > 0 && (u.sort(Ue), a.symbols = u);
475
468
  }
476
469
  return e.symbols = i, e.mapping = r, e.bundles = h, e;
477
470
  }
478
- function $e(e, n) {
471
+ function Ue(e, n) {
479
472
  return e = e.toLocaleLowerCase(), n = n.toLocaleLowerCase(), e < n ? -1 : e > n ? 1 : 0;
480
473
  }
481
474
  function tt(e) {
@@ -898,7 +891,7 @@ function ln(e, n = 0, i) {
898
891
  function cn(e) {
899
892
  return e === "win32";
900
893
  }
901
- function Ue(e) {
894
+ function $e(e) {
902
895
  const [n, i] = e.split("?"), r = i || "";
903
896
  return {
904
897
  originalId: e,
@@ -970,7 +963,7 @@ function Dt(e = {}) {
970
963
  };
971
964
  let b, x;
972
965
  const m = async () => {
973
- if (!c && (c = await Bt(e), b = hn(c.sys), c.sys.env !== "browsermain" && c.sys.env !== "webworker"))
966
+ if (!c && (c = await At(e), b = hn(c.sys), c.sys.env !== "browsermain" && c.sys.env !== "webworker"))
974
967
  try {
975
968
  x === void 0 && (x = await c.sys.dynamicImport("node:fs"));
976
969
  } catch {
@@ -993,20 +986,20 @@ function Dt(e = {}) {
993
986
  else if (!t.scope && x) {
994
987
  let j = "";
995
988
  try {
996
- let $ = t.rootDir;
997
- for (; j = M.resolve($, "package.json"), !await x.promises.stat(j).catch(() => !1); ) {
998
- const L = M.resolve($, "..");
999
- if (L === $)
989
+ let U = t.rootDir;
990
+ for (; j = M.resolve(U, "package.json"), !await x.promises.stat(j).catch(() => !1); ) {
991
+ const L = M.resolve(U, "..");
992
+ if (L === U)
1000
993
  break;
1001
- $ = L, j = "";
994
+ U = L, j = "";
1002
995
  }
1003
996
  if (j) {
1004
997
  const L = await x.promises.readFile(j, "utf-8"), O = JSON.parse(L);
1005
998
  typeof O.name == "string" && (t.scope = O.name);
1006
999
  }
1007
- } catch ($) {
1000
+ } catch (U) {
1008
1001
  console.warn(
1009
- `could not read ${j || "package.json"} to determine package name, ignoring. (${$})`
1002
+ `could not read ${j || "package.json"} to determine package name, ignoring. (${U})`
1010
1003
  );
1011
1004
  }
1012
1005
  }
@@ -1015,8 +1008,8 @@ function Dt(e = {}) {
1015
1008
  for (const j of y.experimental ?? [])
1016
1009
  Pt[j] ? (t.experimental || (t.experimental = {}))[j] = !0 : console.error(`Qwik plugin: Unknown experimental feature: ${j}`);
1017
1010
  }
1018
- const B = { ...t };
1019
- return t.input || (t.input = y.input), t.input && typeof t.input == "string" && (t.input = [t.input]), B;
1011
+ const A = { ...t };
1012
+ return t.input || (t.input = y.input), t.input && typeof t.input == "string" && (t.input = [t.input]), A;
1020
1013
  };
1021
1014
  let E = !1;
1022
1015
  const s = async (_) => {
@@ -1053,14 +1046,14 @@ function Dt(e = {}) {
1053
1046
  });
1054
1047
  }
1055
1048
  }, I = (_) => f ? !!_?.ssr : t.target === "ssr" || t.target === "test";
1056
- let N = 0, U = !1;
1049
+ let N = 0, $ = !1;
1057
1050
  const T = async (_, y, C, M) => {
1058
1051
  if (ee(y))
1059
1052
  return;
1060
1053
  const D = f && /^(.*)\?editor(:(\d+)(:\d+)?)?$/.exec(y);
1061
1054
  if (D) {
1062
- if (!U) {
1063
- U = !0, setTimeout(() => U = !1, 500);
1055
+ if (!$) {
1056
+ $ = !0, setTimeout(() => $ = !1, 500);
1064
1057
  const [, K, H] = D, de = await _.resolve(K, C);
1065
1058
  if (de) {
1066
1059
  const ae = f.moduleGraph.getModuleById(de.id)?.file;
@@ -1078,14 +1071,14 @@ function Dt(e = {}) {
1078
1071
  }
1079
1072
  return { id: "\0editor" };
1080
1073
  }
1081
- const P = N++, B = I(M);
1082
- q(`resolveId(${P})`, `begin ${y} | ${B ? "server" : "client"} | ${C}`);
1083
- const j = C && Ue(C);
1074
+ const P = N++, A = I(M);
1075
+ q(`resolveId(${P})`, `begin ${y} | ${A ? "server" : "client"} | ${C}`);
1076
+ const j = C && $e(C);
1084
1077
  if (C = j && X(j.pathId), y.startsWith(".") && j) {
1085
1078
  const K = d(), H = K.dirname(j.pathId);
1086
1079
  H && (y = K.resolve(H, y));
1087
1080
  }
1088
- const $ = Ue(y), L = X($.pathId);
1081
+ const U = $e(y), L = X(U.pathId);
1089
1082
  let O;
1090
1083
  if (
1091
1084
  /**
@@ -1095,7 +1088,7 @@ function Dt(e = {}) {
1095
1088
  h.get(L)
1096
1089
  )
1097
1090
  q(`resolveId(${P}) Resolved already known ${L}`), O = {
1098
- id: L + $.query,
1091
+ id: L + U.query,
1099
1092
  moduleSideEffects: !1
1100
1093
  };
1101
1094
  else if (
@@ -1115,7 +1108,7 @@ function Dt(e = {}) {
1115
1108
  id: re,
1116
1109
  moduleSideEffects: !1
1117
1110
  };
1118
- else if (!f && !B && L.endsWith(We)) {
1111
+ else if (!f && !A && L.endsWith(We)) {
1119
1112
  q(`resolveId(${P})`, "Resolved", We);
1120
1113
  const K = await _.resolve(We, C, {
1121
1114
  skipSelf: !0
@@ -1132,7 +1125,7 @@ function Dt(e = {}) {
1132
1125
  moduleSideEffects: !1
1133
1126
  };
1134
1127
  else {
1135
- if (!B && w && y.endsWith("@qwik.dev/core")) {
1128
+ if (!A && w && y.endsWith("@qwik.dev/core")) {
1136
1129
  w = !1;
1137
1130
  const H = await _.resolve("@qwik.dev/core/handlers.mjs", C, {
1138
1131
  skipSelf: !0
@@ -1187,36 +1180,36 @@ function Dt(e = {}) {
1187
1180
  moduleSideEffects: !1,
1188
1181
  code: "export * from '@qwik.dev/core';"
1189
1182
  };
1190
- const P = Ue(y);
1183
+ const P = $e(y);
1191
1184
  y = X(P.pathId);
1192
- const B = D ? o : r;
1193
- if (f && !B.has(y)) {
1194
- const $ = h.get(y);
1195
- if ($) {
1196
- const L = f.moduleGraph.getModuleById($);
1185
+ const A = D ? o : r;
1186
+ if (f && !A.has(y)) {
1187
+ const U = h.get(y);
1188
+ if (U) {
1189
+ const L = f.moduleGraph.getModuleById(U);
1197
1190
  if (L) {
1198
- if (q(`load(${M})`, "transforming QRL parent", $), await f.transformRequest(L.url), !B.has(y))
1199
- return q(`load(${M})`, `QRL segment ${y} not found in ${$}`), null;
1191
+ if (q(`load(${M})`, "transforming QRL parent", U), await f.transformRequest(L.url), !A.has(y))
1192
+ return q(`load(${M})`, `QRL segment ${y} not found in ${U}`), null;
1200
1193
  } else
1201
1194
  console.error(`load(${M})`, `${L} does not exist!`);
1202
1195
  }
1203
1196
  }
1204
- const j = B.get(y);
1197
+ const j = A.get(y);
1205
1198
  if (j) {
1206
1199
  q(`load(${M})`, "Found", y);
1207
- const { code: $, map: L, segment: O } = j[0];
1208
- return { code: $, map: L, meta: { segment: O } };
1200
+ const { code: U, map: L, segment: O } = j[0];
1201
+ return { code: U, map: L, meta: { segment: O } };
1209
1202
  }
1210
1203
  return q(`load(${M})`, "Not a QRL or virtual module", y), null;
1211
1204
  };
1212
- let R = 0;
1205
+ let B = 0;
1213
1206
  const V = async function(_, y, C, M = {}) {
1214
1207
  if (ee(C))
1215
1208
  return;
1216
- const D = R++, P = I(M), B = P ? o : r;
1217
- if (B.has(C))
1209
+ const D = B++, P = I(M), A = P ? o : r;
1210
+ if (A.has(C))
1218
1211
  return;
1219
- const j = k(), $ = d(), { pathId: L } = Ue(C), O = $.parse(L), K = O.dir, H = O.base;
1212
+ const j = k(), U = d(), { pathId: L } = $e(C), O = U.parse(L), K = O.dir, H = O.base;
1220
1213
  if (O.ext.toLowerCase() in gn || Nt.test(L)) {
1221
1214
  const ae = t.target === "client" || t.target === "ssr";
1222
1215
  q(
@@ -1226,7 +1219,7 @@ function Dt(e = {}) {
1226
1219
  const te = t.target === "lib" ? "lib" : t.buildMode === "development" ? "dev" : "prod";
1227
1220
  te !== "lib" && (y = y.replaceAll(/__EXPERIMENTAL__\.(\w+)/g, (Z, le) => t.experimental?.[le] ? "true" : "false"));
1228
1221
  let Y = H;
1229
- t.srcDir && (Y = $.relative(t.srcDir, L)), Y = X(Y);
1222
+ t.srcDir && (Y = U.relative(t.srcDir, L)), Y = X(Y);
1230
1223
  const Le = t.srcDir ? t.srcDir : X(K), Oe = t.entryStrategy;
1231
1224
  let Ve;
1232
1225
  f && (Ve = f.moduleGraph.getModuleById(L)?.url);
@@ -1254,8 +1247,8 @@ function Dt(e = {}) {
1254
1247
  const ze = /* @__PURE__ */ new Set();
1255
1248
  for (const Z of fe.modules)
1256
1249
  if (Z !== je) {
1257
- const le = X($.join(Le, Z.path));
1258
- q(`transform(${D})`, `segment ${le}`, Z.segment.displayName), h.set(le, C), B.set(le, [Z, C]), ze.add(le), t.target === "client" && !f && _.emitFile({
1250
+ const le = X(U.join(Le, Z.path));
1251
+ q(`transform(${D})`, `segment ${le}`, Z.segment.displayName), h.set(le, C), A.set(le, [Z, C]), ze.add(le), t.target === "client" && !f && _.emitFile({
1259
1252
  id: le,
1260
1253
  type: "chunk",
1261
1254
  preserveSignature: "allow-extension"
@@ -1276,11 +1269,11 @@ function Dt(e = {}) {
1276
1269
  addInjection: (M) => y.push(M)
1277
1270
  };
1278
1271
  return C.generateManifest = async (M) => {
1279
- const P = k().sys.path, B = P.resolve(t.rootDir, t.outDir, "build"), j = (O) => P.relative(B, P.resolve(t.rootDir, t.outDir, O));
1272
+ const P = k().sys.path, A = P.resolve(t.rootDir, t.outDir, "build"), j = (O) => P.relative(A, P.resolve(t.rootDir, t.outDir, O));
1280
1273
  C.canonPath = j;
1281
- const $ = Array.from(i.values()).flatMap((O) => O.modules).map((O) => O.segment).filter((O) => !!O), L = Yt(
1274
+ const U = Array.from(i.values()).flatMap((O) => O.modules).map((O) => O.segment).filter((O) => !!O), L = Yt(
1282
1275
  P,
1283
- $,
1276
+ U,
1284
1277
  y,
1285
1278
  _,
1286
1279
  t,
@@ -1355,8 +1348,8 @@ export const manifest = ${C ? JSON.stringify(C) : "globalThis.__QWIK_MANIFEST__"
1355
1348
  if (C) {
1356
1349
  q("handleHotUpdate()", `invalidate ${C}`), i.delete(C);
1357
1350
  for (const M of [r, o])
1358
- for (const [D, [P, B]] of M)
1359
- if (B === C) {
1351
+ for (const [D, [P, A]] of M)
1352
+ if (A === C) {
1360
1353
  q("handleHotUpdate()", `invalidate ${C} segment ${D}`), M.delete(D);
1361
1354
  const j = _.server.moduleGraph.getModuleById(D);
1362
1355
  j && _.server.moduleGraph.invalidateModule(j);
@@ -1399,14 +1392,14 @@ export const manifest = ${C ? JSON.stringify(C) : "globalThis.__QWIK_MANIFEST__"
1399
1392
  env: v.sys.env,
1400
1393
  os: v.sys.os
1401
1394
  }, v.sys.env === "node" && (P.platform.node = process.versions.node);
1402
- const B = en(P, C), j = _.emitFile({
1395
+ const A = en(P, C), j = _.emitFile({
1403
1396
  type: "asset",
1404
1397
  name: "bundle-graph.json",
1405
- source: JSON.stringify(B)
1406
- }), $ = _.getFileName(j);
1407
- P.bundleGraphAsset = $, P.assets[$] = {
1398
+ source: JSON.stringify(A)
1399
+ }), U = _.getFileName(j);
1400
+ P.bundleGraphAsset = U, P.assets[U] = {
1408
1401
  name: "bundle-graph.json",
1409
- size: B.length
1402
+ size: A.length
1410
1403
  };
1411
1404
  const L = JSON.stringify(P, null, " ");
1412
1405
  _.emitFile({
@@ -1449,7 +1442,7 @@ const gn = {
1449
1442
  ".jsx": !0,
1450
1443
  ".ts": !0,
1451
1444
  ".tsx": !0
1452
- }, Nt = /\.qwik\.[mc]?js$/, Re = "@qwik.dev/core", Be = "@qwik.dev/core/internal", ne = "@qwik.dev/core/build", Je = "@qwik.dev/core/jsx-runtime", Ye = "@qwik.dev/core/jsx-dev-runtime", He = "@qwik.dev/core/server", re = "@qwik-client-manifest", We = "@qwik.dev/core/preloader", pe = "@qwik-handlers", yn = "src", lt = "dist", bn = "server", vn = "lib", Ge = "q-manifest.json";
1445
+ }, Nt = /\.qwik\.[mc]?js$/, Be = "@qwik.dev/core", Ae = "@qwik.dev/core/internal", ne = "@qwik.dev/core/build", Je = "@qwik.dev/core/jsx-runtime", Ye = "@qwik.dev/core/jsx-dev-runtime", He = "@qwik.dev/core/server", re = "@qwik-client-manifest", We = "@qwik.dev/core/preloader", pe = "@qwik-handlers", yn = "src", lt = "dist", bn = "server", vn = "lib", Ge = "q-manifest.json";
1453
1446
  async function wn(e, n, i) {
1454
1447
  if (e.env === "browsermain" || e.env === "webworker")
1455
1448
  return;
@@ -1583,7 +1576,7 @@ function Fe(e, n) {
1583
1576
  stack: ""
1584
1577
  });
1585
1578
  }
1586
- function A(e) {
1579
+ function R(e) {
1587
1580
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1588
1581
  }
1589
1582
  var he = {}, Ke = {}, ct;
@@ -1661,7 +1654,7 @@ function Sn() {
1661
1654
  }, he;
1662
1655
  }
1663
1656
  var kn = Sn();
1664
- const En = /* @__PURE__ */ A(kn);
1657
+ const En = /* @__PURE__ */ R(kn);
1665
1658
  var me = {}, ge = {}, ut;
1666
1659
  function Mt() {
1667
1660
  if (ut) return ge;
@@ -1712,7 +1705,7 @@ function _n() {
1712
1705
  }, me;
1713
1706
  }
1714
1707
  var Tn = _n();
1715
- const Cn = /* @__PURE__ */ A(Tn);
1708
+ const Cn = /* @__PURE__ */ R(Tn);
1716
1709
  var ye = {}, pt;
1717
1710
  function Pn() {
1718
1711
  if (pt) return ye;
@@ -1727,7 +1720,7 @@ function Pn() {
1727
1720
  }, ye;
1728
1721
  }
1729
1722
  var Dn = Pn();
1730
- const Nn = /* @__PURE__ */ A(Dn);
1723
+ const Nn = /* @__PURE__ */ R(Dn);
1731
1724
  var be = {}, ht;
1732
1725
  function Mn() {
1733
1726
  if (ht) return be;
@@ -1742,7 +1735,7 @@ function Mn() {
1742
1735
  }, be;
1743
1736
  }
1744
1737
  var qn = Mn();
1745
- const Ln = /* @__PURE__ */ A(qn);
1738
+ const Ln = /* @__PURE__ */ R(qn);
1746
1739
  var ve = {}, mt;
1747
1740
  function On() {
1748
1741
  if (mt) return ve;
@@ -1819,11 +1812,11 @@ function On() {
1819
1812
  }, ve;
1820
1813
  }
1821
1814
  var jn = On();
1822
- const Un = /* @__PURE__ */ A(jn);
1823
- var $n = Mt();
1824
- const Rn = /* @__PURE__ */ A($n);
1815
+ const $n = /* @__PURE__ */ R(jn);
1816
+ var Un = Mt();
1817
+ const Bn = /* @__PURE__ */ R(Un);
1825
1818
  var we = {}, gt;
1826
- function Bn() {
1819
+ function An() {
1827
1820
  if (gt) return we;
1828
1821
  gt = 1, Object.defineProperty(we, "__esModule", { value: !0 }), we.J2C = void 0;
1829
1822
  const e = z();
@@ -1836,8 +1829,8 @@ function Bn() {
1836
1829
  })
1837
1830
  }, we;
1838
1831
  }
1839
- var Fn = Bn();
1840
- const An = /* @__PURE__ */ A(Fn);
1832
+ var Fn = An();
1833
+ const Rn = /* @__PURE__ */ R(Fn);
1841
1834
  var xe = {}, yt;
1842
1835
  function zn() {
1843
1836
  if (yt) return xe;
@@ -1862,7 +1855,7 @@ function zn() {
1862
1855
  }, xe;
1863
1856
  }
1864
1857
  var Hn = zn();
1865
- const Wn = /* @__PURE__ */ A(Hn);
1858
+ const Wn = /* @__PURE__ */ R(Hn);
1866
1859
  var Ie = {}, bt;
1867
1860
  function Gn() {
1868
1861
  if (bt) return Ie;
@@ -1923,7 +1916,7 @@ function Gn() {
1923
1916
  }, Ie;
1924
1917
  }
1925
1918
  var Kn = Gn();
1926
- const Qn = /* @__PURE__ */ A(Kn);
1919
+ const Qn = /* @__PURE__ */ R(Kn);
1927
1920
  var Se = {}, vt;
1928
1921
  function Jn() {
1929
1922
  if (vt) return Se;
@@ -1945,7 +1938,7 @@ function Jn() {
1945
1938
  }, Se;
1946
1939
  }
1947
1940
  var Yn = Jn();
1948
- const Xn = /* @__PURE__ */ A(Yn);
1941
+ const Xn = /* @__PURE__ */ R(Yn);
1949
1942
  var ke = {}, wt;
1950
1943
  function Vn() {
1951
1944
  if (wt) return ke;
@@ -1975,7 +1968,7 @@ function Vn() {
1975
1968
  }, ke;
1976
1969
  }
1977
1970
  var Zn = Vn();
1978
- const er = /* @__PURE__ */ A(Zn);
1971
+ const er = /* @__PURE__ */ R(Zn);
1979
1972
  var Ee = {}, xt;
1980
1973
  function tr() {
1981
1974
  if (xt) return Ee;
@@ -2033,7 +2026,7 @@ function tr() {
2033
2026
  }, Ee;
2034
2027
  }
2035
2028
  var nr = tr();
2036
- const rr = /* @__PURE__ */ A(nr);
2029
+ const rr = /* @__PURE__ */ R(nr);
2037
2030
  var _e = {}, It;
2038
2031
  function or() {
2039
2032
  if (It) return _e;
@@ -2048,7 +2041,7 @@ function or() {
2048
2041
  }, _e;
2049
2042
  }
2050
2043
  var ir = or();
2051
- const sr = /* @__PURE__ */ A(ir);
2044
+ const sr = /* @__PURE__ */ R(ir);
2052
2045
  var Te = {}, St;
2053
2046
  function ar() {
2054
2047
  if (St) return Te;
@@ -2125,7 +2118,7 @@ function ar() {
2125
2118
  }, Te;
2126
2119
  }
2127
2120
  var lr = ar();
2128
- const cr = /* @__PURE__ */ A(lr);
2121
+ const cr = /* @__PURE__ */ R(lr);
2129
2122
  var Ce = {}, kt;
2130
2123
  function dr() {
2131
2124
  if (kt) return Ce;
@@ -2144,7 +2137,7 @@ function dr() {
2144
2137
  }, Ce;
2145
2138
  }
2146
2139
  var ur = dr();
2147
- const fr = /* @__PURE__ */ A(ur);
2140
+ const fr = /* @__PURE__ */ R(ur);
2148
2141
  var Pe = {}, Et;
2149
2142
  function pr() {
2150
2143
  if (Et) return Pe;
@@ -2191,7 +2184,7 @@ function pr() {
2191
2184
  }, Pe;
2192
2185
  }
2193
2186
  var hr = pr();
2194
- const mr = /* @__PURE__ */ A(hr);
2187
+ const mr = /* @__PURE__ */ R(hr);
2195
2188
  var De = {}, _t;
2196
2189
  function gr() {
2197
2190
  if (_t) return De;
@@ -2228,7 +2221,7 @@ function gr() {
2228
2221
  }, De;
2229
2222
  }
2230
2223
  var yr = gr();
2231
- const br = /* @__PURE__ */ A(yr), vr = {
2224
+ const br = /* @__PURE__ */ R(yr), vr = {
2232
2225
  56: "psd",
2233
2226
  66: "bmp",
2234
2227
  68: "dds",
@@ -2237,7 +2230,7 @@ const br = /* @__PURE__ */ A(yr), vr = {
2237
2230
  105: "icns",
2238
2231
  137: "png",
2239
2232
  255: "jpg"
2240
- }, Ae = {
2233
+ }, Re = {
2241
2234
  webp: mr.WEBP,
2242
2235
  jpg: Qn.JPG,
2243
2236
  png: er.PNG,
@@ -2247,23 +2240,23 @@ const br = /* @__PURE__ */ A(yr), vr = {
2247
2240
  bmp: En.BMP,
2248
2241
  cur: Cn.CUR,
2249
2242
  dds: Nn.DDS,
2250
- icns: Un.ICNS,
2251
- ico: Rn.ICO,
2252
- j2c: An.J2C,
2243
+ icns: $n.ICNS,
2244
+ ico: Bn.ICO,
2245
+ j2c: Rn.J2C,
2253
2246
  jp2: Wn.JP2,
2254
2247
  ktx: Xn.KTX,
2255
2248
  pnm: rr.PNM,
2256
2249
  psd: sr.PSD,
2257
2250
  tga: fr.TGA
2258
- }, wr = Object.keys(Ae);
2251
+ }, wr = Object.keys(Re);
2259
2252
  function xr(e) {
2260
2253
  const n = e[0], i = vr[n];
2261
- return i && Ae[i].validate(e) ? i : wr.find((r) => Ae[r].validate(e));
2254
+ return i && Re[i].validate(e) ? i : wr.find((r) => Re[r].validate(e));
2262
2255
  }
2263
2256
  function Ir(e) {
2264
2257
  const n = xr(e);
2265
2258
  if (typeof n < "u") {
2266
- const i = Ae[n].calculate(e);
2259
+ const i = Re[n].calculate(e);
2267
2260
  if (i !== void 0)
2268
2261
  return i.type = n, i;
2269
2262
  }
@@ -2343,8 +2336,8 @@ const kr = (e, n, i) => async (r, o, h) => {
2343
2336
  const S = [".ts", ".tsx", ".js", ".jsx", ".mdx"].includes(p);
2344
2337
  let I = s.slice(v, w);
2345
2338
  if (m && k && S) {
2346
- const N = new URL(m), U = new URL(k);
2347
- if (N.origin === U.origin) {
2339
+ const N = new URL(m), $ = new URL(k);
2340
+ if (N.origin === $.origin) {
2348
2341
  const T = a.join(n, "public", N.pathname), F = a.join(n, N.pathname);
2349
2342
  let Q;
2350
2343
  if (c.existsSync(T)) {
@@ -2357,13 +2350,13 @@ const kr = (e, n, i) => async (r, o, h) => {
2357
2350
  Q = N.pathname.replace("/src/", "~/");
2358
2351
  else
2359
2352
  return;
2360
- const R = Er(N.pathname), V = `${Q}?jsx`;
2361
- I = I.replace(/^<img/, `<${R}`), I = I.replace(/\bwidth=(({[^}]*})|('[^']*')|("[^"]*"))\s*/, ""), I = I.replace(/\bheight=(({[^}]*})|('[^']*')|("[^"]*"))\s*/, ""), I = I.replace(/\bsrc=(({[^}]*})|('[^']*')|("[^"]*"))\s*/, "");
2353
+ const B = Er(N.pathname), V = `${Q}?jsx`;
2354
+ I = I.replace(/^<img/, `<${B}`), I = I.replace(/\bwidth=(({[^}]*})|('[^']*')|("[^"]*"))\s*/, ""), I = I.replace(/\bheight=(({[^}]*})|('[^']*')|("[^"]*"))\s*/, ""), I = I.replace(/\bsrc=(({[^}]*})|('[^']*')|("[^"]*"))\s*/, "");
2362
2355
  let G = 0;
2363
2356
  if (p === ".mdx" && s.startsWith("---") && (G = s.indexOf("---", 4) + 3, G === -1))
2364
2357
  return;
2365
2358
  const ie = `
2366
- import ${R} from '${V}';`;
2359
+ import ${B} from '${V}';`;
2367
2360
  s = `${s.slice(0, G)}${ie}${s.slice(
2368
2361
  G,
2369
2362
  v
@@ -2385,7 +2378,7 @@ function Er(e) {
2385
2378
  function _r(e) {
2386
2379
  return `${e}`.toLowerCase().replace(new RegExp(/[-_]+/, "g"), " ").replace(new RegExp(/[^\w\s]/, "g"), "").replace(new RegExp(/\s+(.)(\w*)/, "g"), (n, i, r) => `${i.toUpperCase() + r}`).replace(new RegExp(/\w/), (n) => n.toUpperCase());
2387
2380
  }
2388
- const Tr = `"undefined"==typeof window||window.__qwikViteLog||(window.__qwikViteLog=!0,console.debug("%c⭐️ Qwik Dev SSR Mode","background: #0c75d2; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;","App is running in SSR development mode!\\n - Additional JS is loaded by Vite for debugging and live reloading\\n - Rendering performance might not be optimal\\n - Delayed interactivity because prefetching is disabled\\n - Vite dev bundles do not represent production output\\n\\nProduction build can be tested running 'npm run preview'"))`, Cr = 'if("undefined"!=typeof document){const e=()=>{const e="data-qwik-inspector",t=globalThis.__HOTKEYS__;globalThis.__SRC_DIR__;let o=document.querySelector("#qwik-inspector-info-popup");o||(o=document.createElement("div"),o.id="qwik-inspector-info-popup",o["aria-hidden"]="true",document.body.appendChild(o)),o.textContent=`Click-to-Source: ${t.join(" + ")}`,console.debug("%c🔍 Qwik Click-To-Source","background: #564CE0; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;",`Hold-press the \'${t.join(" + ")}\' key${t.length>1?"s":""} and click a component to jump directly to the source code in your IDE!`),window.__qwik_inspector_state={pressedKeys:new Set};const n=document.body,r=document.createElement("div");function i(t){return t&&t instanceof Element?t.closest(`[${e}]`):null}function s(){const e=window.__qwik_inspector_state.hoveredElement;if(e&&d()){const t=e.getBoundingClientRect();r.style.setProperty("height",t.height+"px"),r.style.setProperty("width",t.width+"px"),r.style.setProperty("top",t.top+"px"),r.style.setProperty("left",t.left+"px"),r.style.setProperty("visibility","visible"),n.style.setProperty("cursor","pointer")}else r.style.setProperty("height","0px"),r.style.setProperty("width","0px"),r.style.setProperty("visibility","hidden"),n.style.removeProperty("cursor")}function d(){return function(){const e=Array.from(window.__qwik_inspector_state.pressedKeys).map(e=>e?e.replace(/(Left|Right)$/g,""):void 0);return t.every(t=>e.includes(t))}()}r.id="qwik-inspector-overlay",r.setAttribute("aria-hidden","true"),n.appendChild(r),document.addEventListener("keydown",e=>{window.__qwik_inspector_state.pressedKeys.add(e.code),s()},{capture:!0}),document.addEventListener("keyup",e=>{window.__qwik_inspector_state.pressedKeys.delete(e.code),s()},{capture:!0}),window.addEventListener("blur",()=>{window.__qwik_inspector_state.pressedKeys.clear(),s()},{capture:!0}),document.addEventListener("mouseover",e=>{const t=i(e.target);window.__qwik_inspector_state.hoveredElement=t||void 0,s()},{capture:!0}),document.addEventListener("click",t=>{if(d()){window.__qwik_inspector_state.pressedKeys.clear();const o=i(t.target);if(o){t.preventDefault(),t.stopPropagation();const r=o.getAttribute(e);if("false"!==r){n.style.setProperty("cursor","progress");const e=r.match(/^(.*?)(:\\d+(:\\d+)?)?$/);if(e){const[,t,o]=e;fetch(`${t}?editor${o}`).then(()=>{n.style.removeProperty("cursor")})}}}}},{capture:!0}),document.addEventListener("contextmenu",e=>{if(d()){window.__qwik_inspector_state.pressedKeys.clear();i(e.target)&&e.preventDefault()}},{capture:!0}),window.addEventListener("resize",s),document.addEventListener("scroll",s)};document.addEventListener("DOMContentLoaded",e)}', Pr = `if("undefined"!=typeof HTMLElement){class e extends HTMLElement{get _root(){return this.shadowRoot||this}constructor(){super(),this.state={},this.props||(this.props={}),this.componentProps=["children","error"],this.nodesToDestroy=[],this.pendingUpdate=!1,this.attachShadow({mode:"open"})}destroyAnyNodes(){this.nodesToDestroy.forEach(e=>e.remove()),this.nodesToDestroy=[]}connectedCallback(){this.getAttributeNames().forEach(e=>{const t=e.replace(/-/g,""),o=new RegExp(t,"i");this.componentProps.forEach(t=>{if(o.test(t)){const o=this.getAttribute(e);this.props[t]!==o&&(this.props[t]=o)}})}),this._root.innerHTML='\\n\\n <template data-el="show-errored-host">\\n <div class="error">\\n <template data-el="div-errored-host-2">\\n \\x3c!-- String(props.error) --\\x3e\\n </template>\\n </div>\\n </template>\\n\\n <div class="arrow">👇 Uncaught error happened here 👇\\n <span class="dev-tools">DevTools: Cmd+Alt+I</span>\\n </div>\\n <div class="div">\\n <slot></slot>\\n </div>\\n\\n <style>\\n .error {\\n border-radius: 5px 5px 0px 0;\\n background: black;\\n color: white;\\n font-family: monospace;\\n font-size: 12px;\\n margin: 0;\\n padding: 10px;\\n }\\n .arrow {\\n background: #f47e81;\\n color: black;\\n font-size: 14px;\\n padding: 10px;\\n text-align: center;\\n font-family: sans-serif;\\n }\\n .dev-tools {\\n background: red;\\n padding: 2px 5px;\\n border-radius: 3px;\\n font-weight: 800;\\n }\\n .div {\\n outline: 5px solid red;\\n border-radius: 10px;\\n }\\n </style>',this.pendingUpdate=!0,this.render(),this.onMount(),this.pendingUpdate=!1,this.update()}showContent(e){const t=e.content.cloneNode(!0);Array.from(t.childNodes).forEach(t=>{e?.scope&&(t.scope=e.scope),e?.context&&(t.context=e.context),this.nodesToDestroy.push(t)}),e.after(t)}onMount(){}onUpdate(){}update(){!0!==this.pendingUpdate&&(this.pendingUpdate=!0,this.render(),this.onUpdate(),this.pendingUpdate=!1)}render(){this.destroyAnyNodes(),this.updateBindings()}updateBindings(){this._root.querySelectorAll("[data-el='show-errored-host']").forEach(e=>{this.props.error&&this.showContent(e)}),this._root.querySelectorAll("[data-el='div-errored-host-2']").forEach(e=>{this.renderTextNode(e,String(this.props.error))})}renderTextNode(e,t){const o=document.createTextNode(t);e?.scope&&(o.scope=e.scope),e?.context&&(o.context=e.context),e.after(o),this.nodesToDestroy.push(e.nextSibling)}}customElements.define("errored-host",e),document.addEventListener("qerror",e=>{const t=customElements.get("vite-error-overlay");if(!t)return;const o=new t(e.detail.error);document.body.appendChild(o)})}`, Dr = '[data-qwik-cls]{outline:2px solid red}[data-qwik-cls]:after{position:absolute;font-size:12px;content:"CLS " attr(data-qwik-cls);font-family:monospace;font-weight:700;background:red;color:#fff;margin:-2px;padding:1px;line-height:1;pointer-events:none}#qwik-image-warning-container{position:absolute!important;top:0!important;left:0!important;width:0!important;overflow:visible!important;height:0!important;pointer-events:none!important;contain:size layout style content;z-index:1}', Nr = 'if("undefined"!=typeof document){const e=()=>{class e extends HTMLElement{#e=null;constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.createElement("template").innerHTML=globalThis.__TEMPLATE__);const e=this.shadowRoot.querySelector("dialog");this.shadowRoot.addEventListener("click",async t=>{const o=t.target;"BUTTON"===o.nodeName&&("action-btn"===o.id?this.#e&&(this.#e(),e.close()):"icon"===o.id?e.open?e.close():(e.className=function(e){const{x:t}=e.getBoundingClientRect();let o="right";return t>window.innerWidth-260&&(o="left"),`bottom ${o}`}(o),e.show()):"loc"===o.id&&o.dataset.url&&globalThis.qwikOpenInEditor(o.dataset.url))})}set loc(e){const t=this.shadowRoot.querySelector("#loc");t.textContent=e,globalThis.qwikOpenInEditor&&(t.dataset.url=e)}set header(e){this.shadowRoot.querySelector("#title").textContent=e}set message(e){this.shadowRoot.querySelector("#message").innerHTML=e}set actionFn(e){this.#e=e}set actionName(e){e&&(this.shadowRoot.querySelector(".action-container").innerHTML=`<button id="action-btn" type="button">${e}</button>`)}}customElements.define("image-warning",e);const t=new Map;let o=document.querySelector("#qwik-image-warning-container");o||(o=document.createElement("div"),o.id="qwik-image-warning-container",document.body.appendChild(o));let n=!1;const i=new Map;function r(e){let t=i.get(e);return void 0===t&&(t=async function(e){if(!/^(https?|file|capacitor):/.test(e))return;const t=new URL("/__image_info",location.href);return t.searchParams.set("url",e),fetch(t).then(e=>e.json()).catch(()=>null)}(e),i.set(e,t)),t}function a(e){return e.endsWith("px")}async function s(e){const i=t.get(e);e.isConnected?e.complete&&async function(e){const i=window.scrollX,s=window.scrollY,c=e.getBoundingClientRect(),d=e.currentSrc,l=await r(d);let h=t.get(e);const u=window.innerWidth>500;if(l&&u){let r=!1;const d=e.getAttribute("data-qwik-inspector"),u=c.width*c.height;if(!e.hasAttribute("width")||!e.hasAttribute("height")){n=!0;const t=getComputedStyle(e),o="auto"!==t.getPropertyValue("aspect-ratio").toString(),i=a(t.getPropertyValue("width").toString()),s=a(t.getPropertyValue("height").toString()),c="absolute"===t.getPropertyValue("position").toString();r=u>1e3&&!c&&!o&&(!i||!s)}const g=u<.5*(l.width&&l.height)&&"svg"!==l.type;if(n=!1,r||g){if(h||(h=document.createElement("image-warning"),o.appendChild(h),t.set(e,h)),h.style.top=c.top+s+"px",h.style.left=c.left+i+"px",h.style.width=c.width+"px",h.style.height=c.height+"px",h.info=l,h.loc=d,r){const t=`width="${l.width}" height="${l.height}"`;h.header="Perf: layout shift",h.message=`Image\'s size is unknown until it\'s loaded, <a href="https://web.dev/cls/" target="_blank" rel="noopener noreferrer">causing layout shift</a>.</p><p>To solve this problem set the width/height in the img tag:</p><pre>&lt;img <span>${t}</span></pre>`;const o=1===document.querySelectorAll(\'[data-qwik-inspector="\'+d+\'"]\').length;d&&(o?(h.actionName="Auto fix",h.actionFn=async()=>{const t=new URL("/__image_fix",location.href);t.searchParams.set("loc",d),t.searchParams.set("width",l.width),t.searchParams.set("height",l.height),e.srcset||(t.searchParams.set("src",e.currentSrc),t.searchParams.set("currentHref",location.href)),await fetch(t,{method:"POST"})}):(h.actionName="Open in editor",h.actionFn=async()=>{await navigator.clipboard.writeText(t),globalThis.qwikOpenInEditor(d)}))}else g&&(h.header="Perf: properly size image",h.message=`The image is too big, <a href="https://developer.chrome.com/en/docs/lighthouse/performance/uses-responsive-images/" target="_blank" rel="noopener noreferrer">hurting performance</a>, it should be resized to the size it\'s displayed at. The image dimensions are ${l.width} x ${l.height} but it\'s displayed at ${c.width}x${c.height}.</p>`);return}}h&&(h.remove(),t.delete(e))}(e):i&&(i.remove(),t.delete(e))}const c=new ResizeObserver(e=>{if(!n)for(const t of e)s(t.target)}),d=new MutationObserver(e=>{for(const t of e){for(const e of t.addedNodes)"IMG"===e.nodeName?c.observe(e):1===e.nodeType&&e.querySelectorAll("img").forEach(e=>{c.observe(e)});for(const e of t.removedNodes)"IMG"===e.nodeName?(s(e),c.unobserve(e)):1===e.nodeType&&e.querySelectorAll("img").forEach(e=>{s(e),c.unobserve(e)})}});let l,h=0;const u=()=>{setTimeout(()=>{l&&(l.disconnect(),h>.005&&console.error("Detected Layout Shift during page load",h)),d.observe(document.body,{childList:!0,subtree:!0}),document.body.querySelectorAll("img").forEach(e=>{c.observe(e)})},100)};"complete"===document.readyState?u():window.addEventListener("load",u);const g=1===performance?.navigation.type||performance.getEntriesByType("navigation").map(e=>e.type).includes("reload");"undefined"==typeof PerformanceObserver||g||(l=new PerformanceObserver(e=>{e.getEntries().forEach(e=>{if(!e.hadRecentInput){if(e.value>.006)for(const t of e.sources)t.node&&1===t.node.nodeType&&"IMAGE-WARNING"!==t.node.nodeName&&t.node.setAttribute("data-qwik-cls",Number(e.value).toFixed(3));h+=e.value}})}),l.observe({type:"layout-shift",buffered:!0}))};document.addEventListener("load",e)}', Mr = `<style>
2381
+ const Tr = `"undefined"==typeof window||window.__qwikViteLog||(window.__qwikViteLog=!0,console.debug("%c⭐️ Qwik Dev SSR Mode","background: #0c75d2; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;","App is running in SSR development mode!\\n - Additional JS is loaded by Vite for debugging and live reloading\\n - Rendering performance might not be optimal\\n - Delayed interactivity because prefetching is disabled\\n - Vite dev bundles do not represent production output\\n\\nProduction build can be tested running 'npm run preview'"))`, Cr = 'if("undefined"!=typeof document){const e=()=>{const e="data-qwik-inspector",t=globalThis.__HOTKEYS__,o=globalThis.__BASE__;let n=document.querySelector("#qwik-inspector-info-popup");n||(n=document.createElement("div"),n.id="qwik-inspector-info-popup",n["aria-hidden"]="true",document.body.appendChild(n)),n.textContent=`Click-to-Source: ${t.join(" + ")}`,console.debug("%c🔍 Qwik Click-To-Source","background: #564CE0; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;",`Hold-press the \'${t.join(" + ")}\' key${t.length>1?"s":""} and click a component to jump directly to the source code in your IDE!`),window.__qwik_inspector_state={pressedKeys:new Set};const r=document.body,i=document.createElement("div");function s(t){return t&&t instanceof Element?t.closest(`[${e}]`):null}function d(){const e=window.__qwik_inspector_state.hoveredElement;if(e&&c()){const t=e.getBoundingClientRect();i.style.setProperty("height",t.height+"px"),i.style.setProperty("width",t.width+"px"),i.style.setProperty("top",t.top+"px"),i.style.setProperty("left",t.left+"px"),i.style.setProperty("visibility","visible"),r.style.setProperty("cursor","pointer")}else i.style.setProperty("height","0px"),i.style.setProperty("width","0px"),i.style.setProperty("visibility","hidden"),r.style.removeProperty("cursor")}function c(){return function(){const e=Array.from(window.__qwik_inspector_state.pressedKeys).map(e=>e?e.replace(/(Left|Right)$/g,""):void 0);return t.every(t=>e.includes(t))}()}i.id="qwik-inspector-overlay",i.setAttribute("aria-hidden","true"),r.appendChild(i),document.addEventListener("keydown",e=>{window.__qwik_inspector_state.pressedKeys.add(e.code),d()},{capture:!0}),document.addEventListener("keyup",e=>{window.__qwik_inspector_state.pressedKeys.delete(e.code),d()},{capture:!0}),window.addEventListener("blur",()=>{window.__qwik_inspector_state.pressedKeys.clear(),d()},{capture:!0}),document.addEventListener("mouseover",e=>{const t=s(e.target);window.__qwik_inspector_state.hoveredElement=t||void 0,d()},{capture:!0}),document.addEventListener("click",t=>{if(c()){window.__qwik_inspector_state.pressedKeys.clear();const n=s(t.target);if(n){t.preventDefault(),t.stopPropagation();const i=n.getAttribute(e);if("false"!==i){r.style.setProperty("cursor","progress");const e=i.match(/^(.*?)(:\\d+(:\\d+)?)?$/);if(e){const[,t,n]=e;fetch(`${o}${t}?editor${n}`).then(()=>{r.style.removeProperty("cursor")})}}}}},{capture:!0}),document.addEventListener("contextmenu",e=>{if(c()){window.__qwik_inspector_state.pressedKeys.clear();s(e.target)&&e.preventDefault()}},{capture:!0}),window.addEventListener("resize",d),document.addEventListener("scroll",d)};document.addEventListener("DOMContentLoaded",e)}', Pr = `if("undefined"!=typeof HTMLElement){class e extends HTMLElement{get _root(){return this.shadowRoot||this}constructor(){super(),this.state={},this.props||(this.props={}),this.componentProps=["children","error"],this.nodesToDestroy=[],this.pendingUpdate=!1,this.attachShadow({mode:"open"})}destroyAnyNodes(){this.nodesToDestroy.forEach(e=>e.remove()),this.nodesToDestroy=[]}connectedCallback(){this.getAttributeNames().forEach(e=>{const t=e.replace(/-/g,""),o=new RegExp(t,"i");this.componentProps.forEach(t=>{if(o.test(t)){const o=this.getAttribute(e);this.props[t]!==o&&(this.props[t]=o)}})}),this._root.innerHTML='\\n\\n <template data-el="show-errored-host">\\n <div class="error">\\n <template data-el="div-errored-host-2">\\n \\x3c!-- String(props.error) --\\x3e\\n </template>\\n </div>\\n </template>\\n\\n <div class="arrow">👇 Uncaught error happened here 👇\\n <span class="dev-tools">DevTools: Cmd+Alt+I</span>\\n </div>\\n <div class="div">\\n <slot></slot>\\n </div>\\n\\n <style>\\n .error {\\n border-radius: 5px 5px 0px 0;\\n background: black;\\n color: white;\\n font-family: monospace;\\n font-size: 12px;\\n margin: 0;\\n padding: 10px;\\n }\\n .arrow {\\n background: #f47e81;\\n color: black;\\n font-size: 14px;\\n padding: 10px;\\n text-align: center;\\n font-family: sans-serif;\\n }\\n .dev-tools {\\n background: red;\\n padding: 2px 5px;\\n border-radius: 3px;\\n font-weight: 800;\\n }\\n .div {\\n outline: 5px solid red;\\n border-radius: 10px;\\n }\\n </style>',this.pendingUpdate=!0,this.render(),this.onMount(),this.pendingUpdate=!1,this.update()}showContent(e){const t=e.content.cloneNode(!0);Array.from(t.childNodes).forEach(t=>{e?.scope&&(t.scope=e.scope),e?.context&&(t.context=e.context),this.nodesToDestroy.push(t)}),e.after(t)}onMount(){}onUpdate(){}update(){!0!==this.pendingUpdate&&(this.pendingUpdate=!0,this.render(),this.onUpdate(),this.pendingUpdate=!1)}render(){this.destroyAnyNodes(),this.updateBindings()}updateBindings(){this._root.querySelectorAll("[data-el='show-errored-host']").forEach(e=>{this.props.error&&this.showContent(e)}),this._root.querySelectorAll("[data-el='div-errored-host-2']").forEach(e=>{this.renderTextNode(e,String(this.props.error))})}renderTextNode(e,t){const o=document.createTextNode(t);e?.scope&&(o.scope=e.scope),e?.context&&(o.context=e.context),e.after(o),this.nodesToDestroy.push(e.nextSibling)}}customElements.define("errored-host",e),document.addEventListener("qerror",e=>{const t=customElements.get("vite-error-overlay");if(!t)return;const o=new t(e.detail.error);document.body.appendChild(o)})}`, Dr = '[data-qwik-cls]{outline:2px solid red}[data-qwik-cls]:after{position:absolute;font-size:12px;content:"CLS " attr(data-qwik-cls);font-family:monospace;font-weight:700;background:red;color:#fff;margin:-2px;padding:1px;line-height:1;pointer-events:none}#qwik-image-warning-container{position:absolute!important;top:0!important;left:0!important;width:0!important;overflow:visible!important;height:0!important;pointer-events:none!important;contain:size layout style content;z-index:1}', Nr = 'if("undefined"!=typeof document){const e=()=>{class e extends HTMLElement{#e=null;constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.createElement("template").innerHTML=globalThis.__TEMPLATE__);const e=this.shadowRoot.querySelector("dialog");this.shadowRoot.addEventListener("click",async t=>{const o=t.target;"BUTTON"===o.nodeName&&("action-btn"===o.id?this.#e&&(this.#e(),e.close()):"icon"===o.id?e.open?e.close():(e.className=function(e){const{x:t}=e.getBoundingClientRect();let o="right";return t>window.innerWidth-260&&(o="left"),`bottom ${o}`}(o),e.show()):"loc"===o.id&&o.dataset.url&&globalThis.qwikOpenInEditor(o.dataset.url))})}set loc(e){const t=this.shadowRoot.querySelector("#loc");t.textContent=e,globalThis.qwikOpenInEditor&&(t.dataset.url=e)}set header(e){this.shadowRoot.querySelector("#title").textContent=e}set message(e){this.shadowRoot.querySelector("#message").innerHTML=e}set actionFn(e){this.#e=e}set actionName(e){e&&(this.shadowRoot.querySelector(".action-container").innerHTML=`<button id="action-btn" type="button">${e}</button>`)}}customElements.define("image-warning",e);const t=new Map;let o=document.querySelector("#qwik-image-warning-container");o||(o=document.createElement("div"),o.id="qwik-image-warning-container",document.body.appendChild(o));let n=!1;const i=new Map;function r(e){let t=i.get(e);return void 0===t&&(t=async function(e){if(!/^(https?|file|capacitor):/.test(e))return;const t=new URL("/__image_info",location.href);return t.searchParams.set("url",e),fetch(t).then(e=>e.json()).catch(()=>null)}(e),i.set(e,t)),t}function a(e){return e.endsWith("px")}async function s(e){const i=t.get(e);e.isConnected?e.complete&&async function(e){const i=window.scrollX,s=window.scrollY,c=e.getBoundingClientRect(),d=e.currentSrc,l=await r(d);let h=t.get(e);const u=window.innerWidth>500;if(l&&u){let r=!1;const d=e.getAttribute("data-qwik-inspector"),u=c.width*c.height;if(!e.hasAttribute("width")||!e.hasAttribute("height")){n=!0;const t=getComputedStyle(e),o="auto"!==t.getPropertyValue("aspect-ratio").toString(),i=a(t.getPropertyValue("width").toString()),s=a(t.getPropertyValue("height").toString()),c="absolute"===t.getPropertyValue("position").toString();r=u>1e3&&!c&&!o&&(!i||!s)}const g=u<.5*(l.width&&l.height)&&"svg"!==l.type;if(n=!1,r||g){if(h||(h=document.createElement("image-warning"),o.appendChild(h),t.set(e,h)),h.style.top=c.top+s+"px",h.style.left=c.left+i+"px",h.style.width=c.width+"px",h.style.height=c.height+"px",h.info=l,h.loc=d,r){const t=`width="${l.width}" height="${l.height}"`;h.header="Perf: layout shift",h.message=`Image\'s size is unknown until it\'s loaded, <a href="https://web.dev/cls/" target="_blank" rel="noopener noreferrer">causing layout shift</a>.</p><p>To solve this problem set the width/height in the img tag:</p><pre>&lt;img <span>${t}</span></pre>`;const o=1===document.querySelectorAll(\'[data-qwik-inspector="\'+d+\'"]\').length;d&&(o?(h.actionName="Auto fix",h.actionFn=async()=>{const t=new URL("/__image_fix",location.href);t.searchParams.set("loc",d),t.searchParams.set("width",l.width),t.searchParams.set("height",l.height),e.srcset||(t.searchParams.set("src",e.currentSrc),t.searchParams.set("currentHref",location.href)),await fetch(t,{method:"POST"})}):(h.actionName="Open in editor",h.actionFn=async()=>{await navigator.clipboard.writeText(t),globalThis.qwikOpenInEditor(d)}))}else g&&(h.header="Perf: properly size image",h.message=`The image is too big, <a href="https://developer.chrome.com/en/docs/lighthouse/performance/uses-responsive-images/" target="_blank" rel="noopener noreferrer">hurting performance</a>, it should be resized to the size it\'s displayed at. The image dimensions are ${l.width} x ${l.height} but it\'s displayed at ${c.width}x${c.height}.</p>`);return}}h&&(h.remove(),t.delete(e))}(e):i&&(i.remove(),t.delete(e))}const c=new ResizeObserver(e=>{if(!n)for(const t of e)s(t.target)}),d=new MutationObserver(e=>{for(const t of e){for(const e of t.addedNodes)"IMG"===e.nodeName?c.observe(e):1===e.nodeType&&e.querySelectorAll("img").forEach(e=>{c.observe(e)});for(const e of t.removedNodes)"IMG"===e.nodeName?(s(e),c.unobserve(e)):1===e.nodeType&&e.querySelectorAll("img").forEach(e=>{s(e),c.unobserve(e)})}});let l,h=0;const u=()=>{setTimeout(()=>{l&&(l.disconnect(),h>.005&&console.error("Detected Layout Shift during page load",h)),d.observe(document.body,{childList:!0,subtree:!0}),document.body.querySelectorAll("img").forEach(e=>{c.observe(e)})},100)};"complete"===document.readyState?u():window.addEventListener("load",u);const g=1===performance?.navigation.type||performance.getEntriesByType("navigation").map(e=>e.type).includes("reload");"undefined"==typeof PerformanceObserver||g||(l=new PerformanceObserver(e=>{e.getEntries().forEach(e=>{if(!e.hadRecentInput){if(e.value>.006)for(const t of e.sources)t.node&&1===t.node.nodeType&&"IMAGE-WARNING"!==t.node.nodeName&&t.node.setAttribute("data-qwik-cls",Number(e.value).toFixed(3));h+=e.value}})}),l.observe({type:"layout-shift",buffered:!0}))};document.addEventListener("load",e)}', Mr = `<style>
2389
2382
  :host {
2390
2383
  position: absolute;
2391
2384
  border: 1px solid red;
@@ -2606,24 +2599,24 @@ const jr = (e, n) => {
2606
2599
  injectTo: "body"
2607
2600
  }
2608
2601
  ), e.devTools?.clickToSource ?? !0) {
2609
- const r = e.devTools.clickToSource ?? [], o = new URL(n + "/", "http://local.local").href;
2610
- i.push({
2602
+ const r = e.devTools.clickToSource ?? [];
2603
+ n.endsWith("/") && (n = n.slice(0, -1)), i.push({
2611
2604
  tag: "script",
2612
2605
  attrs: { type: "module" },
2613
- children: Cr.replace("globalThis.__HOTKEYS__", JSON.stringify(r)).replace("globalThis.__SRC_DIR__", JSON.stringify(o)),
2606
+ children: Cr.replace("globalThis.__HOTKEYS__", JSON.stringify(r)).replace("globalThis.__BASE__", JSON.stringify(n)),
2614
2607
  injectTo: "body"
2615
2608
  });
2616
2609
  }
2617
2610
  return i;
2618
- }, Ur = [
2619
- Re,
2611
+ }, $r = [
2612
+ Be,
2620
2613
  Je,
2621
2614
  Ye,
2622
- Be,
2615
+ Ae,
2623
2616
  "@builder.io/qwik",
2624
2617
  "@builder.io/qwik/jsx-runtime",
2625
2618
  "@builder.io/qwik/jsx-dev-runtime"
2626
- ], $r = [".css", ".scss", ".sass", ".less", ".styl", ".stylus"], Rr = [".woff", ".woff2", ".ttf"];
2619
+ ], Ur = [".css", ".scss", ".sass", ".less", ".styl", ".stylus"], Br = [".woff", ".woff2", ".ttf"];
2627
2620
  function Hr(e = {}) {
2628
2621
  let n = "serve", i = null, r = null, o = "/", h = null, c, a = null, u = null, t = null;
2629
2622
  const b = e.client?.outDir;
@@ -2650,8 +2643,8 @@ function Hr(e = {}) {
2650
2643
  s.build?.ssr || v.mode === "ssr" ? S = "ssr" : v.mode === "lib" ? S = "lib" : v.mode === "test" ? S = "test" : S = "client", n = v.command;
2651
2644
  let I;
2652
2645
  v.mode === "production" ? I = "production" : v.mode === "development" ? I = "development" : n === "build" && S === "client" ? I = "production" : I = "development", d.debug(`vite config(), command: ${n}, env.mode: ${v.mode}`), n === "serve" ? e.entryStrategy = { type: "segment" } : S === "ssr" ? e.entryStrategy = { type: "hoist" } : S === "lib" && (e.entryStrategy = { type: "inline" });
2653
- const N = S === "ssr" ? typeof s.build?.ssr == "string" ? s.build.ssr : e.ssr?.input : void 0, U = S === "client" ? e.client?.input : void 0;
2654
- let T = s.build?.rollupOptions?.input || U || N;
2646
+ const N = S === "ssr" ? typeof s.build?.ssr == "string" ? s.build.ssr : e.ssr?.input : void 0, $ = S === "client" ? e.client?.input : void 0;
2647
+ let T = s.build?.rollupOptions?.input || $ || N;
2655
2648
  T && typeof T == "string" && (T = [T]), c = s.build?.assetsDir;
2656
2649
  const F = S === "client" && !!c && c !== "_astro", Q = {
2657
2650
  target: S,
@@ -2678,15 +2671,15 @@ function Hr(e = {}) {
2678
2671
  manifestInput: e.ssr?.manifestInput,
2679
2672
  manifestInputPath: e.ssr?.manifestInputPath,
2680
2673
  manifestOutput: e.client?.manifestOutput
2681
- }, R = await d.normalizeOptions(Q);
2682
- T || (T = R.input), x = Q, i = R.manifestInput, a = R.srcDir, u = R.rootDir, e.csr || (r = R.clientOutDir, h = s.base ? w.join(r, s.base) : r, t = R.ssrOutDir);
2674
+ }, B = await d.normalizeOptions(Q);
2675
+ T || (T = B.input), x = Q, i = B.manifestInput, a = B.srcDir, u = B.rootDir, e.csr || (r = B.clientOutDir, h = s.base ? w.join(r, s.base) : r, t = B.ssrOutDir);
2683
2676
  const V = I === "development", G = "globalThis.qDev", ie = "globalThis.qTest", J = "globalThis.qInspector", q = "globalThis.qSerialize", se = s?.define?.[G] ?? V, Ne = s?.define?.[J] ?? V, X = s?.define?.[q] ?? V, W = {
2684
2677
  ssr: {
2685
- noExternal: [Re, Be, He, ne]
2678
+ noExternal: [Be, Ae, He, ne]
2686
2679
  },
2687
2680
  envPrefix: ["VITE_", "PUBLIC_"],
2688
2681
  resolve: {
2689
- dedupe: [...Ur],
2682
+ dedupe: [...$r],
2690
2683
  conditions: I === "production" && S === "client" ? ["min"] : [],
2691
2684
  alias: {
2692
2685
  "@builder.io/qwik": "@qwik.dev/core",
@@ -2710,8 +2703,8 @@ function Hr(e = {}) {
2710
2703
  exclude: [
2711
2704
  // using optimized deps for qwik libraries will lead to duplicate imports
2712
2705
  // this breaks Qwik because it relies a lot on module scoped symbols
2713
- Re,
2714
2706
  Be,
2707
+ Ae,
2715
2708
  He,
2716
2709
  Je,
2717
2710
  Ye,
@@ -2748,7 +2741,7 @@ function Hr(e = {}) {
2748
2741
  }
2749
2742
  };
2750
2743
  if (!e.csr) {
2751
- W.build.cssCodeSplit = !1, R.outDir && (W.build.outDir = R.outDir);
2744
+ W.build.cssCodeSplit = !1, B.outDir && (W.build.outDir = B.outDir);
2752
2745
  const Me = W.build.rollupOptions?.onwarn;
2753
2746
  W.build.rollupOptions = {
2754
2747
  ...W.build.rollupOptions,
@@ -2756,15 +2749,15 @@ function Hr(e = {}) {
2756
2749
  d,
2757
2750
  s.build?.rollupOptions?.output,
2758
2751
  F,
2759
- R.outDir
2752
+ B.outDir
2760
2753
  ),
2761
2754
  preserveEntrySignatures: "exports-only",
2762
2755
  onwarn: (ce, qe) => {
2763
2756
  ce.plugin === "typescript" && ce.message.includes("outputToFilesystem") || (Me ? Me(ce, qe) : qe(ce));
2764
2757
  }
2765
- }, R.target === "ssr" ? n === "build" && (W.publicDir = !1, W.build.ssr = !0, s.build?.minify == null && I === "production" && (W.build.minify = !0)) : R.target === "client" || (R.target === "lib" ? (W.build.minify = !1, W.build.rollupOptions.external = [
2766
- Re,
2758
+ }, B.target === "ssr" ? n === "build" && (W.publicDir = !1, W.build.ssr = !0, s.build?.minify == null && I === "production" && (W.build.minify = !0)) : B.target === "client" || (B.target === "lib" ? (W.build.minify = !1, W.build.rollupOptions.external = [
2767
2759
  Be,
2760
+ Ae,
2768
2761
  He,
2769
2762
  Je,
2770
2763
  Ye,
@@ -2835,7 +2828,7 @@ function Hr(e = {}) {
2835
2828
  for (const [S, I] of Object.entries(v))
2836
2829
  if (I.type === "asset") {
2837
2830
  const N = o + S;
2838
- if ($r.some((U) => S.endsWith(U)))
2831
+ if (Ur.some(($) => S.endsWith($)))
2839
2832
  typeof I.source == "string" && I.source.length < w.inlineStylesUpToBytes ? g.push({
2840
2833
  tag: "style",
2841
2834
  location: "head",
@@ -2852,15 +2845,15 @@ function Hr(e = {}) {
2852
2845
  }
2853
2846
  });
2854
2847
  else {
2855
- const U = Rr.find((T) => S.endsWith(T));
2856
- U && !k && g.unshift({
2848
+ const $ = Br.find((T) => S.endsWith(T));
2849
+ $ && !k && g.unshift({
2857
2850
  tag: "link",
2858
2851
  location: "head",
2859
2852
  attributes: {
2860
2853
  rel: "preload",
2861
2854
  href: N,
2862
2855
  as: "font",
2863
- type: `font/${U.slice(1)}`,
2856
+ type: `font/${$.slice(1)}`,
2864
2857
  crossorigin: ""
2865
2858
  }
2866
2859
  });
@@ -2878,13 +2871,13 @@ function Hr(e = {}) {
2878
2871
  if (w.target === "ssr") {
2879
2872
  const S = d.getSys();
2880
2873
  if (S.env === "node" || S.env === "bun") {
2881
- const I = Object.keys(v), N = async (U) => {
2874
+ const I = Object.keys(v), N = async ($) => {
2882
2875
  try {
2883
- const T = S.path.basename(U), F = S.path.extname(T);
2876
+ const T = S.path.basename($), F = S.path.extname(T);
2884
2877
  if ((T.startsWith("entry.") || T.startsWith("entry_")) && !T.includes("preview") && (F === ".mjs" || F === ".cjs")) {
2885
- const R = S.path.basename(T, F), V = `${R}.js`, G = R + F;
2878
+ const B = S.path.basename(T, F), V = `${B}.js`, G = B + F;
2886
2879
  if (!I.some((J) => S.path.basename(J) === V)) {
2887
- const J = S.path.dirname(U), q = await S.dynamicImport("node:fs"), se = S.path.join(w.outDir, J);
2880
+ const J = S.path.dirname($), q = await S.dynamicImport("node:fs"), se = S.path.join(w.outDir, J);
2888
2881
  await q.promises.mkdir(se, { recursive: !0 }), await q.promises.writeFile(
2889
2882
  S.path.join(se, V),
2890
2883
  `export * from "./${G}";`
@@ -2901,7 +2894,7 @@ function Hr(e = {}) {
2901
2894
  },
2902
2895
  transformIndexHtml() {
2903
2896
  if (n === "serve")
2904
- return jr(d.getOptions(), a);
2897
+ return jr(d.getOptions(), o);
2905
2898
  },
2906
2899
  configureServer(s) {
2907
2900
  d.configureServer(s), (e?.devTools?.imageDevTools ?? !0) && s.middlewares.use(kr(d.getSys(), u, a));
@@ -2937,9 +2930,9 @@ ${oe.BrightWhite}%s
2937
2930
  ), !1;
2938
2931
  }
2939
2932
  }
2940
- }, Br()];
2933
+ }, Ar()];
2941
2934
  }
2942
- async function Br() {
2935
+ async function Ar() {
2943
2936
  let e, n;
2944
2937
  try {
2945
2938
  e = await import("node:fs").then((a) => a.promises), n = await import("node:path");
@@ -3027,9 +3020,9 @@ const oe = {
3027
3020
  debug: oe.BrightBlack
3028
3021
  }, Wr = void 0;
3029
3022
  export {
3030
- Bt as createOptimizer,
3023
+ At as createOptimizer,
3031
3024
  zr as qwikRollup,
3032
3025
  Hr as qwikVite,
3033
3026
  Wr as symbolMapper,
3034
- Ar as versions
3027
+ Rr as versions
3035
3028
  };