@arcgis/lumina-compiler 6.0.0-next.26 → 6.0.0-next.27

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.
Files changed (2) hide show
  1. package/dist/index.js +392 -390
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { f as b, l as $ } from "./chunks/logger.js";
4
4
  import o from "typescript";
5
5
  import { camelToKebab as ri, getPreamble as Es, uncapitalize as Et } from "@arcgis/toolkit/string";
6
6
  import { lazyMetaSubItemJoiner as Ts, lazyMetaItemJoiner as Je, lazyMetaGroupJoiner as $s, propertyFlagAttribute as Tt, propertyFlagReflect as Ps, propertyFlagBoolean as ks, propertyFlagNumber as Is, propertyFlagState as xs, propertyFlagReadOnly as As, propertyFlagNoAccessor as Ls, propertyFlagUseDefault as Ns } from "@arcgis/lumina/config";
7
- import { path as u, isPosix as ni, toPosixPathSeparators as G, toSystemPathSeparators as De, getCwd as oi } from "@arcgis/node-toolkit/path";
7
+ import { path as u, isPosix as ni, toPosixPathSeparators as X, toSystemPathSeparators as De, getCwd as oi } from "@arcgis/node-toolkit/path";
8
8
  import { isApiMethodAsync as js, globalPackageIdentifier as Fs, isApiMethod as Ds, isApiProperty as Rs } from "@arcgis/api-extractor/utils/apiHelpers";
9
9
  import { existsAsync as _, findPath as at } from "@arcgis/node-toolkit/file";
10
10
  import { readFile as W, readdir as ct, mkdir as ie, writeFile as z, copyFile as Os, rm as Ms, cp as Js } from "node:fs/promises";
@@ -25,7 +25,8 @@ import { mappedFind as Xe } from "@arcgis/toolkit/array";
25
25
  import { isPropertyEscapeNeeded as li } from "@arcgis/api-extractor/utils/partPrinter";
26
26
  import { getPackageNameFromExternalSpecifier as Xs, getMemberName as di } from "@arcgis/api-extractor/utils/astHelpers";
27
27
  import { identity as pi } from "@arcgis/toolkit/function";
