@arcgis/lumina-compiler 5.2.0-next.125 → 5.2.0-next.127

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 +716 -715
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1,33 +1,33 @@
1
- import { externalizeDependencies as ws } from "@arcgis/node-toolkit/vite/externalizeDependenciesPlugin";
1
+ import { externalizeDependencies as Es } from "@arcgis/node-toolkit/vite/externalizeDependenciesPlugin";
2
2
  import { isNotUndefined as R } from "@arcgis/toolkit/predicate";
3
3
  import { f as b, l as T } from "./chunks/logger.js";
4
4
  import o from "typescript";
5
- import { camelToKebab as ti, getPreamble as Ss, uncapitalize as St, capitalize as Cs } from "@arcgis/toolkit/string";
6
- import { lazyMetaSubItemJoiner as Es, lazyMetaItemJoiner as Je, lazyMetaGroupJoiner as Ts, propertyFlagAttribute as Ct, propertyFlagReflect as $s, propertyFlagBoolean as Ps, propertyFlagNumber as ks, propertyFlagState as Is, propertyFlagReadOnly as xs, propertyFlagNoAccessor as As, propertyFlagUseDefault as Ls } from "@arcgis/lumina/config";
7
- import { path as u, isPosix as ii, toPosixPathSeparators as G, toSystemPathSeparators as Re, getCwd as si } from "@arcgis/node-toolkit/path";
8
- import { isApiMethodAsync as Ns, globalPackageIdentifier as js, isApiMethod as Fs, isApiProperty as Rs } from "@arcgis/api-extractor/utils/apiHelpers";
9
- import { existsAsync as _, findPath as ri } from "@arcgis/node-toolkit/file";
10
- import { readFile as z, readdir as ot, mkdir as X, writeFile as K, copyFile as Ds, rm as Os, cp as Ms } from "node:fs/promises";
11
- import { retrievePackageJson as j, fetchPackageLocation as $e, asyncRetrievePackageJson as ni } from "@arcgis/node-toolkit/packageJson";
12
- import { getSystemVersion as oi } from "@arcgis/node-toolkit/workspace";
13
- import { build as Js } from "esbuild";
14
- import Bs from "mime-types";
15
- import { forEachWithConcurrency as _s } from "@arcgis/toolkit/promise";
16
- import { glob as Ks } from "tinyglobby";
5
+ import { camelToKebab as si, getPreamble as Ts, uncapitalize as Ct, capitalize as $s } from "@arcgis/toolkit/string";
6
+ import { lazyMetaSubItemJoiner as Ps, lazyMetaItemJoiner as Je, lazyMetaGroupJoiner as ks, propertyFlagAttribute as Et, propertyFlagReflect as Is, propertyFlagBoolean as xs, propertyFlagNumber as As, propertyFlagState as Ls, propertyFlagReadOnly as Ns, propertyFlagNoAccessor as js, propertyFlagUseDefault as Fs } from "@arcgis/lumina/config";
7
+ import { path as u, isPosix as ri, toPosixPathSeparators as G, toSystemPathSeparators as Re, getCwd as ni } from "@arcgis/node-toolkit/path";
8
+ import { isApiMethodAsync as Rs, globalPackageIdentifier as Ds, isApiMethod as Os, isApiProperty as Ms } from "@arcgis/api-extractor/utils/apiHelpers";
9
+ import { existsAsync as K, findPath as oi } from "@arcgis/node-toolkit/file";
10
+ import { readFile as z, readdir as at, mkdir as X, writeFile as _, copyFile as Js, rm as Bs, cp as Ks } from "node:fs/promises";
11
+ import { retrievePackageJson as j, fetchPackageLocation as $e, asyncRetrievePackageJson as ai } from "@arcgis/node-toolkit/packageJson";
12
+ import { getSystemVersion as ci } from "@arcgis/node-toolkit/workspace";
13
+ import { build as _s } from "esbuild";
14
+ import Ws from "mime-types";
15
+ import { forEachWithConcurrency as Us } from "@arcgis/toolkit/promise";
16
+ import { glob as zs } from "tinyglobby";
17
17
  import { renameComponentFolder as Ge } from "@arcgis/api-extractor/extractor/webComponent/pathMapping";
18
- import { useApiExtractor as Ws } from "@arcgis/api-extractor/vite/plugin";
19
- import { writeFileSync as ai } from "node:fs";
20
- import { styleText as Us } from "node:util";
21
- import { unsafeGetUndocumentedPrinter as zs, unsafeUndocumentedTs as Et } from "@arcgis/api-extractor/utils/internalTypeScriptApis";
18
+ import { useApiExtractor as Hs } from "@arcgis/api-extractor/vite/plugin";
19
+ import { writeFileSync as li } from "node:fs";
20
+ import { styleText as qs } from "node:util";
21
+ import { unsafeGetUndocumentedPrinter as Vs, unsafeUndocumentedTs as Tt } from "@arcgis/api-extractor/utils/internalTypeScriptApis";
22
22
  import { pathIsComponentEntrypoint as Pe } from "@arcgis/api-extractor/extractor/webComponent/findComponents";
23
- import { loadApiExtractorConfig as Hs, mergeApiExtractorConfigs as Tt } from "@arcgis/api-extractor/extractor/config";
24
- import { loadTypeScriptConfig as qs } from "@arcgis/node-toolkit/vite/typeScript";
23
+ import { loadApiExtractorConfig as Gs, mergeApiExtractorConfigs as $t } from "@arcgis/api-extractor/extractor/config";
24
+ import { loadTypeScriptConfig as Xs } from "@arcgis/node-toolkit/vite/typeScript";
25
25
  import { mappedFind as Xe } from "@arcgis/toolkit/array";
