@arcgis/lumina-compiler 4.34.0-next.28 → 4.34.0-next.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
- import { nodeExternals as ms } from "rollup-plugin-node-externals";
2
- import { stringToStartsWithGlob as Kt, path as u, toSystemPathSeparators as Y, retrievePackageJson as R, fetchPackageLocation as _e, asyncRetrievePackageJson as He, existsAsync as U, findPath as fs, toPosixPathSeparators as Le, isPosix as Oi, getCwd as Ji } from "@arcgis/components-build-utils";
3
- import ys from "vite-plugin-dts";
1
+ import { nodeExternals as ds } from "rollup-plugin-node-externals";
2
+ import { stringToStartsWithGlob as Jt, path as u, toSystemPathSeparators as Y, retrievePackageJson as R, fetchPackageLocation as _e, asyncRetrievePackageJson as He, existsAsync as U, findPath as ps, toPosixPathSeparators as Le, isPosix as Ri, getCwd as Mi } from "@arcgis/components-build-utils";
3
+ import us from "vite-plugin-dts";
4
4
  import o from "typescript";
5
5
  import { f as w, l as C } from "./logger-KpGU2b3R.js";
6
- import { getMemberName as X, apiMemberToSynthesizedComments as V, globalPackageIdentifier as Ki, setApiDocFromJsDoc as ue, ApiExtractor as gs, hasIgnoredModifier as hs, symbolToDocs as Bt, setDefaultFromInitializer as Wt, multipleJsDocTags as vs, findDecorator as _t, isApiMethod as Ss, isApiProperty as bs } from "@arcgis/api-extractor";
7
- import { isNotUndefined as j, mappedFind as ye, camelToKebab as wt, kebabToPascal as ws, uncapitalize as ut, identity as Bi, Deferred as Ts, getPreamble as Es, capitalize as Cs } from "@arcgis/components-utils";
8
- import { readdir as Ue, readFile as J, rm as $s, mkdir as z, cp as Ps, writeFile as F, copyFile as xs } from "node:fs/promises";
9
- import { lazyMetaSubItemJoiner as ks, lazyMetaItemJoiner as et, lazyMetaGroupJoiner as As, propertyFlagAttribute as Ht, propertyFlagReflect as Is, propertyFlagBoolean as Ls, propertyFlagNumber as Fs, propertyFlagState as Ns, propertyFlagReadOnly as Ds, propertyFlagNoAccessor as js } from "@arcgis/lumina/config";
10
- import { build as Rs } from "esbuild";
11
- import { glob as Ms } from "glob";
12
- import Os from "mime-types";
13
- import { writeFileSync as Wi } from "node:fs";
14
- import Js from "chalk";
15
- function Ks(e) {
6
+ import { getMemberName as X, apiMemberToSynthesizedComments as V, globalPackageIdentifier as Oi, setApiDocFromJsDoc as ue, ApiExtractor as ms, hasIgnoredModifier as fs, symbolToDocs as Kt, setDefaultFromInitializer as Wt, multipleJsDocTags as ys, findDecorator as Bt, isApiMethod as gs, isApiProperty as hs } from "@arcgis/api-extractor";
7
+ import { isNotUndefined as j, mappedFind as ye, camelToKebab as bt, kebabToPascal as vs, uncapitalize as pt, identity as Ji, Deferred as Ss, getPreamble as bs, capitalize as ws } from "@arcgis/components-utils";
8
+ import { readdir as Ue, readFile as J, rm as Ts, mkdir as z, cp as Es, writeFile as F, copyFile as Cs } from "node:fs/promises";
9
+ import { lazyMetaSubItemJoiner as $s, lazyMetaItemJoiner as Ye, lazyMetaGroupJoiner as Ps, propertyFlagAttribute as _t, propertyFlagReflect as xs, propertyFlagBoolean as ks, propertyFlagNumber as As, propertyFlagState as Is, propertyFlagReadOnly as Ls, propertyFlagNoAccessor as Fs } from "@arcgis/lumina/config";
10
+ import { build as Ns } from "esbuild";
11
+ import { glob as Ds } from "glob";
12
+ import js from "mime-types";
13
+ import { writeFileSync as Ki } from "node:fs";
14
+ import Rs from "chalk";
15
+ function Ms(e) {
16
16
  const { externalize: t = [], bundleIn: i = [], ...n } = e.options?.build?.dependencies ?? {}, r = {
17
- ...ms({
17
+ ...ds({
18
18
  ...n,
19
19
  /*
20
20
  * This property name is a bit confusing. "include" means "externalize these"
@@ -26,9 +26,9 @@ function Ks(e) {
26
26
  // Externalize all @lit/ and @lit-labs/ packages
27
27
  /^@lit[-/]/u,
28
28
  /^lit$/u,
29
- ...Array.isArray(t) ? t.map(Kt) : []
29
+ ...Array.isArray(t) ? t.map(Jt) : []
30
30
  ],
31
- exclude: Array.isArray(i) ? i.map(Kt) : []
31
+ exclude: Array.isArray(i) ? i.map(Jt) : []
32
32
  }),
33
33
  configResolved() {
34
34
  e.isInStorybook && (r.resolveId = void 0);
@@ -36,8 +36,8 @@ function Ks(e) {
36
36
  };
37
37
  return r;
38
38
  }
39
- const Tt = "customElement.js", _i = "customElement.d.ts", Bs = "playwright";
40
- function Ws(e, t, i) {
39
+ const wt = "customElement.js", Wi = "customElement.d.ts", Os = "playwright";
40
+ function Js(e, t, i) {
41
41
  const s = i.split(u.sep).slice(2);
42
42
  let r = t._componentPathMapping;
43
43
  return s.forEach((a, c) => {
@@ -47,10 +47,10 @@ function Ws(e, t, i) {
47
47
  function ge(e, t, i) {
48
48
  if (!e.startsWith(t))
49
49
  return e;
50
- const n = e.slice(t.length), s = _s(n, i);
50
+ const n = e.slice(t.length), s = Ks(n, i);
51
51
  return `${t}${s}`;
52
52
  }
53
- function _s(e, t) {
53
+ function Ks(e, t) {
54
54
  const i = e.split(u.sep);
55
55
  i.push(".");
56
56
  let n = t._componentPathMapping, s = 0;
@@ -62,36 +62,36 @@ function _s(e, t) {
62
62
  n = n[r], s += 1;
63
63
  return e;
64
64
  }
65
- const Hs = ({ filePath: e, content: t }, i) => {
65
+ const Ws = ({ filePath: e, content: t }, i) => {
66
66
  const n = e.startsWith(i.dir.distComponents) ? ge(
67
- Hi(i.dir.distComponents, e),
67
+ Bi(i.dir.distComponents, e),
68
68
  i.dir.distComponents,
69
69
  i
70
- ) : e, s = u.dirname(e), r = n.endsWith(_i), a = Ui(
70
+ ) : e, s = u.dirname(e), r = n.endsWith(Wi), a = _i(
71
71
  t,
72
72
  i,
73
73
  e === n ? s : u.dirname(n),
74
74
  s
75
- ), c = r ? Gs(a) : a;
75
+ ), c = r ? Us(a) : a;
76
76
  return {
77
77
  filePath: n,
78
78
  content: c
79
79
  };
80
80
  };
81
- function Hi(e, t, i = ".d.ts") {
81
+ function Bi(e, t, i = ".d.ts") {
82
82
  if (!t.startsWith(e))
83
83
  return t;
84
84
  const s = (i === "" ? t : t.slice(0, -i.length)).split(u.sep);
85
- return s.at(Us) !== s.at(zs) ? t : u.join(
85
+ return s.at(Bs) !== s.at(_s) ? t : u.join(
86
86
  s.slice(0, -1).join(u.sep),
87
- i === "" ? Tt : _i
87
+ i === "" ? wt : Wi
88
88
  );
89
89
  }
90
- const Us = -1, zs = -2, qs = /["']\.\.?\/[^'"]+/gu, Ui = (e, t, i, n) => e.replaceAll(qs, (s) => {
90
+ const Bs = -1, _s = -2, Hs = /["']\.\.?\/[^'"]+/gu, _i = (e, t, i, n) => e.replaceAll(Hs, (s) => {
91
91
  const r = s.slice(1);
92
92
  if (!r.startsWith("./") && !r.startsWith("../"))
93
93
  return s;
94
- const a = u.join(n, r), c = !r.endsWith(".js") && !r.split("/").at(-1).includes(".") ? Hi(t.dir.distComponents, a, "") : a, l = ge(c, t.dir.distComponents, t);
94
+ const a = u.join(n, r), c = !r.endsWith(".js") && !r.split("/").at(-1).includes(".") ? Bi(t.dir.distComponents, a, "") : a, l = ge(c, t.dir.distComponents, t);
95
95
  if (i === n && a === l)
96
96
  return s;
97
97
  const d = ee(i, l);
@@ -100,15 +100,15 @@ const Us = -1, zs = -2, qs = /["']\.\.?\/[^'"]+/gu, Ui = (e, t, i, n) => e.repla
100
100
  const i = u.relative(e, t);
101
101
  return i.startsWith(".") ? i : `.${u.sep}${i}`;
102
102
  };
103
- function Gs(e) {
103
+ function Us(e) {
104
104
  return `/// <reference types="../../index.d.ts" />
105
105
  ${e}`;
106
106
  }
107
- const Ut = "customElement", Vs = (e, t) => {
107
+ const Ht = "customElement", zs = (e, t) => {
108
108
  const { filePath: i, content: n } = e;
109
109
  if (!i.startsWith(t.dir.distComponents))
110
110
  return e;
111
- const s = qi(n);
111
+ const s = Ui(n);
112
112
  if (s === void 0)
113
113
  return e;
114
114
  {
@@ -118,12 +118,12 @@ const Ut = "customElement", Vs = (e, t) => {
118
118
  content: r
119
119
  };
120
120
  }
121
- }, Xs = (e, t) => {
121
+ }, qs = (e, t) => {
122
122
  const i = [];
123
123
  if (t.apiModule?.declarations.forEach((r) => {
124
124
  "customElement" in r && i.push(
125
125
  o.factory.createExpressionStatement(
126
- o.factory.createCallExpression(o.factory.createIdentifier(Ut), void 0, [
126
+ o.factory.createCallExpression(o.factory.createIdentifier(Ht), void 0, [
127
127
  o.factory.createStringLiteral(r.tagName),
128
128
  o.factory.createIdentifier(r.name)
129
129
  ])
@@ -141,18 +141,18 @@ const Ut = "customElement", Vs = (e, t) => {
141
141
  !1,
142
142
  void 0,
143
143
  o.factory.createNamedImports([
144
- o.factory.createImportSpecifier(!1, void 0, o.factory.createIdentifier(Ut))
144
+ o.factory.createImportSpecifier(!1, void 0, o.factory.createIdentifier(Ht))
145
145
  ])
146
146
  ),
147
147
  o.factory.createStringLiteral(n)
148
148
  ), ...e.statements, ...i];
149
149
  };
150
- function zi(e) {
151
- const t = qi(e);
150
+ function Hi(e) {
151
+ const t = Ui(e);
152
152
  return t === void 0 ? void 0 : t.split(`
153
153
  `).filter((n) => n.includes(":")).map((n) => n.replace(";", "").replaceAll('"', "").replaceAll("'", "").split(":")).map(([n, s]) => [n.trim(), s.trim()]).filter(([n]) => !n.startsWith("/") && !n.startsWith("*"));
154
154
  }
155
- function qi(e) {
155
+ function Ui(e) {
156
156
  const t = e.indexOf("declare global {");
157
157
  if (t === -1)
158
158
  return;
@@ -160,39 +160,39 @@ function qi(e) {
160
160
  }`, t) + 2;
161
161
  return e.slice(t, i);
162
162
  }
163
- const Qs = (e) => (t, i) => (
163
+ const Gs = (e) => (t, i) => (
164
164
  /*
165
165
  * `declarationTextTransformers` arrays can be mutated between plugin
166
166
  * initialization and beforeWriteFile() call, so do not read the value
167
167
  * of declarationTextTransformers outside of beforeWriteFile
168
168
  */
169
169
  [
170
+ Vs,
171
+ Qs,
170
172
  Zs,
173
+ Xs,
174
+ Ws,
175
+ Ys,
171
176
  er,
177
+ zs,
172
178
  tr,
173
- Ys,
174
- Hs,
175
- ir,
176
- nr,
177
- Vs,
178
- sr,
179
179
  ...e.options.types?.declarationTextTransformers ?? [],
180
180
  ...e._declarationTextTransformers
181
181
  ].reduce(
182
182
  (n, s) => n === !1 ? !1 : s(n, e),
183
183
  { filePath: t, content: i }
184
184
  )
185
- ), Zs = (e, t) => t.isInStorybook ? !1 : e, Ys = (e, t) => (
185
+ ), Vs = (e, t) => t.isInStorybook ? !1 : e, Xs = (e, t) => (
186
186
  // Short-circuit quickly if file doesn't look like the one we want to exclude
187
- e.filePath.endsWith(zt) && e.filePath === u.join(t.dir.dist, zt) ? !1 : e
188
- ), zt = "lumina.d.ts", er = (e, t) => {
187
+ e.filePath.endsWith(Ut) && e.filePath === u.join(t.dir.dist, Ut) ? !1 : e
188
+ ), Ut = "lumina.d.ts", Qs = (e, t) => {
189
189
  const i = t.dir.dist, n = `${i}src/`;
190
190
  return e.filePath.startsWith(n) ? { ...e, filePath: `${i}${e.filePath.slice(n.length)}` } : !1;
191
- }, Et = (e) => e.includes("__test") || e.includes(".e2e.") || e.includes(".spec.") || e.includes(".test."), tr = (e) => Et(e.filePath) || e.filePath.includes(".stories.") || e.filePath.includes(".story.") ? !1 : e, ir = (e) => e.content.includes("__esri.") ? {
191
+ }, Tt = (e) => e.includes("__test") || e.includes(".e2e.") || e.includes(".spec.") || e.includes(".test."), Zs = (e) => Tt(e.filePath) || e.filePath.includes(".stories.") || e.filePath.includes(".story.") ? !1 : e, Ys = (e) => e.content.includes("__esri.") ? {
192
192
  filePath: e.filePath,
193
193
  content: `/// <reference types="@arcgis/core/interfaces.d.ts" />
194
194
  ${e.content}`
195
- } : e, nr = (e, t) => {
195
+ } : e, er = (e, t) => {
196
196
  t._htmlElementReferencesReplacer ??= {
197
197
  regex: new RegExp(
198
198
  `(${t.apiJsonComponents.map((n) => n.name).join("|")})\\[['"\`]el['"\`]\\]`,
@@ -207,8 +207,8 @@ ${e.content}`
207
207
  filePath: e.filePath,
208
208
  content: e.content.replace(i.regex, (n, s) => i.replacements[s])
209
209
  };
210
- }, sr = (e) => {
211
- const t = e.content.match(rr)?.[1] ?? e.content.match(or)?.[1];
210
+ }, tr = (e) => {
211
+ const t = e.content.match(ir)?.[1] ?? e.content.match(nr)?.[1];
212
212
  if (t !== void 0)
213
213
  throw Error(
214
214
  w(
@@ -223,19 +223,19 @@ ${e.content}
223
223
  )
224
224
  );
225
225
  return e;
226
- }, rr = /^import (?:type \* as )?[^"'\n]+["'](\.[^\n]*?\.json)["'];$/mu, or = /(?<![.\w\d-])import\(['"]([\w@\-/\\.]+)\.json['"]\)/u;
227
- function ar(e, t) {
226
+ }, ir = /^import (?:type \* as )?[^"'\n]+["'](\.[^\n]*?\.json)["'];$/mu, nr = /(?<![.\w\d-])import\(['"]([\w@\-/\\.]+)\.json['"]\)/u;
227
+ function sr(e, t) {
228
228
  const i = X(t.name);
229
229
  return e.members.find((n) => n.name === i);
230
230
  }
231
- function cr(e, t, i) {
231
+ function rr(e, t, i) {
232
232
  const n = u.relative(t, e);
233
233
  return i.modules.find((s) => s.path === n);
234
234
  }
235
- function Gi(e, t, i, n) {
235
+ function zi(e, t, i, n) {
236
236
  const s = {
237
237
  compiler: e,
238
- apiModule: e.isInPuppeteerTestBackEnd ? void 0 : cr(i.fileName, e.dir.root, e.privateApiJson),
238
+ apiModule: e.isInPuppeteerTestBackEnd ? void 0 : rr(i.fileName, e.dir.root, e.privateApiJson),
239
239
  transformation: t
240
240
  }, r = i.statements;
241
241
  let a = i.statements;
@@ -246,9 +246,9 @@ function Gi(e, t, i, n) {
246
246
  a = c(i, s);
247
247
  }), Object.defineProperty(i, "statements", {
248
248
  value: r
249
- }), lr(i, a);
249
+ }), or(i, a);
250
250
  }
251
- const lr = (e, t) => o.factory.updateSourceFile(
251
+ const or = (e, t) => o.factory.updateSourceFile(
252
252
  e,
253
253
  t,
254
254
  /*
@@ -262,11 +262,11 @@ const lr = (e, t) => o.factory.updateSourceFile(
262
262
  e.typeReferenceDirectives,
263
263
  e.hasNoDefaultLib,
264
264
  e.libReferenceDirectives
265
- ), dr = (e) => `${qt}${" ".repeat(e.length - qt.length - Gt.length)}${Gt}`, qt = "/*", Gt = "*/", pr = (e) => e.statements.map(yr), ur = "@arcgis/lumina", mr = "LitElement", fr = "PublicLitElement", Vi = "TargetedEvent";
266
- function yr(e) {
267
- if (o.isImportDeclaration(e) && o.isStringLiteral(e.moduleSpecifier) && e.moduleSpecifier.text === ur && e.importClause?.namedBindings && o.isNamedImports(e.importClause.namedBindings)) {
265
+ ), ar = (e) => `${zt}${" ".repeat(e.length - zt.length - qt.length)}${qt}`, zt = "/*", qt = "*/", cr = (e) => e.statements.map(ur), lr = "@arcgis/lumina", dr = "LitElement", pr = "PublicLitElement", qi = "TargetedEvent";
266
+ function ur(e) {
267
+ if (o.isImportDeclaration(e) && o.isStringLiteral(e.moduleSpecifier) && e.moduleSpecifier.text === lr && e.importClause?.namedBindings && o.isNamedImports(e.importClause.namedBindings)) {
268
268
  const t = e.importClause.namedBindings.elements.findIndex(
269
- (n) => (n.propertyName ?? n.name).text === mr
269
+ (n) => (n.propertyName ?? n.name).text === dr
270
270
  );
271
271
  if (t === -1)
272
272
  return e;
@@ -283,14 +283,14 @@ function yr(e) {
283
283
  o.factory.updateImportSpecifier(
284
284
  i,
285
285
  i.isTypeOnly,
286
- o.factory.createIdentifier(fr),
286
+ o.factory.createIdentifier(pr),
287
287
  i.name
288
288
  ),
289
289
  ...e.importClause.namedBindings.elements.slice(t + 1),
290
290
  o.factory.createImportSpecifier(
291
291
  !e.importClause.isTypeOnly,
292
292
  void 0,
293
- o.factory.createIdentifier(Vi)
293
+ o.factory.createIdentifier(qi)
294
294
  )
295
295
  ])
296
296
  ),
@@ -300,15 +300,15 @@ function yr(e) {
300
300
  } else
301
301
  return e;
302
302
  }
303
- const Xi = "_setterTypes";
304
- function gr(e, t, i) {
303
+ const Gi = "_setterTypes";
304
+ function mr(e, t, i) {
305
305
  return o.factory.createPropertyDeclaration(
306
306
  [o.factory.createModifier(o.SyntaxKind.ReadonlyKeyword)],
307
- o.factory.createIdentifier(Xi),
307
+ o.factory.createIdentifier(Gi),
308
308
  void 0,
309
309
  o.factory.createTypeLiteralNode(
310
310
  e.map((n) => {
311
- const [s, r] = hr(n.name, n.type, i._typeScriptPrinter, t);
311
+ const [s, r] = fr(n.name, n.type, i._typeScriptPrinter, t);
312
312
  return o.factory.createPropertySignature(
313
313
  void 0,
314
314
  s,
@@ -320,7 +320,7 @@ function gr(e, t, i) {
320
320
  void 0
321
321
  );
322
322
  }
323
- function hr(e, t, i, n) {
323
+ function fr(e, t, i, n) {
324
324
  const s = i.printNode(o.EmitHint.Unspecified, e, n), r = i.printNode(o.EmitHint.Unspecified, t, n), a = `declare class A { ${s}: ${r} }`, d = o.createSourceFile(
325
325
  "a.d.ts",
326
326
  a,
@@ -330,8 +330,8 @@ function hr(e, t, i, n) {
330
330
  ).statements[0].members[0];
331
331
  return [d.name, d.type];
332
332
  }
333
- const vr = (e, t) => t.apiModule === void 0 ? e.statements : e.statements.map((i) => Sr(i, e, t));
334
- function Sr(e, t, i) {
333
+ const yr = (e, t) => t.apiModule === void 0 ? e.statements : e.statements.map((i) => gr(i, e, t));
334
+ function gr(e, t, i) {
335
335
  if (o.isClassDeclaration(e)) {
336
336
  const n = e, s = n.name?.text, r = i.apiModule.declarations.find(
337
337
  (y) => y.name === s && "customElement" in y
@@ -339,15 +339,15 @@ function Sr(e, t, i) {
339
339
  if (r === void 0)
340
340
  return e;
341
341
  const a = [], c = /* @__PURE__ */ new Set(), l = [], d = [];
342
- mt = void 0;
342
+ ut = void 0;
343
343
  for (let y = 0; y < n.members.length; y++) {
344
- const g = n.members[y], h = br(g, r, l, c, t);
344
+ const g = n.members[y], h = hr(g, r, l, c, t);
345
345
  h === void 0 ? a.push(g) : Array.isArray(h) ? d.push(...h) : (o.setEmitFlags(h, o.EmitFlags.NoComments), d.push(h));
346
346
  }
347
347
  c.size > 0 && a.forEach((y) => {
348
348
  const g = X(y.name);
349
- g !== void 0 && c.has(g) && d.push(Tr(y));
350
- }), l.length > 0 && d.push(gr(l, t, i.compiler));
349
+ g !== void 0 && c.has(g) && d.push(Sr(y));
350
+ }), l.length > 0 && d.push(mr(l, t, i.compiler));
351
351
  const p = o.factory.updateClassDeclaration(
352
352
  n,
353
353
  n.modifiers,
@@ -377,26 +377,26 @@ function Sr(e, t, i) {
377
377
  } else
378
378
  return e;
379
379
  }
380
- let mt;
381
- function br(e, t, i, n, s) {
380
+ let ut;
381
+ function hr(e, t, i, n, s) {
382
382
  const r = X(e.name);
383
383
  if (r === void 0)
384
384
  return;
385
385
  const a = t.members.find((l) => l.name === r);
386
386
  if (a?.privacy !== void 0)
387
387
  return;
388
- const c = mt;
389
- if (mt = r, a === void 0) {
388
+ const c = ut;
389
+ if (ut = r, a === void 0) {
390
390
  if (o.isPropertyDeclaration(e)) {
391
391
  const l = t.events?.find((p) => p.name === r);
392
392
  if (l === void 0)
393
393
  return;
394
394
  const d = o.factory.updatePropertyDeclaration(
395
395
  e,
396
- Qt(e.modifiers),
396
+ Xt(e.modifiers),
397
397
  e.name,
398
398
  void 0,
399
- Er(e.type, s),
399
+ br(e.type, s),
400
400
  e.initializer
401
401
  );
402
402
  return o.setSyntheticLeadingComments(d, V(l)), d;
@@ -407,19 +407,19 @@ function br(e, t, i, n, s) {
407
407
  if (a.readonly === !0) {
408
408
  const l = o.factory.updatePropertyDeclaration(
409
409
  e,
410
- Qt(e.modifiers),
410
+ Xt(e.modifiers),
411
411
  e.name,
412
412
  void 0,
413
- Xt(n, e.type, s),
413
+ Vt(n, e.type, s),
414
414
  e.initializer
415
415
  );
416
416
  return o.setSyntheticLeadingComments(l, V(a)), l;
417
417
  } else if (a.getterType !== void 0) {
418
- const l = Vt.exec(a.getterType.text)?.groups;
418
+ const l = Gt.exec(a.getterType.text)?.groups;
419
419
  if (l === void 0)
420
420
  return C.error(
421
421
  "@arcgis/lumina:transformComponentMembers",
422
- `Expected bound accessor getter type to match ${Vt}, but got ${a.getterType.text}`,
422
+ `Expected bound accessor getter type to match ${Gt}, but got ${a.getterType.text}`,
423
423
  s.fileName
424
424
  ), e;
425
425
  n.add(l.accessor);
@@ -457,7 +457,7 @@ function br(e, t, i, n, s) {
457
457
  )
458
458
  ];
459
459
  } else
460
- return Xt(n, e.type, s), o.setSyntheticLeadingComments(e, V(a)), e;
460
+ return Vt(n, e.type, s), o.setSyntheticLeadingComments(e, V(a)), e;
461
461
  else if (o.isGetAccessor(e) || o.isSetAccessor(e)) {
462
462
  if (o.isSetAccessor(e)) {
463
463
  if (a.readonly === !0)
@@ -473,15 +473,15 @@ function br(e, t, i, n, s) {
473
473
  } else if (o.isMethodDeclaration(e))
474
474
  return o.setSyntheticLeadingComments(e, V(a)), e;
475
475
  }
476
- const Vt = /^typeof this\.(?<accessor>[^.]+)\.(?<boundProperty>[^.]+)$/u;
477
- function Xt(e, t, i) {
478
- const s = (t?.pos !== -1 ? t?.getText(i) : void 0)?.match(wr) ?? [];
476
+ const Gt = /^typeof this\.(?<accessor>[^.]+)\.(?<boundProperty>[^.]+)$/u;
477
+ function Vt(e, t, i) {
478
+ const s = (t?.pos !== -1 ? t?.getText(i) : void 0)?.match(vr) ?? [];
479
479
  for (const r of s)
480
480
  e.add(r);
481
481
  return t;
482
482
  }
483
- const wr = /(?<=this.)[\w$]+/gu;
484
- function Tr(e) {
483
+ const vr = /(?<=this.)[\w$]+/gu;
484
+ function Sr(e) {
485
485
  if (o.setEmitFlags(e, o.EmitFlags.NoComments), o.isPropertyDeclaration(e)) {
486
486
  const t = ke(e.modifiers);
487
487
  if (t !== e.modifiers)
@@ -525,7 +525,7 @@ function Tr(e) {
525
525
  }
526
526
  return e;
527
527
  }
528
- function Qt(e) {
528
+ function Xt(e) {
529
529
  return e?.some((i) => i.kind === o.SyntaxKind.ReadonlyKeyword) ? e : [o.factory.createModifier(o.SyntaxKind.ReadonlyKeyword), ...e ?? []];
530
530
  }
531
531
  function ke(e) {
@@ -536,11 +536,11 @@ function ke(e) {
536
536
  )
537
537
  ];
538
538
  }
539
- function Er(e, t) {
539
+ function br(e, t) {
540
540
  if (e === void 0)
541
541
  return;
542
542
  const i = o.isImportTypeNode(e) && e.qualifier && o.isIdentifier(e.qualifier) && e.qualifier.escapedText === "EventEmitter" ? e.typeArguments ?? [] : o.isTypeReferenceNode(e) && o.isIdentifier(e.typeName) && e.typeName.escapedText === "EventEmitter" ? e.typeArguments ?? [] : void 0;
543
- return typeof i == "object" ? o.factory.createTypeReferenceNode(Vi, [
543
+ return typeof i == "object" ? o.factory.createTypeReferenceNode(qi, [
544
544
  o.factory.createThisTypeNode(),
545
545
  ...i
546
546
  ]) : (C.warn(
@@ -549,12 +549,12 @@ function Er(e, t) {
549
549
  t.fileName
550
550
  ), e);
551
551
  }
552
- const Cr = [pr, vr], Zt = "@arcgis/lumina:componentDtsTransformer";
553
- function $r(e) {
552
+ const wr = [cr, yr], Qt = "@arcgis/lumina:componentDtsTransformer";
553
+ function Tr(e) {
554
554
  let t;
555
- const i = Pr(e);
555
+ const i = Er(e);
556
556
  return {
557
- name: Zt,
557
+ name: Qt,
558
558
  supports(n) {
559
559
  return t ??= new Set(e.componentFiles), n.endsWith(".tsx") && t.has(n);
560
560
  },
@@ -563,7 +563,7 @@ function $r(e) {
563
563
  return [];
564
564
  const s = e.typeScriptProgram.getSourceFile(n);
565
565
  if (s === void 0)
566
- throw Error(w(Zt, `Could not find source file: ${Y(n)}`));
566
+ throw Error(w(Qt, `Could not find source file: ${Y(n)}`));
567
567
  const r = [];
568
568
  return e.typeScriptProgram.emit(
569
569
  s,
@@ -580,22 +580,22 @@ function $r(e) {
580
580
  }
581
581
  };
582
582
  }
583
- const Pr = (e) => (t) => (i) => Gi(e, t, i, [
584
- ...Cr,
583
+ const Er = (e) => (t) => (i) => zi(e, t, i, [
584
+ ...wr,
585
585
  ...e.options.types?.declarationAstTransformers ?? []
586
- ]), xr = (e) => new Proxy(e, {
587
- get: kr,
588
- set: Ar
586
+ ]), Cr = (e) => new Proxy(e, {
587
+ get: $r,
588
+ set: Pr
589
589
  });
590
- function kr(e, t, i) {
590
+ function $r(e, t, i) {
591
591
  if (t in e)
592
592
  return Reflect.get(e, t, i);
593
593
  throw new Error(`Requested unexpected property ${String(t)}`);
594
594
  }
595
- function Ar(e, t) {
595
+ function Pr(e, t) {
596
596
  throw new Error(`Unexpectedly tried to set the ${String(t)} property.`);
597
597
  }
598
- function Ir(e) {
598
+ function xr(e) {
599
599
  const t = e.options.types ?? {};
600
600
  let i = !1;
601
601
  const n = {
@@ -603,7 +603,7 @@ function Ir(e) {
603
603
  // For details, see comment above excludeOutsideFiles in
604
604
  // https://devtopia.esri.com/WebGIS/arcgis-web-components/blob/main/packages/support-packages/lit-compiler/src/types/textTransformers.ts
605
605
  rootDir: "."
606
- }, s = ys({
606
+ }, s = us({
607
607
  ...t,
608
608
  compilerOptions: n,
609
609
  tsconfigPath: e.options.types?.tsconfigPath,
@@ -616,7 +616,7 @@ function Ir(e) {
616
616
  }
617
617
  return t?.afterDiagnostic?.(r);
618
618
  },
619
- beforeWriteFile: Qs(e),
619
+ beforeWriteFile: Gs(e),
620
620
  resolvers: [
621
621
  /**
622
622
  * The vite-plugin-dts does not provide a way to get a reference to the
@@ -640,7 +640,7 @@ function Ir(e) {
640
640
  }
641
641
  },
642
642
  ...t?.resolvers ?? [],
643
- $r(e)
643
+ Tr(e)
644
644
  ]
645
645
  });
646
646
  return {
@@ -661,7 +661,7 @@ function Ir(e) {
661
661
  if (typeof c != "function")
662
662
  throw new Error("Expected transform to be a function");
663
663
  if (await a.call(this, r), await c.call(
664
- xr({}),
664
+ Cr({}),
665
665
  "",
666
666
  /*
667
667
  * Have to give it a file that will be matched by the tsconfig's
@@ -673,7 +673,7 @@ function Ir(e) {
673
673
  }
674
674
  };
675
675
  }
676
- const Lr = "Fragment", tt = "DynamicHtmlTag", it = "DynamicSvgTag", Re = Symbol("dynamic html tag name"), ft = Symbol("dynamic svg tag name"), Qi = /* @__PURE__ */ new Set([
676
+ const kr = "Fragment", et = "DynamicHtmlTag", tt = "DynamicSvgTag", Re = Symbol("dynamic html tag name"), mt = Symbol("dynamic svg tag name"), Vi = /* @__PURE__ */ new Set([
677
677
  /**
678
678
  * There is a "className" property. However, in JSX typings we use "class"
679
679
  * instead to keep name shorter and to match Stencil's name. Thus, it should
@@ -694,7 +694,7 @@ const Lr = "Fragment", tt = "DynamicHtmlTag", it = "DynamicSvgTag", Re = Symbol(
694
694
  "resource",
695
695
  "typeof",
696
696
  "vocab"
697
- ]), Zi = /* @__PURE__ */ new Set([
697
+ ]), Xi = /* @__PURE__ */ new Set([
698
698
  /*
699
699
  * From https://github.com/preactjs/preact/blob/f3edc902447dae7393de7fccaff3b722dee79467/src/diff/props.js#L107-L118
700
700
  * See also https://github.com/facebook/react/blob/8fd963a1e5ec89459cac27fb1d9ad193a0604110/packages/react-dom-bindings/src/client/ReactDOMComponent.js#L389
@@ -713,7 +713,7 @@ const Lr = "Fragment", tt = "DynamicHtmlTag", it = "DynamicSvgTag", Re = Symbol(
713
713
  "exportParts",
714
714
  "hreflang",
715
715
  "media"
716
- ]), yt = {
716
+ ]), ft = {
717
717
  button: /* @__PURE__ */ new Set(["popoverTarget"]),
718
718
  input: /* @__PURE__ */ new Set(["list", "capture"]),
719
719
  iframe: /* @__PURE__ */ new Set(["sandbox"]),
@@ -721,7 +721,7 @@ const Lr = "Fragment", tt = "DynamicHtmlTag", it = "DynamicSvgTag", Re = Symbol(
721
721
  meta: /* @__PURE__ */ new Set(["charset"]),
722
722
  math: /* @__PURE__ */ new Set(["dir", "displaystyle", "scriptlevel"]),
723
723
  menu: /* @__PURE__ */ new Set(["label", "type"])
724
- }, W = {
724
+ }, B = {
725
725
  common: {
726
726
  reflected: {
727
727
  hidden: "hidden",
@@ -1534,9 +1534,9 @@ const Lr = "Fragment", tt = "DynamicHtmlTag", it = "DynamicSvgTag", Re = Symbol(
1534
1534
  }
1535
1535
  }
1536
1536
  };
1537
- Yi(W.common);
1538
- Object.values(W.perElement).forEach(Yi);
1539
- function Yi(e) {
1537
+ Qi(B.common);
1538
+ Object.values(B.perElement).forEach(Qi);
1539
+ function Qi(e) {
1540
1540
  e?.reflected !== void 0 && (e.reflected = Object.assign(/* @__PURE__ */ Object.create(null), e.reflected)), e?.stringifiedReflected !== void 0 && (e.stringifiedReflected = Object.assign(
1541
1541
  /* @__PURE__ */ Object.create(null),
1542
1542
  e.stringifiedReflected
@@ -1545,7 +1545,7 @@ function Yi(e) {
1545
1545
  e.stringifiedNonReflected
1546
1546
  ));
1547
1547
  }
1548
- const Yt = /* @__PURE__ */ new Set(["itemScope"]), en = /* @__PURE__ */ new Set([
1548
+ const Zt = /* @__PURE__ */ new Set(["itemScope"]), Zi = /* @__PURE__ */ new Set([
1549
1549
  "abort",
1550
1550
  "animationCancel",
1551
1551
  "animationEnd",
@@ -1644,7 +1644,7 @@ const Yt = /* @__PURE__ */ new Set(["itemScope"]), en = /* @__PURE__ */ new Set(
1644
1644
  "volumeChange",
1645
1645
  "waiting",
1646
1646
  "wheel"
1647
- ]), Fr = /* @__PURE__ */ new Set([
1647
+ ]), Ar = /* @__PURE__ */ new Set([
1648
1648
  "area",
1649
1649
  "base",
1650
1650
  "br",
@@ -1661,7 +1661,7 @@ const Yt = /* @__PURE__ */ new Set(["itemScope"]), en = /* @__PURE__ */ new Set(
1661
1661
  "source",
1662
1662
  "track",
1663
1663
  "wbr"
1664
- ]), Ct = /* @__PURE__ */ new Set([
1664
+ ]), Et = /* @__PURE__ */ new Set([
1665
1665
  "animate",
1666
1666
  "animateMotion",
1667
1667
  "animateTransform",
@@ -1720,7 +1720,7 @@ const Yt = /* @__PURE__ */ new Set(["itemScope"]), en = /* @__PURE__ */ new Set(
1720
1720
  "tspan",
1721
1721
  "use",
1722
1722
  "view"
1723
- ]), Nr = /* @__PURE__ */ new Set(["title", "svg", "a", "script", "style"]), $t = /* @__PURE__ */ new Set([
1723
+ ]), Ir = /* @__PURE__ */ new Set(["title", "svg", "a", "script", "style"]), Ct = /* @__PURE__ */ new Set([
1724
1724
  "annotation-xml",
1725
1725
  "annotation",
1726
1726
  "maction",
@@ -1752,7 +1752,7 @@ const Yt = /* @__PURE__ */ new Set(["itemScope"]), en = /* @__PURE__ */ new Set(
1752
1752
  "munder",
1753
1753
  "munderover",
1754
1754
  "semantics"
1755
- ]), Dr = /* @__PURE__ */ new Set([
1755
+ ]), Lr = /* @__PURE__ */ new Set([
1756
1756
  "annotation-xml",
1757
1757
  "color-profile",
1758
1758
  "font-face",
@@ -1761,47 +1761,8 @@ const Yt = /* @__PURE__ */ new Set(["itemScope"]), en = /* @__PURE__ */ new Set(
1761
1761
  "font-face-format",
1762
1762
  "font-face-name",
1763
1763
  "missing-glyph"
1764
- ]), jr = /\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/gu, Rr = new Map(
1765
- Object.entries({
1766
- " ": "\\t",
1767
- "\v": "\\v",
1768
- "\f": "\\f",
1769
- "\b": "\\b",
1770
- "\r": "\\r",
1771
- // Bug fix: do not escape new line
1772
- "\n": `
1773
- `,
1774
- "\\": "\\\\",
1775
- '"': '\\"',
1776
- "'": "\\'",
1777
- "`": "\\`",
1778
- "\u2028": "\\u2028",
1779
- // lineSeparator
1780
- "\u2029": "\\u2029",
1781
- // paragraphSeparator
1782
- "…": "\\u0085",
1783
- // nextLine
1784
- "\r\n": "\\r\\n"
1785
- // special case for CRLFs in backticks
1786
- })
1787
- );
1788
- function tn(e) {
1789
- return `\\u${`0000${e.toString(Mr).toUpperCase()}`.slice(-4)}`;
1790
- }
1791
- const Mr = 16;
1792
- function Or(e, t, i) {
1793
- if (e.charCodeAt(0) === Wr) {
1794
- const n = i.charCodeAt(t + e.length);
1795
- return n >= _r && n <= Hr ? "\\x00" : "\\0";
1796
- }
1797
- return Rr.get(e) || tn(e.charCodeAt(0));
1798
- }
1799
- const Jr = (e) => e.replace(jr, Or), ei = /[^\u0000-\u007F]/g;
1800
- function Kr(e) {
1801
- return e = Jr(e), ei.test(e) ? e.replace(ei, (t) => tn(t.charCodeAt(0))) : e;
1802
- }
1803
- const Br = Kr, Wr = 0, _r = 48, Hr = 57, Ur = /\$\{/gu, zr = (e) => e.replace(Ur, "\\${");
1804
- function qr(e) {
1764
+ ]);
1765
+ function Fr(e) {
1805
1766
  if (e.length === 0)
1806
1767
  return "";
1807
1768
  const t = e[0];
@@ -1814,13 +1775,13 @@ function qr(e) {
1814
1775
  }
1815
1776
  return e.trim().length === 0 ? t : e;
1816
1777
  }
1817
- const ze = (e) => zr(Br(e)), Gr = (e) => !Vr.test(e), Vr = /^[^\s"'=<>`]+$/u, Xr = /[&<>]/gu, Qr = {
1778
+ const Nr = (e) => jr(e).replaceAll("`", "\\`"), Dr = /\$\{/gu, jr = (e) => e.replace(Dr, "\\${"), Rr = (e) => !Mr.test(e), Mr = /^[^\s"'=<>`]+$/u, Or = /[&<>]/gu, Jr = {
1818
1779
  "&": "&amp;",
1819
1780
  "<": "&lt;",
1820
1781
  ">": "&gt;"
1821
- }, nn = (e) => e.replace(Xr, (t) => Qr[t]), Pt = (e) => typeof e == "string" && e.includes("-") && !Dr.has(e), Zr = async (e) => Object.fromEntries(
1822
- (await e.componentFilesPromise).map((t) => [sn(t), t])
1823
- ), sn = (e, t = u.resolve("src")) => u.relative(t, u.join(e, "..", Tt.slice(0, -3))), xt = async (e, t, i = t) => await Ue(i, { recursive: !0 }).catch((n) => {
1782
+ }, Yi = (e) => e.replace(Or, (t) => Jr[t]), $t = (e) => typeof e == "string" && e.includes("-") && !Lr.has(e), Kr = async (e) => Object.fromEntries(
1783
+ (await e.componentFilesPromise).map((t) => [en(t), t])
1784
+ ), en = (e, t = u.resolve("src")) => u.relative(t, u.join(e, "..", wt.slice(0, -3))), Pt = async (e, t, i = t) => await Ue(i, { recursive: !0 }).catch((n) => {
1824
1785
  if (String(n).includes("ENOENT"))
1825
1786
  return C.error("@arcgis/lumina", `Unable to find the ${i} directory (cwd: ${process.cwd()})`), [];
1826
1787
  throw n;
@@ -1838,83 +1799,83 @@ const ze = (e) => zr(Br(e)), Gr = (e) => !Vr.test(e), Vr = /^[^\s"'=<>`]+$/u, Xr
1838
1799
  function he(e, t) {
1839
1800
  if (!e.startsWith(t) || !e.endsWith(".tsx"))
1840
1801
  return !1;
1841
- const [i, n] = e.slice(0, -4).split(u.sep).slice(Yr);
1802
+ const [i, n] = e.slice(0, -4).split(u.sep).slice(Wr);
1842
1803
  return i === n;
1843
1804
  }
1844
- const Yr = -2, ti = 5, ii = 1, ni = 1, si = 3, ri = 4, qe = o;
1845
- eo(qe.createSourceMapGenerator);
1846
- to(qe.createTextWriter);
1847
- io(qe.getNewLineCharacter);
1848
- const me = qe;
1849
- function eo(e) {
1805
+ const Wr = -2, Yt = 5, ei = 1, ti = 1, ii = 3, ni = 4, ze = o;
1806
+ Br(ze.createSourceMapGenerator);
1807
+ _r(ze.createTextWriter);
1808
+ Hr(ze.getNewLineCharacter);
1809
+ const me = ze;
1810
+ function Br(e) {
1850
1811
  if (typeof e != "function")
1851
1812
  throw new Error(
1852
1813
  "Failed to find ts.createSourceMapGenerator() function. Lumina needs to be updated to support the new TypeScript version"
1853
1814
  );
1854
- if (e.length !== ti)
1815
+ if (e.length !== Yt)
1855
1816
  throw new Error(
1856
- `ts.createSourceMapGenerator() signature changed. Expected ${ti} arguments. Lumina needs to be updated to support the new TypeScript version`
1817
+ `ts.createSourceMapGenerator() signature changed. Expected ${Yt} arguments. Lumina needs to be updated to support the new TypeScript version`
1857
1818
  );
1858
1819
  }
1859
- function to(e) {
1820
+ function _r(e) {
1860
1821
  if (typeof e != "function")
1861
1822
  throw new Error(
1862
1823
  "Failed to find ts.createTextWriter() function. Lumina needs to be updated to support the new TypeScript version"
1863
1824
  );
1864
- if (e.length !== ii)
1825
+ if (e.length !== ei)
1865
1826
  throw new Error(
1866
- `ts.createTextWriter() signature changed. Expected ${ii} arguments. Lumina needs to be updated to support the new TypeScript version`
1827
+ `ts.createTextWriter() signature changed. Expected ${ei} arguments. Lumina needs to be updated to support the new TypeScript version`
1867
1828
  );
1868
1829
  }
1869
- function io(e) {
1830
+ function Hr(e) {
1870
1831
  if (typeof e != "function")
1871
1832
  throw new Error(
1872
1833
  "Failed to find ts.getNewLineCharacter() function. Lumina needs to be updated to support the new TypeScript version"
1873
1834
  );
1874
- if (e.length !== ni)
1835
+ if (e.length !== ti)
1875
1836
  throw new Error(
1876
- `ts.getNewLineCharacter() signature changed. Expected ${ni} argument. Lumina needs to be updated to support the new TypeScript version`
1837
+ `ts.getNewLineCharacter() signature changed. Expected ${ti} argument. Lumina needs to be updated to support the new TypeScript version`
1877
1838
  );
1878
1839
  }
1879
- function no(e) {
1840
+ function Ur(e) {
1880
1841
  if (typeof e != "function")
1881
1842
  throw new Error(
1882
1843
  "Failed to find ts.Printer.writeFile() function. Lumina needs to be updated to support the new TypeScript version"
1883
1844
  );
1884
- if (e.length !== si)
1845
+ if (e.length !== ii)
1885
1846
  throw new Error(
1886
- `ts.Printer.writeFile() signature changed. Expected ${si} arguments. Lumina needs to be updated to support the new TypeScript version`
1847
+ `ts.Printer.writeFile() signature changed. Expected ${ii} arguments. Lumina needs to be updated to support the new TypeScript version`
1887
1848
  );
1888
1849
  }
1889
- function so(e) {
1850
+ function zr(e) {
1890
1851
  if (typeof e != "function")
1891
1852
  throw new Error(
1892
1853
  "Failed to find ts.Printer.writeNode() function. Lumina needs to be updated to support the new TypeScript version"
1893
1854
  );
1894
- if (e.length !== ri)
1855
+ if (e.length !== ni)
1895
1856
  throw new Error(
1896
- `ts.Printer.writeNode() signature changed. Expected ${ri} arguments. Lumina needs to be updated to support the new TypeScript version`
1857
+ `ts.Printer.writeNode() signature changed. Expected ${ni} arguments. Lumina needs to be updated to support the new TypeScript version`
1897
1858
  );
1898
1859
  }
1899
- function rn(e) {
1860
+ function tn(e) {
1900
1861
  const t = me.createPrinter(e);
1901
- return no(t.writeFile), so(t.writeNode), t;
1862
+ return Ur(t.writeFile), zr(t.writeNode), t;
1902
1863
  }
1903
- function oi(e) {
1904
- const t = o.isUnionTypeNode(e) ? e.types.map(ai) : [ai(e)], i = new Set(t), n = i.delete("true"), s = i.delete("false");
1864
+ function si(e) {
1865
+ const t = o.isUnionTypeNode(e) ? e.types.map(ri) : [ri(e)], i = new Set(t), n = i.delete("true"), s = i.delete("false");
1905
1866
  (n || s) && i.add("boolean");
1906
1867
  let r = Array.from(i).sort();
1907
- if (r.length > 1 && (r = r.map((a) => a.includes("=>") ? `(${a})` : a)), !(r.length > ro))
1908
- return r.map(co);
1868
+ if (r.length > 1 && (r = r.map((a) => a.includes("=>") ? `(${a})` : a)), !(r.length > qr))
1869
+ return r.map(Xr);
1909
1870
  }
1910
- const ro = 40, oo = (e) => e?.some(
1871
+ const qr = 40, Gr = (e) => e?.some(
1911
1872
  (t) => t.type === "number" || t.type === "boolean" || t.type === "string" || /**
1912
1873
  * Treat "any" as possibly literal, but not "unknown". Matches Stencil
1913
1874
  * behavior.
1914
1875
  */
1915
1876
  t.type === "any"
1916
- ) ?? !1, ao = (e) => e.length === 1 && e[0].type !== "string" && e[0].type !== "number" && e[0].type !== "boolean" && e[0].type !== "any" ? void 0 : e, on = (e) => e.map(an).join(" | "), an = (e) => e.type === "string" && e.value !== void 0 ? `"${e.value}"` : e.value ?? e.type;
1917
- function co(e) {
1877
+ ) ?? !1, Vr = (e) => e.length === 1 && e[0].type !== "string" && e[0].type !== "number" && e[0].type !== "boolean" && e[0].type !== "any" ? void 0 : e, nn = (e) => e.map(sn).join(" | "), sn = (e) => e.type === "string" && e.value !== void 0 ? `"${e.value}"` : e.value ?? e.type;
1878
+ function Xr(e) {
1918
1879
  return e === "boolean" ? { type: "boolean" } : Number.isNaN(Number.parseFloat(e)) ? e.startsWith('"') || e.startsWith("'") ? {
1919
1880
  value: e.slice(1, -1),
1920
1881
  type: "string"
@@ -1925,50 +1886,50 @@ function co(e) {
1925
1886
  type: "number"
1926
1887
  };
1927
1888
  }
1928
- const lo = (e, t, i, n) => {
1889
+ const Qr = (e, t, i, n) => {
1929
1890
  const s = e.typeScriptTypeChecker, r = o.isSetAccessor(t) ? t.parameters[0] : t, a = s.getTypeAtLocation(r), c = !i;
1930
1891
  return Me(s, a, n, e.dir, c);
1931
1892
  };
1932
- function po(e, t) {
1893
+ function Zr(e, t) {
1933
1894
  if (e.length === 0)
1934
1895
  return;
1935
- const i = t.matchAll(uo), n = [];
1896
+ const i = t.matchAll(Yr), n = [];
1936
1897
  for (const s of i) {
1937
1898
  const r = e.find((a) => a.name === s[0]);
1938
1899
  r !== void 0 && n.push({ ...r, start: s.index, end: s.index + r.name.length });
1939
1900
  }
1940
1901
  return n.length === 0 ? void 0 : n;
1941
1902
  }
1942
- const uo = /"[^"]+"|'[^"]+'|\w+/gu;
1903
+ const Yr = /"[^"]+"|'[^"]+'|\w+/gu;
1943
1904
  function Me(e, t, i, n, s = !1) {
1944
- let { typeNode: r, references: a } = li(e, t, i, n), c = oi(r);
1945
- c === void 0 && ({ typeNode: r, references: a } = li(e, t, i, n, !1), c = oi(r) ?? []);
1946
- const l = s ? c.filter((f) => f.type !== "null" && f.type !== "undefined") : c, d = on(l), p = ao(l), m = po(a, d);
1905
+ let { typeNode: r, references: a } = ai(e, t, i, n), c = si(r);
1906
+ c === void 0 && ({ typeNode: r, references: a } = ai(e, t, i, n, !1), c = si(r) ?? []);
1907
+ const l = s ? c.filter((f) => f.type !== "null" && f.type !== "undefined") : c, d = nn(l), p = Vr(l), m = Zr(a, d);
1947
1908
  return {
1948
1909
  text: d,
1949
1910
  references: m,
1950
1911
  values: p
1951
1912
  };
1952
1913
  }
1953
- function ai(e) {
1954
- mo.writeNode(o.EmitHint.Unspecified, e, void 0, nt);
1955
- const t = nt.getText();
1956
- return nt.clear(), t;
1914
+ function ri(e) {
1915
+ eo.writeNode(o.EmitHint.Unspecified, e, void 0, it);
1916
+ const t = it.getText();
1917
+ return it.clear(), t;
1957
1918
  }
1958
- const mo = rn({ removeComments: !0 }), nt = me.createTextWriter(`
1959
- `), cn = o.TypeFormatFlags.NoTruncation | o.TypeFormatFlags.WriteArrayAsGenericType | o.TypeFormatFlags.SuppressAnyReturnType | o.TypeFormatFlags.MultilineObjectLiterals, fo = cn & o.TypeFormatFlags.NodeBuilderFlagsMask, yo = fo | o.NodeBuilderFlags.IgnoreErrors | o.NodeBuilderFlags.NoTruncation;
1960
- function go(e, t, i, n = !0) {
1919
+ const eo = tn({ removeComments: !0 }), it = me.createTextWriter(`
1920
+ `), rn = o.TypeFormatFlags.NoTruncation | o.TypeFormatFlags.WriteArrayAsGenericType | o.TypeFormatFlags.SuppressAnyReturnType | o.TypeFormatFlags.MultilineObjectLiterals, to = rn & o.TypeFormatFlags.NodeBuilderFlagsMask, io = to | o.NodeBuilderFlags.IgnoreErrors | o.NodeBuilderFlags.NoTruncation;
1921
+ function no(e, t, i, n = !0) {
1961
1922
  const s = /* @__PURE__ */ new Map();
1962
1923
  se(t, s, i, n);
1963
- const r = t.flags & o.TypeFlags.Union ? t.types.every(ci) : ci(t), a = e.typeToTypeNode(
1924
+ const r = t.flags & o.TypeFlags.Union ? t.types.every(oi) : oi(t), a = e.typeToTypeNode(
1964
1925
  t,
1965
1926
  void 0,
1966
- yo & (r ? ~o.TypeFormatFlags.MultilineObjectLiterals : -1)
1927
+ io & (r ? ~o.TypeFormatFlags.MultilineObjectLiterals : -1)
1967
1928
  );
1968
- return s.forEach(ho), a === void 0 ? (C.warn("@arcgis/lumina", "Unexpected case: Failed to convert type to type node."), o.factory.createTypeReferenceNode(o.factory.createIdentifier("unknown"), void 0)) : a;
1929
+ return s.forEach(so), a === void 0 ? (C.warn("@arcgis/lumina", "Unexpected case: Failed to convert type to type node."), o.factory.createTypeReferenceNode(o.factory.createIdentifier("unknown"), void 0)) : a;
1969
1930
  }
1970
- const ci = (e) => e.flags & o.TypeFlags.Object ? e.getProperties().length === 1 : !!(e.flags & o.TypeFlags.PossiblyFalsy);
1971
- function li(e, t, i, n, s = !0) {
1931
+ const oi = (e) => e.flags & o.TypeFlags.Object ? e.getProperties().length === 1 : !!(e.flags & o.TypeFlags.PossiblyFalsy);
1932
+ function ai(e, t, i, n, s = !0) {
1972
1933
  const r = [], a = /* @__PURE__ */ new Set();
1973
1934
  function c(d, p) {
1974
1935
  const m = d.aliasSymbol ?? d.symbol;
@@ -1997,10 +1958,10 @@ function li(e, t, i, n, s = !0) {
1997
1958
  name: f,
1998
1959
  package: void 0,
1999
1960
  module: "index.js"
2000
- } : vo(m, f, i, n);
1961
+ } : ro(m, f, i, n);
2001
1962
  r.push(y), a.add(f);
2002
1963
  }
2003
- return { typeNode: go(e, t, c, s), references: r };
1964
+ return { typeNode: no(e, t, c, s), references: r };
2004
1965
  }
2005
1966
  function se(e, t, i, n = !0) {
2006
1967
  if (typeof e != "object" || e === null || !("checker" in e))
@@ -2030,10 +1991,10 @@ function se(e, t, i, n = !0) {
2030
1991
  c !== "resolvedBaseConstructorType" && c !== "resolvedBaseTypes" && c !== "typeParameters" && c !== "typeParameter" && (Array.isArray(l) ? l.forEach((d) => se(d, t, i, n)) : se(l, t, i, n));
2031
1992
  });
2032
1993
  }
2033
- function ho(e, t) {
1994
+ function so(e, t) {
2034
1995
  e.origin !== void 0 && (t.origin = e.origin), e.aliasSymbol !== void 0 && (t.aliasSymbol = e.aliasSymbol), e.aliasTypeArguments !== void 0 && (t.aliasTypeArguments = e.aliasTypeArguments);
2035
1996
  }
2036
- function vo(e, t, i, n) {
1997
+ function ro(e, t, i, n) {
2037
1998
  const s = e?.declarations?.map((c) => c.getSourceFile()) ?? [];
2038
1999
  if (s.length === 0) {
2039
2000
  if (t === "Array")
@@ -2051,26 +2012,26 @@ function vo(e, t, i, n) {
2051
2012
  if (s.length === 0)
2052
2013
  return {
2053
2014
  name: t,
2054
- package: Ki,
2015
+ package: Oi,
2055
2016
  module: void 0
2056
2017
  };
2057
- const { packageName: r, moduleName: a } = So(s[0].fileName, n);
2018
+ const { packageName: r, moduleName: a } = oo(s[0].fileName, n);
2058
2019
  return r ? {
2059
2020
  name: t,
2060
2021
  package: r,
2061
2022
  module: a.length > 0 ? a : void 0,
2062
- viewUrl: r === "@arcgis/core" && a === "interfaces.d.ts" ? di(e, s[0], "core") : r === "typescript" ? di(e, s[0], "typescript") : void 0
2023
+ viewUrl: r === "@arcgis/core" && a === "interfaces.d.ts" ? ci(e, s[0], "core") : r === "typescript" ? ci(e, s[0], "typescript") : void 0
2063
2024
  } : {
2064
2025
  name: t,
2065
2026
  package: void 0,
2066
2027
  module: a
2067
2028
  };
2068
2029
  }
2069
- function So(e, t) {
2030
+ function oo(e, t) {
2070
2031
  const i = e.split("/node_modules/");
2071
2032
  if (i.length > 1) {
2072
2033
  const a = i.at(-1);
2073
- return ln(a);
2034
+ return on(a);
2074
2035
  }
2075
2036
  const s = e.split("/dist/");
2076
2037
  if (s.length > 1) {
@@ -2079,36 +2040,36 @@ function So(e, t) {
2079
2040
  }
2080
2041
  return {
2081
2042
  packageName: void 0,
2082
- moduleName: u.relative(t.root, wo(bo(e, t)))
2043
+ moduleName: u.relative(t.root, co(ao(e, t)))
2083
2044
  };
2084
2045
  }
2085
- function bo(e, t) {
2086
- return he(e, t.srcComponents) ? u.join(t.dist, sn(e, t.src)) : e.startsWith(t.src) ? u.join(t.dist, e.slice(t.src.length)) : e;
2046
+ function ao(e, t) {
2047
+ return he(e, t.srcComponents) ? u.join(t.dist, en(e, t.src)) : e.startsWith(t.src) ? u.join(t.dist, e.slice(t.src.length)) : e;
2087
2048
  }
2088
- const wo = (e) => e.endsWith(".js") || e.endsWith(".d.ts") ? e : `${e.endsWith(".ts") ? e.slice(0, -3) : e.endsWith(".tsx") ? e.slice(0, -4) : e}.d.ts`;
2089
- function ln(e) {
2049
+ const co = (e) => e.endsWith(".js") || e.endsWith(".d.ts") ? e : `${e.endsWith(".ts") ? e.slice(0, -3) : e.endsWith(".tsx") ? e.slice(0, -4) : e}.d.ts`;
2050
+ function on(e) {
2090
2051
  const t = e.split("/"), n = e[0].startsWith("@") ? 2 : 1, s = t.slice(0, n).join("/"), r = t.slice(n).join("/");
2091
2052
  return { packageName: s, moduleName: r };
2092
2053
  }
2093
- const To = (e) => e.includes("/node_modules/") || e.includes("/dist/");
2094
- function di(e, t, i) {
2054
+ const lo = (e) => e.includes("/node_modules/") || e.includes("/dist/");
2055
+ function ci(e, t, i) {
2095
2056
  const n = e.declarations;
2096
2057
  if (n !== void 0)
2097
2058
  for (const s of n) {
2098
- const r = pi(s, t, i);
2059
+ const r = li(s, t, i);
2099
2060
  if (r !== void 0)
2100
2061
  return r;
2101
2062
  if (!("members" in s))
2102
2063
  continue;
2103
2064
  const a = s.members;
2104
2065
  for (const c of a) {
2105
- const l = pi(c, t, i);
2066
+ const l = li(c, t, i);
2106
2067
  if (l !== void 0)
2107
- return Eo(l);
2068
+ return po(l);
2108
2069
  }
2109
2070
  }
2110
2071
  }
2111
- function pi(e, t, i) {
2072
+ function li(e, t, i) {
2112
2073
  const n = e.jsDoc?.[0];
2113
2074
  if (n !== void 0)
2114
2075
  return ye([n, ...n.tags ?? []], ({ comment: s }) => {
@@ -2128,16 +2089,16 @@ function pi(e, t, i) {
2128
2089
  });
2129
2090
  });
2130
2091
  }
2131
- const Eo = (e) => e.split("#")[0];
2132
- function Co(e) {
2092
+ const po = (e) => e.split("#")[0];
2093
+ function uo(e) {
2133
2094
  const t = [];
2134
- for (const i of e.matchAll($o)) {
2135
- const n = i.groups.name, s = i.groups.description.replaceAll(Po, " ").trim();
2095
+ for (const i of e.matchAll(mo)) {
2096
+ const n = i.groups.name, s = i.groups.description.replaceAll(fo, " ").trim();
2136
2097
  t.push({ name: n, description: s.endsWith("*") ? s.slice(0, -1).trim() : s });
2137
2098
  }
2138
2099
  return t.length === 0 ? void 0 : t;
2139
2100
  }
2140
- const $o = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, Po = /\n\s+\*? ?/gu, xo = ["css", "less", "sass", "scss", "styl", "stylus", "pcss", "postcss", "sss"], Oe = new RegExp(`\\.(${xo.join("|")})(\\?|$)`, "u"), ko = /^import ["'](?<specifier>[^"']+)["'];$/gmu, Ao = () => "throwError", te = "@arcgis/lumina:loadLitCss", Q = "?layered", Fe = "?global", Io = (e) => ({
2101
+ const mo = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, fo = /\n\s+\*? ?/gu, yo = ["css", "less", "sass", "scss", "styl", "stylus", "pcss", "postcss", "sss"], Oe = new RegExp(`\\.(${yo.join("|")})(\\?|$)`, "u"), go = /^import ["'](?<specifier>[^"']+)["'];$/gmu, ho = () => "throwError", te = "@arcgis/lumina:loadLitCss", Q = "?layered", Fe = "?global", vo = (e) => ({
2141
2102
  name: te,
2142
2103
  enforce: "pre",
2143
2104
  configResolved(t) {
@@ -2154,7 +2115,7 @@ const $o = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, Po = /\n\s+\
2154
2115
  if (l && (a = a.slice(0, -Fe.length)), !Oe.test(a) || a.includes("?"))
2155
2116
  return await n.call(this, r, a);
2156
2117
  const d = `${a}?inline`, p = await n.call(this, r, d), { code: m, ...f } = typeof p == "string" ? { code: p } : p ?? {};
2157
- if (typeof m != "string" || !m.startsWith(dn) || !m.endsWith(pn))
2118
+ if (typeof m != "string" || !m.startsWith(an) || !m.endsWith(cn))
2158
2119
  return C.warn(
2159
2120
  te,
2160
2121
  `Expected vite:css-post to return a JS module with a string literal. Received: ${JSON.stringify(
@@ -2162,9 +2123,9 @@ const $o = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, Po = /\n\s+\
2162
2123
  )}`
2163
2124
  ), p;
2164
2125
  if (l)
2165
- return e._globalCssString = un(m), { code: "", map: { mappings: "" } };
2126
+ return e._globalCssString = ln(m), { code: "", map: { mappings: "" } };
2166
2127
  {
2167
- const y = e.isFullApiExtraction ? Co(r) : void 0;
2128
+ const y = e.isFullApiExtraction ? uo(r) : void 0;
2168
2129
  if (y !== void 0) {
2169
2130
  e._cssDocs ??= /* @__PURE__ */ new Map(), e._cssDocs.set(a, y);
2170
2131
  const g = e._cssImports.get(a);
@@ -2184,7 +2145,7 @@ const $o = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, Po = /\n\s+\
2184
2145
  }
2185
2146
  return {
2186
2147
  ...f,
2187
- code: Do(m, e.hmrEnabled, e.shouldMinify, c),
2148
+ code: To(m, e.hmrEnabled, e.shouldMinify, c),
2188
2149
  /**
2189
2150
  * Vite's original transform does not generate source maps for inlined
2190
2151
  * css, thus we can't either
@@ -2198,14 +2159,14 @@ const $o = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, Po = /\n\s+\
2198
2159
  if (!(i.endsWith(".js") || i.endsWith(".ts") || i.endsWith(".tsx") || e.isInStorybook && i.endsWith(".mdx")))
2199
2160
  return;
2200
2161
  let s = 0;
2201
- const r = To(i);
2162
+ const r = lo(i);
2202
2163
  let a = !1;
2203
- const c = t.replaceAll(ko, (l, d) => {
2164
+ const c = t.replaceAll(go, (l, d) => {
2204
2165
  if (!Oe.test(d) || d.includes("?"))
2205
2166
  return l;
2206
2167
  if (r) {
2207
- if ((e.options.css?.sideEffectImportHandling ?? Ao)(d, i) === "drop")
2208
- return a = !0, dr(l);
2168
+ if ((e.options.css?.sideEffectImportHandling ?? ho)(d, i) === "drop")
2169
+ return a = !0, ar(l);
2209
2170
  throw Error(
2210
2171
  w(
2211
2172
  te,
@@ -2213,7 +2174,7 @@ const $o = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, Po = /\n\s+\
2213
2174
  i
2214
2175
  )
2215
2176
  );
2216
- } else if (e.isInStorybook && Ro(i, e)) {
2177
+ } else if (e.isInStorybook && Co(i, e)) {
2217
2178
  a = !0;
2218
2179
  const p = `storybookCss$${s}`;
2219
2180
  return s += 1, [
@@ -2244,7 +2205,7 @@ const $o = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, Po = /\n\s+\
2244
2205
  map: null
2245
2206
  } : void 0;
2246
2207
  }
2247
- }), dn = 'export default "', pn = '"', Lo = "import { css } from '@lit/reactive-element/css-tag.js';\nexport const styles = css`", Fo = "`;\nexport default styles;", No = `
2208
+ }), an = 'export default "', cn = '"', So = "import { css } from '@lit/reactive-element/css-tag.js';\nexport const styles = css`", bo = "`;\nexport default styles;", wo = `
2248
2209
 
2249
2210
  if(import.meta.hot) {
2250
2211
  import.meta.hot.data.styles ??= styles;
@@ -2255,26 +2216,26 @@ if(import.meta.hot) {
2255
2216
  }
2256
2217
  import.meta.hot.data.styles.styleSheet.replaceSync(nextExports.styles.cssText);
2257
2218
  });
2258
- }`, un = (e) => e.slice(dn.length, -pn.length);
2259
- function Do(e, t, i, n) {
2260
- const r = un(e).replaceAll('\\"', '"').replaceAll("`", "\\`").replaceAll("\\r", ""), a = ze(jo(r)), c = n ? `@layer{${i ? "" : `
2219
+ }`, ln = (e) => e.slice(an.length, -cn.length);
2220
+ function To(e, t, i, n) {
2221
+ const r = ln(e).replaceAll('\\"', '"'), a = Nr(Eo(r)), c = n ? `@layer{${i ? "" : `
2261
2222
  `}${a}${i ? "" : `
2262
2223
  `}}` : a;
2263
- return `${Lo}${c}${Fo}${t ? No : ""}`;
2224
+ return `${So}${c}${bo}${t ? wo : ""}`;
2264
2225
  }
2265
- const jo = (e) => e.replaceAll("\\n", `
2266
- `), Ro = (e, t) => e.endsWith(".mdx") || e.includes(".stories.") || e.includes(".story.") || e.startsWith(`${t.dir.root}stories/`);
2267
- function Mo(e) {
2268
- return `import("${Oo}").then(({ setCustomElementsManifest }) => {
2269
- setCustomElementsManifest(${Jo(e)});
2226
+ const Eo = (e) => e.replaceAll("\\r", "").replaceAll("\\n", `
2227
+ `), Co = (e, t) => e.endsWith(".mdx") || e.includes(".stories.") || e.includes(".story.") || e.startsWith(`${t.dir.root}stories/`);
2228
+ function $o(e) {
2229
+ return `import("${Po}").then(({ setCustomElementsManifest }) => {
2230
+ setCustomElementsManifest(${xo(e)});
2270
2231
  });`;
2271
2232
  }
2272
- const Oo = "@storybook/web-components", Jo = (e) => `JSON.parse(\`${Ko(JSON.stringify(JSON.stringify(e)).slice(1, -1))}\`)`;
2273
- function Ko(e) {
2233
+ const Po = "@storybook/web-components", xo = (e) => `JSON.parse(\`${ko(JSON.stringify(JSON.stringify(e)).slice(1, -1))}\`)`;
2234
+ function ko(e) {
2274
2235
  return e.replaceAll('\\"', '"').replaceAll("`", "\\`").replaceAll("${", "\\${");
2275
2236
  }
2276
- function Bo(e) {
2277
- Wo(e);
2237
+ function Ao(e) {
2238
+ Io(e);
2278
2239
  const t = e.options.css?.globalStylesPath;
2279
2240
  if (t === void 0)
2280
2241
  return "";
@@ -2282,21 +2243,21 @@ function Bo(e) {
2282
2243
  return e.viteCommand === "serve" || e.isInStorybook ? [
2283
2244
  `import globalStyles from "${i}${Q}";`,
2284
2245
  "document.adoptedStyleSheets = [...document.adoptedStyleSheets, globalStyles.styleSheet!];",
2285
- fn("", e)
2246
+ pn("", e)
2286
2247
  ].join(`
2287
2248
  `) : `import "${i}${Fe}";`;
2288
2249
  }
2289
- const mn = "hydrated";
2290
- function Wo(e) {
2250
+ const dn = "hydrated";
2251
+ function Io(e) {
2291
2252
  e._globalHydratedCssString = [
2292
2253
  ":not([",
2293
- e.options.css?.hydratedAttribute ?? mn,
2254
+ e.options.css?.hydratedAttribute ?? dn,
2294
2255
  "]):is(",
2295
2256
  e.apiJsonComponents.map((t) => t.tagName).join(","),
2296
2257
  "){visibility:hidden}"
2297
2258
  ].join("");
2298
2259
  }
2299
- function fn(e, t) {
2260
+ function pn(e, t) {
2300
2261
  return [
2301
2262
  "const globalCss = new CSSStyleSheet;",
2302
2263
  `globalCss.replaceSync("@layer{${`${t._globalHydratedCssString}${t.shouldMinify ? "" : "\\n\\n"}${e || ""}`}}");`,
@@ -2304,15 +2265,15 @@ function fn(e, t) {
2304
2265
  ].join(`
2305
2266
  `);
2306
2267
  }
2307
- const _o = (e) => `${e._globalHydratedCssString}${e.shouldMinify ? "" : `
2268
+ const Lo = (e) => `${e._globalHydratedCssString}${e.shouldMinify ? "" : `
2308
2269
 
2309
2270
  `}${e._globalCssString ? JSON.parse(`"${e._globalCssString}"`) : ""}`;
2310
- function Ho(e) {
2271
+ function Fo(e) {
2311
2272
  const t = [], i = [];
2312
2273
  for (const s of e.privateApiJson.modules) {
2313
2274
  t.push(s.path);
2314
2275
  for (const r of s.declarations)
2315
- "customElement" in r && i.push(zo(r, e, s.path));
2276
+ "customElement" in r && i.push(Do(r, e, s.path));
2316
2277
  }
2317
2278
  return [
2318
2279
  // Deprecated feature will be dropped in https://devtopia.esri.com/WebGIS/arcgis-web-components/issues/2765
@@ -2320,33 +2281,33 @@ function Ho(e) {
2320
2281
  e.viteCommand === "build" && e.options.build?.ssr?.stencilCompatibility?.enabled === !0 ? 'import "@lit-labs/ssr-client/lit-element-hydrate-support.js";' : "",
2321
2282
  'import { runtime } from "./runtime";',
2322
2283
  'import { makeDefineCustomElements } from "@arcgis/lumina";',
2323
- Bo(e),
2324
- e.hmrEnabled ? Go : "",
2284
+ Ao(e),
2285
+ e.hmrEnabled ? Ro : "",
2325
2286
  "",
2326
- e.isInStorybook ? Mo(e.apiJson) : "",
2287
+ e.isInStorybook ? $o(e.apiJson) : "",
2327
2288
  "",
2328
2289
  "export const defineCustomElements = makeDefineCustomElements(runtime, {",
2329
2290
  i.join(`,
2330
2291
  `),
2331
2292
  "});",
2332
- e.hmrEnabled ? Vo(t) : ""
2293
+ e.hmrEnabled ? Mo(t) : ""
2333
2294
  ].join(`
2334
2295
  `);
2335
2296
  }
2336
- const Uo = `import "./index";
2337
- export declare const defineCustomElements: import("@arcgis/lumina").DefineCustomElements;`, zo = (e, t, i) => [
2297
+ const No = `import "./index";
2298
+ export declare const defineCustomElements: import("@arcgis/lumina").DefineCustomElements;`, Do = (e, t, i) => [
2338
2299
  ` "${e.tagName}": [`,
2339
2300
  `()=>import("${u.join(t.dir.root, i)}"),`,
2340
- qo(e),
2301
+ jo(e),
2341
2302
  "]"
2342
2303
  ].join("");
2343
- function qo(e) {
2344
- const { properties: t, asyncMethods: i, syncMethods: n } = yn(e), s = t.map((p) => p.join(ks)).join(et), r = i.join(et), a = n.join(et), c = [s, r, a], l = c.findLastIndex((p) => p.length > 0), d = c.slice(0, l + 1);
2345
- return d.length > 0 ? `"${d.join(As)}"` : "";
2304
+ function jo(e) {
2305
+ const { properties: t, asyncMethods: i, syncMethods: n } = un(e), s = t.map((p) => p.join($s)).join(Ye), r = i.join(Ye), a = n.join(Ye), c = [s, r, a], l = c.findLastIndex((p) => p.length > 0), d = c.slice(0, l + 1);
2306
+ return d.length > 0 ? `"${d.join(Ps)}"` : "";
2346
2307
  }
2347
- function yn(e) {
2308
+ function un(e) {
2348
2309
  const t = e.members.filter((r) => r.kind === "field").map((r) => {
2349
- const a = typeof r.attribute == "string", c = a && r.attribute !== wt(r.name);
2310
+ const a = typeof r.attribute == "string", c = a && r.attribute !== bt(r.name);
2350
2311
  return a && !c ? [r.name] : [r.name, c ? String(r.attribute) : ""];
2351
2312
  }), i = e.members.filter(
2352
2313
  (r) => r.kind === "method" && /**
@@ -2357,23 +2318,23 @@ function yn(e) {
2357
2318
  ), n = i.filter((r) => r.async === !0).map((r) => r.name), s = i.filter((r) => r.async !== !0).map((r) => r.name);
2358
2319
  return { tagName: e.tagName, properties: t, asyncMethods: n, syncMethods: s };
2359
2320
  }
2360
- const Go = `import { handleHmrUpdate, handleComponentMetaUpdate } from "@arcgis/lumina/hmrSupport";
2361
- `, Vo = (e) => `
2321
+ const Ro = `import { handleHmrUpdate, handleComponentMetaUpdate } from "@arcgis/lumina/hmrSupport";
2322
+ `, Mo = (e) => `
2362
2323
  if(import.meta.hot) {
2363
2324
  import.meta.hot.on("component-meta-update", handleComponentMetaUpdate);
2364
2325
  import.meta.hot.accept([
2365
2326
  ${e.map((t) => ` "/${t}",`).join(`
2366
2327
  `)}
2367
2328
  ], handleHmrUpdate);
2368
- }`, Xo = "@arcgis/lumina:addMethodMetadata";
2369
- function Qo(e, t, i, n, s) {
2329
+ }`, Oo = "@arcgis/lumina:addMethodMetadata";
2330
+ function Jo(e, t, i, n, s) {
2370
2331
  const r = i.getSignatureFromDeclaration(e);
2371
2332
  if (r === void 0)
2372
2333
  return;
2373
2334
  for (const d of e.parameters) {
2374
2335
  if (!o.isIdentifier(d.name)) {
2375
2336
  C.warn(
2376
- Xo,
2337
+ Oo,
2377
2338
  `Object binding patterns are not yet supported in the docs. Found ${d.name?.getText(n)} in ${e.name.getText(n)}`,
2378
2339
  n.fileName
2379
2340
  );
@@ -2389,13 +2350,13 @@ function Qo(e, t, i, n, s) {
2389
2350
  });
2390
2351
  }
2391
2352
  t.parameters.length === 0 && (t.parameters = void 0);
2392
- const a = i.getReturnTypeOfSignature(r), c = Me(i, a, n, s), l = i.signatureToString(r, e, cn, o.SignatureKind.Call);
2353
+ const a = i.getReturnTypeOfSignature(r), c = Me(i, a, n, s), l = i.signatureToString(r, e, rn, o.SignatureKind.Call);
2393
2354
  ue(e.name, i, t), t.return = {
2394
2355
  type: c
2395
2356
  }, t.signature = l.replace(" =>", ":");
2396
2357
  }
2397
- const Zo = (e) => e.modifiers?.some?.((t) => t.kind === o.SyntaxKind.AsyncKeyword) ?? !1;
2398
- function Yo(e, t, i, n) {
2358
+ const Ko = (e) => e.modifiers?.some?.((t) => t.kind === o.SyntaxKind.AsyncKeyword) ?? !1;
2359
+ function Wo(e, t, i, n) {
2399
2360
  const s = i.typeScriptTypeChecker, a = s.getTypeAtLocation(e).getProperty("emit");
2400
2361
  if (a?.valueDeclaration === void 0)
2401
2362
  return;
@@ -2420,11 +2381,11 @@ function Yo(e, t, i, n) {
2420
2381
  composed: void 0,
2421
2382
  privacy: void 0
2422
2383
  };
2423
- return ue(e.name, s, y), ea(e, y, n), y.privacy === void 0 ? y : void 0;
2384
+ return ue(e.name, s, y), Bo(e, y, n), y.privacy === void 0 ? y : void 0;
2424
2385
  }
2425
2386
  }
2426
2387
  const Ae = "createEvent";
2427
- function ea(e, t, i) {
2388
+ function Bo(e, t, i) {
2428
2389
  if (!e.initializer || !o.isCallExpression(e.initializer))
2429
2390
  return;
2430
2391
  const n = e.initializer;
@@ -2462,25 +2423,25 @@ function re(e, t) {
2462
2423
  )
2463
2424
  );
2464
2425
  }
2465
- const kt = "@arcgis/lumina-compiler";
2466
- class Je extends gs {
2426
+ const xt = "@arcgis/lumina-compiler";
2427
+ class Je extends ms {
2467
2428
  constructor(t, i) {
2468
2429
  super({ isFullApiExtraction: t.isFullApiExtraction, cwd: t.dir.root }), this.context = t, this.isPathOnly = i, this.localCssImports = void 0, this.localDeclaredComponents = void 0, this.indexedComponents = /* @__PURE__ */ new Map(), this.apiComponent = void 0, this.pairedSetter = void 0, this.copyDocDefinitions = void 0, this._resolvedInheritance = /* @__PURE__ */ new Map(), this.copyDocDefinitions = t.options.documentation?.copyDefinitions;
2469
2430
  }
2470
2431
  extract(t) {
2471
2432
  const i = super.extract(t);
2472
- return i.compiler.name = kt, i;
2433
+ return i.compiler.name = xt, i;
2473
2434
  }
2474
2435
  extractModules(t) {
2475
2436
  const i = super.extractModules(t);
2476
2437
  for (const n of i)
2477
2438
  for (const s of n.declarations)
2478
- "customElement" in s && (this.context.isFullApiExtraction && na(s, this.context, this.indexedComponents), this.inheritMembers(s, i), this.context.isFullApiExtraction && (s.members.sort(st), s.attributes?.sort(st), s.events?.sort(st)));
2439
+ "customElement" in s && (this.context.isFullApiExtraction && Uo(s, this.context, this.indexedComponents), this.inheritMembers(s, i), this.context.isFullApiExtraction && (s.members.sort(nt), s.attributes?.sort(nt), s.events?.sort(nt)));
2479
2440
  return i;
2480
2441
  }
2481
2442
  extractDeclarations(t) {
2482
2443
  return this.localDeclaredComponents = new Map(
2483
- zi(t.text)?.map(([i, n]) => [n, i]) ?? []
2444
+ Hi(t.text)?.map(([i, n]) => [n, i]) ?? []
2484
2445
  ), this.localDeclaredComponents.size === 0 ? [] : super.extractDeclarations(t);
2485
2446
  }
2486
2447
  extractDeclaration(t) {
@@ -2522,7 +2483,7 @@ class Je extends gs {
2522
2483
  * prefix (Arcgis), where as tag name always does. This also matches
2523
2484
  * Stencil's behavior.
2524
2485
  */
2525
- pascalCaseName: ws(n),
2486
+ pascalCaseName: vs(n),
2526
2487
  privacy: void 0,
2527
2488
  importPath: "",
2528
2489
  members: [],
@@ -2548,7 +2509,7 @@ class Je extends gs {
2548
2509
  }
2549
2510
  if (this.apiComponent = s, s.members = this.extractComponentMembers(t), this.context.isFullApiExtraction) {
2550
2511
  s.attributes = this.inferAttributes(s.members), this.indexedComponents.set(i, s);
2551
- const a = Ws(n, this.context, this.apiModule.path);
2512
+ const a = Js(n, this.context, this.apiModule.path);
2552
2513
  if (s.importPath = `components/${a}`, this.localCssImports !== void 0) {
2553
2514
  for (const f of this.localCssImports) {
2554
2515
  const y = this.context._cssImports.get(f);
@@ -2559,7 +2520,7 @@ class Je extends gs {
2559
2520
  this.localCssImports = void 0;
2560
2521
  }
2561
2522
  ue(t.name, this.context.typeScriptTypeChecker, s);
2562
- const c = ut(s.name);
2523
+ const c = pt(s.name);
2563
2524
  s.members.push({
2564
2525
  kind: "method",
2565
2526
  name: "componentOnReady",
@@ -2622,7 +2583,7 @@ ${c}.componentOnReady().then(() => {
2622
2583
  return i;
2623
2584
  }
2624
2585
  extractComponentMember(t, i) {
2625
- if (hs(t) || i === void 0) {
2586
+ if (fs(t) || i === void 0) {
2626
2587
  o.isPropertyDeclaration(t) && o.isIdentifier(t.name) && t.name.text === "shadowRootOptions" && t.initializer !== void 0 && o.isIdentifier(t.initializer) && t.initializer.text === "noShadowRoot" && (this.apiComponent.encapsulation = "none");
2627
2588
  return;
2628
2589
  }
@@ -2651,7 +2612,7 @@ ${c}.componentOnReady().then(() => {
2651
2612
  default: void 0,
2652
2613
  deprecated: void 0,
2653
2614
  readonly: c || (s ? t.modifiers?.some((d) => d.kind === o.SyntaxKind.ReadonlyKeyword) : o.isGetAccessor(t) && this.pairedSetter === void 0) ? !0 : void 0,
2654
- attribute: r === !1 ? void 0 : typeof r == "string" ? r : wt(i),
2615
+ attribute: r === !1 ? void 0 : typeof r == "string" ? r : bt(i),
2655
2616
  reflects: a || void 0,
2656
2617
  docsTags: void 0,
2657
2618
  getterType: void 0,
@@ -2659,20 +2620,20 @@ ${c}.componentOnReady().then(() => {
2659
2620
  inheritedFrom: void 0,
2660
2621
  privacy: void 0
2661
2622
  };
2662
- return this.context.isFullApiExtraction && (this.extractComponentFieldDetails(t, l), (r === void 0 && (l.type.values === void 0 || !oo(l.type.values)) || l.readonly && !l.reflects) && (l.attribute = void 0)), l;
2623
+ return this.context.isFullApiExtraction && (this.extractComponentFieldDetails(t, l), (r === void 0 && (l.type.values === void 0 || !Gr(l.type.values)) || l.readonly && !l.reflects) && (l.attribute = void 0)), l;
2663
2624
  }
2664
2625
  /**
2665
2626
  * Based on a `non-@property()` property, extract a public event if it is one.
2666
2627
  */
2667
2628
  extractComponentEvent(t, i) {
2668
- const n = Yo(t, i, this.context, this.file);
2629
+ const n = Wo(t, i, this.context, this.file);
2669
2630
  return n !== void 0 && this.copyDoc(this.copyDocDefinitions?.events?.[i], n, this.apiComponent), n;
2670
2631
  }
2671
2632
  /**
2672
2633
  * When doing full API extraction, extract additional details for a field.
2673
2634
  */
2674
2635
  extractComponentFieldDetails(t, i) {
2675
- const n = i.readonly === !0, s = this.context.typeScriptTypeChecker, r = s.getSymbolAtLocation(t.name), a = r === void 0 ? void 0 : Bt(s, r), c = new Set(a?.docsTags.map((h) => h.name) ?? []);
2636
+ const n = i.readonly === !0, s = this.context.typeScriptTypeChecker, r = s.getSymbolAtLocation(t.name), a = r === void 0 ? void 0 : Kt(s, r), c = new Set(a?.docsTags.map((h) => h.name) ?? []);
2676
2637
  ue(t.name, this.context.typeScriptTypeChecker, i, a);
2677
2638
  let l = !n && i.readonly === !0;
2678
2639
  const d = this.pairedSetter ?? t, p = i.default;
@@ -2682,15 +2643,15 @@ ${c}.componentOnReady().then(() => {
2682
2643
  // in the documentation. The full type is still present in the .d.ts files.
2683
2644
  i.name === "messageOverrides" ? {
2684
2645
  text: "Record<string, unknown>"
2685
- } : lo(this.context, d, f, this.file);
2646
+ } : Qr(this.context, d, f, this.file);
2686
2647
  const y = o.isPropertyDeclaration(t) && t.type !== void 0 && t.initializer !== void 0 && o.isPropertyAccessExpression(t.initializer) && o.isPropertyAccessExpression(t.initializer.expression) && t.initializer.expression.expression.kind === o.SyntaxKind.ThisKeyword && o.isIdentifier(t.initializer.expression.name) && o.isIdentifier(t.initializer.name);
2687
2648
  if ("initializer" in t && t.initializer !== void 0 && (!i.default || !i.description) || y) {
2688
2649
  const h = t.initializer, v = s.getSymbolAtLocation(h), S = v !== void 0 && ((v.flags ?? 0) & o.SymbolFlags.Alias) !== 0 ? s.getAliasedSymbol(v) : v, T = S?.getDeclarations() ?? [];
2689
2650
  if (S !== void 0) {
2690
- const $ = Bt(s, S);
2651
+ const $ = Kt(s, S);
2691
2652
  if ($.docsTags.length > 0) {
2692
2653
  $.docsTags = $.docsTags.filter(
2693
- (E) => !c.has(E.name) || vs.has(E.name)
2654
+ (E) => !c.has(E.name) || ys.has(E.name)
2694
2655
  );
2695
2656
  const b = i.description;
2696
2657
  ue(t.name, s, i, $), $.docsTags.forEach((E) => {
@@ -2722,11 +2683,11 @@ ${c}.componentOnReady().then(() => {
2722
2683
  * Find the properties given to the `@property()` decorator.
2723
2684
  */
2724
2685
  findPropertyOptions(t) {
2725
- const i = _t(t, "property");
2686
+ const i = Bt(t, "property");
2726
2687
  return i === void 0 ? void 0 : i.arguments?.find(o.isObjectLiteralExpression)?.properties ?? [];
2727
2688
  }
2728
2689
  extractComponentMethod(t, i) {
2729
- if (_t(t, "method") === void 0)
2690
+ if (Bt(t, "method") === void 0)
2730
2691
  return;
2731
2692
  const n = {
2732
2693
  kind: "method",
@@ -2739,12 +2700,12 @@ ${c}.componentOnReady().then(() => {
2739
2700
  inheritedFrom: void 0,
2740
2701
  docsTags: void 0,
2741
2702
  signature: "",
2742
- async: Zo(t) ? !0 : void 0,
2703
+ async: Ko(t) ? !0 : void 0,
2743
2704
  privacy: void 0
2744
2705
  };
2745
2706
  if (this.context.isFullApiExtraction) {
2746
2707
  const s = this.context.typeScriptTypeChecker;
2747
- Qo(t, n, s, this.file, this.context.dir), this.copyDoc(this.copyDocDefinitions?.methods?.[i], n, this.apiComponent);
2708
+ Jo(t, n, s, this.file, this.context.dir), this.copyDoc(this.copyDocDefinitions?.methods?.[i], n, this.apiComponent);
2748
2709
  }
2749
2710
  return n;
2750
2711
  }
@@ -2765,7 +2726,7 @@ ${c}.componentOnReady().then(() => {
2765
2726
  description: n.description,
2766
2727
  inheritedFrom: n.inheritedFrom,
2767
2728
  type: s === void 0 || s.length === 0 ? n.type : {
2768
- text: on(s),
2729
+ text: nn(s),
2769
2730
  references: void 0,
2770
2731
  values: s
2771
2732
  },
@@ -2838,20 +2799,20 @@ ${c}.componentOnReady().then(() => {
2838
2799
  const le = {
2839
2800
  name: "LitElement",
2840
2801
  package: "@arcgis/lumina"
2841
- }, st = (e, t) => e.name.localeCompare(t.name);
2842
- async function ta(e, t) {
2843
- t || (e.componentFilesPromise = xt(e, e.dir.srcComponents));
2844
- const i = await e.componentFilesPromise, n = await pa(e, i);
2802
+ }, nt = (e, t) => e.name.localeCompare(t.name);
2803
+ async function _o(e, t) {
2804
+ t || (e.componentFilesPromise = Pt(e, e.dir.srcComponents));
2805
+ const i = await e.componentFilesPromise, n = await Yo(e, i);
2845
2806
  await e.componentStoriesPromise, e._componentPathMapping = {}, e._localDefinedComponents = void 0;
2846
- const s = gn(n, e, !1);
2807
+ const s = mn(n, e, !1);
2847
2808
  e.privateApiJson = s;
2848
- const [r, a] = hn(s);
2809
+ const [r, a] = fn(s);
2849
2810
  return e.apiJsonComponents = a, e.apiJson = r, s;
2850
2811
  }
2851
- function ia(e, t, i) {
2852
- const n = e.getSourceFile(t, i), s = gn([n], e, !0), r = s.modules[0];
2812
+ function Ho(e, t, i) {
2813
+ const n = e.getSourceFile(t, i), s = mn([n], e, !0), r = s.modules[0];
2853
2814
  {
2854
- const f = hn(s)[0].modules[0], y = e.apiJson.modules.findIndex((v) => v.path === f.path), g = e.apiJson.modules[y], h = Array.from(e.apiJson.modules);
2815
+ const f = fn(s)[0].modules[0], y = e.apiJson.modules.findIndex((v) => v.path === f.path), g = e.apiJson.modules[y], h = Array.from(e.apiJson.modules);
2855
2816
  h.splice(y, 1, f), e.apiJson = { ...e.apiJson, modules: h }, e.apiJsonComponents = e.apiJsonComponents.filter(
2856
2817
  (v) => !g.declarations.includes(v)
2857
2818
  );
@@ -2873,11 +2834,11 @@ function ia(e, t, i) {
2873
2834
  }
2874
2835
  return d ||= m.length !== p.length, d ? void 0 : m;
2875
2836
  }
2876
- function gn(e, t, i) {
2837
+ function mn(e, t, i) {
2877
2838
  const n = t.options.apiJson?.Extractor ?? Je, r = new n(t, i).extract(e);
2878
2839
  return t.options.apiJson?.afterCreate?.(r, i), r;
2879
2840
  }
2880
- function hn(e) {
2841
+ function fn(e) {
2881
2842
  const t = { ...e, modules: [] }, i = [];
2882
2843
  for (const n of e.modules) {
2883
2844
  const s = { ...n, declarations: [] };
@@ -2893,8 +2854,8 @@ function hn(e) {
2893
2854
  }
2894
2855
  return [t, i];
2895
2856
  }
2896
- function na(e, t, i) {
2897
- const n = sa(i, e);
2857
+ function Uo(e, t, i) {
2858
+ const n = zo(i, e);
2898
2859
  O(e, n, t);
2899
2860
  for (const s of e.members) {
2900
2861
  if (s.kind === "field")
@@ -2931,23 +2892,23 @@ function na(e, t, i) {
2931
2892
  }
2932
2893
  function Ie(e, t, i) {
2933
2894
  e !== void 0 && (e.references?.reduce(
2934
- (n, s) => ra(s, t, i, n),
2895
+ (n, s) => qo(s, t, i, n),
2935
2896
  0
2936
2897
  ), e.text = e.text.replaceAll(
2937
- da,
2938
- (n, s) => At(t.get(s)) ?? n
2939
- ), e.values?.forEach(oa, t));
2898
+ Zo,
2899
+ (n, s) => kt(t.get(s)) ?? n
2900
+ ), e.values?.forEach(Go, t));
2940
2901
  }
2941
2902
  function O(e, t, i) {
2942
- if (e.description && (e.description = e.description.replaceAll(ui, t).replaceAll(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl)), e.docsTags)
2903
+ if (e.description && (e.description = e.description.replaceAll(di, t).replaceAll(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl)), e.docsTags)
2943
2904
  for (const n of e.docsTags)
2944
- n.text && (n.text = n.text.replaceAll(ui, t).replaceAll(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl));
2905
+ n.text && (n.text = n.text.replaceAll(di, t).replaceAll(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl));
2945
2906
  typeof e.deprecated == "string" && (e.deprecated = e.deprecated.replaceAll(
2946
2907
  i.alternativeDocumentationUrl,
2947
2908
  i.normalizedDocumentationUrl
2948
2909
  ));
2949
2910
  }
2950
- const ui = /\{@link ([^}]+)\}/gu, sa = (e, t) => (i, n) => {
2911
+ const di = /\{@link ([^}]+)\}/gu, zo = (e, t) => (i, n) => {
2951
2912
  let s = n.indexOf(" ");
2952
2913
  s === -1 && (s = n.length);
2953
2914
  const r = n.slice(0, s), a = n.slice(s + 1);
@@ -2971,7 +2932,7 @@ const ui = /\{@link ([^}]+)\}/gu, sa = (e, t) => (i, n) => {
2971
2932
  );
2972
2933
  return `[${a || (d === t ? l : `${d.tagName}.${l}`)}](${p}#${l})`;
2973
2934
  };
2974
- function ra(e, t, i, n) {
2935
+ function qo(e, t, i, n) {
2975
2936
  if (e.viewUrl !== void 0 && (e.viewUrl = e.viewUrl.replace(
2976
2937
  i.alternativeDocumentationUrl,
2977
2938
  i.normalizedDocumentationUrl
@@ -2983,18 +2944,18 @@ function ra(e, t, i, n) {
2983
2944
  const s = t.get(e.name);
2984
2945
  if (s !== void 0) {
2985
2946
  const r = e.name.length;
2986
- e.name = At(s);
2987
- const a = e.name.length - r - mi;
2988
- e.viewUrl = s.demos?.at(0)?.url.replace(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl), e.start = e.start - mi, e.end = e.end + a, n += a - la;
2947
+ e.name = kt(s);
2948
+ const a = e.name.length - r - pi;
2949
+ e.viewUrl = s.demos?.at(0)?.url.replace(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl), e.start = e.start - pi, e.end = e.end + a, n += a - Qo;
2989
2950
  }
2990
2951
  }
2991
2952
  return n;
2992
2953
  }
2993
- function oa(e) {
2994
- e.type.startsWith("ToElement<") && (e.type = At(this.get(e.type.slice(10, -1))) ?? e.type);
2954
+ function Go(e) {
2955
+ e.type.startsWith("ToElement<") && (e.type = kt(this.get(e.type.slice(10, -1))) ?? e.type);
2995
2956
  }
2996
- const At = (e) => e ? `HTML${e.pascalCaseName}Element` : void 0, aa = "ToElement<", mi = aa.length, ca = ">", la = ca.length, da = /ToElement<(\w+)>/gu;
2997
- async function pa(e, t) {
2957
+ const kt = (e) => e ? `HTML${e.pascalCaseName}Element` : void 0, Vo = "ToElement<", pi = Vo.length, Xo = ">", Qo = Xo.length, Zo = /ToElement<(\w+)>/gu;
2958
+ async function Yo(e, t) {
2998
2959
  if (e.viteCommand === "serve" && (Object.hasOwn(e, "typeScriptHost") || (e.typeScriptHost = o.createCompilerHost(e.typeScriptConfig, !1))), e.typeScriptProgram !== void 0) {
2999
2960
  const i = e.typeScriptProgram.getSourceFiles(), n = new Set(t);
3000
2961
  return i.filter((s) => n.has(s.fileName));
@@ -3006,36 +2967,36 @@ async function pa(e, t) {
3006
2967
  })
3007
2968
  );
3008
2969
  }
3009
- async function vn(e) {
3010
- return ve ??= ma(e), await ve;
2970
+ async function yn(e) {
2971
+ return ve ??= ta(e), await ve;
3011
2972
  }
3012
- function ua() {
3013
- if (gt === void 0)
2973
+ function ea() {
2974
+ if (yt === void 0)
3014
2975
  throw Error(
3015
2976
  w(
3016
2977
  "@arcgis/lumina:retrieveComponentDependencies",
3017
2978
  "Component dependencies have not yet been initialized. Await componentDependenciesPromise promise first."
3018
2979
  )
3019
2980
  );
3020
- return gt;
2981
+ return yt;
3021
2982
  }
3022
- function Sn() {
3023
- if (ht === void 0)
2983
+ function gn() {
2984
+ if (gt === void 0)
3024
2985
  throw Error(
3025
2986
  w(
3026
2987
  "@arcgis/lumina:retrieveFlatComponentDependencies",
3027
2988
  "Component dependencies have not yet been initialized. Await componentDependenciesPromise promise first."
3028
2989
  )
3029
2990
  );
3030
- return ht;
2991
+ return gt;
3031
2992
  }
3032
- async function ma(e) {
2993
+ async function ta(e) {
3033
2994
  const t = R(e), i = t.dependencies ?? {}, n = t.peerDependencies ?? {}, r = (await Promise.all(
3034
- [...Object.keys(i), ...Object.keys(n)].filter((a) => !fa.has(a)).flatMap(async (a) => await bn(a, e))
2995
+ [...Object.keys(i), ...Object.keys(n)].filter((a) => !ia.has(a)).flatMap(async (a) => await hn(a, e))
3035
2996
  )).filter(j);
3036
- return gt ??= r, ht = Object.fromEntries(r.flatMap((a) => Object.entries(a.components))), r;
2997
+ return yt ??= r, gt = Object.fromEntries(r.flatMap((a) => Object.entries(a.components))), r;
3037
2998
  }
3038
- const fa = /* @__PURE__ */ new Set([
2999
+ const ia = /* @__PURE__ */ new Set([
3039
3000
  "@arcgis/arcade-languageservice",
3040
3001
  "@arcgis/components-build-utils",
3041
3002
  "@arcgis/components-utils",
@@ -3071,30 +3032,30 @@ const fa = /* @__PURE__ */ new Set([
3071
3032
  "vscode-languageserver-textdocument",
3072
3033
  "vscode-languageserver-types"
3073
3034
  ]);
3074
- let gt, ht, ve;
3075
- async function bn(e, t) {
3076
- const i = await _e(e, t), n = await He(i), s = "exports" in n, r = ba.bind(void 0, s), a = "@stencil/core" in (n.dependencies ?? {}) || "@stencil/core" in (n.devDependencies ?? {}), c = u.join(i, "dist/esm/loader.js");
3035
+ let yt, gt, ve;
3036
+ async function hn(e, t) {
3037
+ const i = await _e(e, t), n = await He(i), s = "exports" in n, r = ca.bind(void 0, s), a = "@stencil/core" in (n.dependencies ?? {}) || "@stencil/core" in (n.devDependencies ?? {}), c = u.join(i, "dist/esm/loader.js");
3077
3038
  if (a ? await U(c) : !1) {
3078
- const y = await J(c, "utf8"), g = ya(y, "bootstrapLazy("), h = y.indexOf(", options", g), v = y.slice(g, h), S = v.startsWith('JSON.parse("') ? v.slice(12, -2).replaceAll('\\"', '"') : v;
3039
+ const y = await J(c, "utf8"), g = na(y, "bootstrapLazy("), h = y.indexOf(", options", g), v = y.slice(g, h), S = v.startsWith('JSON.parse("') ? v.slice(12, -2).replaceAll('\\"', '"') : v;
3079
3040
  try {
3080
- const T = JSON.parse(S), x = va(T, { packageName: e, getImportPath: r });
3041
+ const T = JSON.parse(S), x = oa(T, { packageName: e, getImportPath: r });
3081
3042
  return { packageName: e, type: "stencil", components: x };
3082
3043
  } catch (T) {
3083
3044
  C.warn("@arcgis/lumina", `Failed to parse dist/esm/loader.js for ${e}.
3084
3045
  Error: ${String(T)}`);
3085
3046
  }
3086
3047
  }
3087
- const d = fi(n.customElements);
3048
+ const d = ui(n.customElements);
3088
3049
  if (d != null) {
3089
- const y = u.join(i, d), g = JSON.parse(await J(y, "utf-8")), h = ga(g), v = wn(g, {
3050
+ const y = u.join(i, d), g = JSON.parse(await J(y, "utf-8")), h = sa(g), v = vn(g, {
3090
3051
  packageName: e,
3091
3052
  getImportPath: r
3092
3053
  });
3093
3054
  return { type: h ? "@arcgis/lumina" : "unknown", packageName: e, components: v };
3094
3055
  }
3095
- const p = fi(n["web-types"]);
3056
+ const p = ui(n["web-types"]);
3096
3057
  if (p != null) {
3097
- const y = u.join(i, p), g = JSON.parse(await J(y, "utf-8")), h = ha(g, {
3058
+ const y = u.join(i, p), g = JSON.parse(await J(y, "utf-8")), h = ra(g, {
3098
3059
  packageName: e,
3099
3060
  getImportPath: r,
3100
3061
  packageRoot: i
@@ -3103,19 +3064,19 @@ Error: ${String(T)}`);
3103
3064
  }
3104
3065
  const m = u.join(i, "dist/components");
3105
3066
  if (await U(m)) {
3106
- const y = await Sa(m, {
3067
+ const y = await aa(m, {
3107
3068
  packageName: e,
3108
3069
  getImportPath: r
3109
3070
  });
3110
3071
  return { type: "unknown", packageName: e, components: y };
3111
3072
  }
3112
3073
  }
3113
- const fi = (e) => Array.isArray(e) ? e[0] : e;
3114
- function ya(e, t) {
3074
+ const ui = (e) => Array.isArray(e) ? e[0] : e;
3075
+ function na(e, t) {
3115
3076
  const i = e.indexOf(t);
3116
3077
  return i === -1 ? -1 : i + t.length;
3117
3078
  }
3118
- function wn(e, t) {
3079
+ function vn(e, t) {
3119
3080
  const i = {};
3120
3081
  for (const n of e.modules ?? [])
3121
3082
  if (n.declarations !== void 0)
@@ -3133,7 +3094,7 @@ function wn(e, t) {
3133
3094
  }
3134
3095
  return i;
3135
3096
  }
3136
- const ga = (e) => e.compiler?.name === kt, ha = (e, t) => Object.fromEntries(
3097
+ const sa = (e) => e.compiler?.name === xt, ra = (e, t) => Object.fromEntries(
3137
3098
  (e.contributions?.html?.elements ?? e.contributions?.html?.tags)?.map(
3138
3099
  (i) => [
3139
3100
  i.name,
@@ -3144,7 +3105,7 @@ const ga = (e) => e.compiler?.name === kt, ha = (e, t) => Object.fromEntries(
3144
3105
  }
3145
3106
  ]
3146
3107
  ) ?? []
3147
- ), va = (e, t) => Object.fromEntries(
3108
+ ), oa = (e, t) => Object.fromEntries(
3148
3109
  e.flatMap(
3149
3110
  ([i, n]) => n.map(
3150
3111
  ([s, r, a]) => [
@@ -3162,7 +3123,7 @@ const ga = (e) => e.compiler?.name === kt, ha = (e, t) => Object.fromEntries(
3162
3123
  ]
3163
3124
  )
3164
3125
  )
3165
- ), Sa = async (e, t) => Object.fromEntries(
3126
+ ), aa = async (e, t) => Object.fromEntries(
3166
3127
  (await Ue(e)).filter((i) => i.endsWith(".d.ts")).map((i) => {
3167
3128
  const n = i.slice(0, -5);
3168
3129
  return [
@@ -3174,16 +3135,16 @@ const ga = (e) => e.compiler?.name === kt, ha = (e, t) => Object.fromEntries(
3174
3135
  }
3175
3136
  ];
3176
3137
  })
3177
- ), ba = (e, t) => e ? `components/${t}` : `dist/components/${t}.js`, wa = (e) => e.startsWith("/") ? e : `/${e}`, It = (e, t) => `${e}@fs${wa(t)}`;
3178
- function Ge(e = R(), t = !1, i = e.name === "@esri/calcite-components") {
3138
+ ), ca = (e, t) => e ? `components/${t}` : `dist/components/${t}.js`, la = (e) => e.startsWith("/") ? e : `/${e}`, At = (e, t) => `${e}@fs${la(t)}`;
3139
+ function qe(e = R(), t = !1, i = e.name === "@esri/calcite-components") {
3179
3140
  const n = e.version.includes("next"), s = e.name === "@esri/calcite-components";
3180
3141
  if (s && n)
3181
3142
  return `https://cdn.jsdelivr.net/npm/@esri/calcite-components@${e.version}/dist/calcite/`;
3182
- const r = t || n ? "jsdev.arcgis.com" : "js.arcgis.com", a = Ta(e.name), c = Ea(e.version, i);
3143
+ const r = t || n ? "jsdev.arcgis.com" : "js.arcgis.com", a = da(e.name), c = pa(e.version, i);
3183
3144
  return a.length === 0 ? `https://${r}/${c}/` : s ? `https://${r}/${a}/${c}/` : `https://${r}/${c}/${a}/`;
3184
3145
  }
3185
- const Ta = (e) => e.split("/").pop() ?? e;
3186
- function Ea(e, t) {
3146
+ const da = (e) => e.split("/").pop() ?? e;
3147
+ function pa(e, t) {
3187
3148
  if (/\d+\.\d+\.\d+-(?:.*)$/u.test(e))
3188
3149
  return "next";
3189
3150
  const n = /^(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)/u, s = e.match(n);
@@ -3193,8 +3154,8 @@ function Ea(e, t) {
3193
3154
  }
3194
3155
  return "next";
3195
3156
  }
3196
- const Ca = ["keyed", "ref", "repeat", "live"], ae = "staticHtml", Z = "staticSvg", ce = "html", oe = "svg", Tn = Symbol("maybe HTML namespace or maybe SVG"), En = "css", Cn = "mathml", $n = [En, ce, Cn, ae, Z, oe], $a = new Set($n), Pa = ["safeClassMap", "safeStyleMap", "deferLoad"], xa = "nothing", ka = [...Ca, ...$n, ...Pa, xa], Ke = (e) => o.isJsxElement(e) || o.isJsxSelfClosingElement(e) || o.isJsxFragment(e);
3197
- function yi(e, t, i) {
3157
+ const ua = ["keyed", "ref", "repeat", "live"], ae = "staticHtml", Z = "staticSvg", ce = "html", oe = "svg", Sn = Symbol("maybe HTML namespace or maybe SVG"), bn = "css", wn = "mathml", Tn = [bn, ce, wn, ae, Z, oe], ma = new Set(Tn), fa = ["safeClassMap", "safeStyleMap", "deferLoad"], ya = "nothing", ga = [...ua, ...Tn, ...fa, ya], Ke = (e) => o.isJsxElement(e) || o.isJsxSelfClosingElement(e) || o.isJsxFragment(e);
3158
+ function mi(e, t, i) {
3198
3159
  if (ne(e))
3199
3160
  return e;
3200
3161
  {
@@ -3213,14 +3174,14 @@ function ne(e) {
3213
3174
  return (
3214
3175
  // Inlined string literal
3215
3176
  typeof e == "string" || // Syntax kinds that are never undefined
3216
- Aa.has(e.kind) || // Ternary with both branches never undefined
3177
+ ha.has(e.kind) || // Ternary with both branches never undefined
3217
3178
  o.isConditionalExpression(e) && ne(e.whenTrue) && ne(e.whenFalse) || // Binary expression with operator that never results in undefined Or both sides are definitely not undefined
3218
- o.isBinaryExpression(e) && (Ia.has(e.operatorToken.kind) || ne(e.left) && ne(e.right)) || // `as`, `satisfies`, `()` with definitely not undefined expression
3179
+ o.isBinaryExpression(e) && (va.has(e.operatorToken.kind) || ne(e.left) && ne(e.right)) || // `as`, `satisfies`, `()` with definitely not undefined expression
3219
3180
  (o.isParenthesizedExpression(e) || o.isSatisfiesExpression(e) || o.isAsExpression(e)) && ne(e.expression) || // JSX that got converted to html`<p>Something</p>`
3220
- o.isTaggedTemplateExpression(e) && o.isIdentifier(e.tag) && $a.has(e.tag.text)
3181
+ o.isTaggedTemplateExpression(e) && o.isIdentifier(e.tag) && ma.has(e.tag.text)
3221
3182
  );
3222
3183
  }
3223
- const Aa = /* @__PURE__ */ new Set([
3184
+ const ha = /* @__PURE__ */ new Set([
3224
3185
  o.SyntaxKind.NumericLiteral,
3225
3186
  o.SyntaxKind.BigIntLiteral,
3226
3187
  o.SyntaxKind.StringLiteral,
@@ -3239,7 +3200,7 @@ const Aa = /* @__PURE__ */ new Set([
3239
3200
  o.SyntaxKind.ClassExpression,
3240
3201
  // Trust? Trust.
3241
3202
  o.SyntaxKind.NonNullExpression
3242
- ]), Ia = /* @__PURE__ */ new Set([
3203
+ ]), va = /* @__PURE__ */ new Set([
3243
3204
  o.SyntaxKind.PlusEqualsToken,
3244
3205
  o.SyntaxKind.MinusEqualsToken,
3245
3206
  o.SyntaxKind.AsteriskAsteriskEqualsToken,
@@ -3274,11 +3235,11 @@ const Aa = /* @__PURE__ */ new Set([
3274
3235
  o.SyntaxKind.SlashToken,
3275
3236
  o.SyntaxKind.PercentToken,
3276
3237
  o.SyntaxKind.AsteriskAsteriskToken
3277
- ]), La = {
3238
+ ]), Sa = {
3278
3239
  property(e, t, i, n) {
3279
- const s = Fa(n, i, e), r = s?.type === "stringifiedReflected", a = s?.type === "reflected" || r;
3240
+ const s = ba(n, i, e), r = s?.type === "stringifiedReflected", a = s?.type === "reflected" || r;
3280
3241
  if (a) {
3281
- const f = ot(t);
3242
+ const f = rt(t);
3282
3243
  if (f === !0)
3283
3244
  return [s.name];
3284
3245
  if (f === !1)
@@ -3289,27 +3250,27 @@ const Aa = /* @__PURE__ */ new Set([
3289
3250
  return [s.name, ...c];
3290
3251
  const [d, p] = c, m = s?.type === "stringifiedNonReflected";
3291
3252
  if (r || m) {
3292
- const f = yi(
3253
+ const f = mi(
3293
3254
  p,
3294
3255
  e,
3295
3256
  m ? "" : void 0
3296
- ), g = i === "value" && (n === "input" || n === "textarea" || n === Re) ? Da(f, e) : f;
3257
+ ), g = i === "value" && (n === "input" || n === "textarea" || n === Re) ? Ta(f, e) : f;
3297
3258
  if (g !== p)
3298
3259
  return [m ? `.${i}` : s.name, d, g];
3299
3260
  }
3300
3261
  return [`.${i}`, ...c];
3301
3262
  },
3302
3263
  attribute(e, t, i) {
3303
- const n = t === void 0 || ot(t);
3264
+ const n = t === void 0 || rt(t);
3304
3265
  if (n === !0)
3305
3266
  return [i];
3306
3267
  if (n === !1)
3307
3268
  return [];
3308
- const s = Ne(e, t, !0), a = s[0] !== "=" ? s : [s[0], yi(s[1], e)];
3269
+ const s = Ne(e, t, !0), a = s[0] !== "=" ? s : [s[0], mi(s[1], e)];
3309
3270
  return [i, ...a];
3310
3271
  },
3311
3272
  booleanAttribute(e, t, i) {
3312
- const n = t === void 0 || ot(t);
3273
+ const n = t === void 0 || rt(t);
3313
3274
  return n === !0 ? [i] : n === !1 ? [] : [`?${i}`, ...Ne(e, t, !1)];
3314
3275
  },
3315
3276
  event(e, t, i) {
@@ -3317,8 +3278,8 @@ const Aa = /* @__PURE__ */ new Set([
3317
3278
  throw new Error(
3318
3279
  `Event prop value must be an expression. Found ${String(t?.getText(e.sourceFile))}`
3319
3280
  );
3320
- const n = i.slice(2), s = ut(n);
3321
- return [`@${en.has(s) ? n.toLowerCase() : ut(n)}=`, ...Nt(e, t, void 0)];
3281
+ const n = i.slice(2), s = pt(n);
3282
+ return [`@${Zi.has(s) ? n.toLowerCase() : pt(n)}=`, ...Ft(e, t, void 0)];
3322
3283
  },
3323
3284
  directives(e, t) {
3324
3285
  if (t === void 0 || !o.isJsxExpression(t))
@@ -3350,41 +3311,41 @@ const Aa = /* @__PURE__ */ new Set([
3350
3311
  ])
3351
3312
  ];
3352
3313
  },
3353
- class: hi,
3354
- style: hi,
3355
- key: (e, t) => [Lt(t, e.sourceFile)],
3314
+ class: yi,
3315
+ style: yi,
3316
+ key: (e, t) => [It(t, e.sourceFile)],
3356
3317
  deferLoad(e, t, i, n) {
3357
3318
  if (typeof n != "string")
3358
3319
  throw Error("deferLoad prop is not currently supported on dynamic tag names.");
3359
- if (!Pt(n))
3320
+ if (!$t(n))
3360
3321
  throw Error(`deferLoad prop is only supported on custom elements. Found ${String(n)}`);
3361
3322
  e.neededImports.add("deferLoad");
3362
3323
  const s = e.importRenames.deferLoad;
3363
3324
  return [o.factory.createIdentifier(s)];
3364
3325
  }
3365
3326
  };
3366
- function Fa(e, t, i) {
3327
+ function ba(e, t, i) {
3367
3328
  if (typeof e == "string") {
3368
3329
  const r = (i.externalComponents[e] ?? i.localComponents[e])?.propToAttribute?.[t];
3369
3330
  if (r !== void 0)
3370
3331
  return { name: r, type: "reflected" };
3371
3332
  }
3372
- const n = rt(W.common, t);
3333
+ const n = st(B.common, t);
3373
3334
  if (n !== void 0)
3374
3335
  return n;
3375
3336
  if (typeof e == "string") {
3376
- const s = rt(W.perElement[e], t);
3337
+ const s = st(B.perElement[e], t);
3377
3338
  if (s !== void 0)
3378
3339
  return s;
3379
3340
  } else {
3380
- const s = Object.values(W.perElement).map(
3381
- (a) => rt(a, t)
3341
+ const s = Object.values(B.perElement).map(
3342
+ (a) => st(a, t)
3382
3343
  ), r = ye(s, (a) => a?.type === "stringifiedNonReflected" ? a : void 0) ?? ye(s, (a) => a?.type === "stringifiedReflected" ? a : void 0);
3383
3344
  if (r !== void 0)
3384
3345
  return r;
3385
3346
  }
3386
3347
  }
3387
- function rt(e, t) {
3348
+ function st(e, t) {
3388
3349
  const i = e?.reflected?.[t];
3389
3350
  if (i !== void 0)
3390
3351
  return { name: i, type: "reflected" };
@@ -3395,14 +3356,14 @@ function rt(e, t) {
3395
3356
  if (s !== void 0)
3396
3357
  return { name: s, type: "stringifiedNonReflected" };
3397
3358
  }
3398
- function Lt(e, t) {
3359
+ function It(e, t) {
3399
3360
  if (e !== void 0 && o.isJsxExpression(e) && e.expression !== void 0)
3400
3361
  return e.expression;
3401
3362
  if (e !== void 0 && o.isStringLiteral(e))
3402
3363
  return e;
3403
3364
  throw new Error(`key prop value must be an expression. Found ${String(e?.getText(t))}`);
3404
3365
  }
3405
- function ot(e) {
3366
+ function rt(e) {
3406
3367
  if (e === void 0)
3407
3368
  return !0;
3408
3369
  if (o.isJsxExpression(e)) {
@@ -3418,10 +3379,10 @@ function Ne(e, t, i = !1) {
3418
3379
  `Invalid JSX syntax detected or there is a bug in Lumina. Found ${t.getText(e.sourceFile)}. Expected JSX attribute value to be wrapped in { }`
3419
3380
  );
3420
3381
  if (o.isStringLiteral(t))
3421
- return gi(t, i);
3382
+ return fi(t, i);
3422
3383
  if (o.isJsxExpression(t) && t.expression) {
3423
3384
  if (o.isStringLiteral(t.expression))
3424
- return gi(t.expression, i);
3385
+ return fi(t.expression, i);
3425
3386
  if (i) {
3426
3387
  if (o.isNumericLiteral(t.expression))
3427
3388
  return [`=${t.expression.text}`];
@@ -3429,16 +3390,16 @@ function Ne(e, t, i = !1) {
3429
3390
  return [`=${t.expression.getText(e.sourceFile)}`];
3430
3391
  }
3431
3392
  }
3432
- return ["=", ...Nt(e, t, void 0)];
3393
+ return ["=", ...Ft(e, t, void 0)];
3433
3394
  }
3434
- function gi(e, t) {
3395
+ function fi(e, t) {
3435
3396
  if (!t)
3436
3397
  return ["=", e];
3437
3398
  const i = e.text;
3438
3399
  if (i.length === 0)
3439
3400
  return [];
3440
- const n = nn(i);
3441
- if (Gr(n)) {
3401
+ const n = Yi(i);
3402
+ if (Rr(n)) {
3442
3403
  const s = n.replaceAll('"', "&#34;");
3443
3404
  if (s.length > n.length) {
3444
3405
  const r = n.replaceAll("'", "&#39;");
@@ -3449,7 +3410,7 @@ function gi(e, t) {
3449
3410
  } else
3450
3411
  return [`=${n}`];
3451
3412
  }
3452
- function hi(e, t, i) {
3413
+ function yi(e, t, i) {
3453
3414
  if (t !== void 0 && o.isStringLiteral(t))
3454
3415
  return [`${i}="${t.text}"`];
3455
3416
  if (t === void 0 || !o.isJsxExpression(t) || t.expression === void 0)
@@ -3457,7 +3418,7 @@ function hi(e, t, i) {
3457
3418
  `${i} prop value must be an expression. Found ${String(t?.getText(e.sourceFile))}`
3458
3419
  );
3459
3420
  const n = t.expression;
3460
- if (Na(n)) {
3421
+ if (wa(n)) {
3461
3422
  const r = i === "class" ? "safeClassMap" : "safeStyleMap";
3462
3423
  e.neededImports.add(r);
3463
3424
  const a = e.importRenames[r], c = o.factory.createCallExpression(o.factory.createIdentifier(a), void 0, [
@@ -3467,18 +3428,18 @@ function hi(e, t, i) {
3467
3428
  } else
3468
3429
  return [i, ...Ne(e, t, !0)];
3469
3430
  }
3470
- const Na = (e) => o.isObjectLiteralExpression(e) || o.isPropertyAccessExpression(e) || o.isIdentifier(e) || o.isCallExpression(e) || o.isBinaryExpression(e) || o.isConditionalExpression(e);
3471
- function Da(e, t) {
3431
+ const wa = (e) => o.isObjectLiteralExpression(e) || o.isPropertyAccessExpression(e) || o.isIdentifier(e) || o.isCallExpression(e) || o.isBinaryExpression(e) || o.isConditionalExpression(e);
3432
+ function Ta(e, t) {
3472
3433
  t.neededImports.add("live");
3473
3434
  const i = t.importRenames.live;
3474
3435
  return o.factory.createCallExpression(o.factory.createIdentifier(i), void 0, [
3475
3436
  typeof e == "string" ? o.factory.createStringLiteral(e) : e
3476
3437
  ]);
3477
3438
  }
3478
- function ja(e) {
3479
- if (e && o.isJsxExpression(e) && e.expression && o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text in vi && e.expression.arguments.length <= 1)
3439
+ function Ea(e) {
3440
+ if (e && o.isJsxExpression(e) && e.expression && o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text in gi && e.expression.arguments.length <= 1)
3480
3441
  return {
3481
- propType: vi[e.expression.expression.text],
3442
+ propType: gi[e.expression.expression.text],
3482
3443
  // To simplify checking logic in convertProps, wrap expression in JSX expression
3483
3444
  initializer: o.factory.createJsxExpression(
3484
3445
  void 0,
@@ -3487,21 +3448,21 @@ function ja(e) {
3487
3448
  )
3488
3449
  };
3489
3450
  }
3490
- const vi = {
3451
+ const gi = {
3491
3452
  bindProperty: "property",
3492
3453
  bindAttribute: "attribute",
3493
3454
  bindBooleanAttribute: "booleanAttribute",
3494
3455
  bindEvent: "event"
3495
3456
  };
3496
- function Ra(e, t, i) {
3497
- return Oa.has(e) ? e : e.startsWith("on") && t !== void 0 && o.isJsxExpression(t) && t.expression !== void 0 ? "event" : (Qi.has(e) || e.includes("-")) && (e !== "itemId" || i !== "arcgis-map" && i !== "arcgis-scene") ? "attribute" : !Pt(i) && (Zi.has(e) || (i === ft ? !1 : i === Re ? (
3457
+ function Ca(e, t, i) {
3458
+ return Pa.has(e) ? e : e.startsWith("on") && t !== void 0 && o.isJsxExpression(t) && t.expression !== void 0 ? "event" : (Vi.has(e) || e.includes("-")) && (e !== "itemId" || i !== "arcgis-map" && i !== "arcgis-scene") ? "attribute" : !$t(i) && (Xi.has(e) || (i === mt ? !1 : i === Re ? (
3498
3459
  // When tag name is dynamic, we can't help but check if the prop name matches an "always attribute" in any html element
3499
- Object.values(yt).some((r) => r.has(e))
3500
- ) : yt[i]?.has(e) === !0)) ? Yt.has(e) ? "booleanAttribute" : "attribute" : i === "svg" || i === "math" || i === ft || i !== Re && (Ct.has(i) || $t.has(i)) ? e in W.common.reflected || e in W.common.stringifiedReflected || e in W.common.stringifiedNonReflected ? "property" : Yt.has(e) ? "booleanAttribute" : "attribute" : "property";
3460
+ Object.values(ft).some((r) => r.has(e))
3461
+ ) : ft[i]?.has(e) === !0)) ? Zt.has(e) ? "booleanAttribute" : "attribute" : i === "svg" || i === "math" || i === mt || i !== Re && (Et.has(i) || Ct.has(i)) ? e in B.common.reflected || e in B.common.stringifiedReflected || e in B.common.stringifiedNonReflected ? "property" : Zt.has(e) ? "booleanAttribute" : "attribute" : "property";
3501
3462
  }
3502
- const Ma = ["class", "style", "ref", "directives", "key", "deferLoad"], Oa = new Set(Ma), Ja = (e) => typeof e != "string" || e.trim().length > 0;
3503
- function Ve({ key: e, parts: t, litTag: i }, n) {
3504
- const s = Ka(t);
3463
+ const $a = ["class", "style", "ref", "directives", "key", "deferLoad"], Pa = new Set($a), xa = (e) => typeof e != "string" || e.trim().length > 0;
3464
+ function Ge({ key: e, parts: t, litTag: i }, n) {
3465
+ const s = ka(t);
3505
3466
  if (s.length % 2 === 0)
3506
3467
  throw new Error("Normalized template parts array length must be odd");
3507
3468
  const [r, ...a] = s;
@@ -3509,9 +3470,9 @@ function Ve({ key: e, parts: t, litTag: i }, n) {
3509
3470
  throw new Error("First normalized template part must be a string");
3510
3471
  if (i === void 0) {
3511
3472
  if (a.length === 0)
3512
- return at(n, e, o.factory.createStringLiteral(r));
3473
+ return ot(n, e, o.factory.createStringLiteral(r));
3513
3474
  if (r === "" && a.length === 2 && a[1] === "")
3514
- return at(
3475
+ return ot(
3515
3476
  n,
3516
3477
  e,
3517
3478
  typeof a[0] == "string" ? o.factory.createStringLiteral(r) : a[0]
@@ -3519,17 +3480,14 @@ function Ve({ key: e, parts: t, litTag: i }, n) {
3519
3480
  }
3520
3481
  const c = typeof i == "string" ? i : ce;
3521
3482
  n.neededImports.add(c);
3522
- const l = n.importRenames[c], d = ze(r), p = o.factory.createTaggedTemplateExpression(
3483
+ const l = n.importRenames[c], d = o.factory.createTaggedTemplateExpression(
3523
3484
  o.factory.createIdentifier(l),
3524
3485
  void 0,
3525
- a.length === 0 ? o.factory.createNoSubstitutionTemplateLiteral(d, d) : o.factory.createTemplateExpression(
3526
- o.factory.createTemplateHead(d, d),
3527
- Ba(a)
3528
- )
3486
+ a.length === 0 ? o.factory.createNoSubstitutionTemplateLiteral(r) : o.factory.createTemplateExpression(o.factory.createTemplateHead(r), Aa(a))
3529
3487
  );
3530
- return at(n, e, p);
3488
+ return ot(n, e, d);
3531
3489
  }
3532
- const Ka = (e) => e.reduce(
3490
+ const ka = (e) => e.reduce(
3533
3491
  (t, i, n) => {
3534
3492
  const s = t.at(-1), r = typeof s == "string", a = typeof i == "string";
3535
3493
  if (r && a)
@@ -3539,7 +3497,7 @@ const Ka = (e) => e.reduce(
3539
3497
  },
3540
3498
  [""]
3541
3499
  );
3542
- function Ba(e) {
3500
+ function Aa(e) {
3543
3501
  if (!(e.length % 2 === 0))
3544
3502
  throw new Error("templatePartsToSpans should be called with normalized parts array without the first item");
3545
3503
  const i = e.length / 2;
@@ -3550,55 +3508,48 @@ function Ba(e) {
3550
3508
  const c = r + 1, l = e[c];
3551
3509
  if (typeof l != "string")
3552
3510
  throw new Error("Expected to receive a normalized array of parts");
3553
- const d = s === i - 1, p = ze(l);
3511
+ const d = s === i - 1;
3554
3512
  return o.factory.createTemplateSpan(
3555
3513
  a,
3556
- /*
3557
- * We pass the 2nd parameter (rawText), or else new-line characters will
3558
- * be escaped. Technically the first parameter should be escaped string in
3559
- * such case, but if rawText is present, first parameter is ignored
3560
- * according to the source code:
3561
- * https://github.com/microsoft/TypeScript/blob/0b37062eb07d1666245a02471b7d0e80c5d5aa5d/src/services/inlayHints.ts#L882
3562
- */
3563
- d ? o.factory.createTemplateTail(p, p) : o.factory.createTemplateMiddle(p, p)
3514
+ d ? o.factory.createTemplateTail(l) : o.factory.createTemplateMiddle(l)
3564
3515
  );
3565
3516
  });
3566
3517
  }
3567
- function at(e, t, i) {
3518
+ function ot(e, t, i) {
3568
3519
  if (t === void 0)
3569
3520
  return i;
3570
3521
  e.neededImports.add("keyed");
3571
3522
  const n = e.importRenames.keyed;
3572
3523
  return o.factory.createCallExpression(o.factory.createIdentifier(n), void 0, [t, i]);
3573
3524
  }
3574
- const Pn = (e, t) => e.getFullText(t.sourceFile).slice(0, e.getLeadingTriviaWidth(t.sourceFile));
3575
- function xn(e, t) {
3576
- const i = Ft(e);
3525
+ const En = (e, t) => e.getFullText(t.sourceFile).slice(0, e.getLeadingTriviaWidth(t.sourceFile));
3526
+ function Cn(e, t) {
3527
+ const i = Lt(e);
3577
3528
  return i.length === 0 ? t : o.setSyntheticLeadingComments(
3578
3529
  t,
3579
3530
  i.map((n) => ({
3580
3531
  ...n,
3581
3532
  pos: -1,
3582
3533
  end: -1,
3583
- text: kn(e.slice(n.pos, n.end))
3534
+ text: $n(e.slice(n.pos, n.end))
3584
3535
  }))
3585
3536
  );
3586
3537
  }
3587
- const Ft = (e) => e.trim().length === 0 ? [] : o.getLeadingCommentRanges(e, 0) ?? [];
3588
- function Wa(e) {
3589
- const t = Ft(e);
3538
+ const Lt = (e) => e.trim().length === 0 ? [] : o.getLeadingCommentRanges(e, 0) ?? [];
3539
+ function Ia(e) {
3540
+ const t = Lt(e);
3590
3541
  if (t.length === 0)
3591
3542
  return [e || " "];
3592
3543
  const i = t.reduceRight(
3593
3544
  ([s, ...r], a) => {
3594
- const c = _a(s), l = ze(kn(c.slice(a.pos, a.end)));
3545
+ const c = La(s), l = $n(c.slice(a.pos, a.end));
3595
3546
  return [
3596
3547
  c.slice(0, a.pos),
3597
3548
  /**
3598
3549
  * Literal values (like this) in place of directives are ignored by Lit:
3599
3550
  * https://github.com/lit/lit/blob/56cb2ca4a86f2c7f6af757c612f05e50d1966615/packages/lit-html/src/lit-html.ts#L1111
3600
3551
  */
3601
- o.factory.createNoSubstitutionTemplateLiteral(l, l),
3552
+ o.factory.createNoSubstitutionTemplateLiteral(l),
3602
3553
  c.slice(a.end),
3603
3554
  ...r
3604
3555
  ];
@@ -3609,13 +3560,13 @@ function Wa(e) {
3609
3560
  const n = i.at(-1);
3610
3561
  return (typeof n != "string" || n.trim() !== "") && i.push(" "), i;
3611
3562
  }
3612
- const kn = (e) => e.startsWith("//") ? e.slice(2) : e.slice(2, -2);
3613
- function _a(e) {
3563
+ const $n = (e) => e.startsWith("//") ? e.slice(2) : e.slice(2, -2);
3564
+ function La(e) {
3614
3565
  if (typeof e == "string")
3615
3566
  return e;
3616
3567
  throw new Error(`Expected string, got ${typeof e}: ${String(e)}`);
3617
3568
  }
3618
- function Ha(e, t) {
3569
+ function Fa(e, t) {
3619
3570
  if (!(o.isPropertyAccessExpression(t.expression) && t.expression.name.text === "map"))
3620
3571
  return t;
3621
3572
  const n = t.arguments[0];
@@ -3627,7 +3578,7 @@ function Ha(e, t) {
3627
3578
  return t;
3628
3579
  const c = Se(n.body);
3629
3580
  let l = !0, d;
3630
- if (Si(c))
3581
+ if (hi(c))
3631
3582
  d = c;
3632
3583
  else {
3633
3584
  if (!o.isBlock(c))
@@ -3636,20 +3587,20 @@ function Ha(e, t) {
3636
3587
  if (!(v && o.isReturnStatement(v) && v.expression))
3637
3588
  return t;
3638
3589
  const T = Se(v.expression);
3639
- if (!Si(T))
3590
+ if (!hi(T))
3640
3591
  return t;
3641
3592
  const x = c.statements.slice(0, -1);
3642
- if (x.some(An))
3593
+ if (x.some(Pn))
3643
3594
  return t;
3644
3595
  l = x.length === 0, d = T;
3645
3596
  }
3646
- const p = o.isJsxElement(d) ? d.openingElement : d, m = Dn(p);
3597
+ const p = o.isJsxElement(d) ? d.openingElement : d, m = Ln(p);
3647
3598
  if (m === -1)
3648
3599
  return t;
3649
3600
  const f = p.attributes.properties[m];
3650
3601
  if (f === void 0 || !o.isJsxAttribute(f))
3651
3602
  return t;
3652
- const y = Lt(f.initializer, e.sourceFile), g = Ua(r, n, y, l, e);
3603
+ const y = It(f.initializer, e.sourceFile), g = Na(r, n, y, l, e);
3653
3604
  if (g === void 0)
3654
3605
  return t;
3655
3606
  e.liftedKeys.add(f.name), e.neededImports.add("repeat");
@@ -3671,25 +3622,25 @@ function Ha(e, t) {
3671
3622
  )
3672
3623
  ]);
3673
3624
  }
3674
- const Si = (e) => o.isJsxElement(e) || o.isJsxSelfClosingElement(e);
3675
- function An(e) {
3625
+ const hi = (e) => o.isJsxElement(e) || o.isJsxSelfClosingElement(e);
3626
+ function Pn(e) {
3676
3627
  if (o.isReturnStatement(e))
3677
3628
  return !0;
3678
3629
  let t = !1;
3679
3630
  return o.visitEachChild(
3680
3631
  e,
3681
- (i) => (t ||= An(i), i),
3632
+ (i) => (t ||= Pn(i), i),
3682
3633
  void 0
3683
3634
  ), t;
3684
3635
  }
3685
- function Ua(e, t, i, n, s) {
3686
- const r = B(i);
3636
+ function Na(e, t, i, n, s) {
3637
+ const r = W(i);
3687
3638
  if (r === void 0)
3688
3639
  return;
3689
- let a = In(e.name, r);
3640
+ let a = xn(e.name, r);
3690
3641
  const c = t.parameters.at(1);
3691
3642
  if (c !== void 0 && o.isIdentifier(c.name) && // A more basic check is also provided in lumina/no-unnecessary-key rule
3692
- r.every(Be, c.name)) {
3643
+ r.every(We, c.name)) {
3693
3644
  C.warn(
3694
3645
  "@arcgis/lumina:jsxToLitHtml",
3695
3646
  "It looks like you are trying to use .map() index as a key={} prop value. Doing so is potentially pointless and may cause performance degradation. In Lit it is safe to omit the key={} prop. If you really mean to use index as the key, then use the keyed() Lit directive directly, rather than the JSX key={} prop.",
@@ -3698,7 +3649,7 @@ function Ua(e, t, i, n, s) {
3698
3649
  return;
3699
3650
  }
3700
3651
  if (!n) {
3701
- const l = qa(r, a, t);
3652
+ const l = ja(r, a, t);
3702
3653
  if (l === void 0)
3703
3654
  return;
3704
3655
  a = l;
@@ -3714,29 +3665,29 @@ function Ua(e, t, i, n, s) {
3714
3665
  e.initializer
3715
3666
  );
3716
3667
  }
3717
- function B(e) {
3668
+ function W(e) {
3718
3669
  if (o.isIdentifier(e))
3719
3670
  return [e.text];
3720
3671
  if (o.isPropertyAccessExpression(e))
3721
- return B(e.expression);
3672
+ return W(e.expression);
3722
3673
  if (o.isElementAccessExpression(e))
3723
- return B(e.argumentExpression);
3674
+ return W(e.argumentExpression);
3724
3675
  if (o.isConditionalExpression(e)) {
3725
- const t = B(e.condition), i = B(e.whenTrue), n = B(e.whenFalse);
3676
+ const t = W(e.condition), i = W(e.whenTrue), n = W(e.whenFalse);
3726
3677
  return t === void 0 || i === void 0 || n === void 0 ? void 0 : [...t, ...i, ...n];
3727
3678
  } else if (o.isBinaryExpression(e)) {
3728
- const t = B(e.left), i = B(e.right);
3679
+ const t = W(e.left), i = W(e.right);
3729
3680
  return t === void 0 || i === void 0 ? void 0 : [...t, ...i];
3730
3681
  } else {
3731
- if (za.has(e.kind))
3682
+ if (Da.has(e.kind))
3732
3683
  return [];
3733
3684
  {
3734
3685
  const t = Se(e);
3735
- return t !== e ? B(t) : void 0;
3686
+ return t !== e ? W(t) : void 0;
3736
3687
  }
3737
3688
  }
3738
3689
  }
3739
- const za = /* @__PURE__ */ new Set([
3690
+ const Da = /* @__PURE__ */ new Set([
3740
3691
  o.SyntaxKind.NumericLiteral,
3741
3692
  o.SyntaxKind.BigIntLiteral,
3742
3693
  o.SyntaxKind.StringLiteral,
@@ -3745,41 +3696,41 @@ const za = /* @__PURE__ */ new Set([
3745
3696
  o.SyntaxKind.FalseKeyword,
3746
3697
  o.SyntaxKind.NullKeyword,
3747
3698
  o.SyntaxKind.TrueKeyword
3748
- ]), Se = (e) => o.isAsExpression(e) || o.isNonNullExpression(e) || o.isSatisfiesExpression(e) || o.isParenthesizedExpression(e) ? Se(e.expression) : e, In = (e, t) => o.isObjectBindingPattern(e) ? Xa(e, t) : e;
3749
- function qa(e, t, i) {
3750
- if (e.every(Be, t))
3699
+ ]), Se = (e) => o.isAsExpression(e) || o.isNonNullExpression(e) || o.isSatisfiesExpression(e) || o.isParenthesizedExpression(e) ? Se(e.expression) : e, xn = (e, t) => o.isObjectBindingPattern(e) ? Oa(e, t) : e;
3700
+ function ja(e, t, i) {
3701
+ if (e.every(We, t))
3751
3702
  return t;
3752
3703
  if (o.isIdentifier(t)) {
3753
- const n = o.isBlock(i.body) ? ye(i.body.statements, (r) => Ga(r, t)) : void 0;
3704
+ const n = o.isBlock(i.body) ? ye(i.body.statements, (r) => Ra(r, t)) : void 0;
3754
3705
  if (n === void 0)
3755
3706
  return;
3756
- const s = In(n, e);
3757
- if (e.every(Be, s))
3707
+ const s = xn(n, e);
3708
+ if (e.every(We, s))
3758
3709
  return s;
3759
3710
  }
3760
3711
  }
3761
- function Ga(e, t) {
3712
+ function Ra(e, t) {
3762
3713
  if (!o.isVariableStatement(e) || !(e.declarationList.flags & o.NodeFlags.Const))
3763
3714
  return;
3764
3715
  const i = e.declarationList.declarations[0];
3765
3716
  return i?.initializer && o.isIdentifier(i.initializer) && i.initializer.text === t.text ? i.name : void 0;
3766
3717
  }
3767
- function Be(e) {
3718
+ function We(e) {
3768
3719
  const t = this;
3769
- return o.isIdentifier(t) ? t.text === e : t.elements.some(Va, e);
3720
+ return o.isIdentifier(t) ? t.text === e : t.elements.some(Ma, e);
3770
3721
  }
3771
- function Va(e) {
3722
+ function Ma(e) {
3772
3723
  const t = this;
3773
- return o.isOmittedExpression(e) ? !1 : Be.call(e.name, t);
3724
+ return o.isOmittedExpression(e) ? !1 : We.call(e.name, t);
3774
3725
  }
3775
- function Xa(e, t) {
3726
+ function Oa(e, t) {
3776
3727
  let i = !1;
3777
3728
  const n = e.elements.filter((s) => o.isIdentifier(s.name) ? t.includes(s.name.text) : (i = !0, !0));
3778
3729
  return i || n.length === 0 ? e : o.factory.updateObjectBindingPattern(e, n);
3779
3730
  }
3780
- const Ln = (e, t) => t.liftedKeys.has(e), Qa = (e) => e.apiJsonComponents.map(({ name: t, importPath: i }) => `import type { ${t} } from "./${i}";`).join(`
3781
- `), Za = /^[a-zA-Z_$][a-zA-Z\d_$]*$/u, Xe = (e) => !Za.test(e), Ee = (e) => Xe(e) ? `"${e}"` : e;
3782
- function Qe(e, t) {
3731
+ const kn = (e, t) => t.liftedKeys.has(e), Ja = (e) => e.apiJsonComponents.map(({ name: t, importPath: i }) => `import type { ${t} } from "./${i}";`).join(`
3732
+ `), Ka = /^[a-zA-Z_$][a-zA-Z\d_$]*$/u, Ve = (e) => !Ka.test(e), Ee = (e) => Ve(e) ? `"${e}"` : e;
3733
+ function Xe(e, t) {
3783
3734
  const i = [], n = [];
3784
3735
  let s = !1;
3785
3736
  t?.forEach((p) => {
@@ -3792,51 +3743,51 @@ function Qe(e, t) {
3792
3743
  }
3793
3744
  m.docsTags?.some((y) => y.name === "required") ? i.push(p.name) : n.push(p.name);
3794
3745
  });
3795
- const r = bi(i), a = bi(n), c = [
3746
+ const r = vi(i), a = vi(n), c = [
3796
3747
  r ? `Required<Pick<${e}, ${r}>>` : "",
3797
3748
  a ? `Partial<Pick<${e}, ${a}>>` : "",
3798
3749
  s ? `${e}SetterTypes` : ""
3799
3750
  ], l = s ? `
3800
- type ${e}SetterTypes = ${e}["${Xi}"]` : "", d = c.filter(Boolean).join(", ");
3751
+ type ${e}SetterTypes = ${e}["${Gi}"]` : "", d = c.filter(Boolean).join(", ");
3801
3752
  return [d.length === 0 ? "" : `${d}, `, l];
3802
3753
  }
3803
- const bi = (e) => e.map((t) => `'${t}'`).join(" | ");
3754
+ const vi = (e) => e.map((t) => `'${t}'`).join(" | ");
3804
3755
  function q(e, t, i) {
3805
3756
  if (Ke(i))
3806
- return Fn(e, i);
3807
- const n = o.isCallExpression(i) ? Ha(e, i) : i, s = o.visitEachChild(
3757
+ return An(e, i);
3758
+ const n = o.isCallExpression(i) ? Fa(e, i) : i, s = o.visitEachChild(
3808
3759
  n,
3809
3760
  // Do not add "" if parent is binary expression to not turn {(a && <b />) || c} into {(a && <b />) || "" || c}
3810
3761
  q.bind(null, e, t !== void 0 && o.isBinaryExpression(t) ? void 0 : i),
3811
3762
  e.transformationContext
3812
3763
  );
3813
- return t !== void 0 && o.isBinaryExpression(i) && (o.isJsxExpression(t) || Ke(Se(i.right))) ? tc(s) : s;
3764
+ return t !== void 0 && o.isBinaryExpression(i) && (o.isJsxExpression(t) || Ke(Se(i.right))) ? _a(s) : s;
3814
3765
  }
3815
- function Fn(e, t) {
3816
- const i = Nn(e, t);
3817
- return Ve(i, e);
3766
+ function An(e, t) {
3767
+ const i = In(e, t);
3768
+ return Ge(i, e);
3818
3769
  }
3819
- function Nn(e, t) {
3770
+ function In(e, t) {
3820
3771
  const i = "children" in t ? t.children : [];
3821
3772
  if (o.isJsxFragment(t))
3822
3773
  return { key: void 0, ...De(i, e) };
3823
3774
  const s = o.isJsxElement(t) ? t.openingElement : t, r = s.tagName;
3824
3775
  if (o.isJsxNamespacedName(r))
3825
3776
  throw Error(`JSX namespaced elements are not supported. Found ${r.getText(e.sourceFile)} `);
3826
- if (!o.isIdentifier(r) || !r.text.startsWith(r.text[0].toLowerCase()) && r.text !== tt && r.text !== it) {
3827
- const $ = o.isIdentifier(r) && r.text === Lr ? De(i, e) : {
3777
+ if (!o.isIdentifier(r) || !r.text.startsWith(r.text[0].toLowerCase()) && r.text !== et && r.text !== tt) {
3778
+ const $ = o.isIdentifier(r) && r.text === kr ? De(i, e) : {
3828
3779
  // No need to wrap the function call in a lit-html tag
3829
3780
  litTag: void 0,
3830
- parts: [ec(e, t, r, i)]
3781
+ parts: [Ba(e, t, r, i)]
3831
3782
  };
3832
3783
  return {
3833
- key: Ya(s, e),
3784
+ key: Wa(s, e),
3834
3785
  ...$
3835
3786
  };
3836
3787
  }
3837
- const c = r.text === tt ? Re : r.text === it ? ft : r.text, l = r.text === tt ? ae : r.text === it ? Z : Nr.has(c) ? Tn : Ct.has(c) ? oe : ce, d = Pt(c);
3788
+ const c = r.text === et ? Re : r.text === tt ? mt : r.text, l = r.text === et ? ae : r.text === tt ? Z : Ir.has(c) ? Sn : Et.has(c) ? oe : ce, d = $t(c);
3838
3789
  let p;
3839
- d && e.compiler.viteCommand === "build" && (p = ic(e, c));
3790
+ d && e.compiler.viteCommand === "build" && (p = Ha(e, c));
3840
3791
  let m;
3841
3792
  const f = [];
3842
3793
  let y = !1;
@@ -3849,13 +3800,13 @@ Found ${L.getText(e.sourceFile)}`
3849
3800
  const { name: $, initializer: b } = L;
3850
3801
  if (o.isJsxNamespacedName($))
3851
3802
  throw Error(`JSX namespaced attributes are not supported. Found ${$.getText(e.sourceFile)}`);
3852
- const E = $.text, I = ja(b), N = I?.propType ?? Ra(E, b, c);
3803
+ const E = $.text, I = Ea(b), N = I?.propType ?? Ca(E, b, c);
3853
3804
  p?.delete(E);
3854
- const D = La[N](e, I?.initializer ?? b, E, c);
3805
+ const D = Sa[N](e, I?.initializer ?? b, E, c);
3855
3806
  if (D.length === 0)
3856
3807
  return [];
3857
- const M = e.compiler.shouldMinifyJsx ? [" "] : Wa(Pn($, e));
3858
- return N === "key" ? (m = typeof D[0] == "object" && !Ln($, e) ? D[0] : void 0, M.some(Ja) ? M : []) : N === "directives" || N === "ref" || E === "deferLoad" ? (y ||= N === "deferLoad", f.push(
3808
+ const M = e.compiler.shouldMinifyJsx ? [" "] : Ia(En($, e));
3809
+ return N === "key" ? (m = typeof D[0] == "object" && !kn($, e) ? D[0] : void 0, M.some(xa) ? M : []) : N === "directives" || N === "ref" || E === "deferLoad" ? (y ||= N === "deferLoad", f.push(
3859
3810
  ...M,
3860
3811
  ...D.flatMap(
3861
3812
  (H, K) => typeof H == "string" || K === 0 || typeof D[K - 1] == "string" ? H : [" ", H]
@@ -3866,12 +3817,12 @@ Found ${L.getText(e.sourceFile)}`
3866
3817
  "mustIncludeAllRequiredProperties",
3867
3818
  e.sourceFile.fileName,
3868
3819
  `Missing required properties for <${c}> }: ${Array.from(p).join(", ")}`
3869
- ), f.length > 0 && g.push(...f), typeof c == "string" && $t.has(c))
3820
+ ), f.length > 0 && g.push(...f), typeof c == "string" && Ct.has(c))
3870
3821
  throw Error(
3871
3822
  `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`
3872
3823
  );
3873
3824
  d && (y ? e.customElementsToImportDeferred.add(c) : e.customElementsToImport.add(c));
3874
- const h = typeof c == "string" && Fr.has(c), v = De(i, e);
3825
+ const h = typeof c == "string" && Ar.has(c), v = De(i, e);
3875
3826
  if (h && v.parts.length > 0)
3876
3827
  throw Error(
3877
3828
  `Void HTML elements like <${c}> cannot have children. Found ${t.getText(e.sourceFile)}`
@@ -3888,34 +3839,34 @@ Found ${L.getText(e.sourceFile)}`
3888
3839
  * fragments (e.g. `<circle />`, then wrap the children in their own
3889
3840
  * tagged template literal (e.g. svg``)
3890
3841
  */
3891
- ...v.litTag !== void 0 && v.litTag !== l ? [Ve({ key: void 0, ...v }, e)] : v.parts,
3842
+ ...v.litTag !== void 0 && v.litTag !== l ? [Ge({ key: void 0, ...v }, e)] : v.parts,
3892
3843
  "</",
3893
3844
  typeof c == "string" ? c : r,
3894
3845
  ">"
3895
3846
  ];
3896
3847
  return { key: m, parts: x, litTag: l };
3897
3848
  }
3898
- function Ya(e, t) {
3899
- const i = e.attributes.properties[Dn(e)];
3900
- return i && o.isJsxAttribute(i) && !Ln(i.name, t) ? Lt(i.initializer, t.sourceFile) : void 0;
3849
+ function Wa(e, t) {
3850
+ const i = e.attributes.properties[Ln(e)];
3851
+ return i && o.isJsxAttribute(i) && !kn(i.name, t) ? It(i.initializer, t.sourceFile) : void 0;
3901
3852
  }
3902
- const Dn = (e) => e.attributes.properties.findIndex(({ name: t }) => t && o.isIdentifier(t) && t.text === "key");
3903
- function ec(e, t, i, n) {
3853
+ const Ln = (e) => e.attributes.properties.findIndex(({ name: t }) => t && o.isIdentifier(t) && t.text === "key");
3854
+ function Ba(e, t, i, n) {
3904
3855
  const r = (o.isJsxElement(t) ? t.openingElement : t).attributes.properties.map((l) => {
3905
3856
  if (o.isJsxSpreadAttribute(l))
3906
- return xn(Pn(l, e), o.factory.createSpreadAssignment(l.expression));
3857
+ return Cn(En(l, e), o.factory.createSpreadAssignment(l.expression));
3907
3858
  const { name: d, initializer: p } = l;
3908
3859
  if (o.isJsxNamespacedName(d))
3909
3860
  throw Error(`JSX namespaced attributes are not supported. Found ${d.getText(e.sourceFile)}`);
3910
3861
  if (d.text === "key")
3911
3862
  return;
3912
- const m = p === void 0 ? o.factory.createTrue() : o.isStringLiteral(p) ? p : Ke(p) ? Fn(e, p) : q(e, void 0, p.expression ?? o.factory.createIdentifier("undefined")), f = Xe(d.text) ? o.factory.createStringLiteral(d.text) : d;
3863
+ const m = p === void 0 ? o.factory.createTrue() : o.isStringLiteral(p) ? p : Ke(p) ? An(e, p) : q(e, void 0, p.expression ?? o.factory.createIdentifier("undefined")), f = Ve(d.text) ? o.factory.createStringLiteral(d.text) : d;
3913
3864
  return o.factory.createPropertyAssignment(f, m);
3914
3865
  }), { parts: a, litTag: c } = De(n, e);
3915
3866
  return a.length > 0 && r.push(
3916
3867
  o.factory.createPropertyAssignment(
3917
3868
  o.factory.createIdentifier("children"),
3918
- Ve({ key: void 0, parts: a, litTag: c }, e)
3869
+ Ge({ key: void 0, parts: a, litTag: c }, e)
3919
3870
  )
3920
3871
  ), o.factory.createCallExpression(i, void 0, [
3921
3872
  o.factory.createObjectLiteralExpression(r.filter(j))
@@ -3925,13 +3876,13 @@ function De(e, t) {
3925
3876
  let i;
3926
3877
  const n = e.flatMap((s) => {
3927
3878
  if (o.isJsxText(s))
3928
- return [t.compiler.shouldMinifyJsx ? qr(s.text) : s.text];
3879
+ return [t.compiler.shouldMinifyJsx ? Fr(s.text) : s.text];
3929
3880
  if (o.isJsxExpression(s))
3930
- return Nt(t, s, s);
3881
+ return Ft(t, s, s);
3931
3882
  {
3932
- const r = Nn(t, s);
3883
+ const r = In(t, s);
3933
3884
  if (r.key === void 0 && r.litTag !== ae && r.litTag !== Z) {
3934
- if (r.litTag === Tn)
3885
+ if (r.litTag === Sn)
3935
3886
  return r.parts;
3936
3887
  if (i !== void 0 && r.litTag !== void 0 && i !== r.litTag)
3937
3888
  throw new Error(
@@ -3939,26 +3890,26 @@ function De(e, t) {
3939
3890
  );
3940
3891
  return i = r.litTag, r.parts;
3941
3892
  } else
3942
- return [Ve(r, t)];
3893
+ return [Ge(r, t)];
3943
3894
  }
3944
3895
  });
3945
3896
  return { litTag: i, parts: n };
3946
3897
  }
3947
- function tc(e) {
3898
+ function _a(e) {
3948
3899
  return e.operatorToken.kind === o.SyntaxKind.AmpersandAmpersandToken ? o.factory.createBinaryExpression(
3949
3900
  e,
3950
3901
  o.factory.createToken(o.SyntaxKind.BarBarToken),
3951
3902
  o.factory.createStringLiteral("")
3952
3903
  ) : e;
3953
3904
  }
3954
- function Nt(e, t, i) {
3905
+ function Ft(e, t, i) {
3955
3906
  if (t.expression === void 0) {
3956
3907
  if (e.compiler.shouldMinifyJsx)
3957
3908
  return [];
3958
3909
  const n = t.getText(e.sourceFile).slice(1, -1);
3959
- return Ft(n).length === 0 ? [] : [xn(n, o.factory.createIdentifier("undefined"))];
3910
+ return Lt(n).length === 0 ? [] : [Cn(n, o.factory.createIdentifier("undefined"))];
3960
3911
  }
3961
- return o.isStringLiteral(t.expression) ? [nn(t.expression.text)] : (
3912
+ return o.isStringLiteral(t.expression) ? [Yi(t.expression.text)] : (
3962
3913
  /**
3963
3914
  * There is a bug in Chrome DevTools, where it won't let you set a
3964
3915
  * breakpoint inside a tagged template literal. It seems like they did
@@ -3995,7 +3946,7 @@ function Nt(e, t, i) {
3995
3946
  ] : [q(e, i, t.expression)]
3996
3947
  );
3997
3948
  }
3998
- function ic(e, t) {
3949
+ function Ha(e, t) {
3999
3950
  if (t in e.localComponents)
4000
3951
  for (const n of e.compiler.privateApiJson.modules)
4001
3952
  for (const s of n.declarations) {
@@ -4007,7 +3958,7 @@ function ic(e, t) {
4007
3958
  return r;
4008
3959
  }
4009
3960
  }
4010
- const jn = (e) => e.reduce((t, [i, n]) => (t[i] ??= [], t[i].push(n), t), {}), be = {
3961
+ const Fn = (e) => e.reduce((t, [i, n]) => (t[i] ??= [], t[i].push(n), t), {}), be = {
4011
3962
  [ce]: ["lit-html", "lit/html.js", "lit"],
4012
3963
  /**
4013
3964
  * Sadly, Lit called these "html" and "svg", rather than "staticHtml" and
@@ -4018,8 +3969,8 @@ const jn = (e) => e.reduce((t, [i, n]) => (t[i] ??= [], t[i].push(n), t), {}), b
4018
3969
  [ae]: ["lit-html/static.js", "lit/static-html.js"],
4019
3970
  [oe]: ["lit-html", "lit/html.js", "lit"],
4020
3971
  [Z]: ["lit-html/static.js", "lit/static-html.js"],
4021
- [Cn]: ["lit-html", "lit/html.js", "lit"],
4022
- [En]: ["@lit/reactive-element/css-tag.js", "@lit/reactive-element", "lit"],
3972
+ [wn]: ["lit-html", "lit/html.js", "lit"],
3973
+ [bn]: ["@lit/reactive-element/css-tag.js", "@lit/reactive-element", "lit"],
4023
3974
  safeClassMap: ["@arcgis/lumina"],
4024
3975
  safeStyleMap: ["@arcgis/lumina"],
4025
3976
  deferLoad: ["@arcgis/lumina"],
@@ -4028,14 +3979,14 @@ const jn = (e) => e.reduce((t, [i, n]) => (t[i] ??= [], t[i].push(n), t), {}), b
4028
3979
  repeat: ["lit-html/directives/repeat.js", "lit/directives/repeat.js"],
4029
3980
  ref: ["lit-html/directives/ref.js", "lit/directives/ref.js"],
4030
3981
  nothing: ["lit-html", "lit/html.js", "lit-element/lit-element.js", "lit", "@arcgis/lumina"]
4031
- }, Rn = jn(
3982
+ }, Nn = Fn(
4032
3983
  Object.entries(be).flatMap(([e, t]) => t.map((i) => [i, e]))
4033
- ), Mn = new Set(Object.keys(Rn));
4034
- function nc(e, t) {
3984
+ ), Dn = new Set(Object.keys(Nn));
3985
+ function Ua(e, t) {
4035
3986
  const i = t.importClause, n = t.moduleSpecifier;
4036
3987
  if (!o.isStringLiteral(n))
4037
3988
  return t;
4038
- const s = sc(e.sourceFile.fileName, n.text, ""), r = !i?.isTypeOnly;
3989
+ const s = za(e.sourceFile.fileName, n.text, ""), r = !i?.isTypeOnly;
4039
3990
  if (r && e.existingImportedModules.add(s), i === void 0)
4040
3991
  return t;
4041
3992
  if (e.isInLightDomComponent && n.text.startsWith(".") && Oe.test(n.text) && // If id already includes ?, bypass our custom behavior
@@ -4054,12 +4005,12 @@ function nc(e, t) {
4054
4005
  const a = i.namedBindings;
4055
4006
  if (a === void 0 || !o.isNamedImports(a))
4056
4007
  return t;
4057
- const c = Mn.has(n.text);
4008
+ const c = Dn.has(n.text);
4058
4009
  return a.elements.forEach((l) => {
4059
4010
  const d = (l.propertyName ?? l.name).text, p = be[d];
4060
4011
  if (c) {
4061
4012
  if (p?.some((y) => y === n.text)) {
4062
- const y = On(d, s);
4013
+ const y = jn(d, s);
4063
4014
  e.existingLitImports.add(y), e.importRenames[y] = l.name?.text ?? y;
4064
4015
  }
4065
4016
  } else (l.name.text === "h" || l.name.text === "createElement") && (e.hasNonLuminaJsxImport = !0);
@@ -4067,22 +4018,22 @@ function nc(e, t) {
4067
4018
  r && !l.isTypeOnly && m && f && e.importedFunctionComponentsFromModules.add(s);
4068
4019
  }), t;
4069
4020
  }
4070
- const On = (e, t) => e === ce && be.staticHtml.includes(t) ? ae : e === oe && be.staticSvg.includes(t) ? Z : e, sc = (e, t, i) => t.startsWith(".") ? u.resolve(e, "..", `${t}${i}`) : t;
4071
- function rc(e) {
4072
- return o.isImportDeclaration(e) ? oc(this, e) : e;
4021
+ const jn = (e, t) => e === ce && be.staticHtml.includes(t) ? ae : e === oe && be.staticSvg.includes(t) ? Z : e, za = (e, t, i) => t.startsWith(".") ? u.resolve(e, "..", `${t}${i}`) : t;
4022
+ function qa(e) {
4023
+ return o.isImportDeclaration(e) ? Ga(this, e) : e;
4073
4024
  }
4074
- function oc(e, t) {
4025
+ function Ga(e, t) {
4075
4026
  const i = t.importClause, n = i?.namedBindings, s = t.moduleSpecifier;
4076
- if (!o.isStringLiteral(s) || !n || !o.isNamedImports(n) || !Mn.has(s.text))
4027
+ if (!o.isStringLiteral(s) || !n || !o.isNamedImports(n) || !Dn.has(s.text))
4077
4028
  return t;
4078
4029
  const r = i.isTypeOnly;
4079
4030
  let a = !1;
4080
4031
  const c = n.elements.map((l) => {
4081
- const d = (l.propertyName ?? l.name).text, p = On(d, s.text);
4032
+ const d = (l.propertyName ?? l.name).text, p = jn(d, s.text);
4082
4033
  return e.existingLitImports.delete(p), e.neededImports.has(p) ? (e.neededImports.delete(p), a = !0, o.factory.updateImportSpecifier(l, !1, l.propertyName, l.name)) : r ? o.factory.updateImportSpecifier(l, !0, l.propertyName, l.name) : l;
4083
4034
  });
4084
- return Rn[s.text]?.forEach((l) => {
4085
- !e.neededImports.has(l) || e.existingLitImports.has(l) || (e.neededImports.delete(l), a = !0, c.push(Jn(l, e)));
4035
+ return Nn[s.text]?.forEach((l) => {
4036
+ !e.neededImports.has(l) || e.existingLitImports.has(l) || (e.neededImports.delete(l), a = !0, c.push(Rn(l, e)));
4086
4037
  }), a ? o.factory.updateImportDeclaration(
4087
4038
  t,
4088
4039
  t.modifiers,
@@ -4096,8 +4047,8 @@ function oc(e, t) {
4096
4047
  t.attributes
4097
4048
  ) : t;
4098
4049
  }
4099
- function ac(e) {
4100
- const t = jn(Array.from(e.neededImports, (i) => [be[i][0], i]));
4050
+ function Va(e) {
4051
+ const t = Fn(Array.from(e.neededImports, (i) => [be[i][0], i]));
4101
4052
  return Object.entries(t).map(
4102
4053
  ([i, n]) => o.factory.createImportDeclaration(
4103
4054
  void 0,
@@ -4105,14 +4056,14 @@ function ac(e) {
4105
4056
  !1,
4106
4057
  void 0,
4107
4058
  o.factory.createNamedImports(
4108
- n.map((s) => (e.neededImports.delete(s), Jn(s, e)))
4059
+ n.map((s) => (e.neededImports.delete(s), Rn(s, e)))
4109
4060
  )
4110
4061
  ),
4111
4062
  o.factory.createStringLiteral(i)
4112
4063
  )
4113
4064
  );
4114
4065
  }
4115
- function Jn(e, t) {
4066
+ function Rn(e, t) {
4116
4067
  const i = e === ae ? ce : e === Z ? oe : e, n = t.importRenames[e];
4117
4068
  return n === i ? o.factory.createImportSpecifier(!1, void 0, o.factory.createIdentifier(i)) : o.factory.createImportSpecifier(
4118
4069
  !1,
@@ -4120,12 +4071,12 @@ function Jn(e, t) {
4120
4071
  o.factory.createIdentifier(n)
4121
4072
  );
4122
4073
  }
4123
- function cc(e) {
4124
- const t = ua().map(({ packageName: i }) => i);
4074
+ function Xa(e) {
4075
+ const t = ea().map(({ packageName: i }) => i);
4125
4076
  return e.existingImportedModules.forEach((i) => {
4126
4077
  if (u.isAbsolute(i))
4127
4078
  return;
4128
- const { packageName: n, moduleName: s } = ln(i);
4079
+ const { packageName: n, moduleName: s } = on(i);
4129
4080
  if (t.includes(n ?? "") && (s.startsWith("dist/components") || s.startsWith("components"))) {
4130
4081
  const r = Y(e.sourceFile.fileName);
4131
4082
  throw new Error(
@@ -4134,7 +4085,7 @@ function cc(e) {
4134
4085
  }
4135
4086
  }), [];
4136
4087
  }
4137
- function lc(e) {
4088
+ function Qa(e) {
4138
4089
  if (e.compiler.viteCommand === "serve")
4139
4090
  return e.customElementsToImport.clear(), e.customElementsToImportDeferred.clear(), [];
4140
4091
  const t = e.compiler._customElementDependencies;
@@ -4149,8 +4100,8 @@ function lc(e) {
4149
4100
  t[n] ??= { referencedBy: [], referencedTagNames: [], referencedDeferredTagNames: [] }, t[n].referencedBy.push(e.sourceFile.fileName);
4150
4101
  }), [];
4151
4102
  }
4152
- function dc(e, t, i) {
4153
- const n = Sn()[t] ?? Kn(e)[t];
4103
+ function Za(e, t, i) {
4104
+ const n = gn()[t] ?? Mn(e)[t];
4154
4105
  if (n === void 0) {
4155
4106
  if (e.options?.build?.dependencies?.silenceUnknownJsxElementUsage?.(t, i, e) === !0)
4156
4107
  return;
@@ -4164,28 +4115,28 @@ function dc(e, t, i) {
4164
4115
  }
4165
4116
  return n;
4166
4117
  }
4167
- function pc(e, t) {
4118
+ function Ya(e, t) {
4168
4119
  return e.packageName === void 0 ? ee(t, e.moduleName) : u.join(e.packageName, e.moduleName);
4169
4120
  }
4170
- function Kn(e) {
4171
- return e._localDefinedComponents ??= wn(e.privateApiJson, {
4121
+ function Mn(e) {
4122
+ return e._localDefinedComponents ??= vn(e.privateApiJson, {
4172
4123
  packageName: void 0,
4173
4124
  getImportPath() {
4174
4125
  throw new Error("Not supposed to be called for local components");
4175
4126
  }
4176
4127
  }), e._localDefinedComponents;
4177
4128
  }
4178
- const uc = (e, t) => {
4129
+ const ec = (e, t) => {
4179
4130
  const i = e.pragmas;
4180
4131
  if (i?.has("jsx") === !0 || i?.has("jsxImportSource") === !0)
4181
4132
  return e.statements;
4182
4133
  const n = {
4183
4134
  compiler: t.compiler,
4184
- externalComponents: Sn(),
4185
- localComponents: t.compiler.isInPuppeteerTestBackEnd ? {} : Kn(t.compiler),
4135
+ externalComponents: gn(),
4136
+ localComponents: t.compiler.isInPuppeteerTestBackEnd ? {} : Mn(t.compiler),
4186
4137
  sourceFile: e,
4187
4138
  transformationContext: t.transformation,
4188
- importRenames: mc(e),
4139
+ importRenames: tc(e),
4189
4140
  existingImportedModules: /* @__PURE__ */ new Set(),
4190
4141
  importedFunctionComponentsFromModules: /* @__PURE__ */ new Set(),
4191
4142
  existingLitImports: /* @__PURE__ */ new Set(),
@@ -4201,18 +4152,18 @@ const uc = (e, t) => {
4201
4152
  let s = [];
4202
4153
  if (e.statements.every((a) => {
4203
4154
  if (o.isImportDeclaration(a)) {
4204
- if (s.push(nc(n, a)), n.hasNonLuminaJsxImport)
4155
+ if (s.push(Ua(n, a)), n.hasNonLuminaJsxImport)
4205
4156
  return !1;
4206
4157
  } else
4207
4158
  s.push(q(n, void 0, a));
4208
4159
  return !0;
4209
4160
  }), n.hasNonLuminaJsxImport)
4210
4161
  return e.statements;
4211
- if (n.neededImports.size > 0 && (s = s.map(rc, n), n.existingLitImports.size > 0))
4162
+ if (n.neededImports.size > 0 && (s = s.map(qa, n), n.existingLitImports.size > 0))
4212
4163
  throw new Error(
4213
4164
  `Expected context.existingLitImports to be empty by now. Found: ${Array.from(n.existingLitImports).join(", ")}`
4214
4165
  );
4215
- const r = [ac, cc, lc].flatMap(
4166
+ const r = [Va, Xa, Qa].flatMap(
4216
4167
  (a) => a(n)
4217
4168
  );
4218
4169
  if (n.neededImports.size > 0)
@@ -4221,18 +4172,18 @@ const uc = (e, t) => {
4221
4172
  );
4222
4173
  return [...r, ...s];
4223
4174
  };
4224
- function mc(e) {
4225
- return fc(e), Object.fromEntries(
4226
- ka.map((t) => [t, e.identifiers.has(t) ? `${t}$jsx` : t])
4175
+ function tc(e) {
4176
+ return ic(e), Object.fromEntries(
4177
+ ga.map((t) => [t, e.identifiers.has(t) ? `${t}$jsx` : t])
4227
4178
  );
4228
4179
  }
4229
- function fc(e) {
4180
+ function ic(e) {
4230
4181
  if (!("identifiers" in e))
4231
4182
  throw new Error(
4232
4183
  "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."
4233
4184
  );
4234
4185
  }
4235
- function yc(e, t, i) {
4186
+ function nc(e, t, i) {
4236
4187
  return t.size === 0 ? e : [
4237
4188
  o.factory.createPropertyDeclaration(
4238
4189
  [
@@ -4245,8 +4196,8 @@ function yc(e, t, i) {
4245
4196
  o.factory.createObjectLiteralExpression(
4246
4197
  Array.from(t.entries()).map(
4247
4198
  ([n, s]) => o.factory.createPropertyAssignment(
4248
- Xe(n) ? o.factory.createStringLiteral(n) : n,
4249
- gc(s, i)
4199
+ Ve(n) ? o.factory.createStringLiteral(n) : n,
4200
+ sc(s, i)
4250
4201
  )
4251
4202
  )
4252
4203
  )
@@ -4254,7 +4205,7 @@ function yc(e, t, i) {
4254
4205
  ...e
4255
4206
  ];
4256
4207
  }
4257
- function gc(e, t) {
4208
+ function sc(e, t) {
4258
4209
  let i = 0, n = !0;
4259
4210
  const s = [], r = [];
4260
4211
  for (const l of e.properties)
@@ -4264,24 +4215,24 @@ function gc(e, t) {
4264
4215
  return !0;
4265
4216
  const d = l.name.text, p = l.initializer, m = p.kind === o.SyntaxKind.TrueKeyword, f = p.kind === o.SyntaxKind.FalseKeyword;
4266
4217
  if (d === "attribute")
4267
- return n = !1, i |= m ? Ht : 0, !m && !f;
4218
+ return n = !1, i |= m ? _t : 0, !m && !f;
4268
4219
  if (d === "reflect")
4269
- return i |= m ? Is : 0, !1;
4220
+ return i |= m ? xs : 0, !1;
4270
4221
  if (d === "type" && o.isIdentifier(p)) {
4271
4222
  if (p.text === "Boolean")
4272
- return i |= Ls, !1;
4223
+ return i |= ks, !1;
4273
4224
  if (p.text === "Number")
4274
- return i |= Fs, !1;
4225
+ return i |= As, !1;
4275
4226
  } else {
4276
4227
  if (d === "state")
4277
- return n = !1, i |= m ? Ns : 0, !1;
4228
+ return n = !1, i |= m ? Is : 0, !1;
4278
4229
  if (d === "readOnly")
4279
- return i |= m ? Ds : 0, !1;
4280
- d === "noAccessor" && (i |= m ? js : 0);
4230
+ return i |= m ? Ls : 0, !1;
4231
+ d === "noAccessor" && (i |= m ? Fs : 0);
4281
4232
  }
4282
4233
  return !0;
4283
4234
  }
4284
- n && (i |= Ht);
4235
+ n && (i |= _t);
4285
4236
  const c = o.factory.createNumericLiteral(i);
4286
4237
  return s.length === 0 && (t || r.length === 0) ? c : o.factory.createArrayLiteralExpression([
4287
4238
  c,
@@ -4296,7 +4247,7 @@ function gc(e, t) {
4296
4247
  ...t ? [] : [o.factory.createObjectLiteralExpression(r)]
4297
4248
  ]);
4298
4249
  }
4299
- function hc(e, t, i, n, s) {
4250
+ function rc(e, t, i, n, s) {
4300
4251
  let r = -1, a = -1, c = -1;
4301
4252
  t.options?.properties.forEach((f, y) => {
4302
4253
  if (o.isSpreadAssignment(f))
@@ -4308,23 +4259,23 @@ function hc(e, t, i, n, s) {
4308
4259
  g === "type" ? r = y : g === "attribute" ? a = y : g === "readOnly" && (c = y);
4309
4260
  }
4310
4261
  });
4311
- const l = s.attribute === void 0 && a === -1, d = s.readonly === !0 && s.docsOnlyReadonly !== !0 && c === -1, p = vc(e, t, i, s, r), m = [
4262
+ const l = s.attribute === void 0 && a === -1, d = s.readonly === !0 && s.docsOnlyReadonly !== !0 && c === -1, p = oc(e, t, i, s, r), m = [
4312
4263
  ...l ? [o.factory.createPropertyAssignment("attribute", o.factory.createFalse())] : [],
4313
4264
  ...d ? [o.factory.createPropertyAssignment("readOnly", o.factory.createTrue())] : [],
4314
4265
  ...p !== void 0 ? [p] : []
4315
4266
  ];
4316
4267
  return m.length > 0 ? t.options === void 0 ? o.factory.createObjectLiteralExpression(m, !1) : o.factory.updateObjectLiteralExpression(t.options, [...t.options.properties, ...m]) : t.options;
4317
4268
  }
4318
- function vc(e, t, i, n, s) {
4269
+ function oc(e, t, i, n, s) {
4319
4270
  if (n.attribute === void 0)
4320
4271
  return;
4321
- const r = bc(e), a = i.compiler.viteCommand === "serve" || r !== "Other" ? r : Sc(n.type.values);
4272
+ const r = cc(e), a = i.compiler.viteCommand === "serve" || r !== "Other" ? r : ac(n.type.values);
4322
4273
  return a === "Other" || n.readonly && (a !== "Boolean" || !n.reflects) || t.options?.properties[s] !== void 0 ? void 0 : o.factory.createPropertyAssignment(
4323
4274
  o.factory.createIdentifier("type"),
4324
4275
  o.factory.createIdentifier(a)
4325
4276
  );
4326
4277
  }
4327
- function Sc(e) {
4278
+ function ac(e) {
4328
4279
  let t = !1, i = !1, n = !1;
4329
4280
  if (e?.forEach((s) => {
4330
4281
  t ||= s.type === "number", i ||= s.type === "boolean", n ||= s.type === "string" || s.type === "any" || s.type === "unknown";
@@ -4336,7 +4287,7 @@ function Sc(e) {
4336
4287
  }
4337
4288
  return "Other";
4338
4289
  }
4339
- function bc(e) {
4290
+ function cc(e) {
4340
4291
  const t = e.type ?? (o.isSetAccessor(e) ? e.parameters[0].type : void 0);
4341
4292
  if (t === void 0) {
4342
4293
  if ("initializer" in e && e.initializer !== void 0) {
@@ -4353,7 +4304,7 @@ function bc(e) {
4353
4304
  }
4354
4305
  return "Other";
4355
4306
  }
4356
- function wc(e, t, i, n, s) {
4307
+ function lc(e, t, i, n, s) {
4357
4308
  if (t.modifiers === void 0)
4358
4309
  return t;
4359
4310
  let r = -1, a = -1;
@@ -4363,18 +4314,18 @@ function wc(e, t, i, n, s) {
4363
4314
  d === "property" && (r = l), d === "state" && (a = l);
4364
4315
  }
4365
4316
  }), r !== -1) {
4366
- const c = Tc(e, t, i, n), l = wi(t, r, n), d = hc(t, l, e, n, c);
4317
+ const c = dc(e, t, i, n), l = Si(t, r, n), d = rc(t, l, e, n, c);
4367
4318
  let p = !1;
4368
- return s.set(c.name, d ?? o.factory.createObjectLiteralExpression()), p = !0, l.options = d, Ti(t, l, r, p);
4319
+ return s.set(c.name, d ?? o.factory.createObjectLiteralExpression()), p = !0, l.options = d, bi(t, l, r, p);
4369
4320
  } else if (a !== -1) {
4370
- const c = wi(t, a, n), l = o.factory.createPropertyAssignment("state", o.factory.createTrue()), d = c.options === void 0 ? o.factory.createObjectLiteralExpression([l]) : o.factory.updateObjectLiteralExpression(c.options, [...c.options.properties, l]), p = X(t.name);
4321
+ const c = Si(t, a, n), l = o.factory.createPropertyAssignment("state", o.factory.createTrue()), d = c.options === void 0 ? o.factory.createObjectLiteralExpression([l]) : o.factory.updateObjectLiteralExpression(c.options, [...c.options.properties, l]), p = X(t.name);
4371
4322
  if (p === void 0)
4372
4323
  throw new Error("Failed to statically determine the state property name");
4373
- return s.set(p, d), Ti(t, c, a, !0);
4324
+ return s.set(p, d), bi(t, c, a, !0);
4374
4325
  } else
4375
4326
  return t;
4376
4327
  }
4377
- function Tc(e, t, i, n) {
4328
+ function dc(e, t, i, n) {
4378
4329
  const s = e.apiModule?.declarations.find(
4379
4330
  (a) => a.name === i
4380
4331
  ) ?? (e.compiler.isInTest ? {
@@ -4382,7 +4333,7 @@ function Tc(e, t, i, n) {
4382
4333
  } : void 0);
4383
4334
  if (s === void 0)
4384
4335
  throw Error(`Failed to find API component for ${i} in ${n.fileName}`);
4385
- const r = ar(s, t) ?? (e.compiler.isInTest ? { kind: "field", attribute: "", readonly: !1, name: "", type: { text: "" } } : void 0);
4336
+ const r = sr(s, t) ?? (e.compiler.isInTest ? { kind: "field", attribute: "", readonly: !1, name: "", type: { text: "" } } : void 0);
4386
4337
  if (r === void 0 || r.kind !== "field")
4387
4338
  throw Error(
4388
4339
  `Failed to find API property for ${t.getText(n)} in ${i} in ${n.fileName}`
@@ -4393,11 +4344,11 @@ function Tc(e, t, i, n) {
4393
4344
  throw Error(
4394
4345
  `Failed to statically determine the property name: ${t.getText(n)} in ${i} in ${n.fileName}`
4395
4346
  );
4396
- r.name = a, r.attribute ??= wt(a);
4347
+ r.name = a, r.attribute ??= bt(a);
4397
4348
  }
4398
4349
  return r;
4399
4350
  }
4400
- function wi(e, t, i) {
4351
+ function Si(e, t, i) {
4401
4352
  const n = e.modifiers[t], s = n.expression, r = s.arguments.at(0);
4402
4353
  if (r && !o.isObjectLiteralExpression(r))
4403
4354
  throw new Error(
@@ -4405,7 +4356,7 @@ function wi(e, t, i) {
4405
4356
  );
4406
4357
  return { decorator: n, callExpression: s, options: r };
4407
4358
  }
4408
- function Ti(e, t, i, n) {
4359
+ function bi(e, t, i, n) {
4409
4360
  const s = n ? void 0 : o.factory.updateDecorator(
4410
4361
  t.decorator,
4411
4362
  o.factory.updateCallExpression(
@@ -4441,23 +4392,23 @@ function Ti(e, t, i, n) {
4441
4392
  e.initializer
4442
4393
  );
4443
4394
  }
4444
- const Ec = (e, t) => {
4395
+ const pc = (e, t) => {
4445
4396
  if (t.apiModule === void 0 && !t.compiler.isInTest)
4446
4397
  return e.statements;
4447
4398
  let i;
4448
4399
  function n() {
4449
4400
  i = /* @__PURE__ */ new Map();
4450
4401
  }
4451
- const s = (c) => yc(c, i, t.compiler.shouldMinify);
4402
+ const s = (c) => nc(c, i, t.compiler.shouldMinify);
4452
4403
  function r(c, l) {
4453
- const d = $c(t, c, l, e, i);
4404
+ const d = mc(t, c, l, e, i);
4454
4405
  return t.compiler.viteCommand === "build" && o.setEmitFlags(d, o.EmitFlags.NoComments), d;
4455
4406
  }
4456
4407
  return e.statements.map(
4457
- (c) => Bn(r, c, t, n, s)
4408
+ (c) => On(r, c, t, n, s)
4458
4409
  );
4459
4410
  };
4460
- function Bn(e, t, i, n, s = Bi) {
4411
+ function On(e, t, i, n, s = Ji) {
4461
4412
  if (o.isClassDeclaration(t) && // Ignore classes that don't extend anything - those are definitely not components
4462
4413
  t.heritageClauses?.some((r) => r.token === o.SyntaxKind.ExtendsKeyword)) {
4463
4414
  let r = !1;
@@ -4480,15 +4431,15 @@ function Bn(e, t, i, n, s = Bi) {
4480
4431
  } else
4481
4432
  return i.compiler.isInTest ? o.visitEachChild(
4482
4433
  t,
4483
- (a) => Bn(e, a, i, n, s),
4434
+ (a) => On(e, a, i, n, s),
4484
4435
  i.transformation
4485
4436
  ) : t;
4486
4437
  }
4487
- const Cc = /* @__PURE__ */ new Set(["connectedCallback", "disconnectedCallback"]);
4488
- function $c(e, t, i, n, s) {
4438
+ const uc = /* @__PURE__ */ new Set(["connectedCallback", "disconnectedCallback"]);
4439
+ function mc(e, t, i, n, s) {
4489
4440
  if (o.isMethodDeclaration(t)) {
4490
4441
  const r = t.modifiers?.filter(
4491
- (a) => !o.isDecorator(a) || !Pc(a)
4442
+ (a) => !o.isDecorator(a) || !fc(a)
4492
4443
  );
4493
4444
  if (r?.length !== t.modifiers?.length)
4494
4445
  return o.factory.updateMethodDeclaration(
@@ -4502,7 +4453,7 @@ function $c(e, t, i, n, s) {
4502
4453
  t.type,
4503
4454
  t.body
4504
4455
  );
4505
- if ("text" in t.name && Cc.has(t.name.text) && t.body) {
4456
+ if ("text" in t.name && uc.has(t.name.text) && t.body) {
4506
4457
  const a = t.name.text;
4507
4458
  return t.body.statements.some(
4508
4459
  (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 === a
@@ -4528,16 +4479,16 @@ function $c(e, t, i, n, s) {
4528
4479
  );
4529
4480
  }
4530
4481
  }
4531
- return o.isPropertyDeclaration(t) || o.isAccessor(t) ? wc(e, t, i, n, s) : t;
4482
+ return o.isPropertyDeclaration(t) || o.isAccessor(t) ? lc(e, t, i, n, s) : t;
4532
4483
  }
4533
- const Pc = (e) => o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text === "method", vt = "@arcgis/core", ct = R(), Ce = vt in (ct.dependencies ?? {}) || vt in (ct.peerDependencies ?? {}) || // Does not depend on `@arcgis/core` to avoid cycle, but uses core in Lumina tests
4534
- ct.name === "@arcgis/lumina";
4535
- async function xc(e, t) {
4484
+ const fc = (e) => o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text === "method", ht = "@arcgis/core", at = R(), Ce = ht in (at.dependencies ?? {}) || ht in (at.peerDependencies ?? {}) || // Does not depend on `@arcgis/core` to avoid cycle, but uses core in Lumina tests
4485
+ at.name === "@arcgis/lumina";
4486
+ async function yc(e, t) {
4536
4487
  if (!Ce)
4537
4488
  return [];
4538
- const i = await _e(vt);
4489
+ const i = await _e(ht);
4539
4490
  if (t === "cdn") {
4540
- const n = await He(i), s = Ge({ name: "", version: n.version }, !0);
4491
+ const n = await He(i), s = qe({ name: "", version: n.version }, !0);
4541
4492
  return [
4542
4493
  // Use the ESM CDN
4543
4494
  // <script src="https://jsdev.arcgis.com/VERSION/"><\/script>
@@ -4553,22 +4504,22 @@ async function xc(e, t) {
4553
4504
  })
4554
4505
  },
4555
4506
  // <link rel="stylesheet" id="arcgisCoreStylesheet" href="https://jsdev.arcgis.com/VERSION/esri/themes/light/main.css" />
4556
- Ei(s)
4507
+ wi(s)
4557
4508
  ];
4558
4509
  } else
4559
- return [Ei(It(e, `${i}/assets/`))];
4510
+ return [wi(At(e, `${i}/assets/`))];
4560
4511
  }
4561
- const Ei = (e) => ({
4512
+ const wi = (e) => ({
4562
4513
  // Not using join() because it would turn https:// into https:/
4563
4514
  cssHref: `${e}esri/themes/light/main.css`,
4564
4515
  // This is used be the theme switcher in `@arcgis/storybook-utils`
4565
4516
  id: "arcgisCoreStylesheet"
4566
- }), Ci = "makeRuntime(", kc = "@arcgis/core";
4567
- function Ac(e, t) {
4568
- const i = e.indexOf(Ci);
4517
+ }), Ti = "makeRuntime(", gc = "@arcgis/core";
4518
+ function hc(e, t) {
4519
+ const i = e.indexOf(Ti);
4569
4520
  if (i === -1)
4570
4521
  throw new Error("Failed to find makeRuntime() function call in src/runtime.ts");
4571
- const n = i + Ci.length, s = t.options.css?.commonStylesPath;
4522
+ const n = i + Ti.length, s = t.options.css?.commonStylesPath;
4572
4523
  return {
4573
4524
  code: [
4574
4525
  s === void 0 ? "" : `import commonStyles from "${ee(t.dir.src, s)}";`,
@@ -4576,13 +4527,13 @@ function Ac(e, t) {
4576
4527
  "{",
4577
4528
  "defaultAssetPath:import.meta.env.BASE_URL,",
4578
4529
  'hydratedAttribute:"',
4579
- t.options.css?.hydratedAttribute ?? mn,
4530
+ t.options.css?.hydratedAttribute ?? dn,
4580
4531
  '",',
4581
4532
  s === void 0 ? "" : "commonStyles",
4582
4533
  "}",
4583
4534
  e.slice(n),
4584
4535
  Ce ? `
4585
- import {createObservable,trackAccess,createTrackingTarget,runTracked} from "${kc}/applications/Components/reactiveUtils.js";
4536
+ import {createObservable,trackAccess,createTrackingTarget,runTracked} from "${gc}/applications/Components/reactiveUtils.js";
4586
4537
  createObservable,
4587
4538
  runtime.t = trackAccess;
4588
4539
  runtime.o = createObservable;
@@ -4592,33 +4543,33 @@ runtime.r = runTracked;` : ""
4592
4543
  map: null
4593
4544
  };
4594
4545
  }
4595
- const Ic = [
4596
- uc,
4597
- Xs,
4598
- Ec
4599
- ], $i = "@arcgis/lumina:transformComponents", Lc = (e) => ({
4600
- name: $i,
4546
+ const vc = [
4547
+ ec,
4548
+ qs,
4549
+ pc
4550
+ ], Ei = "@arcgis/lumina:transformComponents", Sc = (e) => ({
4551
+ name: Ei,
4601
4552
  transform: {
4602
4553
  // Transform JSX to lit-html first so that vite:esbuild doesn't transform JSX to h().
4603
4554
  order: "pre",
4604
4555
  async handler(t, i) {
4605
4556
  if (!i.endsWith(".tsx")) {
4606
- if (e.isInTest && i.endsWith(".ts") && Et(i) && t.includes("extends LitElement"))
4557
+ if (e.isInTest && i.endsWith(".ts") && Tt(i) && t.includes("extends LitElement"))
4607
4558
  C.warn(
4608
- $i,
4559
+ Ei,
4609
4560
  "It looks like you may be trying to define a component inside a test file. This is supported, but you must use the .tsx file extension for you test",
4610
4561
  i
4611
4562
  );
4612
4563
  else if (i === `${e.dir.src}runtime.ts`)
4613
- return Ac(t, e);
4564
+ return hc(t, e);
4614
4565
  return;
4615
4566
  }
4616
4567
  const n = e.getSourceFile(i, t);
4617
4568
  await ve;
4618
4569
  const r = o.transform(n, [
4619
- (f) => () => Gi(e, f, n, [
4570
+ (f) => () => zi(e, f, n, [
4620
4571
  ...e.options.types?.sourceFileTransformers ?? [],
4621
- ...Ic
4572
+ ...vc
4622
4573
  ])
4623
4574
  ]).transformed[0], a = e._compilerOptionsForPrinter, c = e._typeScriptPrinter, l = a.sourceMap ? me.createSourceMapGenerator(
4624
4575
  e.typeScriptHost,
@@ -4636,7 +4587,7 @@ const Ic = [
4636
4587
  }
4637
4588
  }
4638
4589
  });
4639
- function Fc(e) {
4590
+ function bc(e) {
4640
4591
  const t = e.typeScriptConfig;
4641
4592
  return {
4642
4593
  ...t,
@@ -4668,8 +4619,8 @@ function Fc(e) {
4668
4619
  skipLibCheck: !0
4669
4620
  };
4670
4621
  }
4671
- function Nc(e) {
4672
- const t = e.options.types?.tsconfigPath, i = t && u.isAbsolute(t) ? t : fs(t ?? "tsconfig.json");
4622
+ function wc(e) {
4623
+ const t = e.options.types?.tsconfigPath, i = t && u.isAbsolute(t) ? t : ps(t ?? "tsconfig.json");
4673
4624
  if (i === void 0)
4674
4625
  throw Error(
4675
4626
  w(
@@ -4682,7 +4633,7 @@ function Nc(e) {
4682
4633
  if (n.error !== void 0)
4683
4634
  throw Error(
4684
4635
  o.formatDiagnosticsWithColorAndContext([n.error], {
4685
- getCanonicalFileName: Bi,
4636
+ getCanonicalFileName: Ji,
4686
4637
  getCurrentDirectory: o.sys.getCurrentDirectory,
4687
4638
  getNewLine: () => o.sys.newLine
4688
4639
  })
@@ -4695,7 +4646,7 @@ function Nc(e) {
4695
4646
  }, r = o.parseJsonConfigFileContent(s, o.sys, u.dirname(i));
4696
4647
  e.typeScriptConfig = r.options, e.typeScriptConfigPath = i;
4697
4648
  }
4698
- function Wn(e) {
4649
+ function Jn(e) {
4699
4650
  const t = e.target;
4700
4651
  if (t === void 0)
4701
4652
  throw Error(
@@ -4707,11 +4658,11 @@ function Wn(e) {
4707
4658
  const i = o.ScriptTarget[t].toLowerCase();
4708
4659
  return i === "latest" ? "esnext" : i;
4709
4660
  }
4710
- function Dc(e, t) {
4661
+ function Tc(e, t) {
4711
4662
  if (e.isInStorybook && e.viteCommand === "serve") {
4712
4663
  const i = (a, c, l, ...d) => {
4713
4664
  const p = a.filter(
4714
- (m) => (!m.includes(".stories.") || m.endsWith(".tsx")) && !Et(m)
4665
+ (m) => (!m.includes(".stories.") || m.endsWith(".tsx")) && !Tt(m)
4715
4666
  );
4716
4667
  return e.typeScriptHost = l, o.createAbstractBuilder(p, c, l, ...d);
4717
4668
  }, n = o.createWatchCompilerHost(
@@ -4726,17 +4677,17 @@ function Dc(e, t) {
4726
4677
  l[0] === "timerToUpdateProgram" ? s : c,
4727
4678
  ...l
4728
4679
  ), n.afterProgramCreate = (a) => {
4729
- e.typeScriptProgram = a.getProgram(), e.typeScriptTypeChecker = e.typeScriptProgram.getTypeChecker(), e._typeScriptReload?.resolve(), e._typeScriptReload = new Ts();
4680
+ e.typeScriptProgram = a.getProgram(), e.typeScriptTypeChecker = e.typeScriptProgram.getTypeChecker(), e._typeScriptReload?.resolve(), e._typeScriptReload = new Ss();
4730
4681
  }, e.typeScriptWatchProgram = o.createWatchProgram(n), e.typeScriptConfig = e.typeScriptProgram.getCompilerOptions();
4731
4682
  }
4732
- e.typeScriptConfig.sourceMap = t, e._compilerOptionsForPrinter = Fc(e), e._typeScriptPrinter = rn(e._compilerOptionsForPrinter);
4683
+ e.typeScriptConfig.sourceMap = t, e._compilerOptionsForPrinter = bc(e), e._typeScriptPrinter = tn(e._compilerOptionsForPrinter);
4733
4684
  }
4734
- async function jc(e, t, i) {
4685
+ async function Ec(e, t, i) {
4735
4686
  const n = u.resolve(e.dir.root, t);
4736
- await U(n) && await $s(n, { recursive: !0, force: !0 }), await z(n, { recursive: !0 }), await Ps(e.dir.distCdn, u.join(n, "build"), { recursive: !0 });
4687
+ await U(n) && await Ts(n, { recursive: !0, force: !0 }), await z(n, { recursive: !0 }), await Es(e.dir.distCdn, u.join(n, "build"), { recursive: !0 });
4737
4688
  const s = [
4738
4689
  "index.html",
4739
- ...await Ms("**/*.html", {
4690
+ ...await Ds("**/*.html", {
4740
4691
  cwd: e.dir.src,
4741
4692
  nodir: !0,
4742
4693
  posix: !0
@@ -4768,7 +4719,7 @@ async function jc(e, t, i) {
4768
4719
  })
4769
4720
  );
4770
4721
  }
4771
- const _n = /* @__PURE__ */ new Set([
4722
+ const Kn = /* @__PURE__ */ new Set([
4772
4723
  "chunks",
4773
4724
  "components",
4774
4725
  "docs",
@@ -4781,13 +4732,13 @@ const _n = /* @__PURE__ */ new Set([
4781
4732
  "collection",
4782
4733
  "extras",
4783
4734
  "support"
4784
- ]), _ = "@arcgis/lumina:buildCdn", Dt = "cdn", Hn = "index", we = "main";
4785
- function Rc(e) {
4735
+ ]), _ = "@arcgis/lumina:buildCdn", Nt = "cdn", Wn = "index", we = "main";
4736
+ function Cc(e) {
4786
4737
  const { skip: t = !1, namespace: i, esbuildOptions: n = {} } = e.options.build?.cdn ?? {}, s = e.options.build?.webApp?.destination, r = i !== void 0;
4787
4738
  if (r) {
4788
4739
  if (i.toLowerCase() !== i)
4789
4740
  throw new Error(`Expected CDN namespace to be all lowercase. Received: ${i}`);
4790
- if (_n.has(i))
4741
+ if (Kn.has(i))
4791
4742
  throw new Error(
4792
4743
  `Namespace name "${i}" is restricted as it collides with a well-known Lumina dist/ folder name or Stencil dist/ folder name.`
4793
4744
  );
@@ -4795,11 +4746,11 @@ function Rc(e) {
4795
4746
  'The "namespace" option in the "build.cdn" is deprecated and will be removed in the next major version.'
4796
4747
  );
4797
4748
  }
4798
- const a = i ?? Hn;
4749
+ const a = i ?? Wn;
4799
4750
  if (e.provideAssets([
4800
4751
  {
4801
4752
  type: "dynamic",
4802
- source: () => _o(e),
4753
+ source: () => Lo(e),
4803
4754
  destination: `../${r ? a : we}.css`
4804
4755
  }
4805
4756
  ]), !t)
@@ -4808,8 +4759,8 @@ function Rc(e) {
4808
4759
  async writeBundle() {
4809
4760
  if (e.isInStorybook)
4810
4761
  return;
4811
- const c = Ce && R().name !== "@arcgis/embeddable-components", l = Date.now(), d = Array.isArray(n.entryPoints) ? n.entryPoints.map((f) => typeof f == "string" ? { in: f, out: "" } : f) : typeof n.entryPoints == "object" ? Object.entries(n.entryPoints).map(([f, y]) => ({ in: y, out: f })) : [], p = await Mc(e, a, n, d, c);
4812
- await Oc(
4762
+ const c = Ce && R().name !== "@arcgis/embeddable-components", l = Date.now(), d = Array.isArray(n.entryPoints) ? n.entryPoints.map((f) => typeof f == "string" ? { in: f, out: "" } : f) : typeof n.entryPoints == "object" ? Object.entries(n.entryPoints).map(([f, y]) => ({ in: y, out: f })) : [], p = await $c(e, a, n, d, c);
4763
+ await Pc(
4813
4764
  p,
4814
4765
  e,
4815
4766
  r ? `${a}.esm` : a,
@@ -4817,11 +4768,11 @@ function Rc(e) {
4817
4768
  c
4818
4769
  );
4819
4770
  const m = Date.now();
4820
- C.info(_, `CDN was built in ${m - l}ms`), s && await jc(e, s, `${r ? `${a}.esm` : a}.js`);
4771
+ C.info(_, `CDN was built in ${m - l}ms`), s && await Ec(e, s, `${r ? `${a}.esm` : a}.js`);
4821
4772
  }
4822
4773
  };
4823
4774
  }
4824
- async function Mc(e, t, i, n, s) {
4775
+ async function $c(e, t, i, n, s) {
4825
4776
  const r = e.environment;
4826
4777
  if (i.minify && s)
4827
4778
  throw Error(
@@ -4837,7 +4788,7 @@ async function Mc(e, t, i, n, s) {
4837
4788
  "Source maps in the CDN build are not yet supported - open a feature request with Lumina maintainers if it is needed"
4838
4789
  )
4839
4790
  );
4840
- return await Rs({
4791
+ return await Ns({
4841
4792
  bundle: !0,
4842
4793
  minify: s ? !0 : r === "production",
4843
4794
  treeShaking: !0,
@@ -4863,7 +4814,7 @@ async function Mc(e, t, i, n, s) {
4863
4814
  chunkNames: "[hash]",
4864
4815
  resolveExtensions: [".js", ".json"],
4865
4816
  banner: { js: e.banner },
4866
- target: Wn(e.typeScriptConfig),
4817
+ target: Jn(e.typeScriptConfig),
4867
4818
  ...i,
4868
4819
  plugins: [
4869
4820
  // Deprecated feature will be dropped in https://devtopia.esri.com/WebGIS/arcgis-web-components/issues/2765
@@ -4908,7 +4859,7 @@ async function Mc(e, t, i, n, s) {
4908
4859
  * The script's file name will be stripped inside defineCustomElements.
4909
4860
  **/
4910
4861
  defineCustomElements({resourcesUrl: import.meta.url});
4911
- ${fn(e._globalCssString, e)}`,
4862
+ ${pn(e._globalCssString, e)}`,
4912
4863
  sourcefile: `${t}.esm.js`,
4913
4864
  resolveDir: e.dir.dist,
4914
4865
  loader: "js",
@@ -4916,7 +4867,7 @@ ${fn(e._globalCssString, e)}`,
4916
4867
  }
4917
4868
  });
4918
4869
  }
4919
- async function Oc(e, t, i, n, s) {
4870
+ async function Pc(e, t, i, n, s) {
4920
4871
  const r = t.dir.distCdn, a = `${i}.js`, c = new Map(
4921
4872
  e.outputFiles.map((l) => {
4922
4873
  const d = {
@@ -4926,12 +4877,12 @@ async function Oc(e, t, i, n, s) {
4926
4877
  }, p = l.path.slice(r.length);
4927
4878
  if (p === "stdin.js") {
4928
4879
  if (s) {
4929
- const f = l.text.match(Jc)?.[0];
4880
+ const f = l.text.match(xc)?.[0];
4930
4881
  if (f === void 0)
4931
4882
  throw Error(
4932
4883
  "Failed to find the runtime variable name in the CDN entrypoint file. This likely indicates a bug in Lumina"
4933
4884
  );
4934
- d.code = `${d.code.trimEnd()}${Kc(f, n)}`, d.isAsync = !1;
4885
+ d.code = `${d.code.trimEnd()}${kc(f, n)}`, d.isAsync = !1;
4935
4886
  }
4936
4887
  return [a, d];
4937
4888
  }
@@ -4939,11 +4890,11 @@ async function Oc(e, t, i, n, s) {
4939
4890
  })
4940
4891
  );
4941
4892
  s && c.forEach((l, d) => {
4942
- l.isAsync === void 0 && (d.endsWith(".js") ? Un(l, c) : l.isAsync = !1);
4893
+ l.isAsync === void 0 && (d.endsWith(".js") ? Bn(l, c) : l.isAsync = !1);
4943
4894
  }), t.options.build?.cdn?.transformer?.(c, t), await Promise.all(Array.from(c.entries(), async ([l, { code: d }]) => await F(r + l, d)));
4944
4895
  }
4945
- const Jc = /(?<=;var [a-zA-Z$_]=[a-zA-Z$_]\()[a-zA-Z$_](?=,\{")/u;
4946
- function Kc(e, t) {
4896
+ const xc = /(?<=;var [a-zA-Z$_]=[a-zA-Z$_]\()[a-zA-Z$_](?=,\{")/u;
4897
+ function kc(e, t) {
4947
4898
  let i = [
4948
4899
  "window.$arcgis",
4949
4900
  "||",
@@ -4984,29 +4935,29 @@ function Kc(e, t) {
4984
4935
  }
4985
4936
  return i += ")", i;
4986
4937
  }
4987
- function Un(e, t) {
4938
+ function Bn(e, t) {
4988
4939
  const i = [], n = [], s = [], r = /* @__PURE__ */ new Set(), a = [];
4989
4940
  let c = 0;
4990
- const l = e.code.matchAll(Bc);
4941
+ const l = e.code.matchAll(Ac);
4991
4942
  for (const b of l) {
4992
- const [E, I, N, D, M] = b, H = M.startsWith(We);
4943
+ const [E, I, N, D, M] = b, H = M.startsWith(Be);
4993
4944
  if (c !== 0 && c !== b.index) {
4994
4945
  const K = e.code.slice(c, b.index);
4995
4946
  s.push(K), a.push([c, K.length, 0, ""]);
4996
4947
  }
4997
4948
  if (c = b.index + E.length, H)
4998
- a.push([b.index, E.length, 0, ""]), n.push(`"${qn(M.slice(We.length))}"`), i.push(I?.replaceAll(" as ", ":") ?? N ?? D ?? "");
4949
+ a.push([b.index, E.length, 0, ""]), n.push(`"${Hn(M.slice(Be.length))}"`), i.push(I?.replaceAll(" as ", ":") ?? N ?? D ?? "");
4999
4950
  else {
5000
- const K = zn(M, t), G = K?.isAsync === !0;
4951
+ const K = _n(M, t), G = K?.isAsync === !0;
5001
4952
  if (I !== void 0) {
5002
4953
  const xe = [];
5003
- for (const Ye of I.slice(1, -1).split(",")) {
5004
- const [Ot, Jt = Ot] = Ye.split(" as ");
5005
- G || r.add(Jt), xe.push(`${Ot}:${Jt}`);
4954
+ for (const Ze of I.slice(1, -1).split(",")) {
4955
+ const [Mt, Ot = Mt] = Ze.split(" as ");
4956
+ G || r.add(Ot), xe.push(`${Mt}:${Ot}`);
5006
4957
  }
5007
4958
  if (G) {
5008
- const Ye = K.oldSingleExportName === void 0 ? `{${xe.join(",")}}` : xe[0].split(":")[1];
5009
- a.push([b.index + 6, 0, I.length, Ye]);
4959
+ const Ze = K.oldSingleExportName === void 0 ? `{${xe.join(",")}}` : xe[0].split(":")[1];
4960
+ a.push([b.index + 6, 0, I.length, Ze]);
5010
4961
  }
5011
4962
  } else if (N === void 0 && D === void 0)
5012
4963
  G && a.push([b.index + 6, 0, 0, ""]);
@@ -5023,10 +4974,10 @@ function Un(e, t) {
5023
4974
  }
5024
4975
  }
5025
4976
  if (e.isAsync = a.length > 0, !e.isAsync) {
5026
- e.code = Pi(e.code, t);
4977
+ e.code = Ci(e.code, t);
5027
4978
  return;
5028
4979
  }
5029
- const d = Hc(r);
4980
+ const d = Fc(r);
5030
4981
  let p = e.code.slice(0, c);
5031
4982
  for (let b = a.length - 1; b >= 0; b--) {
5032
4983
  const [E, I, N, D] = a[b];
@@ -5037,7 +4988,7 @@ function Un(e, t) {
5037
4988
  }
5038
4989
  p = p.slice(0, E) + H + p.slice(E + M);
5039
4990
  }
5040
- const m = Wc.exec(e.code), f = m?.index ?? e.code.length;
4991
+ const m = Ic.exec(e.code), f = m?.index ?? e.code.length;
5041
4992
  let y = "";
5042
4993
  if (m !== null) {
5043
4994
  const b = m[1].split(",");
@@ -5053,66 +5004,66 @@ function Un(e, t) {
5053
5004
  }
5054
5005
  const g = i.findLastIndex((b) => b.length > 0), h = i.slice(0, g + 1).join(","), S = `export default $arcgis.t(${i.length === 0 ? "_" : `([${h}])`}=>{`, T = n.join(","), x = `${y}},${T})`;
5055
5006
  let L = e.code.slice(c, f);
5056
- L = `${s.join("")}${L}`, L = Pi(L, t);
5007
+ L = `${s.join("")}${L}`, L = Ci(L, t);
5057
5008
  const $ = `${p}${S}${L}${x}`;
5058
5009
  e.code = $;
5059
5010
  }
5060
- const Bc = /import(?:(\{[^}]+\})from|\*as (\w+) from| ([\w$]+) from)?"([^"]+)";/gu, Wc = /export\{([^}]+)\};\n$/u, We = "@arcgis/core/";
5061
- function zn(e, t) {
5011
+ const Ac = /import(?:(\{[^}]+\})from|\*as (\w+) from| ([\w$]+) from)?"([^"]+)";/gu, Ic = /export\{([^}]+)\};\n$/u, Be = "@arcgis/core/";
5012
+ function _n(e, t) {
5062
5013
  if (!e.startsWith("./"))
5063
5014
  return;
5064
5015
  const i = e.slice(2), n = t.get(i);
5065
5016
  if (n === void 0)
5066
5017
  throw Error(w(_, `Failed to find the ${e} module`));
5067
- if (n.isAsync === void 0 && Un(n, t), n.isAsync === void 0)
5018
+ if (n.isAsync === void 0 && Bn(n, t), n.isAsync === void 0)
5068
5019
  throw Error(w(_, `Failed to infer whether the ${e} module has top-level await`));
5069
5020
  return n;
5070
5021
  }
5071
- function Pi(e, t) {
5072
- return e.replaceAll(_c, (i, n) => {
5073
- if (n.startsWith(We))
5074
- return `$arcgis.t(m=>m[0],"${qn(n.slice(We.length))}")`;
5022
+ function Ci(e, t) {
5023
+ return e.replaceAll(Lc, (i, n) => {
5024
+ if (n.startsWith(Be))
5025
+ return `$arcgis.t(m=>m[0],"${Hn(n.slice(Be.length))}")`;
5075
5026
  if (n.startsWith("./")) {
5076
- const s = zn(n, t);
5027
+ const s = _n(n, t);
5077
5028
  if (s?.isAsync === !0)
5078
5029
  return `${i}.then(m=>m.default${s.oldSingleExportName === void 0 ? "" : `.then(e=>({${s.oldSingleExportName}:e}))`})`;
5079
5030
  }
5080
5031
  return i;
5081
5032
  });
5082
5033
  }
5083
- const _c = /(?<![.\w\d])import\("([^"]+)"\)/gu, qn = (e) => e.endsWith(".js") ? e.slice(0, -3) : e;
5084
- function Hc(e) {
5085
- const t = [Gn];
5034
+ const Lc = /(?<![.\w\d])import\("([^"]+)"\)/gu, Hn = (e) => e.endsWith(".js") ? e.slice(0, -3) : e;
5035
+ function Fc(e) {
5036
+ const t = [Un];
5086
5037
  return () => {
5087
5038
  for (; ; ) {
5088
- const i = qc(t);
5089
- if (Gc(t), !e.has(i))
5039
+ const i = jc(t);
5040
+ if (Rc(t), !e.has(i))
5090
5041
  return e.add(i), i;
5091
5042
  }
5092
5043
  };
5093
5044
  }
5094
- const Gn = 0, jt = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_", Vn = `${jt}0123456789`, Uc = jt.length, zc = Vn.length;
5095
- function qc(e) {
5096
- let t = jt[e[0]];
5045
+ const Un = 0, Dt = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_", zn = `${Dt}0123456789`, Nc = Dt.length, Dc = zn.length;
5046
+ function jc(e) {
5047
+ let t = Dt[e[0]];
5097
5048
  for (let i = 1; i < e.length; i++)
5098
- t += Vn[e[i]];
5049
+ t += zn[e[i]];
5099
5050
  return t;
5100
5051
  }
5101
- function Gc(e) {
5052
+ function Rc(e) {
5102
5053
  let t = e.length - 1;
5103
5054
  for (; t >= 0; ) {
5104
- const i = t === 0 ? Uc : zc;
5055
+ const i = t === 0 ? Nc : Dc;
5105
5056
  if (e[t] += 1, e[t] >= i)
5106
5057
  e[t] = 0, t--;
5107
5058
  else
5108
5059
  return;
5109
5060
  }
5110
- e = new Array(e.length + 1).fill(Gn);
5061
+ e = new Array(e.length + 1).fill(Un);
5111
5062
  }
5112
- async function Vc(e, t, i, n) {
5113
- const s = t.packageName, r = await _e(s), { hasCss: a, cdnName: c } = await Xn(u.join(r, "dist")) ?? {};
5063
+ async function Mc(e, t, i, n) {
5064
+ const s = t.packageName, r = await _e(s), { hasCss: a, cdnName: c } = await qn(u.join(r, "dist")) ?? {};
5114
5065
  if (i === "cdn") {
5115
- const m = await He(r), f = t.cdnUrl ?? Ge(m, !0);
5066
+ const m = await He(r), f = t.cdnUrl ?? qe(m, !0);
5116
5067
  return [
5117
5068
  ...a ? [
5118
5069
  {
@@ -5147,40 +5098,40 @@ async function Vc(e, t, i, n) {
5147
5098
  ...d,
5148
5099
  `import { defineCustomElements as defineCustomElements$${n} } from "${p}";`,
5149
5100
  `defineCustomElements$${n}(globalThis.window, {`,
5150
- ` resourcesUrl: "${It(e, r)}/dist/${c}/",`,
5101
+ ` resourcesUrl: "${At(e, r)}/dist/${c}/",`,
5151
5102
  "});"
5152
5103
  ]
5153
5104
  }
5154
5105
  ];
5155
5106
  }
5156
- async function Xn(e) {
5107
+ async function qn(e) {
5157
5108
  const i = (await Ue(e)).filter(
5158
- (s) => !_n.has(s) && !s.includes(".")
5109
+ (s) => !Kn.has(s) && !s.includes(".")
5159
5110
  ), n = i.find((s) => s.startsWith("arcgis-"));
5160
5111
  return n === void 0 ? await Promise.all(
5161
- i.map(async (s) => await xi(e, s))
5162
- ).then((s) => s.find(j)) : await xi(e, n);
5112
+ i.map(async (s) => await $i(e, s))
5113
+ ).then((s) => s.find(j)) : await $i(e, n);
5163
5114
  }
5164
- async function xi(e, t) {
5115
+ async function $i(e, t) {
5165
5116
  const i = u.join(e, t, `${t}.css`), n = u.join(e, t, "assets"), [s, r] = await Promise.all([U(i), U(n)]);
5166
5117
  return s || r ? {
5167
5118
  hasCss: s,
5168
5119
  cdnName: t
5169
5120
  } : void 0;
5170
5121
  }
5171
- async function Xc(e, t, i, n) {
5172
- const s = t.packageName, r = await _e(s), a = await He(r), c = await Xn(u.join(r, "dist"));
5122
+ async function Oc(e, t, i, n) {
5123
+ const s = t.packageName, r = await _e(s), a = await He(r), c = await qn(u.join(r, "dist"));
5173
5124
  if (i === "cdn") {
5174
- const y = a.exports?.[`./${we}.css`] === void 0, g = y ? c.cdnName : Hn;
5125
+ const y = a.exports?.[`./${we}.css`] === void 0, g = y ? c.cdnName : Wn;
5175
5126
  return {
5176
5127
  tag: "script",
5177
5128
  attrs: {
5178
5129
  type: "module",
5179
- src: `${t.cdnUrl ?? Ge(a, !0)}${g}${y ? ".esm" : ""}.js`
5130
+ src: `${t.cdnUrl ?? qe(a, !0)}${g}${y ? ".esm" : ""}.js`
5180
5131
  }
5181
5132
  };
5182
5133
  }
5183
- const l = c?.cdnName ?? Dt, d = Qc(a), p = `${s}/${u.normalize(d)}${Q}`, m = [
5134
+ const l = c?.cdnName ?? Nt, d = Jc(a), p = `${s}/${u.normalize(d)}${Q}`, m = [
5184
5135
  `import styles$${n} from "${p}";`,
5185
5136
  `document.adoptedStyleSheets = [...document.adoptedStyleSheets, styles$${n}.styleSheet];`
5186
5137
  ], f = `${s}/loader`;
@@ -5194,12 +5145,12 @@ async function Xc(e, t, i, n) {
5194
5145
  ...m,
5195
5146
  `import { defineCustomElements as defineCustomElements$${n} } from "${f}";`,
5196
5147
  `defineCustomElements$${n}({`,
5197
- ` resourcesUrl: "${It(e, r)}/dist/${l}/",`,
5148
+ ` resourcesUrl: "${At(e, r)}/dist/${l}/",`,
5198
5149
  "});"
5199
5150
  ]
5200
5151
  };
5201
5152
  }
5202
- function Qc(e) {
5153
+ function Jc(e) {
5203
5154
  const { exports: t } = e;
5204
5155
  if (t === void 0)
5205
5156
  throw new Error(
@@ -5209,21 +5160,21 @@ function Qc(e) {
5209
5160
  return n ? n[0] : i.length > 0 ? i[0][0] : `./${we}.css`;
5210
5161
  }
5211
5162
  async function Te(e) {
5212
- return e._loadersCache ??= Zc(e), await e._loadersCache;
5163
+ return e._loadersCache ??= Kc(e), await e._loadersCache;
5213
5164
  }
5214
- async function Zc(e) {
5165
+ async function Kc(e) {
5215
5166
  const t = e.viteCommand === "build" ? "cdn" : "lazyNpm", i = e.viteConfig.base;
5216
5167
  let n = 0;
5217
5168
  const s = async (l) => (await Promise.all(
5218
5169
  l.map(async (d) => {
5219
5170
  const p = n++;
5220
- return d.type === "stencil" ? await Vc(i, d, t, p) : d.type === "@arcgis/lumina" ? await Xc(i, d, t, p) : void 0;
5171
+ return d.type === "stencil" ? await Mc(i, d, t, p) : d.type === "@arcgis/lumina" ? await Oc(i, d, t, p) : void 0;
5221
5172
  })
5222
5173
  )).filter(j).flat(), r = await Promise.all([
5223
5174
  // This may contain an import map so must be first
5224
- xc(i, t),
5175
+ yc(i, t),
5225
5176
  ve.then(s),
5226
- Qn(e).then(s)
5177
+ Gn(e).then(s)
5227
5178
  ]), a = u.join(e.dir.src, "loader.ts");
5228
5179
  return [
5229
5180
  ...r.flat(),
@@ -5237,16 +5188,16 @@ async function Zc(e) {
5237
5188
  javascriptCode: [
5238
5189
  `import { defineCustomElements } from "${a}";`,
5239
5190
  "globalThis.devOnly$ownTagNames = new Set();",
5240
- `defineCustomElements(${t === "cdn" ? `{resourcesUrl:"./${e.options.build?.cdn?.namespace ?? Dt}/"}` : ""});`
5191
+ `defineCustomElements(${t === "cdn" ? `{resourcesUrl:"./${e.options.build?.cdn?.namespace ?? Nt}/"}` : ""});`
5241
5192
  ]
5242
5193
  }
5243
5194
  ];
5244
5195
  }
5245
- async function Qn(e) {
5196
+ async function Gn(e) {
5246
5197
  const t = e.options?.serve?.extraDependencies ?? [];
5247
5198
  return t.length === 0 ? [] : (e._serveOnlyDependencies ??= Promise.all(
5248
5199
  t.map(async (i) => {
5249
- const n = typeof i == "string" ? i : i.name, s = await bn(n);
5200
+ const n = typeof i == "string" ? i : i.name, s = await hn(n);
5250
5201
  if (s === void 0)
5251
5202
  throw Error(
5252
5203
  w(
@@ -5261,10 +5212,10 @@ async function Qn(e) {
5261
5212
  })
5262
5213
  ).then((i) => i.filter(j)), await e._serveOnlyDependencies);
5263
5214
  }
5264
- const Zn = "/@arcgis/lumina-compiler/testSetupFile", lt = [Zn];
5265
- async function Yc(e) {
5215
+ const Vn = "/@arcgis/lumina-compiler/testSetupFile", ct = [Vn];
5216
+ async function Wc(e) {
5266
5217
  if (!e.viteConfig.test?.browser?.enabled)
5267
- return ki(e);
5218
+ return Pi(e);
5268
5219
  const i = (await Te(e)).map((n, s) => {
5269
5220
  if ("javascriptCode" in n)
5270
5221
  return n.javascriptCode.join(`
@@ -5288,14 +5239,14 @@ async function Yc(e) {
5288
5239
  }).join(`
5289
5240
 
5290
5241
  `);
5291
- return [ki(e), i].join("");
5242
+ return [Pi(e), i].join("");
5292
5243
  }
5293
- const ki = (e) => [e.isInPuppeteerTestBackEnd ? el : "", tl].join(""), el = `import { setupPuppeteerTest } from "@arcgis/lumina-compiler/puppeteerTesting";
5244
+ const Pi = (e) => [e.isInPuppeteerTestBackEnd ? Bc : "", _c].join(""), Bc = `import { setupPuppeteerTest } from "@arcgis/lumina-compiler/puppeteerTesting";
5294
5245
  setupPuppeteerTest();
5295
- `, tl = `import { setupLuminaTest } from "@arcgis/lumina-compiler/testing";
5246
+ `, _c = `import { setupLuminaTest } from "@arcgis/lumina-compiler/testing";
5296
5247
  setupLuminaTest();
5297
5248
  `;
5298
- function il(e) {
5249
+ function Hc(e) {
5299
5250
  let t = !0, i = !1, n, s, r, a, c;
5300
5251
  const l = "@arcgis/lumina:generateVirtualFiles", d = {
5301
5252
  name: l,
@@ -5305,20 +5256,20 @@ function il(e) {
5305
5256
  },
5306
5257
  resolveId: (g) => g === a || g === c ? a : void 0,
5307
5258
  async load(g) {
5308
- const h = g.startsWith(Zn);
5259
+ const h = g.startsWith(Vn);
5309
5260
  if (!(!g.endsWith(".tsx") && g !== a && !h)) {
5310
5261
  if (s === void 0 && !e.isInPuppeteerTestBackEnd) {
5311
- r === void 0 && clearTimeout(n), r ??= ta(e, t).catch((S) => {
5262
+ r === void 0 && clearTimeout(n), r ??= _o(e, t).catch((S) => {
5312
5263
  throw i = !0, S;
5313
5264
  }), t = !1;
5314
5265
  const v = await r;
5315
5266
  s ??= v;
5316
5267
  }
5317
- return g === a ? Ho(e) : h ? await Yc(e) : void 0;
5268
+ return g === a ? Fo(e) : h ? await Wc(e) : void 0;
5318
5269
  }
5319
5270
  },
5320
5271
  async writeBundle() {
5321
- e.isInStorybook || await F(u.join(e.dir.dist, "loader.d.ts"), Uo);
5272
+ e.isInStorybook || await F(u.join(e.dir.dist, "loader.d.ts"), No);
5322
5273
  },
5323
5274
  async handleHotUpdate({ file: g, modules: h, read: v }) {
5324
5275
  const S = await p(g, v);
@@ -5337,7 +5288,7 @@ function il(e) {
5337
5288
  );
5338
5289
  }), g.watcher.on("add", h), g.watcher.on("unlink", h), g.watcher.on(
5339
5290
  "addDir",
5340
- (v) => v.startsWith(e.dir.srcComponents) ? void xt(e, e.dir.srcComponents, v).then(
5291
+ (v) => v.startsWith(e.dir.srcComponents) ? void Pt(e, e.dir.srcComponents, v).then(
5341
5292
  (S) => S.length > 0 ? m() : void 0
5342
5293
  ) : void 0
5343
5294
  ), g.watcher.on("unlinkDir", (v) => {
@@ -5383,11 +5334,11 @@ function il(e) {
5383
5334
  if (!he(g, e.dir.srcComponents))
5384
5335
  return;
5385
5336
  v ??= await h();
5386
- const T = ia(e, g, v);
5337
+ const T = Ho(e, g, v);
5387
5338
  if (T === void 0)
5388
5339
  return !1;
5389
5340
  for (const x of T) {
5390
- const L = yn(x);
5341
+ const L = un(x);
5391
5342
  e.server.ws.send({ type: "custom", event: "component-meta-update", data: L });
5392
5343
  }
5393
5344
  return f(), !0;
@@ -5405,21 +5356,21 @@ function il(e) {
5405
5356
  });
5406
5357
  return d;
5407
5358
  }
5408
- const St = "@arcgis/lumina:provideAssets";
5409
- function fe(e, t, i = Rt) {
5359
+ const vt = "@arcgis/lumina:provideAssets";
5360
+ function fe(e, t, i = jt) {
5410
5361
  if (e.viteCommand !== "serve")
5411
- throw Error(w(St, "serveAssets() is only available when Vite is running in serve mode"));
5362
+ throw Error(w(vt, "serveAssets() is only available when Vite is running in serve mode"));
5412
5363
  const n = e._serverConfigured, s = e.server.middlewares.stack.length;
5413
5364
  if (t.forEach((r) => {
5414
- const a = es(r), c = is(e.dir, ts(a)), l = sl(e.viteConfig.base, c, e.dir.distCdn);
5365
+ const a = Qn(r), c = Yn(e.dir, Zn(a)), l = zc(e.viteConfig.base, c, e.dir.distCdn);
5415
5366
  e.server.middlewares.use(l, (d, p, m) => {
5416
- const f = rl(d.url), y = a.type === "directory" ? u.resolve(a.source, f.slice(1)) : a.source, g = u.join(c, f), h = i.find((v) => v.match(g, e));
5367
+ const f = qc(d.url), y = a.type === "directory" ? u.resolve(a.source, f.slice(1)) : a.source, g = u.join(c, f), h = i.find((v) => v.match(g, e));
5417
5368
  return (typeof y == "function" ? Promise.resolve(y()) : J(y)).then((v) => {
5418
5369
  const S = (typeof y == "function" ? void 0 : h?.transform(v.toString("utf8"), g, e)) ?? v;
5419
- p.setHeader("Cache-Control", "max-age=31536000, immutable"), p.setHeader("Content-Type", Os.lookup(f) || "application/octet-stream"), p.write(S), p.end();
5370
+ p.setHeader("Cache-Control", "max-age=31536000, immutable"), p.setHeader("Content-Type", js.lookup(f) || "application/octet-stream"), p.write(S), p.end();
5420
5371
  }).catch((v) => {
5421
5372
  (a.type !== "directory" || process.env.DEBUG) && C.warn(
5422
- St,
5373
+ vt,
5423
5374
  `Error occurred when trying to serve a file in response to request for "${d.originalUrl ?? f}":${String(v)}`
5424
5375
  ), m();
5425
5376
  }), !0;
@@ -5429,22 +5380,22 @@ function fe(e, t, i = Rt) {
5429
5380
  e.server.middlewares.stack.splice(0, 0, ...r);
5430
5381
  }
5431
5382
  }
5432
- async function Yn(e, t, i = Rt) {
5383
+ async function Xn(e, t, i = jt) {
5433
5384
  await Promise.all(
5434
5385
  t.map(async (n) => {
5435
- const s = es(n), r = is(e.dir, ts(s));
5386
+ const s = Qn(n), r = Yn(e.dir, Zn(s));
5436
5387
  if (s.type === "directory") {
5437
5388
  const a = u.resolve(s.source), l = (await Ue(a, { recursive: !0, withFileTypes: !0 })).filter((d) => d.isFile()).map((d) => {
5438
5389
  const p = u.resolve(d.parentPath, d.name), m = u.relative(a, p), f = u.join(r, m);
5439
5390
  return [p, f];
5440
5391
  });
5441
- await ss(l.map(([d, p]) => p)), await Promise.all(
5392
+ await ts(l.map(([d, p]) => p)), await Promise.all(
5442
5393
  l.map(
5443
- async ([d, p]) => await Ai(d, p, i, e)
5394
+ async ([d, p]) => await xi(d, p, i, e)
5444
5395
  )
5445
5396
  );
5446
5397
  } else if (s.type === "file")
5447
- await z(u.dirname(r), { recursive: !0 }), await Ai(s.source, r, i, e);
5398
+ await z(u.dirname(r), { recursive: !0 }), await xi(s.source, r, i, e);
5448
5399
  else if (s.type === "dynamic") {
5449
5400
  await z(u.dirname(r), { recursive: !0 });
5450
5401
  const a = await Promise.resolve(s.source());
@@ -5453,7 +5404,7 @@ async function Yn(e, t, i = Rt) {
5453
5404
  })
5454
5405
  );
5455
5406
  }
5456
- const es = Oi ? (e) => e : (e) => e.type === "dynamic" ? {
5407
+ const Qn = Ri ? (e) => e : (e) => e.type === "dynamic" ? {
5457
5408
  ...e,
5458
5409
  destination: Le(e.destination)
5459
5410
  } : {
@@ -5461,23 +5412,23 @@ const es = Oi ? (e) => e : (e) => e.type === "dynamic" ? {
5461
5412
  source: Le(e.source),
5462
5413
  destination: Le(e.destination)
5463
5414
  };
5464
- async function Ai(e, t, i, n) {
5415
+ async function xi(e, t, i, n) {
5465
5416
  const s = i.find((r) => r.match(t, n));
5466
5417
  if (s === void 0)
5467
- await xs(e, t);
5418
+ await Cs(e, t);
5468
5419
  else {
5469
5420
  const r = await J(e, "utf8"), a = s.transform(r, t, n);
5470
5421
  await F(t, a);
5471
5422
  }
5472
5423
  }
5473
- function ts(e) {
5424
+ function Zn(e) {
5474
5425
  if (e.type === "dynamic")
5475
5426
  return e.destination;
5476
5427
  if (e.source.endsWith(u.sep)) {
5477
5428
  if (e.type === "file")
5478
5429
  throw Error(
5479
5430
  w(
5480
- St,
5431
+ vt,
5481
5432
  `Unexpectedly tried to provide an asset with type "file", whose source looks like a directory: ${Y(e.source)}. If source is meant to be a directory, change to "type":"directory". If source is a file, make sure source path does not end with / or \\`
5482
5433
  )
5483
5434
  );
@@ -5485,72 +5436,72 @@ function ts(e) {
5485
5436
  }
5486
5437
  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;
5487
5438
  }
5488
- function is({ dist: e, distCdnAssets: t }, i) {
5489
- const n = nl(i), s = u.join(
5439
+ function Yn({ dist: e, distCdnAssets: t }, i) {
5440
+ const n = Uc(i), s = u.join(
5490
5441
  t,
5491
5442
  n ? u.relative(t, i) : i
5492
- ), r = u.relative(e, s), a = ns(r);
5443
+ ), r = u.relative(e, s), a = es(r);
5493
5444
  return u.join(e, a);
5494
5445
  }
5495
- function nl(e) {
5446
+ function Uc(e) {
5496
5447
  if (e.startsWith(u.sep)) {
5497
- const t = Ji(), i = t.startsWith(u.sep) ? t.split(u.sep)[1] ?? "" : "";
5448
+ const t = Mi(), i = t.startsWith(u.sep) ? t.split(u.sep)[1] ?? "" : "";
5498
5449
  return e.startsWith(`/${i}/`) || e.startsWith("/Users/");
5499
5450
  } else
5500
- return !!(!Oi && u.isAbsolute(e));
5451
+ return !!(!Ri && u.isAbsolute(e));
5501
5452
  }
5502
- function sl(e, t, i) {
5503
- const n = ns(u.relative(i, t)), s = n.startsWith("/") ? n.slice(1) : n;
5453
+ function zc(e, t, i) {
5454
+ const n = es(u.relative(i, t)), s = n.startsWith("/") ? n.slice(1) : n;
5504
5455
  return `${e}${s}`;
5505
5456
  }
5506
- const ns = (e) => e.replaceAll("../", ""), rl = (e = "") => e.split("?")[0].split("#")[0];
5507
- async function ss(e) {
5457
+ const es = (e) => e.replaceAll("../", ""), qc = (e = "") => e.split("?")[0].split("#")[0];
5458
+ async function ts(e) {
5508
5459
  const t = new Set(e.map(u.dirname));
5509
5460
  await Promise.all(Array.from(t, async (i) => await z(i, { recursive: !0 })));
5510
5461
  }
5511
- const ol = {
5462
+ const Gc = {
5512
5463
  match: (e, t) => t.environment === "production" && e.endsWith(".json"),
5513
5464
  transform: (e) => JSON.stringify(JSON.parse(e))
5514
- }, Rt = [ol];
5515
- function al(e) {
5465
+ }, jt = [Gc];
5466
+ function Vc(e) {
5516
5467
  let t;
5517
5468
  const i = () => [
5518
5469
  ...e.options.assets?.transformers ?? [],
5519
- ...Rt
5470
+ ...jt
5520
5471
  ];
5521
5472
  return {
5522
5473
  name: "@arcgis/lumina:handleStaticAssets",
5523
5474
  configResolved() {
5524
- t = cl(e);
5475
+ t = Xc(e);
5525
5476
  },
5526
5477
  async configureServer(n) {
5527
5478
  e.server = n, !e.isInPuppeteerTestBackEnd && (fe(e, await t, i()), n.watcher.on("addDir", (s) => {
5528
5479
  if (s.endsWith("assets")) {
5529
5480
  const r = u.dirname(s);
5530
- u.join(r, "/") === e.dir.root ? fe(e, [os], i()) : s.startsWith(e.dir.srcComponents) && fe(e, [rs(s, r)], i());
5481
+ u.join(r, "/") === e.dir.root ? fe(e, [ns], i()) : s.startsWith(e.dir.srcComponents) && fe(e, [is(s, r)], i());
5531
5482
  }
5532
5483
  }));
5533
5484
  },
5534
5485
  async writeBundle() {
5535
- await Yn(e, await t, i());
5486
+ await Xn(e, await t, i());
5536
5487
  }
5537
5488
  };
5538
5489
  }
5539
- async function cl(e) {
5490
+ async function Xc(e) {
5540
5491
  const t = U("assets"), i = await e.componentFilesPromise, n = await Promise.all(
5541
5492
  i.map(async (s) => {
5542
5493
  const r = u.dirname(s), a = u.join(r, "assets");
5543
- return await U(a) ? rs(a, r) : void 0;
5494
+ return await U(a) ? is(a, r) : void 0;
5544
5495
  })
5545
5496
  );
5546
- return await t && n.push(os), n.filter(j);
5497
+ return await t && n.push(ns), n.filter(j);
5547
5498
  }
5548
- const rs = (e, t) => ({
5499
+ const is = (e, t) => ({
5549
5500
  type: "directory",
5550
5501
  source: e,
5551
5502
  destination: u.basename(t)
5552
- }), os = { type: "directory", source: "assets/", destination: "" };
5553
- function ll(e) {
5503
+ }), ns = { type: "directory", source: "assets/", destination: "" };
5504
+ function Qc(e) {
5554
5505
  const { stencilCompatibility: t } = e.options.build?.ssr ?? {};
5555
5506
  if (t?.enabled === !0)
5556
5507
  return {
@@ -5602,27 +5553,27 @@ export * from "@arcgis/lumina/stencilSsrCompatibility";`;
5602
5553
  }
5603
5554
  };
5604
5555
  }
5605
- const dt = "@arcgis/lumina:printTotalBuildSize", dl = (e) => ({
5606
- name: dt,
5556
+ const lt = "@arcgis/lumina:printTotalBuildSize", Zc = (e) => ({
5557
+ name: lt,
5607
5558
  apply: () => e.viteCommand === "build",
5608
5559
  configResolved(t) {
5609
5560
  const i = t.plugins.find(({ name: s }) => s === "vite:reporter");
5610
5561
  if (i === void 0) {
5611
- C.warn(dt, "Unable to find the vite's built-in vite:reporter plugin");
5562
+ C.warn(lt, "Unable to find the vite's built-in vite:reporter plugin");
5612
5563
  return;
5613
5564
  }
5614
5565
  const n = i.writeBundle;
5615
5566
  if (typeof n != "function")
5616
- throw Error(w(dt, "Expected vite:reporter to declare a writeBundle() function"));
5567
+ throw Error(w(lt, "Expected vite:reporter to declare a writeBundle() function"));
5617
5568
  i.writeBundle = async function(r, a) {
5618
5569
  let c = 0, l = 0, d = 0, p = 0;
5619
5570
  const m = console.log;
5620
5571
  console.log = function(...y) {
5621
5572
  if (m.apply(console, y), y.length === 1 && typeof y[0] == "string") {
5622
- const [g, h] = y[0].match(ul) ?? [];
5573
+ const [g, h] = y[0].match(el) ?? [];
5623
5574
  if (!g)
5624
5575
  return;
5625
- p || (p = y[0].slice(0, y[0].indexOf(g) + g.length).replaceAll(ml, "").length);
5576
+ p || (p = y[0].slice(0, y[0].indexOf(g) + g.length).replaceAll(tl, "").length);
5626
5577
  const v = Number.parseFloat(g.replace(" kB", "").replaceAll(",", ""));
5627
5578
  h ? (d += Number.parseFloat(h.replace(" kB", "").replaceAll(",", "")), l += v) : c += v;
5628
5579
  }
@@ -5633,27 +5584,27 @@ const dt = "@arcgis/lumina:printTotalBuildSize", dl = (e) => ({
5633
5584
  console.log = m;
5634
5585
  }
5635
5586
  if (l > 0) {
5636
- const y = d > 0 ? l : c, g = Fi(y), h = e.dir.relativeDist;
5587
+ const y = d > 0 ? l : c, g = Ii(y), h = e.dir.relativeDist;
5637
5588
  console.log(
5638
5589
  [
5639
- Li,
5590
+ Ai,
5640
5591
  h,
5641
- pl,
5592
+ Yc,
5642
5593
  "*",
5643
5594
  " ".repeat(p - `${h}*`.length - g.length),
5644
5595
  g,
5645
- Ii,
5646
- d > 0 ? ` ${Li}│ gzip: ${Fi(d)}${Ii}` : ""
5596
+ ki,
5597
+ d > 0 ? ` ${Ai}│ gzip: ${Ii(d)}${ki}` : ""
5647
5598
  ].join("")
5648
5599
  );
5649
5600
  }
5650
5601
  };
5651
5602
  }
5652
- }), Ii = "\x1B[22m\x1B[1m\x1B[22m", Li = "\x1B[2m", pl = "\x1B[22m\x1B[36m", ul = /\d+(?:,\d+)?\.\d{2} kB/gu, ml = /\x1B\[\d+m/gu, fl = new Intl.NumberFormat("en", {
5603
+ }), ki = "\x1B[22m\x1B[1m\x1B[22m", Ai = "\x1B[2m", Yc = "\x1B[22m\x1B[36m", el = /\d+(?:,\d+)?\.\d{2} kB/gu, tl = /\x1B\[\d+m/gu, il = new Intl.NumberFormat("en", {
5653
5604
  maximumFractionDigits: 2,
5654
5605
  minimumFractionDigits: 2
5655
- }), Fi = (e) => `${fl.format(e)} kB`, Ni = "@arcgis/lumina:configureVite", yl = (e) => ({
5656
- name: Ni,
5606
+ }), Ii = (e) => `${il.format(e)} kB`, Li = "@arcgis/lumina:configureVite", nl = (e) => ({
5607
+ name: Li,
5657
5608
  async config({
5658
5609
  server: t,
5659
5610
  publicDir: i,
@@ -5669,7 +5620,7 @@ const dt = "@arcgis/lumina:printTotalBuildSize", dl = (e) => ({
5669
5620
  */
5670
5621
  loader: "src/loader.ts",
5671
5622
  // Entrypoint for bundling used components only:
5672
- ...await Zr(e)
5623
+ ...await Kr(e)
5673
5624
  }, { loader: g, ...h } = y, v = e.environment === "development" || e.isInTest ? {
5674
5625
  "process.env.ESRI_INTERNAL": "true"
5675
5626
  } : void 0, S = !import.meta.url.includes("node_modules"), T = {
@@ -5756,10 +5707,10 @@ const dt = "@arcgis/lumina:printTotalBuildSize", dl = (e) => ({
5756
5707
  "@lit/context"
5757
5708
  ]
5758
5709
  };
5759
- if (typeof l.setupFiles == "string" ? l.setupFiles = [...lt, l.setupFiles] : Array.isArray(l.setupFiles) ? l.setupFiles = [...lt, ...l.setupFiles] : l.setupFiles = [...lt], e.isInPuppeteerTestBackEnd) {
5710
+ if (typeof l.setupFiles == "string" ? l.setupFiles = [...ct, l.setupFiles] : Array.isArray(l.setupFiles) ? l.setupFiles = [...ct, ...l.setupFiles] : l.setupFiles = [...ct], e.isInPuppeteerTestBackEnd) {
5760
5711
  if (p?.enabled === !0)
5761
5712
  throw Error(
5762
- w(Ni, "Can't enable both Vitest browser mode and Puppeteer testing at the same time")
5713
+ w(Li, "Can't enable both Vitest browser mode and Puppeteer testing at the same time")
5763
5714
  );
5764
5715
  return {
5765
5716
  test: {
@@ -5793,7 +5744,7 @@ const dt = "@arcgis/lumina:printTotalBuildSize", dl = (e) => ({
5793
5744
  publicDir: i ?? !1,
5794
5745
  build: {
5795
5746
  cssMinify: n ?? (e.environment === "production" ? !0 : void 0),
5796
- target: s ?? Wn(e.typeScriptConfig),
5747
+ target: s ?? Jn(e.typeScriptConfig),
5797
5748
  sourcemap: r ?? (e.environment === "development" ? "inline" : e.options.build?.enableSourceMapsInProduction ?? !1),
5798
5749
  lib: {
5799
5750
  entry: y,
@@ -5822,23 +5773,23 @@ const dt = "@arcgis/lumina:printTotalBuildSize", dl = (e) => ({
5822
5773
  browser: {
5823
5774
  enabled: e.isInPuppeteerTestFrontEnd ? !1 : p?.enabled ?? !0,
5824
5775
  instances: p?.instances === void 0 ? [{ browser: "chromium" }] : void 0,
5825
- provider: p?.provider ?? Bs
5776
+ provider: p?.provider ?? Os
5826
5777
  }
5827
5778
  }
5828
5779
  };
5829
5780
  }
5830
- }), gl = (e) => ({
5781
+ }), sl = (e) => ({
5831
5782
  name: "@arcgis/lumina:setAssetPath",
5832
5783
  apply: () => e.viteCommand === "build",
5833
5784
  config: (t) => ({
5834
- base: t.base ?? e.options.assets?.defaultPath ?? Ge()
5785
+ base: t.base ?? e.options.assets?.defaultPath ?? qe()
5835
5786
  })
5836
5787
  });
5837
- function hl(e = R()) {
5788
+ function rl(e = R()) {
5838
5789
  const t = e.version ?? "0.0.1";
5839
- return Es(t);
5790
+ return bs(t);
5840
5791
  }
5841
- const vl = (e) => `/*! ${e} */`, k = (e) => (t, i) => {
5792
+ const ol = (e) => `/*! ${e} */`, k = (e) => (t, i) => {
5842
5793
  Object.defineProperty(t, i, {
5843
5794
  get() {
5844
5795
  throw Error(
@@ -5877,8 +5828,8 @@ const pe = {
5877
5828
  apiJson: "docs/api.json",
5878
5829
  stencilLikeDocsJson: "docs/docs.json"
5879
5830
  };
5880
- async function as(e, t, i, n, s = R()) {
5881
- const r = Sl(e, i, n, s), a = u.join(t, "lumina.ts"), l = await U(a) ? await J(a, "utf8") : "";
5831
+ async function ss(e, t, i, n, s = R()) {
5832
+ const r = al(e, i, n, s), a = u.join(t, "lumina.ts"), l = await U(a) ? await J(a, "utf8") : "";
5882
5833
  if (l.trim().replaceAll(`\r
5883
5834
  `, `
5884
5835
  `) === r.trim())
@@ -5896,9 +5847,9 @@ Current content:
5896
5847
  ${l}`
5897
5848
  )
5898
5849
  );
5899
- return Wi(a, r), !0;
5850
+ return Ki(a, r), !0;
5900
5851
  }
5901
- function Sl(e, t, i, n = R()) {
5852
+ function al(e, t, i, n = R()) {
5902
5853
  "@arcgis/components-controllers" in (n.dependencies ?? {}) && C.warn(
5903
5854
  "@arcgis/components-controllers",
5904
5855
  "Deprecation warning: the @arcgis/components-controllers package was merged into @arcgis/lumina. Please remove it from your package.json and rewrite code to import from @arcgis/lumina/controllers and @arcgis/lumina/controllers/accessor instead."
@@ -5913,11 +5864,11 @@ declare module "@arcgis/lumina" {
5913
5864
  interface ImportStencilElements extends ${r.map((m, f) => `JSX$${f}.IntrinsicElements`).join(", ")} {}
5914
5865
  }`, l = n.devDependencies ?? {}, d = i === "preview" ? "matchers" : i === "webdriverio" ? "webdriverio" : "playwright";
5915
5866
  return [
5916
- bl,
5867
+ cl,
5917
5868
  // Avoid cyclic references for tests in @arcgis/lumina
5918
5869
  n.name === "@arcgis/lumina" ? "" : `
5919
5870
  /// <reference types="@arcgis/lumina/typings" />`,
5920
- t ? wl : "",
5871
+ t ? ll : "",
5921
5872
  l.vitest ? `
5922
5873
  /// <reference types="vitest/config" />` : "",
5923
5874
  l["@vitest/browser"] ? `
@@ -5931,7 +5882,7 @@ declare module "@arcgis/lumina" {
5931
5882
  `
5932
5883
  ].join("");
5933
5884
  }
5934
- const bl = `/**
5885
+ const cl = `/**
5935
5886
  * This file is autogenerated by \`@arcgis/lumina-compiler\` - do not edit it manually.
5936
5887
  * Manual edits will be overwritten.
5937
5888
  *
@@ -5939,8 +5890,8 @@ const bl = `/**
5939
5890
  * as well as @arcgis/core typings if you use @arcgis/core.
5940
5891
  *
5941
5892
  * If you need to provide additional typings, create a separate file.
5942
- */`, wl = `
5943
- /// <reference types="@arcgis/core/interfaces" />`, je = "@arcgis/lumina:dependencySupport", cs = (e, t) => e.viteCommand === "serve" && /**
5893
+ */`, ll = `
5894
+ /// <reference types="@arcgis/core/interfaces" />`, je = "@arcgis/lumina:dependencySupport", rs = (e, t) => e.viteCommand === "serve" && /**
5944
5895
  * Vitest started calling transformIndexHtml in browser mode versions ^2.1.4
5945
5896
  * However, it is a bit buggy (see
5946
5897
  * https://github.com/vitejs/vite/issues/19213). Instead, we are using test
@@ -5951,10 +5902,10 @@ const bl = `/**
5951
5902
  * is doing:
5952
5903
  * https://github.com/storybookjs/storybook/blob/a5c2cf1712f70b4e3ecf38d3c98e7db8e8d67849/code/builders/builder-vite/src/plugins/code-generator-plugin.ts#L110
5953
5904
  */
5954
- e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand === "build" && !e.options.build?.cdn?.skip && e.options.build?.webApp?.destination !== void 0, Tl = (e) => ({
5905
+ e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand === "build" && !e.options.build?.cdn?.skip && e.options.build?.webApp?.destination !== void 0, dl = (e) => ({
5955
5906
  name: je,
5956
5907
  configResolved() {
5957
- !e.isInTest && !e.isInStorybook && (e._updateLuminaTsPromise = El(e).catch(
5908
+ !e.isInTest && !e.isInStorybook && (e._updateLuminaTsPromise = pl(e).catch(
5958
5909
  (t) => C.error(je, `Failed to update package's src/lumina.ts: ${String(t)}`)
5959
5910
  ));
5960
5911
  },
@@ -5962,7 +5913,7 @@ e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand
5962
5913
  // Add imports to index.html before Vite starts resolving imports
5963
5914
  order: "pre",
5964
5915
  async handler(t, i) {
5965
- return cs(e, i) ? (await Te(e)).map(
5916
+ return rs(e, i) ? (await Te(e)).map(
5966
5917
  (s) => "javascriptCode" in s ? {
5967
5918
  tag: "script",
5968
5919
  attrs: {
@@ -6002,9 +5953,9 @@ e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand
6002
5953
  await e._updateLuminaTsPromise;
6003
5954
  }
6004
5955
  });
6005
- async function El(e) {
6006
- const i = (await Promise.all([ve, Qn(e)])).flat();
6007
- if (!await as(
5956
+ async function pl(e) {
5957
+ const i = (await Promise.all([ve, Gn(e)])).flat();
5958
+ if (!await ss(
6008
5959
  i,
6009
5960
  e.dir.src,
6010
5961
  Ce,
@@ -6013,22 +5964,22 @@ async function El(e) {
6013
5964
  return;
6014
5965
  let s = !1;
6015
5966
  function r() {
6016
- s || C.warn(je, Cl), s = !0;
5967
+ s || C.warn(je, ul), s = !0;
6017
5968
  }
6018
5969
  process.on("exit", () => {
6019
5970
  r(), clearTimeout(c);
6020
5971
  });
6021
5972
  const c = setTimeout(r, 2e3);
6022
5973
  }
6023
- const Cl = Js.greenBright(
5974
+ const ul = Rs.greenBright(
6024
5975
  `lumina.ts has been updated (potentially because your dependencies changed). Please commit the updated file.
6025
5976
  If build failed with TypeScript errors, try running the build again to check whether new lumina.ts resolves the errors.`
6026
5977
  );
6027
- async function $l(e, t) {
5978
+ async function ml(e, t) {
6028
5979
  const i = /* @__PURE__ */ new Map();
6029
5980
  await Promise.all(
6030
5981
  e.map(async (s) => {
6031
- const r = await J(s, "utf-8"), a = r.match(Pl)?.[1];
5982
+ const r = await J(s, "utf-8"), a = r.match(fl)?.[1];
6032
5983
  if (a === void 0) {
6033
5984
  C.warn(
6034
5985
  "@arcgis/lumina:parseStoryFiles",
@@ -6040,14 +5991,14 @@ async function $l(e, t) {
6040
5991
  let c = i.get(a);
6041
5992
  c === void 0 && (c = [], i.set(a, c));
6042
5993
  const l = [];
6043
- for (const d of r.matchAll(xl)) {
6044
- const p = d[1], m = Ll(p), f = r.indexOf("{", d.index), y = r.indexOf("}", f), g = r.slice(0, d.index).trimEnd();
5994
+ for (const d of r.matchAll(yl)) {
5995
+ const p = d[1], m = Sl(p), f = r.indexOf("{", d.index), y = r.indexOf("}", f), g = r.slice(0, d.index).trimEnd();
6045
5996
  let h = "";
6046
5997
  if (g.endsWith("*/")) {
6047
5998
  const T = g.lastIndexOf("/**");
6048
- h = g.slice(T + 3, -2).trim().replaceAll(Al, "");
5999
+ h = g.slice(T + 3, -2).trim().replaceAll(hl, "");
6049
6000
  }
6050
- const v = r.slice(f, y).match(kl)?.[1] || m, S = Il(m);
6001
+ const v = r.slice(f, y).match(gl)?.[1] || m, S = vl(m);
6051
6002
  l.push({
6052
6003
  description: `${v}${h ? `
6053
6004
  ${h}` : ""}`,
@@ -6072,11 +6023,11 @@ ${h}` : ""}`,
6072
6023
  }
6073
6024
  return n;
6074
6025
  }
6075
- const Pl = /component: ["']([^"']+)["']/u, xl = /export const (\w+)/gu, kl = /name: ["']([^"']+)["']/u, Al = /^\s*\*\s?/gmu, Il = (e) => e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/giu, "-").replace(/-+/gu, "-").replace(/^-+/u, "").replace(/-+$/u, ""), Ll = (e) => e.replace(/_/gu, " ").replace(/-/gu, " ").replace(/\./gu, " ").replace(/([^\n])([A-Z])([a-z])/gu, (t, i, n, s) => `${i} ${n}${s}`).replace(/([a-z])([A-Z])/gu, (t, i, n) => `${i} ${n}`).replace(/([a-z])([0-9])/giu, (t, i, n) => `${i} ${n}`).replace(/([0-9])([a-z])/giu, (t, i, n) => `${i} ${n}`).replace(/(\s|^)(\w)/gu, (t, i, n) => `${i}${n.toUpperCase()}`).replace(/ +/gu, " ").trim();
6076
- var Fl = Object.defineProperty, A = (e, t, i, n) => {
6026
+ const fl = /component: ["']([^"']+)["']/u, yl = /export const (\w+)/gu, gl = /name: ["']([^"']+)["']/u, hl = /^\s*\*\s?/gmu, vl = (e) => e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/giu, "-").replace(/-+/gu, "-").replace(/^-+/u, "").replace(/-+$/u, ""), Sl = (e) => e.replace(/_/gu, " ").replace(/-/gu, " ").replace(/\./gu, " ").replace(/([^\n])([A-Z])([a-z])/gu, (t, i, n, s) => `${i} ${n}${s}`).replace(/([a-z])([A-Z])/gu, (t, i, n) => `${i} ${n}`).replace(/([a-z])([0-9])/giu, (t, i, n) => `${i} ${n}`).replace(/([0-9])([a-z])/giu, (t, i, n) => `${i} ${n}`).replace(/(\s|^)(\w)/gu, (t, i, n) => `${i}${n.toUpperCase()}`).replace(/ +/gu, " ").trim();
6027
+ var bl = Object.defineProperty, A = (e, t, i, n) => {
6077
6028
  for (var s = void 0, r = e.length - 1, a; r >= 0; r--)
6078
6029
  (a = e[r]) && (s = a(t, i, s) || s);
6079
- return s && Fl(t, i, s), s;
6030
+ return s && bl(t, i, s), s;
6080
6031
  };
6081
6032
  const ie = "@arcgis/lumina:context";
6082
6033
  class P {
@@ -6092,7 +6043,7 @@ class P {
6092
6043
  this.viteConfig = s;
6093
6044
  const r = s.build.minify !== !1;
6094
6045
  this.shouldMinify = r && this.viteCommand !== "serve", Object.hasOwn(this, "shouldMinifyJsx") || (this.shouldMinifyJsx = this.viteCommand !== "serve" || this.isInTest);
6095
- const a = u.join(s.root, u.sep), c = u.join(a, "src", u.sep), l = u.join(c, "components", u.sep), d = u.join(u.resolve(a, s.build.outDir), u.sep), p = u.join(u.relative(a, d), u.sep), m = u.join(d, "components", u.sep), f = u.join(d, this.options.build?.cdn?.namespace ?? Dt, u.sep), y = u.join(f, "assets", u.sep);
6046
+ const a = u.join(s.root, u.sep), c = u.join(a, "src", u.sep), l = u.join(c, "components", u.sep), d = u.join(u.resolve(a, s.build.outDir), u.sep), p = u.join(u.relative(a, d), u.sep), m = u.join(d, "components", u.sep), f = u.join(d, this.options.build?.cdn?.namespace ?? Nt, u.sep), y = u.join(f, "assets", u.sep);
6096
6047
  if (this.dir = {
6097
6048
  root: a,
6098
6049
  src: c,
@@ -6102,7 +6053,7 @@ class P {
6102
6053
  distComponents: m,
6103
6054
  distCdn: f,
6104
6055
  distCdnAssets: y
6105
- }, C.initialize(s.logger, a), s.root !== Ji())
6056
+ }, C.initialize(s.logger, a), s.root !== Mi())
6106
6057
  throw Error(
6107
6058
  w(
6108
6059
  ie,
@@ -6117,9 +6068,9 @@ class P {
6117
6068
  "Vite output directory is outside the root directory. This is not officially supported by Lumina and may lead to unexpected behavior. Contact Lumina maintainers if you need this to be supported."
6118
6069
  ), this.isInStorybook = s.resolve.conditions.includes("storybook"), this.isFullApiExtraction = this.viteCommand === "build" || this.isInStorybook, this.hmrEnabled = this.viteCommand === "serve" && !this.isInTest && !!(s.server?.hmr ?? !0);
6119
6070
  const g = this.options.documentation?.publicStoryUrlPrefix;
6120
- this.isFullApiExtraction && typeof g == "string" ? this.componentStoriesPromise = this.componentFilesPromise.then(async () => await $l(this.componentStoryFiles, g)).then((h) => {
6071
+ this.isFullApiExtraction && typeof g == "string" ? this.componentStoriesPromise = this.componentFilesPromise.then(async () => await ml(this.componentStoryFiles, g)).then((h) => {
6121
6072
  this.componentStories = h;
6122
- }) : (this.componentStoriesPromise = void 0, this.componentStories = void 0), Dc(this, s.build.sourcemap !== !1), cs(this) && Te(this);
6073
+ }) : (this.componentStoriesPromise = void 0, this.componentStories = void 0), Tc(this, s.build.sourcemap !== !1), rs(this) && Te(this);
6123
6074
  }
6124
6075
  },
6125
6076
  configureServer: {
@@ -6147,12 +6098,12 @@ class P {
6147
6098
  webTypes: i.jetBrains === !1 ? void 0 : i.jetBrains?.webTypesFileName ? de(i.jetBrains.webTypesFileName) : pe.webTypes,
6148
6099
  vsCodeHtml: i.vsCode === !1 ? void 0 : i.vsCode?.htmlFileName ? de(i.vsCode.htmlFileName) : pe.vsCodeHtml,
6149
6100
  vsCodeCss: i.vsCode === !1 ? void 0 : i.vsCode?.cssFileName ? de(i.vsCode.cssFileName) : pe.vsCodeCss
6150
- }, vn(), this.componentFilesPromise = xt(this, u.resolve("src/components")), Nc(this);
6151
- const n = t.build?.preamble ?? hl();
6152
- this.banner = vl(n);
6101
+ }, yn(), this.componentFilesPromise = Pt(this, u.resolve("src/components")), wc(this);
6102
+ const n = t.build?.preamble ?? rl();
6103
+ this.banner = ol(n);
6153
6104
  }
6154
6105
  _inferBuildSetup({ command: t, mode: i }, n) {
6155
- this.isInTest = process.env.NODE_ENV === "test", i === "production" || i === "development" ? this.environment = i : i === "test" || i === "benchmark" ? (this.environment = "development", this.isInTest = !0) : (C.warn(kt, `Vite is running in unknown mode "${i}". Assuming development`), this.environment = "development"), this.viteCommand = t;
6106
+ this.isInTest = process.env.NODE_ENV === "test", i === "production" || i === "development" ? this.environment = i : i === "test" || i === "benchmark" ? (this.environment = "development", this.isInTest = !0) : (C.warn(xt, `Vite is running in unknown mode "${i}". Assuming development`), this.environment = "development"), this.viteCommand = t;
6156
6107
  const s = n?.__IS_IN_PUPPETEER__ === !0, r = this.viteCommand === "serve" && this.isInTest && this.options.puppeteerTesting?.enabled === !0;
6157
6108
  this.isInPuppeteerTestBackEnd = r && !s, this.isInPuppeteerTestFrontEnd = r && s, i === "production" ? this._silencedRules = this.options.linting?.silence : [this.normalizedDocumentationUrl, this.alternativeDocumentationUrl] = [
6158
6109
  this.alternativeDocumentationUrl,
@@ -6307,15 +6258,15 @@ A([
6307
6258
  A([
6308
6259
  k("configResolved()")
6309
6260
  ], P.prototype, "_typeScriptPrinter");
6310
- const pt = "@arcgis/lumina:addNonLazyImports", Nl = (e) => ({
6311
- name: pt,
6261
+ const dt = "@arcgis/lumina:addNonLazyImports", wl = (e) => ({
6262
+ name: dt,
6312
6263
  apply: () => e.viteCommand === "build",
6313
6264
  generateBundle(t, i) {
6314
6265
  Object.entries(i).forEach(([n, s]) => {
6315
6266
  const r = ge(n, "components/", e);
6316
6267
  if (r !== n && (s.fileName = r), s.type === "chunk") {
6317
6268
  const a = u.dirname(u.join(e.dir.dist, n)), c = r === n ? a : u.dirname(u.join(e.dir.dist, r));
6318
- s.code = Ui(s.code, e, c, a);
6269
+ s.code = _i(s.code, e, c, a);
6319
6270
  }
6320
6271
  });
6321
6272
  },
@@ -6328,14 +6279,14 @@ const pt = "@arcgis/lumina:addNonLazyImports", Nl = (e) => ({
6328
6279
  i.forEach(([r, { referencedTagNames: a, referencedDeferredTagNames: c, referencedBy: l }]) => {
6329
6280
  if (n.has(r) || a.length === 0 && c.length === 0)
6330
6281
  return;
6331
- const d = ls(t, l, n);
6282
+ const d = os(t, l, n);
6332
6283
  if (d.forEach((p) => {
6333
6284
  t[p].referencedTagNames.splice(0, 0, ...a), t[p].referencedDeferredTagNames.splice(0, 0, ...c);
6334
6285
  }), (a.length > 0 || c.length > 0) && d.length === 0) {
6335
6286
  const p = Y(r);
6336
6287
  throw Error(
6337
6288
  w(
6338
- pt,
6289
+ dt,
6339
6290
  `Unable to determine what files imported ${p}. This is necessary because this file referenced other web components (${[...a, ...c].join(", ")}), and so the compiler needs to know what component entrypoints these imports should be added to. Please double check if you are referencing ${p} in the code dynamically in the way that Lumina cannot detect, and report this issue to the Lumina maintainers.`
6340
6291
  )
6341
6292
  );
@@ -6346,12 +6297,12 @@ const pt = "@arcgis/lumina:addNonLazyImports", Nl = (e) => ({
6346
6297
  return [];
6347
6298
  const l = u.dirname(r), d = ge(l, e.dir.srcComponents, e), p = u.relative(e.dir.src, d);
6348
6299
  function m(b) {
6349
- const E = dc(e, b, r);
6300
+ const E = Za(e, b, r);
6350
6301
  if (E === void 0)
6351
6302
  return;
6352
- const I = pc(E, p);
6303
+ const I = Ya(E, p);
6353
6304
  if (I !== `./${p}`)
6354
- return I.startsWith(".") ? `${I}/${Di}` : I;
6305
+ return I.startsWith(".") ? `${I}/${Fi}` : I;
6355
6306
  }
6356
6307
  const f = new Set(a), y = new Set(c), g = Array.from(f, m).filter(j), h = (b) => `import "${b}";
6357
6308
  `, v = g.map(h).join(""), S = /* @__PURE__ */ new Set(), T = Array.from(y, (b) => {
@@ -6359,7 +6310,7 @@ const pt = "@arcgis/lumina:addNonLazyImports", Nl = (e) => ({
6359
6310
  if (E !== void 0) {
6360
6311
  if (f.has(b)) {
6361
6312
  C.warn(
6362
- pt,
6313
+ dt,
6363
6314
  `"${b}" is used both with and without deferLoad in ${r} (either directly in ${r} or via a functional component). deferLoad will be ignored in this case.`
6364
6315
  );
6365
6316
  return;
@@ -6367,53 +6318,53 @@ const pt = "@arcgis/lumina:addNonLazyImports", Nl = (e) => ({
6367
6318
  return S.add(h(E)), `.set("${b}", () => import("${E}"))
6368
6319
  `;
6369
6320
  }
6370
- }).filter(j), x = `${v}export * from "./${Tt}";`, L = Array.from(S).join("") + x, $ = T.length > 0 ? `import { deferredLoaders } from "@arcgis/lumina";
6321
+ }).filter(j), x = `${v}export * from "./${wt}";`, L = Array.from(S).join("") + x, $ = T.length > 0 ? `import { deferredLoaders } from "@arcgis/lumina";
6371
6322
  ${x}
6372
6323
  deferredLoaders${T.join("")};` : x;
6373
6324
  return [
6374
- F(u.join(e.dir.dist, p, Di), $),
6375
- F(u.join(e.dir.dist, p, Dl), L)
6325
+ F(u.join(e.dir.dist, p, Fi), $),
6326
+ F(u.join(e.dir.dist, p, Tl), L)
6376
6327
  ];
6377
6328
  });
6378
6329
  await Promise.all(s);
6379
6330
  }
6380
- }), Di = "index.js", Dl = "index.d.ts", ls = (e, t, i, n = /* @__PURE__ */ new Set()) => t.flatMap((s) => i.has(s) ? [s] : n.has(s) ? [] : (n.add(s), ls(e, e[s].referencedBy, i, n))), jl = (e) => ({
6331
+ }), Fi = "index.js", Tl = "index.d.ts", os = (e, t, i, n = /* @__PURE__ */ new Set()) => t.flatMap((s) => i.has(s) ? [s] : n.has(s) ? [] : (n.add(s), os(e, e[s].referencedBy, i, n))), El = (e) => ({
6381
6332
  name: "@arcgis/lumina:handleDynamicAssets",
6382
6333
  configureServer(t) {
6383
- e.server = t, !e.isInPuppeteerTestBackEnd && ji(e).forEach(({ assets: i, transformers: n }) => fe(e, i, n));
6334
+ e.server = t, !e.isInPuppeteerTestBackEnd && Ni(e).forEach(({ assets: i, transformers: n }) => fe(e, i, n));
6384
6335
  },
6385
6336
  async writeBundle() {
6386
6337
  await Promise.all(
6387
- ji(e).map(
6388
- async ({ assets: t, transformers: i }) => await Yn(e, t, i)
6338
+ Ni(e).map(
6339
+ async ({ assets: t, transformers: i }) => await Xn(e, t, i)
6389
6340
  )
6390
6341
  );
6391
6342
  }
6392
6343
  });
6393
- function ji(e) {
6344
+ function Ni(e) {
6394
6345
  const t = [], i = e.assetsToProvide?.filter((n) => n.apply === void 0 || n.apply === e.viteCommand) ?? [];
6395
6346
  return e.options.assets?.extra?.forEach((n) => {
6396
6347
  "type" in n ? t.push(n) : "assets" in n && t.push(...n.assets);
6397
6348
  }), t.length > 0 && i.push({ assets: t }), e.assetsToProvide = void 0, i;
6398
6349
  }
6399
- const bt = "@arcgis/lumina:updatePackageJson", Rl = (e) => ({
6400
- name: bt,
6350
+ const St = "@arcgis/lumina:updatePackageJson", Cl = (e) => ({
6351
+ name: St,
6401
6352
  apply: () => e.viteCommand === "serve" && e.environment === "development" && !e.isInTest && !e.isInCi,
6402
6353
  configResolved() {
6403
- Ml(e).catch(
6404
- (t) => C.error(bt, `Failed to update package's package.json:${String(t)}`)
6354
+ $l(e).catch(
6355
+ (t) => C.error(St, `Failed to update package's package.json:${String(t)}`)
6405
6356
  );
6406
6357
  }
6407
6358
  });
6408
- async function Ml(e) {
6409
- const t = u.join(e.dir.root, "package.json"), i = JSON.parse(await J(t, "utf-8")), n = Ol(i, e);
6410
- n && Wi(t, JSON.stringify(n, null, 2));
6359
+ async function $l(e) {
6360
+ const t = u.join(e.dir.root, "package.json"), i = JSON.parse(await J(t, "utf-8")), n = Pl(i, e);
6361
+ n && Ki(t, JSON.stringify(n, null, 2));
6411
6362
  }
6412
- function Ol(e, t) {
6363
+ function Pl(e, t) {
6413
6364
  const i = e?.devDependencies ?? {};
6414
6365
  Object.keys(e?.peerDependencies ?? {}).forEach((d) => {
6415
6366
  d in i || C.warn(
6416
- bt,
6367
+ St,
6417
6368
  `Every peerDependency should also be a devDependency, or else some tools will get confused (like Turbo Build). Found "${d}" that is not a devDependency. Please edit your package.json`
6418
6369
  );
6419
6370
  });
@@ -6448,20 +6399,20 @@ function Ol(e, t) {
6448
6399
  if (n)
6449
6400
  return e;
6450
6401
  }
6451
- const Jl = (e) => ({
6402
+ const xl = (e) => ({
6452
6403
  timestamp: e.apiJson.timestamp,
6453
6404
  compiler: e.apiJson.compiler,
6454
- components: Kl(e),
6405
+ components: kl(e),
6455
6406
  typeLibrary: {}
6456
6407
  });
6457
- function Kl(e) {
6408
+ function kl(e) {
6458
6409
  const t = [];
6459
6410
  for (const i of e.apiJson.modules)
6460
6411
  for (const n of i.declarations)
6461
- "customElement" in n && t.push(Bl(n, i.path));
6412
+ "customElement" in n && t.push(Al(n, i.path));
6462
6413
  return t;
6463
6414
  }
6464
- function Bl(e, t) {
6415
+ function Al(e, t) {
6465
6416
  const i = e.superclass ? [{ name: "superclass", text: JSON.stringify(e.superclass) }] : [];
6466
6417
  return {
6467
6418
  filePath: t,
@@ -6476,9 +6427,9 @@ function Bl(e, t) {
6476
6427
  dependencies: [],
6477
6428
  dependencyGraph: {},
6478
6429
  deprecation: typeof e.deprecated == "boolean" ? e.deprecated ? "" : void 0 : e.deprecated,
6479
- props: e.members.map(Wl).filter(j),
6480
- methods: e.members.map(_l).filter(j),
6481
- events: e.events?.map(Hl) ?? [],
6430
+ props: e.members.map(Il).filter(j),
6431
+ methods: e.members.map(Ll).filter(j),
6432
+ events: e.events?.map(Fl) ?? [],
6482
6433
  styles: e.cssProperties?.map((n) => ({
6483
6434
  name: n.name,
6484
6435
  annotation: "prop",
@@ -6490,7 +6441,7 @@ function Bl(e, t) {
6490
6441
  listeners: []
6491
6442
  };
6492
6443
  }
6493
- function Wl(e) {
6444
+ function Il(e) {
6494
6445
  if (e.kind !== "field")
6495
6446
  return;
6496
6447
  const t = e, i = t.inheritedFrom ? [{ name: "inheritedFrom", text: JSON.stringify(t.inheritedFrom) }] : [], n = t.readonly ? [{ name: "readonly", text: "" }] : [], s = t.docsTags?.some((r) => r.name === "required") ?? !1;
@@ -6500,7 +6451,7 @@ function Wl(e) {
6500
6451
  complexType: t.type === void 0 ? void 0 : {
6501
6452
  original: t.type.text,
6502
6453
  resolved: t.type.text,
6503
- references: Mt(t.type.references)
6454
+ references: Rt(t.type.references)
6504
6455
  },
6505
6456
  mutable: !0,
6506
6457
  attr: "attribute" in t && typeof t.attribute == "string" ? t.attribute : void 0,
@@ -6519,19 +6470,19 @@ function Wl(e) {
6519
6470
  required: s
6520
6471
  };
6521
6472
  }
6522
- const Mt = (e) => Object.fromEntries(
6473
+ const Rt = (e) => Object.fromEntries(
6523
6474
  e?.map(
6524
6475
  (t) => [
6525
6476
  t.name,
6526
6477
  {
6527
- location: t.package === Ki ? "global" : t.package === void 0 ? "local" : "import",
6478
+ location: t.package === Oi ? "global" : t.package === void 0 ? "local" : "import",
6528
6479
  path: typeof t.module == "string" && typeof t.package == "string" ? u.join(t.package, t.module) : t.module ?? t.package,
6529
6480
  id: "notImplemented"
6530
6481
  }
6531
6482
  ]
6532
6483
  ) ?? []
6533
6484
  );
6534
- function _l(e) {
6485
+ function Ll(e) {
6535
6486
  if (e.kind !== "method")
6536
6487
  return;
6537
6488
  const t = e, i = e.inheritedFrom ? [{ name: "inheritedFrom", text: JSON.stringify(e.inheritedFrom) }] : [], n = t.parameters?.map(({ name: s, type: r, description: a }) => ({
@@ -6550,7 +6501,7 @@ function _l(e) {
6550
6501
  signature: t.signature ?? "()=>unknown",
6551
6502
  parameters: n,
6552
6503
  return: t.return?.type?.text ?? "void",
6553
- references: Mt([
6504
+ references: Rt([
6554
6505
  ...t.return?.type?.references ?? [],
6555
6506
  ...t.parameters?.flatMap((s) => s.type.references ?? []) ?? []
6556
6507
  ])
@@ -6562,7 +6513,7 @@ function _l(e) {
6562
6513
  deprecation: typeof t.deprecated == "boolean" ? t.deprecated ? "" : void 0 : t.deprecated
6563
6514
  };
6564
6515
  }
6565
- function Hl(e) {
6516
+ function Fl(e) {
6566
6517
  const t = e.inheritedFrom ? [{ name: "inheritedFrom", text: JSON.stringify(e.inheritedFrom) }] : [];
6567
6518
  return {
6568
6519
  event: e.name,
@@ -6571,7 +6522,7 @@ function Hl(e) {
6571
6522
  complexType: {
6572
6523
  original: e.type.text,
6573
6524
  resolved: e.type.text,
6574
- references: Mt(e.type.references)
6525
+ references: Rt(e.type.references)
6575
6526
  },
6576
6527
  cancelable: e.cancelable ?? !0,
6577
6528
  composed: e.composed ?? !0,
@@ -6580,32 +6531,32 @@ function Hl(e) {
6580
6531
  deprecation: typeof e.deprecated == "boolean" ? e.deprecated ? "" : void 0 : e.deprecated
6581
6532
  };
6582
6533
  }
6583
- const ds = (e) => e.flatMap(
6534
+ const as = (e) => e.flatMap(
6584
6535
  (t) => t.cssProperties?.map((i) => ({
6585
6536
  name: i.name,
6586
6537
  description: i.description || void 0
6587
6538
  })) ?? []
6588
- ), ps = (e) => e.flatMap(
6539
+ ), cs = (e) => e.flatMap(
6589
6540
  (t) => t.cssParts?.map((i) => ({
6590
6541
  name: `::part(${i.name})`,
6591
6542
  description: i.description || void 0
6592
6543
  })) ?? []
6593
- ), Ul = (e) => e.attributes?.map((t) => ({
6544
+ ), Nl = (e) => e.attributes?.map((t) => ({
6594
6545
  name: t.name ?? "",
6595
- description: Ze(t.description, t.deprecated) || void 0,
6546
+ description: Qe(t.description, t.deprecated) || void 0,
6596
6547
  default: t.default,
6597
6548
  value: {
6598
- type: zl(t.type.values?.map(an))
6549
+ type: Dl(t.type.values?.map(sn))
6599
6550
  }
6600
- })) ?? [], zl = (e) => e?.length === 1 ? e[0] : e, Ze = (e = "", t = !1) => t === !1 ? e : `**Deprecated**${typeof t == "string" ? `: ${t}` : ""}. ${e}`, $e = {
6551
+ })) ?? [], Dl = (e) => e?.length === 1 ? e[0] : e, Qe = (e = "", t = !1) => t === !1 ? e : `**Deprecated**${typeof t == "string" ? `: ${t}` : ""}. ${e}`, $e = {
6601
6552
  slots: "Slots",
6602
6553
  events: "Events",
6603
6554
  cssProperties: "CSS Properties",
6604
6555
  cssParts: "CSS Parts",
6605
6556
  methods: "Methods"
6606
6557
  };
6607
- function us(e) {
6608
- const t = ql(e.slots), i = Gl(e.events), n = Vl(e.cssProperties), s = Xl(e.cssParts), r = Ql(e.members), a = Ze(e.description, e.deprecated).trim();
6558
+ function ls(e) {
6559
+ const t = jl(e.slots), i = Rl(e.events), n = Ml(e.cssProperties), s = Ol(e.cssParts), r = Jl(e.members), a = Qe(e.description, e.deprecated).trim();
6609
6560
  return [...a ? [`${a}
6610
6561
  --`] : [], i, r, t, n, s].filter(Boolean).join(`
6611
6562
 
@@ -6613,28 +6564,28 @@ function us(e) {
6613
6564
  }
6614
6565
  const Pe = (e, t) => t === void 0 || t.length === 0 ? "" : `### ${e}
6615
6566
  ${t.join(`
6616
- `)}`, ql = (e) => Pe(
6567
+ `)}`, jl = (e) => Pe(
6617
6568
  $e.slots,
6618
6569
  e?.map((t) => `- ${t.name ? `**${t.name}**` : "_default_"} - ${t.description}`)
6619
- ), Gl = (e) => Pe(
6570
+ ), Rl = (e) => Pe(
6620
6571
  $e.events,
6621
6572
  e?.filter((t) => t.name !== null && t.name !== void 0).map((t) => `- **${t.name}**${t.description ? ` - ${t.description}` : ""}`)
6622
- ), Vl = (e = []) => Pe(
6573
+ ), Ml = (e = []) => Pe(
6623
6574
  $e.cssProperties,
6624
6575
  e?.map(
6625
6576
  (t) => `- **${t.name}** - ${t.description} ${t.default ? `_(default: ${t.default})_}` : ""}`
6626
6577
  )
6627
- ), Xl = (e) => Pe(
6578
+ ), Ol = (e) => Pe(
6628
6579
  $e.cssParts,
6629
6580
  e?.map((t) => `- **${t.name}** - ${t.description}`)
6630
- ), Ql = (e) => Pe(
6581
+ ), Jl = (e) => Pe(
6631
6582
  $e.methods,
6632
- e.filter(Ss).map(
6633
- (t) => [`- \`${t.name}${t.signature}\``, Ze(t.description, t.deprecated)].filter(Boolean).join(" - ")
6583
+ e.filter(gs).map(
6584
+ (t) => [`- \`${t.name}${t.signature}\``, Qe(t.description, t.deprecated)].filter(Boolean).join(" - ")
6634
6585
  )
6635
6586
  );
6636
- function Zl(e, t) {
6637
- const i = Yl(e), n = ds(e), s = ps(e), r = R();
6587
+ function Kl(e, t) {
6588
+ const i = Wl(e), n = as(e), s = cs(e), r = R();
6638
6589
  return {
6639
6590
  $schema: "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
6640
6591
  name: r.name,
@@ -6652,52 +6603,52 @@ function Zl(e, t) {
6652
6603
  }
6653
6604
  };
6654
6605
  }
6655
- const Yl = (e) => e.map((t) => ({
6606
+ const Wl = (e) => e.map((t) => ({
6656
6607
  name: t.tagName,
6657
- description: us(t),
6608
+ description: ls(t),
6658
6609
  "doc-url": t.demos?.[0]?.url,
6659
- attributes: Ul(t),
6610
+ attributes: Nl(t),
6660
6611
  slots: t.slots?.map((i) => ({
6661
6612
  name: i.name,
6662
6613
  description: i.description
6663
6614
  })),
6664
- events: Ri(t),
6615
+ events: Di(t),
6665
6616
  js: {
6666
- properties: ed(t),
6667
- events: Ri(t)
6617
+ properties: Bl(t),
6618
+ events: Di(t)
6668
6619
  }
6669
- })), ed = (e) => e.members.filter(bs).map((t) => ({
6620
+ })), Bl = (e) => e.members.filter(hs).map((t) => ({
6670
6621
  name: t.name,
6671
6622
  description: t.description,
6672
6623
  type: t.type?.text
6673
- })) ?? [], Ri = (e) => e.events?.map((t) => ({
6624
+ })) ?? [], Di = (e) => e.events?.map((t) => ({
6674
6625
  name: t.name,
6675
6626
  type: t.type?.text,
6676
6627
  description: t.description
6677
- })) ?? [], td = (e) => e.map((t) => ({
6628
+ })) ?? [], _l = (e) => e.map((t) => ({
6678
6629
  name: t.tagName,
6679
- description: us(t),
6680
- attributes: id(t),
6630
+ description: ls(t),
6631
+ attributes: Hl(t),
6681
6632
  references: t.demos?.map((i) => ({ name: i.description, url: i.url })) ?? []
6682
- })), id = (e) => e.attributes?.map((t) => ({
6633
+ })), Hl = (e) => e.attributes?.map((t) => ({
6683
6634
  name: t.name,
6684
- description: Ze(t.description, t.deprecated) || void 0,
6685
- values: nd(t)
6686
- })) ?? [], nd = (e) => e.type.values?.map((t) => t.value ?? "").filter(Boolean).map((t) => ({ name: t })) ?? [], sd = (e) => ({
6635
+ description: Qe(t.description, t.deprecated) || void 0,
6636
+ values: Ul(t)
6637
+ })) ?? [], Ul = (e) => e.type.values?.map((t) => t.value ?? "").filter(Boolean).map((t) => ({ name: t })) ?? [], zl = (e) => ({
6687
6638
  $schema: "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
6688
6639
  version: 1.1,
6689
- tags: td(e)
6690
- }), rd = (e) => ({
6640
+ tags: _l(e)
6641
+ }), ql = (e) => ({
6691
6642
  $schema: "https://raw.githubusercontent.com/microsoft/vscode-css-languageservice/main/docs/customData.schema.json",
6692
6643
  version: 1.1,
6693
- properties: ds(e),
6694
- pseudoElements: ps(e)
6695
- }), od = "@arcgis/lumina:generateDocs";
6696
- function ad(e) {
6644
+ properties: as(e),
6645
+ pseudoElements: cs(e)
6646
+ }), Gl = "@arcgis/lumina:generateDocs";
6647
+ function Vl(e) {
6697
6648
  return e._documentationFileNames.stencilLikeDocsJson !== void 0 && e.provideAssets([
6698
6649
  {
6699
6650
  type: "dynamic",
6700
- source: () => JSON.stringify(Jl(e), null, 2),
6651
+ source: () => JSON.stringify(xl(e), null, 2),
6701
6652
  destination: u.join("../..", e._documentationFileNames.stencilLikeDocsJson)
6702
6653
  }
6703
6654
  ]), e._documentationFileNames.apiJson !== void 0 && e.provideAssets([
@@ -6707,34 +6658,34 @@ function ad(e) {
6707
6658
  destination: u.join("../..", e._documentationFileNames.apiJson)
6708
6659
  }
6709
6660
  ]), {
6710
- name: od,
6661
+ name: Gl,
6711
6662
  async writeBundle() {
6712
6663
  if (e.isInStorybook)
6713
6664
  return;
6714
6665
  const { jetBrains: t } = e.options.documentation ?? {}, i = e._documentationFileNames, n = i.vsCodeHtml === void 0 ? void 0 : u.join(e.dir.dist, i.vsCodeHtml), s = i.vsCodeCss === void 0 ? void 0 : u.join(e.dir.dist, i.vsCodeCss), r = i.webTypes === void 0 ? void 0 : u.join(e.dir.dist, i.webTypes), a = [n, s, r].filter(j);
6715
6666
  if (a.length === 0)
6716
6667
  return;
6717
- await ss(a);
6668
+ await ts(a);
6718
6669
  const c = [];
6719
6670
  if (n !== void 0) {
6720
- const l = JSON.stringify(sd(e.apiJsonComponents), null, 2);
6671
+ const l = JSON.stringify(zl(e.apiJsonComponents), null, 2);
6721
6672
  c.push(F(n, l));
6722
6673
  }
6723
6674
  if (s !== void 0) {
6724
- const l = JSON.stringify(rd(e.apiJsonComponents), null, 2);
6675
+ const l = JSON.stringify(ql(e.apiJsonComponents), null, 2);
6725
6676
  c.push(F(s, l));
6726
6677
  }
6727
6678
  if (r !== void 0) {
6728
- const l = Zl(e.apiJsonComponents, typeof t == "object" ? t : {});
6679
+ const l = Kl(e.apiJsonComponents, typeof t == "object" ? t : {});
6729
6680
  c.push(F(r, JSON.stringify(l, null, 2)));
6730
6681
  }
6731
6682
  await Promise.all(c);
6732
6683
  }
6733
6684
  };
6734
6685
  }
6735
- const cd = (e) => `import type { h, EventHandler } from "@arcgis/lumina";
6686
+ const Xl = (e) => `import type { h, EventHandler } from "@arcgis/lumina";
6736
6687
 
6737
- ${e.map(ld).join(`
6688
+ ${e.map(Ql).join(`
6738
6689
 
6739
6690
  `)}
6740
6691
 
@@ -6746,8 +6697,8 @@ ${e.map(({ tagName: t, pascalCaseName: i }) => ` "${t}": Lumina${i};`).join
6746
6697
  }
6747
6698
  }
6748
6699
  }`;
6749
- function ld({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6750
- const [s, r] = Qe(e, i);
6700
+ function Ql({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6701
+ const [s, r] = Xe(e, i);
6751
6702
  return [
6752
6703
  `interface Lumina${t} extends ${s}h.JSX.HTMLAttributes<HTML${t}Element> {
6753
6704
  `,
@@ -6759,7 +6710,7 @@ function ld({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6759
6710
  r
6760
6711
  ].join("");
6761
6712
  }
6762
- function dd(e) {
6713
+ function Zl(e) {
6763
6714
  const t = ` interface IntrinsicElements extends PreactJsx.IntrinsicElements {
6764
6715
  ${e.map(({ pascalCaseName: i, tagName: n }) => ` "${n}": Preact${i};`).join(`
6765
6716
  `)}
@@ -6767,7 +6718,7 @@ ${e.map(({ pascalCaseName: i, tagName: n }) => ` "${n}": Preact${i};`).join
6767
6718
  return `import { JSX as PreactJsx } from "preact";
6768
6719
  import type { EventHandler } from "@arcgis/lumina";
6769
6720
 
6770
- ${e.map(pd).join(`
6721
+ ${e.map(Yl).join(`
6771
6722
 
6772
6723
  `)}
6773
6724
 
@@ -6780,8 +6731,8 @@ ${t}
6780
6731
  }
6781
6732
  }`;
6782
6733
  }
6783
- function pd({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6784
- const [s, r] = Qe(e, i);
6734
+ function Yl({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6735
+ const [s, r] = Xe(e, i);
6785
6736
  return [
6786
6737
  `interface Preact${t} extends ${s}PreactJsx.HTMLAttributes<HTML${t}Element> {
6787
6738
  `,
@@ -6793,13 +6744,13 @@ function pd({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6793
6744
  r
6794
6745
  ].join("");
6795
6746
  }
6796
- function ud(e) {
6747
+ function ed(e) {
6797
6748
  const t = e.map(({ pascalCaseName: i, tagName: n }) => ` "${n}": React${i};`).join(`
6798
6749
  `);
6799
6750
  return `import type { HTMLProps } from 'react';
6800
6751
  import type { EventHandler } from "@arcgis/lumina";
6801
6752
 
6802
- ${e.map(md).join(`
6753
+ ${e.map(td).join(`
6803
6754
 
6804
6755
  `)}
6805
6756
 
@@ -6825,8 +6776,8 @@ ${t}
6825
6776
  }
6826
6777
  }`;
6827
6778
  }
6828
- function md({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6829
- const [s, r] = Qe(e, i);
6779
+ function td({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6780
+ const [s, r] = Xe(e, i);
6830
6781
  return [
6831
6782
  `interface React${t} extends ${s}HTMLProps<HTML${t}Element> {
6832
6783
  `,
@@ -6838,10 +6789,10 @@ function md({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6838
6789
  r
6839
6790
  ].join("");
6840
6791
  }
6841
- const fd = (e) => `import { JSXBase as StencilJsx } from "@stencil/core/internal";
6792
+ const id = (e) => `import { JSXBase as StencilJsx } from "@stencil/core/internal";
6842
6793
  import type { EventHandler } from "@arcgis/lumina";
6843
6794
 
6844
- ${e.map(yd).join(`
6795
+ ${e.map(nd).join(`
6845
6796
 
6846
6797
  `)}
6847
6798
 
@@ -6859,8 +6810,8 @@ declare module "@stencil/core/internal/stencil-public-runtime" {
6859
6810
  interface IntrinsicElements extends ExposedElements {}
6860
6811
  }
6861
6812
  }`;
6862
- function yd({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6863
- const [s, r] = Qe(e, i);
6813
+ function nd({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6814
+ const [s, r] = Xe(e, i);
6864
6815
  return [
6865
6816
  `interface Stencil${t} extends ${s}StencilJsx.HTMLAttributes<HTML${t}Element> {
6866
6817
  `,
@@ -6872,16 +6823,16 @@ function yd({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6872
6823
  r
6873
6824
  ].join("");
6874
6825
  }
6875
- const gd = (e, t, i) => [i, t, hd(e), vd(e)].join(`
6826
+ const sd = (e, t, i) => [i, t, rd(e), od(e)].join(`
6876
6827
 
6877
- `), hd = (e) => e.filter((t) => (t.events?.length ?? 0) > 0).map(
6828
+ `), rd = (e) => e.filter((t) => (t.events?.length ?? 0) > 0).map(
6878
6829
  ({ pascalCaseName: t }) => `export interface ${t}CustomEvent<T> extends CustomEvent<T> {
6879
6830
  detail: T;
6880
6831
  target: HTML${t}Element;
6881
6832
  currentTarget: HTML${t}Element;
6882
6833
  }`
6883
6834
  ).join(`
6884
- `), vd = (e) => `export { ToEvents, TargetedEvent } from "@arcgis/lumina";
6835
+ `), od = (e) => `export { ToEvents, TargetedEvent } from "@arcgis/lumina";
6885
6836
 
6886
6837
  declare global {
6887
6838
  interface HTMLElementTagNameMap {
@@ -6889,12 +6840,12 @@ ${e.map(({ pascalCaseName: t, tagName: i }) => ` "${i}": HTML${t}Element;`).j
6889
6840
  `)}
6890
6841
  }
6891
6842
 
6892
- ${e.map(Sd).join(`
6843
+ ${e.map(ad).join(`
6893
6844
  `).split(`
6894
6845
  `).map((t) => t.length > 0 ? ` ${t}` : t).join(`
6895
6846
  `)}
6896
6847
  }`;
6897
- function Sd({ name: e, pascalCaseName: t, events: i = [] }) {
6848
+ function ad({ name: e, pascalCaseName: t, events: i = [] }) {
6898
6849
  const n = i.length > 0, s = `${t}CustomEvent`, r = `HTML${t}Element`;
6899
6850
  return [
6900
6851
  n ? `interface ${r}EventMap {
@@ -6913,7 +6864,7 @@ ${n ? ` addEventListener<K extends keyof ${r}EventMap>(type: K, listener: (this
6913
6864
  }`
6914
6865
  ].join("");
6915
6866
  }
6916
- function bd(e) {
6867
+ function cd(e) {
6917
6868
  let t;
6918
6869
  return {
6919
6870
  name: "@arcgis/lumina:generateFrameworkTypes",
@@ -6921,11 +6872,11 @@ function bd(e) {
6921
6872
  generateBundle() {
6922
6873
  if (e.isInStorybook)
6923
6874
  return;
6924
- t = Qa(e);
6875
+ t = Ja(e);
6925
6876
  const i = u.join(e.dir.dist, "index.d.ts");
6926
6877
  e._declarationTextTransformers.push((n) => {
6927
6878
  const { filePath: s, content: r } = n;
6928
- return s === i ? { filePath: s, content: gd(e.apiJsonComponents, r, t) } : n;
6879
+ return s === i ? { filePath: s, content: sd(e.apiJsonComponents, r, t) } : n;
6929
6880
  });
6930
6881
  },
6931
6882
  async writeBundle() {
@@ -6935,10 +6886,10 @@ function bd(e) {
6935
6886
  await z(i);
6936
6887
  const n = `/// <reference types="../index.d.ts" />
6937
6888
  ${t.replaceAll("./", "../")}`, s = Object.entries({
6938
- react: ud(e.apiJsonComponents),
6939
- preact: dd(e.apiJsonComponents),
6940
- stencil: fd(e.apiJsonComponents),
6941
- lumina: cd(e.apiJsonComponents)
6889
+ react: ed(e.apiJsonComponents),
6890
+ preact: Zl(e.apiJsonComponents),
6891
+ stencil: id(e.apiJsonComponents),
6892
+ lumina: Xl(e.apiJsonComponents)
6942
6893
  }).map(
6943
6894
  async ([r, a]) => await F(u.join(i, `${r}.d.ts`), `${n}
6944
6895
  ${a}`)
@@ -6947,38 +6898,38 @@ ${a}`)
6947
6898
  }
6948
6899
  };
6949
6900
  }
6950
- function wd(e) {
6901
+ function ld(e) {
6951
6902
  return {
6952
6903
  name: "@arcgis/lumina:buildWrappers",
6953
6904
  apply: () => e.viteCommand === "build" && !!e.options.build?.wrappers?.length,
6954
6905
  async writeBundle() {
6955
6906
  e.isInStorybook || await Promise.all(
6956
6907
  e.options.build?.wrappers?.map(async (t) => {
6957
- t.type === "react18" && await Cd(e, t);
6908
+ t.type === "react18" && await ud(e, t);
6958
6909
  }) ?? []
6959
6910
  );
6960
6911
  }
6961
6912
  };
6962
6913
  }
6963
- const Td = "react", Mi = "@lit/react", Ed = `
6964
- import React from "${Td}";
6965
- import { createComponent } from "${Mi}";
6966
- import type { EventName } from "${Mi}";
6914
+ const dd = "react", ji = "@lit/react", pd = `
6915
+ import React from "${dd}";
6916
+ import { createComponent } from "${ji}";
6917
+ import type { EventName } from "${ji}";
6967
6918
  import { makeReactWrapperFactory, getReactWrapperOptions } from "@arcgis/lumina";
6968
6919
 
6969
6920
  const createWrapper = /*@__PURE__*/ makeReactWrapperFactory(React, createComponent) as typeof createComponent;
6970
6921
  `;
6971
- async function Cd(e, t) {
6922
+ async function ud(e, t) {
6972
6923
  const { name: i } = R(), n = [];
6973
6924
  for (const a of e.apiJson.modules)
6974
6925
  for (const c of a.declarations)
6975
- "customElement" in c && n.push($d(c));
6976
- const s = [`/// <reference types="${i}" preserve="true" />`, Ed, ...n].join(""), r = u.resolve(t.proxiesFile);
6926
+ "customElement" in c && n.push(md(c));
6927
+ const s = [`/// <reference types="${i}" preserve="true" />`, pd, ...n].join(""), r = u.resolve(t.proxiesFile);
6977
6928
  await z(u.dirname(r), { recursive: !0 }), await F(r, s);
6978
6929
  }
6979
- function $d(e) {
6930
+ function md(e) {
6980
6931
  const t = e.events?.map(
6981
- (i) => ` ${Ee(`on${Cs(i.name)}`)}: "${i.name}" as EventName<HTML${e.pascalCaseName}Element["${i.name}"]>,`
6932
+ (i) => ` ${Ee(`on${ws(i.name)}`)}: "${i.name}" as EventName<HTML${e.pascalCaseName}Element["${i.name}"]>,`
6982
6933
  ).join(`
6983
6934
  `);
6984
6935
  return `
@@ -6992,48 +6943,48 @@ ${t}
6992
6943
  );
6993
6944
  `;
6994
6945
  }
6995
- function Kd(e = {}) {
6946
+ function kd(e = {}) {
6996
6947
  const t = new P(e), i = [
6997
6948
  t._plugin,
6998
- yl(t),
6999
- gl(t),
7000
- Rl(t),
7001
- Ir(t),
7002
- il(t),
7003
- bd(t),
7004
- ad(t),
7005
- Lc(t),
7006
- Io(t),
7007
- al(t),
7008
- jl(t),
7009
- Nl(t),
7010
- Tl(t),
7011
- Ks(t),
7012
- Rc(t),
6949
+ nl(t),
6950
+ sl(t),
6951
+ Cl(t),
6952
+ xr(t),
6953
+ Hc(t),
6954
+ cd(t),
6955
+ Vl(t),
6956
+ Sc(t),
6957
+ vo(t),
6958
+ Vc(t),
6959
+ El(t),
6960
+ wl(t),
6961
+ dl(t),
6962
+ Ms(t),
6963
+ Cc(t),
7013
6964
  // Deprecated feature will be dropped in https://devtopia.esri.com/WebGIS/arcgis-web-components/issues/2765
7014
6965
  // eslint-disable-next-line @typescript-eslint/no-deprecated
7015
- ll(t),
7016
- wd(t),
7017
- dl(t)
6966
+ Qc(t),
6967
+ ld(t),
6968
+ Zc(t)
7018
6969
  ].filter(j);
7019
6970
  return i.context = t, i;
7020
6971
  }
7021
- const Bd = {
7022
- initializeComponentDependencies: vn,
7023
- updateLuminaTs: as,
7024
- propertyToAttributeMappings: W,
7025
- findDeclaredComponents: zi,
7026
- nativeEvents: en,
7027
- svgElements: Ct,
7028
- mathMlElements: $t,
7029
- alwaysAttributes: Qi,
7030
- nativeAlwaysAttributes: Zi,
7031
- htmlAlwaysAttributes: yt,
7032
- isPropertyEscapeNeeded: Xe
6972
+ const Ad = {
6973
+ initializeComponentDependencies: yn,
6974
+ updateLuminaTs: ss,
6975
+ propertyToAttributeMappings: B,
6976
+ findDeclaredComponents: Hi,
6977
+ nativeEvents: Zi,
6978
+ svgElements: Et,
6979
+ mathMlElements: Ct,
6980
+ alwaysAttributes: Vi,
6981
+ nativeAlwaysAttributes: Xi,
6982
+ htmlAlwaysAttributes: ft,
6983
+ isPropertyEscapeNeeded: Ve
7033
6984
  };
7034
6985
  export {
7035
6986
  Je as LuminaApiExtractor,
7036
- Bd as exportsForCodemod,
7037
- Ge as inferCdnUrl,
7038
- Kd as useLumina
6987
+ Ad as exportsForCodemod,
6988
+ qe as inferCdnUrl,
6989
+ kd as useLumina
7039
6990
  };