28
- function Ys(e) {
28
+ import { testTimezonePlugin as Ys } from "@arcgis/node-toolkit/vite/testTimezone";
29
+ function Qs(e) {
29
30
  const t = e.options?.build?.dependencies ?? {}, i = Cs({
30
31
  bundleIn: t.bundleIn,
31
32
  externalize: [
@@ -42,7 +43,7 @@ function Ys(e) {
42
43
  e.isInStorybook && (i.resolveId = void 0);
43
44
  }, i;
44
45
  }
45
- const Qs = "Fragment", Be = "DynamicHtmlTag", Ke = "DynamicSvgTag", ke = /* @__PURE__ */ Symbol("dynamic html tag name"), Ye = /* @__PURE__ */ Symbol("dynamic svg tag name"), ui = /* @__PURE__ */ new Set([
46
+ const Zs = "Fragment", Be = "DynamicHtmlTag", Ke = "DynamicSvgTag", ke = /* @__PURE__ */ Symbol("dynamic html tag name"), Ye = /* @__PURE__ */ Symbol("dynamic svg tag name"), ui = /* @__PURE__ */ new Set([
46
47
  /**
47
48
  * There is a "className" property. However, in JSX typings we use "class"
48
49
  * instead to keep name shorter and to match Stencil's name. Thus, it should
@@ -1023,7 +1024,7 @@ const kt = /* @__PURE__ */ new Set(["itemScope"]), gi = /* @__PURE__ */ new Set(
1023
1024
  "volumeChange",
1024
1025
  "waiting",
1025
1026
  "wheel"
1026
- ]), Zs = /* @__PURE__ */ new Set([
1027
+ ]), er = /* @__PURE__ */ new Set([
1027
1028
  "area",
1028
1029
  "base",
1029
1030
  "br",
@@ -1099,7 +1100,7 @@ const kt = /* @__PURE__ */ new Set(["itemScope"]), gi = /* @__PURE__ */ new Set(
1099
1100
  "tspan",
1100
1101
  "use",
1101
1102
  "view"
1102
- ]), er = /* @__PURE__ */ new Set(["title", "svg", "a", "script", "style"]), dt = /* @__PURE__ */ new Set([
1103
+ ]), tr = /* @__PURE__ */ new Set(["title", "svg", "a", "script", "style"]), dt = /* @__PURE__ */ new Set([
1103
1104
  "annotation-xml",
1104
1105
  "annotation",
1105
1106
  "maction",
@@ -1131,7 +1132,7 @@ const kt = /* @__PURE__ */ new Set(["itemScope"]), gi = /* @__PURE__ */ new Set(
1131
1132
  "munder",
1132
1133
  "munderover",
1133
1134
  "semantics"
1134
- ]), tr = /* @__PURE__ */ new Set([
1135
+ ]), ir = /* @__PURE__ */ new Set([
1135
1136
  "annotation-xml",
1136
1137
  "color-profile",
1137
1138
  "font-face",
@@ -1141,7 +1142,7 @@ const kt = /* @__PURE__ */ new Set(["itemScope"]), gi = /* @__PURE__ */ new Set(
1141
1142
  "font-face-name",
1142
1143
  "missing-glyph"
1143
1144
  ]);
1144
- function ir(e) {
1145
+ function sr(e) {
1145
1146
  if (e.length === 0)
1146
1147
  return "";
1147
1148
  const t = e[0];
@@ -1154,11 +1155,11 @@ function ir(e) {
1154
1155
  }
1155
1156
  return e.trim().length === 0 ? t : e;
1156
1157
  }
1157
- const sr = (e) => e.replaceAll("\\", "\\\\").replace(rr, "\\${").replaceAll("`", "\\`"), rr = /\$\{/gu, nr = (e) => !or.test(e), or = /^[^\s"'=<>`]+$/u, ar = /[&<>]/gu, cr = {
1158
+ const rr = (e) => e.replaceAll("\\", "\\\\").replace(nr, "\\${").replaceAll("`", "\\`"), nr = /\$\{/gu, or = (e) => !ar.test(e), ar = /^[^\s"'=<>`]+$/u, cr = /[&<>]/gu, lr = {
1158
1159
  "&": "&amp;",
1159
1160
  "<": "&lt;",
1160
1161
  ">": "&gt;"
1161
- }, hi = (e) => e.replace(ar, (t) => cr[t]), pt = (e) => typeof e == "string" && e.includes("-") && !tr.has(e), lr = ["keyed", "ref", "repeat", "live"], ae = "staticHtml", X = "staticSvg", ce = "html", se = "svg", yi = /* @__PURE__ */ Symbol("maybe HTML namespace or maybe SVG"), vi = "css", bi = "mathml", wi = [vi, ce, bi, ae, X, se], dr = new Set(wi), pr = ["safeClassMap", "safeStyleMap", "deferLoad", "stabilizedRef"], ur = "nothing", mr = [...lr, ...wi, ...pr, ur], fr = (e) => o.isArrayLiteralExpression(e) && e.elements.every((t) => fe(t)), fe = (e) => o.isJsxElement(e) || o.isJsxSelfClosingElement(e) || o.isJsxFragment(e), re = {
1162
+ }, hi = (e) => e.replace(cr, (t) => lr[t]), pt = (e) => typeof e == "string" && e.includes("-") && !ir.has(e), dr = ["keyed", "ref", "repeat", "live"], ae = "staticHtml", Y = "staticSvg", ce = "html", se = "svg", yi = /* @__PURE__ */ Symbol("maybe HTML namespace or maybe SVG"), vi = "css", bi = "mathml", wi = [vi, ce, bi, ae, Y, se], pr = new Set(wi), ur = ["safeClassMap", "safeStyleMap", "deferLoad", "stabilizedRef"], mr = "nothing", fr = [...dr, ...wi, ...ur, mr], gr = (e) => o.isArrayLiteralExpression(e) && e.elements.every((t) => fe(t)), fe = (e) => o.isJsxElement(e) || o.isJsxSelfClosingElement(e) || o.isJsxFragment(e), re = {
1162
1163
  [ce]: ["lit", "lit/html.js", "lit-html"],
1163
1164
  /**
1164
1165
  * Sadly, Lit called these "html" and "svg", rather than "staticHtml" and
@@ -1168,7 +1169,7 @@ const sr = (e) => e.replaceAll("\\", "\\\\").replace(rr, "\\${").replaceAll("`",
1168
1169
  */
1169
1170
  [ae]: ["lit/static-html.js", "lit-html/static.js"],
1170
1171
  [se]: ["lit", "lit-html", "lit/html.js"],
1171
- [X]: ["lit/static-html.js", "lit-html/static.js"],
1172
+ [Y]: ["lit/static-html.js", "lit-html/static.js"],
1172
1173
  [bi]: ["lit", "lit-html", "lit/html.js"],
1173
1174
  [vi]: ["lit", "@lit/reactive-element/css-tag.js", "@lit/reactive-element"],
1174
1175
  safeClassMap: ["@arcgis/lumina"],
@@ -1180,7 +1181,7 @@ const sr = (e) => e.replaceAll("\\", "\\\\").replace(rr, "\\${").replaceAll("`",
1180
1181
  repeat: ["lit/directives/repeat.js", "lit-html/directives/repeat.js"],
1181
1182
  ref: ["lit/directives/ref.js", "lit-html/directives/ref.js"],
1182
1183
  nothing: ["lit", "@arcgis/lumina", "lit/html.js", "lit-html", "lit-element/lit-element.js"]
1183
- }, gr = /* @__PURE__ */ new Set([
1184
+ }, hr = /* @__PURE__ */ new Set([
1184
1185
  "h",
1185
1186
  "Fragment",
1186
1187
  "state",
@@ -1190,7 +1191,7 @@ const sr = (e) => e.replaceAll("\\", "\\\\").replace(rr, "\\${").replaceAll("`",
1190
1191
  "bindProperty",
1191
1192
  "bindEvent",
1192
1193
  "bindAttribute"
1193
- ]), hr = /\.(?:css|s[ac]ss|less|styl(?:us)?|postcss|pcss|sss)(\\?|$)/u, de = "@arcgis/lumina:loadLitCss", Ie = "?litCss", Y = "?layeredLitCss", Ze = "?globalFileLitCss", yr = (e) => ({
1194
+ ]), yr = /\.(?:css|s[ac]ss|less|styl(?:us)?|postcss|pcss|sss)(\\?|$)/u, de = "@arcgis/lumina:loadLitCss", Ie = "?litCss", Q = "?layeredLitCss", Ze = "?globalFileLitCss", vr = (e) => ({
1194
1195
  name: de,
1195
1196
  enforce: "pre",
1196
1197
  configResolved(t) {
@@ -1224,20 +1225,20 @@ const sr = (e) => e.replaceAll("\\", "\\\\").replace(rr, "\\${").replaceAll("`",
1224
1225
  async handler(r, a) {
1225
1226
  const l = a.endsWith(Ie);
1226
1227
  l && (a = a.slice(0, -Ie.length));
1227
- const d = a.endsWith(Y);
1228
- d && (a = a.slice(0, -Y.length));
1228
+ const d = a.endsWith(Q);
1229
+ d && (a = a.slice(0, -Q.length));
1229
1230
  const c = a.endsWith(Ze);
1230
1231
  if (c && (a = a.slice(0, -Ze.length)), !l && !d && !c)
1231
1232
  return await s.handler.call(this, r, a);
1232
1233
  const p = `${a}?inline`, m = await s.handler.call(this, r, p), { code: f, ...g } = typeof m == "string" ? { code: m } : m ?? {};
1233
- return typeof f != "string" || !f.startsWith(Si) || !f.endsWith(vr) ? ($.warn(
1234
+ return typeof f != "string" || !f.startsWith(Si) || !f.endsWith(br) ? ($.warn(
1234
1235
  de,
1235
1236
  `Expected vite:css-post to return a JS module with a string literal. Received: ${JSON.stringify(
1236
1237
  f
1237
1238
  )}`
1238
1239
  ), m) : c ? (e._globalCssString = Ci(f), { code: "", map: { mappings: "" } }) : {
1239
1240
  ...g,
1240
- code: Cr(f, e.hmrEnabled, e.shouldMinify, d),
1241
+ code: Er(f, e.hmrEnabled, e.shouldMinify, d),
1241
1242
  /**
1242
1243
  * Vite's original transform does not generate source maps for inlined
1243
1244
  * css, thus we can't either
@@ -1247,8 +1248,8 @@ const sr = (e) => e.replaceAll("\\", "\\\\").replace(rr, "\\${").replaceAll("`",
1247
1248
  }
1248
1249
  };
1249
1250
  }
1250
- }), Si = 'export default "', vr = '"', br = `import { css } from '${re.css[0]}';
1251
- export const styles = css\``, wr = "`;\nexport default styles;", Sr = `
1251
+ }), Si = 'export default "', br = '"', wr = `import { css } from '${re.css[0]}';
1252
+ export const styles = css\``, Sr = "`;\nexport default styles;", Cr = `
1252
1253
 
1253
1254
  if(import.meta.hot) {
1254
1255
  import.meta.hot.data.styles ??= styles;
@@ -1260,36 +1261,36 @@ if(import.meta.hot) {
1260
1261
  import.meta.hot.data.styles.styleSheet.replaceSync(nextExports.styles.cssText);
1261
1262
  });
1262
1263
  }`, Ci = (e) => e.slice(Si.length - 1);
1263
- function Cr(e, t, i, s) {
1264
- const n = Ci(e), r = JSON.parse(n), a = sr(r), l = s ? `@layer{${i ? "" : `
1264
+ function Er(e, t, i, s) {
1265
+ const n = Ci(e), r = JSON.parse(n), a = rr(r), l = s ? `@layer{${i ? "" : `
1265
1266
  `}${a}${i ? "" : `
1266
1267
  `}}` : a;
1267
- return `${br}${l}${wr}${t ? Sr : ""}`;
1268
+ return `${wr}${l}${Sr}${t ? Cr : ""}`;
1268
1269
  }
1269
- function Er(e) {
1270
- return `import("${Tr}").then(({ setCustomElementsManifest }) => {
1271
- setCustomElementsManifest(${$r(e)});
1270
+ function Tr(e) {
1271
+ return `import("${$r}").then(({ setCustomElementsManifest }) => {
1272
+ setCustomElementsManifest(${Pr(e)});
1272
1273
  });`;
1273
1274
  }
1274
- const Tr = "@storybook/web-components-vite", $r = (e) => `JSON.parse(\`${Pr(JSON.stringify(JSON.stringify(e)).slice(1, -1))}\`)`;
1275
- function Pr(e) {
1275
+ const $r = "@storybook/web-components-vite", Pr = (e) => `JSON.parse(\`${kr(JSON.stringify(JSON.stringify(e)).slice(1, -1))}\`)`;
1276
+ function kr(e) {
1276
1277
  return e.replaceAll('\\"', '"').replaceAll("`", "\\`").replaceAll("${", "\\${");
1277
1278
  }
1278
- function kr(e) {
1279
- Ir(e);
1279
+ function Ir(e) {
1280
+ xr(e);
1280
1281
  const t = e.options.css?.globalStylesPath;
1281
1282
  if (t === void 0)
1282
1283
  return "";
1283
1284
  const i = u.join(e.dir.root, t);
1284
1285
  return e.viteCommand === "serve" || e.isInStorybook ? [
1285
- `import globalStyles from "${i}${Y}";`,
1286
+ `import globalStyles from "${i}${Q}";`,
1286
1287
  "document.adoptedStyleSheets = [...document.adoptedStyleSheets, globalStyles.styleSheet!];",
1287
1288
  Ti("", e)
1288
1289
  ].join(`
1289
1290
  `) : `import "${i}${Ze}";`;
1290
1291
  }
1291
1292
  const Ei = "hydrated";
1292
- function Ir(e) {
1293
+ function xr(e) {
1293
1294
  e._globalHydratedCssString = [
1294
1295
  ":not([",
1295
1296
  e.options.css?.hydratedAttribute ?? Ei,
@@ -1306,39 +1307,39 @@ function Ti(e, t) {
1306
1307
  ].join(`
1307
1308
  `);
1308
1309
  }
1309
- const xr = (e) => `@layer{${e.shouldMinify ? "" : `
1310
+ const Ar = (e) => `@layer{${e.shouldMinify ? "" : `
1310
1311
  `}${e._globalHydratedCssString}${e.shouldMinify ? "" : `
1311
1312
 
1312
1313
  `}${e._globalCssString ? JSON.parse(e._globalCssString) : ""}${e.shouldMinify ? "" : `
1313
1314
  `}}`;
1314
- function Ar(e) {
1315
+ function Lr(e) {
1315
1316
  const t = [], i = [];
1316
1317
  for (const s of e.privateApiJson.modules)
1317
1318
  for (const n of s.declarations)
1318
- n.customElement === !0 && (i.push(Lr(n, e, s.sourcePath)), t.push(s.sourcePath));
1319
+ n.customElement === !0 && (i.push(Nr(n, e, s.sourcePath)), t.push(s.sourcePath));
1319
1320
  return [
1320
1321
  'import { runtime } from "./runtime.ts";',
1321
1322
  'import { makeDefineCustomElements } from "@arcgis/lumina";',
1322
- kr(e),
1323
- e.hmrEnabled ? jr : "",
1323
+ Ir(e),
1324
+ e.hmrEnabled ? Fr : "",
1324
1325
  "",
1325
- e.isInStorybook ? Er(e.apiJson) : "",
1326
+ e.isInStorybook ? Tr(e.apiJson) : "",
1326
1327
  "",
1327
1328
  "export const defineCustomElements = makeDefineCustomElements(runtime, {",
1328
1329
  i.join(`,
1329
1330
  `),
1330
1331
  "});",
1331
- e.hmrEnabled ? Fr(t) : ""
1332
+ e.hmrEnabled ? Dr(t) : ""
1332
1333
  ].join(`
1333
1334
  `);
1334
1335
  }
1335
- const Lr = (e, t, i) => [
1336
+ const Nr = (e, t, i) => [
1336
1337
  ` "${e.tagName}": [`,
1337
1338
  `()=>import("${u.join(t.dir.root, i)}"),`,
1338
- Nr(e),
1339
+ jr(e),
1339
1340
  "]"
1340
1341
  ].join("");
1341
- function Nr(e) {
1342
+ function jr(e) {
1342
1343
  const { properties: t, asyncMethods: i, syncMethods: s, formAssociated: n } = $i(e), r = t.map((g) => g.join(Ts)).join(Je), a = i.join(Je), l = s.join(Je), d = [r, a, l], c = d.findLastIndex((g) => g.length > 0), p = d.slice(0, c + 1);
1343
1344
  return `${p.length > 0 || n ? `"${p.join($s)}"` : ""}${n ? ",1" : ""}`;
1344
1345
  }
@@ -1356,22 +1357,22 @@ function $i(e) {
1356
1357
  const n = e.formAssociated === !0;
1357
1358
  return { tagName: e.tagName, properties: t, asyncMethods: i, syncMethods: s, formAssociated: n };
1358
1359
  }
1359
- const jr = `import { handleHmrUpdate, handleComponentMetaUpdate } from "@arcgis/lumina/hmrSupport";
1360
- `, Fr = (e) => `
1360
+ const Fr = `import { handleHmrUpdate, handleComponentMetaUpdate } from "@arcgis/lumina/hmrSupport";
1361
+ `, Dr = (e) => `
1361
1362
  if(import.meta.hot) {
1362
1363
  import.meta.hot.on("component-meta-update", handleComponentMetaUpdate);
1363
1364
  import.meta.hot.accept([
1364
1365
  ${e.map((t) => ` "/${t}",`).join(`
1365
1366
  `)}
1366
1367
  ], handleHmrUpdate);
1367
- }`, Dr = "@arcgis/lumina-compiler", Pi = {
1368
- name: Dr
1368
+ }`, Rr = "@arcgis/lumina-compiler", Pi = {
1369
+ name: Rr
1369
1370
  };
1370
- var Rr = ["@arcgis/api-extractor", "@arcgis/arcade-languageservice", "@arcgis/arcade-parser", "@arcgis/core", "@arcgis/languages-api-utils", "@arcgis/languages-sdk-spec", "@arcgis/lumina", "@arcgis/lumina-compiler", "@arcgis/lumina-toolkit", "@arcgis/node-toolkit", "@arcgis/stencil-to-lumina", "@arcgis/toolkit", "@arcgis/typescript-config"];
1371
+ var Or = ["@arcgis/api-extractor", "@arcgis/arcade-languageservice", "@arcgis/arcade-parser", "@arcgis/core", "@arcgis/languages-api-utils", "@arcgis/languages-sdk-spec", "@arcgis/lumina", "@arcgis/lumina-compiler", "@arcgis/lumina-toolkit", "@arcgis/node-toolkit", "@arcgis/stencil-to-lumina", "@arcgis/toolkit", "@arcgis/typescript-config"];
1371
1372
  async function ki(e, t) {
1372
- return ne ??= Mr(e, t), await ne;
1373
+ return ne ??= Jr(e, t), await ne;
1373
1374
  }
1374
- function Or() {
1375
+ function Mr() {
1375
1376
  if (xe === void 0)
1376
1377
  throw Error(
1377
1378
  b(
@@ -1391,9 +1392,9 @@ function Ii() {
1391
1392
  );
1392
1393
  return et;
1393
1394
  }
1394
- async function Mr(e, t) {
1395
+ async function Jr(e, t) {
1395
1396
  const i = D(e), s = i.dependencies ?? {}, n = i.peerDependencies ?? {}, a = (await Promise.all(
1396
- [...Object.keys(s), ...Object.keys(n)].filter((c) => !Jr.has(c)).flatMap(async (c) => await xi(c, e))
1397
+ [...Object.keys(s), ...Object.keys(n)].filter((c) => !Br.has(c)).flatMap(async (c) => await xi(c, e))
1397
1398
  )).filter(F);
1398
1399
  xe ??= a, et = Object.fromEntries(a.flatMap((c) => Object.entries(c.components)));
1399
1400
  const l = t?.serve?.extraDependencies?.map(
@@ -1401,8 +1402,8 @@ async function Mr(e, t) {
1401
1402
  ), d = l === void 0 ? a : a.filter((c) => !l.includes(c.packageName));
1402
1403
  return xe ??= d, d;
1403
1404
  }
1404
- const Jr = /* @__PURE__ */ new Set([
1405
- ...Rr,
1405
+ const Br = /* @__PURE__ */ new Set([
1406
+ ...Or,
1406
1407
  "@arcgis/languages-sdk-specs",
1407
1408
  "@commander-js/extra-typings",
1408
1409
  "@custom-elements-manifest/analyzer",
@@ -1436,11 +1437,11 @@ const Jr = /* @__PURE__ */ new Set([
1436
1437
  ]);
1437
1438
  let xe, et, ne;
1438
1439
  async function xi(e, t) {
1439
- const i = await $e(e, t), s = await ai(i), n = "exports" in s, r = Xr.bind(void 0, n), a = "@stencil/core" in (s.dependencies ?? {}) || "@stencil/core" in (s.devDependencies ?? {}), l = u.join(i, "dist/esm/loader.js");
1440
+ const i = await $e(e, t), s = await ai(i), n = "exports" in s, r = Yr.bind(void 0, n), a = "@stencil/core" in (s.dependencies ?? {}) || "@stencil/core" in (s.devDependencies ?? {}), l = u.join(i, "dist/esm/loader.js");
1440
1441
  if (a ? await _(l) : !1) {
1441
- const g = await W(l, "utf8"), h = Br(g, "bootstrapLazy("), y = g.indexOf(", options", h), v = g.slice(h, y), w = v.startsWith('JSON.parse("') ? v.slice(12, -2).replaceAll('\\"', '"') : v;
1442
+ const g = await W(l, "utf8"), h = Kr(g, "bootstrapLazy("), y = g.indexOf(", options", h), v = g.slice(h, y), w = v.startsWith('JSON.parse("') ? v.slice(12, -2).replaceAll('\\"', '"') : v;
1442
1443
  try {
1443
- const S = JSON.parse(w), T = Vr(S, { packageName: e, getImportPath: r });
1444
+ const S = JSON.parse(w), T = Gr(S, { packageName: e, getImportPath: r });
1444
1445
  return { packageName: e, type: "stencil", components: T, packageLocation: i, packageJson: s };
1445
1446
  } catch (S) {
1446
1447
  $.warn("@arcgis/lumina", `Failed to parse dist/esm/loader.js for ${e}.
@@ -1449,7 +1450,7 @@ Error: ${String(S)}`);
1449
1450
  }
1450
1451
  const c = It(s.customElements);
1451
1452
  if (c != null) {
1452
- const g = u.join(i, c), h = JSON.parse(await W(g, "utf-8")), y = Kr(h), v = Ai(h, {
1453
+ const g = u.join(i, c), h = JSON.parse(await W(g, "utf-8")), y = _r(h), v = Ai(h, {
1453
1454
  packageName: e,
1454
1455
  getImportPath: r
1455
1456
  });
@@ -1457,7 +1458,7 @@ Error: ${String(S)}`);
1457
1458
  }
1458
1459
  const p = It(s["web-types"]);
1459
1460
  if (p != null) {
1460
- const g = u.join(i, p), h = JSON.parse(await W(g, "utf-8")), y = _r(h, {
1461
+ const g = u.join(i, p), h = JSON.parse(await W(g, "utf-8")), y = Ur(h, {
1461
1462
  packageName: e,
1462
1463
  getImportPath: r
1463
1464
  });
@@ -1465,7 +1466,7 @@ Error: ${String(S)}`);
1465
1466
  }
1466
1467
  const m = u.join(i, "dist/components");
1467
1468
  if (await _(m)) {
1468
- const g = await Gr(m, {
1469
+ const g = await Xr(m, {
1469
1470
  packageName: e,
1470
1471
  getImportPath: r
1471
1472
  });
@@ -1473,7 +1474,7 @@ Error: ${String(S)}`);
1473
1474
  }
1474
1475
  }
1475
1476
  const It = (e) => Array.isArray(e) ? e[0] : e;
1476
- function Br(e, t) {
1477
+ function Kr(e, t) {
1477
1478
  const i = e.indexOf(t);
1478
1479
  return i === -1 ? -1 : i + t.length;
1479
1480
  }
@@ -1514,11 +1515,11 @@ function Ai(e, t, i = !1) {
1514
1515
  }
1515
1516
  return s;
1516
1517
  }
1517
- const Kr = (e) => (
1518
+ const _r = (e) => (
1518
1519
  // Since 5.0
1519
1520
  e.compiler?.name === "@arcgis/api-extractor" || // Before 5.0
1520
1521
  e.compiler?.name === Pi.name
1521
- ), _r = (e, t) => Object.fromEntries(
1522
+ ), Ur = (e, t) => Object.fromEntries(
1522
1523
  (e.contributions?.html?.elements ?? e.contributions?.html?.tags)?.map(
1523
1524
  (i) => [
1524
1525
  i.name,
@@ -1529,7 +1530,7 @@ const Kr = (e) => (
1529
1530
  }
1530
1531
  ]
1531
1532
  ) ?? []
1532
- ), Ur = 1, Wr = 2, zr = 4, qr = 8, Hr = Ur | Wr | zr | qr, Vr = (e, t) => Object.fromEntries(
1533
+ ), Wr = 1, zr = 2, qr = 4, Hr = 8, Vr = Wr | zr | qr | Hr, Gr = (e, t) => Object.fromEntries(
1533
1534
  e.flatMap(
1534
1535
  ([i, s]) => s.map(
1535
1536
  ([n, r, a]) => [
@@ -1538,13 +1539,13 @@ const Kr = (e) => (
1538
1539
  packageName: t.packageName,
1539
1540
  modulePath: t.getImportPath(r),
1540
1541
  propToAttribute: Object.fromEntries(
1541
- Object.entries(a ?? {}).filter(([l, [d]]) => d & Hr).map(([l, [d, c = l]]) => [l, c])
1542
+ Object.entries(a ?? {}).filter(([l, [d]]) => d & Vr).map(([l, [d, c = l]]) => [l, c])
1542
1543
  )
1543
1544
  }
1544
1545
  ]
1545
1546
  )
1546
1547
  )
1547
- ), Gr = async (e, t) => Object.fromEntries(
1548
+ ), Xr = async (e, t) => Object.fromEntries(
1548
1549
  (await ct(e)).filter((i) => i.endsWith(".d.ts")).map((i) => {
1549
1550
  const s = i.slice(0, -5);
1550
1551
  return [
@@ -1556,14 +1557,14 @@ const Kr = (e) => (
1556
1557
  }
1557
1558
  ];
1558
1559
  })
1559
- ), Xr = (e, t) => e ? `components/${t}` : `dist/components/${t}.js`, Yr = (e) => e.startsWith("/") ? e : `/${e}`, ut = (e, t) => `${e}@fs${Yr(t)}`;
1560
- function Qr(e, t) {
1560
+ ), Yr = (e, t) => e ? `components/${t}` : `dist/components/${t}.js`, Qr = (e) => e.startsWith("/") ? e : `/${e}`, ut = (e, t) => `${e}@fs${Qr(t)}`;
1561
+ function Zr(e, t) {
1561
1562
  const i = u.resolve(e), s = u.resolve(i, t.split(/[?#]/u)[0].replace(/^[/\\]+/u, "")), n = u.relative(i, s);
1562
1563
  return n === ".." || n.startsWith(`..${u.sep}`) || u.isAbsolute(n) ? void 0 : s;
1563
1564
  }
1564
- const Li = "packages/core-packages/core/src", Zr = "packages/core-packages/core/output/npm/esm", ee = !import.meta.url.includes("node_modules");
1565
+ const Li = "packages/core-packages/core/src", en = "packages/core-packages/core/output/npm/esm", G = !import.meta.url.includes("node_modules");
1565
1566
  function mt(e) {
1566
- return ee && e.name !== "@esri/calcite-components" ? "6.0.0-next.26" : e.version;
1567
+ return G && e.name !== "@esri/calcite-components" ? "6.0.0-next.27" : e.version;
1567
1568
  }
1568
1569
  function Ni({ command: e }) {
1569
1570
  return e === "serve" && process.argv.includes("--local-core");
@@ -1578,9 +1579,9 @@ function te(e, t, i = ft, s = "max-age=31536000, immutable") {
1578
1579
  throw Error(b(tt, "serveAssets() is only available when Vite is running in serve mode"));
1579
1580
  const n = e._serverConfigured, r = e.server.middlewares.stack.length;
1580
1581
  if (t.forEach((a) => {
1581
- const l = Di(a), d = Oi(e.dir, Ri(l)), c = tn(e.viteConfig.base, d, e.dir.distCdn);
1582
+ const l = Di(a), d = Oi(e.dir, Ri(l)), c = sn(e.viteConfig.base, d, e.dir.distCdn);
1582
1583
  e.server.middlewares.use(c, (p, m, f) => {
1583
- const g = sn(p.url), h = l.type === "directory" ? Qr(l.source, g) : l.source, y = u.join(d, g), v = i.find((w) => w.match(y, e));
1584
+ const g = rn(p.url), h = l.type === "directory" ? Zr(l.source, g) : l.source, y = u.join(d, g), v = i.find((w) => w.match(y, e));
1584
1585
  return h === void 0 ? (m.statusCode = 403, m.end(), !0) : ((typeof h == "function" ? Promise.resolve(h()) : W(h)).then((w) => {
1585
1586
  const S = (typeof h == "function" ? void 0 : v?.transform(w.toString("utf8"), y, e)) ?? w;
1586
1587
  m.setHeader("Cache-Control", s), m.setHeader("Content-Type", Ks.lookup(g) || "application/octet-stream"), m.write(S), m.end();
@@ -1622,11 +1623,11 @@ async function Fi(e, t, i = ft) {
1622
1623
  }
1623
1624
  const Di = ni ? (e) => e : (e) => e.type === "dynamic" ? {
1624
1625
  ...e,
1625
- destination: G(e.destination)
1626
+ destination: X(e.destination)
1626
1627
  } : {
1627
1628
  ...e,
1628
- source: G(e.source),
1629
- destination: G(e.destination)
1629
+ source: X(e.source),
1630
+ destination: X(e.destination)
1630
1631
  };
1631
1632
  async function xt(e, t, i, s) {
1632
1633
  const n = i.find((r) => r.match(t, s));
@@ -1653,34 +1654,34 @@ function Ri(e) {
1653
1654
  return e.destination === "" ? u.basename(e.source) : e.destination.endsWith(u.sep) ? e.type === "directory" && e.destination === u.sep ? e.destination : u.join(e.destination, u.basename(e.source)) : e.destination;
1654
1655
  }
1655
1656
  function Oi({ dist: e, distCdnAssets: t }, i) {
1656
- const s = en(i), n = u.join(
1657
+ const s = tn(i), n = u.join(
1657
1658
  t,
1658
1659
  s ? u.relative(t, i) : i
1659
1660
  ), r = u.relative(e, n), a = Mi(r);
1660
1661
  return u.join(e, a);
1661
1662
  }
1662
- function en(e) {
1663
+ function tn(e) {
1663
1664
  if (e.startsWith(u.sep)) {
1664
1665
  const t = oi(), i = t.startsWith(u.sep) ? t.split(u.sep)[1] ?? "" : "";
1665
1666
  return e.startsWith(`/${i}/`) || e.startsWith("/Users/");
1666
1667
  } else
1667
1668
  return !!(!ni && u.isAbsolute(e));
1668
1669
  }
1669
- function tn(e, t, i) {
1670
+ function sn(e, t, i) {
1670
1671
  const s = Mi(u.relative(i, t)), n = s.startsWith("/") ? s.slice(1) : s;
1671
1672
  return `${e}${n}`;
1672
1673
  }
1673
- const Mi = (e) => e.replaceAll("../", ""), sn = (e = "") => e.split("?")[0].split("#")[0];
1674
+ const Mi = (e) => e.replaceAll("../", ""), rn = (e = "") => e.split("?")[0].split("#")[0];
1674
1675
  async function Ji(e) {
1675
1676
  const t = new Set(e.map(u.dirname));
1676
1677
  await Promise.all(Array.from(t, async (i) => await ie(i, { recursive: !0 })));
1677
1678
  }
1678
- const rn = {
1679
+ const nn = {
1679
1680
  match: (e, t) => t.environment === "production" && e.endsWith(".json"),
1680
1681
  transform: (e) => JSON.stringify(JSON.parse(e))
1681
- }, ft = [rn], Ae = "@arcgis/core", me = "@arcgis/core/assets", _e = D(), q = Ae in (_e.dependencies ?? {}) || Ae in (_e.peerDependencies ?? {}) || // Does not depend on `@arcgis/core` to avoid cycle, but uses core in Lumina tests
1682
+ }, ft = [nn], Ae = "@arcgis/core", me = "@arcgis/core/assets", _e = D(), q = Ae in (_e.dependencies ?? {}) || Ae in (_e.peerDependencies ?? {}) || // Does not depend on `@arcgis/core` to avoid cycle, but uses core in Lumina tests
1682
1683
  _e.name === "@arcgis/lumina";
1683
- async function nn(e, t, i, s) {
1684
+ async function on(e, t, i, s) {
1684
1685
  if (!q)
1685
1686
  return [];
1686
1687
  const n = e._localCdnCore, r = n?.packageLocation ?? await $e(Ae);
@@ -1704,9 +1705,9 @@ async function nn(e, t, i, s) {
1704
1705
  Bi(l)
1705
1706
  ];
1706
1707
  } else
1707
- return on(t, r, n?.sourceLocation !== void 0);
1708
+ return an(t, r, n?.sourceLocation !== void 0);
1708
1709
  }
1709
- function on(e, t, i) {
1710
+ function an(e, t, i) {
1710
1711
  const s = `${e}${me}`;
1711
1712
  return [
1712
1713
  // Browser tests import this as a Vite CSS module and adopt its stylesheet, so CSS must remain on the /@fs route.
@@ -1725,7 +1726,7 @@ function on(e, t, i) {
1725
1726
  }
1726
1727
  ];
1727
1728
  }
1728
- async function an(e) {
1729
+ async function cn(e) {
1729
1730
  const t = e._localCdnCore, i = t?.packageLocation ?? await $e(Ae), s = t?.sourceLocation !== void 0 ? [
1730
1731
  {
1731
1732
  type: "directory",
@@ -1767,7 +1768,7 @@ async function an(e) {
1767
1768
  ];
1768
1769
  e.server.middlewares.use("/builddate.txt", (n, r) => {
1769
1770
  r.setHeader("Cache-Control", "no-cache"), r.setHeader("Content-Type", "text/plain");
1770
- const a = t?.sourceLocation ? "6.0.0-next.26" : D(i).version;
1771
+ const a = t?.sourceLocation ? "6.0.0-next.27" : D(i).version;
1771
1772
  r.end(JSON.stringify({ version: a }));
1772
1773
  }), te(e, s, [], "no-cache");
1773
1774
  }
@@ -1777,17 +1778,17 @@ const Bi = (e) => ({
1777
1778
  // This is used be the theme switcher in `@arcgis/storybook-utils`
1778
1779
  id: "arcgisCoreStylesheet"
1779
1780
  }), gt = "customElement.js";
1780
- function cn(e, t) {
1781
+ function ln(e, t) {
1781
1782
  if (!t.startsWith(e))
1782
1783
  return t;
1783
1784
  const s = t.split(u.sep);
1784
- return s.at(ln) !== s.at(dn) ? t : u.join(s.slice(0, -1).join(u.sep), gt);
1785
+ return s.at(dn) !== s.at(pn) ? t : u.join(s.slice(0, -1).join(u.sep), gt);
1785
1786
  }
1786
- const ln = -1, dn = -2, pn = /["']\.\.?\/[^'"]+/gu, un = (e, t, i, s) => e.replaceAll(pn, (n) => {
1787
+ const dn = -1, pn = -2, un = /["']\.\.?\/[^'"]+/gu, mn = (e, t, i, s) => e.replaceAll(un, (n) => {
1787
1788
  const r = n.slice(1);
1788
1789
  if (!r.startsWith("./") && !r.startsWith("../"))
1789
1790
  return n;
1790
- const a = u.join(s, r), l = !r.endsWith(".js") && !r.split("/").at(-1).includes(".") ? cn(t.dir.distComponents, a) : a, d = l.startsWith(t.dir.distComponents) ? t.dir.dist + Ge(l.slice(t.dir.dist.length), t.apiExtractor) : l;
1791
+ const a = u.join(s, r), l = !r.endsWith(".js") && !r.split("/").at(-1).includes(".") ? ln(t.dir.distComponents, a) : a, d = l.startsWith(t.dir.distComponents) ? t.dir.dist + Ge(l.slice(t.dir.dist.length), t.apiExtractor) : l;
1791
1792
  if (i === s && a === d)
1792
1793
  return n;
1793
1794
  const c = he(i, d), p = n.endsWith("/") ? `${c}/` : c;
@@ -1796,7 +1797,7 @@ const ln = -1, dn = -2, pn = /["']\.\.?\/[^'"]+/gu, un = (e, t, i, s) => e.repla
1796
1797
  const i = u.relative(e, t);
1797
1798
  return i.startsWith(".") ? i : `.${u.sep}${i}`;
1798
1799
  };
1799
- async function mn(e, t, i) {
1800
+ async function fn(e, t, i) {
1800
1801
  const s = u.resolve(e.dir.root, t);
1801
1802
  e.viteConfig.build.emptyOutDir !== !1 && await _(s) && await Ms(s, { recursive: !0, force: !0 }), await ie(s, { recursive: !0 }), await Js(e.dir.distCdn, u.join(s, "build"), { recursive: !0 });
1802
1803
  const n = [
@@ -1840,17 +1841,17 @@ async function mn(e, t, i) {
1840
1841
  ), await e.options.build?.webApp?.afterBuildEnd?.(e);
1841
1842
  }
1842
1843
  const At = /* @__PURE__ */ new Map();
1843
- function fn(e) {
1844
+ function gn(e) {
1844
1845
  const t = e.endsWith(".js") ? `${e.slice(0, -3)}.d.ts` : `${e}.d.ts`, i = at(`node_modules/${t}`);
1845
1846
  if (i === void 0)
1846
1847
  throw Error(`Could not find declarations for ${e} while transforming a dynamic CDN import.`);
1847
1848
  const s = At.get(i);
1848
1849
  if (s !== void 0)
1849
1850
  return s;
1850
- const r = o.createSourceFile(i, Ws(i, "utf8"), o.ScriptTarget.Latest).statements.some(gn);
1851
+ const r = o.createSourceFile(i, Ws(i, "utf8"), o.ScriptTarget.Latest).statements.some(hn);
1851
1852
  return At.set(i, r), r;
1852
1853
  }
1853
- function gn(e) {
1854
+ function hn(e) {
1854
1855
  return o.isExportAssignment(e) ? !e.isExportEquals : o.isClassDeclaration(e) || o.isFunctionDeclaration(e) ? e.modifiers?.some((t) => t.kind === o.SyntaxKind.DefaultKeyword) === !0 : o.isExportDeclaration(e) && !e.isTypeOnly && e.exportClause !== void 0 ? o.isNamedExports(e.exportClause) && e.exportClause.elements.some((t) => !t.isTypeOnly && t.name.text === "default") : !1;
1855
1856
  }
1856
1857
  const Ki = /* @__PURE__ */ new Set([
@@ -1866,8 +1867,8 @@ const Ki = /* @__PURE__ */ new Set([
1866
1867
  "collection",
1867
1868
  "extras",
1868
1869
  "support"
1869
- ]), O = "@arcgis/lumina:buildCdn", le = "cdn", _i = "index", Q = "main";
1870
- function hn(e) {
1870
+ ]), O = "@arcgis/lumina:buildCdn", le = "cdn", _i = "index", Z = "main";
1871
+ function yn(e) {
1871
1872
  const { skip: t = !1, namespace: i, esbuildOptions: s = {}, entrypointTransformer: n } = e.options.build?.cdn ?? {}, r = e.options.build?.webApp?.destination, a = i !== void 0;
1872
1873
  if (a) {
1873
1874
  if (i.toLowerCase() !== i)
@@ -1884,8 +1885,8 @@ function hn(e) {
1884
1885
  if (e.provideAssets([
1885
1886
  {
1886
1887
  type: "dynamic",
1887
- source: () => xr(e),
1888
- destination: `../${a ? l : Q}.css`
1888
+ source: () => Ar(e),
1889
+ destination: `../${a ? l : Z}.css`
1889
1890
  }
1890
1891
  ]), !t)
1891
1892
  return {
@@ -1900,7 +1901,7 @@ function hn(e) {
1900
1901
  );
1901
1902
  return;
1902
1903
  }
1903
- const d = q && D().name !== "@arcgis/embeddable-components", c = Date.now(), p = Array.isArray(s.entryPoints) ? s.entryPoints.map((g) => typeof g == "string" ? { in: g, out: "" } : g) : typeof s.entryPoints == "object" ? Object.entries(s.entryPoints).map(([g, h]) => ({ in: h, out: g })) : [], m = await yn(
1904
+ const d = q && D().name !== "@arcgis/embeddable-components", c = Date.now(), p = Array.isArray(s.entryPoints) ? s.entryPoints.map((g) => typeof g == "string" ? { in: g, out: "" } : g) : typeof s.entryPoints == "object" ? Object.entries(s.entryPoints).map(([g, h]) => ({ in: h, out: g })) : [], m = await vn(
1904
1905
  e,
1905
1906
  l,
1906
1907
  s,
@@ -1908,7 +1909,7 @@ function hn(e) {
1908
1909
  n,
1909
1910
  d
1910
1911
  );
1911
- await vn(
1912
+ await bn(
1912
1913
  m,
1913
1914
  e,
1914
1915
  a ? `${l}.esm` : l,
@@ -1916,11 +1917,11 @@ function hn(e) {
1916
1917
  d
1917
1918
  );
1918
1919
  const f = Date.now();
1919
- $.info(O, `CDN was built in ${f - c}ms`), r && await mn(e, r, `${a ? `${l}.esm` : l}.js`);
1920
+ $.info(O, `CDN was built in ${f - c}ms`), r && await fn(e, r, `${a ? `${l}.esm` : l}.js`);
1920
1921
  }
1921
1922
  };
1922
1923
  }
1923
- async function yn(e, t, i, s, n, r) {
1924
+ async function vn(e, t, i, s, n, r) {
1924
1925
  const a = e.environment;
1925
1926
  if (i.minify && r)
1926
1927
  throw Error(
@@ -1996,7 +1997,7 @@ ${Ti(e._globalCssString, e)}`, d = n?.(l, e) ?? l;
1996
1997
  setup(c) {
1997
1998
  const p = e.options.build?.cdn?.namespace === void 0 ? (
1998
1999
  // eslint-disable-next-line require-unicode-regexp
1999
- new RegExp(`\\/${le}\\/${Q}\\.css$`)
2000
+ new RegExp(`\\/${le}\\/${Z}\\.css$`)
2000
2001
  ) : (
2001
2002
  // eslint-disable-next-line require-unicode-regexp
2002
2003
  new RegExp(`\\/${e.options.build.cdn.namespace}\\/${e.options.build.cdn.namespace}\\.css$`)
@@ -2029,7 +2030,7 @@ ${Ti(e._globalCssString, e)}`, d = n?.(l, e) ?? l;
2029
2030
  });
2030
2031
  }
2031
2032
  const Lt = "stdin.js";
2032
- async function vn(e, t, i, s, n) {
2033
+ async function bn(e, t, i, s, n) {
2033
2034
  const r = t.dir.distCdn, a = `${i}.js`;
2034
2035
  let l;
2035
2036
  n && (l = new Set(s.map((p) => `${p.out}.js`)), l.add(a));
@@ -2040,16 +2041,16 @@ async function vn(e, t, i, s, n) {
2040
2041
  isProcessing: !1,
2041
2042
  isAsync: void 0,
2042
2043
  oldSingleExportName: void 0
2043
- }, f = G(p.path.slice(r.length));
2044
+ }, f = X(p.path.slice(r.length));
2044
2045
  if (f === Lt) {
2045
2046
  if (n) {
2046
- const h = p.text.match(bn)?.[0];
2047
+ const h = p.text.match(wn)?.[0];
2047
2048
  if (h === void 0)
2048
2049
  throw Error(
2049
2050
  `Failed to find the runtime variable name in the CDN entrypoint file. This likely indicates a bug in Lumina. ${Lt} contents:
2050
2051
  ${p.text}`
2051
2052
  );
2052
- m.code = `${m.code.trimEnd()}${wn(h, s)}`, m.isAsync = !1;
2053
+ m.code = `${m.code.trimEnd()}${Sn(h, s)}`, m.isAsync = !1;
2053
2054
  }
2054
2055
  return [a, m];
2055
2056
  }
@@ -2079,8 +2080,8 @@ ${p.text}`
2079
2080
  }
2080
2081
  await Promise.all(c.values()), await Promise.all(Array.from(d.entries(), async ([p, { code: m }]) => await z(r + p, m)));
2081
2082
  }
2082
- const bn = /(?<=;var [a-zA-Z$_]=[a-zA-Z$_]\()[a-zA-Z$_](?=,\{")/u;
2083
- function wn(e, t) {
2083
+ const wn = /(?<=;var [a-zA-Z$_]=[a-zA-Z$_]\()[a-zA-Z$_](?=,\{")/u;
2084
+ function Sn(e, t) {
2084
2085
  let i = [
2085
2086
  "window.$arcgis",
2086
2087
  "||",
@@ -2132,7 +2133,7 @@ function Ui(e, t) {
2132
2133
  e.isProcessing = !0;
2133
2134
  const i = [], s = [], n = [], r = /* @__PURE__ */ new Set(), a = [];
2134
2135
  let l = 0;
2135
- const d = e.code.matchAll(Sn);
2136
+ const d = e.code.matchAll(Cn);
2136
2137
  for (const C of d) {
2137
2138
  const [L, A, M, j, N] = C, K = N.startsWith(Le);
2138
2139
  if (l !== 0 && l !== C.index) {
@@ -2174,7 +2175,7 @@ ${R.code}`
2174
2175
  e.code = jt(e.code, t);
2175
2176
  return;
2176
2177
  }
2177
- const p = Tn(r);
2178
+ const p = $n(r);
2178
2179
  let m = e.code.slice(0, l);
2179
2180
  for (let C = a.length - 1; C >= 0; C--) {
2180
2181
  const [L, A, M, j] = a[C];
@@ -2193,7 +2194,7 @@ ${R.code}`
2193
2194
  }
2194
2195
  const Wi = "export default $arcgis.t(";
2195
2196
  function Nt(e) {
2196
- const t = Cn.exec(e.code), i = t?.index ?? e.code.length;
2197
+ const t = En.exec(e.code), i = t?.index ?? e.code.length;
2197
2198
  let s = "";
2198
2199
  if (t !== null) {
2199
2200
  const n = t[1].split(",");
@@ -2209,7 +2210,7 @@ function Nt(e) {
2209
2210
  }
2210
2211
  return [i, s];
2211
2212
  }
2212
- const Sn = /import(?:(\{[^}]+\})from|\*as ([\w$]+) from| ([\w$]+) from)?"([^"]+)";/gu, Cn = /export\{([^}]+)\};\n$/u, Le = "@arcgis/core/";
2213
+ const Cn = /import(?:(\{[^}]+\})from|\*as ([\w$]+) from| ([\w$]+) from)?"([^"]+)";/gu, En = /export\{([^}]+)\};\n$/u, Le = "@arcgis/core/";
2213
2214
  function zi(e, t) {
2214
2215
  if (!e.startsWith("./"))
2215
2216
  return;
@@ -2221,10 +2222,10 @@ function zi(e, t) {
2221
2222
  return s;
2222
2223
  }
2223
2224
  function jt(e, t) {
2224
- return e.replaceAll(En, (i, s) => {
2225
+ return e.replaceAll(Tn, (i, s) => {
2225
2226
  if (s.startsWith(Le)) {
2226
2227
  const n = qi(s.slice(Le.length));
2227
- return `$arcgis.t(m=>${fn(s) ? "({default:m[0]})" : "m[0]"},"${n}")`;
2228
+ return `$arcgis.t(m=>${gn(s) ? "({default:m[0]})" : "m[0]"},"${n}")`;
2228
2229
  } else if (s.startsWith("./")) {
2229
2230
  const n = zi(s, t);
2230
2231
  if (n?.isAsync === !0)
@@ -2233,28 +2234,28 @@ function jt(e, t) {
2233
2234
  return i;
2234
2235
  });
2235
2236
  }
2236
- const En = /(?<![.\w\d])import\("([^"]+)"\)/gu, qi = (e) => e.endsWith(".js") ? e.slice(0, -3) : e;
2237
- function Tn(e) {
2237
+ const Tn = /(?<![.\w\d])import\("([^"]+)"\)/gu, qi = (e) => e.endsWith(".js") ? e.slice(0, -3) : e;
2238
+ function $n(e) {
2238
2239
  const t = [it];
2239
2240
  return () => {
2240
2241
  for (; ; ) {
2241
- const i = kn(t);
2242
- if (In(t), !e.has(i))
2242
+ const i = In(t);
2243
+ if (xn(t), !e.has(i))
2243
2244
  return e.add(i), i;
2244
2245
  }
2245
2246
  };
2246
2247
  }
2247
- const it = 0, ht = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_", Hi = `${ht}0123456789`, $n = ht.length, Pn = Hi.length;
2248
- function kn(e) {
2248
+ const it = 0, ht = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_", Hi = `${ht}0123456789`, Pn = ht.length, kn = Hi.length;
2249
+ function In(e) {
2249
2250
  let t = ht[e[0]];
2250
2251
  for (let i = 1; i < e.length; ++i)
2251
2252
  t += Hi[e[i]];
2252
2253
  return t;
2253
2254
  }
2254
- function In(e) {
2255
+ function xn(e) {
2255
2256
  let t = e.length - 1;
2256
2257
  for (; t >= 0; ) {
2257
- const i = t === 0 ? $n : Pn;
2258
+ const i = t === 0 ? Pn : kn;
2258
2259
  if (e[t] += 1, e[t] >= i)
2259
2260
  e[t] = it, t--;
2260
2261
  else
@@ -2266,7 +2267,7 @@ function Re(e = D(), t = !1) {
2266
2267
  const i = e.name === "@esri/calcite-components", s = mt(e) ?? e.version, n = s.includes("next");
2267
2268
  if (i && n)
2268
2269
  return `https://cdn.jsdelivr.net/npm/@esri/calcite-components@${s}/dist/${le}/`;
2269
- const r = t || n ? "jsdev.arcgis.com" : "js.arcgis.com", a = xn(e.name), l = An(s);
2270
+ const r = t || n ? "jsdev.arcgis.com" : "js.arcgis.com", a = An(e.name), l = Ln(s);
2270
2271
  if (l === void 0)
2271
2272
  throw Error(
2272
2273
  b(
@@ -2276,15 +2277,15 @@ function Re(e = D(), t = !1) {
2276
2277
  );
2277
2278
  return a === "core" ? `https://${r}/${l}/` : i ? `https://${r}/${a}/${l}/` : `https://${r}/${l}/${a}/`;
2278
2279
  }
2279
- const xn = (e) => e.split("/").pop() ?? e;
2280
- function An(e) {
2280
+ const An = (e) => e.split("/").pop() ?? e;
2281
+ function Ln(e) {
2281
2282
  const t = /^(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)(?<prerelease>-.*)?$/u, i = e.match(t);
2282
2283
  if (i?.groups === void 0)
2283
2284
  return;
2284
2285
  const { major: s, minor: n, patch: r, prerelease: a } = i.groups, l = `${s}.${n}.${r}`;
2285
2286
  return a?.startsWith("-next") ? `${l}-next` : l;
2286
2287
  }
2287
- async function Ln(e, t, i, s, n) {
2288
+ async function Nn(e, t, i, s, n) {
2288
2289
  const r = t.packageName, { hasCss: a, cdnName: l } = await Vi(t.packageLocation) ?? {};
2289
2290
  if (i === "cdn") {
2290
2291
  const m = t.cdnUrl ?? Re(t.packageJson, n);
@@ -2307,7 +2308,7 @@ async function Ln(e, t, i, s, n) {
2307
2308
  }
2308
2309
  ];
2309
2310
  }
2310
- const d = `${r}/dist/${l}/${l}.css${Y}`, c = a ? [
2311
+ const d = `${r}/dist/${l}/${l}.css${Q}`, c = a ? [
2311
2312
  `import styles$${s} from "${d}";`,
2312
2313
  `document.adoptedStyleSheets = [...document.adoptedStyleSheets, styles$${s}.styleSheet];`
2313
2314
  ] : [], p = `${r}/dist/esm/loader.js`;
@@ -2350,8 +2351,8 @@ async function Ft(e, t) {
2350
2351
  cdnName: t
2351
2352
  } : void 0;
2352
2353
  }
2353
- async function Nn(e, t, i, s, n) {
2354
- const a = t.packageJson.exports?.[`./${Q}.css`] === void 0 ? await Vi(t.packageLocation) : void 0, l = a?.cdnName ?? le, d = a === void 0 ? `${_i}.js` : `${a.cdnName}.esm.js`;
2354
+ async function jn(e, t, i, s, n) {
2355
+ const a = t.packageJson.exports?.[`./${Z}.css`] === void 0 ? await Vi(t.packageLocation) : void 0, l = a?.cdnName ?? le, d = a === void 0 ? `${_i}.js` : `${a.cdnName}.esm.js`;
2355
2356
  if (i === "cdn")
2356
2357
  return {
2357
2358
  tag: "script",
@@ -2360,7 +2361,7 @@ async function Nn(e, t, i, s, n) {
2360
2361
  src: `${t.cdnUrl ?? Re(t.packageJson, n)}${d}`
2361
2362
  }
2362
2363
  };
2363
- const c = jn(t.packageJson), p = `${t.packageName}/${u.normalize(c)}${Y}`, m = [
2364
+ const c = Fn(t.packageJson), p = `${t.packageName}/${u.normalize(c)}${Q}`, m = [
2364
2365
  `import styles$${s} from "${p}";`,
2365
2366
  `document.adoptedStyleSheets = [...document.adoptedStyleSheets, styles$${s}.styleSheet];`
2366
2367
  ], f = `${t.packageName}/loader`;
@@ -2379,14 +2380,14 @@ async function Nn(e, t, i, s, n) {
2379
2380
  ]
2380
2381
  };
2381
2382
  }
2382
- function jn(e) {
2383
+ function Fn(e) {
2383
2384
  const { exports: t } = e;
2384
2385
  if (t === void 0)
2385
2386
  throw new Error(
2386
2387
  `Package "${e.name}" does not have an "exports" field. All Lumina packages must include an "exports" field.`
2387
2388
  );
2388
- const i = Object.entries(t).filter(([n]) => u.extname(n) === ".css"), s = i.find(([, n]) => n === `./${Q}.css`);
2389
- return s ? s[0] : i.length > 0 ? i[0][0] : `./${Q}.css`;
2389
+ const i = Object.entries(t).filter(([n]) => u.extname(n) === ".css"), s = i.find(([, n]) => n === `./${Z}.css`);
2390
+ return s ? s[0] : i.length > 0 ? i[0][0] : `./${Z}.css`;
2390
2391
  }
2391
2392
  async function oe(e, t) {
2392
2393
  return t !== void 0 ? await Dt(e, t) : (e._loadersCache ??= Dt(e), await e._loadersCache);
@@ -2397,11 +2398,11 @@ async function Dt(e, t) {
2397
2398
  const a = async (m) => (await Promise.all(
2398
2399
  m.map(async (f) => {
2399
2400
  const g = r++;
2400
- return f.type === "stencil" ? await Ln(n, f, i, g, s) : f.type === "@arcgis/lumina" ? await Nn(n, f, i, g, s) : void 0;
2401
+ return f.type === "stencil" ? await Nn(n, f, i, g, s) : f.type === "@arcgis/lumina" ? await jn(n, f, i, g, s) : void 0;
2401
2402
  })
2402
2403
  )).filter(F).flat(), l = await Promise.all([
2403
2404
  // This may contain an import map so must be first
2404
- nn(e, n, i, s),
2405
+ on(e, n, i, s),
2405
2406
  ne.then(a),
2406
2407
  Gi(e).then(a)
2407
2408
  ]), d = u.join(e.dir.src, "loader.ts"), c = t ?? (i === "cdn" ? `./${e.options.build?.cdn?.namespace ?? le}/` : void 0);
@@ -2442,11 +2443,11 @@ async function Gi(e) {
2442
2443
  ).then((i) => i.filter(F)), await e._serveOnlyDependencies);
2443
2444
  }
2444
2445
  const Xi = "/C:@arcgis/lumina-compiler/testSetupFile", st = `${Xi}/dependencies`, Rt = /^\/C:@arcgis\/lumina-compiler\/testSetupFile/u, Ue = [Xi];
2445
- function Fn(e) {
2446
+ function Dn(e) {
2446
2447
  return e.apiJsonEnabled ? `${Ot(e)}
2447
2448
  import "${st}";` : Ot(e);
2448
2449
  }
2449
- async function Dn(e) {
2450
+ async function Rn(e) {
2450
2451
  return (await oe(e)).map((i, s) => {
2451
2452
  if ("javascriptCode" in i)
2452
2453
  return i.javascriptCode.join(`
@@ -2457,7 +2458,7 @@ async function Dn(e) {
2457
2458
  * The $index naming is already used by makeLoaders(), so we use the
2458
2459
  * $t prefix to avoid collisions.
2459
2460
  */
2460
- `import styles$t${s} from "${i.cssHref}${Y}";`,
2461
+ `import styles$t${s} from "${i.cssHref}${Q}";`,
2461
2462
  `document.adoptedStyleSheets = [...document.adoptedStyleSheets, styles$t${s}.styleSheet];`
2462
2463
  ].join(`
2463
2464
  `);
@@ -2471,16 +2472,16 @@ async function Dn(e) {
2471
2472
 
2472
2473
  `);
2473
2474
  }
2474
- const Ot = (e) => [e.isInPuppeteerTestBackEnd ? Rn : "", On].join(""), Rn = `import { setupPuppeteerTest } from "@arcgis/lumina-compiler/puppeteerTesting";
2475
+ const Ot = (e) => [e.isInPuppeteerTestBackEnd ? On : "", Mn].join(""), On = `import { setupPuppeteerTest } from "@arcgis/lumina-compiler/puppeteerTesting";
2475
2476
  setupPuppeteerTest();
2476
- `, On = `import { setupLuminaTest } from "@arcgis/lumina-compiler/testing";
2477
+ `, Mn = `import { setupLuminaTest } from "@arcgis/lumina-compiler/testing";
2477
2478
  setupLuminaTest();
2478
- `, Mn = "@arcgis/lumina:generateLoaderTs";
2479
+ `, Jn = "@arcgis/lumina:generateLoaderTs";
2479
2480
  let Ne;
2480
- function Jn(e) {
2481
+ function Bn(e) {
2481
2482
  const t = /[\\\/]src[\\\/]loader\.ts$/u;
2482
2483
  return [zs(e.apiExtractorPluginConfig), {
2483
- name: Mn,
2484
+ name: Jn,
2484
2485
  configResolved() {
2485
2486
  Ne = `${e.dir.root}src/loader.ts`;
2486
2487
  },
@@ -2495,7 +2496,7 @@ function Jn(e) {
2495
2496
  id: t
2496
2497
  },
2497
2498
  async handler() {
2498
- return e.apiJsonDeferred !== void 0 && await e.apiJsonDeferred.promise, Ar(e);
2499
+ return e.apiJsonDeferred !== void 0 && await e.apiJsonDeferred.promise, Lr(e);
2499
2500
  }
2500
2501
  },
2501
2502
  async handleHotUpdate() {
@@ -2517,7 +2518,7 @@ function Jn(e) {
2517
2518
  filter: {
2518
2519
  id: Rt
2519
2520
  },
2520
- handler: async (r) => r.startsWith(st) ? await Dn(e) : Fn(e)
2521
+ handler: async (r) => r.startsWith(st) ? await Rn(e) : Dn(e)
2521
2522
  }
2522
2523
  }];
2523
2524
  }
@@ -2531,7 +2532,7 @@ const Jt = (e) => {
2531
2532
  path: u.join("/", u.relative(e.dir.root, Ne))
2532
2533
  });
2533
2534
  };
2534
- function Bn(e) {
2535
+ function Kn(e) {
2535
2536
  let t;
2536
2537
  const i = () => [
2537
2538
  ...e.options.assets?.transformers ?? [],
@@ -2585,7 +2586,7 @@ const Yi = (e, t) => ({
2585
2586
  type: "directory",
2586
2587
  source: e,
2587
2588
  destination: u.basename(t)
2588
- }), Qi = { type: "directory", source: "assets/", destination: "" }, We = "@arcgis/lumina:printTotalBuildSize", Kn = (e) => ({
2589
+ }), Qi = { type: "directory", source: "assets/", destination: "" }, We = "@arcgis/lumina:printTotalBuildSize", _n = (e) => ({
2589
2590
  name: We,
2590
2591
  apply: () => e.viteCommand === "build",
2591
2592
  configResolved(t) {
@@ -2604,10 +2605,10 @@ const Yi = (e, t) => ({
2604
2605
  const m = console.log;
2605
2606
  console.log = function(...g) {
2606
2607
  if (m.apply(console, g), g.length === 1 && typeof g[0] == "string") {
2607
- const [h, y] = g[0].match(Un) ?? [];
2608
+ const [h, y] = g[0].match(Wn) ?? [];
2608
2609
  if (!h)
2609
2610
  return;
2610
- p || (p = g[0].slice(0, g[0].indexOf(h) + h.length).replaceAll(Wn, "").length);
2611
+ p || (p = g[0].slice(0, g[0].indexOf(h) + h.length).replaceAll(zn, "").length);
2611
2612
  const v = Number.parseFloat(h.replace(" kB", "").replaceAll(",", ""));
2612
2613
  y ? (c += Number.parseFloat(y.replace(" kB", "").replaceAll(",", "")), d += v) : l += v;
2613
2614
  }
@@ -2623,7 +2624,7 @@ const Yi = (e, t) => ({
2623
2624
  [
2624
2625
  _t,
2625
2626
  y,
2626
- _n,
2627
+ Un,
2627
2628
  "*",
2628
2629
  " ".repeat(p - `${y}*`.length - h.length),
2629
2630
  h,
@@ -2634,12 +2635,12 @@ const Yi = (e, t) => ({
2634
2635
  }
2635
2636
  };
2636
2637
  }
2637
- }), Kt = "\x1B[22m\x1B[1m\x1B[22m", _t = "\x1B[2m", _n = "\x1B[22m\x1B[36m", Un = /\d+(?:,\d+)?\.\d{2} kB/gu, Wn = /\x1B\[\d+m/gu, zn = new Intl.NumberFormat("en", {
2638
+ }), Kt = "\x1B[22m\x1B[1m\x1B[22m", _t = "\x1B[2m", Un = "\x1B[22m\x1B[36m", Wn = /\d+(?:,\d+)?\.\d{2} kB/gu, zn = /\x1B\[\d+m/gu, qn = new Intl.NumberFormat("en", {
2638
2639
  maximumFractionDigits: 2,
2639
2640
  minimumFractionDigits: 2
2640
- }), Ut = (e) => `${zn.format(e)} kB`, qn = (e, t = u.resolve("src")) => u.relative(t, u.join(e, "..", gt.slice(0, -3)));
2641
- var Hn = ["@arcgis-test/lit-components/loader", "@arcgis/ai-components/loader", "@arcgis/api-extractor", "@arcgis/arcade-languageservice", "@arcgis/arcade-parser", "@arcgis/coding-components/loader", "@arcgis/common-components/loader", "@arcgis/core", "@arcgis/embeddable-components/loader", "@arcgis/languages-api-utils", "@arcgis/languages-sdk-spec", "@arcgis/lumina", "@arcgis/lumina-toolkit", "@arcgis/map-components/loader", "@arcgis/node-toolkit", "@arcgis/portal-components/loader", "@arcgis/stencil-to-lumina", "@arcgis/toolkit", "@arcgis/typescript-config"];
2642
- const Wt = "@arcgis/lumina:configureVite", Vn = /\.[cm]?[jt]sx?$/u, Gn = (e) => ({
2641
+ }), Ut = (e) => `${qn.format(e)} kB`, Hn = (e, t = u.resolve("src")) => u.relative(t, u.join(e, "..", gt.slice(0, -3)));
2642
+ var Vn = ["@arcgis-test/lit-components/loader", "@arcgis/ai-components/loader", "@arcgis/api-extractor", "@arcgis/arcade-languageservice", "@arcgis/arcade-parser", "@arcgis/coding-components/loader", "@arcgis/common-components/loader", "@arcgis/core", "@arcgis/embeddable-components/loader", "@arcgis/languages-api-utils", "@arcgis/languages-sdk-spec", "@arcgis/lumina", "@arcgis/lumina-toolkit", "@arcgis/map-components/loader", "@arcgis/node-toolkit", "@arcgis/portal-components/loader", "@arcgis/stencil-to-lumina", "@arcgis/toolkit", "@arcgis/typescript-config"];
2643
+ const Wt = "@arcgis/lumina:configureVite", Gn = /\.[cm]?[jt]sx?$/u, Xn = (e) => ({
2643
2644
  name: Wt,
2644
2645
  async config({
2645
2646
  appType: t,
@@ -2648,9 +2649,9 @@ const Wt = "@arcgis/lumina:configureVite", Vn = /\.[cm]?[jt]sx?$/u, Gn = (e) =>
2648
2649
  build: { cssMinify: n, target: r, sourcemap: a, lib: l, rollupOptions: { output: d = [] } = {}, watch: c, emptyOutDir: p } = {},
2649
2650
  test: m = {}
2650
2651
  }, f) {
2651
- const g = c != null, { include: h, browser: y, environment: v, forceRerunTriggers: w } = m, S = q && ee && Ni(f) ? at(Li, import.meta.dirname) : void 0, T = S === void 0 ? [] : [
2652
- G(u.join(S, "**/*.{ts,tsx,mjs}")),
2653
- `!${G(u.join(S, "**/*.d.ts"))}`
2652
+ const g = c != null, { include: h, browser: y, environment: v, forceRerunTriggers: w } = m, S = q && G && Ni(f) ? at(Li, import.meta.dirname) : void 0, T = S === void 0 ? [] : [
2653
+ X(u.join(S, "**/*.{ts,tsx,mjs}")),
2654
+ `!${X(u.join(S, "**/*.d.ts"))}`
2654
2655
  ], E = {
2655
2656
  // Public utilities exposed by the package
2656
2657
  index: "src/index.ts",
@@ -2706,9 +2707,9 @@ const Wt = "@arcgis/lumina:configureVite", Vn = /\.[cm]?[jt]sx?$/u, Gn = (e) =>
2706
2707
  include: [
2707
2708
  // Used by controllers. Need to add manually because @arcgis/lumina is
2708
2709
  // excluded per comment below, so Vite will discover these usages too late.
2709
- ...q && !ee ? ["@arcgis/core/applications/Components/reactiveUtils.js", "@arcgis/core/core/reactiveUtils.js"] : [],
2710
+ ...q && !G ? ["@arcgis/core/applications/Components/reactiveUtils.js", "@arcgis/core/core/reactiveUtils.js"] : [],
2710
2711
  // Used by core. Because we exclude core from scanning, these are discovered late, causing errors
2711
- ...q && ee ? [
2712
+ ...q && G ? [
2712
2713
  "tslib",
2713
2714
  "@arcgis/core > luxon",
2714
2715
  "@arcgis/core > @esri/arcgis-html-sanitizer",
@@ -2730,8 +2731,8 @@ const Wt = "@arcgis/lumina:configureVite", Vn = /\.[cm]?[jt]sx?$/u, Gn = (e) =>
2730
2731
  * inside the package, and by Calcite outside the package).
2731
2732
  */
2732
2733
  exclude: [
2733
- ...ee ? [
2734
- ...Hn,
2734
+ ...G ? [
2735
+ ...Vn,
2735
2736
  // This exact import is also supplied through optimizableImports in `dependencies/arcgisCore.ts`
2736
2737
  // Optimizing it in the monorepo creates a separate core config instance, so the app does not receive the
2737
2738
  // configured assetsPath.
@@ -2855,7 +2856,7 @@ const Wt = "@arcgis/lumina:configureVite", Vn = /\.[cm]?[jt]sx?$/u, Gn = (e) =>
2855
2856
  configureServer(t) {
2856
2857
  t.middlewares.use((i, s, n) => {
2857
2858
  const r = i.url?.split("?", 1)[0];
2858
- r !== void 0 && Vn.test(r) && delete i.headers["sec-fetch-dest"], n();
2859
+ r !== void 0 && Gn.test(r) && delete i.headers["sec-fetch-dest"], n();
2859
2860
  });
2860
2861
  },
2861
2862
  /**
@@ -2876,15 +2877,15 @@ const Wt = "@arcgis/lumina:configureVite", Vn = /\.[cm]?[jt]sx?$/u, Gn = (e) =>
2876
2877
  e._originalRollupInputOptions ??= t.input;
2877
2878
  const s = { ...e._originalRollupInputOptions };
2878
2879
  i.forEach((n) => {
2879
- const r = qn(n);
2880
+ const r = Hn(n);
2880
2881
  s[r] = n;
2881
2882
  }), t.input = s;
2882
2883
  }
2883
- }), Se = "@arcgis/lumina:serveLocalCdn", Xn = /^\/?@arcgis\/core(?=\/|$)/u, Zi = "/index.js", Yn = je(Zi), rt = `\0${Se}:index`, Qn = je(rt), Zn = 3e3, eo = [
2884
+ }), Se = "@arcgis/lumina:serveLocalCdn", Yn = /^\/?@arcgis\/core(?=\/|$)/u, Zi = "/index.js", Qn = je(Zi), rt = `\0${Se}:index`, Zn = je(rt), eo = 3e3, to = [
2884
2885
  /^https?:\/\/localhost(?::[0-9]+)?$/u,
2885
2886
  /^https?:\/\/(?:[a-z0-9-]+\.)*(?:arcgis|esri)\.com(?::[0-9]+)?$/iu
2886
2887
  ];
2887
- function to(e) {
2888
+ function io(e) {
2888
2889
  if (!q)
2889
2890
  return;
2890
2891
  const t = D().name, i = t.split("/").pop() ?? t, s = `/${i}/index.js`, n = je(s), r = `\0${Se}:${i}`, a = je(r);
@@ -2892,30 +2893,30 @@ function to(e) {
2892
2893
  name: Se,
2893
2894
  enforce: "pre",
2894
2895
  apply(l) {
2895
- const d = ro(e, l);
2896
+ const d = no(e, l);
2896
2897
  return d || (e._localCdnCore = void 0), d;
2897
2898
  },
2898
2899
  config: {
2899
2900
  order: "post",
2900
2901
  handler(l, d) {
2901
- const c = l.server, p = Ni(d), m = p ? Li : Zr, f = at(m, import.meta.dirname);
2902
+ const c = l.server, p = Ni(d), m = p ? Li : en, f = at(m, import.meta.dirname);
2902
2903
  if (f === void 0)
2903
2904
  throw Error(b(Se, `Unable to find ${m}.`));
2904
2905
  return e._localCdnCore = p ? { packageLocation: u.dirname(f), sourceLocation: f } : { packageLocation: f }, {
2905
2906
  server: {
2906
- port: c?.port ?? Zn,
2907
- cors: c?.cors ?? { origin: eo }
2907
+ port: c?.port ?? eo,
2908
+ cors: c?.cors ?? { origin: to }
2908
2909
  },
2909
2910
  resolve: {
2910
2911
  // The alias also matches CDN-rooted requests such as /@arcgis/core/WebMap.js. Vite resolves .js requests
2911
2912
  // to TypeScript in source mode and handles relative and bare imports from the resulting filesystem path.
2912
- alias: [{ find: Xn, replacement: f }]
2913
+ alias: [{ find: Yn, replacement: f }]
2913
2914
  }
2914
2915
  };
2915
2916
  }
2916
2917
  },
2917
2918
  resolveId: {
2918
- filter: { id: [Yn, n] },
2919
+ filter: { id: [Qn, n] },
2919
2920
  handler(l) {
2920
2921
  if (l === Zi)
2921
2922
  return rt;
@@ -2924,17 +2925,17 @@ function to(e) {
2924
2925
  }
2925
2926
  },
2926
2927
  load: {
2927
- filter: { id: [Qn, a] },
2928
+ filter: { id: [Zn, a] },
2928
2929
  async handler(l) {
2929
2930
  if (l === rt)
2930
2931
  return `import ${JSON.stringify(s)};
2931
2932
  `;
2932
2933
  if (l === r)
2933
- return await so(e);
2934
+ return await ro(e);
2934
2935
  }
2935
2936
  },
2936
2937
  handleHotUpdate({ file: l, server: d }) {
2937
- if (io(l, e._localCdnCore?.sourceLocation))
2938
+ if (so(l, e._localCdnCore?.sourceLocation))
2938
2939
  return d.ws.send({ type: "full-reload" }), [];
2939
2940
  }
2940
2941
  };
@@ -2942,30 +2943,30 @@ function to(e) {
2942
2943
  function je(e) {
2943
2944
  return new RegExp(`^${RegExp.escape(e)}$`, "u");
2944
2945
  }
2945
- function io(e, t) {
2946
+ function so(e, t) {
2946
2947
  return t !== void 0 && e.startsWith(u.join(t, u.sep));
2947
2948
  }
2948
- async function so(e) {
2949
+ async function ro(e) {
2949
2950
  const t = e.viteConfig.server, i = t.origin?.replace(/\/$/u, "") ?? `${t.https ? "https" : "http"}://localhost:${String(t.port)}`;
2950
2951
  return `${(await oe(e, `${i}/`)).flatMap((n) => "javascriptCode" in n ? n.javascriptCode : []).join(`
2951
2952
  `)}
2952
2953
  `;
2953
2954
  }
2954
- function ro(e, t) {
2955
- return ee && e.viteCommand === "serve" && !e.isInTest && t.resolve?.conditions?.includes("storybook") !== !0 && t.server?.middlewareMode !== !0;
2955
+ function no(e, t) {
2956
+ return G && e.viteCommand === "serve" && !e.isInTest && t.resolve?.conditions?.includes("storybook") !== !0 && t.server?.middlewareMode !== !0;
2956
2957
  }
2957
- const no = (e) => ({
2958
+ const oo = (e) => ({
2958
2959
  name: "@arcgis/lumina:setAssetPath",
2959
2960
  apply: () => e.viteCommand === "build",
2960
2961
  config: (t) => ({
2961
2962
  base: t.base ?? e.options.assets?.defaultPath ?? Re()
2962
2963
  })
2963
2964
  });
2964
- function oo(e = D()) {
2965
+ function ao(e = D()) {
2965
2966
  const t = mt(e) ?? "0.0.1";
2966
2967
  return Es(t);
2967
2968
  }
2968
- const ao = (e) => `/* ${e} */`, k = (e) => (t, i) => {
2969
+ const co = (e) => `/* ${e} */`, k = (e) => (t, i) => {
2969
2970
  Object.defineProperty(t, i, {
2970
2971
  get() {
2971
2972
  throw Error(
@@ -2995,7 +2996,7 @@ function pe(e) {
2995
2996
  `Documentation file name was expected to be a relative path (relative to dist). Instead, received an absolute path: ${e}`
2996
2997
  )
2997
2998
  );
2998
- return G(e);
2999
+ return X(e);
2999
3000
  }
3000
3001
  const ue = {
3001
3002
  vsCodeHtml: "docs/vscode.html-custom-data.json",
@@ -3005,7 +3006,7 @@ const ue = {
3005
3006
  stencilLikeDocsJson: "docs/docs.json"
3006
3007
  }, nt = (e) => e.viteConfig.root.includes("/test-packages/") ? 2 : void 0;
3007
3008
  async function es(e, t, i = D()) {
3008
- const s = co(e, i), n = u.join(t, "lumina.ts"), a = await _(n) ? await W(n, "utf8") : "";
3009
+ const s = lo(e, i), n = u.join(t, "lumina.ts"), a = await _(n) ? await W(n, "utf8") : "";
3009
3010
  if (a.trim().replaceAll(`\r
3010
3011
  `, `
3011
3012
  `) === s.trim())
@@ -3025,7 +3026,7 @@ ${a}`
3025
3026
  );
3026
3027
  return ci(n, s), !0;
3027
3028
  }
3028
- function co(e, t = D()) {
3029
+ function lo(e, t = D()) {
3029
3030
  const i = e.filter((d) => d.type === "@arcgis/lumina").map((d) => `
3030
3031
  /// <reference types="${d.packageName}/types/lumina" />`), s = e.filter((d) => d.type === "stencil"), n = s.map(
3031
3032
  (d, c) => `
@@ -3036,7 +3037,7 @@ declare module "@arcgis/lumina" {
3036
3037
  interface ImportStencilElements extends ${s.map((d, c) => `JSX$${c}.IntrinsicElements`).join(", ")} {}
3037
3038
  }`, a = t.devDependencies ?? {};
3038
3039
  return [
3039
- lo,
3040
+ po,
3040
3041
  a.vitest ? `
3041
3042
  /// <reference types="vitest/config" />
3042
3043
  /// <reference types="vitest/browser" />` : "",
@@ -3047,7 +3048,7 @@ declare module "@arcgis/lumina" {
3047
3048
  `
3048
3049
  ].join("");
3049
3050
  }
3050
- const lo = `/**
3051
+ const po = `/**
3051
3052
  * This file is autogenerated by \`@arcgis/lumina-compiler\` - do not edit it manually.
3052
3053
  * Manual edits will be overwritten.
3053
3054
  *
@@ -3066,13 +3067,13 @@ const lo = `/**
3066
3067
  * is doing:
3067
3068
  * https://github.com/storybookjs/storybook/blob/a5c2cf1712f70b4e3ecf38d3c98e7db8e8d67849/code/builders/builder-vite/src/plugins/code-generator-plugin.ts#L110
3068
3069
  */
3069
- e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand === "build" && !e.options.build?.cdn?.skip && e.options.build?.webApp?.destination !== void 0, po = (e) => ({
3070
+ e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand === "build" && !e.options.build?.cdn?.skip && e.options.build?.webApp?.destination !== void 0, uo = (e) => ({
3070
3071
  name: Ce,
3071
3072
  async configureServer(t) {
3072
- q && (e.server = t, await an(e));
3073
+ q && (e.server = t, await cn(e));
3073
3074
  },
3074
3075
  configResolved() {
3075
- !e.isInTest && !e.isInStorybook && (e._updateLuminaTsPromise = uo(e).catch(
3076
+ !e.isInTest && !e.isInStorybook && (e._updateLuminaTsPromise = mo(e).catch(
3076
3077
  (t) => $.error(Ce, `Failed to update package's src/lumina.ts: ${String(t)}`)
3077
3078
  ));
3078
3079
  },
@@ -3122,25 +3123,25 @@ e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand
3122
3123
  await e._updateLuminaTsPromise;
3123
3124
  }
3124
3125
  });
3125
- async function uo(e) {
3126
+ async function mo(e) {
3126
3127
  const i = (await Promise.all([ne, Gi(e)])).flat();
3127
3128
  if (!await es(i, e.dir.src))
3128
3129
  return;
3129
3130
  let n = !1;
3130
3131
  function r() {
3131
- n || $.warn(Ce, mo), n = !0;
3132
+ n || $.warn(Ce, fo), n = !0;
3132
3133
  }
3133
3134
  process.on("exit", () => {
3134
3135
  r(), clearTimeout(l);
3135
3136
  });
3136
3137
  const l = setTimeout(r, 2e3);
3137
3138
  }
3138
- const mo = qs(
3139
+ const fo = qs(
3139
3140
  "greenBright",
3140
3141
  `lumina.ts has been updated (potentially because your dependencies changed). Please commit the updated file.
3141
3142
  If build failed with TypeScript errors, try running the build again to check whether new lumina.ts resolves the errors.`
3142
3143
  );
3143
- async function fo(e) {
3144
+ async function go(e) {
3144
3145
  const t = e.options.apiExtractor?.configFilePath === "" ? void 0 : await Vs(process.cwd()), i = e.apiExtractorPluginConfig.unsafeConfigOverride === void 0 || t === void 0 ? t ?? e.apiExtractorPluginConfig.unsafeConfigOverride : Pt(t, e.apiExtractorPluginConfig.unsafeConfigOverride);
3145
3146
  e._documentationFileNames.apiJson = i?.context?.apiJsonEmitPath === void 0 ? e.options.documentation?.apiJsonFileName === !1 ? void 0 : e.options.documentation?.apiJsonFileName ? pe(e.options.documentation.apiJsonFileName) : ue.apiJson : i.context.apiJsonEmitPath || void 0, e._documentationFileNames.apiJson !== void 0 && e.provideAssets([
3146
3147
  {
@@ -3255,10 +3256,10 @@ function zt(e, t) {
3255
3256
  }
3256
3257
  e._localDefinedComponents = void 0, e.privateApiJson = t, e.apiJsonComponents = s, e.apiJson = i, n !== void 0 && (e.componentFilesPromise = Promise.resolve(n));
3257
3258
  }
3258
- var go = Object.defineProperty, I = (e, t, i, s) => {
3259
+ var ho = Object.defineProperty, I = (e, t, i, s) => {
3259
3260
  for (var n = void 0, r = e.length - 1, a; r >= 0; r--)
3260
3261
  (a = e[r]) && (n = a(t, i, n) || n);
3261
- return n && go(t, i, n), n;
3262
+ return n && ho(t, i, n), n;
3262
3263
  };
3263
3264
  const V = "@arcgis/lumina:context";
3264
3265
  class P {
@@ -3335,7 +3336,7 @@ class P {
3335
3336
  webTypes: i.jetBrains === !1 ? void 0 : i.jetBrains?.webTypesFileName ? pe(i.jetBrains.webTypesFileName) : ue.webTypes,
3336
3337
  vsCodeHtml: i.vsCode === !1 ? void 0 : i.vsCode?.htmlFileName ? pe(i.vsCode.htmlFileName) : ue.vsCodeHtml,
3337
3338
  vsCodeCss: i.vsCode === !1 ? void 0 : i.vsCode?.cssFileName ? pe(i.vsCode.cssFileName) : ue.vsCodeCss
3338
- }, this.apiExtractorPluginConfig = this.options.apiExtractor ?? {}, this.configsPromise = fo(this);
3339
+ }, this.apiExtractorPluginConfig = this.options.apiExtractor ?? {}, this.configsPromise = go(this);
3339
3340
  const s = process.cwd().length + 1;
3340
3341
  this.componentFilesPromise = this.configsPromise.then(() => {
3341
3342
  const r = this.apiExtractorPluginConfig.unsafeConfigOverride.types.typeScriptConfig.config.fileNames, a = [];
@@ -3345,8 +3346,8 @@ class P {
3345
3346
  }
3346
3347
  return a;
3347
3348
  }), ki(void 0, t);
3348
- const n = t.build?.preamble ?? oo();
3349
- this.banner = ao(n);
3349
+ const n = t.build?.preamble ?? ao();
3350
+ this.banner = co(n);
3350
3351
  }
3351
3352
  _inferBuildSetup({ command: t, mode: i }, s) {
3352
3353
  this.isInTest = process.env.NODE_ENV === "test", i === "production" || i === "development" ? this.environment = i : i === "test" || i === "benchmark" ? (this.environment = "development", this.isInTest = !0) : ($.warn(Pi.name, `Vite is running in unknown mode "${i}". Assuming development`), this.environment = "development"), this.viteCommand = t;
@@ -3497,7 +3498,7 @@ I([
3497
3498
  I([
3498
3499
  k("configResolved()")
3499
3500
  ], P.prototype, "_typeScriptPrinter");
3500
- function ho(e, t, i) {
3501
+ function yo(e, t, i) {
3501
3502
  const s = Ii()[t] ?? is(e)[t];
3502
3503
  if (s === void 0) {
3503
3504
  if (e.options?.build?.dependencies?.silenceUnknownJsxElementUsage?.(t, i, e) === !0)
@@ -3512,7 +3513,7 @@ function ho(e, t, i) {
3512
3513
  }
3513
3514
  return s;
3514
3515
  }
3515
- function yo(e, t) {
3516
+ function vo(e, t) {
3516
3517
  return e.packageName === void 0 ? he(t, e.modulePath) : u.join(e.packageName, e.modulePath);
3517
3518
  }
3518
3519
  function is(e) {
@@ -3527,8 +3528,8 @@ function is(e) {
3527
3528
  e.viteCommand === "build"
3528
3529
  ), e._localDefinedComponents;
3529
3530
  }
3530
- const qt = "makeRuntime(", vo = "@arcgis/core", bo = "@arcgis/lumina:injectRuntimeOptions", wo = (e) => ({
3531
- name: bo,
3531
+ const qt = "makeRuntime(", bo = "@arcgis/core", wo = "@arcgis/lumina:injectRuntimeOptions", So = (e) => ({
3532
+ name: wo,
3532
3533
  transform: {
3533
3534
  filter: {
3534
3535
  id: /\/src\/runtime\.ts$/u
@@ -3555,7 +3556,7 @@ const qt = "makeRuntime(", vo = "@arcgis/core", bo = "@arcgis/lumina:injectRunti
3555
3556
  // Dependency injection. Lumina cannot directly import these to avoid
3556
3557
  // a cyclical dependency.
3557
3558
  q ? `
3558
- import {createObservable,trackAccess,createTrackingTarget,runTracked} from "${vo}/applications/Components/reactiveUtils.js";
3559
+ import {createObservable,trackAccess,createTrackingTarget,runTracked} from "${bo}/applications/Components/reactiveUtils.js";
3559
3560
  createObservable,
3560
3561
  runtime.t = trackAccess;
3561
3562
  runtime.o = createObservable;
@@ -3567,11 +3568,11 @@ runtime.r = runTracked;` : ""
3567
3568
  }
3568
3569
  }
3569
3570
  });
3570
- function So(e) {
3571
- return `import "../${e.options.build?.cdn?.namespace === void 0 ? `${le}/${Q}.css` : `${e.options.build.cdn.namespace}/${e.options.build.cdn.namespace}.css`}";
3571
+ function Co(e) {
3572
+ return `import "../${e.options.build?.cdn?.namespace === void 0 ? `${le}/${Z}.css` : `${e.options.build.cdn.namespace}/${e.options.build.cdn.namespace}.css`}";
3572
3573
  `;
3573
3574
  }
3574
- const we = "@arcgis/lumina:addNonLazyImports", Co = (e) => ({
3575
+ const we = "@arcgis/lumina:addNonLazyImports", Eo = (e) => ({
3575
3576
  name: we,
3576
3577
  apply: () => e.viteCommand === "build",
3577
3578
  generateBundle(t, i) {
@@ -3583,7 +3584,7 @@ const we = "@arcgis/lumina:addNonLazyImports", Co = (e) => ({
3583
3584
  if (d !== a && (l.fileName = d), l.type === "chunk") {
3584
3585
  const c = u.dirname(u.join(e.dir.dist, a)), p = d === a ? c : u.dirname(u.join(e.dir.dist, d));
3585
3586
  let m = l.code;
3586
- m = un(m, e, p, c), !e.isInStorybook && d === "chunks/runtime.js" && (r = !0, m = So(e) + m), m = `${e.banner}${n}${m}`, l.code = m;
3587
+ m = mn(m, e, p, c), !e.isInStorybook && d === "chunks/runtime.js" && (r = !0, m = Co(e) + m), m = `${e.banner}${n}${m}`, l.code = m;
3587
3588
  }
3588
3589
  }), !r && !e.isInStorybook)
3589
3590
  throw Error(b(we, "Expected to find a chunks/runtime.js file in the Vite's build output."));
@@ -3620,10 +3621,10 @@ Possible causes:
3620
3621
  return [];
3621
3622
  const d = u.dirname(r), c = e.dir.src + Ge(d.slice(e.dir.src.length), e.apiExtractor), p = u.relative(e.dir.src, c);
3622
3623
  function m(E) {
3623
- const x = ho(e, E, r);
3624
+ const x = yo(e, E, r);
3624
3625
  if (x === void 0)
3625
3626
  return;
3626
- const C = yo(x, p);
3627
+ const C = vo(x, p);
3627
3628
  if (C !== `./${p}`)
3628
3629
  return C.startsWith(".") ? `${C}/${Ht}` : C;
3629
3630
  }
@@ -3650,7 +3651,7 @@ deferredLoaders${w.join("")};` : S;
3650
3651
  }
3651
3652
  }), Ht = "index.js", ss = (e, t, i, s = /* @__PURE__ */ new Set()) => t.flatMap((n) => i.has(n) ? [n] : s.has(n) ? [] : (s.add(n), ss(e, e[n].referencedBy, i, s)));
3652
3653
  function Vt(e, t, i) {
3653
- if (Z(e))
3654
+ if (ee(e))
3654
3655
  return e;
3655
3656
  {
3656
3657
  i === void 0 && t.neededImports.add("nothing");
@@ -3664,18 +3665,18 @@ function Vt(e, t, i) {
3664
3665
  );
3665
3666
  }
3666
3667
  }
3667
- function Z(e) {
3668
+ function ee(e) {
3668
3669
  return (
3669
3670
  // Inlined string literal
3670
3671
  typeof e == "string" || // Syntax kinds that are never undefined
3671
- Eo.has(e.kind) || // Ternary with both branches never undefined
3672
- o.isConditionalExpression(e) && Z(e.whenTrue) && Z(e.whenFalse) || // Binary expression with operator that never results in undefined Or both sides are definitely not undefined
3673
- o.isBinaryExpression(e) && (To.has(e.operatorToken.kind) || Z(e.left) && Z(e.right)) || // `as`, `satisfies`, `()` with definitely not undefined expression
3674
- (o.isParenthesizedExpression(e) || o.isSatisfiesExpression(e) || o.isAsExpression(e)) && Z(e.expression) || // JSX that got converted to html`<p>Something</p>`
3675
- o.isTaggedTemplateExpression(e) && o.isIdentifier(e.tag) && dr.has(e.tag.text)
3672
+ To.has(e.kind) || // Ternary with both branches never undefined
3673
+ o.isConditionalExpression(e) && ee(e.whenTrue) && ee(e.whenFalse) || // Binary expression with operator that never results in undefined Or both sides are definitely not undefined
3674
+ o.isBinaryExpression(e) && ($o.has(e.operatorToken.kind) || ee(e.left) && ee(e.right)) || // `as`, `satisfies`, `()` with definitely not undefined expression
3675
+ (o.isParenthesizedExpression(e) || o.isSatisfiesExpression(e) || o.isAsExpression(e)) && ee(e.expression) || // JSX that got converted to html`<p>Something</p>`
3676
+ o.isTaggedTemplateExpression(e) && o.isIdentifier(e.tag) && pr.has(e.tag.text)
3676
3677
  );
3677
3678
  }
3678
- const Eo = /* @__PURE__ */ new Set([
3679
+ const To = /* @__PURE__ */ new Set([
3679
3680
  o.SyntaxKind.NumericLiteral,
3680
3681
  o.SyntaxKind.BigIntLiteral,
3681
3682
  o.SyntaxKind.StringLiteral,
@@ -3694,7 +3695,7 @@ const Eo = /* @__PURE__ */ new Set([
3694
3695
  o.SyntaxKind.ClassExpression,
3695
3696
  // Trust? Trust.
3696
3697
  o.SyntaxKind.NonNullExpression
3697
- ]), To = /* @__PURE__ */ new Set([
3698
+ ]), $o = /* @__PURE__ */ new Set([
3698
3699
  o.SyntaxKind.PlusEqualsToken,
3699
3700
  o.SyntaxKind.MinusEqualsToken,
3700
3701
  o.SyntaxKind.AsteriskAsteriskEqualsToken,
@@ -3729,9 +3730,9 @@ const Eo = /* @__PURE__ */ new Set([
3729
3730
  o.SyntaxKind.SlashToken,
3730
3731
  o.SyntaxKind.PercentToken,
3731
3732
  o.SyntaxKind.AsteriskAsteriskToken
3732
- ]), $o = {
3733
+ ]), Po = {
3733
3734
  property(e, t, i, s) {
3734
- const n = Po(s, i, e), r = n?.type === "stringifiedReflected", a = n?.type === "reflected" || r;
3735
+ const n = ko(s, i, e), r = n?.type === "stringifiedReflected", a = n?.type === "reflected" || r;
3735
3736
  if (a) {
3736
3737
  const f = qe(t);
3737
3738
  if (f === !0)
@@ -3748,7 +3749,7 @@ const Eo = /* @__PURE__ */ new Set([
3748
3749
  p,
3749
3750
  e,
3750
3751
  m ? "" : void 0
3751
- ), h = i === "value" && (s === "input" || s === "textarea" || s === ke) ? Io(f, e) : f;
3752
+ ), h = i === "value" && (s === "input" || s === "textarea" || s === ke) ? xo(f, e) : f;
3752
3753
  if (h !== p)
3753
3754
  return [m ? `.${i}` : n.name, c, h];
3754
3755
  }
@@ -3821,7 +3822,7 @@ const Eo = /* @__PURE__ */ new Set([
3821
3822
  return [o.factory.createIdentifier(n)];
3822
3823
  }
3823
3824
  };
3824
- function Po(e, t, i) {
3825
+ function ko(e, t, i) {
3825
3826
  if (typeof e == "string") {
3826
3827
  const r = (i.externalComponents[e] ?? i.localComponents[e])?.propToAttribute?.[t];
3827
3828
  if (r !== void 0)
@@ -3896,7 +3897,7 @@ function Gt(e, t) {
3896
3897
  if (i.length === 0)
3897
3898
  return [];
3898
3899
  const s = hi(i);
3899
- if (nr(s)) {
3900
+ if (or(s)) {
3900
3901
  const n = s.replaceAll('"', "&#34;");
3901
3902
  if (n.length > s.length) {
3902
3903
  const r = s.replaceAll("'", "&#39;");
@@ -3915,7 +3916,7 @@ function Xt(e, t, i) {
3915
3916
  `${i} prop value must be an expression. Found ${String(t?.getText(e.sourceFile))}`
3916
3917
  );
3917
3918
  const s = t.expression;
3918
- if (ko(s)) {
3919
+ if (Io(s)) {
3919
3920
  const r = i === "class" ? "safeClassMap" : "safeStyleMap";
3920
3921
  e.neededImports.add(r);
3921
3922
  const a = e.importRenames[r], l = o.factory.createCallExpression(o.factory.createIdentifier(a), void 0, [
@@ -3925,15 +3926,15 @@ function Xt(e, t, i) {
3925
3926
  } else
3926
3927
  return [i, ...Ee(e, t, !0)];
3927
3928
  }
3928
- const ko = (e) => o.isObjectLiteralExpression(e) || o.isPropertyAccessExpression(e) || o.isIdentifier(e) || o.isCallExpression(e) || o.isBinaryExpression(e) || o.isConditionalExpression(e);
3929
- function Io(e, t) {
3929
+ const Io = (e) => o.isObjectLiteralExpression(e) || o.isPropertyAccessExpression(e) || o.isIdentifier(e) || o.isCallExpression(e) || o.isBinaryExpression(e) || o.isConditionalExpression(e);
3930
+ function xo(e, t) {
3930
3931
  t.neededImports.add("live");
3931
3932
  const i = t.importRenames.live;
3932
3933
  return o.factory.createCallExpression(o.factory.createIdentifier(i), void 0, [
3933
3934
  typeof e == "string" ? o.factory.createStringLiteral(e) : e
3934
3935
  ]);
3935
3936
  }
3936
- function xo(e) {
3937
+ function Ao(e) {
3937
3938
  if (e && o.isJsxExpression(e) && e.expression && o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text in Yt && e.expression.arguments.length <= 1)
3938
3939
  return {
3939
3940
  propType: Yt[e.expression.expression.text],
@@ -3951,15 +3952,15 @@ const Yt = {
3951
3952
  bindBooleanAttribute: "booleanAttribute",
3952
3953
  bindEvent: "event"
3953
3954
  };
3954
- function Ao(e, t, i) {
3955
- return No.has(e) ? e : e.startsWith("on") && t !== void 0 && o.isJsxExpression(t) && t.expression !== void 0 ? "event" : ui.has(e) || e.includes("-") ? "attribute" : !pt(i) && (mi.has(e) || (i === Ye ? !1 : i === ke ? (
3955
+ function Lo(e, t, i) {
3956
+ return jo.has(e) ? e : e.startsWith("on") && t !== void 0 && o.isJsxExpression(t) && t.expression !== void 0 ? "event" : ui.has(e) || e.includes("-") ? "attribute" : !pt(i) && (mi.has(e) || (i === Ye ? !1 : i === ke ? (
3956
3957
  // When tag name is dynamic, we can't help but check if the prop name matches an "always attribute" in any html element
3957
3958
  Object.values(Qe).some((r) => r.has(e))
3958
3959
  ) : Qe[i]?.has(e) === !0)) ? kt.has(e) ? "booleanAttribute" : "attribute" : i === "svg" || i === "math" || i === Ye || i !== ke && (lt.has(i) || dt.has(i)) ? e in U.common.reflected || e in U.common.stringifiedReflected || e in U.common.stringifiedNonReflected ? "property" : kt.has(e) ? "booleanAttribute" : "attribute" : "property";
3959
3960
  }
3960
- const Lo = ["class", "style", "ref", "directives", "key", "deferLoad"], No = new Set(Lo), jo = (e) => typeof e != "string" || e.trim().length > 0;
3961
+ const No = ["class", "style", "ref", "directives", "key", "deferLoad"], jo = new Set(No), Fo = (e) => typeof e != "string" || e.trim().length > 0;
3961
3962
  function Oe({ key: e, parts: t, litTag: i }, s) {
3962
- const n = Fo(t);
3963
+ const n = Do(t);
3963
3964
  if (n.length % 2 === 0)
3964
3965
  throw new Error("Normalized template parts array length must be odd");
3965
3966
  const [r, ...a] = n;
@@ -3980,11 +3981,11 @@ function Oe({ key: e, parts: t, litTag: i }, s) {
3980
3981
  const d = s.importRenames[l], c = o.factory.createTaggedTemplateExpression(
3981
3982
  o.factory.createIdentifier(d),
3982
3983
  void 0,
3983
- a.length === 0 ? o.factory.createNoSubstitutionTemplateLiteral(r) : o.factory.createTemplateExpression(o.factory.createTemplateHead(r), Do(a))
3984
+ a.length === 0 ? o.factory.createNoSubstitutionTemplateLiteral(r) : o.factory.createTemplateExpression(o.factory.createTemplateHead(r), Ro(a))
3984
3985
  );
3985
3986
  return He(s, e, c);
3986
3987
  }
3987
- const Fo = (e) => e.reduce(
3988
+ const Do = (e) => e.reduce(
3988
3989
  (t, i, s) => {
3989
3990
  const n = t.at(-1), r = typeof n == "string", a = typeof i == "string";
3990
3991
  if (r && a)
@@ -3994,7 +3995,7 @@ const Fo = (e) => e.reduce(
3994
3995
  },
3995
3996
  [""]
3996
3997
  );
3997
- function Do(e) {
3998
+ function Ro(e) {
3998
3999
  if (!(e.length % 2 === 0))
3999
4000
  throw new Error("templatePartsToSpans should be called with normalized parts array without the first item");
4000
4001
  const i = e.length / 2;
@@ -4033,13 +4034,13 @@ function ns(e, t) {
4033
4034
  );
4034
4035
  }
4035
4036
  const vt = (e) => e.trim().length === 0 ? [] : o.getLeadingCommentRanges(e, 0) ?? [];
4036
- function Ro(e) {
4037
+ function Oo(e) {
4037
4038
  const t = vt(e);
4038
4039
  if (t.length === 0)
4039
4040
  return [e || " "];
4040
4041
  const i = t.reduceRight(
4041
4042
  ([n, ...r], a) => {
4042
- const l = Oo(n), d = os(l.slice(a.pos, a.end));
4043
+ const l = Mo(n), d = os(l.slice(a.pos, a.end));
4043
4044
  return [
4044
4045
  l.slice(0, a.pos),
4045
4046
  /**
@@ -4058,12 +4059,12 @@ function Ro(e) {
4058
4059
  return (typeof s != "string" || s.trim() !== "") && i.push(" "), i;
4059
4060
  }
4060
4061
  const os = (e) => e.startsWith("//") ? e.slice(2) : e.slice(2, -2);
4061
- function Oo(e) {
4062
+ function Mo(e) {
4062
4063
  if (typeof e == "string")
4063
4064
  return e;
4064
4065
  throw new Error(`Expected string, got ${typeof e}: ${String(e)}`);
4065
4066
  }
4066
- function Mo(e, t) {
4067
+ function Jo(e, t) {
4067
4068
  if (!(o.isPropertyAccessExpression(t.expression) && t.expression.name.text === "map"))
4068
4069
  return t;
4069
4070
  const s = t.arguments[0];
@@ -4097,7 +4098,7 @@ function Mo(e, t) {
4097
4098
  const f = p.attributes.properties[m];
4098
4099
  if (f === void 0 || !o.isJsxAttribute(f))
4099
4100
  return t;
4100
- const g = yt(f.initializer, e.sourceFile), h = Jo(r, s, g, d, e);
4101
+ const g = yt(f.initializer, e.sourceFile), h = Bo(r, s, g, d, e);
4101
4102
  if (h === void 0)
4102
4103
  return t;
4103
4104
  e.liftedKeys.add(f.name), e.neededImports.add("repeat");
@@ -4130,7 +4131,7 @@ function as(e) {
4130
4131
  void 0
4131
4132
  ), t;
4132
4133
  }
4133
- function Jo(e, t, i, s, n) {
4134
+ function Bo(e, t, i, s, n) {
4134
4135
  const r = B(i);
4135
4136
  if (r === void 0)
4136
4137
  return;
@@ -4146,7 +4147,7 @@ function Jo(e, t, i, s, n) {
4146
4147
  return;
4147
4148
  }
4148
4149
  if (!s) {
4149
- const d = Ko(r, a, t);
4150
+ const d = _o(r, a, t);
4150
4151
  if (d === void 0)
4151
4152
  return;
4152
4153
  a = d;
@@ -4185,7 +4186,7 @@ function B(e) {
4185
4186
  }
4186
4187
  return t;
4187
4188
  } else {
4188
- if (Bo.has(e.kind))
4189
+ if (Ko.has(e.kind))
4189
4190
  return [];
4190
4191
  {
4191
4192
  const t = ge(e);
@@ -4193,7 +4194,7 @@ function B(e) {
4193
4194
  }
4194
4195
  }
4195
4196
  }
4196
- const Bo = /* @__PURE__ */ new Set([
4197
+ const Ko = /* @__PURE__ */ new Set([
4197
4198
  o.SyntaxKind.NumericLiteral,
4198
4199
  o.SyntaxKind.BigIntLiteral,
4199
4200
  o.SyntaxKind.StringLiteral,
@@ -4202,12 +4203,12 @@ const Bo = /* @__PURE__ */ new Set([
4202
4203
  o.SyntaxKind.FalseKeyword,
4203
4204
  o.SyntaxKind.NullKeyword,
4204
4205
  o.SyntaxKind.TrueKeyword
4205
- ]), ge = (e) => o.isAsExpression(e) || o.isNonNullExpression(e) || o.isSatisfiesExpression(e) || o.isParenthesizedExpression(e) ? ge(e.expression) : e, cs = (e, t) => o.isObjectBindingPattern(e) ? Wo(e, t) : e;
4206
- function Ko(e, t, i) {
4206
+ ]), ge = (e) => o.isAsExpression(e) || o.isNonNullExpression(e) || o.isSatisfiesExpression(e) || o.isParenthesizedExpression(e) ? ge(e.expression) : e, cs = (e, t) => o.isObjectBindingPattern(e) ? zo(e, t) : e;
4207
+ function _o(e, t, i) {
4207
4208
  if (e.every(Fe, t))
4208
4209
  return t;
4209
4210
  if (o.isIdentifier(t)) {
4210
- const s = o.isBlock(i.body) ? Xe(i.body.statements, (r) => _o(r, t)) : void 0;
4211
+ const s = o.isBlock(i.body) ? Xe(i.body.statements, (r) => Uo(r, t)) : void 0;
4211
4212
  if (s === void 0)
4212
4213
  return;
4213
4214
  const n = cs(s, e);
@@ -4215,7 +4216,7 @@ function Ko(e, t, i) {
4215
4216
  return n;
4216
4217
  }
4217
4218
  }
4218
- function _o(e, t) {
4219
+ function Uo(e, t) {
4219
4220
  if (!o.isVariableStatement(e) || !(e.declarationList.flags & o.NodeFlags.Const))
4220
4221
  return;
4221
4222
  const i = e.declarationList.declarations[0];
@@ -4223,13 +4224,13 @@ function _o(e, t) {
4223
4224
  }
4224
4225
  function Fe(e) {
4225
4226
  const t = this;
4226
- return o.isIdentifier(t) ? t.text === e : t.elements.some(Uo, e);
4227
+ return o.isIdentifier(t) ? t.text === e : t.elements.some(Wo, e);
4227
4228
  }
4228
- function Uo(e) {
4229
+ function Wo(e) {
4229
4230
  const t = this;
4230
4231
  return o.isOmittedExpression(e) ? !1 : Fe.call(e.name, t);
4231
4232
  }
4232
- function Wo(e, t) {
4233
+ function zo(e, t) {
4233
4234
  let i = !1;
4234
4235
  const s = e.elements.filter((n) => o.isIdentifier(n.name) ? t.includes(n.name.text) : (i = !0, !0));
4235
4236
  return i || s.length === 0 ? e : o.factory.updateObjectBindingPattern(e, s);
@@ -4238,13 +4239,13 @@ const ls = (e, t) => t.liftedKeys.has(e);
4238
4239
  function H(e, t, i) {
4239
4240
  if (fe(i))
4240
4241
  return ds(e, i);
4241
- const s = o.isCallExpression(i) ? Mo(e, i) : i, n = o.visitEachChild(
4242
+ const s = o.isCallExpression(i) ? Jo(e, i) : i, n = o.visitEachChild(
4242
4243
  s,
4243
4244
  // Do not add "" if parent is binary expression to not turn {(a && <b />) || c} into {(a && <b />) || "" || c}
4244
4245
  H.bind(null, e, t !== void 0 && o.isBinaryExpression(t) ? void 0 : i),
4245
4246
  e.transformationContext
4246
4247
  );
4247
- return t !== void 0 && o.isBinaryExpression(i) && (o.isJsxExpression(t) || fe(ge(i.right)) || fr(i.right)) ? Ho(n) : n;
4248
+ return t !== void 0 && o.isBinaryExpression(i) && (o.isJsxExpression(t) || fe(ge(i.right)) || gr(i.right)) ? Vo(n) : n;
4248
4249
  }
4249
4250
  function ds(e, t) {
4250
4251
  const i = ps(e, t);
@@ -4258,17 +4259,17 @@ function ps(e, t) {
4258
4259
  if (o.isJsxNamespacedName(r))
4259
4260
  throw Error(`JSX namespaced elements are not supported. Found ${r.getText(e.sourceFile)} `);
4260
4261
  if (!o.isIdentifier(r) || !r.text.startsWith(r.text[0].toLowerCase()) && r.text !== Be && r.text !== Ke) {
4261
- const C = o.isIdentifier(r) && r.text === Qs ? Te(i, e) : {
4262
+ const C = o.isIdentifier(r) && r.text === Zs ? Te(i, e) : {
4262
4263
  // No need to wrap the function call in a lit-html tag
4263
4264
  litTag: void 0,
4264
- parts: [qo(e, t, r, i)]
4265
+ parts: [Ho(e, t, r, i)]
4265
4266
  };
4266
4267
  return {
4267
- key: zo(n, e),
4268
+ key: qo(n, e),
4268
4269
  ...C
4269
4270
  };
4270
4271
  }
4271
- const l = r.text === Be ? ke : r.text === Ke ? Ye : r.text, d = r.text === Be ? ae : r.text === Ke ? X : er.has(l) ? yi : lt.has(l) ? se : ce, c = pt(l), p = c ? e.localComponents[l]?.requiredProperties : void 0, m = p === void 0 ? void 0 : new Set(p);
4272
+ const l = r.text === Be ? ke : r.text === Ke ? Ye : r.text, d = r.text === Be ? ae : r.text === Ke ? Y : tr.has(l) ? yi : lt.has(l) ? se : ce, c = pt(l), p = c ? e.localComponents[l]?.requiredProperties : void 0, m = p === void 0 ? void 0 : new Set(p);
4272
4273
  let f;
4273
4274
  const g = [];
4274
4275
  let h = !1;
@@ -4281,13 +4282,13 @@ Found ${x.getText(e.sourceFile)}`
4281
4282
  const { name: C, initializer: L } = x;
4282
4283
  if (o.isJsxNamespacedName(C))
4283
4284
  throw Error(`JSX namespaced attributes are not supported. Found ${C.getText(e.sourceFile)}`);
4284
- const A = C.text, M = xo(L), j = M?.propType ?? Ao(A, L, l);
4285
+ const A = C.text, M = Ao(L), j = M?.propType ?? Lo(A, L, l);
4285
4286
  m?.delete(A);
4286
- const N = $o[j](e, M?.initializer ?? L, A, l);
4287
+ const N = Po[j](e, M?.initializer ?? L, A, l);
4287
4288
  if (N.length === 0)
4288
4289
  return [];
4289
- const K = e.compiler.shouldMinifyJsx ? [" "] : Ro(rs(C, e));
4290
- return j === "key" ? (f = typeof N[0] == "object" && !ls(C, e) ? N[0] : void 0, K.some(jo) ? K : []) : j === "directives" || j === "ref" || A === "deferLoad" ? (h ||= j === "deferLoad", g.push(
4290
+ const K = e.compiler.shouldMinifyJsx ? [" "] : Oo(rs(C, e));
4291
+ return j === "key" ? (f = typeof N[0] == "object" && !ls(C, e) ? N[0] : void 0, K.some(Fo) ? K : []) : j === "directives" || j === "ref" || A === "deferLoad" ? (h ||= j === "deferLoad", g.push(
4291
4292
  ...K,
4292
4293
  ...N.flatMap(
4293
4294
  (R, J) => typeof R == "string" || J === 0 || typeof N[J - 1] == "string" ? R : [" ", R]
@@ -4303,12 +4304,12 @@ Found ${x.getText(e.sourceFile)}`
4303
4304
  `JSX syntax for MathML elements is not yet supported. If you need it, please request it. Otherwise, use the \`math\` function from Lit directly. Tried to use the "${l}" element`
4304
4305
  );
4305
4306
  c && (h ? e.customElementsToImportDeferred.add(l) : e.customElementsToImport.add(l));
4306
- const v = typeof l == "string" && Zs.has(l), w = Te(i, e);
4307
+ const v = typeof l == "string" && er.has(l), w = Te(i, e);
4307
4308
  if (v && w.parts.length > 0)
4308
4309
  throw Error(
4309
4310
  `Void HTML elements like <${l}> cannot have children. Found ${t.getText(e.sourceFile)}`
4310
4311
  );
4311
- const S = (d === se || d === X) && w.parts.length === 0, T = [
4312
+ const S = (d === se || d === Y) && w.parts.length === 0, T = [
4312
4313
  "<",
4313
4314
  typeof l == "string" ? l : r,
4314
4315
  ...y,
@@ -4327,12 +4328,12 @@ Found ${x.getText(e.sourceFile)}`
4327
4328
  ];
4328
4329
  return { key: f, parts: E, litTag: d };
4329
4330
  }
4330
- function zo(e, t) {
4331
+ function qo(e, t) {
4331
4332
  const i = e.attributes.properties[us(e)];
4332
4333
  return i && o.isJsxAttribute(i) && !ls(i.name, t) ? yt(i.initializer, t.sourceFile) : void 0;
4333
4334
  }
4334
4335
  const us = (e) => e.attributes.properties.findIndex(({ name: t }) => t && o.isIdentifier(t) && t.text === "key");
4335
- function qo(e, t, i, s) {
4336
+ function Ho(e, t, i, s) {
4336
4337
  const r = (o.isJsxElement(t) ? t.openingElement : t).attributes.properties.map((d) => {
4337
4338
  if (o.isJsxSpreadAttribute(d))
4338
4339
  return ns(rs(d, e), o.factory.createSpreadAssignment(d.expression));
@@ -4357,12 +4358,12 @@ function Te(e, t) {
4357
4358
  let i;
4358
4359
  const s = e.flatMap((n) => {
4359
4360
  if (o.isJsxText(n))
4360
- return [t.compiler.shouldMinifyJsx ? ir(n.text) : n.text];
4361
+ return [t.compiler.shouldMinifyJsx ? sr(n.text) : n.text];
4361
4362
  if (o.isJsxExpression(n))
4362
4363
  return bt(t, n, n);
4363
4364
  {
4364
4365
  const r = ps(t, n);
4365
- if (r.key === void 0 && r.litTag !== ae && r.litTag !== X) {
4366
+ if (r.key === void 0 && r.litTag !== ae && r.litTag !== Y) {
4366
4367
  if (r.litTag === yi)
4367
4368
  return r.parts;
4368
4369
  if (i !== void 0 && r.litTag !== void 0 && i !== r.litTag)
@@ -4376,7 +4377,7 @@ function Te(e, t) {
4376
4377
  });
4377
4378
  return { litTag: i, parts: s };
4378
4379
  }
4379
- function Ho(e) {
4380
+ function Vo(e) {
4380
4381
  return e.operatorToken.kind === o.SyntaxKind.AmpersandAmpersandToken ? o.factory.createBinaryExpression(
4381
4382
  e,
4382
4383
  o.factory.createToken(o.SyntaxKind.BarBarToken),
@@ -4432,12 +4433,12 @@ const ms = (e) => e.reduce((t, [i, s]) => (t[i] ??= [], t[i].push(s), t), {}), f
4432
4433
  ([e, t]) => t.map((i) => [i, e])
4433
4434
  )
4434
4435
  ), gs = new Set(Object.keys(fs));
4435
- function Vo(e, t) {
4436
+ function Go(e, t) {
4436
4437
  const i = t.importClause, s = i === void 0, n = t.moduleSpecifier;
4437
4438
  if (!o.isStringLiteral(n))
4438
4439
  return t;
4439
- const r = Go(e.sourceFile.fileName, n.text, ""), a = i?.phaseModifier !== o.SyntaxKind.TypeKeyword;
4440
- if (a && e.existingImportedModules.add(r), hr.test(n.text) && // If id already includes ?, bypass our custom behavior
4440
+ const r = Xo(e.sourceFile.fileName, n.text, ""), a = i?.phaseModifier !== o.SyntaxKind.TypeKeyword;
4441
+ if (a && e.existingImportedModules.add(r), yr.test(n.text) && // If id already includes ?, bypass our custom behavior
4441
4442
  !n.text.includes("?")) {
4442
4443
  if (s) {
4443
4444
  if (e.compiler.viteCommand !== "build" || e.compiler.isInStorybook || e.compiler.isInTest)
@@ -4457,7 +4458,7 @@ function Vo(e, t) {
4457
4458
  // runs for .tsx files, so .css imports in .ts files won't work. However,
4458
4459
  // that is unlikely for web component libraries. A workaround is to
4459
4460
  // rename the file or explicitly add (undocumented) ?litCss flag
4460
- o.factory.createStringLiteral(n.text + (e.isInLightDomComponent ? Y : Ie)),
4461
+ o.factory.createStringLiteral(n.text + (e.isInLightDomComponent ? Q : Ie)),
4461
4462
  t.attributes
4462
4463
  );
4463
4464
  }
@@ -4485,7 +4486,7 @@ function Vo(e, t) {
4485
4486
  let c = !1;
4486
4487
  const p = l.elements.filter((f) => {
4487
4488
  const g = (f.propertyName ?? f.name).text;
4488
- return gr.has(g) ? !1 : (c ||= !f.isTypeOnly, !0);
4489
+ return hr.has(g) ? !1 : (c ||= !f.isTypeOnly, !0);
4489
4490
  });
4490
4491
  if (p.length === 0)
4491
4492
  return;
@@ -4514,11 +4515,11 @@ function Vo(e, t) {
4514
4515
  }
4515
4516
  return t;
4516
4517
  }
4517
- const hs = (e, t) => e === ce && re.staticHtml.includes(t) ? ae : e === se && re.staticSvg.includes(t) ? X : e, Go = (e, t, i) => t.startsWith(".") ? u.resolve(e, "..", `${t}${i}`) : t;
4518
- function Xo(e) {
4519
- return o.isImportDeclaration(e) ? Yo(this, e) : e;
4518
+ const hs = (e, t) => e === ce && re.staticHtml.includes(t) ? ae : e === se && re.staticSvg.includes(t) ? Y : e, Xo = (e, t, i) => t.startsWith(".") ? u.resolve(e, "..", `${t}${i}`) : t;
4519
+ function Yo(e) {
4520
+ return o.isImportDeclaration(e) ? Qo(this, e) : e;
4520
4521
  }
4521
- function Yo(e, t) {
4522
+ function Qo(e, t) {
4522
4523
  const i = t.importClause, s = i?.namedBindings, n = t.moduleSpecifier;
4523
4524
  if (!o.isStringLiteral(n) || !s || !o.isNamedImports(s) || !gs.has(n.text))
4524
4525
  return t;
@@ -4543,7 +4544,7 @@ function Yo(e, t) {
4543
4544
  t.attributes
4544
4545
  ) : t;
4545
4546
  }
4546
- function Qo(e) {
4547
+ function Zo(e) {
4547
4548
  const t = ms(
4548
4549
  Array.from(e.neededImports, (i) => [re[i][0], i])
4549
4550
  );
@@ -4562,15 +4563,15 @@ function Qo(e) {
4562
4563
  );
4563
4564
  }
4564
4565
  function ys(e, t) {
4565
- const i = e === ae ? ce : e === X ? se : e, s = t.importRenames[e];
4566
+ const i = e === ae ? ce : e === Y ? se : e, s = t.importRenames[e];
4566
4567
  return s === i ? o.factory.createImportSpecifier(!1, void 0, o.factory.createIdentifier(i)) : o.factory.createImportSpecifier(
4567
4568
  !1,
4568
4569
  o.factory.createIdentifier(i),
4569
4570
  o.factory.createIdentifier(s)
4570
4571
  );
4571
4572
  }
4572
- function Zo(e) {
4573
- const t = Or().map(({ packageName: i }) => i);
4573
+ function ea(e) {
4574
+ const t = Mr().map(({ packageName: i }) => i);
4574
4575
  return e.existingImportedModules.forEach((i) => {
4575
4576
  if (u.isAbsolute(i))
4576
4577
  return;
@@ -4583,7 +4584,7 @@ function Zo(e) {
4583
4584
  }
4584
4585
  }), [];
4585
4586
  }
4586
- function ea(e) {
4587
+ function ta(e) {
4587
4588
  if (e.compiler.viteCommand === "serve")
4588
4589
  return e.customElementsToImport.clear(), e.customElementsToImportDeferred.clear(), [];
4589
4590
  const t = e.compiler._customElementDependencies;
@@ -4598,7 +4599,7 @@ function ea(e) {
4598
4599
  t[s] ??= { referencedBy: [], referencedTagNames: [], referencedDeferredTagNames: [] }, t[s].referencedBy.push(e.sourceFile.fileName);
4599
4600
  }), [];
4600
4601
  }
4601
- const ta = (e, t) => {
4602
+ const ia = (e, t) => {
4602
4603
  const i = e.pragmas;
4603
4604
  if (i?.has("jsx") === !0 || i?.has("jsxImportSource") === !0)
4604
4605
  return e.statements;
@@ -4622,7 +4623,7 @@ const ta = (e, t) => {
4622
4623
  localComponents: is(t.compiler),
4623
4624
  sourceFile: e,
4624
4625
  transformationContext: t.transformation,
4625
- importRenames: ia(e),
4626
+ importRenames: sa(e),
4626
4627
  existingImportedModules: /* @__PURE__ */ new Set(),
4627
4628
  importedFunctionComponentsFromModules: /* @__PURE__ */ new Set(),
4628
4629
  existingLitImports: /* @__PURE__ */ new Set(),
@@ -4636,7 +4637,7 @@ const ta = (e, t) => {
4636
4637
  let a = [];
4637
4638
  if (e.statements.every((d) => {
4638
4639
  if (o.isImportDeclaration(d)) {
4639
- const c = Vo(r, d);
4640
+ const c = Go(r, d);
4640
4641
  if (c === void 0)
4641
4642
  return !0;
4642
4643
  if (a.push(c), r.hasNonLuminaJsxImport)
@@ -4646,11 +4647,11 @@ const ta = (e, t) => {
4646
4647
  return !0;
4647
4648
  }), r.hasNonLuminaJsxImport)
4648
4649
  return e.statements;
4649
- if (r.neededImports.size > 0 && (a = a.map(Xo, r), r.existingLitImports.size > 0))
4650
+ if (r.neededImports.size > 0 && (a = a.map(Yo, r), r.existingLitImports.size > 0))
4650
4651
  throw new Error(
4651
4652
  `Expected context.existingLitImports to be empty by now. Found: ${Array.from(r.existingLitImports).join(", ")}`
4652
4653
  );
4653
- const l = [Qo, Zo, ea].flatMap(
4654
+ const l = [Zo, ea, ta].flatMap(
4654
4655
  (d) => d(r)
4655
4656
  );
4656
4657
  if (r.neededImports.size > 0)
@@ -4659,18 +4660,18 @@ const ta = (e, t) => {
4659
4660
  );
4660
4661
  return [...l, ...a];
4661
4662
  };
4662
- function ia(e) {
4663
- return sa(e), Object.fromEntries(
4664
- mr.map((t) => [t, e.identifiers.has(t) ? `${t}$jsx` : t])
4663
+ function sa(e) {
4664
+ return ra(e), Object.fromEntries(
4665
+ fr.map((t) => [t, e.identifiers.has(t) ? `${t}$jsx` : t])
4665
4666
  );
4666
4667
  }
4667
- function sa(e) {
4668
+ function ra(e) {
4668
4669
  if (!("identifiers" in e))
4669
4670
  throw new Error(
4670
4671
  "Expected sourceFile to have an undocumented identifiers property that is a Map<string,string>. If this error is thrown, it may mean Lumina Compiler needs to be updated to support the version of TypeScript being used."
4671
4672
  );
4672
4673
  }
4673
- const Zt = "customElement", ra = (e, t) => {
4674
+ const Zt = "customElement", na = (e, t) => {
4674
4675
  const i = [];
4675
4676
  if (t.apiModule?.declarations.forEach((r) => {
4676
4677
  const a = r;
@@ -4700,7 +4701,7 @@ const Zt = "customElement", ra = (e, t) => {
4700
4701
  o.factory.createStringLiteral(s)
4701
4702
  ), ...e.statements, ...i];
4702
4703
  };
4703
- function na(e, t, i) {
4704
+ function oa(e, t, i) {
4704
4705
  return t.size === 0 ? e : [
4705
4706
  o.factory.createPropertyDeclaration(
4706
4707
  [
@@ -4715,7 +4716,7 @@ function na(e, t, i) {
4715
4716
  t.entries(),
4716
4717
  ([s, n]) => o.factory.createPropertyAssignment(
4717
4718
  li(s) ? o.factory.createStringLiteral(s) : s,
4718
- oa(n, i)
4719
+ aa(n, i)
4719
4720
  )
4720
4721
  )
4721
4722
  )
@@ -4723,7 +4724,7 @@ function na(e, t, i) {
4723
4724
  ...e
4724
4725
  ];
4725
4726
  }
4726
- function oa(e, t) {
4727
+ function aa(e, t) {
4727
4728
  let i = 0, s = !0;
4728
4729
  const n = [], r = [];
4729
4730
  for (const d of e.properties)
@@ -4768,7 +4769,7 @@ function oa(e, t) {
4768
4769
  ...t ? [] : [o.factory.createObjectLiteralExpression(r)]
4769
4770
  ]);
4770
4771
  }
4771
- function aa(e, t, i) {
4772
+ function ca(e, t, i) {
4772
4773
  let s = -1, n = -1, r = -1;
4773
4774
  e.options?.properties.forEach((p, m) => {
4774
4775
  if (o.isSpreadAssignment(p))
@@ -4780,23 +4781,23 @@ function aa(e, t, i) {
4780
4781
  f === "type" ? s = m : f === "attribute" ? n = m : f === "readOnly" && (r = m);
4781
4782
  }
4782
4783
  });
4783
- const a = i.attribute === void 0 && n === -1, l = i.readonly === !0 && i.docsOnlyReadonly !== !0 && r === -1, d = ca(e, i, s), c = [
4784
+ const a = i.attribute === void 0 && n === -1, l = i.readonly === !0 && i.docsOnlyReadonly !== !0 && r === -1, d = la(e, i, s), c = [
4784
4785
  ...a ? [o.factory.createPropertyAssignment("attribute", o.factory.createFalse())] : [],
4785
4786
  ...l ? [o.factory.createPropertyAssignment("readOnly", o.factory.createTrue())] : [],
4786
4787
  ...d !== void 0 ? [d] : []
4787
4788
  ];
4788
4789
  return c.length > 0 ? e.options === void 0 ? o.factory.createObjectLiteralExpression(c, !1) : o.factory.updateObjectLiteralExpression(e.options, [...e.options.properties, ...c]) : e.options;
4789
4790
  }
4790
- function ca(e, t, i) {
4791
+ function la(e, t, i) {
4791
4792
  if (t.attribute === void 0)
4792
4793
  return;
4793
- const s = la(t.type.values);
4794
+ const s = da(t.type.values);
4794
4795
  return s === "Other" || t.readonly === !0 && (s !== "Boolean" || t.reflects === void 0) || e.options?.properties[i] !== void 0 ? void 0 : o.factory.createPropertyAssignment(
4795
4796
  o.factory.createIdentifier("type"),
4796
4797
  o.factory.createIdentifier(s)
4797
4798
  );
4798
4799
  }
4799
- function la(e) {
4800
+ function da(e) {
4800
4801
  let t = !1, i = !1, s = !1;
4801
4802
  if (e?.forEach((n) => {
4802
4803
  t ||= n.type === "number", i ||= n.type === "boolean", s ||= n.type === "string" || n.type === "any" || n.type === "unknown";
@@ -4808,7 +4809,7 @@ function la(e) {
4808
4809
  }
4809
4810
  return "Other";
4810
4811
  }
4811
- function da(e, t, i, s, n, r) {
4812
+ function pa(e, t, i, s, n, r) {
4812
4813
  if (i.modifiers === void 0)
4813
4814
  return i;
4814
4815
  let a = -1, l = -1;
@@ -4818,7 +4819,7 @@ function da(e, t, i, s, n, r) {
4818
4819
  p === "property" && (a = c), p === "state" && (l = c);
4819
4820
  }
4820
4821
  }), a !== -1) {
4821
- const d = pa(e, t, i, s, n), c = ei(i, a, n), p = aa(c, n, d);
4822
+ const d = ua(e, t, i, s, n), c = ei(i, a, n), p = ca(c, n, d);
4822
4823
  return r.set(d.name, p ?? o.factory.createObjectLiteralExpression()), c.options = p, ti(i, a);
4823
4824
  } else if (l !== -1) {
4824
4825
  const d = ei(i, l, n), c = o.factory.createPropertyAssignment("state", o.factory.createTrue()), p = d.options === void 0 ? o.factory.createObjectLiteralExpression([c]) : o.factory.updateObjectLiteralExpression(d.options, [...d.options.properties, c]), m = di(i.name);
@@ -4828,7 +4829,7 @@ function da(e, t, i, s, n, r) {
4828
4829
  } else
4829
4830
  return i;
4830
4831
  }
4831
- function pa(e, t, i, s, n) {
4832
+ function ua(e, t, i, s, n) {
4832
4833
  const r = t ?? (e.compiler.isInTest ? {
4833
4834
  members: []
4834
4835
  } : void 0);
@@ -4888,7 +4889,7 @@ function ti(e, t) {
4888
4889
  e.initializer
4889
4890
  );
4890
4891
  }
4891
- function ua(e, t, i, s) {
4892
+ function ma(e, t, i, s) {
4892
4893
  let n;
4893
4894
  if (e.apiJsonEnabled)
4894
4895
  for (let d = 0; d < e.privateApiJson.modules.length; ++d) {
@@ -4911,9 +4912,9 @@ function ua(e, t, i, s) {
4911
4912
  } finally {
4912
4913
  l = i.statements, i.statements = a;
4913
4914
  }
4914
- return ma(i, l);
4915
+ return fa(i, l);
4915
4916
  }
4916
- const ma = (e, t) => o.factory.updateSourceFile(
4917
+ const fa = (e, t) => o.factory.updateSourceFile(
4917
4918
  e,
4918
4919
  t,
4919
4920
  /*
@@ -4928,10 +4929,10 @@ const ma = (e, t) => o.factory.updateSourceFile(
4928
4929
  !1,
4929
4930
  e.libReferenceDirectives
4930
4931
  );
4931
- function fa(e, t) {
4932
+ function ga(e, t) {
4932
4933
  t.compiler.viteCommand === "build" && ("emitNode" in e && (e.emitNode ??= {}), o.setEmitFlags(e, o.EmitFlags.NoComments));
4933
4934
  }
4934
- const ga = (e, t) => {
4935
+ const ha = (e, t) => {
4935
4936
  let i;
4936
4937
  if (t.apiModule !== void 0)
4937
4938
  for (let d = 0; d < t.apiModule.declarations.length; ++d) {
@@ -4947,10 +4948,10 @@ const ga = (e, t) => {
4947
4948
  function n() {
4948
4949
  s = /* @__PURE__ */ new Map();
4949
4950
  }
4950
- const r = (d) => na(d, s, t.compiler.shouldMinify);
4951
+ const r = (d) => oa(d, s, t.compiler.shouldMinify);
4951
4952
  function a(d, c) {
4952
- const p = ya(t, i, d, c, e, s);
4953
- return fa(p, t), p;
4953
+ const p = va(t, i, d, c, e, s);
4954
+ return ga(p, t), p;
4954
4955
  }
4955
4956
  return e.statements.map(
4956
4957
  (d) => vs(a, d, t, n, r)
@@ -4983,11 +4984,11 @@ function vs(e, t, i, s, n = pi) {
4983
4984
  i.transformation
4984
4985
  ) : t;
4985
4986
  }
4986
- const ha = /* @__PURE__ */ new Set(["connectedCallback", "disconnectedCallback"]);
4987
- function ya(e, t, i, s, n, r) {
4987
+ const ya = /* @__PURE__ */ new Set(["connectedCallback", "disconnectedCallback"]);
4988
+ function va(e, t, i, s, n, r) {
4988
4989
  if (o.isMethodDeclaration(i)) {
4989
4990
  const a = i.modifiers?.filter(
4990
- (l) => !o.isDecorator(l) || !va(l)
4991
+ (l) => !o.isDecorator(l) || !ba(l)
4991
4992
  );
4992
4993
  if (a?.length !== i.modifiers?.length)
4993
4994
  return o.factory.updateMethodDeclaration(
@@ -5001,7 +5002,7 @@ function ya(e, t, i, s, n, r) {
5001
5002
  i.type,
5002
5003
  i.body
5003
5004
  );
5004
- if ("text" in i.name && ha.has(i.name.text) && i.body) {
5005
+ if ("text" in i.name && ya.has(i.name.text) && i.body) {
5005
5006
  const l = i.name.text;
5006
5007
  return i.body.statements.some(
5007
5008
  (c) => o.isExpressionStatement(c) && o.isCallExpression(c.expression) && o.isPropertyAccessExpression(c.expression.expression) && c.expression.expression.expression.kind === o.SyntaxKind.SuperKeyword && c.expression.expression.name.text === l
@@ -5027,14 +5028,14 @@ function ya(e, t, i, s, n, r) {
5027
5028
  );
5028
5029
  }
5029
5030
  }
5030
- return o.isPropertyDeclaration(i) || o.isAccessor(i) ? da(e, t, i, s, n, r) : i;
5031
- }
5032
- const va = (e) => o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text === "method", ba = [
5033
- ta,
5034
- ra,
5035
- ga
5036
- ], wa = "@arcgis/lumina:transformComponents", Sa = (e) => ({
5037
- name: wa,
5031
+ return o.isPropertyDeclaration(i) || o.isAccessor(i) ? pa(e, t, i, s, n, r) : i;
5032
+ }
5033
+ const ba = (e) => o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text === "method", wa = [
5034
+ ia,
5035
+ na,
5036
+ ha
5037
+ ], Sa = "@arcgis/lumina:transformComponents", Ca = (e) => ({
5038
+ name: Sa,
5038
5039
  transform: {
5039
5040
  // Transform JSX to lit-html first so that vite:esbuild doesn't transform JSX to h().
5040
5041
  // Also, we need to run on the original fs file, before other transforms so
@@ -5054,11 +5055,11 @@ const va = (e) => o.isCallExpression(e.expression) && o.isIdentifier(e.expressio
5054
5055
  e.apiJsonDeferred === void 0 ? [ne] : [ne, e.apiJsonDeferred.promise]
5055
5056
  );
5056
5057
  const n = e.getSourceFile(i, t), a = o.transform(n, [
5057
- (f) => () => ua(e, f, n, [
5058
+ (f) => () => ma(e, f, n, [
5058
5059
  ...e.options.types?.sourceFileTransformers ?? [],
5059
- ...ba
5060
+ ...wa
5060
5061
  ])
5061
- ]).transformed[0], l = e._typeScriptPrinter, d = e.viteConfig.build.sourcemap === !1 ? void 0 : $t.createSourceMapGenerator(Ca, u.basename(i), "", u.dirname(i), {}), c = $t.createTextWriter(`
5062
+ ]).transformed[0], l = e._typeScriptPrinter, d = e.viteConfig.build.sourcemap === !1 ? void 0 : $t.createSourceMapGenerator(Ea, u.basename(i), "", u.dirname(i), {}), c = $t.createTextWriter(`
5062
5063
  `);
5063
5064
  l.writeFile(a, c, d);
5064
5065
  const p = c.getText(), m = d?.toJSON();
@@ -5068,10 +5069,10 @@ const va = (e) => o.isCallExpression(e.expression) && o.isIdentifier(e.expressio
5068
5069
  };
5069
5070
  }
5070
5071
  }
5071
- }), Ca = {
5072
+ }), Ea = {
5072
5073
  getCurrentDirectory: o.sys.getCurrentDirectory,
5073
5074
  getCanonicalFileName: o.sys.useCaseSensitiveFileNames ? pi : (e) => e.toLowerCase()
5074
- }, Ea = (e) => ({
5075
+ }, Ta = (e) => ({
5075
5076
  name: "@arcgis/lumina:handleDynamicAssets",
5076
5077
  configureServer(t) {
5077
5078
  e.server = t, ii(e).forEach(({ assets: i, transformers: s }) => te(e, i, s));
@@ -5090,20 +5091,20 @@ function ii(e) {
5090
5091
  "type" in s ? t.push(s) : "assets" in s && t.push(...s.assets);
5091
5092
  }), t.length > 0 && i.push({ assets: t }), e.isInBuildWatch || (e.assetsToProvide = void 0), i;
5092
5093
  }
5093
- const ot = "@arcgis/lumina:updatePackageJson", Ta = (e) => ({
5094
+ const ot = "@arcgis/lumina:updatePackageJson", $a = (e) => ({
5094
5095
  name: ot,
5095
5096
  apply: () => e.viteCommand === "serve" && e.environment === "development" && !e.isInTest && !e.isInCi,
5096
5097
  configResolved() {
5097
- $a(e).catch(
5098
+ Pa(e).catch(
5098
5099
  (t) => $.error(ot, `Failed to update package's package.json:${String(t)}`)
5099
5100
  );
5100
5101
  }
5101
5102
  });
5102
- async function $a(e) {
5103
- const t = u.join(e.dir.root, "package.json"), i = JSON.parse(await W(t, "utf-8")), s = Pa(i, e);
5103
+ async function Pa(e) {
5104
+ const t = u.join(e.dir.root, "package.json"), i = JSON.parse(await W(t, "utf-8")), s = ka(i, e);
5104
5105
  s && ci(t, JSON.stringify(s, null, 2));
5105
5106
  }
5106
- function Pa(e, t) {
5107
+ function ka(e, t) {
5107
5108
  const i = e?.devDependencies ?? {};
5108
5109
  Object.keys(e?.peerDependencies ?? {}).forEach((c) => {
5109
5110
  c in i || $.warn(
@@ -5129,7 +5130,7 @@ function Pa(e, t) {
5129
5130
  const c = n(r.webTypes);
5130
5131
  e["web-types"] !== c && (s = !0, e["web-types"] = c);
5131
5132
  }
5132
- const a = `./${Q}.css`, l = t.options.build?.cdn?.namespace !== void 0, d = he(
5133
+ const a = `./${Z}.css`, l = t.options.build?.cdn?.namespace !== void 0, d = he(
5133
5134
  t.dir.root,
5134
5135
  u.join(t.dir.distCdn, a)
5135
5136
  );
@@ -5142,21 +5143,21 @@ function Pa(e, t) {
5142
5143
  if (s)
5143
5144
  return e;
5144
5145
  }
5145
- const ka = (e) => ({
5146
+ const Ia = (e) => ({
5146
5147
  deprecation: "docs.json is deprecated and will be removed in a future release. Use api.json instead",
5147
5148
  timestamp: e.apiJson.timestamp,
5148
5149
  compiler: e.apiJson.compiler,
5149
- components: Ia(e),
5150
+ components: xa(e),
5150
5151
  typeLibrary: {}
5151
5152
  });
5152
- function Ia(e) {
5153
+ function xa(e) {
5153
5154
  const t = [];
5154
5155
  for (const i of e.apiJson.modules)
5155
5156
  for (const s of i.declarations)
5156
- s.customElement === !0 && t.push(xa(s, i.sourcePath));
5157
+ s.customElement === !0 && t.push(Aa(s, i.sourcePath));
5157
5158
  return t;
5158
5159
  }
5159
- function xa(e, t) {
5160
+ function Aa(e, t) {
5160
5161
  const i = e.superclass ? [{ name: "superclass", text: JSON.stringify(e.superclass) }] : [];
5161
5162
  return {
5162
5163
  filePath: t,
@@ -5171,9 +5172,9 @@ function xa(e, t) {
5171
5172
  dependencies: [],
5172
5173
  dependencyGraph: {},
5173
5174
  deprecation: typeof e.deprecated == "boolean" ? e.deprecated ? "" : void 0 : e.deprecated,
5174
- props: e.members.map(Aa).filter(F),
5175
- methods: e.members.map(La).filter(F),
5176
- events: e.events?.map(Na) ?? [],
5175
+ props: e.members.map(La).filter(F),
5176
+ methods: e.members.map(Na).filter(F),
5177
+ events: e.events?.map(ja) ?? [],
5177
5178
  styles: e.cssProperties?.map(({ name: s, description: n, deprecated: r }) => ({
5178
5179
  name: s,
5179
5180
  annotation: "prop",
@@ -5198,7 +5199,7 @@ function Ve(e, t = "") {
5198
5199
  }
5199
5200
  return t;
5200
5201
  }
5201
- function Aa(e) {
5202
+ function La(e) {
5202
5203
  if (e.kind !== "field")
5203
5204
  return;
5204
5205
  const t = e, i = t.inheritedFrom ? [{ name: "inheritedFrom", text: JSON.stringify(t.inheritedFrom) }] : [], s = t.readonly ? [{ name: "readonly", text: "" }] : [], n = t.docsTags?.some((r) => r.name === "required") ?? !1;
@@ -5239,7 +5240,7 @@ const wt = (e) => Object.fromEntries(
5239
5240
  ]
5240
5241
  ) ?? []
5241
5242
  );
5242
- function La(e) {
5243
+ function Na(e) {
5243
5244
  if (e.kind !== "method")
5244
5245
  return;
5245
5246
  const t = e, i = e.inheritedFrom ? [{ name: "inheritedFrom", text: JSON.stringify(e.inheritedFrom) }] : [], s = t.parameters?.map(({ name: n, type: r, description: a }) => ({
@@ -5270,7 +5271,7 @@ function La(e) {
5270
5271
  deprecation: typeof t.deprecated == "boolean" ? t.deprecated ? "" : void 0 : t.deprecated
5271
5272
  };
5272
5273
  }
5273
- function Na(e) {
5274
+ function ja(e) {
5274
5275
  const t = e.inheritedFrom ? [{ name: "inheritedFrom", text: JSON.stringify(e.inheritedFrom) }] : [];
5275
5276
  return {
5276
5277
  event: e.name,
@@ -5296,7 +5297,7 @@ const ye = {
5296
5297
  methods: "Methods"
5297
5298
  };
5298
5299
  function bs(e) {
5299
- const t = ja(e.slots), i = Fa(e.events), s = Da(e.cssProperties), n = Ra(e.cssParts), r = Oa(e.members), a = e.description?.trim();
5300
+ const t = Fa(e.slots), i = Da(e.events), s = Ra(e.cssProperties), n = Oa(e.cssParts), r = Ma(e.members), a = e.description?.trim();
5300
5301
  return [...a ? [`${a}
5301
5302
  --`] : [], i, r, t, s, n].filter(Boolean).join(`
5302
5303
 
@@ -5304,23 +5305,23 @@ function bs(e) {
5304
5305
  }
5305
5306
  const ve = (e, t) => t === void 0 || t.length === 0 ? "" : `### ${e}
5306
5307
  ${t.join(`
5307
- `)}`, ja = (e) => ve(
5308
+ `)}`, Fa = (e) => ve(
5308
5309
  ye.slots,
5309
5310
  e?.filter((t) => t.deprecated === void 0).map(
5310
5311
  (t) => `- ${t.name ? `**${t.name}**` : "_default_"}${t.description === void 0 ? "" : ` - ${t.description}`}`
5311
5312
  )
5312
- ), Fa = (e) => ve(
5313
+ ), Da = (e) => ve(
5313
5314
  ye.events,
5314
5315
  e?.filter((t) => t.deprecated === void 0).map((t) => `- **${t.name}**${t.description === void 0 ? "" : ` - ${t.description}`}`)
5315
- ), Da = (e = []) => ve(
5316
+ ), Ra = (e = []) => ve(
5316
5317
  ye.cssProperties,
5317
5318
  e?.filter((t) => t.deprecated === void 0).map(
5318
5319
  (t) => `- **${t.name}**${t.description === void 0 ? "" : ` - ${t.description}`} ${t.default ? `_(default: ${t.default})_}` : ""}`
5319
5320
  )
5320
- ), Ra = (e) => ve(
5321
+ ), Oa = (e) => ve(
5321
5322
  ye.cssParts,
5322
5323
  e?.filter((t) => t.deprecated === void 0).map((t) => `- **${t.name}**${t.description === void 0 ? "" : ` - ${t.description}`}`)
5323
- ), Oa = (e) => ve(
5324
+ ), Ma = (e) => ve(
5324
5325
  ye.methods,
5325
5326
  e.filter(Ds).filter((t) => t.deprecated === void 0).map(
5326
5327
  (t) => `- \`${t.name}${t.signature}\`${t.description ? ` - ${t.description}` : ""}`
@@ -5345,7 +5346,7 @@ ${t.join(`
5345
5346
  description: t.tagName + (i.description === void 0 ? "" : `: ${i.description}`)
5346
5347
  })) ?? []
5347
5348
  );
5348
- function Ma(e) {
5349
+ function Ja(e) {
5349
5350
  if (e.attributes === void 0)
5350
5351
  return [];
5351
5352
  const t = [];
@@ -5356,7 +5357,7 @@ function Ma(e) {
5356
5357
  description: s.description || void 0,
5357
5358
  default: s.default,
5358
5359
  value: {
5359
- type: Ja(
5360
+ type: Ba(
5360
5361
  s.type.values?.map(
5361
5362
  (n) => n.type === "string" && n.value !== void 0 ? `"${n.value}"` : n.value ?? n.type
5362
5363
  )
@@ -5366,9 +5367,9 @@ function Ma(e) {
5366
5367
  }
5367
5368
  return t;
5368
5369
  }
5369
- const Ja = (e) => e?.length === 1 ? e[0] : e;
5370
- function Ba(e, t) {
5371
- const i = Ka(e), s = ws(e), n = Ss(e), r = D();
5370
+ const Ba = (e) => e?.length === 1 ? e[0] : e;
5371
+ function Ka(e, t) {
5372
+ const i = _a(e), s = ws(e), n = Ss(e), r = D();
5372
5373
  return {
5373
5374
  $schema: "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
5374
5375
  name: r.name,
@@ -5386,11 +5387,11 @@ function Ba(e, t) {
5386
5387
  }
5387
5388
  };
5388
5389
  }
5389
- const Ka = (e) => e.filter((t) => t.deprecated === void 0).map((t) => ({
5390
+ const _a = (e) => e.filter((t) => t.deprecated === void 0).map((t) => ({
5390
5391
  name: t.tagName,
5391
5392
  description: bs(t),
5392
5393
  "doc-url": t.demos?.[0]?.url,
5393
- attributes: Ma(t),
5394
+ attributes: Ja(t),
5394
5395
  slots: t.slots?.map((i) => ({
5395
5396
  name: i.name,
5396
5397
  description: i.description
@@ -5398,10 +5399,10 @@ const Ka = (e) => e.filter((t) => t.deprecated === void 0).map((t) => ({
5398
5399
  // REFACTOR: this was deprecated in the spec: https://github.com/JetBrains/web-types/blob/11e46e47cb65edc1930dc1fae854005ad45ac08f/schema/web-types.json#L866
5399
5400
  events: si(t),
5400
5401
  js: {
5401
- properties: _a(t),
5402
+ properties: Ua(t),
5402
5403
  events: si(t)
5403
5404
  }
5404
- })), _a = (e) => e.members.filter(Rs).filter((t) => t.deprecated === void 0).map((t) => ({
5405
+ })), Ua = (e) => e.members.filter(Rs).filter((t) => t.deprecated === void 0).map((t) => ({
5405
5406
  name: t.name,
5406
5407
  description: t.description,
5407
5408
  type: t.type?.text
@@ -5409,34 +5410,34 @@ const Ka = (e) => e.filter((t) => t.deprecated === void 0).map((t) => ({
5409
5410
  name: t.name,
5410
5411
  type: t.type?.text,
5411
5412
  description: t.description
5412
- })) ?? [], Ua = (e) => e.filter((t) => t.deprecated === void 0).map((t) => ({
5413
+ })) ?? [], Wa = (e) => e.filter((t) => t.deprecated === void 0).map((t) => ({
5413
5414
  name: t.tagName,
5414
5415
  description: bs(t),
5415
- attributes: Wa(t),
5416
+ attributes: za(t),
5416
5417
  references: t.demos?.map((i) => ({ name: i.description, url: i.url })) ?? []
5417
- })), Wa = (e) => e.attributes?.filter((t) => t.deprecated === void 0).map((t) => ({
5418
+ })), za = (e) => e.attributes?.filter((t) => t.deprecated === void 0).map((t) => ({
5418
5419
  name: t.name,
5419
5420
  description: t.description || void 0,
5420
- values: za(t)
5421
- })) ?? [], za = (e) => e.type.values?.map((t) => t.value ?? "").filter(Boolean).map((t) => ({ name: t })) ?? [], qa = (e) => ({
5421
+ values: qa(t)
5422
+ })) ?? [], qa = (e) => e.type.values?.map((t) => t.value ?? "").filter(Boolean).map((t) => ({ name: t })) ?? [], Ha = (e) => ({
5422
5423
  $schema: "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
5423
5424
  version: 1.1,
5424
- tags: Ua(e)
5425
- }), Ha = (e) => ({
5425
+ tags: Wa(e)
5426
+ }), Va = (e) => ({
5426
5427
  $schema: "https://raw.githubusercontent.com/microsoft/vscode-css-languageservice/main/docs/customData.schema.json",
5427
5428
  version: 1.1,
5428
5429
  properties: ws(e),
5429
5430
  pseudoElements: Ss(e)
5430
- }), Va = "@arcgis/lumina:generateDocs";
5431
- function Ga(e) {
5431
+ }), Ga = "@arcgis/lumina:generateDocs";
5432
+ function Xa(e) {
5432
5433
  return e._documentationFileNames.stencilLikeDocsJson !== void 0 && e.provideAssets([
5433
5434
  {
5434
5435
  type: "dynamic",
5435
- source: () => JSON.stringify(ka(e), null, nt(e)),
5436
+ source: () => JSON.stringify(Ia(e), null, nt(e)),
5436
5437
  destination: u.join("../..", e._documentationFileNames.stencilLikeDocsJson)
5437
5438
  }
5438
5439
  ]), {
5439
- name: Va,
5440
+ name: Ga,
5440
5441
  async writeBundle() {
5441
5442
  if (e.isInStorybook)
5442
5443
  return;
@@ -5446,44 +5447,45 @@ function Ga(e) {
5446
5447
  await Ji(l);
5447
5448
  const d = [];
5448
5449
  if (n !== void 0) {
5449
- const c = JSON.stringify(qa(e.apiJsonComponents), null, t);
5450
+ const c = JSON.stringify(Ha(e.apiJsonComponents), null, t);
5450
5451
  d.push(z(n, c));
5451
5452
  }
5452
5453
  if (r !== void 0) {
5453
- const c = JSON.stringify(Ha(e.apiJsonComponents), null, t);
5454
+ const c = JSON.stringify(Va(e.apiJsonComponents), null, t);
5454
5455
  d.push(z(r, c));
5455
5456
  }
5456
5457
  if (a !== void 0) {
5457
- const c = Ba(e.apiJsonComponents, typeof i == "object" ? i : {});
5458
+ const c = Ka(e.apiJsonComponents, typeof i == "object" ? i : {});
5458
5459
  d.push(z(a, JSON.stringify(c, null, t)));
5459
5460
  }
5460
5461
  await Promise.all(d);
5461
5462
  }
5462
5463
  };
5463
5464
  }
5464
- function Ec(e = {}) {
5465
+ function $c(e = {}) {
5465
5466
  const t = new P(e), s = [
5466
5467
  t._plugin,
5467
- Gn(t),
5468
- to(t),
5469
- no(t),
5470
- Ta(t),
5471
- Jn(t),
5472
- Ga(t),
5473
- Sa(t),
5474
- wo(t),
5475
- yr(t),
5468
+ ...G ? [Ys()] : [],
5469
+ Xn(t),
5470
+ io(t),
5471
+ oo(t),
5472
+ $a(t),
5476
5473
  Bn(t),
5477
- Ea(t),
5478
- Co(t),
5479
- po(t),
5480
- Ys(t),
5481
- hn(t),
5482
- Kn(t)
5474
+ Xa(t),
5475
+ Ca(t),
5476
+ So(t),
5477
+ vr(t),
5478
+ Kn(t),
5479
+ Ta(t),
5480
+ Eo(t),
5481
+ uo(t),
5482
+ Qs(t),
5483
+ yn(t),
5484
+ _n(t)
5483
5485
  ].filter(F);
5484
5486
  return s.context = t, s;
5485
5487
  }
5486
- const Tc = {
5488
+ const Pc = {
5487
5489
  initializeComponentDependencies: ki,
5488
5490
  updateLuminaTs: es,
5489
5491
  propertyToAttributeMappings: U,
@@ -5495,7 +5497,7 @@ const Tc = {
5495
5497
  htmlAlwaysAttributes: Qe
5496
5498
  };
5497
5499
  export {
5498
- Tc as exportsForCodemod,
5500
+ Pc as exportsForCodemod,
5499
5501
  Re as inferCdnUrl,
5500
- Ec as useLumina
5502
+ $c as useLumina
5501
5503
  };