26
- import { isPropertyEscapeNeeded as ci, maybeEscapePropertyName as Vs } from "@arcgis/api-extractor/utils/partPrinter";
27
- import { getPackageNameFromExternalSpecifier as Gs, getMemberName as li } from "@arcgis/api-extractor/utils/astHelpers";
28
- import { identity as di } from "@arcgis/toolkit/function";
29
- function Xs(e) {
30
- const t = e.options?.build?.dependencies ?? {}, i = ws({
26
+ import { isPropertyEscapeNeeded as di, maybeEscapePropertyName as Ys } from "@arcgis/api-extractor/utils/partPrinter";
27
+ import { getPackageNameFromExternalSpecifier as Qs, getMemberName as pi } from "@arcgis/api-extractor/utils/astHelpers";
28
+ import { identity as ui } from "@arcgis/toolkit/function";
29
+ function Zs(e) {
30
+ const t = e.options?.build?.dependencies ?? {}, i = Es({
31
31
  bundleIn: t.bundleIn,
32
32
  externalize: [
33
33
  // TODO: remove these once Lit is declared as a peer dependency
@@ -43,7 +43,7 @@ function Xs(e) {
43
43
  e.isInStorybook && (i.resolveId = void 0);
44
44
  }, i;
45
45
  }
46
- const Ys = "Fragment", Be = "DynamicHtmlTag", _e = "DynamicSvgTag", ke = /* @__PURE__ */ Symbol("dynamic html tag name"), Ye = /* @__PURE__ */ Symbol("dynamic svg tag name"), pi = /* @__PURE__ */ new Set([
46
+ const er = "Fragment", Be = "DynamicHtmlTag", Ke = "DynamicSvgTag", ke = /* @__PURE__ */ Symbol("dynamic html tag name"), Ye = /* @__PURE__ */ Symbol("dynamic svg tag name"), mi = /* @__PURE__ */ new Set([
47
47
  /**
48
48
  * There is a "className" property. However, in JSX typings we use "class"
49
49
  * instead to keep name shorter and to match Stencil's name. Thus, it should
@@ -75,7 +75,7 @@ const Ys = "Fragment", Be = "DynamicHtmlTag", _e = "DynamicSvgTag", ke = /* @__P
75
75
  "vocab",
76
76
  // These don't exist as a property, only as an attribute
77
77
  "exportParts"
78
- ]), ui = /* @__PURE__ */ new Set([
78
+ ]), fi = /* @__PURE__ */ new Set([
79
79
  /*
80
80
  * From https://github.com/preactjs/preact/blob/f3edc902447dae7393de7fccaff3b722dee79467/src/diff/props.js#L107-L118
81
81
  * See also https://github.com/facebook/react/blob/8fd963a1e5ec89459cac27fb1d9ad193a0604110/packages/react-dom-bindings/src/client/ReactDOMComponent.js#L389
@@ -914,9 +914,9 @@ const Ys = "Fragment", Be = "DynamicHtmlTag", _e = "DynamicSvgTag", ke = /* @__P
914
914
  }
915
915
  }
916
916
  };
917
- mi(W.common);
918
- Object.values(W.perElement).forEach(mi);
919
- function mi(e) {
917
+ gi(W.common);
918
+ Object.values(W.perElement).forEach(gi);
919
+ function gi(e) {
920
920
  e?.reflected !== void 0 && (e.reflected = Object.assign(/* @__PURE__ */ Object.create(null), e.reflected)), e?.stringifiedReflected !== void 0 && (e.stringifiedReflected = Object.assign(
921
921
  /* @__PURE__ */ Object.create(null),
922
922
  e.stringifiedReflected
@@ -925,7 +925,7 @@ function mi(e) {
925
925
  e.stringifiedNonReflected
926
926
  ));
927
927
  }
928
- const $t = /* @__PURE__ */ new Set(["itemScope"]), fi = /* @__PURE__ */ new Set([
928
+ const Pt = /* @__PURE__ */ new Set(["itemScope"]), hi = /* @__PURE__ */ new Set([
929
929
  "abort",
930
930
  "animationCancel",
931
931
  "animationEnd",
@@ -1024,7 +1024,7 @@ const $t = /* @__PURE__ */ new Set(["itemScope"]), fi = /* @__PURE__ */ new Set(
1024
1024
  "volumeChange",
1025
1025
  "waiting",
1026
1026
  "wheel"
1027
- ]), Qs = /* @__PURE__ */ new Set([
1027
+ ]), tr = /* @__PURE__ */ new Set([
1028
1028
  "area",
1029
1029
  "base",
1030
1030
  "br",
@@ -1041,7 +1041,7 @@ const $t = /* @__PURE__ */ new Set(["itemScope"]), fi = /* @__PURE__ */ new Set(
1041
1041
  "source",
1042
1042
  "track",
1043
1043
  "wbr"
1044
- ]), at = /* @__PURE__ */ new Set([
1044
+ ]), ct = /* @__PURE__ */ new Set([
1045
1045
  "animate",
1046
1046
  "animateMotion",
1047
1047
  "animateTransform",
@@ -1100,7 +1100,7 @@ const $t = /* @__PURE__ */ new Set(["itemScope"]), fi = /* @__PURE__ */ new Set(
1100
1100
  "tspan",
1101
1101
  "use",
1102
1102
  "view"
1103
- ]), Zs = /* @__PURE__ */ new Set(["title", "svg", "a", "script", "style"]), ct = /* @__PURE__ */ new Set([
1103
+ ]), ir = /* @__PURE__ */ new Set(["title", "svg", "a", "script", "style"]), lt = /* @__PURE__ */ new Set([
1104
1104
  "annotation-xml",
1105
1105
  "annotation",
1106
1106
  "maction",
@@ -1132,7 +1132,7 @@ const $t = /* @__PURE__ */ new Set(["itemScope"]), fi = /* @__PURE__ */ new Set(
1132
1132
  "munder",
1133
1133
  "munderover",
1134
1134
  "semantics"
1135
- ]), er = /* @__PURE__ */ new Set([
1135
+ ]), sr = /* @__PURE__ */ new Set([
1136
1136
  "annotation-xml",
1137
1137
  "color-profile",
1138
1138
  "font-face",
@@ -1142,7 +1142,7 @@ const $t = /* @__PURE__ */ new Set(["itemScope"]), fi = /* @__PURE__ */ new Set(
1142
1142
  "font-face-name",
1143
1143
  "missing-glyph"
1144
1144
  ]);
1145
- function tr(e) {
1145
+ function rr(e) {
1146
1146
  if (e.length === 0)
1147
1147
  return "";
1148
1148
  const t = e[0];
@@ -1155,11 +1155,11 @@ function tr(e) {
1155
1155
  }
1156
1156
  return e.trim().length === 0 ? t : e;
1157
1157
  }
1158
- const ir = (e) => e.replaceAll("\\", "\\\\").replace(sr, "\\${").replaceAll("`", "\\`"), sr = /\$\{/gu, rr = (e) => !nr.test(e), nr = /^[^\s"'=<>`]+$/u, or = /[&<>]/gu, ar = {
1158
+ const nr = (e) => e.replaceAll("\\", "\\\\").replace(or, "\\${").replaceAll("`", "\\`"), or = /\$\{/gu, ar = (e) => !cr.test(e), cr = /^[^\s"'=<>`]+$/u, lr = /[&<>]/gu, dr = {
1159
1159
  "&": "&amp;",
1160
1160
  "<": "&lt;",
1161
1161
  ">": "&gt;"
1162
- }, gi = (e) => e.replace(or, (t) => ar[t]), lt = (e) => typeof e == "string" && e.includes("-") && !er.has(e), cr = ["keyed", "ref", "repeat", "live"], ae = "staticHtml", Y = "staticSvg", ce = "html", se = "svg", hi = /* @__PURE__ */ Symbol("maybe HTML namespace or maybe SVG"), yi = "css", vi = "mathml", bi = [yi, ce, vi, ae, Y, se], lr = new Set(bi), dr = ["safeClassMap", "safeStyleMap", "deferLoad", "stabilizedRef"], pr = "nothing", ur = [...cr, ...bi, ...dr, pr], mr = (e) => o.isArrayLiteralExpression(e) && e.elements.every((t) => fe(t)), fe = (e) => o.isJsxElement(e) || o.isJsxSelfClosingElement(e) || o.isJsxFragment(e), re = {
1162
+ }, yi = (e) => e.replace(lr, (t) => dr[t]), dt = (e) => typeof e == "string" && e.includes("-") && !sr.has(e), pr = ["keyed", "ref", "repeat", "live"], ae = "staticHtml", Y = "staticSvg", ce = "html", se = "svg", vi = /* @__PURE__ */ Symbol("maybe HTML namespace or maybe SVG"), bi = "css", wi = "mathml", Si = [bi, ce, wi, ae, Y, se], ur = new Set(Si), mr = ["safeClassMap", "safeStyleMap", "deferLoad", "stabilizedRef"], fr = "nothing", gr = [...pr, ...Si, ...mr, fr], hr = (e) => o.isArrayLiteralExpression(e) && e.elements.every((t) => fe(t)), fe = (e) => o.isJsxElement(e) || o.isJsxSelfClosingElement(e) || o.isJsxFragment(e), re = {
1163
1163
  [ce]: ["lit", "lit/html.js", "lit-html"],
1164
1164
  /**
1165
1165
  * Sadly, Lit called these "html" and "svg", rather than "staticHtml" and
@@ -1170,8 +1170,8 @@ const ir = (e) => e.replaceAll("\\", "\\\\").replace(sr, "\\${").replaceAll("`",
1170
1170
  [ae]: ["lit/static-html.js", "lit-html/static.js"],
1171
1171
  [se]: ["lit", "lit-html", "lit/html.js"],
1172
1172
  [Y]: ["lit/static-html.js", "lit-html/static.js"],
1173
- [vi]: ["lit", "lit-html", "lit/html.js"],
1174
- [yi]: ["lit", "@lit/reactive-element/css-tag.js", "@lit/reactive-element"],
1173
+ [wi]: ["lit", "lit-html", "lit/html.js"],
1174
+ [bi]: ["lit", "@lit/reactive-element/css-tag.js", "@lit/reactive-element"],
1175
1175
  safeClassMap: ["@arcgis/lumina"],
1176
1176
  safeStyleMap: ["@arcgis/lumina"],
1177
1177
  deferLoad: ["@arcgis/lumina"],
@@ -1181,7 +1181,7 @@ const ir = (e) => e.replaceAll("\\", "\\\\").replace(sr, "\\${").replaceAll("`",
1181
1181
  repeat: ["lit/directives/repeat.js", "lit-html/directives/repeat.js"],
1182
1182
  ref: ["lit/directives/ref.js", "lit-html/directives/ref.js"],
1183
1183
  nothing: ["lit", "@arcgis/lumina", "lit/html.js", "lit-html", "lit-element/lit-element.js"]
1184
- }, fr = /* @__PURE__ */ new Set([
1184
+ }, yr = /* @__PURE__ */ new Set([
1185
1185
  "h",
1186
1186
  "Fragment",
1187
1187
  "state",
@@ -1191,7 +1191,7 @@ const ir = (e) => e.replaceAll("\\", "\\\\").replace(sr, "\\${").replaceAll("`",
1191
1191
  "bindProperty",
1192
1192
  "bindEvent",
1193
1193
  "bindAttribute"
1194
- ]), gr = /\.(?:css|s[ac]ss|less|styl(?:us)?|postcss|pcss|sss)(\\?|$)/u, de = "@arcgis/lumina:loadLitCss", Ie = "?litCss", Q = "?layeredLitCss", Ze = "?globalFileLitCss", hr = (e) => ({
1194
+ ]), vr = /\.(?:css|s[ac]ss|less|styl(?:us)?|postcss|pcss|sss)(\\?|$)/u, de = "@arcgis/lumina:loadLitCss", Ie = "?litCss", Q = "?layeredLitCss", Ze = "?globalFileLitCss", br = (e) => ({
1195
1195
  name: de,
1196
1196
  enforce: "pre",
1197
1197
  configResolved(t) {
@@ -1231,14 +1231,14 @@ const ir = (e) => e.replaceAll("\\", "\\\\").replace(sr, "\\${").replaceAll("`",
1231
1231
  if (l && (a = a.slice(0, -Ze.length)), !c && !d && !l)
1232
1232
  return await s.handler.call(this, r, a);
1233
1233
  const p = `${a}?inline`, m = await s.handler.call(this, r, p), { code: f, ...g } = typeof m == "string" ? { code: m } : m ?? {};
1234
- return typeof f != "string" || !f.startsWith(wi) || !f.endsWith(yr) ? (T.warn(
1234
+ return typeof f != "string" || !f.startsWith(Ci) || !f.endsWith(wr) ? (T.warn(
1235
1235
  de,
1236
1236
  `Expected vite:css-post to return a JS module with a string literal. Received: ${JSON.stringify(
1237
1237
  f
1238
1238
  )}`
1239
- ), m) : l ? (e._globalCssString = Si(f), { code: "", map: { mappings: "" } }) : {
1239
+ ), m) : l ? (e._globalCssString = Ei(f), { code: "", map: { mappings: "" } }) : {
1240
1240
  ...g,
1241
- code: Sr(f, e.hmrEnabled, e.shouldMinify, d),
1241
+ code: Tr(f, e.hmrEnabled, e.shouldMinify, d),
1242
1242
  /**
1243
1243
  * Vite's original transform does not generate source maps for inlined
1244
1244
  * css, thus we can't either
@@ -1248,8 +1248,8 @@ const ir = (e) => e.replaceAll("\\", "\\\\").replace(sr, "\\${").replaceAll("`",
1248
1248
  }
1249
1249
  };
1250
1250
  }
1251
- }), wi = 'export default "', yr = '"', vr = `import { css } from '${re.css[0]}';
1252
- export const styles = css\``, br = "`;\nexport default styles;", wr = `
1251
+ }), Ci = 'export default "', wr = '"', Sr = `import { css } from '${re.css[0]}';
1252
+ export const styles = css\``, Cr = "`;\nexport default styles;", Er = `
1253
1253
 
1254
1254
  if(import.meta.hot) {
1255
1255
  import.meta.hot.data.styles ??= styles;
@@ -1260,24 +1260,24 @@ if(import.meta.hot) {
1260
1260
  }
1261
1261
  import.meta.hot.data.styles.styleSheet.replaceSync(nextExports.styles.cssText);
1262
1262
  });
1263
- }`, Si = (e) => e.slice(wi.length - 1);
1264
- function Sr(e, t, i, s) {
1265
- const n = Si(e), r = JSON.parse(n), a = ir(r), c = s ? `@layer{${i ? "" : `
1263
+ }`, Ei = (e) => e.slice(Ci.length - 1);
1264
+ function Tr(e, t, i, s) {
1265
+ const n = Ei(e), r = JSON.parse(n), a = nr(r), c = s ? `@layer{${i ? "" : `
1266
1266
  `}${a}${i ? "" : `
1267
1267
  `}}` : a;
1268
- return `${vr}${c}${br}${t ? wr : ""}`;
1268
+ return `${Sr}${c}${Cr}${t ? Er : ""}`;
1269
1269
  }
1270
- function Cr(e) {
1271
- return `import("${Er}").then(({ setCustomElementsManifest }) => {
1272
- setCustomElementsManifest(${Tr(e)});
1270
+ function $r(e) {
1271
+ return `import("${Pr}").then(({ setCustomElementsManifest }) => {
1272
+ setCustomElementsManifest(${kr(e)});
1273
1273
  });`;
1274
1274
  }
1275
- const Er = "@storybook/web-components-vite", Tr = (e) => `JSON.parse(\`${$r(JSON.stringify(JSON.stringify(e)).slice(1, -1))}\`)`;
1276
- function $r(e) {
1275
+ const Pr = "@storybook/web-components-vite", kr = (e) => `JSON.parse(\`${Ir(JSON.stringify(JSON.stringify(e)).slice(1, -1))}\`)`;
1276
+ function Ir(e) {
1277
1277
  return e.replaceAll('\\"', '"').replaceAll("`", "\\`").replaceAll("${", "\\${");
1278
1278
  }
1279
- function Pr(e) {
1280
- kr(e);
1279
+ function xr(e) {
1280
+ Ar(e);
1281
1281
  const t = e.options.css?.globalStylesPath;
1282
1282
  if (t === void 0)
1283
1283
  return "";
@@ -1285,21 +1285,21 @@ function Pr(e) {
1285
1285
  return e.viteCommand === "serve" || e.isInStorybook ? [
1286
1286
  `import globalStyles from "${i}${Q}";`,
1287
1287
  "document.adoptedStyleSheets = [...document.adoptedStyleSheets, globalStyles.styleSheet!];",
1288
- Ei("", e)
1288
+ $i("", e)
1289
1289
  ].join(`
1290
1290
  `) : `import "${i}${Ze}";`;
1291
1291
  }
1292
- const Ci = "hydrated";
1293
- function kr(e) {
1292
+ const Ti = "hydrated";
1293
+ function Ar(e) {
1294
1294
  e._globalHydratedCssString = [
1295
1295
  ":not([",
1296
- e.options.css?.hydratedAttribute ?? Ci,
1296
+ e.options.css?.hydratedAttribute ?? Ti,
1297
1297
  "]):is(",
1298
1298
  e.apiJsonComponents.map((t) => t.tagName).join(","),
1299
1299
  "){visibility:hidden}"
1300
1300
  ].join("");
1301
1301
  }
1302
- function Ei(e, t) {
1302
+ function $i(e, t) {
1303
1303
  return [
1304
1304
  "const globalCss = new CSSStyleSheet;",
1305
1305
  `globalCss.replaceSync("@layer{${`${t._globalHydratedCssString}${t.shouldMinify ? "" : "\\n\\n"}${e ? e.slice(1, -1) : ""}`}}");`,
@@ -1307,72 +1307,72 @@ function Ei(e, t) {
1307
1307
  ].join(`
1308
1308
  `);
1309
1309
  }
1310
- const Ir = (e) => `@layer{${e.shouldMinify ? "" : `
1310
+ const Lr = (e) => `@layer{${e.shouldMinify ? "" : `
1311
1311
  `}${e._globalHydratedCssString}${e.shouldMinify ? "" : `
1312
1312
 
1313
1313
  `}${e._globalCssString ? JSON.parse(e._globalCssString) : ""}${e.shouldMinify ? "" : `
1314
1314
  `}}`;
1315
- function xr(e) {
1315
+ function Nr(e) {
1316
1316
  const t = [], i = [];
1317
1317
  for (const s of e.privateApiJson.modules)
1318
1318
  for (const n of s.declarations)
1319
- n.customElement === !0 && (i.push(Ar(n, e, s.sourcePath)), t.push(s.sourcePath));
1319
+ n.customElement === !0 && (i.push(jr(n, e, s.sourcePath)), t.push(s.sourcePath));
1320
1320
  return [
1321
1321
  'import { runtime } from "./runtime.ts";',
1322
1322
  'import { makeDefineCustomElements } from "@arcgis/lumina";',
1323
- Pr(e),
1324
- e.hmrEnabled ? Nr : "",
1323
+ xr(e),
1324
+ e.hmrEnabled ? Rr : "",
1325
1325
  "",
1326
- e.isInStorybook ? Cr(e.apiJson) : "",
1326
+ e.isInStorybook ? $r(e.apiJson) : "",
1327
1327
  "",
1328
1328
  "export const defineCustomElements = makeDefineCustomElements(runtime, {",
1329
1329
  i.join(`,
1330
1330
  `),
1331
1331
  "});",
1332
- e.hmrEnabled ? jr(t) : ""
1332
+ e.hmrEnabled ? Dr(t) : ""
1333
1333
  ].join(`
1334
1334
  `);
1335
1335
  }
1336
- const Ar = (e, t, i) => [
1336
+ const jr = (e, t, i) => [
1337
1337
  ` "${e.tagName}": [`,
1338
1338
  `()=>import("${u.join(t.dir.root, i)}"),`,
1339
- Lr(e),
1339
+ Fr(e),
1340
1340
  "]"
1341
1341
  ].join("");
1342
- function Lr(e) {
1343
- const { properties: t, asyncMethods: i, syncMethods: s, formAssociated: n } = Ti(e), r = t.map((g) => g.join(Es)).join(Je), a = i.join(Je), c = s.join(Je), d = [r, a, c], l = d.findLastIndex((g) => g.length > 0), p = d.slice(0, l + 1);
1344
- return `${p.length > 0 || n ? `"${p.join(Ts)}"` : ""}${n ? ",1" : ""}`;
1342
+ function Fr(e) {
1343
+ const { properties: t, asyncMethods: i, syncMethods: s, formAssociated: n } = Pi(e), r = t.map((g) => g.join(Ps)).join(Je), a = i.join(Je), c = s.join(Je), d = [r, a, c], l = d.findLastIndex((g) => g.length > 0), p = d.slice(0, l + 1);
1344
+ return `${p.length > 0 || n ? `"${p.join(ks)}"` : ""}${n ? ",1" : ""}`;
1345
1345
  }
1346
- function Ti(e) {
1346
+ function Pi(e) {
1347
1347
  const t = [], i = [], s = [];
1348
1348
  for (let r = 0; r < e.members.length; ++r) {
1349
1349
  const a = e.members[r];
1350
1350
  if (a.kind === "field") {
1351
- const c = typeof a.attribute == "string", d = c && a.attribute !== ti(a.name);
1351
+ const c = typeof a.attribute == "string", d = c && a.attribute !== si(a.name);
1352
1352
  t.push(
1353
1353
  c && !d ? [a.name] : [a.name, d ? String(a.attribute) : ""]
1354
1354
  );
1355
- } else a.kind === "method" && a.name !== "componentOnReady" && (Ns(a) ? i.push(a.name) : s.push(a.name));
1355
+ } else a.kind === "method" && a.name !== "componentOnReady" && (Rs(a) ? i.push(a.name) : s.push(a.name));
1356
1356
  }
1357
1357
  const n = e.formAssociated === !0;
1358
1358
  return { tagName: e.tagName, properties: t, asyncMethods: i, syncMethods: s, formAssociated: n };
1359
1359
  }
1360
- const Nr = `import { handleHmrUpdate, handleComponentMetaUpdate } from "@arcgis/lumina/hmrSupport";
1361
- `, jr = (e) => `
1360
+ const Rr = `import { handleHmrUpdate, handleComponentMetaUpdate } from "@arcgis/lumina/hmrSupport";
1361
+ `, Dr = (e) => `
1362
1362
  if(import.meta.hot) {
1363
1363
  import.meta.hot.on("component-meta-update", handleComponentMetaUpdate);
1364
1364
  import.meta.hot.accept([
1365
1365
  ${e.map((t) => ` "/${t}",`).join(`
1366
1366
  `)}
1367
1367
  ], handleHmrUpdate);
1368
- }`, Fr = "@arcgis/lumina-compiler", $i = {
1369
- name: Fr
1368
+ }`, Or = "@arcgis/lumina-compiler", ki = {
1369
+ name: Or
1370
1370
  };
1371
- 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"];
1372
- async function Pi(e, t) {
1373
- return ne ??= Or(e, t), await ne;
1371
+ var Mr = ["@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"];
1372
+ async function Ii(e, t) {
1373
+ return ne ??= Br(e, t), await ne;
1374
1374
  }
1375
- function Dr() {
1375
+ function Jr() {
1376
1376
  if (xe === void 0)
1377
1377
  throw Error(
1378
1378
  b(
@@ -1382,7 +1382,7 @@ function Dr() {
1382
1382
  );
1383
1383
  return xe;
1384
1384
  }
1385
- function ki() {
1385
+ function xi() {
1386
1386
  if (et === void 0)
1387
1387
  throw Error(
1388
1388
  b(
@@ -1392,9 +1392,9 @@ function ki() {
1392
1392
  );
1393
1393
  return et;
1394
1394
  }
1395
- async function Or(e, t) {
1395
+ async function Br(e, t) {
1396
1396
  const i = j(e), s = i.dependencies ?? {}, n = i.peerDependencies ?? {}, a = (await Promise.all(
1397
- [...Object.keys(s), ...Object.keys(n)].filter((l) => !Mr.has(l)).flatMap(async (l) => await Ii(l, e))
1397
+ [...Object.keys(s), ...Object.keys(n)].filter((l) => !Kr.has(l)).flatMap(async (l) => await Ai(l, e))
1398
1398
  )).filter(R);
1399
1399
  xe ??= a, et = Object.fromEntries(a.flatMap((l) => Object.entries(l.components)));
1400
1400
  const c = t?.serve?.extraDependencies?.map(
@@ -1402,8 +1402,8 @@ async function Or(e, t) {
1402
1402
  ), d = c === void 0 ? a : a.filter((l) => !c.includes(l.packageName));
1403
1403
  return xe ??= d, d;
1404
1404
  }
1405
- const Mr = /* @__PURE__ */ new Set([
1406
- ...Rr,
1405
+ const Kr = /* @__PURE__ */ new Set([
1406
+ ...Mr,
1407
1407
  "@arcgis/languages-sdk-specs",
1408
1408
  "@commander-js/extra-typings",
1409
1409
  "@custom-elements-manifest/analyzer",
@@ -1437,49 +1437,49 @@ const Mr = /* @__PURE__ */ new Set([
1437
1437
  "vscode-languageserver-types"
1438
1438
  ]);
1439
1439
  let xe, et, ne;
1440
- async function Ii(e, t) {
1441
- const i = await $e(e, t), s = await ni(i), n = "exports" in s, r = Gr.bind(void 0, n), a = "@stencil/core" in (s.dependencies ?? {}) || "@stencil/core" in (s.devDependencies ?? {}), c = u.join(i, "dist/esm/loader.js");
1442
- if (a ? await _(c) : !1) {
1443
- const g = await z(c, "utf8"), h = Jr(g, "bootstrapLazy("), y = g.indexOf(", options", h), v = g.slice(h, y), w = v.startsWith('JSON.parse("') ? v.slice(12, -2).replaceAll('\\"', '"') : v;
1440
+ async function Ai(e, t) {
1441
+ const i = await $e(e, t), s = await ai(i), n = "exports" in s, r = Qr.bind(void 0, n), a = "@stencil/core" in (s.dependencies ?? {}) || "@stencil/core" in (s.devDependencies ?? {}), c = u.join(i, "dist/esm/loader.js");
1442
+ if (a ? await K(c) : !1) {
1443
+ const g = await z(c, "utf8"), h = _r(g, "bootstrapLazy("), y = g.indexOf(", options", h), v = g.slice(h, y), w = v.startsWith('JSON.parse("') ? v.slice(12, -2).replaceAll('\\"', '"') : v;
1444
1444
  try {
1445
- const C = JSON.parse(w), E = qr(C, { packageName: e, getImportPath: r });
1445
+ const C = JSON.parse(w), E = Xr(C, { packageName: e, getImportPath: r });
1446
1446
  return { packageName: e, type: "stencil", components: E, packageLocation: i, packageJson: s };
1447
1447
  } catch (C) {
1448
1448
  T.warn("@arcgis/lumina", `Failed to parse dist/esm/loader.js for ${e}.
1449
1449
  Error: ${String(C)}`);
1450
1450
  }
1451
1451
  }
1452
- const l = Pt(s.customElements);
1452
+ const l = kt(s.customElements);
1453
1453
  if (l != null) {
1454
- const g = u.join(i, l), h = JSON.parse(await z(g, "utf-8")), y = Br(h), v = xi(h, {
1454
+ const g = u.join(i, l), h = JSON.parse(await z(g, "utf-8")), y = Wr(h), v = Li(h, {
1455
1455
  packageName: e,
1456
1456
  getImportPath: r
1457
1457
  });
1458
1458
  return { type: y ? "@arcgis/lumina" : "unknown", packageName: e, components: v, packageLocation: i, packageJson: s };
1459
1459
  }
1460
- const p = Pt(s["web-types"]);
1460
+ const p = kt(s["web-types"]);
1461
1461
  if (p != null) {
1462
- const g = u.join(i, p), h = JSON.parse(await z(g, "utf-8")), y = _r(h, {
1462
+ const g = u.join(i, p), h = JSON.parse(await z(g, "utf-8")), y = Ur(h, {
1463
1463
  packageName: e,
1464
1464
  getImportPath: r
1465
1465
  });
1466
1466
  return { type: "unknown", packageName: e, components: y, packageLocation: i, packageJson: s };
1467
1467
  }
1468
1468
  const m = u.join(i, "dist/components");
1469
- if (await _(m)) {
1470
- const g = await Vr(m, {
1469
+ if (await K(m)) {
1470
+ const g = await Yr(m, {
1471
1471
  packageName: e,
1472
1472
  getImportPath: r
1473
1473
  });
1474
1474
  return { type: "unknown", packageName: e, components: g, packageLocation: i, packageJson: s };
1475
1475
  }
1476
1476
  }
1477
- const Pt = (e) => Array.isArray(e) ? e[0] : e;
1478
- function Jr(e, t) {
1477
+ const kt = (e) => Array.isArray(e) ? e[0] : e;
1478
+ function _r(e, t) {
1479
1479
  const i = e.indexOf(t);
1480
1480
  return i === -1 ? -1 : i + t.length;
1481
1481
  }
1482
- function xi(e, t, i = !1) {
1482
+ function Li(e, t, i = !1) {
1483
1483
  const s = /* @__PURE__ */ Object.create(null);
1484
1484
  if (e.modules === void 0)
1485
1485
  return s;
@@ -1516,11 +1516,11 @@ function xi(e, t, i = !1) {
1516
1516
  }
1517
1517
  return s;
1518
1518
  }
1519
- const Br = (e) => (
1519
+ const Wr = (e) => (
1520
1520
  // Since 5.0
1521
1521
  e.compiler?.name === "@arcgis/api-extractor" || // Before 5.0
1522
- e.compiler?.name === $i.name
1523
- ), _r = (e, t) => Object.fromEntries(
1522
+ e.compiler?.name === ki.name
1523
+ ), Ur = (e, t) => Object.fromEntries(
1524
1524
  (e.contributions?.html?.elements ?? e.contributions?.html?.tags)?.map(
1525
1525
  (i) => [
1526
1526
  i.name,
@@ -1531,7 +1531,7 @@ const Br = (e) => (
1531
1531
  }
1532
1532
  ]
1533
1533
  ) ?? []
1534
- ), Kr = 1, Wr = 2, Ur = 4, zr = 8, Hr = Kr | Wr | Ur | zr, qr = (e, t) => Object.fromEntries(
1534
+ ), zr = 1, Hr = 2, qr = 4, Vr = 8, Gr = zr | Hr | qr | Vr, Xr = (e, t) => Object.fromEntries(
1535
1535
  e.flatMap(
1536
1536
  ([i, s]) => s.map(
1537
1537
  ([n, r, a]) => [
@@ -1540,14 +1540,14 @@ const Br = (e) => (
1540
1540
  packageName: t.packageName,
1541
1541
  modulePath: t.getImportPath(r),
1542
1542
  propToAttribute: Object.fromEntries(
1543
- Object.entries(a ?? {}).filter(([c, [d]]) => d & Hr).map(([c, [d, l = c]]) => [c, l])
1543
+ Object.entries(a ?? {}).filter(([c, [d]]) => d & Gr).map(([c, [d, l = c]]) => [c, l])
1544
1544
  )
1545
1545
  }
1546
1546
  ]
1547
1547
  )
1548
1548
  )
1549
- ), Vr = async (e, t) => Object.fromEntries(
1550
- (await ot(e)).filter((i) => i.endsWith(".d.ts")).map((i) => {
1549
+ ), Yr = async (e, t) => Object.fromEntries(
1550
+ (await at(e)).filter((i) => i.endsWith(".d.ts")).map((i) => {
1551
1551
  const s = i.slice(0, -5);
1552
1552
  return [
1553
1553
  s,
@@ -1558,34 +1558,34 @@ const Br = (e) => (
1558
1558
  }
1559
1559
  ];
1560
1560
  })
1561
- ), Gr = (e, t) => e ? `components/${t}` : `dist/components/${t}.js`, Xr = (e) => e.startsWith("/") ? e : `/${e}`, dt = (e, t) => `${e}@fs${Xr(t)}`;
1562
- function Yr(e, t) {
1561
+ ), Qr = (e, t) => e ? `components/${t}` : `dist/components/${t}.js`, Zr = (e) => e.startsWith("/") ? e : `/${e}`, pt = (e, t) => `${e}@fs${Zr(t)}`;
1562
+ function en(e, t) {
1563
1563
  const i = u.resolve(e), s = u.resolve(i, t.split(/[?#]/u)[0].replace(/^[/\\]+/u, "")), n = u.relative(i, s);
1564
1564
  return n === ".." || n.startsWith(`..${u.sep}`) || u.isAbsolute(n) ? void 0 : s;
1565
1565
  }
1566
- const Ai = "packages/core-packages/core/src", Qr = "packages/core-packages/core/output/npm/esm", te = !import.meta.url.includes("node_modules");
1567
- function pt(e) {
1568
- return te && e.name !== "@esri/calcite-components" ? oi().version : e.version;
1566
+ const Ni = "packages/core-packages/core/src", tn = "packages/core-packages/core/output/npm/esm", te = !import.meta.url.includes("node_modules");
1567
+ function ut(e) {
1568
+ return te && e.name !== "@esri/calcite-components" ? ci().version : e.version;
1569
1569
  }
1570
- function Li({ command: e }) {
1570
+ function ji({ command: e }) {
1571
1571
  return e === "serve" && process.argv.includes("--local-core");
1572
1572
  }
1573
- function Ni(e) {
1573
+ function Fi(e) {
1574
1574
  const t = e?.apiExtractorPluginConfig.unsafeConfigOverride?.types?.typeScriptConfig?.config.options.target ?? o.ScriptTarget.ESNext, i = o.ScriptTarget[t].toLowerCase();
1575
1575
  return i === "latest" ? "esnext" : i;
1576
1576
  }
1577
1577
  const tt = "@arcgis/lumina:provideAssets";
1578
- function ie(e, t, i = ut, s = "max-age=31536000, immutable") {
1578
+ function ie(e, t, i = mt, s = "max-age=31536000, immutable") {
1579
1579
  if (e.viteCommand !== "serve")
1580
1580
  throw Error(b(tt, "serveAssets() is only available when Vite is running in serve mode"));
1581
1581
  const n = e._serverConfigured, r = e.server.middlewares.stack.length;
1582
1582
  if (t.forEach((a) => {
1583
- const c = Fi(a), d = Di(e.dir, Ri(c)), l = en(e.viteConfig.base, d, e.dir.distCdn);
1583
+ const c = Di(a), d = Mi(e.dir, Oi(c)), l = rn(e.viteConfig.base, d, e.dir.distCdn);
1584
1584
  e.server.middlewares.use(l, (p, m, f) => {
1585
- const g = tn(p.url), h = c.type === "directory" ? Yr(c.source, g) : c.source, y = u.join(d, g), v = i.find((w) => w.match(y, e));
1585
+ const g = nn(p.url), h = c.type === "directory" ? en(c.source, g) : c.source, y = u.join(d, g), v = i.find((w) => w.match(y, e));
1586
1586
  return h === void 0 ? (m.statusCode = 403, m.end(), !0) : ((typeof h == "function" ? Promise.resolve(h()) : z(h)).then((w) => {
1587
1587
  const C = (typeof h == "function" ? void 0 : v?.transform(w.toString("utf8"), y, e)) ?? w;
1588
- m.setHeader("Cache-Control", s), m.setHeader("Content-Type", Bs.lookup(g) || "application/octet-stream"), m.write(C), m.end();
1588
+ m.setHeader("Cache-Control", s), m.setHeader("Content-Type", Ws.lookup(g) || "application/octet-stream"), m.write(C), m.end();
1589
1589
  }).catch((w) => {
1590
1590
  (c.type !== "directory" || process.env.DEBUG) && T.warn(
1591
1591
  tt,
@@ -1598,31 +1598,31 @@ function ie(e, t, i = ut, s = "max-age=31536000, immutable") {
1598
1598
  e.server.middlewares.stack.splice(0, 0, ...a);
1599
1599
  }
1600
1600
  }
1601
- async function ji(e, t, i = ut) {
1601
+ async function Ri(e, t, i = mt) {
1602
1602
  await Promise.all(
1603
1603
  t.map(async (s) => {
1604
- const n = Fi(s), r = Di(e.dir, Ri(n));
1604
+ const n = Di(s), r = Mi(e.dir, Oi(n));
1605
1605
  if (n.type === "directory") {
1606
- const a = u.resolve(n.source), d = (await ot(a, { recursive: !0, withFileTypes: !0 })).filter((l) => l.isFile()).map((l) => {
1606
+ const a = u.resolve(n.source), d = (await at(a, { recursive: !0, withFileTypes: !0 })).filter((l) => l.isFile()).map((l) => {
1607
1607
  const p = u.resolve(l.parentPath, l.name), m = u.relative(a, p), f = u.join(r, m);
1608
1608
  return [p, f];
1609
1609
  });
1610
- await Mi(d.map(([l, p]) => p)), await _s(
1610
+ await Bi(d.map(([l, p]) => p)), await Us(
1611
1611
  d,
1612
1612
  16,
1613
- async ([l, p]) => await kt(l, p, i, e)
1613
+ async ([l, p]) => await It(l, p, i, e)
1614
1614
  );
1615
1615
  } else if (n.type === "file")
1616
- await X(u.dirname(r), { recursive: !0 }), await kt(n.source, r, i, e);
1616
+ await X(u.dirname(r), { recursive: !0 }), await It(n.source, r, i, e);
1617
1617
  else if (n.type === "dynamic") {
1618
1618
  await X(u.dirname(r), { recursive: !0 });
1619
1619
  const a = await Promise.resolve(n.source());
1620
- await K(r, a);
1620
+ await _(r, a);
1621
1621
  }
1622
1622
  })
1623
1623
  );
1624
1624
  }
1625
- const Fi = ii ? (e) => e : (e) => e.type === "dynamic" ? {
1625
+ const Di = ri ? (e) => e : (e) => e.type === "dynamic" ? {
1626
1626
  ...e,
1627
1627
  destination: G(e.destination)
1628
1628
  } : {
@@ -1630,16 +1630,16 @@ const Fi = ii ? (e) => e : (e) => e.type === "dynamic" ? {
1630
1630
  source: G(e.source),
1631
1631
  destination: G(e.destination)
1632
1632
  };
1633
- async function kt(e, t, i, s) {
1633
+ async function It(e, t, i, s) {
1634
1634
  const n = i.find((r) => r.match(t, s));
1635
1635
  if (n === void 0)
1636
- await Ds(e, t);
1636
+ await Js(e, t);
1637
1637
  else {
1638
1638
  const r = await z(e, "utf8"), a = n.transform(r, t, s);
1639
- await K(t, a);
1639
+ await _(t, a);
1640
1640
  }
1641
1641
  }
1642
- function Ri(e) {
1642
+ function Oi(e) {
1643
1643
  if (e.type === "dynamic")
1644
1644
  return e.destination;
1645
1645
  if (e.source.endsWith(u.sep)) {
@@ -1654,40 +1654,40 @@ function Ri(e) {
1654
1654
  }
1655
1655
  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;
1656
1656
  }
1657
- function Di({ dist: e, distCdnAssets: t }, i) {
1658
- const s = Zr(i), n = u.join(
1657
+ function Mi({ dist: e, distCdnAssets: t }, i) {
1658
+ const s = sn(i), n = u.join(
1659
1659
  t,
1660
1660
  s ? u.relative(t, i) : i
1661
- ), r = u.relative(e, n), a = Oi(r);
1661
+ ), r = u.relative(e, n), a = Ji(r);
1662
1662
  return u.join(e, a);
1663
1663
  }
1664
- function Zr(e) {
1664
+ function sn(e) {
1665
1665
  if (e.startsWith(u.sep)) {
1666
- const t = si(), i = t.startsWith(u.sep) ? t.split(u.sep)[1] ?? "" : "";
1666
+ const t = ni(), i = t.startsWith(u.sep) ? t.split(u.sep)[1] ?? "" : "";
1667
1667
  return e.startsWith(`/${i}/`) || e.startsWith("/Users/");
1668
1668
  } else
1669
- return !!(!ii && u.isAbsolute(e));
1669
+ return !!(!ri && u.isAbsolute(e));
1670
1670
  }
1671
- function en(e, t, i) {
1672
- const s = Oi(u.relative(i, t)), n = s.startsWith("/") ? s.slice(1) : s;
1671
+ function rn(e, t, i) {
1672
+ const s = Ji(u.relative(i, t)), n = s.startsWith("/") ? s.slice(1) : s;
1673
1673
  return `${e}${n}`;
1674
1674
  }
1675
- const Oi = (e) => e.replaceAll("../", ""), tn = (e = "") => e.split("?")[0].split("#")[0];
1676
- async function Mi(e) {
1675
+ const Ji = (e) => e.replaceAll("../", ""), nn = (e = "") => e.split("?")[0].split("#")[0];
1676
+ async function Bi(e) {
1677
1677
  const t = new Set(e.map(u.dirname));
1678
1678
  await Promise.all(Array.from(t, async (i) => await X(i, { recursive: !0 })));
1679
1679
  }
1680
- const sn = {
1680
+ const on = {
1681
1681
  match: (e, t) => t.environment === "production" && e.endsWith(".json"),
1682
1682
  transform: (e) => JSON.stringify(JSON.parse(e))
1683
- }, ut = [sn], Ae = "@arcgis/core", me = "@arcgis/core/assets", Ke = j(), H = Ae in (Ke.dependencies ?? {}) || Ae in (Ke.peerDependencies ?? {}) || // Does not depend on `@arcgis/core` to avoid cycle, but uses core in Lumina tests
1684
- Ke.name === "@arcgis/lumina";
1685
- async function rn(e, t, i, s) {
1683
+ }, mt = [on], Ae = "@arcgis/core", me = "@arcgis/core/assets", _e = j(), H = Ae in (_e.dependencies ?? {}) || Ae in (_e.peerDependencies ?? {}) || // Does not depend on `@arcgis/core` to avoid cycle, but uses core in Lumina tests
1684
+ _e.name === "@arcgis/lumina";
1685
+ async function an(e, t, i, s) {
1686
1686
  if (!H)
1687
1687
  return [];
1688
1688
  const n = e._localCdnCore, r = n?.packageLocation ?? await $e(Ae);
1689
1689
  if (i === "cdn") {
1690
- const a = await ni(r), c = De(a, s);
1690
+ const a = await ai(r), c = De(a, s);
1691
1691
  return [
1692
1692
  // Use the ESM CDN
1693
1693
  // <script src="https://jsdev.arcgis.com/VERSION/"><\/script>
@@ -1703,18 +1703,18 @@ async function rn(e, t, i, s) {
1703
1703
  })
1704
1704
  },
1705
1705
  // <link rel="stylesheet" id="arcgisCoreStylesheet" href="https://jsdev.arcgis.com/VERSION/esri/themes/light/main.css" />
1706
- Ji(c)
1706
+ Ki(c)
1707
1707
  ];
1708
1708
  } else
1709
- return nn(t, r, n?.sourceLocation !== void 0);
1709
+ return cn(t, r, n?.sourceLocation !== void 0);
1710
1710
  }
1711
- function nn(e, t, i) {
1711
+ function cn(e, t, i) {
1712
1712
  const s = `${e}${me}`;
1713
1713
  return [
1714
1714
  // Browser tests import this as a Vite CSS module and adopt its stylesheet, so CSS must remain on the /@fs route.
1715
1715
  // Core's prebuilt JavaScript assets use the untransformed route configured below.
1716
- Ji(
1717
- i ? `${e}${me}/` : dt(e, `${t}/assets/`)
1716
+ Ki(
1717
+ i ? `${e}${me}/` : pt(e, `${t}/assets/`)
1718
1718
  ),
1719
1719
  {
1720
1720
  // This import is injected dynamically, so external consumers must tell Vite to optimize it. Within the monorepo,
@@ -1727,7 +1727,7 @@ function nn(e, t, i) {
1727
1727
  }
1728
1728
  ];
1729
1729
  }
1730
- async function on(e) {
1730
+ async function ln(e) {
1731
1731
  const t = e._localCdnCore, i = t?.packageLocation ?? await $e(Ae), s = t?.sourceLocation !== void 0 ? [
1732
1732
  {
1733
1733
  type: "directory",
@@ -1769,27 +1769,27 @@ async function on(e) {
1769
1769
  ];
1770
1770
  e.server.middlewares.use("/builddate.txt", (n, r) => {
1771
1771
  r.setHeader("Cache-Control", "no-cache"), r.setHeader("Content-Type", "text/plain");
1772
- const a = t?.sourceLocation ? oi().version : j(i).version;
1772
+ const a = t?.sourceLocation ? ci().version : j(i).version;
1773
1773
  r.end(JSON.stringify({ version: a }));
1774
1774
  }), ie(e, s, [], "no-cache");
1775
1775
  }
1776
- const Ji = (e) => ({
1776
+ const Ki = (e) => ({
1777
1777
  // Not using join() because it would turn https:// into https:/
1778
1778
  cssHref: `${e}esri/themes/light/main.css`,
1779
1779
  // This is used be the theme switcher in `@arcgis/storybook-utils`
1780
1780
  id: "arcgisCoreStylesheet"
1781
- }), mt = "customElement.js";
1782
- function an(e, t) {
1781
+ }), ft = "customElement.js";
1782
+ function dn(e, t) {
1783
1783
  if (!t.startsWith(e))
1784
1784
  return t;
1785
1785
  const s = t.split(u.sep);
1786
- return s.at(cn) !== s.at(ln) ? t : u.join(s.slice(0, -1).join(u.sep), mt);
1786
+ return s.at(pn) !== s.at(un) ? t : u.join(s.slice(0, -1).join(u.sep), ft);
1787
1787
  }
1788
- const cn = -1, ln = -2, dn = /["']\.\.?\/[^'"]+/gu, pn = (e, t, i, s) => e.replaceAll(dn, (n) => {
1788
+ const pn = -1, un = -2, mn = /["']\.\.?\/[^'"]+/gu, fn = (e, t, i, s) => e.replaceAll(mn, (n) => {
1789
1789
  const r = n.slice(1);
1790
1790
  if (!r.startsWith("./") && !r.startsWith("../"))
1791
1791
  return n;
1792
- const a = u.join(s, r), c = !r.endsWith(".js") && !r.split("/").at(-1).includes(".") ? an(t.dir.distComponents, a) : a, d = c.startsWith(t.dir.distComponents) ? t.dir.dist + Ge(c.slice(t.dir.dist.length), t.apiExtractor) : c;
1792
+ const a = u.join(s, r), c = !r.endsWith(".js") && !r.split("/").at(-1).includes(".") ? dn(t.dir.distComponents, a) : a, d = c.startsWith(t.dir.distComponents) ? t.dir.dist + Ge(c.slice(t.dir.dist.length), t.apiExtractor) : c;
1793
1793
  if (i === s && a === d)
1794
1794
  return n;
1795
1795
  const l = he(i, d), p = n.endsWith("/") ? `${l}/` : l;
@@ -1798,12 +1798,12 @@ const cn = -1, ln = -2, dn = /["']\.\.?\/[^'"]+/gu, pn = (e, t, i, s) => e.repla
1798
1798
  const i = u.relative(e, t);
1799
1799
  return i.startsWith(".") ? i : `.${u.sep}${i}`;
1800
1800
  };
1801
- async function un(e, t, i) {
1801
+ async function gn(e, t, i) {
1802
1802
  const s = u.resolve(e.dir.root, t);
1803
- e.viteConfig.build.emptyOutDir !== !1 && await _(s) && await Os(s, { recursive: !0, force: !0 }), await X(s, { recursive: !0 }), await Ms(e.dir.distCdn, u.join(s, "build"), { recursive: !0 });
1803
+ e.viteConfig.build.emptyOutDir !== !1 && await K(s) && await Bs(s, { recursive: !0, force: !0 }), await X(s, { recursive: !0 }), await Ks(e.dir.distCdn, u.join(s, "build"), { recursive: !0 });
1804
1804
  const n = [
1805
1805
  "index.html",
1806
- ...await Ks("**/*.html", {
1806
+ ...await zs("**/*.html", {
1807
1807
  cwd: e.dir.src,
1808
1808
  onlyFiles: !0,
1809
1809
  // The files we are looking for are unlikely to be symbolic links
@@ -1837,11 +1837,11 @@ async function un(e, t, i) {
1837
1837
  if (C === Number.POSITIVE_INFINITY)
1838
1838
  throw Error(b("@arcgis/lumina:buildWebApp", `Failed to find <head> or <style> tag in ${g}`));
1839
1839
  const E = y.slice(0, C) + w + y.slice(C), P = e.options?.build?.webApp?.transformFile?.(E, h, e) ?? E;
1840
- await K(h, P, "utf-8");
1840
+ await _(h, P, "utf-8");
1841
1841
  })
1842
1842
  ), await e.options.build?.webApp?.afterBuildEnd?.(e);
1843
1843
  }
1844
- const Bi = /* @__PURE__ */ new Set([
1844
+ const _i = /* @__PURE__ */ new Set([
1845
1845
  "chunks",
1846
1846
  "components",
1847
1847
  "docs",
@@ -1854,13 +1854,13 @@ const Bi = /* @__PURE__ */ new Set([
1854
1854
  "collection",
1855
1855
  "extras",
1856
1856
  "support"
1857
- ]), O = "@arcgis/lumina:buildCdn", le = "cdn", _i = "index", Z = "main";
1858
- function mn(e) {
1857
+ ]), O = "@arcgis/lumina:buildCdn", le = "cdn", Wi = "index", Z = "main";
1858
+ function hn(e) {
1859
1859
  const { skip: t = !1, namespace: i, esbuildOptions: s = {}, entrypointTransformer: n } = e.options.build?.cdn ?? {}, r = e.options.build?.webApp?.destination, a = i !== void 0;
1860
1860
  if (a) {
1861
1861
  if (i.toLowerCase() !== i)
1862
1862
  throw new Error(`Expected CDN namespace to be all lowercase. Received: ${i}`);
1863
- if (Bi.has(i))
1863
+ if (_i.has(i))
1864
1864
  throw new Error(
1865
1865
  `Namespace name "${i}" is restricted as it collides with a well-known Lumina dist/ folder name or Stencil dist/ folder name.`
1866
1866
  );
@@ -1868,11 +1868,11 @@ function mn(e) {
1868
1868
  'The "namespace" option in the "build.cdn" is deprecated and will be removed in the next major version.'
1869
1869
  );
1870
1870
  }
1871
- const c = i ?? _i;
1871
+ const c = i ?? Wi;
1872
1872
  if (e.provideAssets([
1873
1873
  {
1874
1874
  type: "dynamic",
1875
- source: () => Ir(e),
1875
+ source: () => Lr(e),
1876
1876
  destination: `../${a ? c : Z}.css`
1877
1877
  }
1878
1878
  ]), !t)
@@ -1888,7 +1888,7 @@ function mn(e) {
1888
1888
  );
1889
1889
  return;
1890
1890
  }
1891
- const d = H && j().name !== "@arcgis/embeddable-components", l = 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 fn(
1891
+ const d = H && j().name !== "@arcgis/embeddable-components", l = 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(
1892
1892
  e,
1893
1893
  c,
1894
1894
  s,
@@ -1896,7 +1896,7 @@ function mn(e) {
1896
1896
  n,
1897
1897
  d
1898
1898
  );
1899
- await gn(
1899
+ await vn(
1900
1900
  m,
1901
1901
  e,
1902
1902
  a ? `${c}.esm` : c,
@@ -1904,11 +1904,11 @@ function mn(e) {
1904
1904
  d
1905
1905
  );
1906
1906
  const f = Date.now();
1907
- T.info(O, `CDN was built in ${f - l}ms`), r && await un(e, r, `${a ? `${c}.esm` : c}.js`);
1907
+ T.info(O, `CDN was built in ${f - l}ms`), r && await gn(e, r, `${a ? `${c}.esm` : c}.js`);
1908
1908
  }
1909
1909
  };
1910
1910
  }
1911
- async function fn(e, t, i, s, n, r) {
1911
+ async function yn(e, t, i, s, n, r) {
1912
1912
  const a = e.environment;
1913
1913
  if (i.minify && r)
1914
1914
  throw Error(
@@ -1931,8 +1931,8 @@ async function fn(e, t, i, s, n, r) {
1931
1931
  * The script's file name will be stripped inside defineCustomElements.
1932
1932
  **/
1933
1933
  defineCustomElements({resourcesUrl: import.meta.url});
1934
- ${Ei(e._globalCssString, e)}`, d = n?.(c, e) ?? c;
1935
- return await Js({
1934
+ ${$i(e._globalCssString, e)}`, d = n?.(c, e) ?? c;
1935
+ return await _s({
1936
1936
  bundle: !0,
1937
1937
  minify: r ? !0 : a === "production",
1938
1938
  treeShaking: !0,
@@ -1957,7 +1957,7 @@ ${Ei(e._globalCssString, e)}`, d = n?.(c, e) ?? c;
1957
1957
  chunkNames: "[hash]",
1958
1958
  resolveExtensions: [".js", ".json"],
1959
1959
  banner: { js: e.banner },
1960
- target: Ni(e),
1960
+ target: Fi(e),
1961
1961
  ...i,
1962
1962
  write: !1,
1963
1963
  plugins: [
@@ -2016,8 +2016,8 @@ ${Ei(e._globalCssString, e)}`, d = n?.(c, e) ?? c;
2016
2016
  }
2017
2017
  });
2018
2018
  }
2019
- const It = "stdin.js";
2020
- async function gn(e, t, i, s, n) {
2019
+ const xt = "stdin.js";
2020
+ async function vn(e, t, i, s, n) {
2021
2021
  const r = t.dir.distCdn, a = `${i}.js`;
2022
2022
  let c;
2023
2023
  n && (c = new Set(s.map((p) => `${p.out}.js`)), c.add(a));
@@ -2029,15 +2029,15 @@ async function gn(e, t, i, s, n) {
2029
2029
  isAsync: void 0,
2030
2030
  oldSingleExportName: void 0
2031
2031
  }, f = G(p.path.slice(r.length));
2032
- if (f === It) {
2032
+ if (f === xt) {
2033
2033
  if (n) {
2034
- const h = p.text.match(hn)?.[0];
2034
+ const h = p.text.match(bn)?.[0];
2035
2035
  if (h === void 0)
2036
2036
  throw Error(
2037
- `Failed to find the runtime variable name in the CDN entrypoint file. This likely indicates a bug in Lumina. ${It} contents:
2037
+ `Failed to find the runtime variable name in the CDN entrypoint file. This likely indicates a bug in Lumina. ${xt} contents:
2038
2038
  ${p.text}`
2039
2039
  );
2040
- m.code = `${m.code.trimEnd()}${yn(h, s)}`, m.isAsync = !1;
2040
+ m.code = `${m.code.trimEnd()}${wn(h, s)}`, m.isAsync = !1;
2041
2041
  }
2042
2042
  return [a, m];
2043
2043
  }
@@ -2047,7 +2047,7 @@ ${p.text}`
2047
2047
  n && d.forEach((p, m) => {
2048
2048
  if (p.isAsync === void 0)
2049
2049
  if (m.endsWith(".js")) {
2050
- if (Ki(p, d), c?.has(m) === !0 && p.code.includes(Wi))
2050
+ if (Ui(p, d), c?.has(m) === !0 && p.code.includes(zi))
2051
2051
  throw Error(
2052
2052
  b(
2053
2053
  O,
@@ -2065,10 +2065,10 @@ ${p.text}`
2065
2065
  l.set(f, X(r + f, { recursive: !0 }));
2066
2066
  }
2067
2067
  }
2068
- await Promise.all(l.values()), await Promise.all(Array.from(d.entries(), async ([p, { code: m }]) => await K(r + p, m)));
2068
+ await Promise.all(l.values()), await Promise.all(Array.from(d.entries(), async ([p, { code: m }]) => await _(r + p, m)));
2069
2069
  }
2070
- const hn = /(?<=;var [a-zA-Z$_]=[a-zA-Z$_]\()[a-zA-Z$_](?=,\{")/u;
2071
- function yn(e, t) {
2070
+ const bn = /(?<=;var [a-zA-Z$_]=[a-zA-Z$_]\()[a-zA-Z$_](?=,\{")/u;
2071
+ function wn(e, t) {
2072
2072
  let i = [
2073
2073
  "window.$arcgis",
2074
2074
  "||",
@@ -2109,15 +2109,15 @@ function yn(e, t) {
2109
2109
  }
2110
2110
  return i += ")", i;
2111
2111
  }
2112
- function Ki(e, t) {
2112
+ function Ui(e, t) {
2113
2113
  if (e.isProcessing) {
2114
- e.isAsync = !0, xt(e);
2114
+ e.isAsync = !0, At(e);
2115
2115
  return;
2116
2116
  }
2117
2117
  e.isProcessing = !0;
2118
2118
  const i = [], s = [], n = [], r = /* @__PURE__ */ new Set(), a = [];
2119
2119
  let c = 0;
2120
- const d = e.code.matchAll(vn);
2120
+ const d = e.code.matchAll(Sn);
2121
2121
  for (const S of d) {
2122
2122
  const [A, L, U, F, N] = S, B = N.startsWith(Le);
2123
2123
  if (c !== 0 && c !== S.index) {
@@ -2125,14 +2125,14 @@ function Ki(e, t) {
2125
2125
  n.push(D), a.push([c, D.length, 0, ""]);
2126
2126
  }
2127
2127
  if (c = S.index + A.length, B)
2128
- a.push([S.index, A.length, 0, ""]), s.push(`"${zi(N.slice(Le.length))}"`), i.push(L?.replaceAll(" as ", ":") ?? U ?? F ?? "");
2128
+ a.push([S.index, A.length, 0, ""]), s.push(`"${qi(N.slice(Le.length))}"`), i.push(L?.replaceAll(" as ", ":") ?? U ?? F ?? "");
2129
2129
  else {
2130
- const D = Ui(N, t), M = D?.isAsync === !0;
2130
+ const D = Hi(N, t), M = D?.isAsync === !0;
2131
2131
  if (L !== void 0) {
2132
2132
  const be = [];
2133
2133
  for (const Me of L.slice(1, -1).split(",")) {
2134
- const [bt, wt = bt] = Me.split(" as ");
2135
- M || r.add(wt), be.push(`${bt}:${wt}`);
2134
+ const [wt, St = wt] = Me.split(" as ");
2135
+ M || r.add(St), be.push(`${wt}:${St}`);
2136
2136
  }
2137
2137
  if (M) {
2138
2138
  const Me = D.oldSingleExportName === void 0 ? `{${be.join(",")}}` : be[0].split(":")[1];
@@ -2156,10 +2156,10 @@ ${D.code}`
2156
2156
  e.isProcessing = !1;
2157
2157
  const l = e.isAsync === !0;
2158
2158
  if (e.isAsync = l || a.length > 0, !e.isAsync) {
2159
- e.code = At(e.code, t);
2159
+ e.code = Lt(e.code, t);
2160
2160
  return;
2161
2161
  }
2162
- const p = Sn(r);
2162
+ const p = Tn(r);
2163
2163
  let m = e.code.slice(0, c);
2164
2164
  for (let S = a.length - 1; S >= 0; S--) {
2165
2165
  const [A, L, U, F] = a[S];
@@ -2170,15 +2170,15 @@ ${D.code}`
2170
2170
  }
2171
2171
  m = m.slice(0, A) + B + m.slice(A + N);
2172
2172
  }
2173
- const [f, g] = xt(e), h = i.findLastIndex((S) => S.length > 0), y = i.slice(0, h + 1).join(","), v = i.length === 0 ? "_" : `([${y}])`, w = `${Wi}${v}=>{`, C = s.join(","), E = `${g}},${C})`;
2173
+ const [f, g] = At(e), h = i.findLastIndex((S) => S.length > 0), y = i.slice(0, h + 1).join(","), v = i.length === 0 ? "_" : `([${y}])`, w = `${zi}${v}=>{`, C = s.join(","), E = `${g}},${C})`;
2174
2174
  let P = e.code.slice(c, f);
2175
- P = `${n.join("")}${P}`, P = At(P, t);
2175
+ P = `${n.join("")}${P}`, P = Lt(P, t);
2176
2176
  const x = `${m}${w}${P}${E}`;
2177
2177
  e.code = x;
2178
2178
  }
2179
- const Wi = "export default $arcgis.t(";
2180
- function xt(e) {
2181
- const t = bn.exec(e.code), i = t?.index ?? e.code.length;
2179
+ const zi = "export default $arcgis.t(";
2180
+ function At(e) {
2181
+ const t = Cn.exec(e.code), i = t?.index ?? e.code.length;
2182
2182
  let s = "";
2183
2183
  if (t !== null) {
2184
2184
  const n = t[1].split(",");
@@ -2194,51 +2194,51 @@ function xt(e) {
2194
2194
  }
2195
2195
  return [i, s];
2196
2196
  }
2197
- const vn = /import(?:(\{[^}]+\})from|\*as ([\w$]+) from| ([\w$]+) from)?"([^"]+)";/gu, bn = /export\{([^}]+)\};\n$/u, Le = "@arcgis/core/";
2198
- function Ui(e, t) {
2197
+ const Sn = /import(?:(\{[^}]+\})from|\*as ([\w$]+) from| ([\w$]+) from)?"([^"]+)";/gu, Cn = /export\{([^}]+)\};\n$/u, Le = "@arcgis/core/";
2198
+ function Hi(e, t) {
2199
2199
  if (!e.startsWith("./"))
2200
2200
  return;
2201
2201
  const i = e.slice(2), s = t.get(i);
2202
2202
  if (s === void 0)
2203
2203
  throw Error(b(O, `Failed to find the ${e} module`));
2204
- if (s.isAsync === void 0 && Ki(s, t), s.isAsync === void 0)
2204
+ if (s.isAsync === void 0 && Ui(s, t), s.isAsync === void 0)
2205
2205
  throw Error(b(O, `Failed to infer whether the ${e} module has top-level await`));
2206
2206
  return s;
2207
2207
  }
2208
- function At(e, t) {
2209
- return e.replaceAll(wn, (i, s) => {
2208
+ function Lt(e, t) {
2209
+ return e.replaceAll(En, (i, s) => {
2210
2210
  if (s.startsWith(Le))
2211
- return `$arcgis.t(m=>m[0],"${zi(s.slice(Le.length))}")`;
2211
+ return `$arcgis.t(m=>m[0],"${qi(s.slice(Le.length))}")`;
2212
2212
  if (s.startsWith("./")) {
2213
- const n = Ui(s, t);
2213
+ const n = Hi(s, t);
2214
2214
  if (n?.isAsync === !0)
2215
2215
  return `${i}.then(m=>m.default${n.oldSingleExportName === void 0 ? "" : `.then(e=>({${n.oldSingleExportName}:e}))`})`;
2216
2216
  }
2217
2217
  return i;
2218
2218
  });
2219
2219
  }
2220
- const wn = /(?<![.\w\d])import\("([^"]+)"\)/gu, zi = (e) => e.endsWith(".js") ? e.slice(0, -3) : e;
2221
- function Sn(e) {
2220
+ const En = /(?<![.\w\d])import\("([^"]+)"\)/gu, qi = (e) => e.endsWith(".js") ? e.slice(0, -3) : e;
2221
+ function Tn(e) {
2222
2222
  const t = [it];
2223
2223
  return () => {
2224
2224
  for (; ; ) {
2225
- const i = Tn(t);
2226
- if ($n(t), !e.has(i))
2225
+ const i = kn(t);
2226
+ if (In(t), !e.has(i))
2227
2227
  return e.add(i), i;
2228
2228
  }
2229
2229
  };
2230
2230
  }
2231
- const it = 0, ft = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_", Hi = `${ft}0123456789`, Cn = ft.length, En = Hi.length;
2232
- function Tn(e) {
2233
- let t = ft[e[0]];
2231
+ const it = 0, gt = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_", Vi = `${gt}0123456789`, $n = gt.length, Pn = Vi.length;
2232
+ function kn(e) {
2233
+ let t = gt[e[0]];
2234
2234
  for (let i = 1; i < e.length; ++i)
2235
- t += Hi[e[i]];
2235
+ t += Vi[e[i]];
2236
2236
  return t;
2237
2237
  }
2238
- function $n(e) {
2238
+ function In(e) {
2239
2239
  let t = e.length - 1;
2240
2240
  for (; t >= 0; ) {
2241
- const i = t === 0 ? Cn : En;
2241
+ const i = t === 0 ? $n : Pn;
2242
2242
  if (e[t] += 1, e[t] >= i)
2243
2243
  e[t] = it, t--;
2244
2244
  else
@@ -2247,10 +2247,10 @@ function $n(e) {
2247
2247
  e.push(it);
2248
2248
  }
2249
2249
  function De(e = j(), t = !1) {
2250
- const i = e.name === "@esri/calcite-components", s = pt(e) ?? e.version, n = s.includes("next");
2250
+ const i = e.name === "@esri/calcite-components", s = ut(e) ?? e.version, n = s.includes("next");
2251
2251
  if (i && n)
2252
2252
  return `https://cdn.jsdelivr.net/npm/@esri/calcite-components@${s}/dist/${le}/`;
2253
- const r = t || n ? "jsdev.arcgis.com" : "js.arcgis.com", a = Pn(e.name), c = kn(s);
2253
+ const r = t || n ? "jsdev.arcgis.com" : "js.arcgis.com", a = xn(e.name), c = An(s);
2254
2254
  if (c === void 0)
2255
2255
  throw Error(
2256
2256
  b(
@@ -2260,16 +2260,16 @@ function De(e = j(), t = !1) {
2260
2260
  );
2261
2261
  return a === "core" ? `https://${r}/${c}/` : i ? `https://${r}/${a}/${c}/` : `https://${r}/${c}/${a}/`;
2262
2262
  }
2263
- const Pn = (e) => e.split("/").pop() ?? e;
2264
- function kn(e) {
2263
+ const xn = (e) => e.split("/").pop() ?? e;
2264
+ function An(e) {
2265
2265
  const t = /^(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)(?<prerelease>-.*)?$/u, i = e.match(t);
2266
2266
  if (i?.groups === void 0)
2267
2267
  return;
2268
2268
  const { major: s, minor: n, patch: r, prerelease: a } = i.groups, c = `${s}.${n}.${r}`;
2269
2269
  return a?.startsWith("-next") ? `${c}-next` : c;
2270
2270
  }
2271
- async function In(e, t, i, s, n) {
2272
- const r = t.packageName, { hasCss: a, cdnName: c } = await qi(t.packageLocation) ?? {};
2271
+ async function Ln(e, t, i, s, n) {
2272
+ const r = t.packageName, { hasCss: a, cdnName: c } = await Gi(t.packageLocation) ?? {};
2273
2273
  if (i === "cdn") {
2274
2274
  const m = t.cdnUrl ?? De(t.packageJson, n);
2275
2275
  return [
@@ -2306,36 +2306,36 @@ async function In(e, t, i, s, n) {
2306
2306
  ...l,
2307
2307
  `import { defineCustomElements as defineCustomElements$${s} } from "${p}";`,
2308
2308
  `defineCustomElements$${s}(globalThis.window, {`,
2309
- ` resourcesUrl: "${dt(e, t.packageLocation)}/dist/${c}/",`,
2309
+ ` resourcesUrl: "${pt(e, t.packageLocation)}/dist/${c}/",`,
2310
2310
  "});"
2311
2311
  ]
2312
2312
  }
2313
2313
  ];
2314
2314
  }
2315
- async function qi(e) {
2316
- const t = u.join(e, "dist"), i = u.basename(e), n = (await ot(t)).filter(
2317
- (a) => !Bi.has(a) && !a.includes(".")
2315
+ async function Gi(e) {
2316
+ const t = u.join(e, "dist"), i = u.basename(e), n = (await at(t)).filter(
2317
+ (a) => !_i.has(a) && !a.includes(".")
2318
2318
  ), r = n.find(
2319
2319
  (a) => a.startsWith("arcgis-") || // This is the case for template-components and field-apps-custom-elements
2320
2320
  a === i
2321
2321
  );
2322
2322
  return r === void 0 ? await Promise.all(
2323
- n.map(async (a) => await Lt(t, a))
2324
- ).then((a) => a.find(R)) : await Lt(t, r);
2323
+ n.map(async (a) => await Nt(t, a))
2324
+ ).then((a) => a.find(R)) : await Nt(t, r);
2325
2325
  }
2326
- async function Lt(e, t) {
2326
+ async function Nt(e, t) {
2327
2327
  const i = u.join(e, t, `${t}.css`), s = u.join(e, t, "assets"), n = u.join(e, t, `${t}.esm.js`), [r, a, c] = await Promise.all([
2328
- _(i),
2329
- _(s),
2330
- _(n)
2328
+ K(i),
2329
+ K(s),
2330
+ K(n)
2331
2331
  ]);
2332
2332
  return r || a || c ? {
2333
2333
  hasCss: r,
2334
2334
  cdnName: t
2335
2335
  } : void 0;
2336
2336
  }
2337
- async function xn(e, t, i, s, n) {
2338
- const a = t.packageJson.exports?.[`./${Z}.css`] === void 0 ? await qi(t.packageLocation) : void 0, c = a?.cdnName ?? le, d = a === void 0 ? `${_i}.js` : `${a.cdnName}.esm.js`;
2337
+ async function Nn(e, t, i, s, n) {
2338
+ const a = t.packageJson.exports?.[`./${Z}.css`] === void 0 ? await Gi(t.packageLocation) : void 0, c = a?.cdnName ?? le, d = a === void 0 ? `${Wi}.js` : `${a.cdnName}.esm.js`;
2339
2339
  if (i === "cdn")
2340
2340
  return {
2341
2341
  tag: "script",
@@ -2344,7 +2344,7 @@ async function xn(e, t, i, s, n) {
2344
2344
  src: `${t.cdnUrl ?? De(t.packageJson, n)}${d}`
2345
2345
  }
2346
2346
  };
2347
- const l = An(t.packageJson), p = `${t.packageName}/${u.normalize(l)}${Q}`, m = [
2347
+ const l = jn(t.packageJson), p = `${t.packageName}/${u.normalize(l)}${Q}`, m = [
2348
2348
  `import styles$${s} from "${p}";`,
2349
2349
  `document.adoptedStyleSheets = [...document.adoptedStyleSheets, styles$${s}.styleSheet];`
2350
2350
  ], f = `${t.packageName}/loader`;
@@ -2358,12 +2358,12 @@ async function xn(e, t, i, s, n) {
2358
2358
  ...m,
2359
2359
  `import { defineCustomElements as defineCustomElements$${s} } from "${f}";`,
2360
2360
  `defineCustomElements$${s}({`,
2361
- ` resourcesUrl: "${dt(e, t.packageLocation)}/dist/${c}/",`,
2361
+ ` resourcesUrl: "${pt(e, t.packageLocation)}/dist/${c}/",`,
2362
2362
  "});"
2363
2363
  ]
2364
2364
  };
2365
2365
  }
2366
- function An(e) {
2366
+ function jn(e) {
2367
2367
  const { exports: t } = e;
2368
2368
  if (t === void 0)
2369
2369
  throw new Error(
@@ -2373,21 +2373,21 @@ function An(e) {
2373
2373
  return s ? s[0] : i.length > 0 ? i[0][0] : `./${Z}.css`;
2374
2374
  }
2375
2375
  async function oe(e, t) {
2376
- return t !== void 0 ? await Nt(e, t) : (e._loadersCache ??= Nt(e), await e._loadersCache);
2376
+ return t !== void 0 ? await jt(e, t) : (e._loadersCache ??= jt(e), await e._loadersCache);
2377
2377
  }
2378
- async function Nt(e, t) {
2378
+ async function jt(e, t) {
2379
2379
  const i = e.viteCommand === "build" ? "cdn" : "lazyNpm", s = e.environment === "development", n = t ?? e.viteConfig.base;
2380
2380
  let r = 0;
2381
2381
  const a = async (m) => (await Promise.all(
2382
2382
  m.map(async (f) => {
2383
2383
  const g = r++;
2384
- return f.type === "stencil" ? await In(n, f, i, g, s) : f.type === "@arcgis/lumina" ? await xn(n, f, i, g, s) : void 0;
2384
+ return f.type === "stencil" ? await Ln(n, f, i, g, s) : f.type === "@arcgis/lumina" ? await Nn(n, f, i, g, s) : void 0;
2385
2385
  })
2386
2386
  )).filter(R).flat(), c = await Promise.all([
2387
2387
  // This may contain an import map so must be first
2388
- rn(e, n, i, s),
2388
+ an(e, n, i, s),
2389
2389
  ne.then(a),
2390
- Vi(e).then(a)
2390
+ Xi(e).then(a)
2391
2391
  ]), d = u.join(e.dir.src, "loader.ts"), l = t ?? (i === "cdn" ? `./${e.options.build?.cdn?.namespace ?? le}/` : void 0);
2392
2392
  return [
2393
2393
  ...c.flat(),
@@ -2406,11 +2406,11 @@ async function Nt(e, t) {
2406
2406
  }
2407
2407
  ];
2408
2408
  }
2409
- async function Vi(e) {
2409
+ async function Xi(e) {
2410
2410
  const t = e.options?.serve?.extraDependencies ?? [];
2411
2411
  return t.length === 0 ? [] : (e._serveOnlyDependencies ??= Promise.all(
2412
2412
  t.map(async (i) => {
2413
- const s = typeof i == "string" ? void 0 : i, n = typeof i == "string" ? i : i.name, r = await Ii(n);
2413
+ const s = typeof i == "string" ? void 0 : i, n = typeof i == "string" ? i : i.name, r = await Ai(n);
2414
2414
  if (r === void 0)
2415
2415
  throw Error(
2416
2416
  b(
@@ -2425,55 +2425,46 @@ async function Vi(e) {
2425
2425
  })
2426
2426
  ).then((i) => i.filter(R)), await e._serveOnlyDependencies);
2427
2427
  }
2428
- const Ln = "/C:@arcgis/lumina-compiler/testSetupFile", Nn = /^\/C:@arcgis\/lumina-compiler\/testSetupFile/u, We = [Ln];
2429
- async function jn(e) {
2430
- if (
2431
- /**
2432
- * Only import custom element dependencies if we are running in Vitest browser mode.
2433
- * This keeps node tests lightweight for unit tests that don't deal with web
2434
- * components.
2435
- *
2436
- * For puppeteer front-end, we run Vite rather than Vitest, so setup-file
2437
- * does not apply (instead we use transformIndexHtml() for dependency loading).
2438
- */
2439
- !e.apiJsonEnabled
2440
- )
2441
- return jt(e);
2442
- const i = (await oe(e)).map((s, n) => {
2443
- if ("javascriptCode" in s)
2444
- return s.javascriptCode.join(`
2428
+ const Yi = "/C:@arcgis/lumina-compiler/testSetupFile", st = `${Yi}/dependencies`, Ft = /^\/C:@arcgis\/lumina-compiler\/testSetupFile/u, We = [Yi];
2429
+ function Fn(e) {
2430
+ return e.apiJsonEnabled ? `${Rt(e)}
2431
+ import "${st}";` : Rt(e);
2432
+ }
2433
+ async function Rn(e) {
2434
+ return (await oe(e)).map((i, s) => {
2435
+ if ("javascriptCode" in i)
2436
+ return i.javascriptCode.join(`
2445
2437
  `);
2446
- if ("cssHref" in s)
2438
+ if ("cssHref" in i)
2447
2439
  return [
2448
2440
  /*
2449
2441
  * The $index naming is already used by makeLoaders(), so we use the
2450
2442
  * $t prefix to avoid collisions.
2451
2443
  */
2452
- `import styles$t${n} from "${s.cssHref}${Q}";`,
2453
- `document.adoptedStyleSheets = [...document.adoptedStyleSheets, styles$t${n}.styleSheet];`
2444
+ `import styles$t${s} from "${i.cssHref}${Q}";`,
2445
+ `document.adoptedStyleSheets = [...document.adoptedStyleSheets, styles$t${s}.styleSheet];`
2454
2446
  ].join(`
2455
2447
  `);
2456
2448
  throw Error(
2457
2449
  b(
2458
2450
  "@arcgis/lumina:buildTestSetupFile",
2459
- `Unexpected loader type for the browser test environment: ${JSON.stringify(s)}`
2451
+ `Unexpected loader type for the browser test environment: ${JSON.stringify(i)}`
2460
2452
  )
2461
2453
  );
2462
2454
  }).join(`
2463
2455
 
2464
2456
  `);
2465
- return [jt(e), i].join("");
2466
2457
  }
2467
- const jt = (e) => [e.isInPuppeteerTestBackEnd ? Fn : "", Rn].join(""), Fn = `import { setupPuppeteerTest } from "@arcgis/lumina-compiler/puppeteerTesting";
2458
+ const Rt = (e) => [e.isInPuppeteerTestBackEnd ? Dn : "", On].join(""), Dn = `import { setupPuppeteerTest } from "@arcgis/lumina-compiler/puppeteerTesting";
2468
2459
  setupPuppeteerTest();
2469
- `, Rn = `import { setupLuminaTest } from "@arcgis/lumina-compiler/testing";
2460
+ `, On = `import { setupLuminaTest } from "@arcgis/lumina-compiler/testing";
2470
2461
  setupLuminaTest();
2471
- `, Dn = "@arcgis/lumina:generateLoaderTs";
2462
+ `, Mn = "@arcgis/lumina:generateLoaderTs";
2472
2463
  let Ne;
2473
- function On(e) {
2464
+ function Jn(e) {
2474
2465
  const t = /[\\\/]src[\\\/]loader\.ts$/u;
2475
- return [Ws(e.apiExtractorPluginConfig), {
2476
- name: Dn,
2466
+ return [Hs(e.apiExtractorPluginConfig), {
2467
+ name: Mn,
2477
2468
  configResolved() {
2478
2469
  Ne = `${e.dir.root}src/loader.ts`;
2479
2470
  },
@@ -2488,7 +2479,7 @@ function On(e) {
2488
2479
  id: t
2489
2480
  },
2490
2481
  async handler() {
2491
- return e.apiJsonDeferred !== void 0 && await e.apiJsonDeferred.promise, xr(e);
2482
+ return e.apiJsonDeferred !== void 0 && await e.apiJsonDeferred.promise, Nr(e);
2492
2483
  }
2493
2484
  },
2494
2485
  async handleHotUpdate() {
@@ -2496,29 +2487,39 @@ function On(e) {
2496
2487
  }
2497
2488
  }, {
2498
2489
  name: "@arcgis/lumina:generateTestSetupVirtualFile",
2490
+ resolveId: {
2491
+ filter: {
2492
+ id: Ft
2493
+ },
2494
+ // Vitest treats the configured setup-file ID as a filesystem path and
2495
+ // loads it without resolving it through Vite. The dependency module is
2496
+ // imported by that setup file, so it goes through Vite's module graph and
2497
+ // must be explicitly resolved to its virtual ID here.
2498
+ handler: (r) => r === st ? r : void 0
2499
+ },
2499
2500
  load: {
2500
2501
  filter: {
2501
- id: Nn
2502
+ id: Ft
2502
2503
  },
2503
- handler: async () => await jn(e)
2504
+ handler: async (r) => r.startsWith(st) ? await Rn(e) : Fn(e)
2504
2505
  }
2505
2506
  }];
2506
2507
  }
2507
- function Ft(e) {
2508
+ function Dt(e) {
2508
2509
  const t = e.server.moduleGraph.getModuleById(Ne);
2509
2510
  t !== void 0 && e.server.moduleGraph.invalidateModule(t);
2510
2511
  }
2511
- const Rt = (e) => {
2512
+ const Ot = (e) => {
2512
2513
  e.server.ws.send({
2513
2514
  type: "full-reload",
2514
2515
  path: u.join("/", u.relative(e.dir.root, Ne))
2515
2516
  });
2516
2517
  };
2517
- function Mn(e) {
2518
+ function Bn(e) {
2518
2519
  let t;
2519
2520
  const i = () => [
2520
2521
  ...e.options.assets?.transformers ?? [],
2521
- ...ut
2522
+ ...mt
2522
2523
  ];
2523
2524
  return {
2524
2525
  name: "@arcgis/lumina:handleStaticAssets",
@@ -2537,38 +2538,38 @@ function Mn(e) {
2537
2538
  * `configureServer`.
2538
2539
  */
2539
2540
  configResolved() {
2540
- e.viteCommand === "serve" && (t = Dt(e));
2541
+ e.viteCommand === "serve" && (t = Mt(e));
2541
2542
  },
2542
2543
  options() {
2543
- e.viteCommand === "build" && (t = Dt(e));
2544
+ e.viteCommand === "build" && (t = Mt(e));
2544
2545
  },
2545
2546
  async configureServer(s) {
2546
2547
  e.server = s, ie(e, await t, i()), s.watcher.on("addDir", (n) => {
2547
2548
  if (n.endsWith("assets")) {
2548
2549
  const r = u.dirname(n);
2549
- u.join(r, "/") === e.dir.root ? ie(e, [Xi], i()) : n.startsWith(e.dir.srcComponents) && ie(e, [Gi(n, r)], i());
2550
+ u.join(r, "/") === e.dir.root ? ie(e, [Zi], i()) : n.startsWith(e.dir.srcComponents) && ie(e, [Qi(n, r)], i());
2550
2551
  }
2551
2552
  });
2552
2553
  },
2553
2554
  async writeBundle() {
2554
- await ji(e, await t, i());
2555
+ await Ri(e, await t, i());
2555
2556
  }
2556
2557
  };
2557
2558
  }
2558
- async function Dt(e) {
2559
- const t = _("assets"), i = await e.componentFilesPromise, s = await Promise.all(
2559
+ async function Mt(e) {
2560
+ const t = K("assets"), i = await e.componentFilesPromise, s = await Promise.all(
2560
2561
  i.map(async (n) => {
2561
2562
  const r = u.dirname(n), a = u.join(r, "assets");
2562
- return await _(a) ? Gi(a, r) : void 0;
2563
+ return await K(a) ? Qi(a, r) : void 0;
2563
2564
  })
2564
2565
  );
2565
- return await t && s.push(Xi), s.filter(R);
2566
+ return await t && s.push(Zi), s.filter(R);
2566
2567
  }
2567
- const Gi = (e, t) => ({
2568
+ const Qi = (e, t) => ({
2568
2569
  type: "directory",
2569
2570
  source: e,
2570
2571
  destination: u.basename(t)
2571
- }), Xi = { type: "directory", source: "assets/", destination: "" }, Ue = "@arcgis/lumina:printTotalBuildSize", Jn = (e) => ({
2572
+ }), Zi = { type: "directory", source: "assets/", destination: "" }, Ue = "@arcgis/lumina:printTotalBuildSize", Kn = (e) => ({
2572
2573
  name: Ue,
2573
2574
  apply: () => e.viteCommand === "build",
2574
2575
  configResolved(t) {
@@ -2587,10 +2588,10 @@ const Gi = (e, t) => ({
2587
2588
  const m = console.log;
2588
2589
  console.log = function(...g) {
2589
2590
  if (m.apply(console, g), g.length === 1 && typeof g[0] == "string") {
2590
- const [h, y] = g[0].match(_n) ?? [];
2591
+ const [h, y] = g[0].match(Wn) ?? [];
2591
2592
  if (!h)
2592
2593
  return;
2593
- p || (p = g[0].slice(0, g[0].indexOf(h) + h.length).replaceAll(Kn, "").length);
2594
+ p || (p = g[0].slice(0, g[0].indexOf(h) + h.length).replaceAll(Un, "").length);
2594
2595
  const v = Number.parseFloat(h.replace(" kB", "").replaceAll(",", ""));
2595
2596
  y ? (l += Number.parseFloat(y.replace(" kB", "").replaceAll(",", "")), d += v) : c += v;
2596
2597
  }
@@ -2601,36 +2602,36 @@ const Gi = (e, t) => ({
2601
2602
  console.log = m;
2602
2603
  }
2603
2604
  if (d > 0) {
2604
- const g = l > 0 ? d : c, h = Jt(g), y = e.dir.relativeDist;
2605
+ const g = l > 0 ? d : c, h = Kt(g), y = e.dir.relativeDist;
2605
2606
  console.log(
2606
2607
  [
2607
- Mt,
2608
+ Bt,
2608
2609
  y,
2609
- Bn,
2610
+ _n,
2610
2611
  "*",
2611
2612
  " ".repeat(p - `${y}*`.length - h.length),
2612
2613
  h,
2613
- Ot,
2614
- l > 0 ? ` ${Mt}│ gzip: ${Jt(l)}${Ot}` : ""
2614
+ Jt,
2615
+ l > 0 ? ` ${Bt}│ gzip: ${Kt(l)}${Jt}` : ""
2615
2616
  ].join("")
2616
2617
  );
2617
2618
  }
2618
2619
  };
2619
2620
  }
2620
- }), Ot = "\x1B[22m\x1B[1m\x1B[22m", Mt = "\x1B[2m", Bn = "\x1B[22m\x1B[36m", _n = /\d+(?:,\d+)?\.\d{2} kB/gu, Kn = /\x1B\[\d+m/gu, Wn = new Intl.NumberFormat("en", {
2621
+ }), Jt = "\x1B[22m\x1B[1m\x1B[22m", Bt = "\x1B[2m", _n = "\x1B[22m\x1B[36m", Wn = /\d+(?:,\d+)?\.\d{2} kB/gu, Un = /\x1B\[\d+m/gu, zn = new Intl.NumberFormat("en", {
2621
2622
  maximumFractionDigits: 2,
2622
2623
  minimumFractionDigits: 2
2623
- }), Jt = (e) => `${Wn.format(e)} kB`, Un = (e, t = u.resolve("src")) => u.relative(t, u.join(e, "..", mt.slice(0, -3)));
2624
- var zn = ["@arcgis-test/lit-components/loader", "@arcgis/ai-components/loader", "@arcgis/api-extractor", "@arcgis/arcade-languageservice", "@arcgis/arcade-parser", "@arcgis/charts-components/loader", "@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"];
2625
- const Bt = "@arcgis/lumina:configureVite", Hn = (e) => ({
2626
- name: Bt,
2624
+ }), Kt = (e) => `${zn.format(e)} kB`, Hn = (e, t = u.resolve("src")) => u.relative(t, u.join(e, "..", ft.slice(0, -3)));
2625
+ var qn = ["@arcgis-test/lit-components/loader", "@arcgis/ai-components/loader", "@arcgis/api-extractor", "@arcgis/arcade-languageservice", "@arcgis/arcade-parser", "@arcgis/charts-components/loader", "@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"];
2626
+ const _t = "@arcgis/lumina:configureVite", Vn = (e) => ({
2627
+ name: _t,
2627
2628
  async config({
2628
2629
  server: t,
2629
2630
  publicDir: i,
2630
2631
  build: { cssMinify: s, target: n, sourcemap: r, lib: a, rollupOptions: { output: c = [] } = {}, watch: d, emptyOutDir: l } = {},
2631
2632
  test: p = {}
2632
2633
  }, m) {
2633
- const f = d != null, { include: g, browser: h, environment: y, forceRerunTriggers: v } = p, w = H && te && Li(m) ? ri(Ai, import.meta.dirname) : void 0, C = w === void 0 ? [] : [
2634
+ const f = d != null, { include: g, browser: h, environment: y, forceRerunTriggers: v } = p, w = H && te && ji(m) ? oi(Ni, import.meta.dirname) : void 0, C = w === void 0 ? [] : [
2634
2635
  G(u.join(w, "**/*.{ts,tsx,mjs}")),
2635
2636
  `!${G(u.join(w, "**/*.d.ts"))}`
2636
2637
  ], E = {
@@ -2713,7 +2714,7 @@ const Bt = "@arcgis/lumina:configureVite", Hn = (e) => ({
2713
2714
  */
2714
2715
  exclude: [
2715
2716
  ...te ? [
2716
- ...zn,
2717
+ ...qn,
2717
2718
  // This exact import is also supplied through optimizableImports in `dependencies/arcgisCore.ts`
2718
2719
  // Optimizing it in the monorepo creates a separate core config instance, so the app does not receive the
2719
2720
  // configured assetsPath.
@@ -2746,7 +2747,7 @@ const Bt = "@arcgis/lumina:configureVite", Hn = (e) => ({
2746
2747
  if (typeof p.setupFiles == "string" ? p.setupFiles = [...We, p.setupFiles] : Array.isArray(p.setupFiles) ? p.setupFiles = [...We, ...p.setupFiles] : p.setupFiles = [...We], e.isInPuppeteerTestBackEnd) {
2747
2748
  if (h?.enabled === !0)
2748
2749
  throw Error(
2749
- b(Bt, "Can't enable both Vitest browser mode and Puppeteer testing at the same time")
2750
+ b(_t, "Can't enable both Vitest browser mode and Puppeteer testing at the same time")
2750
2751
  );
2751
2752
  return {
2752
2753
  test: {
@@ -2780,7 +2781,7 @@ const Bt = "@arcgis/lumina:configureVite", Hn = (e) => ({
2780
2781
  publicDir: i ?? !1,
2781
2782
  build: {
2782
2783
  cssMinify: s ?? (e.environment === "production" ? !0 : void 0),
2783
- target: n ?? Ni(e),
2784
+ target: n ?? Fi(e),
2784
2785
  sourcemap: r ?? (e.environment === "development" ? "inline" : e.options.build?.enableSourceMapsInProduction ?? !1),
2785
2786
  lib: {
2786
2787
  entry: E,
@@ -2845,15 +2846,15 @@ const Bt = "@arcgis/lumina:configureVite", Hn = (e) => ({
2845
2846
  e._originalRollupInputOptions ??= t.input;
2846
2847
  const s = { ...e._originalRollupInputOptions };
2847
2848
  i.forEach((n) => {
2848
- const r = Un(n);
2849
+ const r = Hn(n);
2849
2850
  s[r] = n;
2850
2851
  }), t.input = s;
2851
2852
  }
2852
- }), Se = "@arcgis/lumina:serveLocalCdn", qn = /^\/?@arcgis\/core(?=\/|$)/u, Yi = "/index.js", Vn = je(Yi), st = `\0${Se}:index`, Gn = je(st), Xn = 3e3, Yn = [
2853
+ }), Se = "@arcgis/lumina:serveLocalCdn", Gn = /^\/?@arcgis\/core(?=\/|$)/u, es = "/index.js", Xn = je(es), rt = `\0${Se}:index`, Yn = je(rt), Qn = 3e3, Zn = [
2853
2854
  /^https?:\/\/localhost(?::[0-9]+)?$/u,
2854
2855
  /^https?:\/\/(?:[a-z0-9-]+\.)*(?:arcgis|esri)\.com(?::[0-9]+)?$/iu
2855
2856
  ];
2856
- function Qn(e) {
2857
+ function eo(e) {
2857
2858
  if (!H)
2858
2859
  return;
2859
2860
  const t = j().name, i = t.split("/").pop() ?? t, s = `/${i}/index.js`, n = je(s), r = `\0${Se}:${i}`, a = je(r);
@@ -2861,49 +2862,49 @@ function Qn(e) {
2861
2862
  name: Se,
2862
2863
  enforce: "pre",
2863
2864
  apply(c) {
2864
- const d = to(e, c);
2865
+ const d = so(e, c);
2865
2866
  return d || (e._localCdnCore = void 0), d;
2866
2867
  },
2867
2868
  config: {
2868
2869
  order: "post",
2869
2870
  handler(c, d) {
2870
- const l = c.server, p = Li(d), m = p ? Ai : Qr, f = ri(m, import.meta.dirname);
2871
+ const l = c.server, p = ji(d), m = p ? Ni : tn, f = oi(m, import.meta.dirname);
2871
2872
  if (f === void 0)
2872
2873
  throw Error(b(Se, `Unable to find ${m}.`));
2873
2874
  return e._localCdnCore = p ? { packageLocation: u.dirname(f), sourceLocation: f } : { packageLocation: f }, {
2874
2875
  server: {
2875
- port: l?.port ?? Xn,
2876
- cors: l?.cors ?? { origin: Yn }
2876
+ port: l?.port ?? Qn,
2877
+ cors: l?.cors ?? { origin: Zn }
2877
2878
  },
2878
2879
  resolve: {
2879
2880
  // The alias also matches CDN-rooted requests such as /@arcgis/core/WebMap.js. Vite resolves .js requests
2880
2881
  // to TypeScript in source mode and handles relative and bare imports from the resulting filesystem path.
2881
- alias: [{ find: qn, replacement: f }]
2882
+ alias: [{ find: Gn, replacement: f }]
2882
2883
  }
2883
2884
  };
2884
2885
  }
2885
2886
  },
2886
2887
  resolveId: {
2887
- filter: { id: [Vn, n] },
2888
+ filter: { id: [Xn, n] },
2888
2889
  handler(c) {
2889
- if (c === Yi)
2890
- return st;
2890
+ if (c === es)
2891
+ return rt;
2891
2892
  if (c === s)
2892
2893
  return r;
2893
2894
  }
2894
2895
  },
2895
2896
  load: {
2896
- filter: { id: [Gn, a] },
2897
+ filter: { id: [Yn, a] },
2897
2898
  async handler(c) {
2898
- if (c === st)
2899
+ if (c === rt)
2899
2900
  return `import ${JSON.stringify(s)};
2900
2901
  `;
2901
2902
  if (c === r)
2902
- return await eo(e);
2903
+ return await io(e);
2903
2904
  }
2904
2905
  },
2905
2906
  handleHotUpdate({ file: c, server: d }) {
2906
- if (Zn(c, e._localCdnCore?.sourceLocation))
2907
+ if (to(c, e._localCdnCore?.sourceLocation))
2907
2908
  return d.ws.send({ type: "full-reload" }), [];
2908
2909
  }
2909
2910
  };
@@ -2911,30 +2912,30 @@ function Qn(e) {
2911
2912
  function je(e) {
2912
2913
  return new RegExp(`^${RegExp.escape(e)}$`, "u");
2913
2914
  }
2914
- function Zn(e, t) {
2915
+ function to(e, t) {
2915
2916
  return t !== void 0 && e.startsWith(u.join(t, u.sep));
2916
2917
  }
2917
- async function eo(e) {
2918
+ async function io(e) {
2918
2919
  const t = e.viteConfig.server, i = t.origin?.replace(/\/$/u, "") ?? `${t.https ? "https" : "http"}://localhost:${String(t.port)}`;
2919
2920
  return `${(await oe(e, `${i}/`)).flatMap((n) => "javascriptCode" in n ? n.javascriptCode : []).join(`
2920
2921
  `)}
2921
2922
  `;
2922
2923
  }
2923
- function to(e, t) {
2924
+ function so(e, t) {
2924
2925
  return te && e.viteCommand === "serve" && !e.isInTest && t.resolve?.conditions?.includes("storybook") !== !0 && t.server?.middlewareMode !== !0;
2925
2926
  }
2926
- const io = (e) => ({
2927
+ const ro = (e) => ({
2927
2928
  name: "@arcgis/lumina:setAssetPath",
2928
2929
  apply: () => e.viteCommand === "build",
2929
2930
  config: (t) => ({
2930
2931
  base: t.base ?? e.options.assets?.defaultPath ?? De()
2931
2932
  })
2932
2933
  });
2933
- function so(e = j()) {
2934
- const t = pt(e) ?? "0.0.1";
2935
- return Ss(t);
2934
+ function no(e = j()) {
2935
+ const t = ut(e) ?? "0.0.1";
2936
+ return Ts(t);
2936
2937
  }
2937
- const ro = (e) => `/* ${e} */`, k = (e) => (t, i) => {
2938
+ const oo = (e) => `/* ${e} */`, k = (e) => (t, i) => {
2938
2939
  Object.defineProperty(t, i, {
2939
2940
  get() {
2940
2941
  throw Error(
@@ -2972,9 +2973,9 @@ const ue = {
2972
2973
  webTypes: "docs/web-types.json",
2973
2974
  apiJson: "docs/api.json",
2974
2975
  stencilLikeDocsJson: "docs/docs.json"
2975
- }, rt = (e) => e.viteConfig.root.includes("/test-packages/") ? 2 : void 0;
2976
- async function Qi(e, t, i = j()) {
2977
- const s = no(e, i), n = u.join(t, "lumina.ts"), a = await _(n) ? await z(n, "utf8") : "";
2976
+ }, nt = (e) => e.viteConfig.root.includes("/test-packages/") ? 2 : void 0;
2977
+ async function ts(e, t, i = j()) {
2978
+ const s = ao(e, i), n = u.join(t, "lumina.ts"), a = await K(n) ? await z(n, "utf8") : "";
2978
2979
  if (a.trim().replaceAll(`\r
2979
2980
  `, `
2980
2981
  `) === s.trim())
@@ -2992,9 +2993,9 @@ Current content:
2992
2993
  ${a}`
2993
2994
  )
2994
2995
  );
2995
- return ai(n, s), !0;
2996
+ return li(n, s), !0;
2996
2997
  }
2997
- function no(e, t = j()) {
2998
+ function ao(e, t = j()) {
2998
2999
  const i = e.filter((d) => d.type === "@arcgis/lumina").map((d) => `
2999
3000
  /// <reference types="${d.packageName}/types/lumina" />`), s = e.filter((d) => d.type === "stencil"), n = s.map(
3000
3001
  (d, l) => `
@@ -3005,7 +3006,7 @@ declare module "@arcgis/lumina" {
3005
3006
  interface ImportStencilElements extends ${s.map((d, l) => `JSX$${l}.IntrinsicElements`).join(", ")} {}
3006
3007
  }`, a = t.devDependencies ?? {};
3007
3008
  return [
3008
- oo,
3009
+ co,
3009
3010
  a.vitest ? `
3010
3011
  /// <reference types="vitest/config" />
3011
3012
  /// <reference types="vitest/browser" />` : "",
@@ -3016,7 +3017,7 @@ declare module "@arcgis/lumina" {
3016
3017
  `
3017
3018
  ].join("");
3018
3019
  }
3019
- const oo = `/**
3020
+ const co = `/**
3020
3021
  * This file is autogenerated by \`@arcgis/lumina-compiler\` - do not edit it manually.
3021
3022
  * Manual edits will be overwritten.
3022
3023
  *
@@ -3024,7 +3025,7 @@ const oo = `/**
3024
3025
  *
3025
3026
  * If you need to provide additional types, create a separate file.
3026
3027
  */
3027
- /// <reference types="@arcgis/lumina/globalTypes" />`, Ce = "@arcgis/lumina:dependencySupport", Zi = (e, t) => e.viteCommand === "serve" && /**
3028
+ /// <reference types="@arcgis/lumina/globalTypes" />`, Ce = "@arcgis/lumina:dependencySupport", is = (e, t) => e.viteCommand === "serve" && /**
3028
3029
  * Vitest started calling transformIndexHtml in browser mode versions ^2.1.4
3029
3030
  * However, it is a bit buggy (see
3030
3031
  * https://github.com/vitejs/vite/issues/19213). Instead, we are using test
@@ -3035,13 +3036,13 @@ const oo = `/**
3035
3036
  * is doing:
3036
3037
  * https://github.com/storybookjs/storybook/blob/a5c2cf1712f70b4e3ecf38d3c98e7db8e8d67849/code/builders/builder-vite/src/plugins/code-generator-plugin.ts#L110
3037
3038
  */
3038
- e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand === "build" && !e.options.build?.cdn?.skip && e.options.build?.webApp?.destination !== void 0, ao = (e) => ({
3039
+ e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand === "build" && !e.options.build?.cdn?.skip && e.options.build?.webApp?.destination !== void 0, lo = (e) => ({
3039
3040
  name: Ce,
3040
3041
  async configureServer(t) {
3041
- H && (e.server = t, await on(e));
3042
+ H && (e.server = t, await ln(e));
3042
3043
  },
3043
3044
  configResolved() {
3044
- !e.isInTest && !e.isInStorybook && (e._updateLuminaTsPromise = co(e).catch(
3045
+ !e.isInTest && !e.isInStorybook && (e._updateLuminaTsPromise = po(e).catch(
3045
3046
  (t) => T.error(Ce, `Failed to update package's src/lumina.ts: ${String(t)}`)
3046
3047
  ));
3047
3048
  },
@@ -3049,7 +3050,7 @@ e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand
3049
3050
  // Add imports to index.html before Vite starts resolving imports
3050
3051
  order: "pre",
3051
3052
  async handler(t, i) {
3052
- return Zi(e, i) ? (await oe(e)).map(
3053
+ return is(e, i) ? (await oe(e)).map(
3053
3054
  (n) => "javascriptCode" in n ? {
3054
3055
  tag: "script",
3055
3056
  attrs: {
@@ -3091,34 +3092,34 @@ e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand
3091
3092
  await e._updateLuminaTsPromise;
3092
3093
  }
3093
3094
  });
3094
- async function co(e) {
3095
- const i = (await Promise.all([ne, Vi(e)])).flat();
3096
- if (!await Qi(i, e.dir.src))
3095
+ async function po(e) {
3096
+ const i = (await Promise.all([ne, Xi(e)])).flat();
3097
+ if (!await ts(i, e.dir.src))
3097
3098
  return;
3098
3099
  let n = !1;
3099
3100
  function r() {
3100
- n || T.warn(Ce, lo), n = !0;
3101
+ n || T.warn(Ce, uo), n = !0;
3101
3102
  }
3102
3103
  process.on("exit", () => {
3103
3104
  r(), clearTimeout(c);
3104
3105
  });
3105
3106
  const c = setTimeout(r, 2e3);
3106
3107
  }
3107
- const lo = Us(
3108
+ const uo = qs(
3108
3109
  "greenBright",
3109
3110
  `lumina.ts has been updated (potentially because your dependencies changed). Please commit the updated file.
3110
3111
  If build failed with TypeScript errors, try running the build again to check whether new lumina.ts resolves the errors.`
3111
3112
  );
3112
- async function po(e) {
3113
- const t = e.options.apiExtractor?.configFilePath === "" ? void 0 : await Hs(process.cwd()), i = e.apiExtractorPluginConfig.unsafeConfigOverride === void 0 || t === void 0 ? t ?? e.apiExtractorPluginConfig.unsafeConfigOverride : Tt(t, e.apiExtractorPluginConfig.unsafeConfigOverride);
3113
+ async function mo(e) {
3114
+ const t = e.options.apiExtractor?.configFilePath === "" ? void 0 : await Gs(process.cwd()), i = e.apiExtractorPluginConfig.unsafeConfigOverride === void 0 || t === void 0 ? t ?? e.apiExtractorPluginConfig.unsafeConfigOverride : $t(t, e.apiExtractorPluginConfig.unsafeConfigOverride);
3114
3115
  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([
3115
3116
  {
3116
3117
  type: "dynamic",
3117
- source: () => JSON.stringify(e.apiJson, null, rt(e)),
3118
+ source: () => JSON.stringify(e.apiJson, null, nt(e)),
3118
3119
  destination: u.join("../..", e._documentationFileNames.apiJson)
3119
3120
  }
3120
3121
  ]);
3121
- const s = i?.types?.typeScriptConfig ?? qs(
3122
+ const s = i?.types?.typeScriptConfig ?? Xs(
3122
3123
  process.cwd(),
3123
3124
  e.options.types?.tsconfigPath ?? i?.types?.typeScriptConfigPath,
3124
3125
  !0
@@ -3164,7 +3165,7 @@ async function po(e) {
3164
3165
  if ([...p.addedModules, ...p.removedModules].some(
3165
3166
  (f) => Pe(f.sourcePath, "src/components/")
3166
3167
  ))
3167
- Ft(e), Rt(e);
3168
+ Dt(e), Ot(e);
3168
3169
  else {
3169
3170
  for (const f of p.changedModules) {
3170
3171
  if (!Pe(f.new.sourcePath, "src/components/"))
@@ -3177,29 +3178,29 @@ async function po(e) {
3177
3178
  if (g === void 0 && h === void 0)
3178
3179
  continue;
3179
3180
  if (g !== void 0 && h === void 0 || g === void 0 && h !== void 0 || g.tagName !== h.tagName || g.formAssociated !== h.formAssociated) {
3180
- Rt(e);
3181
+ Ot(e);
3181
3182
  break;
3182
3183
  }
3183
- const y = Ti(h);
3184
+ const y = Pi(h);
3184
3185
  e.server.ws.send({ type: "custom", event: "component-meta-update", data: y });
3185
3186
  }
3186
- Ft(e);
3187
+ Dt(e);
3187
3188
  }
3188
- _t(e, p.apiJson);
3189
+ Wt(e, p.apiJson);
3189
3190
  }
3190
3191
  }
3191
3192
  },
3192
3193
  afterApiJsonCreate: (l) => {
3193
- e.options.apiJson?.afterCreate?.(l.apiJson, !r), r = !0, (e.viteCommand === "build" ? e.viteConfig.build.watch : e.viteConfig.server.watch) === null && (e.apiJsonDeferred.resolve(), _t(e, l.apiJson));
3194
+ e.options.apiJson?.afterCreate?.(l.apiJson, !r), r = !0, (e.viteCommand === "build" ? e.viteConfig.build.watch : e.viteConfig.server.watch) === null && (e.apiJsonDeferred.resolve(), Wt(e, l.apiJson));
3194
3195
  }
3195
- }, c = i === void 0 ? a : Tt(i, a);
3196
+ }, c = i === void 0 ? a : $t(i, a);
3196
3197
  e.apiExtractorPluginConfig.configFilePath = "", e.apiExtractorPluginConfig.unsafeConfigOverride = c;
3197
3198
  const d = e.apiExtractorPluginConfig.afterExtractorCreated;
3198
3199
  e.apiExtractorPluginConfig.afterExtractorCreated = (l) => {
3199
3200
  e.apiExtractor = l, d?.(l);
3200
3201
  };
3201
3202
  }
3202
- function _t(e, t) {
3203
+ function Wt(e, t) {
3203
3204
  const i = { ...t, modules: [] }, s = [], n = e.viteCommand === "build" ? [] : void 0;
3204
3205
  for (const r of t.modules) {
3205
3206
  const a = { ...r, declarations: [] };
@@ -3224,10 +3225,10 @@ function _t(e, t) {
3224
3225
  }
3225
3226
  e._localDefinedComponents = void 0, e.privateApiJson = t, e.apiJsonComponents = s, e.apiJson = i, n !== void 0 && (e.componentFilesPromise = Promise.resolve(n));
3226
3227
  }
3227
- var uo = Object.defineProperty, I = (e, t, i, s) => {
3228
+ var fo = Object.defineProperty, I = (e, t, i, s) => {
3228
3229
  for (var n = void 0, r = e.length - 1, a; r >= 0; r--)
3229
3230
  (a = e[r]) && (n = a(t, i, n) || n);
3230
- return n && uo(t, i, n), n;
3231
+ return n && fo(t, i, n), n;
3231
3232
  };
3232
3233
  const V = "@arcgis/lumina:context";
3233
3234
  class $ {
@@ -3253,7 +3254,7 @@ class $ {
3253
3254
  distComponents: f,
3254
3255
  distCdn: g,
3255
3256
  distCdnAssets: h
3256
- }, T.initialize(r.logger, c), r.root !== si())
3257
+ }, T.initialize(r.logger, c), r.root !== ni())
3257
3258
  throw Error(
3258
3259
  b(
3259
3260
  V,
@@ -3272,11 +3273,11 @@ class $ {
3272
3273
  extract: !0
3273
3274
  }, (this.viteCommand === "build" ? r.build.watch : r.server.watch) === null && (this.apiJsonDeferred = Promise.withResolvers())) : (this._localDefinedComponents = {}, this.options.build ??= {}, this.options.build.dependencies ??= {}, this.apiExtractorPluginConfig.serve = void 0, this.options.build.dependencies.silenceUnknownJsxElementUsage = () => !0);
3274
3275
  const C = this.viteCommand === "serve" && !this.isInStorybook, E = this.apiExtractorPluginConfig.unsafeConfigOverride;
3275
- C && (E.context.isLuminaMinimalExtraction = !0, E.types.typeCheckedExtraction = !1, E.types.fullTypeCheck = !1), this.isInStorybook && (E.context.dtsEmitPath = ""), this._typeScriptPrinter = zs({
3276
+ C && (E.context.isLuminaMinimalExtraction = !0, E.types.typeCheckedExtraction = !1, E.types.fullTypeCheck = !1), this.isInStorybook && (E.context.dtsEmitPath = ""), this._typeScriptPrinter = Vs({
3276
3277
  // Do not downlevel. ESBuild will do that if needed.
3277
3278
  target: o.ScriptTarget.ESNext,
3278
3279
  sourceMap: r.build.sourcemap !== !1
3279
- }), Zi(this) && oe(this);
3280
+ }), is(this) && oe(this);
3280
3281
  }
3281
3282
  },
3282
3283
  configureServer: {
@@ -3304,7 +3305,7 @@ class $ {
3304
3305
  webTypes: i.jetBrains === !1 ? void 0 : i.jetBrains?.webTypesFileName ? pe(i.jetBrains.webTypesFileName) : ue.webTypes,
3305
3306
  vsCodeHtml: i.vsCode === !1 ? void 0 : i.vsCode?.htmlFileName ? pe(i.vsCode.htmlFileName) : ue.vsCodeHtml,
3306
3307
  vsCodeCss: i.vsCode === !1 ? void 0 : i.vsCode?.cssFileName ? pe(i.vsCode.cssFileName) : ue.vsCodeCss
3307
- }, this.apiExtractorPluginConfig = this.options.apiExtractor ?? {}, this.configsPromise = po(this);
3308
+ }, this.apiExtractorPluginConfig = this.options.apiExtractor ?? {}, this.configsPromise = mo(this);
3308
3309
  const s = process.cwd().length + 1;
3309
3310
  this.componentFilesPromise = this.configsPromise.then(() => {
3310
3311
  const r = this.apiExtractorPluginConfig.unsafeConfigOverride.types.typeScriptConfig.config.fileNames, a = [];
@@ -3313,12 +3314,12 @@ class $ {
3313
3314
  Pe(l, "src/components") && a.push(l);
3314
3315
  }
3315
3316
  return a;
3316
- }), Pi(void 0, t);
3317
- const n = t.build?.preamble ?? so();
3318
- this.banner = ro(n);
3317
+ }), Ii(void 0, t);
3318
+ const n = t.build?.preamble ?? no();
3319
+ this.banner = oo(n);
3319
3320
  }
3320
3321
  _inferBuildSetup({ command: t, mode: i }, s) {
3321
- this.isInTest = process.env.NODE_ENV === "test", i === "production" || i === "development" ? this.environment = i : i === "test" || i === "benchmark" ? (this.environment = "development", this.isInTest = !0) : (T.warn($i.name, `Vite is running in unknown mode "${i}". Assuming development`), this.environment = "development"), this.viteCommand = t;
3322
+ this.isInTest = process.env.NODE_ENV === "test", i === "production" || i === "development" ? this.environment = i : i === "test" || i === "benchmark" ? (this.environment = "development", this.isInTest = !0) : (T.warn(ki.name, `Vite is running in unknown mode "${i}". Assuming development`), this.environment = "development"), this.viteCommand = t;
3322
3323
  const n = s?.__IS_IN_PUPPETEER__ === !0, r = this.viteCommand === "serve" && this.isInTest && this.options.puppeteerTesting?.enabled === !0;
3323
3324
  this.isInPuppeteerTestBackEnd = r && !n, this.isInPuppeteerTestFrontEnd = r && n;
3324
3325
  }
@@ -3466,8 +3467,8 @@ I([
3466
3467
  I([
3467
3468
  k("configResolved()")
3468
3469
  ], $.prototype, "_typeScriptPrinter");
3469
- function mo(e, t, i) {
3470
- const s = ki()[t] ?? es(e)[t];
3470
+ function go(e, t, i) {
3471
+ const s = xi()[t] ?? ss(e)[t];
3471
3472
  if (s === void 0) {
3472
3473
  if (e.options?.build?.dependencies?.silenceUnknownJsxElementUsage?.(t, i, e) === !0)
3473
3474
  return;
@@ -3481,11 +3482,11 @@ function mo(e, t, i) {
3481
3482
  }
3482
3483
  return s;
3483
3484
  }
3484
- function fo(e, t) {
3485
+ function ho(e, t) {
3485
3486
  return e.packageName === void 0 ? he(t, e.modulePath) : u.join(e.packageName, e.modulePath);
3486
3487
  }
3487
- function es(e) {
3488
- return e._localDefinedComponents ??= xi(
3488
+ function ss(e) {
3489
+ return e._localDefinedComponents ??= Li(
3489
3490
  e.privateApiJson,
3490
3491
  {
3491
3492
  packageName: void 0,
@@ -3496,19 +3497,19 @@ function es(e) {
3496
3497
  e.viteCommand === "build"
3497
3498
  ), e._localDefinedComponents;
3498
3499
  }
3499
- const Kt = "makeRuntime(", go = "@arcgis/core", ho = "@arcgis/lumina:injectRuntimeOptions", yo = (e) => ({
3500
- name: ho,
3500
+ const Ut = "makeRuntime(", yo = "@arcgis/core", vo = "@arcgis/lumina:injectRuntimeOptions", bo = (e) => ({
3501
+ name: vo,
3501
3502
  transform: {
3502
3503
  filter: {
3503
3504
  id: /\/src\/runtime\.ts$/u
3504
3505
  },
3505
3506
  handler(t, i) {
3506
- const s = t.indexOf(Kt);
3507
+ const s = t.indexOf(Ut);
3507
3508
  if (s === -1)
3508
3509
  throw new Error(
3509
3510
  `Failed to find makeRuntime() function call in src/runtime.ts. Id: ${i}. Code: ${t}`
3510
3511
  );
3511
- const n = s + Kt.length, r = e.options.css?.commonStylesPath;
3512
+ const n = s + Ut.length, r = e.options.css?.commonStylesPath;
3512
3513
  return {
3513
3514
  code: [
3514
3515
  r === void 0 ? "" : `import commonStyles from "${he(e.dir.src, r)}${Ie}";`,
@@ -3516,7 +3517,7 @@ const Kt = "makeRuntime(", go = "@arcgis/core", ho = "@arcgis/lumina:injectRunti
3516
3517
  "{",
3517
3518
  "defaultAssetPath:import.meta.env.BASE_URL,",
3518
3519
  'hydratedAttribute:"',
3519
- e.options.css?.hydratedAttribute ?? Ci,
3520
+ e.options.css?.hydratedAttribute ?? Ti,
3520
3521
  '",',
3521
3522
  r === void 0 ? "" : "commonStyles",
3522
3523
  "}",
@@ -3524,7 +3525,7 @@ const Kt = "makeRuntime(", go = "@arcgis/core", ho = "@arcgis/lumina:injectRunti
3524
3525
  // Dependency injection. Lumina cannot directly import these to avoid
3525
3526
  // a cyclical dependency.
3526
3527
  H ? `
3527
- import {createObservable,trackAccess,createTrackingTarget,runTracked} from "${go}/applications/Components/reactiveUtils.js";
3528
+ import {createObservable,trackAccess,createTrackingTarget,runTracked} from "${yo}/applications/Components/reactiveUtils.js";
3528
3529
  createObservable,
3529
3530
  runtime.t = trackAccess;
3530
3531
  runtime.o = createObservable;
@@ -3536,11 +3537,11 @@ runtime.r = runTracked;` : ""
3536
3537
  }
3537
3538
  }
3538
3539
  });
3539
- function vo(e) {
3540
+ function wo(e) {
3540
3541
  return `import "../${e.options.build?.cdn?.namespace === void 0 ? `${le}/${Z}.css` : `${e.options.build.cdn.namespace}/${e.options.build.cdn.namespace}.css`}";
3541
3542
  `;
3542
3543
  }
3543
- const we = "@arcgis/lumina:addNonLazyImports", bo = (e) => ({
3544
+ const we = "@arcgis/lumina:addNonLazyImports", So = (e) => ({
3544
3545
  name: we,
3545
3546
  apply: () => e.viteCommand === "build",
3546
3547
  generateBundle(t, i) {
@@ -3552,7 +3553,7 @@ const we = "@arcgis/lumina:addNonLazyImports", bo = (e) => ({
3552
3553
  if (d !== a && (c.fileName = d), c.type === "chunk") {
3553
3554
  const l = u.dirname(u.join(e.dir.dist, a)), p = d === a ? l : u.dirname(u.join(e.dir.dist, d));
3554
3555
  let m = c.code;
3555
- m = pn(m, e, p, l), !e.isInStorybook && d === "chunks/runtime.js" && (r = !0, m = vo(e) + m), m = `${e.banner}${n}${m}`, c.code = m;
3556
+ m = fn(m, e, p, l), !e.isInStorybook && d === "chunks/runtime.js" && (r = !0, m = wo(e) + m), m = `${e.banner}${n}${m}`, c.code = m;
3556
3557
  }
3557
3558
  }), !r && !e.isInStorybook)
3558
3559
  throw Error(b(we, "Expected to find a chunks/runtime.js file in the Vite's build output."));
@@ -3566,7 +3567,7 @@ const we = "@arcgis/lumina:addNonLazyImports", bo = (e) => ({
3566
3567
  i.forEach(([r, { referencedTagNames: a, referencedDeferredTagNames: c, referencedBy: d }]) => {
3567
3568
  if (s.has(r) || a.length === 0 && c.length === 0)
3568
3569
  return;
3569
- const l = ts(t, d, s);
3570
+ const l = rs(t, d, s);
3570
3571
  if (l.forEach((p) => {
3571
3572
  t[p].referencedTagNames.splice(0, 0, ...a), t[p].referencedDeferredTagNames.splice(0, 0, ...c);
3572
3573
  }), (a.length > 0 || c.length > 0) && l.length === 0) {
@@ -3589,12 +3590,12 @@ Possible causes:
3589
3590
  return [];
3590
3591
  const d = u.dirname(r), l = e.dir.src + Ge(d.slice(e.dir.src.length), e.apiExtractor), p = u.relative(e.dir.src, l);
3591
3592
  function m(P) {
3592
- const x = mo(e, P, r);
3593
+ const x = go(e, P, r);
3593
3594
  if (x === void 0)
3594
3595
  return;
3595
- const S = fo(x, p);
3596
+ const S = ho(x, p);
3596
3597
  if (S !== `./${p}`)
3597
- return S.startsWith(".") ? `${S}/${Wt}` : S;
3598
+ return S.startsWith(".") ? `${S}/${zt}` : S;
3598
3599
  }
3599
3600
  const f = new Set(a), g = new Set(c), h = Array.from(f, m).filter(R), y = (P) => `import "${P}";
3600
3601
  `, v = h.map(y).join(""), w = Array.from(g, (P) => {
@@ -3610,15 +3611,15 @@ Possible causes:
3610
3611
  return `.set("${P}", () => import("${x}"))
3611
3612
  `;
3612
3613
  }
3613
- }).filter(R), C = `${v}export * from "./${mt}";`, E = w.length > 0 ? `import { deferredLoaders } from "@arcgis/lumina";
3614
+ }).filter(R), C = `${v}export * from "./${ft}";`, E = w.length > 0 ? `import { deferredLoaders } from "@arcgis/lumina";
3614
3615
  ${C}
3615
3616
  deferredLoaders${w.join("")};` : C;
3616
- return await K(u.join(e.dir.dist, p, Wt), E);
3617
+ return await _(u.join(e.dir.dist, p, zt), E);
3617
3618
  });
3618
3619
  await Promise.all(n);
3619
3620
  }
3620
- }), Wt = "index.js", ts = (e, t, i, s = /* @__PURE__ */ new Set()) => t.flatMap((n) => i.has(n) ? [n] : s.has(n) ? [] : (s.add(n), ts(e, e[n].referencedBy, i, s)));
3621
- function Ut(e, t, i) {
3621
+ }), zt = "index.js", rs = (e, t, i, s = /* @__PURE__ */ new Set()) => t.flatMap((n) => i.has(n) ? [n] : s.has(n) ? [] : (s.add(n), rs(e, e[n].referencedBy, i, s)));
3622
+ function Ht(e, t, i) {
3622
3623
  if (ee(e))
3623
3624
  return e;
3624
3625
  {
@@ -3637,14 +3638,14 @@ function ee(e) {
3637
3638
  return (
3638
3639
  // Inlined string literal
3639
3640
  typeof e == "string" || // Syntax kinds that are never undefined
3640
- wo.has(e.kind) || // Ternary with both branches never undefined
3641
+ Co.has(e.kind) || // Ternary with both branches never undefined
3641
3642
  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
3642
- o.isBinaryExpression(e) && (So.has(e.operatorToken.kind) || ee(e.left) && ee(e.right)) || // `as`, `satisfies`, `()` with definitely not undefined expression
3643
+ o.isBinaryExpression(e) && (Eo.has(e.operatorToken.kind) || ee(e.left) && ee(e.right)) || // `as`, `satisfies`, `()` with definitely not undefined expression
3643
3644
  (o.isParenthesizedExpression(e) || o.isSatisfiesExpression(e) || o.isAsExpression(e)) && ee(e.expression) || // JSX that got converted to html`<p>Something</p>`
3644
- o.isTaggedTemplateExpression(e) && o.isIdentifier(e.tag) && lr.has(e.tag.text)
3645
+ o.isTaggedTemplateExpression(e) && o.isIdentifier(e.tag) && ur.has(e.tag.text)
3645
3646
  );
3646
3647
  }
3647
- const wo = /* @__PURE__ */ new Set([
3648
+ const Co = /* @__PURE__ */ new Set([
3648
3649
  o.SyntaxKind.NumericLiteral,
3649
3650
  o.SyntaxKind.BigIntLiteral,
3650
3651
  o.SyntaxKind.StringLiteral,
@@ -3663,7 +3664,7 @@ const wo = /* @__PURE__ */ new Set([
3663
3664
  o.SyntaxKind.ClassExpression,
3664
3665
  // Trust? Trust.
3665
3666
  o.SyntaxKind.NonNullExpression
3666
- ]), So = /* @__PURE__ */ new Set([
3667
+ ]), Eo = /* @__PURE__ */ new Set([
3667
3668
  o.SyntaxKind.PlusEqualsToken,
3668
3669
  o.SyntaxKind.MinusEqualsToken,
3669
3670
  o.SyntaxKind.AsteriskAsteriskEqualsToken,
@@ -3698,9 +3699,9 @@ const wo = /* @__PURE__ */ new Set([
3698
3699
  o.SyntaxKind.SlashToken,
3699
3700
  o.SyntaxKind.PercentToken,
3700
3701
  o.SyntaxKind.AsteriskAsteriskToken
3701
- ]), Co = {
3702
+ ]), To = {
3702
3703
  property(e, t, i, s) {
3703
- const n = Eo(s, i, e), r = n?.type === "stringifiedReflected", a = n?.type === "reflected" || r;
3704
+ const n = $o(s, i, e), r = n?.type === "stringifiedReflected", a = n?.type === "reflected" || r;
3704
3705
  if (a) {
3705
3706
  const f = He(t);
3706
3707
  if (f === !0)
@@ -3713,11 +3714,11 @@ const wo = /* @__PURE__ */ new Set([
3713
3714
  return [n.name, ...c];
3714
3715
  const [l, p] = c, m = n?.type === "stringifiedNonReflected";
3715
3716
  if (r || m) {
3716
- const f = Ut(
3717
+ const f = Ht(
3717
3718
  p,
3718
3719
  e,
3719
3720
  m ? "" : void 0
3720
- ), h = i === "value" && (s === "input" || s === "textarea" || s === ke) ? $o(f, e) : f;
3721
+ ), h = i === "value" && (s === "input" || s === "textarea" || s === ke) ? ko(f, e) : f;
3721
3722
  if (h !== p)
3722
3723
  return [m ? `.${i}` : n.name, l, h];
3723
3724
  }
@@ -3729,7 +3730,7 @@ const wo = /* @__PURE__ */ new Set([
3729
3730
  return [i];
3730
3731
  if (s === !1)
3731
3732
  return [];
3732
- const n = Ee(e, t, !0), a = n[0] !== "=" ? n : [n[0], Ut(n[1], e)];
3733
+ const n = Ee(e, t, !0), a = n[0] !== "=" ? n : [n[0], Ht(n[1], e)];
3733
3734
  return [i, ...a];
3734
3735
  },
3735
3736
  booleanAttribute(e, t, i) {
@@ -3741,8 +3742,8 @@ const wo = /* @__PURE__ */ new Set([
3741
3742
  throw new Error(
3742
3743
  `Event prop value must be an expression. Found ${String(t?.getText(e.sourceFile))}`
3743
3744
  );
3744
- const s = i.slice(2), n = St(s);
3745
- return [`@${fi.has(n) ? s.toLowerCase() : St(s)}=`, ...yt(e, t, void 0)];
3745
+ const s = i.slice(2), n = Ct(s);
3746
+ return [`@${hi.has(n) ? s.toLowerCase() : Ct(s)}=`, ...vt(e, t, void 0)];
3746
3747
  },
3747
3748
  directives(e, t) {
3748
3749
  if (t === void 0 || !o.isJsxExpression(t))
@@ -3777,20 +3778,20 @@ const wo = /* @__PURE__ */ new Set([
3777
3778
  ])
3778
3779
  ];
3779
3780
  },
3780
- class: Ht,
3781
- style: Ht,
3782
- key: (e, t) => [gt(t, e.sourceFile)],
3781
+ class: Vt,
3782
+ style: Vt,
3783
+ key: (e, t) => [ht(t, e.sourceFile)],
3783
3784
  deferLoad(e, t, i, s) {
3784
3785
  if (typeof s != "string")
3785
3786
  throw Error("deferLoad prop is not currently supported on dynamic tag names.");
3786
- if (!lt(s))
3787
+ if (!dt(s))
3787
3788
  throw Error(`deferLoad prop is only supported on custom elements. Found ${String(s)}`);
3788
3789
  e.neededImports.add("deferLoad");
3789
3790
  const n = e.importRenames.deferLoad;
3790
3791
  return [o.factory.createIdentifier(n)];
3791
3792
  }
3792
3793
  };
3793
- function Eo(e, t, i) {
3794
+ function $o(e, t, i) {
3794
3795
  if (typeof e == "string") {
3795
3796
  const r = (i.externalComponents[e] ?? i.localComponents[e])?.propToAttribute?.[t];
3796
3797
  if (r !== void 0)
@@ -3822,7 +3823,7 @@ function ze(e, t) {
3822
3823
  if (n !== void 0)
3823
3824
  return { name: n, type: "stringifiedNonReflected" };
3824
3825
  }
3825
- function gt(e, t) {
3826
+ function ht(e, t) {
3826
3827
  if (e !== void 0 && o.isJsxExpression(e) && e.expression !== void 0)
3827
3828
  return e.expression;
3828
3829
  if (e !== void 0 && o.isStringLiteral(e))
@@ -3845,10 +3846,10 @@ function Ee(e, t, i = !1) {
3845
3846
  `Invalid JSX syntax detected or there is a bug in Lumina. Found ${t.getText(e.sourceFile)}. Expected JSX attribute value to be wrapped in { }`
3846
3847
  );
3847
3848
  if (o.isStringLiteral(t))
3848
- return zt(t, i);
3849
+ return qt(t, i);
3849
3850
  if (o.isJsxExpression(t) && t.expression) {
3850
3851
  if (o.isStringLiteral(t.expression))
3851
- return zt(t.expression, i);
3852
+ return qt(t.expression, i);
3852
3853
  if (i) {
3853
3854
  if (o.isNumericLiteral(t.expression))
3854
3855
  return [`=${t.expression.text}`];
@@ -3856,16 +3857,16 @@ function Ee(e, t, i = !1) {
3856
3857
  return [`=${t.expression.getText(e.sourceFile)}`];
3857
3858
  }
3858
3859
  }
3859
- return ["=", ...yt(e, t, void 0)];
3860
+ return ["=", ...vt(e, t, void 0)];
3860
3861
  }
3861
- function zt(e, t) {
3862
+ function qt(e, t) {
3862
3863
  if (!t)
3863
3864
  return ["=", e];
3864
3865
  const i = e.text;
3865
3866
  if (i.length === 0)
3866
3867
  return [];
3867
- const s = gi(i);
3868
- if (rr(s)) {
3868
+ const s = yi(i);
3869
+ if (ar(s)) {
3869
3870
  const n = s.replaceAll('"', "&#34;");
3870
3871
  if (n.length > s.length) {
3871
3872
  const r = s.replaceAll("'", "&#39;");
@@ -3876,7 +3877,7 @@ function zt(e, t) {
3876
3877
  } else
3877
3878
  return [`=${s}`];
3878
3879
  }
3879
- function Ht(e, t, i) {
3880
+ function Vt(e, t, i) {
3880
3881
  if (t !== void 0 && o.isStringLiteral(t))
3881
3882
  return [`${i}="${t.text}"`];
3882
3883
  if (t === void 0 || !o.isJsxExpression(t) || t.expression === void 0)
@@ -3884,7 +3885,7 @@ function Ht(e, t, i) {
3884
3885
  `${i} prop value must be an expression. Found ${String(t?.getText(e.sourceFile))}`
3885
3886
  );
3886
3887
  const s = t.expression;
3887
- if (To(s)) {
3888
+ if (Po(s)) {
3888
3889
  const r = i === "class" ? "safeClassMap" : "safeStyleMap";
3889
3890
  e.neededImports.add(r);
3890
3891
  const a = e.importRenames[r], c = o.factory.createCallExpression(o.factory.createIdentifier(a), void 0, [
@@ -3894,18 +3895,18 @@ function Ht(e, t, i) {
3894
3895
  } else
3895
3896
  return [i, ...Ee(e, t, !0)];
3896
3897
  }
3897
- const To = (e) => o.isObjectLiteralExpression(e) || o.isPropertyAccessExpression(e) || o.isIdentifier(e) || o.isCallExpression(e) || o.isBinaryExpression(e) || o.isConditionalExpression(e);
3898
- function $o(e, t) {
3898
+ const Po = (e) => o.isObjectLiteralExpression(e) || o.isPropertyAccessExpression(e) || o.isIdentifier(e) || o.isCallExpression(e) || o.isBinaryExpression(e) || o.isConditionalExpression(e);
3899
+ function ko(e, t) {
3899
3900
  t.neededImports.add("live");
3900
3901
  const i = t.importRenames.live;
3901
3902
  return o.factory.createCallExpression(o.factory.createIdentifier(i), void 0, [
3902
3903
  typeof e == "string" ? o.factory.createStringLiteral(e) : e
3903
3904
  ]);
3904
3905
  }
3905
- function Po(e) {
3906
- if (e && o.isJsxExpression(e) && e.expression && o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text in qt && e.expression.arguments.length <= 1)
3906
+ function Io(e) {
3907
+ if (e && o.isJsxExpression(e) && e.expression && o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text in Gt && e.expression.arguments.length <= 1)
3907
3908
  return {
3908
- propType: qt[e.expression.expression.text],
3909
+ propType: Gt[e.expression.expression.text],
3909
3910
  // To simplify checking logic in convertProps, wrap expression in JSX expression
3910
3911
  initializer: o.factory.createJsxExpression(
3911
3912
  void 0,
@@ -3914,21 +3915,21 @@ function Po(e) {
3914
3915
  )
3915
3916
  };
3916
3917
  }
3917
- const qt = {
3918
+ const Gt = {
3918
3919
  bindProperty: "property",
3919
3920
  bindAttribute: "attribute",
3920
3921
  bindBooleanAttribute: "booleanAttribute",
3921
3922
  bindEvent: "event"
3922
3923
  };
3923
- function ko(e, t, i) {
3924
- return xo.has(e) ? e : e.startsWith("on") && t !== void 0 && o.isJsxExpression(t) && t.expression !== void 0 ? "event" : pi.has(e) || e.includes("-") ? "attribute" : !lt(i) && (ui.has(e) || (i === Ye ? !1 : i === ke ? (
3924
+ function xo(e, t, i) {
3925
+ return Lo.has(e) ? e : e.startsWith("on") && t !== void 0 && o.isJsxExpression(t) && t.expression !== void 0 ? "event" : mi.has(e) || e.includes("-") ? "attribute" : !dt(i) && (fi.has(e) || (i === Ye ? !1 : i === ke ? (
3925
3926
  // When tag name is dynamic, we can't help but check if the prop name matches an "always attribute" in any html element
3926
3927
  Object.values(Qe).some((r) => r.has(e))
3927
- ) : Qe[i]?.has(e) === !0)) ? $t.has(e) ? "booleanAttribute" : "attribute" : i === "svg" || i === "math" || i === Ye || i !== ke && (at.has(i) || ct.has(i)) ? e in W.common.reflected || e in W.common.stringifiedReflected || e in W.common.stringifiedNonReflected ? "property" : $t.has(e) ? "booleanAttribute" : "attribute" : "property";
3928
+ ) : Qe[i]?.has(e) === !0)) ? Pt.has(e) ? "booleanAttribute" : "attribute" : i === "svg" || i === "math" || i === Ye || i !== ke && (ct.has(i) || lt.has(i)) ? e in W.common.reflected || e in W.common.stringifiedReflected || e in W.common.stringifiedNonReflected ? "property" : Pt.has(e) ? "booleanAttribute" : "attribute" : "property";
3928
3929
  }
3929
- const Io = ["class", "style", "ref", "directives", "key", "deferLoad"], xo = new Set(Io), Ao = (e) => typeof e != "string" || e.trim().length > 0;
3930
+ const Ao = ["class", "style", "ref", "directives", "key", "deferLoad"], Lo = new Set(Ao), No = (e) => typeof e != "string" || e.trim().length > 0;
3930
3931
  function Oe({ key: e, parts: t, litTag: i }, s) {
3931
- const n = Lo(t);
3932
+ const n = jo(t);
3932
3933
  if (n.length % 2 === 0)
3933
3934
  throw new Error("Normalized template parts array length must be odd");
3934
3935
  const [r, ...a] = n;
@@ -3949,11 +3950,11 @@ function Oe({ key: e, parts: t, litTag: i }, s) {
3949
3950
  const d = s.importRenames[c], l = o.factory.createTaggedTemplateExpression(
3950
3951
  o.factory.createIdentifier(d),
3951
3952
  void 0,
3952
- a.length === 0 ? o.factory.createNoSubstitutionTemplateLiteral(r) : o.factory.createTemplateExpression(o.factory.createTemplateHead(r), No(a))
3953
+ a.length === 0 ? o.factory.createNoSubstitutionTemplateLiteral(r) : o.factory.createTemplateExpression(o.factory.createTemplateHead(r), Fo(a))
3953
3954
  );
3954
3955
  return qe(s, e, l);
3955
3956
  }
3956
- const Lo = (e) => e.reduce(
3957
+ const jo = (e) => e.reduce(
3957
3958
  (t, i, s) => {
3958
3959
  const n = t.at(-1), r = typeof n == "string", a = typeof i == "string";
3959
3960
  if (r && a)
@@ -3963,7 +3964,7 @@ const Lo = (e) => e.reduce(
3963
3964
  },
3964
3965
  [""]
3965
3966
  );
3966
- function No(e) {
3967
+ function Fo(e) {
3967
3968
  if (!(e.length % 2 === 0))
3968
3969
  throw new Error("templatePartsToSpans should be called with normalized parts array without the first item");
3969
3970
  const i = e.length / 2;
@@ -3988,27 +3989,27 @@ function qe(e, t, i) {
3988
3989
  const s = e.importRenames.keyed;
3989
3990
  return o.factory.createCallExpression(o.factory.createIdentifier(s), void 0, [t, i]);
3990
3991
  }
3991
- const is = (e, t) => e.getFullText(t.sourceFile).slice(0, e.getLeadingTriviaWidth(t.sourceFile));
3992
- function ss(e, t) {
3993
- const i = ht(e);
3992
+ const ns = (e, t) => e.getFullText(t.sourceFile).slice(0, e.getLeadingTriviaWidth(t.sourceFile));
3993
+ function os(e, t) {
3994
+ const i = yt(e);
3994
3995
  return i.length === 0 ? t : o.setSyntheticLeadingComments(
3995
3996
  t,
3996
3997
  i.map((s) => ({
3997
3998
  ...s,
3998
3999
  pos: -1,
3999
4000
  end: -1,
4000
- text: rs(e.slice(s.pos, s.end))
4001
+ text: as(e.slice(s.pos, s.end))
4001
4002
  }))
4002
4003
  );
4003
4004
  }
4004
- const ht = (e) => e.trim().length === 0 ? [] : o.getLeadingCommentRanges(e, 0) ?? [];
4005
- function jo(e) {
4006
- const t = ht(e);
4005
+ const yt = (e) => e.trim().length === 0 ? [] : o.getLeadingCommentRanges(e, 0) ?? [];
4006
+ function Ro(e) {
4007
+ const t = yt(e);
4007
4008
  if (t.length === 0)
4008
4009
  return [e || " "];
4009
4010
  const i = t.reduceRight(
4010
4011
  ([n, ...r], a) => {
4011
- const c = Fo(n), d = rs(c.slice(a.pos, a.end));
4012
+ const c = Do(n), d = as(c.slice(a.pos, a.end));
4012
4013
  return [
4013
4014
  c.slice(0, a.pos),
4014
4015
  /**
@@ -4026,13 +4027,13 @@ function jo(e) {
4026
4027
  const s = i.at(-1);
4027
4028
  return (typeof s != "string" || s.trim() !== "") && i.push(" "), i;
4028
4029
  }
4029
- const rs = (e) => e.startsWith("//") ? e.slice(2) : e.slice(2, -2);
4030
- function Fo(e) {
4030
+ const as = (e) => e.startsWith("//") ? e.slice(2) : e.slice(2, -2);
4031
+ function Do(e) {
4031
4032
  if (typeof e == "string")
4032
4033
  return e;
4033
4034
  throw new Error(`Expected string, got ${typeof e}: ${String(e)}`);
4034
4035
  }
4035
- function Ro(e, t) {
4036
+ function Oo(e, t) {
4036
4037
  if (!(o.isPropertyAccessExpression(t.expression) && t.expression.name.text === "map"))
4037
4038
  return t;
4038
4039
  const s = t.arguments[0];
@@ -4044,7 +4045,7 @@ function Ro(e, t) {
4044
4045
  return t;
4045
4046
  const c = ge(s.body);
4046
4047
  let d = !0, l;
4047
- if (Vt(c))
4048
+ if (Xt(c))
4048
4049
  l = c;
4049
4050
  else {
4050
4051
  if (!o.isBlock(c))
@@ -4053,20 +4054,20 @@ function Ro(e, t) {
4053
4054
  if (!(v && o.isReturnStatement(v) && v.expression))
4054
4055
  return t;
4055
4056
  const C = ge(v.expression);
4056
- if (!Vt(C))
4057
+ if (!Xt(C))
4057
4058
  return t;
4058
4059
  const E = c.statements.slice(0, -1);
4059
- if (E.some(ns))
4060
+ if (E.some(cs))
4060
4061
  return t;
4061
4062
  d = E.length === 0, l = C;
4062
4063
  }
4063
- const p = o.isJsxElement(l) ? l.openingElement : l, m = ds(p);
4064
+ const p = o.isJsxElement(l) ? l.openingElement : l, m = ms(p);
4064
4065
  if (m === -1)
4065
4066
  return t;
4066
4067
  const f = p.attributes.properties[m];
4067
4068
  if (f === void 0 || !o.isJsxAttribute(f))
4068
4069
  return t;
4069
- const g = gt(f.initializer, e.sourceFile), h = Do(r, s, g, d, e);
4070
+ const g = ht(f.initializer, e.sourceFile), h = Mo(r, s, g, d, e);
4070
4071
  if (h === void 0)
4071
4072
  return t;
4072
4073
  e.liftedKeys.add(f.name), e.neededImports.add("repeat");
@@ -4088,22 +4089,22 @@ function Ro(e, t) {
4088
4089
  )
4089
4090
  ]);
4090
4091
  }
4091
- const Vt = (e) => o.isJsxElement(e) || o.isJsxSelfClosingElement(e);
4092
- function ns(e) {
4092
+ const Xt = (e) => o.isJsxElement(e) || o.isJsxSelfClosingElement(e);
4093
+ function cs(e) {
4093
4094
  if (o.isReturnStatement(e))
4094
4095
  return !0;
4095
4096
  let t = !1;
4096
4097
  return o.visitEachChild(
4097
4098
  e,
4098
- (i) => (t ||= ns(i), i),
4099
+ (i) => (t ||= cs(i), i),
4099
4100
  void 0
4100
4101
  ), t;
4101
4102
  }
4102
- function Do(e, t, i, s, n) {
4103
+ function Mo(e, t, i, s, n) {
4103
4104
  const r = J(i);
4104
4105
  if (r === void 0)
4105
4106
  return;
4106
- let a = os(e.name, r);
4107
+ let a = ls(e.name, r);
4107
4108
  const c = t.parameters.at(1);
4108
4109
  if (c !== void 0 && o.isIdentifier(c.name) && // A more basic check is also provided in lumina/no-unnecessary-key rule
4109
4110
  r.every(Fe, c.name)) {
@@ -4115,7 +4116,7 @@ function Do(e, t, i, s, n) {
4115
4116
  return;
4116
4117
  }
4117
4118
  if (!s) {
4118
- const d = Mo(r, a, t);
4119
+ const d = Bo(r, a, t);
4119
4120
  if (d === void 0)
4120
4121
  return;
4121
4122
  a = d;
@@ -4154,7 +4155,7 @@ function J(e) {
4154
4155
  }
4155
4156
  return t;
4156
4157
  } else {
4157
- if (Oo.has(e.kind))
4158
+ if (Jo.has(e.kind))
4158
4159
  return [];
4159
4160
  {
4160
4161
  const t = ge(e);
@@ -4162,7 +4163,7 @@ function J(e) {
4162
4163
  }
4163
4164
  }
4164
4165
  }
4165
- const Oo = /* @__PURE__ */ new Set([
4166
+ const Jo = /* @__PURE__ */ new Set([
4166
4167
  o.SyntaxKind.NumericLiteral,
4167
4168
  o.SyntaxKind.BigIntLiteral,
4168
4169
  o.SyntaxKind.StringLiteral,
@@ -4171,20 +4172,20 @@ const Oo = /* @__PURE__ */ new Set([
4171
4172
  o.SyntaxKind.FalseKeyword,
4172
4173
  o.SyntaxKind.NullKeyword,
4173
4174
  o.SyntaxKind.TrueKeyword
4174
- ]), ge = (e) => o.isAsExpression(e) || o.isNonNullExpression(e) || o.isSatisfiesExpression(e) || o.isParenthesizedExpression(e) ? ge(e.expression) : e, os = (e, t) => o.isObjectBindingPattern(e) ? _o(e, t) : e;
4175
- function Mo(e, t, i) {
4175
+ ]), ge = (e) => o.isAsExpression(e) || o.isNonNullExpression(e) || o.isSatisfiesExpression(e) || o.isParenthesizedExpression(e) ? ge(e.expression) : e, ls = (e, t) => o.isObjectBindingPattern(e) ? Wo(e, t) : e;
4176
+ function Bo(e, t, i) {
4176
4177
  if (e.every(Fe, t))
4177
4178
  return t;
4178
4179
  if (o.isIdentifier(t)) {
4179
- const s = o.isBlock(i.body) ? Xe(i.body.statements, (r) => Jo(r, t)) : void 0;
4180
+ const s = o.isBlock(i.body) ? Xe(i.body.statements, (r) => Ko(r, t)) : void 0;
4180
4181
  if (s === void 0)
4181
4182
  return;
4182
- const n = os(s, e);
4183
+ const n = ls(s, e);
4183
4184
  if (e.every(Fe, n))
4184
4185
  return n;
4185
4186
  }
4186
4187
  }
4187
- function Jo(e, t) {
4188
+ function Ko(e, t) {
4188
4189
  if (!o.isVariableStatement(e) || !(e.declarationList.flags & o.NodeFlags.Const))
4189
4190
  return;
4190
4191
  const i = e.declarationList.declarations[0];
@@ -4192,52 +4193,52 @@ function Jo(e, t) {
4192
4193
  }
4193
4194
  function Fe(e) {
4194
4195
  const t = this;
4195
- return o.isIdentifier(t) ? t.text === e : t.elements.some(Bo, e);
4196
+ return o.isIdentifier(t) ? t.text === e : t.elements.some(_o, e);
4196
4197
  }
4197
- function Bo(e) {
4198
+ function _o(e) {
4198
4199
  const t = this;
4199
4200
  return o.isOmittedExpression(e) ? !1 : Fe.call(e.name, t);
4200
4201
  }
4201
- function _o(e, t) {
4202
+ function Wo(e, t) {
4202
4203
  let i = !1;
4203
4204
  const s = e.elements.filter((n) => o.isIdentifier(n.name) ? t.includes(n.name.text) : (i = !0, !0));
4204
4205
  return i || s.length === 0 ? e : o.factory.updateObjectBindingPattern(e, s);
4205
4206
  }
4206
- const as = (e, t) => t.liftedKeys.has(e);
4207
+ const ds = (e, t) => t.liftedKeys.has(e);
4207
4208
  function q(e, t, i) {
4208
4209
  if (fe(i))
4209
- return cs(e, i);
4210
- const s = o.isCallExpression(i) ? Ro(e, i) : i, n = o.visitEachChild(
4210
+ return ps(e, i);
4211
+ const s = o.isCallExpression(i) ? Oo(e, i) : i, n = o.visitEachChild(
4211
4212
  s,
4212
4213
  // Do not add "" if parent is binary expression to not turn {(a && <b />) || c} into {(a && <b />) || "" || c}
4213
4214
  q.bind(null, e, t !== void 0 && o.isBinaryExpression(t) ? void 0 : i),
4214
4215
  e.transformationContext
4215
4216
  );
4216
- return t !== void 0 && o.isBinaryExpression(i) && (o.isJsxExpression(t) || fe(ge(i.right)) || mr(i.right)) ? Uo(n) : n;
4217
+ return t !== void 0 && o.isBinaryExpression(i) && (o.isJsxExpression(t) || fe(ge(i.right)) || hr(i.right)) ? Ho(n) : n;
4217
4218
  }
4218
- function cs(e, t) {
4219
- const i = ls(e, t);
4219
+ function ps(e, t) {
4220
+ const i = us(e, t);
4220
4221
  return Oe(i, e);
4221
4222
  }
4222
- function ls(e, t) {
4223
+ function us(e, t) {
4223
4224
  const i = "children" in t ? t.children : [];
4224
4225
  if (o.isJsxFragment(t))
4225
4226
  return { key: void 0, ...Te(i, e) };
4226
4227
  const n = o.isJsxElement(t) ? t.openingElement : t, r = n.tagName;
4227
4228
  if (o.isJsxNamespacedName(r))
4228
4229
  throw Error(`JSX namespaced elements are not supported. Found ${r.getText(e.sourceFile)} `);
4229
- if (!o.isIdentifier(r) || !r.text.startsWith(r.text[0].toLowerCase()) && r.text !== Be && r.text !== _e) {
4230
- const S = o.isIdentifier(r) && r.text === Ys ? Te(i, e) : {
4230
+ if (!o.isIdentifier(r) || !r.text.startsWith(r.text[0].toLowerCase()) && r.text !== Be && r.text !== Ke) {
4231
+ const S = o.isIdentifier(r) && r.text === er ? Te(i, e) : {
4231
4232
  // No need to wrap the function call in a lit-html tag
4232
4233
  litTag: void 0,
4233
- parts: [Wo(e, t, r, i)]
4234
+ parts: [zo(e, t, r, i)]
4234
4235
  };
4235
4236
  return {
4236
- key: Ko(n, e),
4237
+ key: Uo(n, e),
4237
4238
  ...S
4238
4239
  };
4239
4240
  }
4240
- const c = r.text === Be ? ke : r.text === _e ? Ye : r.text, d = r.text === Be ? ae : r.text === _e ? Y : Zs.has(c) ? hi : at.has(c) ? se : ce, l = lt(c), p = l ? e.localComponents[c]?.requiredProperties : void 0, m = p === void 0 ? void 0 : new Set(p);
4241
+ const c = r.text === Be ? ke : r.text === Ke ? Ye : r.text, d = r.text === Be ? ae : r.text === Ke ? Y : ir.has(c) ? vi : ct.has(c) ? se : ce, l = dt(c), p = l ? e.localComponents[c]?.requiredProperties : void 0, m = p === void 0 ? void 0 : new Set(p);
4241
4242
  let f;
4242
4243
  const g = [];
4243
4244
  let h = !1;
@@ -4250,13 +4251,13 @@ Found ${x.getText(e.sourceFile)}`
4250
4251
  const { name: S, initializer: A } = x;
4251
4252
  if (o.isJsxNamespacedName(S))
4252
4253
  throw Error(`JSX namespaced attributes are not supported. Found ${S.getText(e.sourceFile)}`);
4253
- const L = S.text, U = Po(A), F = U?.propType ?? ko(L, A, c);
4254
+ const L = S.text, U = Io(A), F = U?.propType ?? xo(L, A, c);
4254
4255
  m?.delete(L);
4255
- const N = Co[F](e, U?.initializer ?? A, L, c);
4256
+ const N = To[F](e, U?.initializer ?? A, L, c);
4256
4257
  if (N.length === 0)
4257
4258
  return [];
4258
- const B = e.compiler.shouldMinifyJsx ? [" "] : jo(is(S, e));
4259
- return F === "key" ? (f = typeof N[0] == "object" && !as(S, e) ? N[0] : void 0, B.some(Ao) ? B : []) : F === "directives" || F === "ref" || L === "deferLoad" ? (h ||= F === "deferLoad", g.push(
4259
+ const B = e.compiler.shouldMinifyJsx ? [" "] : Ro(ns(S, e));
4260
+ return F === "key" ? (f = typeof N[0] == "object" && !ds(S, e) ? N[0] : void 0, B.some(No) ? B : []) : F === "directives" || F === "ref" || L === "deferLoad" ? (h ||= F === "deferLoad", g.push(
4260
4261
  ...B,
4261
4262
  ...N.flatMap(
4262
4263
  (D, M) => typeof D == "string" || M === 0 || typeof N[M - 1] == "string" ? D : [" ", D]
@@ -4267,12 +4268,12 @@ Found ${x.getText(e.sourceFile)}`
4267
4268
  "mustIncludeAllRequiredProperties",
4268
4269
  e.sourceFile.fileName,
4269
4270
  `Missing required properties for <${c}> }: ${Array.from(m).join(", ")}`
4270
- ), g.length > 0 && y.push(...g), typeof c == "string" && ct.has(c))
4271
+ ), g.length > 0 && y.push(...g), typeof c == "string" && lt.has(c))
4271
4272
  throw Error(
4272
4273
  `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 "${c}" element`
4273
4274
  );
4274
4275
  l && (h ? e.customElementsToImportDeferred.add(c) : e.customElementsToImport.add(c));
4275
- const v = typeof c == "string" && Qs.has(c), w = Te(i, e);
4276
+ const v = typeof c == "string" && tr.has(c), w = Te(i, e);
4276
4277
  if (v && w.parts.length > 0)
4277
4278
  throw Error(
4278
4279
  `Void HTML elements like <${c}> cannot have children. Found ${t.getText(e.sourceFile)}`
@@ -4296,21 +4297,21 @@ Found ${x.getText(e.sourceFile)}`
4296
4297
  ];
4297
4298
  return { key: f, parts: P, litTag: d };
4298
4299
  }
4299
- function Ko(e, t) {
4300
- const i = e.attributes.properties[ds(e)];
4301
- return i && o.isJsxAttribute(i) && !as(i.name, t) ? gt(i.initializer, t.sourceFile) : void 0;
4300
+ function Uo(e, t) {
4301
+ const i = e.attributes.properties[ms(e)];
4302
+ return i && o.isJsxAttribute(i) && !ds(i.name, t) ? ht(i.initializer, t.sourceFile) : void 0;
4302
4303
  }
4303
- const ds = (e) => e.attributes.properties.findIndex(({ name: t }) => t && o.isIdentifier(t) && t.text === "key");
4304
- function Wo(e, t, i, s) {
4304
+ const ms = (e) => e.attributes.properties.findIndex(({ name: t }) => t && o.isIdentifier(t) && t.text === "key");
4305
+ function zo(e, t, i, s) {
4305
4306
  const r = (o.isJsxElement(t) ? t.openingElement : t).attributes.properties.map((d) => {
4306
4307
  if (o.isJsxSpreadAttribute(d))
4307
- return ss(is(d, e), o.factory.createSpreadAssignment(d.expression));
4308
+ return os(ns(d, e), o.factory.createSpreadAssignment(d.expression));
4308
4309
  const { name: l, initializer: p } = d;
4309
4310
  if (o.isJsxNamespacedName(l))
4310
4311
  throw Error(`JSX namespaced attributes are not supported. Found ${l.getText(e.sourceFile)}`);
4311
4312
  if (l.text === "key")
4312
4313
  return;
4313
- const m = p === void 0 ? o.factory.createTrue() : o.isStringLiteral(p) ? p : fe(p) ? cs(e, p) : q(e, void 0, p.expression ?? o.factory.createIdentifier("undefined")), f = ci(l.text) ? o.factory.createStringLiteral(l.text) : l;
4314
+ const m = p === void 0 ? o.factory.createTrue() : o.isStringLiteral(p) ? p : fe(p) ? ps(e, p) : q(e, void 0, p.expression ?? o.factory.createIdentifier("undefined")), f = di(l.text) ? o.factory.createStringLiteral(l.text) : l;
4314
4315
  return o.factory.createPropertyAssignment(f, m);
4315
4316
  }), { parts: a, litTag: c } = Te(s, e);
4316
4317
  return a.length > 0 && r.push(
@@ -4326,13 +4327,13 @@ function Te(e, t) {
4326
4327
  let i;
4327
4328
  const s = e.flatMap((n) => {
4328
4329
  if (o.isJsxText(n))
4329
- return [t.compiler.shouldMinifyJsx ? tr(n.text) : n.text];
4330
+ return [t.compiler.shouldMinifyJsx ? rr(n.text) : n.text];
4330
4331
  if (o.isJsxExpression(n))
4331
- return yt(t, n, n);
4332
+ return vt(t, n, n);
4332
4333
  {
4333
- const r = ls(t, n);
4334
+ const r = us(t, n);
4334
4335
  if (r.key === void 0 && r.litTag !== ae && r.litTag !== Y) {
4335
- if (r.litTag === hi)
4336
+ if (r.litTag === vi)
4336
4337
  return r.parts;
4337
4338
  if (i !== void 0 && r.litTag !== void 0 && i !== r.litTag)
4338
4339
  throw new Error(
@@ -4345,21 +4346,21 @@ function Te(e, t) {
4345
4346
  });
4346
4347
  return { litTag: i, parts: s };
4347
4348
  }
4348
- function Uo(e) {
4349
+ function Ho(e) {
4349
4350
  return e.operatorToken.kind === o.SyntaxKind.AmpersandAmpersandToken ? o.factory.createBinaryExpression(
4350
4351
  e,
4351
4352
  o.factory.createToken(o.SyntaxKind.BarBarToken),
4352
4353
  o.factory.createStringLiteral("")
4353
4354
  ) : e;
4354
4355
  }
4355
- function yt(e, t, i) {
4356
+ function vt(e, t, i) {
4356
4357
  if (t.expression === void 0) {
4357
4358
  if (e.compiler.shouldMinifyJsx)
4358
4359
  return [];
4359
4360
  const s = t.getText(e.sourceFile).slice(1, -1);
4360
- return ht(s).length === 0 ? [] : [ss(s, o.factory.createIdentifier("undefined"))];
4361
+ return yt(s).length === 0 ? [] : [os(s, o.factory.createIdentifier("undefined"))];
4361
4362
  }
4362
- return o.isStringLiteral(t.expression) ? [gi(t.expression.text)] : (
4363
+ return o.isStringLiteral(t.expression) ? [yi(t.expression.text)] : (
4363
4364
  /**
4364
4365
  * There is a bug in Chrome DevTools, where it won't let you set a
4365
4366
  * breakpoint inside a tagged template literal. It seems like they did
@@ -4396,17 +4397,17 @@ function yt(e, t, i) {
4396
4397
  ] : [q(e, i, t.expression)]
4397
4398
  );
4398
4399
  }
4399
- const ps = (e) => e.reduce((t, [i, s]) => (t[i] ??= [], t[i].push(s), t), {}), us = ps(
4400
+ const fs = (e) => e.reduce((t, [i, s]) => (t[i] ??= [], t[i].push(s), t), {}), gs = fs(
4400
4401
  Object.entries(re).flatMap(
4401
4402
  ([e, t]) => t.map((i) => [i, e])
4402
4403
  )
4403
- ), ms = new Set(Object.keys(us));
4404
- function zo(e, t) {
4404
+ ), hs = new Set(Object.keys(gs));
4405
+ function qo(e, t) {
4405
4406
  const i = t.importClause, s = i === void 0, n = t.moduleSpecifier;
4406
4407
  if (!o.isStringLiteral(n))
4407
4408
  return t;
4408
- const r = Ho(e.sourceFile.fileName, n.text, ""), a = !i?.isTypeOnly;
4409
- if (a && e.existingImportedModules.add(r), gr.test(n.text) && // If id already includes ?, bypass our custom behavior
4409
+ const r = Vo(e.sourceFile.fileName, n.text, ""), a = i?.phaseModifier !== o.SyntaxKind.TypeKeyword;
4410
+ if (a && e.existingImportedModules.add(r), vr.test(n.text) && // If id already includes ?, bypass our custom behavior
4410
4411
  !n.text.includes("?")) {
4411
4412
  if (s) {
4412
4413
  if (e.compiler.viteCommand !== "build" || e.compiler.isInStorybook || e.compiler.isInTest)
@@ -4434,17 +4435,17 @@ function zo(e, t) {
4434
4435
  return t;
4435
4436
  if (i.name !== void 0) {
4436
4437
  const l = i.name.text, p = i.name.text.startsWith(l[0].toUpperCase()), m = u.isAbsolute(r);
4437
- a && !i.isTypeOnly && p && m && e.importedFunctionComponentsFromModules.add(r);
4438
+ a && p && m && e.importedFunctionComponentsFromModules.add(r);
4438
4439
  }
4439
4440
  const c = i.namedBindings;
4440
4441
  if (c === void 0 || !o.isNamedImports(c))
4441
4442
  return t;
4442
- const d = ms.has(n.text);
4443
+ const d = hs.has(n.text);
4443
4444
  if (c.elements.forEach((l) => {
4444
4445
  const p = (l.propertyName ?? l.name).text, m = re[p];
4445
4446
  if (d) {
4446
4447
  if (m?.some((h) => h === n.text)) {
4447
- const h = fs(p, r);
4448
+ const h = ys(p, r);
4448
4449
  e.existingLitImports.add(h), e.importRenames[h] = l.name?.text ?? h;
4449
4450
  }
4450
4451
  } else (l.name.text === "h" || l.name.text === "createElement") && j().name !== "@arcgis/lumina" && (e.hasNonLuminaJsxImport = !0);
@@ -4454,12 +4455,12 @@ function zo(e, t) {
4454
4455
  let l = !1;
4455
4456
  const p = c.elements.filter((f) => {
4456
4457
  const g = (f.propertyName ?? f.name).text;
4457
- return fr.has(g) ? !1 : (l ||= !f.isTypeOnly, !0);
4458
+ return yr.has(g) ? !1 : (l ||= !f.isTypeOnly, !0);
4458
4459
  });
4459
4460
  if (p.length === 0)
4460
4461
  return;
4461
4462
  if (p.length !== c.elements.length) {
4462
- const f = i.isTypeOnly || !l, g = l ? p : p.map(
4463
+ const f = i.phaseModifier === o.SyntaxKind.TypeKeyword || !l, g = l ? p : p.map(
4463
4464
  (h) => o.factory.updateImportSpecifier(
4464
4465
  h,
4465
4466
  !1,
@@ -4472,7 +4473,7 @@ function zo(e, t) {
4472
4473
  t.modifiers,
4473
4474
  o.factory.updateImportClause(
4474
4475
  i,
4475
- f,
4476
+ f ? o.SyntaxKind.TypeKeyword : void 0,
4476
4477
  i.name,
4477
4478
  o.factory.updateNamedImports(c, g)
4478
4479
  ),
@@ -4483,28 +4484,28 @@ function zo(e, t) {
4483
4484
  }
4484
4485
  return t;
4485
4486
  }
4486
- const fs = (e, t) => e === ce && re.staticHtml.includes(t) ? ae : e === se && re.staticSvg.includes(t) ? Y : e, Ho = (e, t, i) => t.startsWith(".") ? u.resolve(e, "..", `${t}${i}`) : t;
4487
- function qo(e) {
4488
- return o.isImportDeclaration(e) ? Vo(this, e) : e;
4487
+ const ys = (e, t) => e === ce && re.staticHtml.includes(t) ? ae : e === se && re.staticSvg.includes(t) ? Y : e, Vo = (e, t, i) => t.startsWith(".") ? u.resolve(e, "..", `${t}${i}`) : t;
4488
+ function Go(e) {
4489
+ return o.isImportDeclaration(e) ? Xo(this, e) : e;
4489
4490
  }
4490
- function Vo(e, t) {
4491
+ function Xo(e, t) {
4491
4492
  const i = t.importClause, s = i?.namedBindings, n = t.moduleSpecifier;
4492
- if (!o.isStringLiteral(n) || !s || !o.isNamedImports(s) || !ms.has(n.text))
4493
+ if (!o.isStringLiteral(n) || !s || !o.isNamedImports(s) || !hs.has(n.text))
4493
4494
  return t;
4494
- const r = i.isTypeOnly;
4495
+ const r = i.phaseModifier === o.SyntaxKind.TypeKeyword;
4495
4496
  let a = !1;
4496
4497
  const c = s.elements.map((d) => {
4497
- const l = (d.propertyName ?? d.name).text, p = fs(l, n.text);
4498
+ const l = (d.propertyName ?? d.name).text, p = ys(l, n.text);
4498
4499
  return e.existingLitImports.delete(p), e.neededImports.has(p) ? (e.neededImports.delete(p), a = !0, o.factory.updateImportSpecifier(d, !1, d.propertyName, d.name)) : r ? o.factory.updateImportSpecifier(d, !0, d.propertyName, d.name) : d;
4499
4500
  });
4500
- return us[n.text]?.forEach((d) => {
4501
- !e.neededImports.has(d) || e.existingLitImports.has(d) || (e.neededImports.delete(d), a = !0, c.push(gs(d, e)));
4501
+ return gs[n.text]?.forEach((d) => {
4502
+ !e.neededImports.has(d) || e.existingLitImports.has(d) || (e.neededImports.delete(d), a = !0, c.push(vs(d, e)));
4502
4503
  }), a ? o.factory.updateImportDeclaration(
4503
4504
  t,
4504
4505
  t.modifiers,
4505
4506
  o.factory.updateImportClause(
4506
4507
  i,
4507
- !1,
4508
+ void 0,
4508
4509
  i.name,
4509
4510
  o.factory.updateNamedImports(s, c)
4510
4511
  ),
@@ -4512,25 +4513,25 @@ function Vo(e, t) {
4512
4513
  t.attributes
4513
4514
  ) : t;
4514
4515
  }
4515
- function Go(e) {
4516
- const t = ps(
4516
+ function Yo(e) {
4517
+ const t = fs(
4517
4518
  Array.from(e.neededImports, (i) => [re[i][0], i])
4518
4519
  );
4519
4520
  return Object.entries(t).map(
4520
4521
  ([i, s]) => o.factory.createImportDeclaration(
4521
4522
  void 0,
4522
4523
  o.factory.createImportClause(
4523
- !1,
4524
+ void 0,
4524
4525
  void 0,
4525
4526
  o.factory.createNamedImports(
4526
- s.map((n) => (e.neededImports.delete(n), gs(n, e)))
4527
+ s.map((n) => (e.neededImports.delete(n), vs(n, e)))
4527
4528
  )
4528
4529
  ),
4529
4530
  o.factory.createStringLiteral(i)
4530
4531
  )
4531
4532
  );
4532
4533
  }
4533
- function gs(e, t) {
4534
+ function vs(e, t) {
4534
4535
  const i = e === ae ? ce : e === Y ? se : e, s = t.importRenames[e];
4535
4536
  return s === i ? o.factory.createImportSpecifier(!1, void 0, o.factory.createIdentifier(i)) : o.factory.createImportSpecifier(
4536
4537
  !1,
@@ -4538,12 +4539,12 @@ function gs(e, t) {
4538
4539
  o.factory.createIdentifier(s)
4539
4540
  );
4540
4541
  }
4541
- function Xo(e) {
4542
- const t = Dr().map(({ packageName: i }) => i);
4542
+ function Qo(e) {
4543
+ const t = Jr().map(({ packageName: i }) => i);
4543
4544
  return e.existingImportedModules.forEach((i) => {
4544
4545
  if (u.isAbsolute(i))
4545
4546
  return;
4546
- const s = Gs(i), n = i.slice(s.length + 1);
4547
+ const s = Qs(i), n = i.slice(s.length + 1);
4547
4548
  if (t.includes(s ?? "") && (n.startsWith("dist/components") || n.startsWith("components"))) {
4548
4549
  const r = Re(e.sourceFile.fileName);
4549
4550
  throw new Error(
@@ -4552,7 +4553,7 @@ function Xo(e) {
4552
4553
  }
4553
4554
  }), [];
4554
4555
  }
4555
- function Yo(e) {
4556
+ function Zo(e) {
4556
4557
  if (e.compiler.viteCommand === "serve")
4557
4558
  return e.customElementsToImport.clear(), e.customElementsToImportDeferred.clear(), [];
4558
4559
  const t = e.compiler._customElementDependencies;
@@ -4567,7 +4568,7 @@ function Yo(e) {
4567
4568
  t[s] ??= { referencedBy: [], referencedTagNames: [], referencedDeferredTagNames: [] }, t[s].referencedBy.push(e.sourceFile.fileName);
4568
4569
  }), [];
4569
4570
  }
4570
- const Qo = (e, t) => {
4571
+ const ea = (e, t) => {
4571
4572
  const i = e.pragmas;
4572
4573
  if (i?.has("jsx") === !0 || i?.has("jsxImportSource") === !0)
4573
4574
  return e.statements;
@@ -4587,11 +4588,11 @@ const Qo = (e, t) => {
4587
4588
  }
4588
4589
  const r = {
4589
4590
  compiler: t.compiler,
4590
- externalComponents: ki(),
4591
- localComponents: es(t.compiler),
4591
+ externalComponents: xi(),
4592
+ localComponents: ss(t.compiler),
4592
4593
  sourceFile: e,
4593
4594
  transformationContext: t.transformation,
4594
- importRenames: Zo(e),
4595
+ importRenames: ta(e),
4595
4596
  existingImportedModules: /* @__PURE__ */ new Set(),
4596
4597
  importedFunctionComponentsFromModules: /* @__PURE__ */ new Set(),
4597
4598
  existingLitImports: /* @__PURE__ */ new Set(),
@@ -4605,7 +4606,7 @@ const Qo = (e, t) => {
4605
4606
  let a = [];
4606
4607
  if (e.statements.every((d) => {
4607
4608
  if (o.isImportDeclaration(d)) {
4608
- const l = zo(r, d);
4609
+ const l = qo(r, d);
4609
4610
  if (l === void 0)
4610
4611
  return !0;
4611
4612
  if (a.push(l), r.hasNonLuminaJsxImport)
@@ -4615,11 +4616,11 @@ const Qo = (e, t) => {
4615
4616
  return !0;
4616
4617
  }), r.hasNonLuminaJsxImport)
4617
4618
  return e.statements;
4618
- if (r.neededImports.size > 0 && (a = a.map(qo, r), r.existingLitImports.size > 0))
4619
+ if (r.neededImports.size > 0 && (a = a.map(Go, r), r.existingLitImports.size > 0))
4619
4620
  throw new Error(
4620
4621
  `Expected context.existingLitImports to be empty by now. Found: ${Array.from(r.existingLitImports).join(", ")}`
4621
4622
  );
4622
- const c = [Go, Xo, Yo].flatMap(
4623
+ const c = [Yo, Qo, Zo].flatMap(
4623
4624
  (d) => d(r)
4624
4625
  );
4625
4626
  if (r.neededImports.size > 0)
@@ -4628,24 +4629,24 @@ const Qo = (e, t) => {
4628
4629
  );
4629
4630
  return [...c, ...a];
4630
4631
  };
4631
- function Zo(e) {
4632
- return ea(e), Object.fromEntries(
4633
- ur.map((t) => [t, e.identifiers.has(t) ? `${t}$jsx` : t])
4632
+ function ta(e) {
4633
+ return ia(e), Object.fromEntries(
4634
+ gr.map((t) => [t, e.identifiers.has(t) ? `${t}$jsx` : t])
4634
4635
  );
4635
4636
  }
4636
- function ea(e) {
4637
+ function ia(e) {
4637
4638
  if (!("identifiers" in e))
4638
4639
  throw new Error(
4639
4640
  "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."
4640
4641
  );
4641
4642
  }
4642
- const Gt = "customElement", ta = (e, t) => {
4643
+ const Yt = "customElement", sa = (e, t) => {
4643
4644
  const i = [];
4644
4645
  if (t.apiModule?.declarations.forEach((r) => {
4645
4646
  const a = r;
4646
4647
  a.customElement !== void 0 && i.push(
4647
4648
  o.factory.createExpressionStatement(
4648
- o.factory.createCallExpression(o.factory.createIdentifier(Gt), void 0, [
4649
+ o.factory.createCallExpression(o.factory.createIdentifier(Yt), void 0, [
4649
4650
  o.factory.createStringLiteral(a.tagName ?? ""),
4650
4651
  o.factory.createIdentifier(a.name)
4651
4652
  ])
@@ -4660,16 +4661,16 @@ const Gt = "customElement", ta = (e, t) => {
4660
4661
  return [o.factory.createImportDeclaration(
4661
4662
  void 0,
4662
4663
  o.factory.createImportClause(
4663
- !1,
4664
+ void 0,
4664
4665
  void 0,
4665
4666
  o.factory.createNamedImports([
4666
- o.factory.createImportSpecifier(!1, void 0, o.factory.createIdentifier(Gt))
4667
+ o.factory.createImportSpecifier(!1, void 0, o.factory.createIdentifier(Yt))
4667
4668
  ])
4668
4669
  ),
4669
4670
  o.factory.createStringLiteral(s)
4670
4671
  ), ...e.statements, ...i];
4671
4672
  };
4672
- function ia(e, t, i) {
4673
+ function ra(e, t, i) {
4673
4674
  return t.size === 0 ? e : [
4674
4675
  o.factory.createPropertyDeclaration(
4675
4676
  [
@@ -4683,8 +4684,8 @@ function ia(e, t, i) {
4683
4684
  Array.from(
4684
4685
  t.entries(),
4685
4686
  ([s, n]) => o.factory.createPropertyAssignment(
4686
- ci(s) ? o.factory.createStringLiteral(s) : s,
4687
- sa(n, i)
4687
+ di(s) ? o.factory.createStringLiteral(s) : s,
4688
+ na(n, i)
4688
4689
  )
4689
4690
  )
4690
4691
  )
@@ -4692,7 +4693,7 @@ function ia(e, t, i) {
4692
4693
  ...e
4693
4694
  ];
4694
4695
  }
4695
- function sa(e, t) {
4696
+ function na(e, t) {
4696
4697
  let i = 0, s = !0;
4697
4698
  const n = [], r = [];
4698
4699
  for (const d of e.properties)
@@ -4702,27 +4703,27 @@ function sa(e, t) {
4702
4703
  return !0;
4703
4704
  const l = d.name.text, p = d.initializer, m = p.kind === o.SyntaxKind.TrueKeyword, f = p.kind === o.SyntaxKind.FalseKeyword;
4704
4705
  if (l === "attribute")
4705
- return s = !1, i |= m ? Ct : 0, !m && !f;
4706
+ return s = !1, i |= m ? Et : 0, !m && !f;
4706
4707
  if (l === "reflect")
4707
- return i |= m ? $s : 0, !1;
4708
+ return i |= m ? Is : 0, !1;
4708
4709
  if (l === "type" && o.isIdentifier(p)) {
4709
4710
  if (p.text === "Boolean")
4710
- return i |= Ps, !1;
4711
+ return i |= xs, !1;
4711
4712
  if (p.text === "Number")
4712
- return i |= ks, !1;
4713
+ return i |= As, !1;
4713
4714
  } else {
4714
4715
  if (l === "state")
4715
- return s = !1, i |= m ? Is : 0, !1;
4716
+ return s = !1, i |= m ? Ls : 0, !1;
4716
4717
  if (l === "readOnly")
4717
- return i |= m ? xs : 0, !1;
4718
+ return i |= m ? Ns : 0, !1;
4718
4719
  if (l === "noAccessor")
4719
- return i |= m ? As : 0, !1;
4720
+ return i |= m ? js : 0, !1;
4720
4721
  if (l === "useDefault")
4721
- return i |= m ? Ls : 0, !1;
4722
+ return i |= m ? Fs : 0, !1;
4722
4723
  }
4723
4724
  return !0;
4724
4725
  }
4725
- s && (i |= Ct);
4726
+ s && (i |= Et);
4726
4727
  const c = o.factory.createNumericLiteral(i);
4727
4728
  return n.length === 0 && (t || r.length === 0) ? c : o.factory.createArrayLiteralExpression([
4728
4729
  c,
@@ -4737,7 +4738,7 @@ function sa(e, t) {
4737
4738
  ...t ? [] : [o.factory.createObjectLiteralExpression(r)]
4738
4739
  ]);
4739
4740
  }
4740
- function ra(e, t, i) {
4741
+ function oa(e, t, i) {
4741
4742
  let s = -1, n = -1, r = -1;
4742
4743
  e.options?.properties.forEach((p, m) => {
4743
4744
  if (o.isSpreadAssignment(p))
@@ -4749,23 +4750,23 @@ function ra(e, t, i) {
4749
4750
  f === "type" ? s = m : f === "attribute" ? n = m : f === "readOnly" && (r = m);
4750
4751
  }
4751
4752
  });
4752
- const a = i.attribute === void 0 && n === -1, c = i.readonly === !0 && i.docsOnlyReadonly !== !0 && r === -1, d = na(e, i, s), l = [
4753
+ const a = i.attribute === void 0 && n === -1, c = i.readonly === !0 && i.docsOnlyReadonly !== !0 && r === -1, d = aa(e, i, s), l = [
4753
4754
  ...a ? [o.factory.createPropertyAssignment("attribute", o.factory.createFalse())] : [],
4754
4755
  ...c ? [o.factory.createPropertyAssignment("readOnly", o.factory.createTrue())] : [],
4755
4756
  ...d !== void 0 ? [d] : []
4756
4757
  ];
4757
4758
  return l.length > 0 ? e.options === void 0 ? o.factory.createObjectLiteralExpression(l, !1) : o.factory.updateObjectLiteralExpression(e.options, [...e.options.properties, ...l]) : e.options;
4758
4759
  }
4759
- function na(e, t, i) {
4760
+ function aa(e, t, i) {
4760
4761
  if (t.attribute === void 0)
4761
4762
  return;
4762
- const s = oa(t.type.values);
4763
+ const s = ca(t.type.values);
4763
4764
  return s === "Other" || t.readonly === !0 && (s !== "Boolean" || t.reflects === void 0) || e.options?.properties[i] !== void 0 ? void 0 : o.factory.createPropertyAssignment(
4764
4765
  o.factory.createIdentifier("type"),
4765
4766
  o.factory.createIdentifier(s)
4766
4767
  );
4767
4768
  }
4768
- function oa(e) {
4769
+ function ca(e) {
4769
4770
  let t = !1, i = !1, s = !1;
4770
4771
  if (e?.forEach((n) => {
4771
4772
  t ||= n.type === "number", i ||= n.type === "boolean", s ||= n.type === "string" || n.type === "any" || n.type === "unknown";
@@ -4777,7 +4778,7 @@ function oa(e) {
4777
4778
  }
4778
4779
  return "Other";
4779
4780
  }
4780
- function aa(e, t, i, s, n, r) {
4781
+ function la(e, t, i, s, n, r) {
4781
4782
  if (i.modifiers === void 0)
4782
4783
  return i;
4783
4784
  let a = -1, c = -1;
@@ -4787,23 +4788,23 @@ function aa(e, t, i, s, n, r) {
4787
4788
  p === "property" && (a = l), p === "state" && (c = l);
4788
4789
  }
4789
4790
  }), a !== -1) {
4790
- const d = ca(e, t, i, s, n), l = Xt(i, a, n), p = ra(l, n, d);
4791
- return r.set(d.name, p ?? o.factory.createObjectLiteralExpression()), l.options = p, Yt(i, a);
4791
+ const d = da(e, t, i, s, n), l = Qt(i, a, n), p = oa(l, n, d);
4792
+ return r.set(d.name, p ?? o.factory.createObjectLiteralExpression()), l.options = p, Zt(i, a);
4792
4793
  } else if (c !== -1) {
4793
- const d = Xt(i, c, n), l = o.factory.createPropertyAssignment("state", o.factory.createTrue()), p = d.options === void 0 ? o.factory.createObjectLiteralExpression([l]) : o.factory.updateObjectLiteralExpression(d.options, [...d.options.properties, l]), m = li(i.name);
4794
+ const d = Qt(i, c, n), l = o.factory.createPropertyAssignment("state", o.factory.createTrue()), p = d.options === void 0 ? o.factory.createObjectLiteralExpression([l]) : o.factory.updateObjectLiteralExpression(d.options, [...d.options.properties, l]), m = pi(i.name);
4794
4795
  if (m === void 0)
4795
4796
  throw new Error("Failed to statically determine the state property name");
4796
- return r.set(m, p), Yt(i, c);
4797
+ return r.set(m, p), Zt(i, c);
4797
4798
  } else
4798
4799
  return i;
4799
4800
  }
4800
- function ca(e, t, i, s, n) {
4801
+ function da(e, t, i, s, n) {
4801
4802
  const r = t ?? (e.compiler.isInTest ? {
4802
4803
  members: []
4803
4804
  } : void 0);
4804
4805
  if (r === void 0)
4805
4806
  throw Error(`Failed to find API component for ${s} in ${n.fileName}`);
4806
- const a = li(i.name);
4807
+ const a = pi(i.name);
4807
4808
  let c;
4808
4809
  for (let d = 0; d < r.members.length; ++d) {
4809
4810
  const l = r.members[d];
@@ -4818,11 +4819,11 @@ function ca(e, t, i, s, n) {
4818
4819
  throw Error(
4819
4820
  `Failed to statically determine the property name: ${i.getText(n)} in ${s} in ${n.fileName}`
4820
4821
  );
4821
- c.name = a, c.attribute ??= ti(a);
4822
+ c.name = a, c.attribute ??= si(a);
4822
4823
  }
4823
4824
  return c;
4824
4825
  }
4825
- function Xt(e, t, i) {
4826
+ function Qt(e, t, i) {
4826
4827
  const s = e.modifiers[t], n = s.expression, r = n.arguments.at(0);
4827
4828
  if (r && !o.isObjectLiteralExpression(r))
4828
4829
  throw new Error(
@@ -4830,7 +4831,7 @@ function Xt(e, t, i) {
4830
4831
  );
4831
4832
  return { decorator: s, callExpression: n, options: r };
4832
4833
  }
4833
- function Yt(e, t) {
4834
+ function Zt(e, t) {
4834
4835
  const i = [
4835
4836
  ...e.modifiers.slice(0, t),
4836
4837
  ...e.modifiers.slice(t + 1)
@@ -4857,7 +4858,7 @@ function Yt(e, t) {
4857
4858
  e.initializer
4858
4859
  );
4859
4860
  }
4860
- function la(e, t, i, s) {
4861
+ function pa(e, t, i, s) {
4861
4862
  let n;
4862
4863
  if (e.apiJsonEnabled)
4863
4864
  for (let d = 0; d < e.privateApiJson.modules.length; ++d) {
@@ -4880,9 +4881,9 @@ function la(e, t, i, s) {
4880
4881
  } finally {
4881
4882
  c = i.statements, i.statements = a;
4882
4883
  }
4883
- return da(i, c);
4884
+ return ua(i, c);
4884
4885
  }
4885
- const da = (e, t) => o.factory.updateSourceFile(
4886
+ const ua = (e, t) => o.factory.updateSourceFile(
4886
4887
  e,
4887
4888
  t,
4888
4889
  /*
@@ -4894,13 +4895,13 @@ const da = (e, t) => o.factory.updateSourceFile(
4894
4895
  e.isDeclarationFile,
4895
4896
  e.referencedFiles,
4896
4897
  e.typeReferenceDirectives,
4897
- e.hasNoDefaultLib,
4898
+ !1,
4898
4899
  e.libReferenceDirectives
4899
4900
  );
4900
- function pa(e, t) {
4901
+ function ma(e, t) {
4901
4902
  t.compiler.viteCommand === "build" && ("emitNode" in e && (e.emitNode ??= {}), o.setEmitFlags(e, o.EmitFlags.NoComments));
4902
4903
  }
4903
- const ua = (e, t) => {
4904
+ const fa = (e, t) => {
4904
4905
  let i;
4905
4906
  if (t.apiModule !== void 0)
4906
4907
  for (let d = 0; d < t.apiModule.declarations.length; ++d) {
@@ -4916,16 +4917,16 @@ const ua = (e, t) => {
4916
4917
  function n() {
4917
4918
  s = /* @__PURE__ */ new Map();
4918
4919
  }
4919
- const r = (d) => ia(d, s, t.compiler.shouldMinify);
4920
+ const r = (d) => ra(d, s, t.compiler.shouldMinify);
4920
4921
  function a(d, l) {
4921
- const p = fa(t, i, d, l, e, s);
4922
- return pa(p, t), p;
4922
+ const p = ha(t, i, d, l, e, s);
4923
+ return ma(p, t), p;
4923
4924
  }
4924
4925
  return e.statements.map(
4925
- (d) => hs(a, d, t, n, r)
4926
+ (d) => bs(a, d, t, n, r)
4926
4927
  );
4927
4928
  };
4928
- function hs(e, t, i, s, n = di) {
4929
+ function bs(e, t, i, s, n = ui) {
4929
4930
  if (o.isClassDeclaration(t) && // Ignore classes that don't extend anything - those are definitely not components
4930
4931
  t.heritageClauses?.some((r) => r.token === o.SyntaxKind.ExtendsKeyword)) {
4931
4932
  let r = !1;
@@ -4948,15 +4949,15 @@ function hs(e, t, i, s, n = di) {
4948
4949
  } else
4949
4950
  return i.compiler.isInTest ? o.visitEachChild(
4950
4951
  t,
4951
- (a) => hs(e, a, i, s, n),
4952
+ (a) => bs(e, a, i, s, n),
4952
4953
  i.transformation
4953
4954
  ) : t;
4954
4955
  }
4955
- const ma = /* @__PURE__ */ new Set(["connectedCallback", "disconnectedCallback"]);
4956
- function fa(e, t, i, s, n, r) {
4956
+ const ga = /* @__PURE__ */ new Set(["connectedCallback", "disconnectedCallback"]);
4957
+ function ha(e, t, i, s, n, r) {
4957
4958
  if (o.isMethodDeclaration(i)) {
4958
4959
  const a = i.modifiers?.filter(
4959
- (c) => !o.isDecorator(c) || !ga(c)
4960
+ (c) => !o.isDecorator(c) || !ya(c)
4960
4961
  );
4961
4962
  if (a?.length !== i.modifiers?.length)
4962
4963
  return o.factory.updateMethodDeclaration(
@@ -4970,7 +4971,7 @@ function fa(e, t, i, s, n, r) {
4970
4971
  i.type,
4971
4972
  i.body
4972
4973
  );
4973
- if ("text" in i.name && ma.has(i.name.text) && i.body) {
4974
+ if ("text" in i.name && ga.has(i.name.text) && i.body) {
4974
4975
  const c = i.name.text;
4975
4976
  return i.body.statements.some(
4976
4977
  (l) => o.isExpressionStatement(l) && o.isCallExpression(l.expression) && o.isPropertyAccessExpression(l.expression.expression) && l.expression.expression.expression.kind === o.SyntaxKind.SuperKeyword && l.expression.expression.name.text === c
@@ -4996,14 +4997,14 @@ function fa(e, t, i, s, n, r) {
4996
4997
  );
4997
4998
  }
4998
4999
  }
4999
- return o.isPropertyDeclaration(i) || o.isAccessor(i) ? aa(e, t, i, s, n, r) : i;
5000
- }
5001
- const ga = (e) => o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text === "method", ha = [
5002
- Qo,
5003
- ta,
5004
- ua
5005
- ], ya = "@arcgis/lumina:transformComponents", va = (e) => ({
5006
- name: ya,
5000
+ return o.isPropertyDeclaration(i) || o.isAccessor(i) ? la(e, t, i, s, n, r) : i;
5001
+ }
5002
+ const ya = (e) => o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text === "method", va = [
5003
+ ea,
5004
+ sa,
5005
+ fa
5006
+ ], ba = "@arcgis/lumina:transformComponents", wa = (e) => ({
5007
+ name: ba,
5007
5008
  transform: {
5008
5009
  // Transform JSX to lit-html first so that vite:esbuild doesn't transform JSX to h().
5009
5010
  // Also, we need to run on the original fs file, before other transforms so
@@ -5023,11 +5024,11 @@ const ga = (e) => o.isCallExpression(e.expression) && o.isIdentifier(e.expressio
5023
5024
  e.apiJsonDeferred === void 0 ? [ne] : [ne, e.apiJsonDeferred.promise]
5024
5025
  );
5025
5026
  const n = e.getSourceFile(i, t), a = o.transform(n, [
5026
- (f) => () => la(e, f, n, [
5027
+ (f) => () => pa(e, f, n, [
5027
5028
  ...e.options.types?.sourceFileTransformers ?? [],
5028
- ...ha
5029
+ ...va
5029
5030
  ])
5030
- ]).transformed[0], c = e._typeScriptPrinter, d = e.viteConfig.build.sourcemap === !1 ? void 0 : Et.createSourceMapGenerator(ba, u.basename(i), "", u.dirname(i), {}), l = Et.createTextWriter(`
5031
+ ]).transformed[0], c = e._typeScriptPrinter, d = e.viteConfig.build.sourcemap === !1 ? void 0 : Tt.createSourceMapGenerator(Sa, u.basename(i), "", u.dirname(i), {}), l = Tt.createTextWriter(`
5031
5032
  `);
5032
5033
  c.writeFile(a, l, d);
5033
5034
  const p = l.getText(), m = d?.toJSON();
@@ -5037,46 +5038,46 @@ const ga = (e) => o.isCallExpression(e.expression) && o.isIdentifier(e.expressio
5037
5038
  };
5038
5039
  }
5039
5040
  }
5040
- }), ba = {
5041
+ }), Sa = {
5041
5042
  getCurrentDirectory: o.sys.getCurrentDirectory,
5042
- getCanonicalFileName: o.sys.useCaseSensitiveFileNames ? di : (e) => e.toLowerCase()
5043
- }, wa = (e) => ({
5043
+ getCanonicalFileName: o.sys.useCaseSensitiveFileNames ? ui : (e) => e.toLowerCase()
5044
+ }, Ca = (e) => ({
5044
5045
  name: "@arcgis/lumina:handleDynamicAssets",
5045
5046
  configureServer(t) {
5046
- e.server = t, Qt(e).forEach(({ assets: i, transformers: s }) => ie(e, i, s));
5047
+ e.server = t, ei(e).forEach(({ assets: i, transformers: s }) => ie(e, i, s));
5047
5048
  },
5048
5049
  async writeBundle() {
5049
5050
  await Promise.all(
5050
- Qt(e).map(
5051
- async ({ assets: t, transformers: i }) => await ji(e, t, i)
5051
+ ei(e).map(
5052
+ async ({ assets: t, transformers: i }) => await Ri(e, t, i)
5052
5053
  )
5053
5054
  );
5054
5055
  }
5055
5056
  });
5056
- function Qt(e) {
5057
+ function ei(e) {
5057
5058
  const t = [], i = e.assetsToProvide?.filter((s) => s.apply === void 0 || s.apply === e.viteCommand) ?? [];
5058
5059
  return e.options.assets?.extra?.forEach((s) => {
5059
5060
  "type" in s ? t.push(s) : "assets" in s && t.push(...s.assets);
5060
5061
  }), t.length > 0 && i.push({ assets: t }), e.isInBuildWatch || (e.assetsToProvide = void 0), i;
5061
5062
  }
5062
- const nt = "@arcgis/lumina:updatePackageJson", Sa = (e) => ({
5063
- name: nt,
5063
+ const ot = "@arcgis/lumina:updatePackageJson", Ea = (e) => ({
5064
+ name: ot,
5064
5065
  apply: () => e.viteCommand === "serve" && e.environment === "development" && !e.isInTest && !e.isInCi,
5065
5066
  configResolved() {
5066
- Ca(e).catch(
5067
- (t) => T.error(nt, `Failed to update package's package.json:${String(t)}`)
5067
+ Ta(e).catch(
5068
+ (t) => T.error(ot, `Failed to update package's package.json:${String(t)}`)
5068
5069
  );
5069
5070
  }
5070
5071
  });
5071
- async function Ca(e) {
5072
- const t = u.join(e.dir.root, "package.json"), i = JSON.parse(await z(t, "utf-8")), s = Ea(i, e);
5073
- s && ai(t, JSON.stringify(s, null, 2));
5072
+ async function Ta(e) {
5073
+ const t = u.join(e.dir.root, "package.json"), i = JSON.parse(await z(t, "utf-8")), s = $a(i, e);
5074
+ s && li(t, JSON.stringify(s, null, 2));
5074
5075
  }
5075
- function Ea(e, t) {
5076
+ function $a(e, t) {
5076
5077
  const i = e?.devDependencies ?? {};
5077
5078
  Object.keys(e?.peerDependencies ?? {}).forEach((l) => {
5078
5079
  l in i || T.warn(
5079
- nt,
5080
+ ot,
5080
5081
  `Every peerDependency should also be a devDependency, or else some tools will get confused (like Turbo Build). Found "${l}" that is not a devDependency. Please edit your package.json`
5081
5082
  );
5082
5083
  });
@@ -5111,21 +5112,21 @@ function Ea(e, t) {
5111
5112
  if (s)
5112
5113
  return e;
5113
5114
  }
5114
- const Ta = (e) => ({
5115
+ const Pa = (e) => ({
5115
5116
  deprecation: "docs.json is deprecated and will be removed in a future release. Use api.json instead",
5116
5117
  timestamp: e.apiJson.timestamp,
5117
5118
  compiler: e.apiJson.compiler,
5118
- components: $a(e),
5119
+ components: ka(e),
5119
5120
  typeLibrary: {}
5120
5121
  });
5121
- function $a(e) {
5122
+ function ka(e) {
5122
5123
  const t = [];
5123
5124
  for (const i of e.apiJson.modules)
5124
5125
  for (const s of i.declarations)
5125
- s.customElement === !0 && t.push(Pa(s, i.sourcePath));
5126
+ s.customElement === !0 && t.push(Ia(s, i.sourcePath));
5126
5127
  return t;
5127
5128
  }
5128
- function Pa(e, t) {
5129
+ function Ia(e, t) {
5129
5130
  const i = e.superclass ? [{ name: "superclass", text: JSON.stringify(e.superclass) }] : [];
5130
5131
  return {
5131
5132
  filePath: t,
@@ -5140,9 +5141,9 @@ function Pa(e, t) {
5140
5141
  dependencies: [],
5141
5142
  dependencyGraph: {},
5142
5143
  deprecation: typeof e.deprecated == "boolean" ? e.deprecated ? "" : void 0 : e.deprecated,
5143
- props: e.members.map(ka).filter(R),
5144
- methods: e.members.map(Ia).filter(R),
5145
- events: e.events?.map(xa) ?? [],
5144
+ props: e.members.map(xa).filter(R),
5145
+ methods: e.members.map(Aa).filter(R),
5146
+ events: e.events?.map(La) ?? [],
5146
5147
  styles: e.cssProperties?.map(({ name: s, description: n, deprecated: r }) => ({
5147
5148
  name: s,
5148
5149
  annotation: "prop",
@@ -5167,7 +5168,7 @@ function Ve(e, t = "") {
5167
5168
  }
5168
5169
  return t;
5169
5170
  }
5170
- function ka(e) {
5171
+ function xa(e) {
5171
5172
  if (e.kind !== "field")
5172
5173
  return;
5173
5174
  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;
@@ -5177,7 +5178,7 @@ function ka(e) {
5177
5178
  complexType: t.type === void 0 ? void 0 : {
5178
5179
  original: t.type.text,
5179
5180
  resolved: t.type.text,
5180
- references: vt(t.type.references)
5181
+ references: bt(t.type.references)
5181
5182
  },
5182
5183
  mutable: !0,
5183
5184
  attr: "attribute" in t && typeof t.attribute == "string" ? t.attribute : void 0,
@@ -5196,19 +5197,19 @@ function ka(e) {
5196
5197
  required: n
5197
5198
  };
5198
5199
  }
5199
- const vt = (e) => Object.fromEntries(
5200
+ const bt = (e) => Object.fromEntries(
5200
5201
  e?.map(
5201
5202
  (t) => [
5202
5203
  t.name,
5203
5204
  {
5204
- location: t.package === js ? "global" : t.package === void 0 ? "local" : "import",
5205
+ location: t.package === Ds ? "global" : t.package === void 0 ? "local" : "import",
5205
5206
  path: typeof t.module == "string" && typeof t.package == "string" ? u.join(t.package, t.module) : t.module ?? t.package,
5206
5207
  id: "notImplemented"
5207
5208
  }
5208
5209
  ]
5209
5210
  ) ?? []
5210
5211
  );
5211
- function Ia(e) {
5212
+ function Aa(e) {
5212
5213
  if (e.kind !== "method")
5213
5214
  return;
5214
5215
  const t = e, i = e.inheritedFrom ? [{ name: "inheritedFrom", text: JSON.stringify(e.inheritedFrom) }] : [], s = t.parameters?.map(({ name: n, type: r, description: a }) => ({
@@ -5227,7 +5228,7 @@ function Ia(e) {
5227
5228
  signature: t.signature ?? "()=>unknown",
5228
5229
  parameters: s,
5229
5230
  return: t.return?.type?.text ?? "void",
5230
- references: vt([
5231
+ references: bt([
5231
5232
  ...t.return?.type?.references ?? [],
5232
5233
  ...t.parameters?.flatMap((n) => n.type.references ?? []) ?? []
5233
5234
  ])
@@ -5239,7 +5240,7 @@ function Ia(e) {
5239
5240
  deprecation: typeof t.deprecated == "boolean" ? t.deprecated ? "" : void 0 : t.deprecated
5240
5241
  };
5241
5242
  }
5242
- function xa(e) {
5243
+ function La(e) {
5243
5244
  const t = e.inheritedFrom ? [{ name: "inheritedFrom", text: JSON.stringify(e.inheritedFrom) }] : [];
5244
5245
  return {
5245
5246
  event: e.name,
@@ -5248,7 +5249,7 @@ function xa(e) {
5248
5249
  complexType: {
5249
5250
  original: e.type.text,
5250
5251
  resolved: e.type.text,
5251
- references: vt(e.type.references)
5252
+ references: bt(e.type.references)
5252
5253
  },
5253
5254
  cancelable: e.cancelable ?? !0,
5254
5255
  composed: e.composed ?? !0,
@@ -5264,8 +5265,8 @@ const ye = {
5264
5265
  cssParts: "CSS Parts",
5265
5266
  methods: "Methods"
5266
5267
  };
5267
- function ys(e) {
5268
- const t = Aa(e.slots), i = La(e.events), s = Na(e.cssProperties), n = ja(e.cssParts), r = Fa(e.members), a = e.description?.trim();
5268
+ function ws(e) {
5269
+ const t = Na(e.slots), i = ja(e.events), s = Fa(e.cssProperties), n = Ra(e.cssParts), r = Da(e.members), a = e.description?.trim();
5269
5270
  return [...a ? [`${a}
5270
5271
  --`] : [], i, r, t, s, n].filter(Boolean).join(`
5271
5272
 
@@ -5273,28 +5274,28 @@ function ys(e) {
5273
5274
  }
5274
5275
  const ve = (e, t) => t === void 0 || t.length === 0 ? "" : `### ${e}
5275
5276
  ${t.join(`
5276
- `)}`, Aa = (e) => ve(
5277
+ `)}`, Na = (e) => ve(
5277
5278
  ye.slots,
5278
5279
  e?.filter((t) => t.deprecated === void 0).map(
5279
5280
  (t) => `- ${t.name ? `**${t.name}**` : "_default_"}${t.description === void 0 ? "" : ` - ${t.description}`}`
5280
5281
  )
5281
- ), La = (e) => ve(
5282
+ ), ja = (e) => ve(
5282
5283
  ye.events,
5283
5284
  e?.filter((t) => t.deprecated === void 0).map((t) => `- **${t.name}**${t.description === void 0 ? "" : ` - ${t.description}`}`)
5284
- ), Na = (e = []) => ve(
5285
+ ), Fa = (e = []) => ve(
5285
5286
  ye.cssProperties,
5286
5287
  e?.filter((t) => t.deprecated === void 0).map(
5287
5288
  (t) => `- **${t.name}**${t.description === void 0 ? "" : ` - ${t.description}`} ${t.default ? `_(default: ${t.default})_}` : ""}`
5288
5289
  )
5289
- ), ja = (e) => ve(
5290
+ ), Ra = (e) => ve(
5290
5291
  ye.cssParts,
5291
5292
  e?.filter((t) => t.deprecated === void 0).map((t) => `- **${t.name}**${t.description === void 0 ? "" : ` - ${t.description}`}`)
5292
- ), Fa = (e) => ve(
5293
+ ), Da = (e) => ve(
5293
5294
  ye.methods,
5294
- e.filter(Fs).filter((t) => t.deprecated === void 0).map(
5295
+ e.filter(Os).filter((t) => t.deprecated === void 0).map(
5295
5296
  (t) => `- \`${t.name}${t.signature}\`${t.description ? ` - ${t.description}` : ""}`
5296
5297
  )
5297
- ), vs = (e) => {
5298
+ ), Ss = (e) => {
5298
5299
  const t = [], i = /* @__PURE__ */ new Set();
5299
5300
  for (let s = 0; s < e.length; ++s) {
5300
5301
  const n = e[s].cssProperties;
@@ -5308,13 +5309,13 @@ ${t.join(`
5308
5309
  }
5309
5310
  }
5310
5311
  return t;
5311
- }, bs = (e) => e.flatMap(
5312
+ }, Cs = (e) => e.flatMap(
5312
5313
  (t) => t.cssParts?.filter((i) => i.deprecated === void 0).map((i) => ({
5313
5314
  name: `::part(${i.name})`,
5314
5315
  description: t.tagName + (i.description === void 0 ? "" : `: ${i.description}`)
5315
5316
  })) ?? []
5316
5317
  );
5317
- function Ra(e) {
5318
+ function Oa(e) {
5318
5319
  if (e.attributes === void 0)
5319
5320
  return [];
5320
5321
  const t = [];
@@ -5325,7 +5326,7 @@ function Ra(e) {
5325
5326
  description: s.description || void 0,
5326
5327
  default: s.default,
5327
5328
  value: {
5328
- type: Da(
5329
+ type: Ma(
5329
5330
  s.type.values?.map(
5330
5331
  (n) => n.type === "string" && n.value !== void 0 ? `"${n.value}"` : n.value ?? n.type
5331
5332
  )
@@ -5335,13 +5336,13 @@ function Ra(e) {
5335
5336
  }
5336
5337
  return t;
5337
5338
  }
5338
- const Da = (e) => e?.length === 1 ? e[0] : e;
5339
- function Oa(e, t) {
5340
- const i = Ma(e), s = vs(e), n = bs(e), r = j();
5339
+ const Ma = (e) => e?.length === 1 ? e[0] : e;
5340
+ function Ja(e, t) {
5341
+ const i = Ba(e), s = Ss(e), n = Cs(e), r = j();
5341
5342
  return {
5342
5343
  $schema: "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
5343
5344
  name: r.name,
5344
- version: pt(r) ?? r.version,
5345
+ version: ut(r) ?? r.version,
5345
5346
  "description-markup": "markdown",
5346
5347
  "default-icon": t.defaultIcon,
5347
5348
  contributions: {
@@ -5355,116 +5356,116 @@ function Oa(e, t) {
5355
5356
  }
5356
5357
  };
5357
5358
  }
5358
- const Ma = (e) => e.filter((t) => t.deprecated === void 0).map((t) => ({
5359
+ const Ba = (e) => e.filter((t) => t.deprecated === void 0).map((t) => ({
5359
5360
  name: t.tagName,
5360
- description: ys(t),
5361
+ description: ws(t),
5361
5362
  "doc-url": t.demos?.[0]?.url,
5362
- attributes: Ra(t),
5363
+ attributes: Oa(t),
5363
5364
  slots: t.slots?.map((i) => ({
5364
5365
  name: i.name,
5365
5366
  description: i.description
5366
5367
  })),
5367
5368
  // REFACTOR: this was deprecated in the spec: https://github.com/JetBrains/web-types/blob/11e46e47cb65edc1930dc1fae854005ad45ac08f/schema/web-types.json#L866
5368
- events: Zt(t),
5369
+ events: ti(t),
5369
5370
  js: {
5370
- properties: Ja(t),
5371
- events: Zt(t)
5371
+ properties: Ka(t),
5372
+ events: ti(t)
5372
5373
  }
5373
- })), Ja = (e) => e.members.filter(Rs).filter((t) => t.deprecated === void 0).map((t) => ({
5374
+ })), Ka = (e) => e.members.filter(Ms).filter((t) => t.deprecated === void 0).map((t) => ({
5374
5375
  name: t.name,
5375
5376
  description: t.description,
5376
5377
  type: t.type?.text
5377
- })) ?? [], Zt = (e) => e.events?.filter((t) => t.deprecated === void 0).map((t) => ({
5378
+ })) ?? [], ti = (e) => e.events?.filter((t) => t.deprecated === void 0).map((t) => ({
5378
5379
  name: t.name,
5379
5380
  type: t.type?.text,
5380
5381
  description: t.description
5381
- })) ?? [], Ba = (e) => e.filter((t) => t.deprecated === void 0).map((t) => ({
5382
+ })) ?? [], _a = (e) => e.filter((t) => t.deprecated === void 0).map((t) => ({
5382
5383
  name: t.tagName,
5383
- description: ys(t),
5384
- attributes: _a(t),
5384
+ description: ws(t),
5385
+ attributes: Wa(t),
5385
5386
  references: t.demos?.map((i) => ({ name: i.description, url: i.url })) ?? []
5386
- })), _a = (e) => e.attributes?.filter((t) => t.deprecated === void 0).map((t) => ({
5387
+ })), Wa = (e) => e.attributes?.filter((t) => t.deprecated === void 0).map((t) => ({
5387
5388
  name: t.name,
5388
5389
  description: t.description || void 0,
5389
- values: Ka(t)
5390
- })) ?? [], Ka = (e) => e.type.values?.map((t) => t.value ?? "").filter(Boolean).map((t) => ({ name: t })) ?? [], Wa = (e) => ({
5390
+ values: Ua(t)
5391
+ })) ?? [], Ua = (e) => e.type.values?.map((t) => t.value ?? "").filter(Boolean).map((t) => ({ name: t })) ?? [], za = (e) => ({
5391
5392
  $schema: "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
5392
5393
  version: 1.1,
5393
- tags: Ba(e)
5394
- }), Ua = (e) => ({
5394
+ tags: _a(e)
5395
+ }), Ha = (e) => ({
5395
5396
  $schema: "https://raw.githubusercontent.com/microsoft/vscode-css-languageservice/main/docs/customData.schema.json",
5396
5397
  version: 1.1,
5397
- properties: vs(e),
5398
- pseudoElements: bs(e)
5399
- }), za = "@arcgis/lumina:generateDocs";
5400
- function Ha(e) {
5398
+ properties: Ss(e),
5399
+ pseudoElements: Cs(e)
5400
+ }), qa = "@arcgis/lumina:generateDocs";
5401
+ function Va(e) {
5401
5402
  return e._documentationFileNames.stencilLikeDocsJson !== void 0 && e.provideAssets([
5402
5403
  {
5403
5404
  type: "dynamic",
5404
- source: () => JSON.stringify(Ta(e), null, rt(e)),
5405
+ source: () => JSON.stringify(Pa(e), null, nt(e)),
5405
5406
  destination: u.join("../..", e._documentationFileNames.stencilLikeDocsJson)
5406
5407
  }
5407
5408
  ]), {
5408
- name: za,
5409
+ name: qa,
5409
5410
  async writeBundle() {
5410
5411
  if (e.isInStorybook)
5411
5412
  return;
5412
- const t = rt(e), { jetBrains: i } = e.options.documentation ?? {}, s = e._documentationFileNames, n = s.vsCodeHtml === void 0 ? void 0 : u.join(e.dir.dist, s.vsCodeHtml), r = s.vsCodeCss === void 0 ? void 0 : u.join(e.dir.dist, s.vsCodeCss), a = s.webTypes === void 0 ? void 0 : u.join(e.dir.dist, s.webTypes), c = [n, r, a].filter(R);
5413
+ const t = nt(e), { jetBrains: i } = e.options.documentation ?? {}, s = e._documentationFileNames, n = s.vsCodeHtml === void 0 ? void 0 : u.join(e.dir.dist, s.vsCodeHtml), r = s.vsCodeCss === void 0 ? void 0 : u.join(e.dir.dist, s.vsCodeCss), a = s.webTypes === void 0 ? void 0 : u.join(e.dir.dist, s.webTypes), c = [n, r, a].filter(R);
5413
5414
  if (c.length === 0)
5414
5415
  return;
5415
- await Mi(c);
5416
+ await Bi(c);
5416
5417
  const d = [];
5417
5418
  if (n !== void 0) {
5418
- const l = JSON.stringify(Wa(e.apiJsonComponents), null, t);
5419
- d.push(K(n, l));
5419
+ const l = JSON.stringify(za(e.apiJsonComponents), null, t);
5420
+ d.push(_(n, l));
5420
5421
  }
5421
5422
  if (r !== void 0) {
5422
- const l = JSON.stringify(Ua(e.apiJsonComponents), null, t);
5423
- d.push(K(r, l));
5423
+ const l = JSON.stringify(Ha(e.apiJsonComponents), null, t);
5424
+ d.push(_(r, l));
5424
5425
  }
5425
5426
  if (a !== void 0) {
5426
- const l = Oa(e.apiJsonComponents, typeof i == "object" ? i : {});
5427
- d.push(K(a, JSON.stringify(l, null, t)));
5427
+ const l = Ja(e.apiJsonComponents, typeof i == "object" ? i : {});
5428
+ d.push(_(a, JSON.stringify(l, null, t)));
5428
5429
  }
5429
5430
  await Promise.all(d);
5430
5431
  }
5431
5432
  };
5432
5433
  }
5433
- function qa(e) {
5434
+ function Ga(e) {
5434
5435
  return {
5435
5436
  name: "@arcgis/lumina:buildWrappers",
5436
5437
  apply: () => e.viteCommand === "build" && !!e.options.build?.wrappers?.length,
5437
5438
  async writeBundle() {
5438
5439
  e.isInStorybook || await Promise.all(
5439
5440
  e.options.build?.wrappers?.map(async (t) => {
5440
- t.type === "react18" && await Xa(e, t);
5441
+ t.type === "react18" && await Qa(e, t);
5441
5442
  }) ?? []
5442
5443
  );
5443
5444
  }
5444
5445
  };
5445
5446
  }
5446
- const Va = "react", ei = "@lit/react", Ga = `
5447
- import React from "${Va}";
5448
- import { createComponent } from "${ei}";
5449
- import type { EventName } from "${ei}";
5447
+ const Xa = "react", ii = "@lit/react", Ya = `
5448
+ import React from "${Xa}";
5449
+ import { createComponent } from "${ii}";
5450
+ import type { EventName } from "${ii}";
5450
5451
  import { makeReactWrapperFactory, getReactWrapperOptions } from "@arcgis/lumina";
5451
5452
 
5452
5453
  const createWrapper = /*@__PURE__*/ makeReactWrapperFactory(React, createComponent) as typeof createComponent;
5453
5454
  `;
5454
- async function Xa(e, t) {
5455
+ async function Qa(e, t) {
5455
5456
  const { name: i } = j(), s = [];
5456
5457
  for (const a of e.apiJson.modules)
5457
5458
  for (const c of a.declarations)
5458
- Ya(c) && s.push(Qa(c));
5459
- const n = [`/// <reference types="${i}" preserve="true" />`, Ga, ...s].join(""), r = u.resolve(t.proxiesFile);
5460
- await X(u.dirname(r), { recursive: !0 }), await K(r, n);
5459
+ Za(c) && s.push(ec(c));
5460
+ const n = [`/// <reference types="${i}" preserve="true" />`, Ya, ...s].join(""), r = u.resolve(t.proxiesFile);
5461
+ await X(u.dirname(r), { recursive: !0 }), await _(r, n);
5461
5462
  }
5462
- function Ya(e) {
5463
+ function Za(e) {
5463
5464
  return e.customElement === !0 && e.abstract !== !0;
5464
5465
  }
5465
- function Qa(e) {
5466
+ function ec(e) {
5466
5467
  const t = e.events?.map(
5467
- (i) => ` ${Vs(`on${Cs(i.name)}`)}: "${i.name}" as EventName<HTML${e.pascalCaseName}Element["${i.name}"]>,`
5468
+ (i) => ` ${Ys(`on${$s(i.name)}`)}: "${i.name}" as EventName<HTML${e.pascalCaseName}Element["${i.name}"]>,`
5468
5469
  ).join(`
5469
5470
  `);
5470
5471
  return `
@@ -5479,42 +5480,42 @@ ${t}
5479
5480
  );
5480
5481
  `;
5481
5482
  }
5482
- function kc(e = {}) {
5483
+ function xc(e = {}) {
5483
5484
  const t = new $(e), s = [
5484
5485
  t._plugin,
5485
- Hn(t),
5486
- Qn(t),
5487
- io(t),
5488
- Sa(t),
5489
- On(t),
5490
- Ha(t),
5491
- va(t),
5492
- yo(t),
5493
- hr(t),
5494
- Mn(t),
5486
+ Vn(t),
5487
+ eo(t),
5488
+ ro(t),
5489
+ Ea(t),
5490
+ Jn(t),
5491
+ Va(t),
5495
5492
  wa(t),
5496
5493
  bo(t),
5497
- ao(t),
5498
- Xs(t),
5499
- mn(t),
5500
- qa(t),
5501
- Jn(t)
5494
+ br(t),
5495
+ Bn(t),
5496
+ Ca(t),
5497
+ So(t),
5498
+ lo(t),
5499
+ Zs(t),
5500
+ hn(t),
5501
+ Ga(t),
5502
+ Kn(t)
5502
5503
  ].filter(R);
5503
5504
  return s.context = t, s;
5504
5505
  }
5505
- const Ic = {
5506
- initializeComponentDependencies: Pi,
5507
- updateLuminaTs: Qi,
5506
+ const Ac = {
5507
+ initializeComponentDependencies: Ii,
5508
+ updateLuminaTs: ts,
5508
5509
  propertyToAttributeMappings: W,
5509
- nativeEvents: fi,
5510
- svgElements: at,
5511
- mathMlElements: ct,
5512
- alwaysAttributes: pi,
5513
- nativeAlwaysAttributes: ui,
5510
+ nativeEvents: hi,
5511
+ svgElements: ct,
5512
+ mathMlElements: lt,
5513
+ alwaysAttributes: mi,
5514
+ nativeAlwaysAttributes: fi,
5514
5515
  htmlAlwaysAttributes: Qe
5515
5516
  };
5516
5517
  export {
5517
- Ic as exportsForCodemod,
5518
+ Ac as exportsForCodemod,
5518
5519
  De as inferCdnUrl,
5519
- kc as useLumina
5520
+ xc as useLumina
5520
5521
  };