@arcgis/api-extractor 5.1.0-next.98 → 5.2.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3684 +0,0 @@
1
- import { path as He, existsAsync as Yt, getCwd as Di, retrievePackageJson as ct, toPosixPathSeparators as xi } from "@arcgis/components-build-utils";
2
- import { b as Ri, p as Li, l as Ii } from "./typeScript-CEJoK9M9.js";
3
- import { getDefaultBasePath as Zt, buildViewUrl as Ai, getViewUrl as Ue } from "./extractor/processing/links.js";
4
- import o from "typescript";
5
- import "fs/promises";
6
- import { a as pe, b as ei, c as ht, g as oe, p as j, f as et, h as ti, d as Fe, e as ki, i as Gi, j as ii, k as Fi } from "./privateContext-CB7P40up.js";
7
- import { maybeEscapePropertyName as xt, printTypeAlias as Rt, printInterface as Oi, printFunction as Ni, printVariable as wi, printClass as Ui, printMethod as Vi, printProperty as fe, printGetterSetter as Wi, printSignature as _i } from "./utils/partPrinter.js";
8
- import { styleText as ne } from "node:util";
9
- import { readFile as Lt, opendir as It, rm as Bi } from "node:fs/promises";
10
- import { pathIsComponentEntrypoint as Ki, findDeclaredComponent as Hi } from "./extractor/webComponent/findComponents.js";
11
- import { renameComponentFolder as Ve, addComponentPathMapping as $i } from "./extractor/webComponent/pathMapping.js";
12
- import { getBasename as ee, getPackageNameFromExternalSpecifier as dt, extractInitializer as $e, extractBooleanInitializer as Z, findDecorator as De, getMemberName as xe } from "./utils/astHelpers.js";
13
- import { readFileSync as zi, existsSync as ue } from "node:fs";
14
- import { uncapitalize as ji, camelToKebab as Ji, kebabToPascal as qi } from "@arcgis/toolkit/string";
15
- import { globalPackageIdentifier as Re, mergeApiNodes as Qi, isApiMethodAsync as Xi } from "./utils/apiHelpers.js";
16
- import { identity as ve } from "@arcgis/toolkit/function";
17
- import { pathToFileURL as Yi } from "node:url";
18
- import Zi from "path";
19
- import { getWidenedLiteralType as en, unsafeUndocumentedTs as tn, unsafeGetUndocumentedPrinter as nn } from "./utils/internalTypeScriptApis.js";
20
- const At = "developers.arcgis.com", kt = "next.gha.afd.arcgis.com";
21
- function pa(e) {
22
- if (e.isResolvedConfig === !0)
23
- return e;
24
- const t = e.context, n = e.types, i = e.documentation, r = `${t?.cwd === void 0 ? Di() : He.resolve(t?.cwd)}/`, l = t?.packageJson ?? ct(r);
25
- let s = t?.basePath ?? "src/";
26
- s.endsWith("/") || (s += "/");
27
- const c = "customElements" in l && "@arcgis/lumina" in (l.dependencies ?? {}), p = n?.typeCheckedExtraction ?? c, d = n?.fullTypeCheck ?? !1, m = n?.typeScriptConfig ?? (p || d ? Ri(r, n?.typeScriptConfigPath, !0) : {
28
- configPath: "",
29
- config: {
30
- options: {},
31
- fileNames: [],
32
- errors: []
33
- }
34
- });
35
- if (n?.typeScriptConfig?.config.fileNames.length === 0)
36
- throw Error(
37
- `${Li.name}: Provided types.typeScriptConfig has no included files. If you used loadTypeScriptConfig, make sure to set resolveIncludedFiles to true.`
38
- );
39
- const f = {
40
- config: {
41
- ...m.config,
42
- options: {
43
- ...m.config.options,
44
- ...n?.compilerOptions
45
- }
46
- },
47
- configPath: m.configPath
48
- }, u = t?.dtsEmitPath === void 0 || t?.dtsEmitPath === "" ? "" : `${He.resolve(r, t.dtsEmitPath)}/`, v = u !== "", C = t?.environment ?? "production", g = C === "development", P = t?.emptyDtsEmitPath ?? (!g && v), h = i?.omitInternal ?? !1, R = n?.forceProduceDts ?? !1;
49
- if (h && (v || R))
50
- throw Error(
51
- "omitInternal must be false if emitting .d.ts files in order to produce functional types for internal APIs."
52
- );
53
- return {
54
- isResolvedConfig: !0,
55
- context: {
56
- dtsEmitPath: u,
57
- emptyDtsEmitPath: P,
58
- apiJsonEmitPath: t?.apiJsonEmitPath ?? "",
59
- environment: C,
60
- cwd: r,
61
- basePath: s,
62
- packageJson: l,
63
- logger: t?.logger ?? {
64
- // We namespace manually
65
- // eslint-disable-next-line webgis/consistent-logging
66
- info: console.log,
67
- // eslint-disable-next-line webgis/consistent-logging
68
- error: console.error
69
- },
70
- excludedDirectories: t?.excludedDirectories ?? /* @__PURE__ */ new Set(),
71
- isLuminaMinimalExtraction: t?.isLuminaMinimalExtraction ?? !1,
72
- includeLuminaPrivateComponents: t?.includeLuminaPrivateComponents ?? !1,
73
- supportApplyMixinsSyntax: t?.supportApplyMixinsSyntax ?? !1
74
- },
75
- types: {
76
- typeCheckedExtraction: p,
77
- fullTypeCheck: d,
78
- afterDiagnostic: n?.afterDiagnostic ?? ve,
79
- typeScriptInstanceCreated: n?.typeScriptInstanceCreated ?? ve,
80
- typeScriptConfigPath: m.configPath,
81
- typeScriptConfig: f,
82
- compilerOptions: f.config.options,
83
- declarationTextTransformers: n?.declarationTextTransformers ?? [],
84
- typeReplacements: n?.typeReplacements ?? {},
85
- forceProduceDts: R
86
- },
87
- documentation: {
88
- copyDocDefinitions: i?.copyDocDefinitions ?? {},
89
- noInheritMembers: i?.noInheritMembers ?? {},
90
- omitInternal: h,
91
- publicStoryUrlPrefix: i?.publicStoryUrlPrefix ?? !1,
92
- getComponentDocsUrl: i?.getComponentDocsUrl ?? !1,
93
- getComponentDemoUrl: i?.getComponentDemoUrl ?? !1,
94
- host: i?.host ?? (g ? kt : At),
95
- alternativeHost: i?.alternativeHost ?? (g ? At : kt),
96
- basePath: i?.basePath ?? Zt(l.name.split("/").at(-1))
97
- },
98
- verify: {
99
- typeCheckTypes: e.verify?.typeCheckTypes ?? !1,
100
- filterTypeCheckDiagnostic: e.verify?.filterTypeCheckDiagnostic ?? (() => !0),
101
- detectBrokenLinks: e.verify?.detectBrokenLinks ?? !0
102
- },
103
- watch: {
104
- onUpdate: e.watch?.onUpdate ?? ve,
105
- // Many reads can happen in a short time (on folder moves, or if prettier re-runs)
106
- // Shorter than TypeScript's default of 250ms as we are blocked until this
107
- // timeout is complete. Short timeout for unchecked extraction as it is fast,
108
- // so doesn't need long debounce.
109
- debounceTime: e.watch?.debounceTime ?? (p || d ? 50 : 20),
110
- clearScreen: e.watch?.clearScreen ?? !1,
111
- skipWritingUnchanged: P ? !1 : e.watch?.skipWritingUnchanged ?? !0
112
- },
113
- strict: e.strict ?? !c,
114
- afterApiJsonCreate: e.afterApiJsonCreate ?? ve
115
- };
116
- }
117
- async function ma(e = process.cwd(), t) {
118
- const n = t !== void 0, i = He.resolve(e, t ?? "api-extractor.config.ts"), a = await Yt(i);
119
- if (n && !a)
120
- throw Error(`The provided config file at ${i} does not exist.`);
121
- if (!a)
122
- return {};
123
- const r = (await import(Yi(i).href)).config;
124
- return {
125
- ...r,
126
- context: {
127
- ...r.context,
128
- cwd: r.context?.cwd ?? He.dirname(i)
129
- }
130
- };
131
- }
132
- function ua(e, t) {
133
- const n = e.context, i = t.context, a = e.types, r = t.types, l = e.documentation, s = t.documentation, c = e.verify, p = t.verify, d = e.watch, m = t.watch;
134
- return {
135
- isResolvedConfig: e.isResolvedConfig || t.isResolvedConfig || void 0,
136
- context: {
137
- dtsEmitPath: i?.dtsEmitPath ?? n?.dtsEmitPath,
138
- emptyDtsEmitPath: i?.emptyDtsEmitPath ?? n?.emptyDtsEmitPath,
139
- apiJsonEmitPath: i?.apiJsonEmitPath ?? n?.apiJsonEmitPath,
140
- environment: i?.environment ?? n?.environment,
141
- cwd: i?.cwd ?? n?.cwd,
142
- basePath: i?.basePath ?? n?.basePath,
143
- packageJson: i?.packageJson ?? n?.packageJson,
144
- logger: i?.logger ?? n?.logger,
145
- excludedDirectories: i?.excludedDirectories ?? n?.excludedDirectories,
146
- isLuminaMinimalExtraction: i?.isLuminaMinimalExtraction ?? n?.isLuminaMinimalExtraction,
147
- includeLuminaPrivateComponents: i?.includeLuminaPrivateComponents ?? n?.includeLuminaPrivateComponents,
148
- supportApplyMixinsSyntax: i?.supportApplyMixinsSyntax ?? n?.supportApplyMixinsSyntax ?? !1
149
- },
150
- types: {
151
- typeCheckedExtraction: r?.typeCheckedExtraction ?? a?.typeCheckedExtraction,
152
- fullTypeCheck: r?.fullTypeCheck ?? a?.fullTypeCheck,
153
- afterDiagnostic: Oe(r?.afterDiagnostic, a?.afterDiagnostic),
154
- typeScriptInstanceCreated: Oe(
155
- t?.types?.typeScriptInstanceCreated,
156
- e?.types?.typeScriptInstanceCreated
157
- ),
158
- typeScriptConfigPath: r?.typeScriptConfigPath ?? a?.typeScriptConfigPath,
159
- typeScriptConfig: r?.typeScriptConfig ?? a?.typeScriptConfig,
160
- compilerOptions: r?.compilerOptions ?? a?.compilerOptions,
161
- declarationTextTransformers: r?.declarationTextTransformers !== void 0 && a?.declarationTextTransformers !== void 0 ? [...a.declarationTextTransformers, ...r.declarationTextTransformers] : r?.declarationTextTransformers ?? a?.declarationTextTransformers,
162
- typeReplacements: r?.typeReplacements ?? a?.typeReplacements,
163
- forceProduceDts: r?.forceProduceDts ?? a?.forceProduceDts
164
- },
165
- documentation: {
166
- copyDocDefinitions: s?.copyDocDefinitions ?? l?.copyDocDefinitions,
167
- noInheritMembers: s?.noInheritMembers ?? l?.noInheritMembers,
168
- omitInternal: s?.omitInternal ?? l?.omitInternal,
169
- publicStoryUrlPrefix: s?.publicStoryUrlPrefix ?? l?.publicStoryUrlPrefix,
170
- getComponentDocsUrl: s?.getComponentDocsUrl ?? l?.getComponentDocsUrl,
171
- getComponentDemoUrl: s?.getComponentDemoUrl ?? l?.getComponentDemoUrl,
172
- host: s?.host ?? l?.host,
173
- alternativeHost: s?.alternativeHost ?? l?.alternativeHost,
174
- basePath: s?.basePath ?? l?.basePath
175
- },
176
- verify: {
177
- typeCheckTypes: p?.typeCheckTypes ?? c?.typeCheckTypes,
178
- filterTypeCheckDiagnostic: p?.filterTypeCheckDiagnostic ?? c?.filterTypeCheckDiagnostic,
179
- detectBrokenLinks: p?.detectBrokenLinks ?? c?.detectBrokenLinks
180
- },
181
- watch: {
182
- onUpdate: Oe(m?.onUpdate, d?.onUpdate),
183
- debounceTime: m?.debounceTime ?? d?.debounceTime,
184
- clearScreen: m?.clearScreen ?? d?.clearScreen,
185
- skipWritingUnchanged: m?.skipWritingUnchanged ?? d?.skipWritingUnchanged
186
- },
187
- strict: t.strict ?? e.strict,
188
- afterApiJsonCreate: Oe(t.afterApiJsonCreate, e.afterApiJsonCreate)
189
- };
190
- }
191
- function Oe(e, t) {
192
- const n = t === ve ? void 0 : t, i = e === ve ? void 0 : e;
193
- return n !== void 0 && i !== void 0 ? ((...a) => (n(...a), i(...a))) : i ?? n;
194
- }
195
- function Te(e) {
196
- const t = [], n = e, i = e;
197
- if (e.deprecated && t.push({
198
- name: "deprecated",
199
- text: e.deprecated === !0 ? void 0 : e.deprecated
200
- }), n.default && t.push({
201
- name: "default",
202
- text: n.default
203
- }), i.return !== void 0) {
204
- const l = i.parameters;
205
- if (l !== void 0)
206
- for (let s = 0; s < l.length; ++s) {
207
- const c = l[s];
208
- t.push({
209
- name: "param",
210
- // Add hyphen as required by TSDoc
211
- text: `${c.name}${c.description ? ` - ${c.description}` : ""}`
212
- });
213
- }
214
- i.return.description && t.push({
215
- name: "returns",
216
- text: i.return.description
217
- });
218
- }
219
- const a = e;
220
- if (a.customElement === !0) {
221
- if (a.cssProperties !== void 0)
222
- for (const l of a.cssProperties)
223
- t.push({
224
- name: "cssproperty",
225
- text: Ne(l)
226
- });
227
- if (a.cssParts !== void 0)
228
- for (const l of a.cssParts)
229
- t.push({
230
- name: "csspart",
231
- text: Ne(l)
232
- });
233
- if (a.cssStates !== void 0)
234
- for (const l of a.cssStates)
235
- t.push({
236
- name: "cssstate",
237
- text: Ne(l)
238
- });
239
- if (a.slots !== void 0)
240
- for (const l of a.slots)
241
- t.push({
242
- name: "slot",
243
- text: Ne(l)
244
- });
245
- }
246
- e.docsTags !== void 0 && t.push(...e.docsTags);
247
- const r = e.description ?? "";
248
- if (!(t.length === 0 && r.length === 0))
249
- return {
250
- description: r,
251
- docsTags: t
252
- };
253
- }
254
- function Ne(e) {
255
- const t = e, n = e.name + (t.default !== void 0 ? `=${t.default}` : ""), i = n.length > 0 ? `[${n}]` : "", a = e.description ?? "", r = a.length > 0 ? ` - ${a}` : "";
256
- return `${i}${r}`;
257
- }
258
- function on(e) {
259
- const t = e.description ?? "", n = t.length === 0, i = e.docsTags, a = (
260
- // Has 2+ tags, or multi-line description, or single tag and single line description
261
- i.length + (n ? 0 : t.includes(`
262
- `) ? 2 : 1) > 1 || // Has a single tag, but that tag is multi-line
263
- i[0]?.text?.includes(`
264
- `) === !0
265
- );
266
- let r = "*";
267
- n ? a || (r += " ") : (a ? (r += `
268
- * `, r += Gt(t)) : r += ` ${t.replaceAll(" @", " \\@")}`, i.length > 0 && (r += `
269
- *`));
270
- for (let l = 0; l < i.length; ++l) {
271
- const s = i[l], c = `@${s.name}`, p = s.text ?? "";
272
- r += `${a ? `
273
- * ` : ""}${c}`, p.includes(`
274
- `) ? (s.name === "returns" || s.name === "param" ? r += " " : r += `
275
- * `, r += Gt(p)) : p.length > 0 && (r += ` ${p.replaceAll(" @", " \\@")}`);
276
- }
277
- return r += a ? `
278
- ` : " ", r;
279
- }
280
- const ot = 10, an = 32, rn = 64;
281
- function Gt(e) {
282
- let t = "";
283
- const n = e.length;
284
- let i = 0;
285
- for (let a = 0; a < n; ++a) {
286
- const r = e.charCodeAt(a);
287
- if (r === ot)
288
- t += e.slice(i, a), e.charCodeAt(a + 1) === ot ? t += `
289
- *` : t += `
290
- * `, i = a + 1;
291
- else if (r === rn) {
292
- const l = a === 0 ? 0 : e.charCodeAt(a - 1);
293
- (a === 0 || l === an || l === ot) && (t += e.slice(i, a), t += "\\@", i = a + 1);
294
- }
295
- }
296
- return i < n && (t += e.slice(i)), t;
297
- }
298
- function J(e, t, n) {
299
- const i = o.getLeadingCommentRanges(n.file.text, e.pos);
300
- if (i === void 0)
301
- return;
302
- let a;
303
- for (const l of i) {
304
- const s = n.file.text.slice(l.pos, l.end);
305
- s.startsWith("/**") && (a !== void 0 && n.config.strict && n.emitError(
306
- `Found multiple JSDoc comments for the same node. This is not allowed.
307
- If one of these was meant to be a file-level comment, read the documentation: https://webgis.esri.com/sdk/contributing/core/core/documenting-api#module-level-documentation
308
- If this is meant to be a function overload, read the documentation: https://webgis.esri.com/sdk/contributing/core/core/documenting-api#function-overloads`,
309
- {
310
- file: n.file,
311
- node: e
312
- }
313
- ), a = s);
314
- }
315
- if (a === void 0)
316
- return;
317
- const r = n.config.documentation.omitInternal;
318
- if (!(t && !a.includes("* @public") && (r || !a.includes("* @internal"))))
319
- return sn(a, t, r, n);
320
- }
321
- function sn(e, t, n, i) {
322
- const a = e.length - 2;
323
- let r = 3, l = "";
324
- const s = [];
325
- let c, p, d = !1;
326
- for (; r < a; ) {
327
- let m = e.indexOf(`
328
- `, r);
329
- m === -1 && (m = a);
330
- let f = e.slice(r, m).trim();
331
- if (r = m + 1, f === "*" ? f = "" : f.startsWith("*") && (f[1] === " " ? f = f.slice(2) : i.config.strict ? i.emitError(
332
- `For consistency, include a space character after '*' in JSDoc. Did not find it in "${e}"`,
333
- {
334
- file: i.file,
335
- node: void 0
336
- }
337
- ) : f = f.slice(1)), f.startsWith("@")) {
338
- c !== void 0 && !d && s.push(
339
- U[c] ?? {
340
- name: c,
341
- text: p.trim().replaceAll("\\@", "@") || void 0
342
- }
343
- );
344
- const u = f.indexOf(" "), v = u === -1 ? f.slice(1) : f.slice(1, u);
345
- if (v === "internal") {
346
- if (n)
347
- return;
348
- t = !1;
349
- } else v === "public" ? (t = !1, d = !0) : d = v === "privateRemarks";
350
- const C = u === -1 ? "" : f.slice(u + 1);
351
- c = v, p = C;
352
- } else c !== void 0 ? p = `${p}
353
- ${f}` : l += `${f}
354
- `;
355
- }
356
- if (!t)
357
- return c !== void 0 && !d && s.push(
358
- U[c] ?? {
359
- name: c,
360
- text: p.trim().replaceAll("\\@", "@") || void 0
361
- }
362
- ), {
363
- description: l.trim().replaceAll("\\@", "@") || void 0,
364
- docsTags: s
365
- };
366
- }
367
- function ln(e, t) {
368
- for (let n = 0; n < t.docsTags.length; ++n) {
369
- const i = t.docsTags[n], { name: a, text: r } = i;
370
- a === "deprecated" ? e.deprecated = r || !0 : (e.docsTags ??= [], e.docsTags.push(i));
371
- }
372
- e.description = t.description;
373
- }
374
- function ni(e, t) {
375
- for (let n = 0; n < t.docsTags.length; ++n) {
376
- const i = t.docsTags[n], { name: a, text: r } = i;
377
- if (a === "deprecated")
378
- e.deprecated = r || !0;
379
- else if (i === U.private)
380
- e.privacy = "private";
381
- else if (a === "csspart")
382
- e.cssParts ??= [], e.cssParts.push(at(r));
383
- else if (a === "cssstate")
384
- e.cssStates ??= [], e.cssStates.push(at(r));
385
- else if (a === "slot")
386
- e.slots ??= [], e.slots.push(at(r));
387
- else if (a === "esriCompatibilityName") {
388
- const l = pe(e);
389
- l.esriCompatibilityNames ??= [], l.esriCompatibilityNames.push(r ?? "");
390
- } else a === "readonly" || (e.docsTags ??= [], e.docsTags.push(i));
391
- }
392
- e.description = t.description;
393
- }
394
- function cn(e, t) {
395
- const n = e, i = [];
396
- for (let a = 0; a < t.docsTags.length; ++a) {
397
- const r = t.docsTags[a], { name: l, text: s } = r;
398
- if (l === "deprecated")
399
- e.deprecated = s || !0;
400
- else if (r === U.private)
401
- e.privacy = "private";
402
- else if (l === "param")
403
- i.push(r);
404
- else if (l === "returns")
405
- n.return.description = r.text;
406
- else if (l === "esriCompatibilityName") {
407
- const c = ht(e);
408
- c.esriCompatibilityNames ??= [], c.esriCompatibilityNames.push(s ?? "");
409
- } else
410
- e.docsTags ??= [], e.docsTags.push(r);
411
- }
412
- return e.description = t.description, i;
413
- }
414
- function dn(e, t) {
415
- for (let n = 0; n < t.docsTags.length; ++n) {
416
- const i = t.docsTags[n], { name: a, text: r } = i;
417
- a === "deprecated" ? e.deprecated = r || !0 : a === "default" ? e.default = r : i === U.readonly ? e.readonly = !0 : i === U.private ? e.privacy = "private" : (e.docsTags ??= [], e.docsTags.push(i));
418
- }
419
- e.description = t.description;
420
- }
421
- function pn(e, t) {
422
- for (let n = 0; n < t.docsTags.length; ++n) {
423
- const i = t.docsTags[n], { name: a, text: r } = i;
424
- if (a === "deprecated")
425
- e.deprecated = r || !0;
426
- else if (a === "default")
427
- e.default = r;
428
- else if (a !== "readonly") if (a === "esriCompatibilityName") {
429
- const l = ei(e);
430
- l.esriCompatibilityNames ??= [], l.esriCompatibilityNames.push(r ?? "");
431
- } else
432
- e.docsTags ??= [], e.docsTags.push(i);
433
- }
434
- e.description = t.description;
435
- }
436
- function mn(e, t) {
437
- for (let n = 0; n < t.docsTags.length; ++n) {
438
- const i = t.docsTags[n], { name: a, text: r } = i;
439
- a === "deprecated" ? e.deprecated = r || !0 : i === U.private ? e.privacy = "private" : (e.docsTags ??= [], e.docsTags.push(i));
440
- }
441
- e.description = t.description;
442
- }
443
- function at(e) {
444
- if (e === void 0)
445
- return {
446
- name: "",
447
- deprecated: void 0,
448
- summary: void 0,
449
- description: void 0,
450
- syntax: void 0,
451
- default: void 0
452
- };
453
- const t = e.indexOf(" - ");
454
- if (t === -1)
455
- return e.startsWith("- ") ? {
456
- name: "",
457
- deprecated: void 0,
458
- summary: void 0,
459
- description: e.slice(2),
460
- syntax: void 0,
461
- default: void 0
462
- } : {
463
- name: e,
464
- deprecated: void 0,
465
- summary: void 0,
466
- description: void 0,
467
- syntax: void 0,
468
- default: void 0
469
- };
470
- let n, i = e.slice(0, t);
471
- if (i.startsWith("[") && i.endsWith("]")) {
472
- const r = i.slice(1, -1), l = r.indexOf("=");
473
- i = r.slice(0, l), n = r.slice(l + 1);
474
- }
475
- const a = e.slice(t + 3);
476
- return {
477
- name: i,
478
- deprecated: void 0,
479
- summary: void 0,
480
- description: a,
481
- syntax: void 0,
482
- default: n
483
- };
484
- }
485
- const U = {
486
- // Create a null prototype object to avoid collisions with Object.prototype when doing lookups
487
- // eslint-disable-next-line @typescript-eslint/naming-convention
488
- __proto__: null,
489
- internal: { name: "internal", text: void 0 },
490
- private: { name: "private", text: void 0 },
491
- copyDoc: { name: "copyDoc", text: void 0 },
492
- beta: { name: "beta", text: void 0 },
493
- experimental: { name: "experimental", text: void 0 },
494
- readonly: { name: "readonly", text: void 0 },
495
- required: { name: "required", text: void 0 }
496
- }, ze = {
497
- description: void 0,
498
- docsTags: []
499
- }, Ce = {
500
- description: void 0,
501
- docsTags: [U.private]
502
- };
503
- function un(e, t, n) {
504
- switch (t.path) {
505
- case "layers/FeatureLayer": {
506
- const i = "export default class FeatureLayer extends FeatureLayerSuperclass {", a = e.indexOf(i);
507
- if (a === -1)
508
- return n.emitError(
509
- `Hardcoded behavior error: Expected .d.ts for FeatureLayer to include "${i}".`,
510
- { file: oe(t).file, node: void 0 }
511
- ), e;
512
- const r = 'get type(): "feature";', l = e.indexOf(r);
513
- if (l === -1)
514
- return n.emitError(
515
- `Hardcoded behavior error: Expected .d.ts for FeatureLayer to include "${r}".`,
516
- { file: oe(t).file, node: void 0 }
517
- ), e;
518
- const s = l + r.length, c = e.lastIndexOf("/**", l);
519
- if (c === -1)
520
- return n.emitError(
521
- `Hardcoded behavior error: Expected .d.ts for FeatureLayer to include JSDoc for "${r}".`,
522
- { file: oe(t).file, node: void 0 }
523
- ), e;
524
- const p = `export default class FeatureLayer extends __FeatureLayerSansType {
525
- ${e.slice(c, s)}
526
- }
527
- export abstract class __FeatureLayerSansType extends FeatureLayerSuperclass {`;
528
- return e.slice(0, a) + p + e.slice(a + i.length, c) + e.slice(s);
529
- }
530
- case "layers/OrientedImageryLayer":
531
- case "layers/AnnotationLayer":
532
- case "layers/DimensionFeatureLayer": {
533
- const i = `import type { __FeatureLayerSansType } from "./FeatureLayer.js";
534
- `, a = `extends FeatureLayer {
535
- `, r = e.indexOf(a);
536
- return r === -1 ? (n.emitError(
537
- `Hardcoded behavior error: Expected .d.ts for ${t.path} to include "${a}".`,
538
- { file: oe(t).file, node: void 0 }
539
- ), e) : i + e.slice(0, r) + `extends __FeatureLayerSansType {
540
- ` + e.slice(r + a.length);
541
- }
542
- case "widgets/support/widget":
543
- return e + `
544
-
545
- export namespace tsx {
546
- namespace JSX {
547
- interface IntrinsicElements {
548
- [elementName: string]: any;
549
- }
550
-
551
- interface Element {
552
- }
553
- }
554
- }`;
555
- default:
556
- return e;
557
- }
558
- }
559
- function fa(e, t) {
560
- let n = `/// <reference types="../index.d.ts" />
561
- `, i = `
562
-
563
- `, a = "", r = "", l = "", s = "", c = "", p = "", d = "", m = "", f = "", u = "", v = "", C = "";
564
- for (let S = 0; S < e.length; ++S) {
565
- const x = e[S];
566
- for (let A = 0; A < x.declarations.length; ++A) {
567
- const V = x.declarations[A];
568
- if (V.customElement !== !0)
569
- continue;
570
- const W = V;
571
- if (W.privacy !== void 0 || pe(W).hasExplicitAbstract === !0)
572
- continue;
573
- const { name: G, tagName: O, pascalCaseName: F, events: B } = W;
574
- i += `import type { ${G} } from "./${x.path}/customElement.js";
575
- `, n += `import type { ${G} } from "../${x.path}/customElement.js";
576
- `;
577
- const [me, ke] = fn(W.name, W.members);
578
- let ie = "", Q = "";
579
- if (B !== void 0) {
580
- for (let de = 0; de < B.length; ++de) {
581
- const Ge = B[de], Dt = `EventHandler<${G}["${Ge.name}"]>`;
582
- ie += ` ${xt(`on${Ge.name}`)}?: ${Dt};
583
- `, Q += ` ${xt(`on${Ge.name[0].toUpperCase()}${Ge.name.slice(1)}`)}?: ${Dt};
584
- `;
585
- }
586
- a += `export interface ${F}CustomEvent<T> extends CustomEvent<T> {
587
- detail: T;
588
- target: ${G};
589
- currentTarget: ${G};
590
- }
591
- `, r += ` type HTML${F}ElementEventMap = ${G}["@eventTypes"];
592
- `;
593
- }
594
- r += ` type HTML${F}Element = ${G};
595
-
596
- `, l += ` "${O}": ${G};
597
- `, s += `interface Lumina${F} extends ${me}h.JSX.HTMLAttributes<${G}> {
598
- ${ie}}
599
-
600
- `, c += ` "${O}": Lumina${F};
601
- `, p += `interface Preact${F} extends ${me}HTMLAttributes<${G}> {
602
- ${ie}}
603
-
604
- `, d += ` "${O}": Preact${F};
605
- `, m += `interface React${F} extends ${me}HTMLProps<${G}> {
606
- ${ie}}
607
-
608
- `, f += ` "${O}": React${F};
609
- `, u += `interface Stencil${F} extends ${me}StencilJsx.HTMLAttributes<${G}> {
610
- ${Q}}
611
-
612
- `, v += ` "${O}": Stencil${F};
613
- `, ke !== "" && (C += ke);
614
- }
615
- }
616
- if (r === "") {
617
- t.vanillaComponentTypes = "";
618
- return;
619
- }
620
- const g = "@arcgis/lumina";
621
- t.vanillaComponentTypes = `${i}
622
- export { ToEvents, TargetedEvent } from "${g}";
623
-
624
- ${a}
625
-
626
- declare global {
627
- interface HTMLElementTagNameMap {
628
- ${l}
629
- }
630
-
631
- ${r}
632
- }`;
633
- const P = `import "./index.js";
634
- export declare const defineCustomElements: import("${g}").DefineCustomElements;`, h = `${t.config.context.dtsEmitPath}loader.d.ts`;
635
- t.dtsFiles.set(h, P);
636
- const R = `${n}import type { h, EventHandler } from "${g}";
637
-
638
- ${C}${s}declare module "@arcgis/lumina" {
639
- export namespace h.JSX {
640
- interface IntrinsicElements {
641
- ${c} }
642
- }
643
- }`, L = ` interface IntrinsicElements {
644
- ${d} }`, y = `${n}import { HTMLAttributes } from "preact";
645
- import type { EventHandler } from "${g}";
646
-
647
- ${C}${p}declare module 'preact' {
648
- namespace createElement.JSX {
649
- ${L}
650
- }
651
- namespace h.JSX {
652
- ${L}
653
- }
654
- }`, k = `
655
- namespace JSX {
656
- interface IntrinsicElements {
657
- ${f} }
658
- }
659
- `, M = `${n}import type { HTMLProps } from 'react';
660
- import type { EventHandler } from "${g}";
661
-
662
- ${C}${m}declare module "react" {${k}}
663
- declare module "react/jsx-runtime" {${k}}
664
- declare module "react/jsx-dev-runtime" {${k}}`, I = `${n}import { JSXBase as StencilJsx } from "@stencil/core/internal";
665
- import type { EventHandler } from "${g}";
666
-
667
- ${C}${u}interface ExposedElements {
668
- ${v}}
669
-
670
- export namespace JSX {
671
- export interface IntrinsicElements extends ExposedElements {}
672
- }
673
-
674
- declare module "@stencil/core/internal/stencil-public-runtime" {
675
- export namespace h.JSX {
676
- interface IntrinsicElements extends ExposedElements {}
677
- }
678
- }`, D = `/** @deprecated import from stencil.d.ts instead */
679
- export * from "./stencil.js";`, T = `${t.config.context.dtsEmitPath}types/`, _ = `${T}lumina.d.ts`, N = `${T}preact.d.ts`, q = `${T}react.d.ts`, K = `${T}stencil.d.ts`, E = `${T}components.d.ts`;
680
- t.dtsFiles.set(_, R), t.dtsFiles.set(N, y), t.dtsFiles.set(q, M), t.dtsFiles.set(K, I), t.dtsFiles.set(E, D);
681
- }
682
- function fn(e, t) {
683
- const n = [], i = [];
684
- let a = !1;
685
- if (t !== void 0)
686
- for (let s = 0; s < t.length; ++s) {
687
- const c = t[s];
688
- if (c.kind !== "field" || c.readonly !== void 0 || c.privacy !== void 0)
689
- continue;
690
- if (c.getterType !== void 0) {
691
- a = !0;
692
- continue;
693
- }
694
- c.docsTags?.includes(U.required) === !0 ? n.push(`"${c.name}"`) : i.push(`"${c.name}"`);
695
- }
696
- let r = n.length > 0 ? `Required<Pick<${e}, ${n.join(" | ")}>>` : "";
697
- i.length > 0 && (r.length > 0 && (r += ", "), r += `Partial<Pick<${e}, ${i.join(" | ")}>>`), a && (r.length > 0 && (r += ", "), r += `${e}SetterTypes`);
698
- const l = a ? `type ${e}SetterTypes = ${e}["${oi}"];
699
- ` : "";
700
- return [r.length === 0 ? "" : `${r}, `, l];
701
- }
702
- function ya(e, t) {
703
- const n = t.moduleMap.get("index");
704
- if (n === void 0)
705
- e.unshift(yn);
706
- else {
707
- const i = oe(n);
708
- i.index.named.getAssetPath === void 0 && n.declarations.push(ai), i.index.named.setAssetPath === void 0 && n.declarations.push(ri);
709
- }
710
- }
711
- const oi = "@setterTypes", ai = {
712
- [j]: et(),
713
- kind: "function",
714
- name: "getAssetPath",
715
- static: void 0,
716
- deprecated: void 0,
717
- summary: void 0,
718
- description: "Get a resolved path from where an asset can be loaded.",
719
- docsTags: void 0,
720
- typeParameters: void 0,
721
- parameters: [
722
- {
723
- name: "suffix",
724
- deprecated: void 0,
725
- summary: void 0,
726
- description: "The relative path for the asset.",
727
- docsTags: void 0,
728
- optional: void 0,
729
- rest: void 0,
730
- type: {
731
- text: "string",
732
- references: void 0,
733
- values: void 0,
734
- source: void 0
735
- },
736
- default: void 0
737
- }
738
- ],
739
- return: {
740
- summary: void 0,
741
- description: void 0,
742
- type: {
743
- text: "string",
744
- references: void 0,
745
- values: void 0,
746
- source: void 0
747
- }
748
- },
749
- inheritedFrom: void 0,
750
- signature: void 0,
751
- privacy: void 0,
752
- source: void 0
753
- }, ri = {
754
- [j]: et(),
755
- kind: "function",
756
- name: "setAssetPath",
757
- static: void 0,
758
- deprecated: void 0,
759
- summary: void 0,
760
- description: `Used to manually set the base path where package assets (like localization
761
- and icons) can be found.
762
-
763
- By default, the package assets are loaded from
764
- \`https://js.arcgis.com/<version>/<simplified-package-name>/\`. We are hosting
765
- our assets on a CDN (Content Delivery Network) to ensure fast and reliable
766
- access. It is CORS-enabled, so you can load the assets from any domain. This
767
- is the recommended way to load the assets and avoid bundling them with your
768
- application.
769
-
770
- However, if you need to host the assets locally, you can copy them manually
771
- as part of your build process and use \`setAssetPath\` to customize where the
772
- browser will load the assets from.`,
773
- docsTags: void 0,
774
- typeParameters: void 0,
775
- parameters: [
776
- {
777
- name: "path",
778
- deprecated: void 0,
779
- summary: void 0,
780
- description: "Relative or absolute path to the assets folder.",
781
- docsTags: void 0,
782
- optional: void 0,
783
- rest: void 0,
784
- type: {
785
- text: "URL | string",
786
- references: [
787
- {
788
- name: "URL",
789
- module: void 0,
790
- package: "global:",
791
- viewUrl: "https://developer.mozilla.org/docs/Web/API/URL",
792
- start: 0,
793
- end: 3
794
- }
795
- ],
796
- values: void 0,
797
- source: void 0
798
- },
799
- default: void 0
800
- }
801
- ],
802
- return: {
803
- summary: void 0,
804
- description: void 0,
805
- type: {
806
- text: "void",
807
- references: void 0,
808
- values: void 0,
809
- source: void 0
810
- }
811
- },
812
- inheritedFrom: void 0,
813
- signature: void 0,
814
- privacy: void 0,
815
- source: void 0
816
- }, si = ti(void 0, "index", {}, { class: void 0, default: void 0, named: {} });
817
- si.importsText = "";
818
- const yn = {
819
- [j]: si,
820
- kind: "javascript-module",
821
- path: "index",
822
- sourcePath: "src/index.ts",
823
- deprecated: void 0,
824
- description: void 0,
825
- docsTags: void 0,
826
- summary: void 0,
827
- declarations: [ai, ri],
828
- exports: void 0
829
- };
830
- function ga(e, t) {
831
- const n = Te(e), i = he(n), a = oe(e);
832
- if (a.index.class?.privacy !== void 0)
833
- return e.declarations.length > 1 && t.emitError(
834
- `Did not expect to find any public declarations in a module that declares a private web component. Found: ${e.declarations.filter((s) => s !== a.index.class).map((s) => s.name).join(", ")}`,
835
- { file: a.file, node: void 0 }
836
- ), "";
837
- let r = `${i}${a.importsText}`;
838
- if (r !== "" && (r += `
839
- `), a.reExports !== void 0) {
840
- for (let s = 0; s < a.reExports.length; ++s) {
841
- const c = a.reExports[s];
842
- let p = "";
843
- if (c.specifiers[0].exportName === "*") {
844
- const d = c.specifiers[0];
845
- p = (c.isTypeOnly ? "type *" : "*") + (d.aliasName ? ` as ${d.aliasName}` : "");
846
- } else {
847
- for (let d = 0; d < c.specifiers.length; ++d) {
848
- const m = c.specifiers[d];
849
- p += (d === 0 ? "{" : ",") + (c.isTypeOnly ? " type " : " ") + m.exportName + (m.aliasName ? ` as ${m.aliasName}` : "");
850
- }
851
- p += " }";
852
- }
853
- r += `export ${p} from "${c.specifier}";
854
- `;
855
- }
856
- r += `
857
- `;
858
- }
859
- if (a.namespaces !== void 0)
860
- for (let s = 0; s < a.namespaces.length; ++s)
861
- r += `${a.namespaces[s]}
862
-
863
- `;
864
- const l = e.declarations;
865
- a.constructorPropertiesInterface !== void 0 && (r += `${Ft(a.constructorPropertiesInterface)}
866
-
867
- `);
868
- for (let s = 0; s < l.length; ++s) {
869
- const c = l[s];
870
- r += Ft(c), s < l.length - 1 && (r += `
871
-
872
- `);
873
- }
874
- return t.isJsApi ? un(r, e, t) : (t.isComponentProject && (e.exports?.[0].kind === "custom-element-definition" ? r = `/// <reference path="../../index.d.ts" />
875
- ${r}` : e.path === "index" && (r += t.vanillaComponentTypes)), r);
876
- }
877
- function he(e) {
878
- return e === void 0 ? "" : `/*${on(e)}*/
879
- `;
880
- }
881
- function Ft(e) {
882
- let t = Te(e), n = "";
883
- if (e.kind === "class" || e.kind === "mixin")
884
- n = Ot(e);
885
- else if (e.kind === "interface") {
886
- const a = pe(e);
887
- if (e.supertypes === void 0 && e.type === void 0 && e.members?.length === 1 && (e.members[0].kind === "call-signature" || e.members[0].kind === "constructor")) {
888
- const l = e.members[0];
889
- let s = li(l, !0);
890
- const c = Te(l)?.docsTags;
891
- c !== void 0 && (t = {
892
- description: t?.description,
893
- docsTags: [...c, ...t?.docsTags ?? []]
894
- });
895
- const p = s.indexOf("): ");
896
- s = `${s.slice(0, p)}) => ${s.slice(p + 3, -1)}`, n = Rt(e.name, e.typeParameters, void 0, s);
897
- } else if (a.isMixinBaseClass === !0)
898
- n = Ot(e);
899
- else if (a.emitAsTypeAlias === !0) {
900
- let l = e.type?.text;
901
- const s = pt(e);
902
- s !== "" ? l = l === void 0 ? `{${s}}` : `${l} & {${s}}` : l === void 0 && e.supertypes === void 0 && (l = "{}"), n = Rt(e.name, e.typeParameters, e.supertypes, l);
903
- } else {
904
- const l = pt(e);
905
- n = Oi(
906
- a.isDefaultExported === !0,
907
- e.name,
908
- e.typeParameters,
909
- e.supertypes,
910
- l
911
- );
912
- }
913
- } else if (e.kind === "function") {
914
- const a = ht(e);
915
- n = Ni(
916
- a.isDefaultExported === !0,
917
- e.name,
918
- e.typeParameters,
919
- e.parameters,
920
- e.return.type.text
921
- );
922
- } else if (e.kind === "variable") {
923
- const a = ei(e);
924
- n += wi(a.isDefaultExported === !0, e.name, e.type.text);
925
- }
926
- return `${he(t)}${n}`;
927
- }
928
- function Ot(e) {
929
- const t = pe(e), n = t.isDefaultExported === !0, i = pt(e), a = e, r = e;
930
- let l, s = a.mixins ?? r.supertypes;
931
- s === void 0 ? a.superclass !== void 0 && (l = Fe(a.superclass)) : a.superclass === void 0 && s.length === 1 ? (l = Fe(s[0]), s = void 0) : l = `${e.name}Superclass`;
932
- let c = Ui(
933
- t.hasExplicitAbstract !== void 0,
934
- n,
935
- e.name,
936
- e.typeParameters,
937
- l,
938
- i
939
- );
940
- if (s !== void 0) {
941
- c += `
942
- declare const ${l}:`, a.superclass !== void 0 && (c += ` typeof ${Fe(a.superclass)}`);
943
- for (let p = 0; p < s.length; ++p) {
944
- const d = s[p];
945
- c += ` & typeof ${Fe(d)}`;
946
- }
947
- }
948
- return c;
949
- }
950
- function pt(e) {
951
- const t = e.members;
952
- let n = "";
953
- const i = pe(e);
954
- if (e.kind === "mixin" && (n += `constructor(...args: any[]);
955
- `), i.eventTypesProperty !== void 0) {
956
- let l = vn;
957
- if (i.eventTypesProperty.description !== void 0 || i.eventTypesProperty.docsTags !== void 0) {
958
- const c = Te(i.eventTypesProperty);
959
- l = he(c);
960
- }
961
- const s = Nt(i.eventTypesProperty);
962
- n += `${l}${s}
963
- `;
964
- }
965
- const a = e, r = e.customElement === !0;
966
- if (t !== void 0) {
967
- let l = "";
968
- for (let s = 0; s < t.length; ++s) {
969
- const c = t[s];
970
- if (c.inheritedFrom !== void 0 || c.privacy === "private")
971
- continue;
972
- const d = Te(c);
973
- n += he(d), c.kind === "field" ? (r && c.getterType !== void 0 && (l += ` ${fe(!1, !1, !1, !1, !1, c.docsTags?.includes(U.required) !== !0, c.name, c.type.text)}
974
- `), n += Nt(c)) : n += li(c, !1), n += `
975
- `;
976
- }
977
- l !== "" && (n += `${fe(!1, !1, !1, !1, !1, !1, oi, `{
978
- ${l}}`)}
979
- `);
980
- }
981
- if (r && a.events !== void 0) {
982
- let l = e.name;
983
- if (e.typeParameters !== void 0) {
984
- l += "<";
985
- for (let c = 0; c < e.typeParameters.length; ++c)
986
- l += e.typeParameters[c].name, c < e.typeParameters.length - 1 && (l += ", ");
987
- l += ">";
988
- }
989
- let s = "";
990
- for (let c = 0; c < a.events.length; ++c) {
991
- const p = a.events[c];
992
- if (p.inheritedFrom === void 0) {
993
- const d = Te(p);
994
- n += `${he(d)}${fe(!1, !1, !1, !0, !1, !1, p.name, `import("${gn}").TargetedEvent<this, ${p.type.text}>`)}
995
- `;
996
- }
997
- s += ` ${fe(!1, !1, !1, !1, !1, !1, p.name, `${l}["${p.name}"]["detail"]`)}
998
- `;
999
- }
1000
- n += `${fe(!1, !1, !1, !0, !1, !1, "@eventTypes", `{
1001
- ${s}}`)}
1002
- `;
1003
- }
1004
- return n === "" ? "" : `
1005
- ${n.replaceAll(`
1006
- `, `
1007
- `).slice(0, -2)}`;
1008
- }
1009
- const gn = "@arcgis/lumina";
1010
- function Nt(e) {
1011
- let t = "";
1012
- const n = ki(e), i = n.isAccessor === !0, a = e.readonly === !0;
1013
- if (e.getterType !== void 0 || i && a)
1014
- t += Wi(
1015
- e.privacy !== void 0,
1016
- n.isAbstract === !0,
1017
- e.static === !0,
1018
- e.name,
1019
- e.getterType?.text ?? e.type.text,
1020
- a ? void 0 : e.type.text
1021
- );
1022
- else {
1023
- const r = n.dtsTypeOverride ?? e.type.text, l = i ? !1 : r.endsWith(" | undefined"), s = l ? r.slice(0, -12) : r;
1024
- t += fe(
1025
- e.privacy !== void 0,
1026
- n.isAbstract === !0,
1027
- e.static === !0,
1028
- a,
1029
- i,
1030
- l,
1031
- e.name,
1032
- s
1033
- );
1034
- }
1035
- return t;
1036
- }
1037
- function li(e, t) {
1038
- const n = ht(e);
1039
- return Vi(
1040
- e.privacy !== void 0,
1041
- n.isAbstract === !0,
1042
- e.static === !0,
1043
- n.hasQuestionToken === !0,
1044
- e.kind === "constructor" ? t ? "new" : "constructor" : e.kind === "call-signature" ? "" : e.name,
1045
- e.typeParameters,
1046
- e.parameters,
1047
- e.return?.type.text
1048
- );
1049
- }
1050
- const vn = he({
1051
- description: void 0,
1052
- docsTags: [
1053
- {
1054
- name: "deprecated",
1055
- text: `Do not directly reference this property.
1056
- Use EventNames and EventTypes helpers from @arcgis/core/Evented`
1057
- }
1058
- ]
1059
- });
1060
- function va() {
1061
- const e = Date.now();
1062
- return () => (Date.now() - e) / Sn;
1063
- }
1064
- const Sn = 1e3;
1065
- function Tn(e) {
1066
- const t = e.indexOf("/");
1067
- return t === -1 ? e : e.slice(0, t);
1068
- }
1069
- function wt(e, t, n) {
1070
- if (!n.isComponentProject || n.config.context.isLuminaMinimalExtraction || n.config.documentation.publicStoryUrlPrefix === !1)
1071
- return;
1072
- const i = e.match(hn)?.[1];
1073
- if (i === void 0) {
1074
- n.emitError(
1075
- 'Failed to find component tag name. Make sure the "component" property is present in the story meta. Documentation: https://webgis.esri.com/references/support-packages/storybook',
1076
- { file: void 0, node: void 0, scope: t.slice(n.basePath.length) }
1077
- );
1078
- return;
1079
- }
1080
- const a = [];
1081
- for (const l of e.matchAll(En)) {
1082
- const s = l[1], c = Mn(s), p = e.indexOf("{", l.index), d = e.indexOf("}", p), m = e.slice(0, l.index).trimEnd();
1083
- let f = "";
1084
- if (m.endsWith("*/")) {
1085
- const C = m.lastIndexOf("/**");
1086
- f = m.slice(C + 3, -2).trim().replaceAll(Pn, "");
1087
- }
1088
- const u = e.slice(p, d).match(Cn)?.[1] || c, v = bn(c);
1089
- a.push({
1090
- description: `${u}${f ? `
1091
- ${f}` : ""}`,
1092
- url: `${n.config.documentation.publicStoryUrlPrefix}?path=/story/${i}--${v}&singleStory=true`,
1093
- source: void 0
1094
- });
1095
- }
1096
- if (a.length === 0) {
1097
- n.emitError(
1098
- 'Failed to find any stories. Make sure stories are defined using expected format and have a "name" property. Documentation: https://webgis.esri.com/references/support-packages/storybook',
1099
- { file: void 0, node: void 0, scope: t.slice(n.basePath.length) }
1100
- );
1101
- return;
1102
- }
1103
- const r = n.componentStories[i];
1104
- r === void 0 ? n.componentStories[i] = a : r.push(...a);
1105
- }
1106
- const hn = /component: ["']([^"']+)["']/u, En = /export const (\w+)/gu, Cn = /name: ["']([^"']+)["']/u, Pn = /^\s*\*\s?/gmu, bn = (e) => e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/giu, "-").replace(/-+/gu, "-").replace(/^-+/u, "").replace(/-+$/u, ""), Mn = (e) => e.replace(/_/gu, " ").replace(/-/gu, " ").replace(/\./gu, " ").replace(/([^\n])([A-Z])([a-z])/gu, (t, n, i, a) => `${n} ${i}${a}`).replace(/([a-z])([A-Z])/gu, (t, n, i) => `${n} ${i}`).replace(/([a-z])([0-9])/giu, (t, n, i) => `${n} ${i}`).replace(/([0-9])([a-z])/giu, (t, n, i) => `${n} ${i}`).replace(/(\s|^)(\w)/gu, (t, n, i) => `${n}${i.toUpperCase()}`).replace(/ +/gu, " ").trim();
1107
- function mt(e, t) {
1108
- let i = t.startsWith("./") ? t.slice(2) : t, a = e;
1109
- for (; ; ) {
1110
- const r = a.lastIndexOf("/");
1111
- if (a = r === -1 ? "" : a.slice(0, r), i.startsWith("../"))
1112
- i = i.slice(3);
1113
- else
1114
- return a === "" ? i : `${a}/${i}`;
1115
- }
1116
- }
1117
- function ye(e, t) {
1118
- let n = 0;
1119
- for (; ; ) {
1120
- const a = e.indexOf("/", n) + 1;
1121
- if (a === 0)
1122
- break;
1123
- const r = e.slice(n, a), l = t.slice(n, a);
1124
- if (r !== l)
1125
- break;
1126
- n = a;
1127
- }
1128
- let i = "";
1129
- for (let a = n; a < e.length && (a = e.indexOf("/", a), a !== -1); ++a)
1130
- i += "../";
1131
- return i.length === 0 && (i = "./"), `${i}${t.slice(n)}`;
1132
- }
1133
- function Ut(e, t, n = 0) {
1134
- for (; n < e.length; ++n) {
1135
- const i = e[n];
1136
- i.start += t, i.end += t;
1137
- }
1138
- return e;
1139
- }
1140
- function Vt(e, t) {
1141
- if (e === t)
1142
- return !0;
1143
- if (typeof e != "object" || typeof t != "object" || e === null || t === null)
1144
- return !1;
1145
- if (Array.isArray(e)) {
1146
- if (!Array.isArray(t) || e.length !== t.length)
1147
- return !1;
1148
- for (let a = 0; a < e.length; ++a)
1149
- if (!Vt(e[a], t[a]))
1150
- return !1;
1151
- return !0;
1152
- }
1153
- const n = Object.keys(e), i = Object.keys(t);
1154
- if (n.length !== i.length)
1155
- return !1;
1156
- for (let a = 0; a < n.length; ++a) {
1157
- const r = n[a];
1158
- if (!Vt(e[r], t[r]))
1159
- return !1;
1160
- }
1161
- return !0;
1162
- }
1163
- function Dn(e, t) {
1164
- if (t.config.context.isLuminaMinimalExtraction || t.componentTagName === void 0)
1165
- return;
1166
- const n = e.moduleSpecifier.text, i = /\.(?:css|s[ac]ss|less|styl(?:us)?|postcss|pcss|sss)(\\?|$)/u;
1167
- if (!(n.startsWith(".") && i.test(n)))
1168
- return;
1169
- const r = n.split("?", 1)[0], l = Zi.join(t.file.fileName, "..", r), s = zi(l, "utf-8"), c = xn(s);
1170
- c !== void 0 && (t.componentCssFileDocs = c);
1171
- }
1172
- function xn(e) {
1173
- const t = [];
1174
- for (const n of e.matchAll(Rn)) {
1175
- const i = n.groups.name, a = n.groups.description.replaceAll(Ln, " ").trim();
1176
- t.push({
1177
- name: i,
1178
- deprecated: void 0,
1179
- summary: void 0,
1180
- description: a.endsWith("*") ? a.slice(0, -1).trim() : a,
1181
- syntax: void 0,
1182
- default: void 0
1183
- });
1184
- }
1185
- return t.length === 0 ? void 0 : t;
1186
- }
1187
- const Rn = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, Ln = /\n\s+\*? ?/gu;
1188
- function ci(e, t) {
1189
- if (e === void 0)
1190
- return !1;
1191
- for (let n = 0; n < e.length; ++n)
1192
- if (e[n].kind === t)
1193
- return !0;
1194
- return !1;
1195
- }
1196
- function tt(e) {
1197
- if (e.modifiers === void 0)
1198
- return 0;
1199
- for (let t = 0; t < e.modifiers.length; ++t)
1200
- if (e.modifiers[t].kind === o.SyntaxKind.ExportKeyword)
1201
- return e.modifiers[t + 1]?.kind === o.SyntaxKind.DefaultKeyword ? 2 : 1;
1202
- return 0;
1203
- }
1204
- function di(e, t) {
1205
- return e.endsWith("Properties") && t.apiClassLikeName === e.slice(0, -10);
1206
- }
1207
- const In = /* @__PURE__ */ JSON.parse('{"AacBitstreamFormat":[],"AacEncoderConfig":[],"AbortController":["AbortController"],"AbortSignal":["AbortSignal"],"AbortSignalEventMap":[],"AbstractRange":["AbstractRange"],"AbstractWorker":["error_event"],"AbstractWorkerEventMap":[],"ActiveXObject":[],"addEventListener":[],"AddEventListenerOptions":[],"AddressErrors":[],"AesCbcParams":[],"AesCtrParams":[],"AesDerivedKeyParams":[],"AesGcmParams":[],"AesKeyAlgorithm":[],"AesKeyGenParams":[],"AggregateError":[],"AggregateErrorConstructor":[],"alert":["Window/alert"],"Algorithm":[],"AlgorithmIdentifier":[],"AlignSetting":[],"AllAcceptedCredentialsOptions":[],"AllowSharedBufferSource":[],"AlphaOption":[],"AnalyserNode":["AnalyserNode"],"AnalyserOptions":[],"ANGLE_instanced_arrays":["ANGLE_instanced_arrays"],"Animatable":["animate"],"Animation":["Animation"],"AnimationEffect":["AnimationEffect"],"AnimationEvent":["AnimationEvent"],"AnimationEventInit":[],"AnimationEventMap":[],"AnimationFrameProvider":["cancelAnimationFrame"],"AnimationPlaybackEvent":["AnimationPlaybackEvent"],"AnimationPlaybackEventInit":[],"AnimationPlayState":[],"AnimationReplaceState":[],"AnimationTimeline":["AnimationTimeline"],"AppendMode":[],"ARIAMixin":["ariaActiveDescendantElement"],"Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array"],"ArrayBuffer":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer"],"ArrayBufferConstructor":[],"ArrayBufferLike":[],"ArrayBufferTypes":[],"ArrayBufferView":[],"ArrayConstructor":[],"ArrayIterator":[],"ArrayLike":[],"AssignedNodesOptions":[],"AsyncDisposable":[],"AsyncDisposableStack":[],"AsyncDisposableStackConstructor":[],"AsyncGenerator":[],"AsyncGeneratorFunction":[],"AsyncGeneratorFunctionConstructor":[],"AsyncIterable":[],"AsyncIterableIterator":[],"AsyncIterator":[],"AsyncIteratorObject":[],"atob":["Window/atob"],"Atomics":[],"AttestationConveyancePreference":[],"Attr":["Attr"],"Audio":[],"AudioBuffer":["AudioBuffer"],"AudioBufferOptions":[],"AudioBufferSourceNode":["AudioBufferSourceNode"],"AudioBufferSourceOptions":[],"AudioConfiguration":[],"AudioContext":["AudioContext"],"AudioContextLatencyCategory":[],"AudioContextOptions":[],"AudioContextState":[],"AudioData":["AudioData"],"AudioDataCopyToOptions":[],"AudioDataInit":[],"AudioDataOutputCallback":[],"AudioDecoder":["AudioDecoder"],"AudioDecoderConfig":[],"AudioDecoderEventMap":[],"AudioDecoderInit":[],"AudioDecoderSupport":[],"AudioDestinationNode":["AudioDestinationNode"],"AudioEncoder":["AudioEncoder"],"AudioEncoderConfig":[],"AudioEncoderEventMap":[],"AudioEncoderInit":[],"AudioEncoderSupport":[],"AudioListener":["AudioListener"],"AudioNode":["AudioNode"],"AudioNodeOptions":[],"AudioParam":["AudioParam"],"AudioParamMap":["AudioParamMap"],"AudioProcessingEvent":["AudioProcessingEvent"],"AudioProcessingEventInit":[],"AudioSampleFormat":[],"AudioScheduledSourceNode":["AudioScheduledSourceNode"],"AudioScheduledSourceNodeEventMap":[],"AudioTimestamp":[],"AudioWorklet":["AudioWorklet"],"AudioWorkletNode":["AudioWorkletNode"],"AudioWorkletNodeEventMap":[],"AudioWorkletNodeOptions":[],"AuthenticationExtensionsClientInputs":[],"AuthenticationExtensionsClientInputsJSON":[],"AuthenticationExtensionsClientOutputs":[],"AuthenticationExtensionsClientOutputsJSON":[],"AuthenticationExtensionsLargeBlobInputs":[],"AuthenticationExtensionsLargeBlobInputsJSON":[],"AuthenticationExtensionsLargeBlobOutputs":[],"AuthenticationExtensionsLargeBlobOutputsJSON":[],"AuthenticationExtensionsPRFInputs":[],"AuthenticationExtensionsPRFInputsJSON":[],"AuthenticationExtensionsPRFOutputs":[],"AuthenticationExtensionsPRFOutputsJSON":[],"AuthenticationExtensionsPRFValues":[],"AuthenticationExtensionsPRFValuesJSON":[],"AuthenticationResponseJSON":[],"AuthenticatorAssertionResponse":["AuthenticatorAssertionResponse"],"AuthenticatorAssertionResponseJSON":[],"AuthenticatorAttachment":[],"AuthenticatorAttestationResponse":["AuthenticatorAttestationResponse"],"AuthenticatorAttestationResponseJSON":[],"AuthenticatorResponse":["AuthenticatorResponse"],"AuthenticatorSelectionCriteria":[],"AuthenticatorTransport":[],"AutoFill":[],"AutoFillAddressKind":[],"AutoFillBase":[],"AutoFillContactField":[],"AutoFillContactKind":[],"AutoFillCredentialField":[],"AutoFillField":[],"AutoFillNormalField":[],"AutoFillSection":[],"AutoKeyword":[],"AutomationRate":[],"AvcBitstreamFormat":[],"AvcEncoderConfig":[],"Awaited":["https://www.typescriptlang.org/docs/handbook/utility-types.html#awaitedtype"],"BarProp":["BarProp"],"Base64URLString":[],"BaseAudioContext":["BaseAudioContext"],"BaseAudioContextEventMap":[],"BeforeUnloadEvent":["BeforeUnloadEvent"],"BigInt":[],"BigInt64Array":[],"BigInt64ArrayConstructor":[],"BigIntConstructor":[],"BigInteger":[],"BigIntToLocaleStringOptions":[],"BigUint64Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint64Array"],"BigUint64ArrayConstructor":[],"BinaryType":[],"BiquadFilterNode":["BiquadFilterNode"],"BiquadFilterOptions":[],"BiquadFilterType":[],"BitrateMode":[],"Blob":["Blob"],"BlobCallback":[],"BlobEvent":["BlobEvent"],"BlobEventInit":[],"BlobPart":[],"BlobPropertyBag":[],"blur":["Window/blur"],"Body":["body"],"BodyInit":[],"Boolean":[],"BooleanConstructor":[],"BroadcastChannel":["BroadcastChannel"],"BroadcastChannelEventMap":[],"btoa":["Window/btoa"],"BufferSource":[],"BuiltinIteratorReturn":[],"ByteLengthQueuingStrategy":["ByteLengthQueuingStrategy"],"Cache":["Cache"],"CacheQueryOptions":[],"caches":[],"CacheStorage":["CacheStorage"],"CallableFunction":[],"cancelAnimationFrame":["DedicatedWorkerGlobalScope/cancelAnimationFrame"],"cancelIdleCallback":["Window/cancelIdleCallback"],"CanPlayTypeResult":[],"CanvasCaptureMediaStreamTrack":["CanvasCaptureMediaStreamTrack"],"CanvasCompositing":["globalAlpha"],"CanvasDirection":[],"CanvasDrawImage":["drawImage"],"CanvasDrawPath":["beginPath"],"CanvasFillRule":[],"CanvasFillStrokeStyles":["fillStyle"],"CanvasFilters":["filter"],"CanvasFontKerning":[],"CanvasFontStretch":[],"CanvasFontVariantCaps":[],"CanvasGradient":["CanvasGradient"],"CanvasImageData":["createImageData"],"CanvasImageSmoothing":["imageSmoothingEnabled"],"CanvasImageSource":[],"CanvasLineCap":[],"CanvasLineJoin":[],"CanvasPath":["arc"],"CanvasPathDrawingStyles":["lineCap"],"CanvasPattern":["CanvasPattern"],"CanvasRect":["clearRect"],"CanvasRenderingContext2D":["CanvasRenderingContext2D"],"CanvasRenderingContext2DSettings":[],"CanvasSettings":["getContextAttributes"],"CanvasShadowStyles":["shadowBlur"],"CanvasState":["isContextLost"],"CanvasText":["fillText"],"CanvasTextAlign":[],"CanvasTextBaseline":[],"CanvasTextDrawingStyles":["direction"],"CanvasTextRendering":[],"CanvasTransform":["getTransform"],"CanvasUserInterface":["drawFocusIfNeeded"],"Capitalize":["https://www.typescriptlang.org/docs/handbook/utility-types.html#intrinsic-string-manipulation-types"],"captureEvents":["Window/captureEvents"],"CaretPosition":["CaretPosition"],"CaretPositionFromPointOptions":[],"CDATASection":["CDATASection"],"ChannelCountMode":[],"ChannelInterpretation":[],"ChannelMergerNode":["ChannelMergerNode"],"ChannelMergerOptions":[],"ChannelSplitterNode":["ChannelSplitterNode"],"ChannelSplitterOptions":[],"CharacterData":["CharacterData"],"CheckVisibilityOptions":[],"ChildNode":["after"],"ClassAccessorDecoratorContext":[],"ClassAccessorDecoratorResult":[],"ClassAccessorDecoratorTarget":[],"ClassDecorator":[],"ClassDecoratorContext":[],"ClassFieldDecoratorContext":[],"ClassGetterDecoratorContext":[],"ClassMemberDecoratorContext":[],"ClassMethodDecoratorContext":[],"ClassSetterDecoratorContext":[],"clearInterval":["Window/clearInterval"],"clearTimeout":["Window/clearTimeout"],"Client":["Client"],"clientInformation":[],"ClientQueryOptions":[],"ClientRect":[],"Clients":["Clients"],"ClientTypes":[],"Clipboard":["Clipboard"],"ClipboardEvent":["ClipboardEvent"],"ClipboardEventInit":[],"ClipboardItem":["ClipboardItem"],"ClipboardItemData":[],"ClipboardItemOptions":[],"ClipboardItems":[],"close":["DedicatedWorkerGlobalScope/close"],"closed":[],"CloseEvent":["CloseEvent"],"CloseEventInit":[],"CodecState":[],"ColorGamut":[],"ColorSpaceConversion":[],"CommandEvent":["CommandEvent"],"CommandEventInit":[],"Comment":["Comment"],"CompositeOperation":[],"CompositeOperationOrAuto":[],"CompositionEvent":["CompositionEvent"],"CompositionEventInit":[],"CompressionFormat":[],"CompressionStream":["CompressionStream"],"ComputedEffectTiming":[],"ComputedKeyframe":[],"ConcatArray":[],"confirm":["Window/confirm"],"console":[],"Console":["console"],"ConstantSourceNode":["ConstantSourceNode"],"ConstantSourceOptions":[],"ConstrainBoolean":[],"ConstrainBooleanOrDOMString":[],"ConstrainBooleanOrDOMStringParameters":[],"ConstrainBooleanParameters":[],"ConstrainDOMString":[],"ConstrainDOMStringParameters":[],"ConstrainDouble":[],"ConstrainDoubleRange":[],"ConstrainULong":[],"ConstrainULongRange":[],"ConstructorParameters":["https://www.typescriptlang.org/docs/handbook/utility-types.html#constructorparameterstype"],"ContentVisibilityAutoStateChangeEvent":["ContentVisibilityAutoStateChangeEvent"],"ContentVisibilityAutoStateChangeEventInit":[],"ConvolverNode":["ConvolverNode"],"ConvolverOptions":[],"CookieChangeEvent":["CookieChangeEvent"],"CookieChangeEventInit":[],"CookieInit":[],"CookieList":[],"CookieListItem":[],"CookieSameSite":[],"cookieStore":[],"CookieStore":["CookieStore"],"CookieStoreDeleteOptions":[],"CookieStoreEventMap":[],"CookieStoreGetOptions":[],"CookieStoreManager":["CookieStoreManager"],"COSEAlgorithmIdentifier":[],"CountQueuingStrategy":["CountQueuingStrategy"],"createImageBitmap":["Window/createImageBitmap"],"Credential":["Credential"],"CredentialCreationOptions":[],"CredentialMediationRequirement":[],"CredentialPropertiesOutput":[],"CredentialRequestOptions":[],"CredentialsContainer":["CredentialsContainer"],"crossOriginIsolated":[],"crypto":[],"Crypto":["Crypto"],"CryptoKey":["CryptoKey"],"CryptoKeyPair":[],"CSS":[null,{"cap":[],"ch":["CSS/factory_functions_static"],"cm":["CSS/factory_functions_static"],"cqb":["CSS/factory_functions_static"],"cqh":["CSS/factory_functions_static"],"cqi":["CSS/factory_functions_static"],"cqmax":["CSS/factory_functions_static"],"cqmin":["CSS/factory_functions_static"],"cqw":["CSS/factory_functions_static"],"deg":["CSS/factory_functions_static"],"dpcm":["CSS/factory_functions_static"],"dpi":["CSS/factory_functions_static"],"dppx":["CSS/factory_functions_static"],"dvb":["CSS/factory_functions_static"],"dvh":["CSS/factory_functions_static"],"dvi":["CSS/factory_functions_static"],"dvmax":["CSS/factory_functions_static"],"dvmin":["CSS/factory_functions_static"],"dvw":["CSS/factory_functions_static"],"em":["CSS/factory_functions_static"],"escape":["CSS/escape_static"],"ex":["CSS/factory_functions_static"],"fr":["CSS/factory_functions_static"],"grad":["CSS/factory_functions_static"],"highlights":[],"Hz":["CSS/factory_functions_static"],"ic":[],"kHz":["CSS/factory_functions_static"],"lh":[],"lvb":["CSS/factory_functions_static"],"lvh":["CSS/factory_functions_static"],"lvi":["CSS/factory_functions_static"],"lvmax":["CSS/factory_functions_static"],"lvmin":["CSS/factory_functions_static"],"lvw":["CSS/factory_functions_static"],"mm":["CSS/factory_functions_static"],"ms":["CSS/factory_functions_static"],"number":["CSS/factory_functions_static"],"pc":["CSS/factory_functions_static"],"percent":["CSS/factory_functions_static"],"pt":["CSS/factory_functions_static"],"px":["CSS/factory_functions_static"],"Q":["CSS/factory_functions_static"],"rad":["CSS/factory_functions_static"],"rcap":[],"rch":[],"registerProperty":["CSS/registerProperty_static"],"rem":["CSS/factory_functions_static"],"rex":[],"ric":[],"rlh":[],"s":["CSS/factory_functions_static"],"supports":["CSS/supports_static"],"svb":["CSS/factory_functions_static"],"svh":["CSS/factory_functions_static"],"svi":["CSS/factory_functions_static"],"svmax":["CSS/factory_functions_static"],"svmin":["CSS/factory_functions_static"],"svw":["CSS/factory_functions_static"],"turn":["CSS/factory_functions_static"],"vb":["CSS/factory_functions_static"],"vh":["CSS/factory_functions_static"],"vi":["CSS/factory_functions_static"],"vmax":["CSS/factory_functions_static"],"vmin":["CSS/factory_functions_static"],"vw":["CSS/factory_functions_static"]}],"CSSAnimation":["CSSAnimation"],"CSSConditionRule":["CSSConditionRule"],"CSSContainerRule":["CSSContainerRule"],"CSSCounterStyleRule":["CSSCounterStyleRule"],"CSSFontFaceRule":["CSSFontFaceRule"],"CSSFontFeatureValuesRule":["CSSFontFeatureValuesRule"],"CSSFontPaletteValuesRule":["CSSFontPaletteValuesRule"],"CSSGroupingRule":["CSSGroupingRule"],"CSSImageValue":["CSSImageValue"],"CSSImportRule":["CSSImportRule"],"CSSKeyframeRule":["CSSKeyframeRule"],"CSSKeyframesRule":["CSSKeyframesRule"],"CSSKeywordish":[],"CSSKeywordValue":["CSSKeywordValue"],"CSSLayerBlockRule":["CSSLayerBlockRule"],"CSSLayerStatementRule":["CSSLayerStatementRule"],"CSSMathClamp":[],"CSSMathInvert":["CSSMathInvert"],"CSSMathMax":["CSSMathMax"],"CSSMathMin":["CSSMathMin"],"CSSMathNegate":["CSSMathNegate"],"CSSMathOperator":[],"CSSMathProduct":["CSSMathProduct"],"CSSMathSum":["CSSMathSum"],"CSSMathValue":["CSSMathValue"],"CSSMatrixComponent":["CSSMatrixComponent"],"CSSMatrixComponentOptions":[],"CSSMediaRule":["CSSMediaRule"],"CSSNamespaceRule":["CSSNamespaceRule"],"CSSNestedDeclarations":["CSSNestedDeclarations"],"CSSNumberish":[],"CSSNumericArray":["CSSNumericArray"],"CSSNumericBaseType":[],"CSSNumericType":[],"CSSNumericValue":["CSSNumericValue"],"CSSPageDescriptors":["CSSPageDescriptors"],"CSSPageRule":["CSSPageRule"],"CSSPerspective":["CSSPerspective"],"CSSPerspectiveValue":[],"CSSPositionTryDescriptors":["CSSPositionTryDescriptors"],"CSSPositionTryRule":["CSSPositionTryRule"],"CSSPropertyRule":["CSSPropertyRule"],"CSSRotate":["CSSRotate"],"CSSRule":["CSSRule"],"CSSRuleList":["CSSRuleList"],"CSSScale":["CSSScale"],"CSSScopeRule":["CSSScopeRule"],"CSSSkew":["CSSSkew"],"CSSSkewX":["CSSSkewX"],"CSSSkewY":["CSSSkewY"],"CSSStartingStyleRule":["CSSStartingStyleRule"],"CSSStyleDeclaration":[],"CSSStyleDeclarationBase":["CSSStyleDeclaration"],"CSSStyleProperties":["CSSStyleProperties"],"CSSStyleRule":["CSSStyleRule"],"CSSStyleSheet":["CSSStyleSheet"],"CSSStyleSheetInit":[],"CSSStyleValue":["CSSStyleValue"],"CSSSupportsRule":["CSSSupportsRule"],"CSSTransformComponent":["CSSTransformComponent"],"CSSTransformValue":["CSSTransformValue"],"CSSTransition":["CSSTransition"],"CSSTranslate":["CSSTranslate"],"CSSUnitValue":["CSSUnitValue"],"CSSUnparsedSegment":[],"CSSUnparsedValue":["CSSUnparsedValue"],"CSSVariableReferenceValue":["CSSVariableReferenceValue"],"CSSViewTransitionRule":["CSSViewTransitionRule"],"CurrentUserDetailsOptions":[],"CustomElementConstructor":[],"CustomElementRegistry":["CustomElementRegistry"],"customElements":[],"CustomEvent":["CustomEvent"],"CustomEventInit":[],"CustomStateSet":["CustomStateSet"],"DataTransfer":["DataTransfer"],"DataTransferItem":["DataTransferItem"],"DataTransferItemList":["DataTransferItemList"],"DataView":[],"DataViewConstructor":[],"Date":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date"],"DateConstructor":[],"DecodeErrorCallback":[],"DecodeSuccessCallback":[],"decodeURI":[],"decodeURIComponent":[],"DecompressionStream":["DecompressionStream"],"DecoratorContext":[],"DecoratorMetadata":[],"DecoratorMetadataObject":[],"DedicatedWorkerGlobalScope":["DedicatedWorkerGlobalScope"],"DedicatedWorkerGlobalScopeEventMap":[],"DelayNode":["DelayNode"],"DelayOptions":[],"DeviceMotionEvent":["DeviceMotionEvent"],"DeviceMotionEventAcceleration":["DeviceMotionEventAcceleration"],"DeviceMotionEventAccelerationInit":[],"DeviceMotionEventInit":[],"DeviceMotionEventRotationRate":["DeviceMotionEventRotationRate"],"DeviceMotionEventRotationRateInit":[],"DeviceOrientationEvent":["DeviceOrientationEvent"],"DeviceOrientationEventInit":[],"devicePixelRatio":[],"DigitalCredential":[],"DirectionSetting":[],"dispatchEvent":["EventTarget/dispatchEvent"],"DisplayCaptureSurfaceType":[],"DisplayMediaStreamOptions":[],"Disposable":[],"DisposableStack":[],"DisposableStackConstructor":[],"DistanceModelType":[],"document":[],"Document":["Document"],"DocumentEventMap":[],"DocumentFragment":["DocumentFragment"],"DocumentOrShadowRoot":["activeElement"],"DocumentReadyState":[],"DocumentTimeline":["DocumentTimeline"],"DocumentTimelineOptions":[],"DocumentType":["DocumentType"],"DocumentVisibilityState":[],"DOMException":["DOMException"],"DOMHighResTimeStamp":[],"DOMImplementation":["DOMImplementation"],"DOMMatrix":["DOMMatrix"],"DOMMatrix2DInit":[],"DOMMatrixInit":[],"DOMMatrixReadOnly":["DOMMatrixReadOnly"],"DOMParser":["DOMParser"],"DOMParserSupportedType":[],"DOMPoint":["DOMPoint"],"DOMPointInit":[],"DOMPointReadOnly":["DOMPointReadOnly"],"DOMQuad":["DOMQuad"],"DOMQuadInit":[],"DOMRect":["DOMRect"],"DOMRectInit":[],"DOMRectList":["DOMRectList"],"DOMRectReadOnly":["DOMRectReadOnly"],"DOMStringList":["DOMStringList"],"DOMStringMap":["DOMStringMap"],"DOMTokenList":["DOMTokenList"],"DoubleRange":[],"DragEvent":["DragEvent"],"DragEventInit":[],"DynamicsCompressorNode":["DynamicsCompressorNode"],"DynamicsCompressorOptions":[],"EcdhKeyDeriveParams":[],"EcdsaParams":[],"EcKeyAlgorithm":[],"EcKeyGenParams":[],"EcKeyImportParams":[],"EffectTiming":[],"Element":["Element"],"ElementContentEditable":["contentEditable"],"ElementCreationOptions":[],"ElementCSSInlineStyle":["attributeStyleMap"],"ElementDefinitionOptions":[],"ElementEventMap":[],"ElementInternals":["ElementInternals"],"ElementTagNameMap":[],"EncodedAudioChunk":["EncodedAudioChunk"],"EncodedAudioChunkInit":[],"EncodedAudioChunkMetadata":[],"EncodedAudioChunkOutputCallback":[],"EncodedAudioChunkType":[],"EncodedVideoChunk":["EncodedVideoChunk"],"EncodedVideoChunkInit":[],"EncodedVideoChunkMetadata":[],"EncodedVideoChunkOutputCallback":[],"EncodedVideoChunkType":[],"encodeURI":[],"encodeURIComponent":[],"EndingType":[],"EndOfStreamError":[],"Enumerator":[],"EnumeratorConstructor":[],"EpochTimeStamp":[],"Error":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error"],"ErrorCallback":[],"ErrorConstructor":[],"ErrorEvent":["ErrorEvent"],"ErrorEventInit":[],"ErrorOptions":[],"escape":[],"eval":[],"EvalError":[],"EvalErrorConstructor":[],"event":[],"Event":["Event"],"EventCounts":["EventCounts"],"EventInit":[],"EventListener":[],"EventListenerObject":[],"EventListenerOptions":[],"EventListenerOrEventListenerObject":[],"EventModifierInit":[],"EventSource":["EventSource"],"EventSourceEventMap":[],"EventSourceInit":[],"EventTarget":["EventTarget"],"Exclude":["https://www.typescriptlang.org/docs/handbook/utility-types.html#excludeuniontype-excludedmembers"],"EXT_blend_minmax":["EXT_blend_minmax"],"EXT_color_buffer_float":["EXT_color_buffer_float"],"EXT_color_buffer_half_float":["EXT_color_buffer_half_float"],"EXT_float_blend":["EXT_float_blend"],"EXT_frag_depth":["EXT_frag_depth"],"EXT_shader_texture_lod":["EXT_shader_texture_lod"],"EXT_sRGB":["EXT_sRGB"],"EXT_texture_compression_bptc":["EXT_texture_compression_bptc"],"EXT_texture_compression_rgtc":["EXT_texture_compression_rgtc"],"EXT_texture_filter_anisotropic":["EXT_texture_filter_anisotropic"],"EXT_texture_norm16":["EXT_texture_norm16"],"ExtendableCookieChangeEvent":["ExtendableCookieChangeEvent"],"ExtendableCookieChangeEventInit":[],"ExtendableEvent":["ExtendableEvent"],"ExtendableEventInit":[],"ExtendableMessageEvent":["ExtendableMessageEvent"],"ExtendableMessageEventInit":[],"external":[],"External":[],"Extract":["https://www.typescriptlang.org/docs/handbook/utility-types.html#extracttype-union"],"fetch":["Window/fetch"],"FetchEvent":["FetchEvent"],"FetchEventInit":[],"File":["File"],"FileCallback":[],"FileList":["FileList"],"FilePropertyBag":[],"FileReader":["FileReader"],"FileReaderEventMap":[],"FileReaderSync":["FileReaderSync"],"FileSystem":["FileSystem"],"FileSystemCreateWritableOptions":[],"FileSystemDirectoryEntry":["FileSystemDirectoryEntry"],"FileSystemDirectoryHandle":["FileSystemDirectoryHandle"],"FileSystemDirectoryHandleAsyncIterator":[],"FileSystemDirectoryReader":["FileSystemDirectoryReader"],"FileSystemEntriesCallback":[],"FileSystemEntry":["FileSystemEntry"],"FileSystemEntryCallback":[],"FileSystemFileEntry":["FileSystemFileEntry"],"FileSystemFileHandle":["FileSystemFileHandle"],"FileSystemFlags":[],"FileSystemGetDirectoryOptions":[],"FileSystemGetFileOptions":[],"FileSystemHandle":["FileSystemHandle"],"FileSystemHandleKind":[],"FileSystemReadWriteOptions":[],"FileSystemRemoveOptions":[],"FileSystemSyncAccessHandle":["FileSystemSyncAccessHandle"],"FileSystemWritableFileStream":["FileSystemWritableFileStream"],"FileSystemWriteChunkType":[],"FillLightMode":[],"FillMode":[],"FinalizationRegistry":[],"FinalizationRegistryConstructor":[],"FlatArray":[],"Float16Array":[],"Float16ArrayConstructor":[],"Float32Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Float32Array"],"Float32ArrayConstructor":[],"Float32List":[],"Float64Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Float64Array"],"Float64ArrayConstructor":[],"focus":["Window/focus"],"FocusEvent":["FocusEvent"],"FocusEventInit":[],"FocusOptions":[],"FontDisplay":[],"FontFace":["FontFace"],"FontFaceDescriptors":[],"FontFaceLoadStatus":[],"FontFaceSet":["FontFaceSet"],"FontFaceSetEventMap":[],"FontFaceSetLoadEvent":["FontFaceSetLoadEvent"],"FontFaceSetLoadEventInit":[],"FontFaceSetLoadStatus":[],"FontFaceSource":["fonts"],"fonts":[],"FormData":["FormData"],"FormDataEntryValue":[],"FormDataEvent":["FormDataEvent"],"FormDataEventInit":[],"FormDataIterator":[],"FragmentDirective":["FragmentDirective"],"frameElement":[],"FrameRequestCallback":[],"frames":[],"FrameType":[],"FullscreenNavigationUI":[],"FullscreenOptions":[],"Function":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Function"],"FunctionConstructor":[],"FunctionStringCallback":[],"GainNode":["GainNode"],"GainOptions":[],"Gamepad":["Gamepad"],"GamepadButton":["GamepadButton"],"GamepadEffectParameters":[],"GamepadEvent":["GamepadEvent"],"GamepadEventInit":[],"GamepadHapticActuator":["GamepadHapticActuator"],"GamepadHapticEffectType":[],"GamepadHapticsResult":[],"GamepadMappingType":[],"Generator":[],"GeneratorFunction":[],"GeneratorFunctionConstructor":[],"GenericTransformStream":["readable"],"Geolocation":["Geolocation"],"GeolocationCoordinates":["GeolocationCoordinates"],"GeolocationPosition":["GeolocationPosition"],"GeolocationPositionError":["GeolocationPositionError"],"GetAnimationsOptions":[],"GetComposedRangesOptions":[],"getComputedStyle":["Window/getComputedStyle"],"GetHTMLOptions":[],"GetNotificationOptions":[],"GetRootNodeOptions":[],"getSelection":["Window/getSelection"],"GLbitfield":[],"GLboolean":[],"GLclampf":[],"GLenum":[],"GLfloat":[],"GLint":[],"GLint64":[],"GLintptr":[],"global":[],"GlobalCompositeOperation":[],"GlobalEventHandlers":["abort_event"],"GlobalEventHandlersEventMap":[],"GLsizei":[],"GLsizeiptr":[],"GLuint":[],"GLuint64":[],"GPU":["GPU"],"GPUAdapter":["GPUAdapter"],"GPUAdapterInfo":["GPUAdapterInfo"],"GPUAddressMode":[],"GPUAutoLayoutMode":[],"GPUBindGroup":["GPUBindGroup"],"GPUBindGroupDescriptor":[],"GPUBindGroupEntry":[],"GPUBindGroupLayout":["GPUBindGroupLayout"],"GPUBindGroupLayoutDescriptor":[],"GPUBindGroupLayoutEntry":[],"GPUBindingCommandsMixin":["setBindGroup"],"GPUBindingResource":[],"GPUBlendComponent":[],"GPUBlendFactor":[],"GPUBlendOperation":[],"GPUBlendState":[],"GPUBuffer":["GPUBuffer"],"GPUBufferBinding":[],"GPUBufferBindingLayout":[],"GPUBufferBindingType":[],"GPUBufferDescriptor":[],"GPUBufferDynamicOffset":[],"GPUBufferMapState":[],"GPUBufferUsageFlags":[],"GPUCanvasAlphaMode":[],"GPUCanvasConfiguration":[],"GPUCanvasContext":["GPUCanvasContext"],"GPUCanvasToneMapping":[],"GPUCanvasToneMappingMode":[],"GPUColor":[],"GPUColorDict":[],"GPUColorTargetState":[],"GPUColorWriteFlags":[],"GPUCommandBuffer":["GPUCommandBuffer"],"GPUCommandBufferDescriptor":[],"GPUCommandEncoder":["GPUCommandEncoder"],"GPUCommandEncoderDescriptor":[],"GPUCompareFunction":[],"GPUCompilationInfo":["GPUCompilationInfo"],"GPUCompilationMessage":["GPUCompilationMessage"],"GPUCompilationMessageType":[],"GPUComputePassDescriptor":[],"GPUComputePassEncoder":["GPUComputePassEncoder"],"GPUComputePassTimestampWrites":[],"GPUComputePipeline":["GPUComputePipeline"],"GPUComputePipelineDescriptor":[],"GPUCopyExternalImageDestInfo":[],"GPUCopyExternalImageSource":[],"GPUCopyExternalImageSourceInfo":[],"GPUCullMode":[],"GPUDebugCommandsMixin":["insertDebugMarker"],"GPUDepthBias":[],"GPUDepthStencilState":[],"GPUDevice":["GPUDevice"],"GPUDeviceDescriptor":[],"GPUDeviceEventMap":[],"GPUDeviceLostInfo":["GPUDeviceLostInfo"],"GPUDeviceLostReason":[],"GPUError":["GPUError"],"GPUErrorFilter":[],"GPUExtent3D":[],"GPUExtent3DDict":[],"GPUExternalTexture":["GPUExternalTexture"],"GPUExternalTextureBindingLayout":[],"GPUExternalTextureDescriptor":[],"GPUFeatureName":[],"GPUFilterMode":[],"GPUFlagsConstant":[],"GPUFragmentState":[],"GPUFrontFace":[],"GPUIndex32":[],"GPUIndexFormat":[],"GPUIntegerCoordinate":[],"GPUIntegerCoordinateOut":[],"GPUInternalError":["GPUInternalError"],"GPULoadOp":[],"GPUMapModeFlags":[],"GPUMipmapFilterMode":[],"GPUMultisampleState":[],"GPUObjectBase":["label"],"GPUObjectDescriptorBase":[],"GPUOrigin2D":[],"GPUOrigin2DDict":[],"GPUOrigin3D":[],"GPUOrigin3DDict":[],"GPUOutOfMemoryError":["GPUOutOfMemoryError"],"GPUPipelineBase":["getBindGroupLayout"],"GPUPipelineConstantValue":[],"GPUPipelineDescriptorBase":[],"GPUPipelineError":["GPUPipelineError"],"GPUPipelineErrorInit":[],"GPUPipelineErrorReason":[],"GPUPipelineLayout":["GPUPipelineLayout"],"GPUPipelineLayoutDescriptor":[],"GPUPowerPreference":[],"GPUPrimitiveState":[],"GPUPrimitiveTopology":[],"GPUProgrammableStage":[],"GPUQuerySet":["GPUQuerySet"],"GPUQuerySetDescriptor":[],"GPUQueryType":[],"GPUQueue":["GPUQueue"],"GPUQueueDescriptor":[],"GPURenderBundle":["GPURenderBundle"],"GPURenderBundleDescriptor":[],"GPURenderBundleEncoder":["GPURenderBundleEncoder"],"GPURenderBundleEncoderDescriptor":[],"GPURenderCommandsMixin":["draw"],"GPURenderPassColorAttachment":[],"GPURenderPassDepthStencilAttachment":[],"GPURenderPassDescriptor":[],"GPURenderPassEncoder":["GPURenderPassEncoder"],"GPURenderPassLayout":[],"GPURenderPassTimestampWrites":[],"GPURenderPipeline":["GPURenderPipeline"],"GPURenderPipelineDescriptor":[],"GPURequestAdapterOptions":[],"GPUSampleMask":[],"GPUSampler":["GPUSampler"],"GPUSamplerBindingLayout":[],"GPUSamplerBindingType":[],"GPUSamplerDescriptor":[],"GPUShaderModule":["GPUShaderModule"],"GPUShaderModuleDescriptor":[],"GPUShaderStageFlags":[],"GPUSignedOffset32":[],"GPUSize32":[],"GPUSize32Out":[],"GPUSize64":[],"GPUSize64Out":[],"GPUStencilFaceState":[],"GPUStencilOperation":[],"GPUStencilValue":[],"GPUStorageTextureAccess":[],"GPUStorageTextureBindingLayout":[],"GPUStoreOp":[],"GPUSupportedFeatures":["GPUSupportedFeatures"],"GPUSupportedLimits":["GPUSupportedLimits"],"GPUTexelCopyBufferInfo":[],"GPUTexelCopyBufferLayout":[],"GPUTexelCopyTextureInfo":[],"GPUTexture":["GPUTexture"],"GPUTextureAspect":[],"GPUTextureBindingLayout":[],"GPUTextureDescriptor":[],"GPUTextureDimension":[],"GPUTextureFormat":[],"GPUTextureSampleType":[],"GPUTextureUsageFlags":[],"GPUTextureView":["GPUTextureView"],"GPUTextureViewDescriptor":[],"GPUTextureViewDimension":[],"GPUUncapturedErrorEvent":["GPUUncapturedErrorEvent"],"GPUUncapturedErrorEventInit":[],"GPUValidationError":["GPUValidationError"],"GPUVertexAttribute":[],"GPUVertexBufferLayout":[],"GPUVertexFormat":[],"GPUVertexState":[],"GPUVertexStepMode":[],"HardwareAcceleration":[],"HashAlgorithmIdentifier":[],"HashChangeEvent":["HashChangeEvent"],"HashChangeEventInit":[],"HdrMetadataType":[],"Headers":["Headers"],"HeadersInit":[],"HeadersIterator":[],"Highlight":["Highlight"],"HighlightRegistry":["HighlightRegistry"],"HighlightType":[],"history":[],"History":["History"],"HkdfParams":[],"HmacImportParams":[],"HmacKeyAlgorithm":[],"HmacKeyGenParams":[],"HTMLAllCollection":["HTMLAllCollection"],"HTMLAnchorElement":["HTMLAnchorElement"],"HTMLAreaElement":["HTMLAreaElement"],"HTMLAudioElement":["HTMLAudioElement"],"HTMLBaseElement":["HTMLBaseElement"],"HTMLBodyElement":["HTMLBodyElement"],"HTMLBodyElementEventMap":[],"HTMLBRElement":["HTMLBRElement"],"HTMLButtonElement":["HTMLButtonElement"],"HTMLCanvasElement":["HTMLCanvasElement"],"HTMLCollection":["namedItem"],"HTMLCollectionBase":["HTMLCollection"],"HTMLCollectionOf":[],"HTMLDataElement":["HTMLDataElement"],"HTMLDataListElement":["HTMLDataListElement"],"HTMLDetailsElement":["HTMLDetailsElement"],"HTMLDialogElement":["HTMLDialogElement"],"HTMLDirectoryElement":[],"HTMLDivElement":["HTMLDivElement"],"HTMLDListElement":["HTMLDListElement"],"HTMLDocument":[],"HTMLElement":["HTMLElement"],"HTMLElementDeprecatedTagNameMap":[],"HTMLElementEventMap":[],"HTMLElementTagNameMap":[],"HTMLEmbedElement":["HTMLEmbedElement"],"HTMLFieldSetElement":["HTMLFieldSetElement"],"HTMLFontElement":["HTMLFontElement"],"HTMLFormControlsCollection":["HTMLFormControlsCollection"],"HTMLFormElement":["HTMLFormElement"],"HTMLFrameElement":[],"HTMLFrameSetElement":["HTMLFrameSetElement"],"HTMLFrameSetElementEventMap":[],"HTMLHeadElement":["HTMLHeadElement"],"HTMLHeadingElement":["HTMLHeadingElement"],"HTMLHRElement":["HTMLHRElement"],"HTMLHtmlElement":["HTMLHtmlElement"],"HTMLHyperlinkElementUtils":["hash"],"HTMLIFrameElement":["HTMLIFrameElement"],"HTMLImageElement":["HTMLImageElement"],"HTMLInputElement":["HTMLInputElement"],"HTMLLabelElement":["HTMLLabelElement"],"HTMLLegendElement":["HTMLLegendElement"],"HTMLLIElement":["HTMLLIElement"],"HTMLLinkElement":["HTMLLinkElement"],"HTMLMapElement":["HTMLMapElement"],"HTMLMarqueeElement":["HTMLMarqueeElement"],"HTMLMediaElement":["HTMLMediaElement"],"HTMLMediaElementEventMap":[],"HTMLMenuElement":["HTMLMenuElement"],"HTMLMetaElement":["HTMLMetaElement"],"HTMLMeterElement":["HTMLMeterElement"],"HTMLModElement":["HTMLModElement"],"HTMLObjectElement":["HTMLObjectElement"],"HTMLOListElement":["HTMLOListElement"],"HTMLOptGroupElement":["HTMLOptGroupElement"],"HTMLOptionElement":["HTMLOptionElement"],"HTMLOptionsCollection":["HTMLOptionsCollection"],"HTMLOrSVGElement":["autofocus"],"HTMLOrSVGImageElement":[],"HTMLOrSVGScriptElement":[],"HTMLOutputElement":["HTMLOutputElement"],"HTMLParagraphElement":["HTMLParagraphElement"],"HTMLParamElement":["HTMLParamElement"],"HTMLPictureElement":["HTMLPictureElement"],"HTMLPreElement":["HTMLPreElement"],"HTMLProgressElement":["HTMLProgressElement"],"HTMLQuoteElement":["HTMLQuoteElement"],"HTMLScriptElement":["HTMLScriptElement"],"HTMLSelectElement":["HTMLSelectElement"],"HTMLSlotElement":["HTMLSlotElement"],"HTMLSourceElement":["HTMLSourceElement"],"HTMLSpanElement":["HTMLSpanElement"],"HTMLStyleElement":["HTMLStyleElement"],"HTMLTableCaptionElement":["HTMLTableCaptionElement"],"HTMLTableCellElement":["HTMLTableCellElement"],"HTMLTableColElement":["HTMLTableColElement"],"HTMLTableDataCellElement":[],"HTMLTableElement":["HTMLTableElement"],"HTMLTableHeaderCellElement":[],"HTMLTableRowElement":["HTMLTableRowElement"],"HTMLTableSectionElement":["HTMLTableSectionElement"],"HTMLTemplateElement":["HTMLTemplateElement"],"HTMLTextAreaElement":["HTMLTextAreaElement"],"HTMLTimeElement":["HTMLTimeElement"],"HTMLTitleElement":["HTMLTitleElement"],"HTMLTrackElement":["HTMLTrackElement"],"HTMLUListElement":["HTMLUListElement"],"HTMLUnknownElement":["HTMLUnknownElement"],"HTMLVideoElement":["HTMLVideoElement"],"HTMLVideoElementEventMap":[],"IArguments":[],"IDBCursor":["IDBCursor"],"IDBCursorDirection":[],"IDBCursorWithValue":["IDBCursorWithValue"],"IDBDatabase":["IDBDatabase"],"IDBDatabaseEventMap":[],"IDBDatabaseInfo":[],"IDBFactory":["IDBFactory"],"IDBIndex":["IDBIndex"],"IDBIndexParameters":[],"IDBKeyRange":["IDBKeyRange"],"IDBObjectStore":["IDBObjectStore"],"IDBObjectStoreParameters":[],"IDBOpenDBRequest":["IDBOpenDBRequest"],"IDBOpenDBRequestEventMap":[],"IDBRequest":["IDBRequest"],"IDBRequestEventMap":[],"IDBRequestReadyState":[],"IDBTransaction":["IDBTransaction"],"IDBTransactionDurability":[],"IDBTransactionEventMap":[],"IDBTransactionMode":[],"IDBTransactionOptions":[],"IDBValidKey":[],"IDBVersionChangeEvent":["IDBVersionChangeEvent"],"IDBVersionChangeEventInit":[],"IdleDeadline":["IdleDeadline"],"IdleRequestCallback":[],"IdleRequestOptions":[],"IIRFilterNode":["IIRFilterNode"],"IIRFilterOptions":[],"Image":[],"ImageBitmap":["ImageBitmap"],"ImageBitmapOptions":[],"ImageBitmapRenderingContext":["ImageBitmapRenderingContext"],"ImageBitmapRenderingContextSettings":[],"ImageBitmapSource":[],"ImageBufferSource":[],"ImageCapture":["ImageCapture"],"ImageData":["ImageData"],"ImageDataArray":[],"ImageDataPixelFormat":[],"ImageDataSettings":[],"ImageDecodeOptions":[],"ImageDecoder":["ImageDecoder"],"ImageDecodeResult":[],"ImageDecoderInit":[],"ImageEncodeOptions":[],"ImageOrientation":[],"ImageSmoothingQuality":[],"ImageTrack":["ImageTrack"],"ImageTrackList":["ImageTrackList"],"ImportAssertions":[],"ImportAttributes":[],"ImportCallOptions":[],"ImportMeta":[],"ImportNodeOptions":[],"importScripts":["WorkerGlobalScope/importScripts"],"indexedDB":[],"Infinity":[],"innerHeight":[],"innerWidth":[],"InputDeviceInfo":["InputDeviceInfo"],"InputEvent":["InputEvent"],"InputEventInit":[],"InsertPosition":[],"InstanceType":["https://www.typescriptlang.org/docs/handbook/utility-types.html#instancetypetype"],"Int16Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Int16Array"],"Int16ArrayConstructor":[],"Int32Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Int32Array"],"Int32ArrayConstructor":[],"Int32List":[],"Int8Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Int8Array"],"Int8ArrayConstructor":[],"IntersectionObserver":["IntersectionObserver"],"IntersectionObserverCallback":[],"IntersectionObserverEntry":["IntersectionObserverEntry"],"IntersectionObserverInit":[],"Intl":[null,{"Collator":[],"CollatorConstructor":[],"CollatorOptions":[],"DateTimeFormat":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat"],"DateTimeFormatConstructor":[],"DateTimeFormatOptions":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat"],"DateTimeFormatPart":[],"DateTimeFormatPartTypes":[],"DateTimeFormatPartTypesRegistry":[],"DateTimeRangeFormatPart":[],"DisplayNames":[],"DisplayNamesFallback":[],"DisplayNamesLanguageDisplay":[],"DisplayNamesOptions":[],"DisplayNamesType":[],"DurationFormat":[],"DurationFormatDisplayOption":[],"DurationFormatLocaleMatcher":[],"DurationFormatOptions":[],"DurationFormatPart":[],"DurationFormatStyle":[],"DurationFormatUnit":[],"DurationFormatUnitSingular":[],"FormattableTemporalObject":[],"getCanonicalLocales":[],"LDMLPluralRule":[],"ListFormat":[],"ListFormatLocaleMatcher":[],"ListFormatOptions":[],"ListFormatStyle":[],"ListFormatType":[],"Locale":["getCalendars"],"LocaleCollationCaseFirst":[],"LocaleHourCycleKey":[],"LocaleOptions":[],"LocalesArgument":[],"NumberFormat":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat"],"NumberFormatConstructor":[],"NumberFormatOptions":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat"],"NumberFormatOptionsCurrencyDisplay":[],"NumberFormatOptionsCurrencyDisplayRegistry":[],"NumberFormatOptionsSignDisplay":[],"NumberFormatOptionsSignDisplayRegistry":[],"NumberFormatOptionsStyle":[],"NumberFormatOptionsStyleRegistry":[],"NumberFormatOptionsUseGrouping":[],"NumberFormatOptionsUseGroupingRegistry":[],"NumberFormatPart":[],"NumberFormatPartTypeRegistry":[],"NumberFormatPartTypes":[],"NumberFormatRangePartTypeRegistry":[],"NumberFormatRangePartTypes":[],"NumberRangeFormatPart":[],"PluralRules":[],"PluralRulesConstructor":[],"PluralRulesOptions":[],"PluralRuleType":[],"RelativeTimeFormat":[],"RelativeTimeFormatLocaleMatcher":[],"RelativeTimeFormatNumeric":[],"RelativeTimeFormatOptions":[],"RelativeTimeFormatPart":[],"RelativeTimeFormatStyle":[],"RelativeTimeFormatUnit":[],"RelativeTimeFormatUnitSingular":[],"ResolvedCollatorOptions":[],"ResolvedDateTimeFormatOptions":[],"ResolvedDisplayNamesOptions":[],"ResolvedDurationFormatOptions":[],"ResolvedListFormatOptions":[],"ResolvedNumberFormatOptions":[],"ResolvedNumberFormatOptionsUseGrouping":[],"ResolvedPluralRulesOptions":[],"ResolvedRelativeTimeFormatOptions":[],"ResolvedSegmenterOptions":[],"SegmentData":[],"Segmenter":[],"SegmenterOptions":[],"SegmentIterator":[],"Segments":[],"StringNumericLiteral":[],"supportedValuesOf":[],"TextInfo":["https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo#return_value"],"UnicodeBCP47LocaleIdentifier":[],"WeekInfo":["https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo#return_value"]}],"isFinite":[],"isNaN":[],"isSecureContext":[],"Iterable":[],"IterableIterator":[],"IterationCompositeOperation":[],"Iterator":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Iterator"],"IteratorConstructor":[],"IteratorObject":[],"IteratorObjectConstructor":[],"IteratorResult":[],"IteratorReturnResult":[],"IteratorYieldResult":[],"ITextWriter":[],"JSON":[],"JsonWebKey":[],"KeyAlgorithm":[],"KeyboardEvent":["KeyboardEvent"],"KeyboardEventInit":[],"KeyFormat":[],"Keyframe":[],"KeyframeAnimationOptions":[],"KeyframeEffect":["KeyframeEffect"],"KeyframeEffectOptions":[],"KeySystemTrackConfiguration":[],"KeyType":[],"KeyUsage":[],"KHR_parallel_shader_compile":["KHR_parallel_shader_compile"],"LargestContentfulPaint":["LargestContentfulPaint"],"LatencyMode":[],"length":[],"LineAlignSetting":[],"LineAndPositionSetting":[],"LinkStyle":["sheet"],"localStorage":[],"location":[],"Location":["Location"],"locationbar":[],"Lock":["Lock"],"LockGrantedCallback":[],"LockInfo":[],"LockManager":["LockManager"],"LockManagerSnapshot":[],"LockMode":[],"LockOptions":[],"LoginStatus":[],"Lowercase":["https://www.typescriptlang.org/docs/handbook/utility-types.html#intrinsic-string-manipulation-types"],"Map":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map"],"MapConstructor":[],"MapIterator":[],"matchMedia":["Window/matchMedia"],"Math":[],"MathMLElement":["MathMLElement"],"MathMLElementEventMap":[],"MathMLElementTagNameMap":[],"MediaCapabilities":["MediaCapabilities"],"MediaCapabilitiesDecodingInfo":[],"MediaCapabilitiesEncodingInfo":[],"MediaCapabilitiesInfo":[],"MediaCapabilitiesKeySystemConfiguration":[],"MediaConfiguration":[],"MediaDecodingConfiguration":[],"MediaDecodingType":[],"MediaDeviceInfo":["MediaDeviceInfo"],"MediaDeviceKind":[],"MediaDevices":["MediaDevices"],"MediaDevicesEventMap":[],"MediaElementAudioSourceNode":["MediaElementAudioSourceNode"],"MediaElementAudioSourceOptions":[],"MediaEncodingConfiguration":[],"MediaEncodingType":[],"MediaEncryptedEvent":["MediaEncryptedEvent"],"MediaEncryptedEventInit":[],"MediaError":["MediaError"],"MediaImage":[],"MediaKeyMessageEvent":["MediaKeyMessageEvent"],"MediaKeyMessageEventInit":[],"MediaKeyMessageType":[],"MediaKeys":["MediaKeys"],"MediaKeySession":["MediaKeySession"],"MediaKeySessionClosedReason":[],"MediaKeySessionEventMap":[],"MediaKeySessionType":[],"MediaKeysPolicy":[],"MediaKeysRequirement":[],"MediaKeyStatus":[],"MediaKeyStatusMap":["MediaKeyStatusMap"],"MediaKeyStatusMapIterator":[],"MediaKeySystemAccess":["MediaKeySystemAccess"],"MediaKeySystemConfiguration":[],"MediaKeySystemMediaCapability":[],"MediaList":["MediaList"],"MediaMetadata":["MediaMetadata"],"MediaMetadataInit":[],"MediaPositionState":[],"MediaProvider":[],"MediaQueryList":["MediaQueryList"],"MediaQueryListEvent":["MediaQueryListEvent"],"MediaQueryListEventInit":[],"MediaQueryListEventMap":[],"MediaRecorder":["MediaRecorder"],"MediaRecorderEventMap":[],"MediaRecorderOptions":[],"MediaSession":["MediaSession"],"MediaSessionAction":[],"MediaSessionActionDetails":[],"MediaSessionActionHandler":[],"MediaSessionPlaybackState":[],"MediaSettingsRange":[],"MediaSource":["MediaSource"],"MediaSourceEventMap":[],"MediaSourceHandle":["MediaSourceHandle"],"MediaStream":["MediaStream"],"MediaStreamAudioDestinationNode":["MediaStreamAudioDestinationNode"],"MediaStreamAudioSourceNode":["MediaStreamAudioSourceNode"],"MediaStreamAudioSourceOptions":[],"MediaStreamConstraints":[],"MediaStreamEventMap":[],"MediaStreamTrack":["MediaStreamTrack"],"MediaStreamTrackEvent":["MediaStreamTrackEvent"],"MediaStreamTrackEventInit":[],"MediaStreamTrackEventMap":[],"MediaStreamTrackProcessor":["MediaStreamTrackProcessor"],"MediaStreamTrackProcessorInit":[],"MediaStreamTrackState":[],"MediaTrackCapabilities":[],"MediaTrackConstraints":[],"MediaTrackConstraintSet":[],"MediaTrackSettings":[],"MediaTrackSupportedConstraints":[],"menubar":[],"MessageChannel":["MessageChannel"],"MessageEvent":["MessageEvent"],"MessageEventInit":[],"MessageEventSource":[],"MessageEventTarget":["message_event"],"MessageEventTargetEventMap":[],"MessagePort":["MessagePort"],"MessagePortEventMap":[],"MethodDecorator":[],"MIDIAccess":["MIDIAccess"],"MIDIAccessEventMap":[],"MIDIConnectionEvent":["MIDIConnectionEvent"],"MIDIConnectionEventInit":[],"MIDIInput":["MIDIInput"],"MIDIInputEventMap":[],"MIDIInputMap":["MIDIInputMap"],"MIDIMessageEvent":["MIDIMessageEvent"],"MIDIMessageEventInit":[],"MIDIOptions":[],"MIDIOutput":["MIDIOutput"],"MIDIOutputMap":["MIDIOutputMap"],"MIDIPort":["MIDIPort"],"MIDIPortConnectionState":[],"MIDIPortDeviceState":[],"MIDIPortEventMap":[],"MIDIPortType":[],"MimeType":["MimeType"],"MimeTypeArray":["MimeTypeArray"],"MouseEvent":["MouseEvent"],"MouseEventInit":[],"moveBy":["Window/moveBy"],"moveTo":["Window/moveTo"],"MultiCacheQueryOptions":[],"MutationCallback":[],"MutationObserver":["MutationObserver"],"MutationObserverInit":[],"MutationRecord":["MutationRecord"],"MutationRecordType":[],"name":[],"NamedCurve":[],"NamedNodeMap":["NamedNodeMap"],"NaN":[],"NavigateEvent":["NavigateEvent"],"NavigateEventInit":[],"navigation":[],"Navigation":["Navigation"],"NavigationActivation":["NavigationActivation"],"NavigationCurrentEntryChangeEvent":["NavigationCurrentEntryChangeEvent"],"NavigationCurrentEntryChangeEventInit":[],"NavigationDestination":["NavigationDestination"],"NavigationEventMap":[],"NavigationFocusReset":[],"NavigationHistoryBehavior":[],"NavigationHistoryEntry":["NavigationHistoryEntry"],"NavigationHistoryEntryEventMap":[],"NavigationInterceptHandler":[],"NavigationInterceptOptions":[],"NavigationNavigateOptions":[],"NavigationOptions":[],"NavigationPrecommitController":["NavigationPrecommitController"],"NavigationPrecommitHandler":[],"NavigationPreloadManager":["NavigationPreloadManager"],"NavigationPreloadState":[],"NavigationReloadOptions":[],"NavigationResult":[],"NavigationScrollBehavior":[],"NavigationTimingType":[],"NavigationTransition":["NavigationTransition"],"NavigationType":[],"NavigationUpdateCurrentEntryOptions":[],"navigator":[],"Navigator":["Navigator"],"NavigatorAutomationInformation":["webdriver"],"NavigatorBadge":["clearAppBadge"],"NavigatorConcurrentHardware":["hardwareConcurrency"],"NavigatorContentUtils":["registerProtocolHandler"],"NavigatorCookies":["cookieEnabled"],"NavigatorGPU":["gpu"],"NavigatorID":["appCodeName"],"NavigatorLanguage":["language"],"NavigatorLocks":["locks"],"NavigatorLogin":["NavigatorLogin"],"NavigatorOnLine":["onLine"],"NavigatorPlugins":["mimeTypes"],"NavigatorStorage":["storage"],"NewableFunction":[],"Node":["Node"],"NodeFilter":[],"NodeIterator":["NodeIterator"],"NodeList":["NodeList"],"NodeListOf":[],"NoInfer":["https://www.typescriptlang.org/docs/handbook/utility-types.html#noinfertype"],"NonDocumentTypeChildNode":["nextElementSibling"],"NonElementParentNode":["getElementById"],"NonNullable":["https://www.typescriptlang.org/docs/handbook/utility-types.html#extracttype-union"],"Notification":["Notification"],"NotificationDirection":[],"NotificationEvent":["NotificationEvent"],"NotificationEventInit":[],"NotificationEventMap":[],"NotificationOptions":[],"NotificationPermission":[],"NotificationPermissionCallback":[],"Number":[],"NumberConstructor":[],"Object":[],"ObjectConstructor":[],"OES_draw_buffers_indexed":["OES_draw_buffers_indexed"],"OES_element_index_uint":["OES_element_index_uint"],"OES_fbo_render_mipmap":["OES_fbo_render_mipmap"],"OES_standard_derivatives":["OES_standard_derivatives"],"OES_texture_float":["OES_texture_float"],"OES_texture_float_linear":["OES_texture_float_linear"],"OES_texture_half_float":["OES_texture_half_float"],"OES_texture_half_float_linear":["OES_texture_half_float_linear"],"OES_vertex_array_object":["OES_vertex_array_object"],"OfflineAudioCompletionEvent":["OfflineAudioCompletionEvent"],"OfflineAudioCompletionEventInit":[],"OfflineAudioContext":["OfflineAudioContext"],"OfflineAudioContextEventMap":[],"OfflineAudioContextOptions":[],"OffscreenCanvas":["OffscreenCanvas"],"OffscreenCanvasEventMap":[],"OffscreenCanvasRenderingContext2D":["OffscreenCanvasRenderingContext2D"],"OffscreenRenderingContext":[],"OffscreenRenderingContextId":[],"Omit":["https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys"],"OmitThisParameter":["https://www.typescriptlang.org/docs/handbook/utility-types.html#omitthisparametertype"],"onabort":[],"onafterprint":[],"onanimationcancel":[],"onanimationend":[],"onanimationiteration":[],"onanimationstart":[],"onauxclick":[],"onbeforeinput":[],"onbeforematch":[],"onbeforeprint":[],"onbeforetoggle":[],"onbeforeunload":[],"OnBeforeUnloadEventHandler":[],"OnBeforeUnloadEventHandlerNonNull":[],"onblur":[],"oncancel":[],"oncanplay":[],"oncanplaythrough":[],"onchange":[],"onclick":[],"onclose":[],"oncommand":[],"oncontextlost":[],"oncontextmenu":[],"oncontextrestored":[],"oncopy":[],"oncuechange":[],"oncut":[],"ondblclick":[],"ondevicemotion":[],"ondeviceorientation":[],"ondeviceorientationabsolute":[],"ondrag":[],"ondragend":[],"ondragenter":[],"ondragleave":[],"ondragover":[],"ondragstart":[],"ondrop":[],"ondurationchange":[],"onemptied":[],"onended":[],"onerror":[],"OnErrorEventHandler":[],"OnErrorEventHandlerNonNull":[],"onfocus":[],"onformdata":[],"ongamepadconnected":[],"ongamepaddisconnected":[],"ongotpointercapture":[],"onhashchange":[],"oninput":[],"oninvalid":[],"onkeydown":[],"onkeypress":[],"onkeyup":[],"onlanguagechange":[],"onload":[],"onloadeddata":[],"onloadedmetadata":[],"onloadstart":[],"onlostpointercapture":[],"onmessage":[],"onmessageerror":[],"onmousedown":[],"onmouseenter":[],"onmouseleave":[],"onmousemove":[],"onmouseout":[],"onmouseover":[],"onmouseup":[],"onoffline":[],"ononline":[],"onorientationchange":[],"onpagehide":[],"onpagereveal":[],"onpageshow":[],"onpageswap":[],"onpaste":[],"onpause":[],"onplay":[],"onplaying":[],"onpointercancel":[],"onpointerdown":[],"onpointerenter":[],"onpointerleave":[],"onpointermove":[],"onpointerout":[],"onpointerover":[],"onpointerrawupdate":[],"onpointerup":[],"onpopstate":[],"onprogress":[],"onratechange":[],"onrejectionhandled":[],"onreset":[],"onresize":[],"onrtctransform":[],"onscroll":[],"onscrollend":[],"onsecuritypolicyviolation":[],"onseeked":[],"onseeking":[],"onselect":[],"onselectionchange":[],"onselectstart":[],"onslotchange":[],"onstalled":[],"onstorage":[],"onsubmit":[],"onsuspend":[],"ontimeupdate":[],"ontoggle":[],"ontouchcancel":[],"ontouchend":[],"ontouchmove":[],"ontouchstart":[],"ontransitioncancel":[],"ontransitionend":[],"ontransitionrun":[],"ontransitionstart":[],"onunhandledrejection":[],"onunload":[],"onvolumechange":[],"onwaiting":[],"onwebkitanimationend":[],"onwebkitanimationiteration":[],"onwebkitanimationstart":[],"onwebkittransitionend":[],"onwheel":[],"open":["Window/open"],"opener":[],"Option":[],"OptionalEffectTiming":[],"OptionalPostfixToken":[],"OptionalPrefixToken":[],"OpusBitstreamFormat":[],"OpusEncoderConfig":[],"orientation":[],"OrientationLockType":[],"OrientationType":[],"origin":[],"originAgentCluster":[],"OscillatorNode":["OscillatorNode"],"OscillatorOptions":[],"OscillatorType":[],"outerHeight":[],"outerWidth":[],"OverconstrainedError":["OverconstrainedError"],"OverSampleType":[],"OVR_multiview2":["OVR_multiview2"],"PageRevealEvent":["PageRevealEvent"],"PageRevealEventInit":[],"PageSwapEvent":["PageSwapEvent"],"PageSwapEventInit":[],"PageTransitionEvent":["PageTransitionEvent"],"PageTransitionEventInit":[],"pageXOffset":[],"pageYOffset":[],"PaintTimingMixin":[],"PannerNode":["PannerNode"],"PannerOptions":[],"PanningModelType":[],"ParameterDecorator":[],"Parameters":["https://www.typescriptlang.org/docs/handbook/utility-types.html#parameterstype"],"parent":[],"ParentNode":["childElementCount"],"parseFloat":[],"parseInt":[],"Partial":["https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype"],"Path2D":["Path2D"],"PayerErrors":[],"PaymentAddress":["ContactAddress"],"PaymentComplete":[],"PaymentCurrencyAmount":[],"PaymentDetailsBase":[],"PaymentDetailsInit":[],"PaymentDetailsModifier":[],"PaymentDetailsUpdate":[],"PaymentItem":[],"PaymentMethodChangeEvent":["PaymentMethodChangeEvent"],"PaymentMethodChangeEventInit":[],"PaymentMethodData":[],"PaymentOptions":[],"PaymentRequest":["PaymentRequest"],"PaymentRequestEventMap":[],"PaymentRequestUpdateEvent":["PaymentRequestUpdateEvent"],"PaymentRequestUpdateEventInit":[],"PaymentResponse":["PaymentResponse"],"PaymentResponseEventMap":[],"PaymentShippingOption":[],"PaymentShippingType":[],"PaymentValidationErrors":[],"Pbkdf2Params":[],"performance":[],"Performance":["Performance"],"PerformanceEntry":["PerformanceEntry"],"PerformanceEntryList":[],"PerformanceEventMap":[],"PerformanceEventTiming":["PerformanceEventTiming"],"PerformanceMark":["PerformanceMark"],"PerformanceMarkOptions":[],"PerformanceMeasure":["PerformanceMeasure"],"PerformanceMeasureOptions":[],"PerformanceNavigation":["PerformanceNavigation"],"PerformanceNavigationTiming":["PerformanceNavigationTiming"],"PerformanceObserver":["PerformanceObserver"],"PerformanceObserverCallback":[],"PerformanceObserverEntryList":["PerformanceObserverEntryList"],"PerformanceObserverInit":[],"PerformancePaintTiming":["PerformancePaintTiming"],"PerformanceResourceTiming":["PerformanceResourceTiming"],"PerformanceServerTiming":["PerformanceServerTiming"],"PerformanceTiming":["PerformanceTiming"],"PeriodicWave":["PeriodicWave"],"PeriodicWaveConstraints":[],"PeriodicWaveOptions":[],"PermissionDescriptor":[],"PermissionName":[],"Permissions":["Permissions"],"PermissionState":[],"PermissionStatus":["PermissionStatus"],"PermissionStatusEventMap":[],"personalbar":[],"PhotoCapabilities":[],"PhotoSettings":[],"Pick":["https://www.typescriptlang.org/docs/handbook/utility-types.html#picktype-keys"],"PictureInPictureEvent":["PictureInPictureEvent"],"PictureInPictureEventInit":[],"PictureInPictureWindow":["PictureInPictureWindow"],"PictureInPictureWindowEventMap":[],"PlaneLayout":[],"PlaybackDirection":[],"Plugin":["Plugin"],"PluginArray":["PluginArray"],"PointerEvent":["PointerEvent"],"PointerEventInit":[],"PointerLockOptions":[],"PopoverTargetAttributes":["popoverTargetAction"],"PopStateEvent":["PopStateEvent"],"PopStateEventInit":[],"PositionAlignSetting":[],"PositionCallback":[],"PositionErrorCallback":[],"PositionOptions":[],"postMessage":["DedicatedWorkerGlobalScope/postMessage"],"PredefinedColorSpace":[],"PremultiplyAlpha":[],"PresentationStyle":[],"print":["Window/print"],"ProcessingInstruction":["ProcessingInstruction"],"ProgressEvent":["ProgressEvent"],"ProgressEventInit":[],"Promise":["https://next.gha.afd.arcgis.com/javascript/latest/programming-patterns/"],"PromiseConstructor":[],"PromiseConstructorLike":[],"PromiseFulfilledResult":[],"PromiseLike":[],"PromiseRejectedResult":[],"PromiseRejectionEvent":["PromiseRejectionEvent"],"PromiseRejectionEventInit":[],"PromiseSettledResult":[],"PromiseWithResolvers":[],"prompt":["Window/prompt"],"PropertyDecorator":[],"PropertyDefinition":[],"PropertyDescriptor":[],"PropertyDescriptorMap":[],"PropertyIndexedKeyframes":[],"PropertyKey":[],"Proxy":[],"ProxyConstructor":[],"ProxyHandler":[],"PublicKeyCredential":["PublicKeyCredential"],"PublicKeyCredentialClientCapabilities":[],"PublicKeyCredentialCreationOptions":[],"PublicKeyCredentialCreationOptionsJSON":[],"PublicKeyCredentialDescriptor":[],"PublicKeyCredentialDescriptorJSON":[],"PublicKeyCredentialEntity":[],"PublicKeyCredentialParameters":[],"PublicKeyCredentialRequestOptions":[],"PublicKeyCredentialRequestOptionsJSON":[],"PublicKeyCredentialRpEntity":[],"PublicKeyCredentialType":[],"PublicKeyCredentialUserEntity":[],"PublicKeyCredentialUserEntityJSON":[],"PushEncryptionKeyName":[],"PushEvent":["PushEvent"],"PushEventInit":[],"PushManager":["PushManager"],"PushManagerAttribute":["pushManager"],"PushMessageData":["PushMessageData"],"PushMessageDataInit":[],"PushSubscription":["PushSubscription"],"PushSubscriptionChangeEvent":[],"PushSubscriptionChangeEventInit":[],"PushSubscriptionJSON":[],"PushSubscriptionOptions":["PushSubscriptionOptions"],"PushSubscriptionOptionsInit":[],"queueMicrotask":["Window/queueMicrotask"],"QueuingStrategy":[],"QueuingStrategyInit":[],"QueuingStrategySize":[],"RadioNodeList":["RadioNodeList"],"Range":["Range"],"RangeError":[],"RangeErrorConstructor":[],"ReadableByteStreamController":["ReadableByteStreamController"],"ReadableStream":["ReadableStream"],"ReadableStreamAsyncIterator":[],"ReadableStreamBYOBReader":["ReadableStreamBYOBReader"],"ReadableStreamBYOBReaderReadOptions":[],"ReadableStreamBYOBRequest":["ReadableStreamBYOBRequest"],"ReadableStreamController":[],"ReadableStreamDefaultController":["ReadableStreamDefaultController"],"ReadableStreamDefaultReader":["ReadableStreamDefaultReader"],"ReadableStreamGenericReader":["closed"],"ReadableStreamGetReaderOptions":[],"ReadableStreamIteratorOptions":[],"ReadableStreamReadDoneResult":[],"ReadableStreamReader":[],"ReadableStreamReaderMode":[],"ReadableStreamReadResult":[],"ReadableStreamReadValueResult":[],"ReadableStreamType":[],"ReadableWritablePair":[],"Readonly":["https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype"],"ReadonlyArray":[],"ReadonlyMap":[],"ReadonlySet":[],"ReadonlySetLike":[],"ReadyState":[],"Record":["https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"],"RecordingState":[],"RedEyeReduction":[],"ReferenceError":[],"ReferenceErrorConstructor":[],"ReferrerPolicy":[],"Reflect":[null,{"apply":[],"construct":[],"defineProperty":[],"deleteProperty":[],"get":[],"getOwnPropertyDescriptor":[],"getPrototypeOf":[],"has":[],"isExtensible":[],"ownKeys":[],"preventExtensions":[],"set":[],"setPrototypeOf":[]}],"RegExp":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp"],"RegExpConstructor":[],"RegExpExecArray":[],"RegExpIndicesArray":[],"RegExpMatchArray":[],"RegExpStringIterator":[],"RegistrationOptions":[],"RegistrationResponseJSON":[],"releaseEvents":["Window/releaseEvents"],"RemotePlayback":["RemotePlayback"],"RemotePlaybackAvailabilityCallback":[],"RemotePlaybackEventMap":[],"RemotePlaybackState":[],"removeEventListener":[],"RenderingContext":[],"Report":[],"ReportBody":[],"reportError":["Window/reportError"],"ReportingObserver":["ReportingObserver"],"ReportingObserverCallback":[],"ReportingObserverOptions":[],"ReportList":[],"Request":["Request"],"requestAnimationFrame":["DedicatedWorkerGlobalScope/requestAnimationFrame"],"RequestCache":[],"RequestCredentials":[],"RequestDestination":[],"requestIdleCallback":["Window/requestIdleCallback"],"RequestInfo":[],"RequestInit":[],"RequestMode":[],"RequestPriority":[],"RequestRedirect":[],"Required":["https://www.typescriptlang.org/docs/handbook/utility-types.html#requiredtype"],"ResidentKeyRequirement":[],"resizeBy":["Window/resizeBy"],"ResizeObserver":["ResizeObserver"],"ResizeObserverBoxOptions":[],"ResizeObserverCallback":[],"ResizeObserverEntry":["ResizeObserverEntry"],"ResizeObserverOptions":[],"ResizeObserverSize":["ResizeObserverSize"],"ResizeQuality":[],"resizeTo":["Window/resizeTo"],"Response":["Response"],"ResponseInit":[],"ResponseType":[],"ReturnType":["https://www.typescriptlang.org/docs/handbook/utility-types.html#returntypetype"],"RsaHashedImportParams":[],"RsaHashedKeyAlgorithm":[],"RsaHashedKeyGenParams":[],"RsaKeyAlgorithm":[],"RsaKeyGenParams":[],"RsaOaepParams":[],"RsaOtherPrimesInfo":[],"RsaPssParams":[],"RTCAnswerOptions":[],"RTCBundlePolicy":[],"RTCCertificate":["RTCCertificate"],"RTCCertificateExpiration":[],"RTCConfiguration":[],"RTCDataChannel":["RTCDataChannel"],"RTCDataChannelEvent":["RTCDataChannelEvent"],"RTCDataChannelEventInit":[],"RTCDataChannelEventMap":[],"RTCDataChannelInit":[],"RTCDataChannelState":[],"RTCDegradationPreference":[],"RTCDtlsFingerprint":[],"RTCDtlsRole":[],"RTCDtlsTransport":["RTCDtlsTransport"],"RTCDtlsTransportEventMap":[],"RTCDtlsTransportState":[],"RTCDTMFSender":["RTCDTMFSender"],"RTCDTMFSenderEventMap":[],"RTCDTMFToneChangeEvent":["RTCDTMFToneChangeEvent"],"RTCDTMFToneChangeEventInit":[],"RTCEncodedAudioFrame":["RTCEncodedAudioFrame"],"RTCEncodedAudioFrameMetadata":[],"RTCEncodedFrameMetadata":[],"RTCEncodedVideoFrame":["RTCEncodedVideoFrame"],"RTCEncodedVideoFrameMetadata":[],"RTCError":["RTCError"],"RTCErrorDetailType":[],"RTCErrorEvent":["RTCErrorEvent"],"RTCErrorEventInit":[],"RTCErrorInit":[],"RTCIceCandidate":["RTCIceCandidate"],"RTCIceCandidateInit":[],"RTCIceCandidatePair":[],"RTCIceCandidatePairStats":[],"RTCIceCandidateType":[],"RTCIceComponent":[],"RTCIceConnectionState":[],"RTCIceGathererState":[],"RTCIceGatheringState":[],"RTCIceProtocol":[],"RTCIceRole":[],"RTCIceServer":[],"RTCIceTcpCandidateType":[],"RTCIceTransport":["RTCIceTransport"],"RTCIceTransportEventMap":[],"RTCIceTransportPolicy":[],"RTCIceTransportState":[],"RTCInboundRtpStreamStats":[],"RTCLocalIceCandidateInit":[],"RTCLocalSessionDescriptionInit":[],"RTCOfferAnswerOptions":[],"RTCOfferOptions":[],"RTCOutboundRtpStreamStats":[],"RTCPeerConnection":["RTCPeerConnection"],"RTCPeerConnectionErrorCallback":[],"RTCPeerConnectionEventMap":[],"RTCPeerConnectionIceErrorEvent":["RTCPeerConnectionIceErrorEvent"],"RTCPeerConnectionIceErrorEventInit":[],"RTCPeerConnectionIceEvent":["RTCPeerConnectionIceEvent"],"RTCPeerConnectionIceEventInit":[],"RTCPeerConnectionState":[],"RTCPriorityType":[],"RTCQualityLimitationReason":[],"RTCReceivedRtpStreamStats":[],"RTCRtcpMuxPolicy":[],"RTCRtcpParameters":[],"RTCRtpCapabilities":[],"RTCRtpCodec":[],"RTCRtpCodecParameters":[],"RTCRtpCodingParameters":[],"RTCRtpContributingSource":[],"RTCRtpEncodingParameters":[],"RTCRtpHeaderExtensionCapability":[],"RTCRtpHeaderExtensionParameters":[],"RTCRtpParameters":[],"RTCRtpReceiveParameters":[],"RTCRtpReceiver":["RTCRtpReceiver"],"RTCRtpReceiverTransform":[],"RTCRtpScriptTransform":["RTCRtpScriptTransform"],"RTCRtpScriptTransformer":["RTCRtpScriptTransformer"],"RTCRtpSender":["RTCRtpSender"],"RTCRtpSenderTransform":[],"RTCRtpSendParameters":[],"RTCRtpStreamStats":[],"RTCRtpSynchronizationSource":[],"RTCRtpTransceiver":["RTCRtpTransceiver"],"RTCRtpTransceiverDirection":[],"RTCRtpTransceiverInit":[],"RTCSctpTransport":["RTCSctpTransport"],"RTCSctpTransportEventMap":[],"RTCSctpTransportState":[],"RTCSdpType":[],"RTCSentRtpStreamStats":[],"RTCSessionDescription":["RTCSessionDescription"],"RTCSessionDescriptionCallback":[],"RTCSessionDescriptionInit":[],"RTCSetParameterOptions":[],"RTCSignalingState":[],"RTCStats":[],"RTCStatsIceCandidatePairState":[],"RTCStatsReport":["RTCStatsReport"],"RTCStatsType":[],"RTCTrackEvent":["RTCTrackEvent"],"RTCTrackEventInit":[],"RTCTransformEvent":["RTCTransformEvent"],"RTCTransportStats":[],"SafeArray":[],"Sanitizer":["allowAttribute"],"SanitizerAttribute":[],"SanitizerAttributeNamespace":[],"SanitizerConfig":[],"SanitizerElement":[],"SanitizerElementNamespace":[],"SanitizerElementNamespaceWithAttributes":[],"SanitizerElementWithAttributes":[],"SanitizerPresets":[],"scheduler":[],"Scheduler":["Scheduler"],"SchedulerPostTaskCallback":[],"SchedulerPostTaskOptions":[],"screen":[],"Screen":["Screen"],"screenLeft":[],"ScreenOrientation":["ScreenOrientation"],"ScreenOrientationEventMap":[],"screenTop":[],"screenX":[],"screenY":[],"ScriptProcessorNode":["ScriptProcessorNode"],"ScriptProcessorNodeEventMap":[],"scroll":["Window/scroll"],"ScrollAxis":[],"scrollbars":[],"ScrollBehavior":[],"scrollBy":["Window/scrollBy"],"ScrollIntoViewOptions":[],"ScrollLogicalPosition":[],"ScrollOptions":[],"ScrollRestoration":[],"ScrollSetting":[],"ScrollTimeline":["ScrollTimeline"],"ScrollTimelineOptions":[],"scrollTo":["Window/scrollTo"],"ScrollToOptions":[],"scrollX":[],"scrollY":[],"SecurityPolicyViolationEvent":["SecurityPolicyViolationEvent"],"SecurityPolicyViolationEventDisposition":[],"SecurityPolicyViolationEventInit":[],"Selection":["Selection"],"SelectionDirection":[],"SelectionMode":[],"self":[],"ServiceWorker":["ServiceWorker"],"ServiceWorkerContainer":["ServiceWorkerContainer"],"ServiceWorkerContainerEventMap":[],"ServiceWorkerEventMap":[],"ServiceWorkerGlobalScope":["ServiceWorkerGlobalScope"],"ServiceWorkerGlobalScopeEventMap":[],"ServiceWorkerRegistration":["ServiceWorkerRegistration"],"ServiceWorkerRegistrationEventMap":[],"ServiceWorkerState":[],"ServiceWorkerUpdateViaCache":[],"sessionStorage":[],"Set":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set"],"SetConstructor":[],"setInterval":["Window/setInterval"],"SetIterator":[],"setTimeout":["Window/setTimeout"],"ShadowRoot":["ShadowRoot"],"ShadowRootEventMap":[],"ShadowRootInit":[],"ShadowRootMode":[],"SharedArrayBuffer":[],"SharedArrayBufferConstructor":[],"ShareData":[],"SharedWorker":["SharedWorker"],"SharedWorkerGlobalScope":["SharedWorkerGlobalScope"],"SharedWorkerGlobalScopeEventMap":[],"ShowPopoverOptions":[],"SlotAssignmentMode":[],"Slottable":["assignedSlot"],"SourceBuffer":["SourceBuffer"],"SourceBufferEventMap":[],"SourceBufferList":["SourceBufferList"],"SourceBufferListEventMap":[],"SpeechRecognitionAlternative":["SpeechRecognitionAlternative"],"SpeechRecognitionErrorCode":[],"SpeechRecognitionErrorEvent":["SpeechRecognitionErrorEvent"],"SpeechRecognitionErrorEventInit":[],"SpeechRecognitionEvent":["SpeechRecognitionEvent"],"SpeechRecognitionEventInit":[],"SpeechRecognitionResult":["SpeechRecognitionResult"],"SpeechRecognitionResultList":["SpeechRecognitionResultList"],"speechSynthesis":[],"SpeechSynthesis":["SpeechSynthesis"],"SpeechSynthesisErrorCode":[],"SpeechSynthesisErrorEvent":["SpeechSynthesisErrorEvent"],"SpeechSynthesisErrorEventInit":[],"SpeechSynthesisEvent":["SpeechSynthesisEvent"],"SpeechSynthesisEventInit":[],"SpeechSynthesisEventMap":[],"SpeechSynthesisUtterance":["SpeechSynthesisUtterance"],"SpeechSynthesisUtteranceEventMap":[],"SpeechSynthesisVoice":["SpeechSynthesisVoice"],"StartViewTransitionOptions":[],"StaticRange":["StaticRange"],"StaticRangeInit":[],"status":[],"statusbar":[],"StereoPannerNode":["StereoPannerNode"],"StereoPannerOptions":[],"stop":["Window/stop"],"Storage":["Storage"],"StorageEstimate":[],"StorageEvent":["StorageEvent"],"StorageEventInit":[],"StorageManager":["StorageManager"],"StreamPipeOptions":[],"String":[],"StringConstructor":[],"StringIterator":[],"structuredClone":["Window/structuredClone"],"StructuredSerializeOptions":[],"StylePropertyMap":["StylePropertyMap"],"StylePropertyMapReadOnly":["StylePropertyMapReadOnly"],"StylePropertyMapReadOnlyIterator":[],"StyleSheet":["StyleSheet"],"StyleSheetList":["StyleSheetList"],"SubmitEvent":["SubmitEvent"],"SubmitEventInit":[],"SubtleCrypto":["SubtleCrypto"],"SuppressedError":[],"SuppressedErrorConstructor":[],"SvcOutputMetadata":[],"SVGAElement":["SVGAElement"],"SVGAngle":["SVGAngle"],"SVGAnimatedAngle":["SVGAnimatedAngle"],"SVGAnimatedBoolean":["SVGAnimatedBoolean"],"SVGAnimatedEnumeration":["SVGAnimatedEnumeration"],"SVGAnimatedInteger":["SVGAnimatedInteger"],"SVGAnimatedLength":["SVGAnimatedLength"],"SVGAnimatedLengthList":["SVGAnimatedLengthList"],"SVGAnimatedNumber":["SVGAnimatedNumber"],"SVGAnimatedNumberList":["SVGAnimatedNumberList"],"SVGAnimatedPoints":["animatedPoints"],"SVGAnimatedPreserveAspectRatio":["SVGAnimatedPreserveAspectRatio"],"SVGAnimatedRect":["SVGAnimatedRect"],"SVGAnimatedString":["SVGAnimatedString"],"SVGAnimatedTransformList":["SVGAnimatedTransformList"],"SVGAnimateElement":["SVGAnimateElement"],"SVGAnimateMotionElement":["SVGAnimateMotionElement"],"SVGAnimateTransformElement":["SVGAnimateTransformElement"],"SVGAnimationElement":["SVGAnimationElement"],"SVGBoundingBoxOptions":[],"SVGCircleElement":["SVGCircleElement"],"SVGClipPathElement":["SVGClipPathElement"],"SVGComponentTransferFunctionElement":["SVGComponentTransferFunctionElement"],"SVGDefsElement":["SVGDefsElement"],"SVGDescElement":["SVGDescElement"],"SVGElement":["SVGElement"],"SVGElementEventMap":[],"SVGElementTagNameMap":[],"SVGEllipseElement":["SVGEllipseElement"],"SVGFEBlendElement":["SVGFEBlendElement"],"SVGFEColorMatrixElement":["SVGFEColorMatrixElement"],"SVGFEComponentTransferElement":["SVGFEComponentTransferElement"],"SVGFECompositeElement":["SVGFECompositeElement"],"SVGFEConvolveMatrixElement":["SVGFEConvolveMatrixElement"],"SVGFEDiffuseLightingElement":["SVGFEDiffuseLightingElement"],"SVGFEDisplacementMapElement":["SVGFEDisplacementMapElement"],"SVGFEDistantLightElement":["SVGFEDistantLightElement"],"SVGFEDropShadowElement":["SVGFEDropShadowElement"],"SVGFEFloodElement":["SVGFEFloodElement"],"SVGFEFuncAElement":["SVGFEFuncAElement"],"SVGFEFuncBElement":["SVGFEFuncBElement"],"SVGFEFuncGElement":["SVGFEFuncGElement"],"SVGFEFuncRElement":["SVGFEFuncRElement"],"SVGFEGaussianBlurElement":["SVGFEGaussianBlurElement"],"SVGFEImageElement":["SVGFEImageElement"],"SVGFEMergeElement":["SVGFEMergeElement"],"SVGFEMergeNodeElement":["SVGFEMergeNodeElement"],"SVGFEMorphologyElement":["SVGFEMorphologyElement"],"SVGFEOffsetElement":["SVGFEOffsetElement"],"SVGFEPointLightElement":["SVGFEPointLightElement"],"SVGFESpecularLightingElement":["SVGFESpecularLightingElement"],"SVGFESpotLightElement":["SVGFESpotLightElement"],"SVGFETileElement":["SVGFETileElement"],"SVGFETurbulenceElement":["SVGFETurbulenceElement"],"SVGFilterElement":["SVGFilterElement"],"SVGFilterPrimitiveStandardAttributes":["height"],"SVGFitToViewBox":["preserveAspectRatio"],"SVGForeignObjectElement":["SVGForeignObjectElement"],"SVGGElement":["SVGGElement"],"SVGGeometryElement":["SVGGeometryElement"],"SVGGradientElement":["SVGGradientElement"],"SVGGraphicsElement":["SVGGraphicsElement"],"SVGImageElement":["SVGImageElement"],"SVGLength":["SVGLength"],"SVGLengthList":["SVGLengthList"],"SVGLinearGradientElement":["SVGLinearGradientElement"],"SVGLineElement":["SVGLineElement"],"SVGMarkerElement":["SVGMarkerElement"],"SVGMaskElement":["SVGMaskElement"],"SVGMatrix":[],"SVGMetadataElement":["SVGMetadataElement"],"SVGMPathElement":["SVGMPathElement"],"SVGNumber":["SVGNumber"],"SVGNumberList":["SVGNumberList"],"SVGPathElement":["SVGPathElement"],"SVGPatternElement":["SVGPatternElement"],"SVGPoint":[],"SVGPointList":["SVGPointList"],"SVGPolygonElement":["SVGPolygonElement"],"SVGPolylineElement":["SVGPolylineElement"],"SVGPreserveAspectRatio":["SVGPreserveAspectRatio"],"SVGRadialGradientElement":["SVGRadialGradientElement"],"SVGRect":[],"SVGRectElement":["SVGRectElement"],"SVGScriptElement":["SVGScriptElement"],"SVGSetElement":["SVGSetElement"],"SVGStopElement":["SVGStopElement"],"SVGStringList":["SVGStringList"],"SVGStyleElement":["SVGStyleElement"],"SVGSVGElement":["SVGSVGElement"],"SVGSVGElementEventMap":[],"SVGSwitchElement":["SVGSwitchElement"],"SVGSymbolElement":["SVGSymbolElement"],"SVGTests":["requiredExtensions"],"SVGTextContentElement":["SVGTextContentElement"],"SVGTextElement":["SVGTextElement"],"SVGTextPathElement":["SVGTextPathElement"],"SVGTextPositioningElement":["SVGTextPositioningElement"],"SVGTitleElement":["SVGTitleElement"],"SVGTransform":["SVGTransform"],"SVGTransformList":["SVGTransformList"],"SVGTSpanElement":["SVGTSpanElement"],"SVGUnitTypes":["SVGUnitTypes"],"SVGURIReference":["href"],"SVGUseElement":["SVGUseElement"],"SVGViewElement":["SVGViewElement"],"Symbol":[],"SymbolConstructor":[],"SyntaxError":[],"SyntaxErrorConstructor":[],"TaskController":["TaskController"],"TaskControllerInit":[],"TaskPriority":[],"TaskPriorityChangeEvent":["TaskPriorityChangeEvent"],"TaskPriorityChangeEventInit":[],"TaskSignal":["TaskSignal"],"TaskSignalAnyInit":[],"TaskSignalEventMap":[],"TemplateStringsArray":[],"Temporal":[null,{"CalendarLike":[],"DateLikeObject":[],"DateTimeLikeObject":[],"DateUnit":[],"DisambiguationOptions":[],"Duration":[],"DurationConstructor":[],"DurationLike":[],"DurationLikeObject":[],"DurationRelativeToOptions":[],"DurationRoundingOptions":[],"DurationToStringOptions":[],"DurationTotalOptions":[],"Instant":[],"InstantConstructor":[],"InstantLike":[],"InstantToStringOptions":[],"Now":[null,{"instant":[],"plainDateISO":[],"plainDateTimeISO":[],"plainTimeISO":[],"timeZoneId":[],"zonedDateTimeISO":[]}],"OverflowOptions":[],"PartialTemporalLike":[],"PlainDate":[],"PlainDateConstructor":[],"PlainDateLike":[],"PlainDateTime":[],"PlainDateTimeConstructor":[],"PlainDateTimeLike":[],"PlainDateTimeToStringOptions":[],"PlainDateToStringOptions":[],"PlainDateToZonedDateTimeOptions":[],"PlainMonthDay":[],"PlainMonthDayConstructor":[],"PlainMonthDayLike":[],"PlainMonthDayToPlainDateOptions":[],"PlainTime":[],"PlainTimeConstructor":[],"PlainTimeLike":[],"PlainTimeToStringOptions":[],"PlainYearMonth":[],"PlainYearMonthConstructor":[],"PlainYearMonthLike":[],"PlainYearMonthToPlainDateOptions":[],"PluralizeUnit":[],"RoundingOptions":[],"RoundingOptionsWithLargestUnit":[],"TimeLikeObject":[],"TimeUnit":[],"TimeZoneLike":[],"ToStringRoundingOptions":[],"ToStringRoundingOptionsWithFractionalSeconds":[],"TransitionOptions":[],"YearMonthLikeObject":[],"ZonedDateTime":[],"ZonedDateTimeConstructor":[],"ZonedDateTimeFromOptions":[],"ZonedDateTimeLike":[],"ZonedDateTimeLikeObject":[],"ZonedDateTimeToStringOptions":[]}],"TexImageSource":[],"Text":["Text"],"TextDecodeOptions":[],"TextDecoder":["TextDecoder"],"TextDecoderCommon":["encoding"],"TextDecoderOptions":[],"TextDecoderStream":["TextDecoderStream"],"TextEncoder":["TextEncoder"],"TextEncoderCommon":["encoding"],"TextEncoderEncodeIntoResult":[],"TextEncoderStream":["TextEncoderStream"],"TextEvent":["TextEvent"],"TextMetrics":["TextMetrics"],"TextStreamBase":[],"TextStreamReader":[],"TextStreamWriter":[],"TextTrack":["TextTrack"],"TextTrackCue":["TextTrackCue"],"TextTrackCueEventMap":[],"TextTrackCueList":["TextTrackCueList"],"TextTrackEventMap":[],"TextTrackKind":[],"TextTrackList":["TextTrackList"],"TextTrackListEventMap":[],"TextTrackMode":[],"ThisParameterType":["https://www.typescriptlang.org/docs/handbook/utility-types.html#thisparametertypetype"],"ThisType":["https://www.typescriptlang.org/docs/handbook/utility-types.html#thistypetype"],"TimelineRangeOffset":[],"TimeRanges":["TimeRanges"],"TimerHandler":[],"ToggleEvent":["ToggleEvent"],"ToggleEventInit":[],"TogglePopoverOptions":[],"toolbar":[],"top":[],"Touch":["Touch"],"TouchEvent":["TouchEvent"],"TouchEventInit":[],"TouchInit":[],"TouchList":["TouchList"],"TouchType":[],"TrackEvent":["TrackEvent"],"TrackEventInit":[],"Transferable":[],"TransferFunction":[],"Transformer":[],"TransformerFlushCallback":[],"TransformerStartCallback":[],"TransformerTransformCallback":[],"TransformStream":["TransformStream"],"TransformStreamDefaultController":["TransformStreamDefaultController"],"TransitionEvent":["TransitionEvent"],"TransitionEventInit":[],"TreeWalker":["TreeWalker"],"TypedPropertyDescriptor":[],"TypeError":[],"TypeErrorConstructor":[],"UIEvent":["UIEvent"],"UIEventInit":[],"Uint16Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array"],"Uint16ArrayConstructor":[],"Uint32Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array"],"Uint32ArrayConstructor":[],"Uint32List":[],"Uint8Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"],"Uint8ArrayConstructor":[],"Uint8ClampedArray":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray"],"Uint8ClampedArrayConstructor":[],"ULongRange":[],"Uncapitalize":["https://www.typescriptlang.org/docs/handbook/utility-types.html#intrinsic-string-manipulation-types"],"UnderlyingByteSource":[],"UnderlyingDefaultSource":[],"UnderlyingSink":[],"UnderlyingSinkAbortCallback":[],"UnderlyingSinkCloseCallback":[],"UnderlyingSinkStartCallback":[],"UnderlyingSinkWriteCallback":[],"UnderlyingSource":[],"UnderlyingSourceCancelCallback":[],"UnderlyingSourcePullCallback":[],"UnderlyingSourceStartCallback":[],"unescape":[],"UnknownCredentialOptions":[],"Uppercase":["https://www.typescriptlang.org/docs/handbook/utility-types.html#intrinsic-string-manipulation-types"],"URIError":[],"URIErrorConstructor":[],"URL":["URL"],"URLPattern":["URLPattern"],"URLPatternComponentResult":[],"URLPatternInit":[],"URLPatternInput":[],"URLPatternOptions":[],"URLPatternResult":[],"URLSearchParams":["URLSearchParams"],"URLSearchParamsIterator":[],"UserActivation":["UserActivation"],"UserVerificationRequirement":[],"ValidityState":["ValidityState"],"ValidityStateFlags":[],"VarDate":[],"VBArray":[],"VBArrayConstructor":[],"VibratePattern":[],"VideoColorPrimaries":[],"VideoColorSpace":["VideoColorSpace"],"VideoColorSpaceInit":[],"VideoConfiguration":[],"VideoDecoder":["VideoDecoder"],"VideoDecoderConfig":[],"VideoDecoderEventMap":[],"VideoDecoderInit":[],"VideoDecoderSupport":[],"VideoEncoder":["VideoEncoder"],"VideoEncoderBitrateMode":[],"VideoEncoderConfig":[],"VideoEncoderEncodeOptions":[],"VideoEncoderEncodeOptionsForAvc":[],"VideoEncoderEventMap":[],"VideoEncoderInit":[],"VideoEncoderSupport":[],"VideoFacingModeEnum":[],"VideoFrame":["VideoFrame"],"VideoFrameBufferInit":[],"VideoFrameCallbackMetadata":[],"VideoFrameCopyToOptions":[],"VideoFrameInit":[],"VideoFrameOutputCallback":[],"VideoFrameRequestCallback":[],"VideoMatrixCoefficients":[],"VideoPixelFormat":[],"VideoPlaybackQuality":["VideoPlaybackQuality"],"VideoTransferCharacteristics":[],"ViewTimeline":["ViewTimeline"],"ViewTimelineOptions":[],"ViewTransition":["ViewTransition"],"ViewTransitionTypeSet":["ViewTransitionTypeSet"],"ViewTransitionUpdateCallback":[],"visualViewport":[],"VisualViewport":["VisualViewport"],"VisualViewportEventMap":[],"VoidFunction":[],"VTTCue":["VTTCue"],"VTTRegion":["VTTRegion"],"WakeLock":["WakeLock"],"WakeLockSentinel":["WakeLockSentinel"],"WakeLockSentinelEventMap":[],"WakeLockType":[],"WaveShaperNode":["WaveShaperNode"],"WaveShaperOptions":[],"WeakKey":[],"WeakKeyTypes":[],"WeakMap":[],"WeakMapConstructor":[],"WeakRef":[],"WeakRefConstructor":[],"WeakSet":[],"WeakSetConstructor":[],"WebAssembly":[null,{"AddressType":[],"AddressValue":[],"compile":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static"],"CompileError":[],"compileStreaming":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static"],"Exception":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception"],"ExceptionOptions":[],"Exports":[],"ExportValue":[],"Global":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global"],"GlobalDescriptor":[],"ImportExportKind":[],"Imports":[],"ImportValue":[],"Instance":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance"],"instantiate":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static"],"instantiateStreaming":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static"],"JSTag":[],"LinkError":[],"Memory":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory"],"MemoryDescriptor":[],"Module":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module"],"ModuleExportDescriptor":[],"ModuleImportDescriptor":[],"ModuleImports":[],"RuntimeError":[],"Table":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table"],"TableDescriptor":[],"TableKind":[],"Tag":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag"],"TagType":[],"validate":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static"],"ValueType":[],"ValueTypeMap":[],"WebAssemblyCompileOptions":[],"WebAssemblyInstantiatedSource":[]}],"WebCodecsErrorCallback":[],"WEBGL_color_buffer_float":["WEBGL_color_buffer_float"],"WEBGL_compressed_texture_astc":["WEBGL_compressed_texture_astc"],"WEBGL_compressed_texture_etc":["WEBGL_compressed_texture_etc"],"WEBGL_compressed_texture_etc1":["WEBGL_compressed_texture_etc1"],"WEBGL_compressed_texture_pvrtc":["WEBGL_compressed_texture_pvrtc"],"WEBGL_compressed_texture_s3tc":["WEBGL_compressed_texture_s3tc"],"WEBGL_compressed_texture_s3tc_srgb":["WEBGL_compressed_texture_s3tc_srgb"],"WEBGL_debug_renderer_info":["WEBGL_debug_renderer_info"],"WEBGL_debug_shaders":["WEBGL_debug_shaders"],"WEBGL_depth_texture":["WEBGL_depth_texture"],"WEBGL_draw_buffers":["WEBGL_draw_buffers"],"WEBGL_lose_context":["WEBGL_lose_context"],"WEBGL_multi_draw":["WEBGL_multi_draw"],"WebGL2RenderingContext":["WebGL2RenderingContext"],"WebGL2RenderingContextBase":["beginQuery"],"WebGL2RenderingContextOverloads":["bufferData"],"WebGLActiveInfo":["WebGLActiveInfo"],"WebGLBuffer":["WebGLBuffer"],"WebGLContextAttributes":[],"WebGLContextEvent":["WebGLContextEvent"],"WebGLContextEventInit":[],"WebGLFramebuffer":["WebGLFramebuffer"],"WebGLPowerPreference":[],"WebGLProgram":["WebGLProgram"],"WebGLQuery":["WebGLQuery"],"WebGLRenderbuffer":["WebGLRenderbuffer"],"WebGLRenderingContext":["WebGLRenderingContext"],"WebGLRenderingContextBase":["drawingBufferColorSpace"],"WebGLRenderingContextOverloads":["bufferData"],"WebGLSampler":["WebGLSampler"],"WebGLShader":["WebGLShader"],"WebGLShaderPrecisionFormat":["WebGLShaderPrecisionFormat"],"WebGLSync":["WebGLSync"],"WebGLTexture":["WebGLTexture"],"WebGLTransformFeedback":["WebGLTransformFeedback"],"WebGLUniformLocation":["WebGLUniformLocation"],"WebGLVertexArrayObject":["WebGLVertexArrayObject"],"WebGLVertexArrayObjectOES":["WebGLVertexArrayObject"],"WebKitCSSMatrix":[],"webkitURL":[],"WebSocket":["WebSocket"],"WebSocketEventMap":[],"WebTransport":["WebTransport"],"WebTransportBidirectionalStream":["WebTransportBidirectionalStream"],"WebTransportCloseInfo":[],"WebTransportCongestionControl":[],"WebTransportDatagramDuplexStream":["WebTransportDatagramDuplexStream"],"WebTransportError":["WebTransportError"],"WebTransportErrorOptions":[],"WebTransportErrorSource":[],"WebTransportHash":[],"WebTransportOptions":[],"WebTransportSendOptions":[],"WebTransportSendStreamOptions":[],"WGSLLanguageFeatures":["WGSLLanguageFeatures"],"WheelEvent":["WheelEvent"],"WheelEventInit":[],"window":[],"Window":["Window"],"WindowClient":["WindowClient"],"WindowEventHandlers":["afterprint_event"],"WindowEventHandlersEventMap":[],"WindowEventMap":[],"WindowLocalStorage":["localStorage"],"WindowOrWorkerGlobalScope":["caches"],"WindowPostMessageOptions":[],"WindowProxy":[],"WindowSessionStorage":["sessionStorage"],"Worker":["Worker"],"WorkerEventMap":[],"WorkerGlobalScope":["WorkerGlobalScope"],"WorkerGlobalScopeEventMap":[],"WorkerLocation":["WorkerLocation"],"WorkerNavigator":["WorkerNavigator"],"WorkerOptions":[],"WorkerType":[],"Worklet":["Worklet"],"WorkletOptions":[],"WritableStream":["WritableStream"],"WritableStreamDefaultController":["WritableStreamDefaultController"],"WritableStreamDefaultWriter":["WritableStreamDefaultWriter"],"WriteCommandType":[],"WriteParams":[],"WScript":[],"WSH":[],"XMLDocument":["XMLDocument"],"XMLHttpRequest":["XMLHttpRequest"],"XMLHttpRequestBodyInit":[],"XMLHttpRequestEventMap":[],"XMLHttpRequestEventTarget":["XMLHttpRequestEventTarget"],"XMLHttpRequestEventTargetEventMap":[],"XMLHttpRequestResponseType":[],"XMLHttpRequestUpload":["XMLHttpRequestUpload"],"XMLSerializer":["XMLSerializer"],"XPathEvaluator":["XPathEvaluator"],"XPathEvaluatorBase":["createExpression"],"XPathExpression":["XPathExpression"],"XPathNSResolver":[],"XPathResult":["XPathResult"],"XSLTProcessor":["XSLTProcessor"]}'), An = {
1208
- globals: In
1209
- }, ut = Object.freeze(
1210
- Object.assign(/* @__PURE__ */ Object.create(null), An.globals)
1211
- ), ft = "https://developer.mozilla.org/docs/Web/API/";
1212
- function pi(e, t, n = "*", i) {
1213
- if (e === "@arcgis/core")
1214
- return kn(t, n, i);
1215
- }
1216
- function kn(e, t, n) {
1217
- if (!(e === void 0 || e === "interfaces.d.ts")) {
1218
- const i = `https://${n.config.documentation.host}${Gn}${ee(e)}/`;
1219
- return Ai(i, t === "default" || t === "*" ? void 0 : t, void 0);
1220
- }
1221
- }
1222
- const Gn = Zt("core");
1223
- function je(e, t, n, i) {
1224
- i.implicitPublicModules ??= /* @__PURE__ */ Object.create(null);
1225
- const a = i.implicitPublicModules[e];
1226
- a === void 0 ? i.implicitPublicModules[e] = {
1227
- actualModulePath: void 0,
1228
- // moduleResolution:Node16 may use .js extension to refer to non-JS files
1229
- sourcePath: t.endsWith(".js") ? t.slice(0, -3) : t,
1230
- pendingNames: n === "*" ? void 0 : /* @__PURE__ */ new Set([n]),
1231
- extractedNames: /* @__PURE__ */ new Set()
1232
- } : a.pendingNames !== void 0 && n !== "*" ? a.pendingNames.add(n) : a.pendingNames = void 0;
1233
- }
1234
- function Fn(e, t) {
1235
- const n = tt(e);
1236
- if (t.pendingNames === void 0)
1237
- return n > 0;
1238
- if (n === 2 && t.pendingNames.has("default"))
1239
- return !0;
1240
- const a = (e.name ?? e.declarationList?.declarations[0].name).escapedText;
1241
- return t.pendingNames.has(a);
1242
- }
1243
- function Je(e, t, n, i, a) {
1244
- const r = n.program.getTypeChecker(), l = e.flags & o.SymbolFlags.Alias ? r.getAliasedSymbol(e) : e, s = Wn(l), c = t.escapedText, p = s ?? c, d = l?.declarations?.[0];
1245
- if (d === void 0)
1246
- return n.emitError(`Unable to resolve the declaration file name for the type ${p}`, {
1247
- file: n.file,
1248
- node: void 0
1249
- }), {
1250
- name: p,
1251
- module: void 0,
1252
- package: Re,
1253
- viewUrl: void 0,
1254
- start: i,
1255
- end: a
1256
- };
1257
- const m = d.getSourceFile(), { packageName: f, modulePath: u } = Nn(m.fileName, n, p);
1258
- if (f === "@arcgis/core" && u === "interfaces.js")
1259
- return n.moduleContext.importsMap.__esri = {
1260
- type: "*",
1261
- modulePath: void 0,
1262
- specifier: `${f}/${u}`,
1263
- replacementName: void 0,
1264
- actualName: void 0,
1265
- wasUsed: !0
1266
- }, {
1267
- name: "__esri",
1268
- module: u,
1269
- package: f,
1270
- viewUrl: void 0,
1271
- start: i,
1272
- end: a
1273
- };
1274
- if (f === "typescript" && u?.startsWith("lib/") === !0) {
1275
- let g = ut[p], P, h = p;
1276
- if (g === void 0) {
1277
- for (let R = d.parent; R !== void 0; R = R.parent)
1278
- if (o.isModuleDeclaration(R) && o.isIdentifier(R.name)) {
1279
- P = R.name.escapedText, g = ut[P]?.[1]?.[p], h = `${P}.${p}`, be(t, h);
1280
- break;
1281
- }
1282
- }
1283
- return {
1284
- name: h,
1285
- module: void 0,
1286
- package: Re,
1287
- viewUrl: g?.[0]?.startsWith("https") === !1 ? `${ft}${g[0]}` : g?.[0] ?? void 0,
1288
- start: i,
1289
- end: i + h.length
1290
- };
1291
- }
1292
- let v = p;
1293
- if (f !== void 0 && u === void 0 && s?.startsWith("HTML") === !0 && d.parent.kind === o.SyntaxKind.ModuleBlock && d.parent.parent.kind === o.SyntaxKind.ModuleDeclaration && d.parent.parent.name.escapedText === "global") {
1294
- if (s.endsWith("Element")) {
1295
- const g = o.isInterfaceDeclaration(d) ? d.heritageClauses?.[0]?.types[0]?.expression : o.isTypeAliasDeclaration(d) && o.isTypeReferenceNode(d.type) ? d.type.typeName : void 0;
1296
- if (g !== void 0 && o.isIdentifier(g)) {
1297
- const P = r.getSymbolAtLocation(g);
1298
- if (P !== void 0) {
1299
- const h = r.getAliasedSymbol(P);
1300
- return Je(
1301
- h,
1302
- t,
1303
- n,
1304
- i,
1305
- i + h.escapedName.length
1306
- );
1307
- }
1308
- }
1309
- } else if (
1310
- // Only supporting the syntax after
1311
- // https://devtopia.esri.com/WebGIS/arcgis-web-components/pull/10794
1312
- // As this interface is not likely to be used directly.
1313
- s.endsWith("ElementEventMap") && o.isTypeAliasDeclaration(d) && o.isIndexedAccessTypeNode(d.type) && o.isTypeReferenceNode(d.type.objectType) && o.isIdentifier(d.type.objectType.typeName) && o.isLiteralTypeNode(d.type.indexType) && o.isStringLiteral(d.type.indexType.literal) && d.type.indexType.literal.text === "@eventTypes"
1314
- ) {
1315
- const g = r.getSymbolAtLocation(d.type.objectType.typeName);
1316
- if (g !== void 0) {
1317
- const P = r.getAliasedSymbol(g), h = Je(
1318
- P,
1319
- t,
1320
- n,
1321
- i,
1322
- i + P.escapedName.length
1323
- );
1324
- return be(t, c), be(t, `${h.name}["@eventTypes"]`), h;
1325
- }
1326
- }
1327
- }
1328
- if (f !== void 0 || u !== void 0) {
1329
- const g = s ?? ((u ?? f).split("/").pop()?.replaceAll(On, "") || "type");
1330
- for (let P = 1; ; P += 1) {
1331
- const h = P === 1 ? g : `${g}${P}`;
1332
- let R = n.functionLikeTypeParameters?.has(h) === !0 || n.objectLikeTypeParameters?.has(h) === !0 || n.localDeclarations.has(h);
1333
- if (R)
1334
- continue;
1335
- const L = n.moduleContext.importsMap[h], y = L !== void 0 && (f === void 0 ? L.modulePath === u : L.specifier === f + (u === void 0 ? "" : `/${u}`));
1336
- if (y ? L.wasUsed = !0 : R = n.moduleContext.importsMap[h] !== void 0, R)
1337
- continue;
1338
- const k = h !== c;
1339
- k && (be(t, h), a = i + h.length);
1340
- const M = _n(l), I = M === "named";
1341
- I || (v = M), f === void 0 && !n.config.strict && je(
1342
- u,
1343
- m.fileName.slice(n.basePath.length),
1344
- v,
1345
- n
1346
- ), y || (n.moduleContext.importsMap[h] = {
1347
- type: M,
1348
- modulePath: f === void 0 ? u : void 0,
1349
- specifier: f === void 0 ? ye(oe(n.apiModule).dtsPath, u) : f + (u === void 0 ? "" : `/${u}`),
1350
- replacementName: void 0,
1351
- actualName: I && k ? s : void 0,
1352
- wasUsed: !0
1353
- });
1354
- break;
1355
- }
1356
- } else if (n.localPrivateDeclarations?.has(c) === !0)
1357
- n.localPrivateDeclarations.set(
1358
- c,
1359
- Math.abs(n.localPrivateDeclarations.get(c))
1360
- );
1361
- else {
1362
- if (d.kind === o.SyntaxKind.TypeParameter)
1363
- return {
1364
- name: c,
1365
- module: void 0,
1366
- package: void 0,
1367
- viewUrl: void 0,
1368
- start: i,
1369
- end: a
1370
- };
1371
- n.localDeclarations.has(c) || n.emitError(
1372
- `@public declaration referenced non-public ${ne("red", c)}. Either mark it @public or refactor out the reference. Note that Enums are not supported in public docs per https://devtopia.esri.com/WebGIS/arcgis-js-api/discussions/73576.`,
1373
- {
1374
- file: n.file,
1375
- node: void 0
1376
- }
1377
- );
1378
- }
1379
- const C = v === "default" || v === "*" ? void 0 : s;
1380
- return f ? {
1381
- name: v,
1382
- module: u || void 0,
1383
- package: f,
1384
- viewUrl: pi(f, u ?? "", C, n),
1385
- start: i,
1386
- end: a
1387
- } : {
1388
- name: v,
1389
- module: u,
1390
- package: void 0,
1391
- viewUrl: Ue(u ?? n.apiModule.path, C, void 0, n),
1392
- start: i,
1393
- end: a
1394
- };
1395
- }
1396
- const On = /[^a-zA-Z0-9$_]/gu;
1397
- function Nn(e, t, n) {
1398
- const i = e.lastIndexOf(rt);
1399
- if (i !== -1) {
1400
- const s = e.slice(i + rt.length), c = mi(s), p = e.slice(
1401
- 0,
1402
- i + rt.length + c.packageName.length
1403
- ), d = ct(p);
1404
- return Wt(c), c.modulePath = _t(c.modulePath, d, t, n), c;
1405
- }
1406
- const r = e.indexOf(wn);
1407
- if (r !== -1) {
1408
- const s = e.slice(0, r), c = ct(s), p = c.name, d = e.slice(r + 1), m = _t(d, c, t, n), f = { packageName: p, modulePath: m };
1409
- return Wt(f), f;
1410
- }
1411
- if (e.startsWith(t.basePath)) {
1412
- const s = e.slice(t.basePath.length), c = Ve(ee(s), t);
1413
- return c === t.apiModule.path ? {
1414
- packageName: void 0,
1415
- modulePath: void 0
1416
- } : {
1417
- packageName: void 0,
1418
- modulePath: c
1419
- };
1420
- } else
1421
- return t.emitError(
1422
- `Unable to determine if the referenced type ${n} from ${e} is a local type, or external library usage (it is outside of ${t.basePath}, yet not in node_modules)`,
1423
- {
1424
- file: t.file,
1425
- node: void 0
1426
- }
1427
- ), {
1428
- packageName: Re,
1429
- modulePath: void 0
1430
- };
1431
- }
1432
- const rt = "/node_modules/", wn = "/dist/";
1433
- function mi(e) {
1434
- const t = dt(e), n = e.length === t.length ? void 0 : e.slice(t.length + 1);
1435
- return { packageName: t, modulePath: n };
1436
- }
1437
- function Wt(e) {
1438
- e.packageName?.startsWith("@types/") === !0 && (e.packageName = e.packageName.slice(7));
1439
- }
1440
- function _t(e, t, n, i) {
1441
- const a = ee(e);
1442
- if (t.exports === void 0)
1443
- return `${a}.js`;
1444
- const r = `./${a}`, l = "@arcgis/lumina" in (t.dependencies ?? {}) && r.endsWith("/customElement") ? `${r.slice(0, -13)}index` : r;
1445
- let s = yt(t.exports, ".", l);
1446
- if (s === void 0 && (s = Un[t.name]?.(a)), s !== void 0)
1447
- return s === "." ? void 0 : s.slice(2);
1448
- const c = n.moduleContext.importsMap[i];
1449
- if (c !== void 0 && c.modulePath === void 0) {
1450
- const p = mi(c.specifier);
1451
- if (p.packageName === t.name)
1452
- return p.modulePath;
1453
- }
1454
- return n.emitError(
1455
- `Need explicit type annotation for where the ${ne("red", i)} from ${t.name}/${e} is being used implicitly. Reason: Unable to find an "exports" compatible import path to insert the import of this type in the emitted .d.ts.`,
1456
- { file: n.file, node: void 0 }
1457
- ), e;
1458
- }
1459
- const Un = {
1460
- // REFACTOR: dissolve barrel files (match @arcgis/core). then this won't be needed
1461
- "@arcgis/lumina"(e) {
1462
- return e.startsWith("dist/globalTypes/") || e.startsWith("dist/typings/") ? "./globalTypes" : e.startsWith("dist/controllers/accessor/") ? "./controllers/accessor" : e.startsWith("dist/controllers/") ? "./controllers" : e.startsWith("dist/jsx/") || !e.slice(5).includes("/") ? "." : void 0;
1463
- }
1464
- };
1465
- function yt(e, t, n) {
1466
- if (typeof e == "string")
1467
- return Vn(t, e, n);
1468
- if (Array.isArray(e))
1469
- for (let i = 0; i < e.length; ++i) {
1470
- const a = yt(e[i], t, n);
1471
- if (a !== void 0)
1472
- return a;
1473
- }
1474
- if (typeof e == "object" && e !== null)
1475
- for (const [i, a] of Object.entries(e)) {
1476
- const l = i.startsWith(".") ? i : t, s = yt(a, l, n);
1477
- if (s !== void 0)
1478
- return s;
1479
- }
1480
- }
1481
- function Vn(e, t, n) {
1482
- const i = ee(t);
1483
- if (i === n)
1484
- return e;
1485
- const a = i.indexOf("*");
1486
- if (a === -1)
1487
- return;
1488
- const r = i.slice(0, a);
1489
- if (!n.startsWith(r))
1490
- return;
1491
- const l = i.slice(a + 1), s = n.slice(r.length), c = t.slice(i.length);
1492
- if (l === "") {
1493
- const m = ee(e), f = e.slice(m.length), u = m === e && c === "" ? ".js" : f;
1494
- return m.slice(0, -1) + s + u;
1495
- }
1496
- if (!s.endsWith(l))
1497
- return;
1498
- const p = s.slice(0, -l.length), d = e.indexOf("*");
1499
- if (d !== -1)
1500
- return e.slice(0, d) + p + e.slice(d + 1);
1501
- }
1502
- function Wn(e) {
1503
- const t = e.getDeclarations()?.[0];
1504
- if (t !== void 0 && ((o.isClassDeclaration(t) || o.isFunctionDeclaration(t) || o.isInterfaceDeclaration(t) || o.isTypeAliasDeclaration(t) || o.isEnumDeclaration(t)) && t.name !== void 0 && o.isIdentifier(t.name) || o.isVariableDeclaration(t) && o.isIdentifier(t.name) || o.isBindingElement(t) && o.isIdentifier(t.name)))
1505
- return t.name.escapedText;
1506
- const n = e.escapedName;
1507
- return n === "default" || n.startsWith("__") ? void 0 : n;
1508
- }
1509
- function _n(e) {
1510
- return e.flags & o.SymbolFlags.ValueModule ? "*" : Bn(e) ? "default" : "named";
1511
- }
1512
- function Bn(e) {
1513
- const t = e.escapedName;
1514
- if (t === "default" || // CommonJS "export ="
1515
- t === "export=")
1516
- return !0;
1517
- const n = e.getDeclarations();
1518
- if (n !== void 0)
1519
- for (let i = 0; i < n.length; ++i) {
1520
- const a = n[i];
1521
- if (o.canHaveModifiers(a) && o.getModifiers(a)?.some((r) => r.kind === o.SyntaxKind.DefaultKeyword))
1522
- return !0;
1523
- }
1524
- return !1;
1525
- }
1526
- function Et(e, t, n, i) {
1527
- const a = { file: n, node: e };
1528
- return e.getText(n).includes("* @public") && i.emitError(
1529
- "@public is not permitted in nested types. See options in documentation: https://webgis.esri.com/sdk/contributing/core/core/documenting-api#describing-nested-object-types and https://webgis.esri.com/sdk/contributing/core/core/documenting-api#variables",
1530
- a
1531
- ), H(e, t, a, i);
1532
- }
1533
- const w = {
1534
- false: 0,
1535
- /**
1536
- * True for literal types. False for object types
1537
- */
1538
- shallow: 2,
1539
- true: 1
1540
- };
1541
- function H(e, t, n, i) {
1542
- if (e.kind === o.SyntaxKind.TrueKeyword || e.kind === o.SyntaxKind.FalseKeyword)
1543
- return t === w.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.BooleanKeyword) : o.factory.createLiteralTypeNode(e);
1544
- if (e.kind === o.SyntaxKind.NullKeyword)
1545
- return o.factory.createLiteralTypeNode(e);
1546
- if (e.kind === o.SyntaxKind.UndefinedKeyword || o.isVoidExpression(e))
1547
- return o.factory.createKeywordTypeNode(o.SyntaxKind.UndefinedKeyword);
1548
- if (o.isStringLiteral(e) || o.isNoSubstitutionTemplateLiteral(e))
1549
- return t === w.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.StringKeyword) : o.factory.createLiteralTypeNode(e);
1550
- if (o.isTemplateExpression(e))
1551
- return Se(n, t, i) ?? o.factory.createKeywordTypeNode(o.SyntaxKind.StringKeyword);
1552
- if (o.isNumericLiteral(e))
1553
- return t === w.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.NumberKeyword) : o.factory.createLiteralTypeNode(e);
1554
- if (o.isBigIntLiteral(e))
1555
- return t === w.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.BigIntKeyword) : o.factory.createLiteralTypeNode(e);
1556
- if (o.isAsExpression(e) || o.isTypeAssertionExpression(e))
1557
- return o.isTypeReferenceNode(e.type) && o.isIdentifier(e.type.typeName) && e.type.typeName.escapedText === "const" ? H(e.expression, w.true, n, i) : e.type;
1558
- if (o.isSatisfiesExpression(e))
1559
- return t === w.false ? e.type : H(e.expression, t, n, i);
1560
- if (o.isRegularExpressionLiteral(e))
1561
- return o.factory.createTypeReferenceNode(o.factory.createIdentifier("RegExp"));
1562
- if (o.isArrayLiteralExpression(e)) {
1563
- if (i.isInLuminaMinimalExtraction)
1564
- return we;
1565
- const a = t === w.shallow ? w.false : t, r = new Array(e.elements.length);
1566
- for (let l = 0; l < r.length; ++l) {
1567
- const s = e.elements[l];
1568
- r[l] = H(s, a, { ...n, node: s }, i);
1569
- }
1570
- return a ? o.factory.createTypeOperatorNode(o.SyntaxKind.ReadonlyKeyword, o.factory.createTupleTypeNode(r)) : o.factory.createArrayTypeNode(
1571
- r.length === 1 ? r[0] : o.factory.createUnionTypeNode(r)
1572
- );
1573
- }
1574
- if (o.isObjectLiteralExpression(e)) {
1575
- if (i.isInLuminaMinimalExtraction)
1576
- return we;
1577
- const a = t === w.shallow ? w.false : t, r = new Array(e.properties.length);
1578
- for (let l = 0; l < r.length; ++l) {
1579
- const s = e.properties[l];
1580
- r[l] = Kn(s, a, { ...n, node: s }, i);
1581
- }
1582
- return o.factory.createTypeLiteralNode(r);
1583
- }
1584
- if (o.isPrefixUnaryExpression(e)) {
1585
- if (e.operator !== o.SyntaxKind.MinusToken)
1586
- return Pe(n, X, t, i);
1587
- if (t === w.false)
1588
- return o.factory.createKeywordTypeNode(o.SyntaxKind.NumberKeyword);
1589
- {
1590
- const a = H(e.operand, t, n, i);
1591
- return o.isLiteralTypeNode(a) ? o.factory.createLiteralTypeNode(
1592
- o.factory.createPrefixUnaryExpression(o.SyntaxKind.MinusToken, a.literal)
1593
- ) : Pe(n, X, t, i);
1594
- }
1595
- }
1596
- if (o.isParenthesizedExpression(e))
1597
- return H(e.expression, t, n, i);
1598
- if (o.isNewExpression(e)) {
1599
- if (i.isInLuminaMinimalExtraction)
1600
- return we;
1601
- if (o.isIdentifier(e.expression)) {
1602
- const r = e.expression.escapedText;
1603
- let l = e.typeArguments, s = !1;
1604
- if ((r === "Set" || r === "WeakSet") && l === void 0)
1605
- if (e.arguments?.[0] !== void 0) {
1606
- const c = H(
1607
- e.arguments[0],
1608
- t,
1609
- { ...n, node: e.arguments[0] },
1610
- i
1611
- );
1612
- c.kind === o.SyntaxKind.ArrayType && (l = [c.elementType]);
1613
- } else
1614
- s = !0;
1615
- else
1616
- s ||= (r === "Map" || r === "WeakMap") && l?.length !== 2;
1617
- if (!s)
1618
- return o.factory.createTypeReferenceNode(e.expression, l);
1619
- }
1620
- const a = H(e.expression, t, n, i);
1621
- if (o.isTypeReferenceNode(a))
1622
- return a;
1623
- }
1624
- if (o.isConditionalExpression(e))
1625
- return o.factory.createUnionTypeNode([
1626
- H(e.whenTrue, t, { ...n, node: e.whenTrue }, i),
1627
- H(e.whenFalse, t, { ...n, node: e.whenFalse }, i)
1628
- ]);
1629
- if (o.isIdentifier(e))
1630
- return Se(n, t, i) ?? o.factory.createTypeQueryNode(e);
1631
- if (o.isPropertyAccessExpression(e) && o.isIdentifier(e.name)) {
1632
- const a = Se(n, t, i);
1633
- if (a !== void 0)
1634
- return a;
1635
- const r = H(e.expression, t, n, i);
1636
- return o.isTypeQueryNode(r) ? o.factory.createTypeQueryNode(o.factory.createQualifiedName(r.exprName, e.name)) : r === gt ? gt : Pe(n, X, t, i);
1637
- }
1638
- if (o.isCallExpression(e)) {
1639
- const a = e.expression, r = e.arguments.at(0);
1640
- if (o.isPropertyAccessExpression(a) && o.isIdentifier(a.expression) && o.isIdentifier(a.name) && a.expression.escapedText === "Collection" && a.name.escapedText === "ofType" && r !== void 0 && o.isIdentifier(r))
1641
- return o.factory.createTypeReferenceNode(a.expression, [
1642
- o.factory.createTypeReferenceNode(r)
1643
- ]);
1644
- const l = Se(n, t, i);
1645
- if (l !== void 0)
1646
- return l;
1647
- const s = H(a, t, n, i);
1648
- return o.isTypeQueryNode(s) ? o.factory.createTypeReferenceNode(o.factory.createIdentifier("ReturnType"), [
1649
- o.factory.createTypeQueryNode(s.exprName, e.typeArguments)
1650
- ]) : Pe(n, X, t, i);
1651
- }
1652
- if (o.isArrowFunction(e)) {
1653
- if (i.isInLuminaMinimalExtraction)
1654
- return we;
1655
- const a = t === w.shallow ? w.false : t;
1656
- return o.factory.createFunctionTypeNode(
1657
- e.typeParameters,
1658
- vt(e.parameters, a, n, i),
1659
- e.type ?? (o.isBlock(e.body) ? qe(e, i) ?? Y(n, X, i) : H(e.body, a, n, i))
1660
- );
1661
- }
1662
- return Pe(n, X, t, i);
1663
- }
1664
- function Kn(e, t, n, i) {
1665
- const a = t === w.false ? void 0 : qn;
1666
- return o.isPropertyAssignment(e) ? o.factory.createPropertySignature(
1667
- a,
1668
- e.name,
1669
- void 0,
1670
- H(e.initializer, t, { ...n, node: e.initializer }, i)
1671
- ) : o.isShorthandPropertyAssignment(e) ? o.factory.createPropertySignature(
1672
- a,
1673
- e.name,
1674
- void 0,
1675
- Se(n, t, i) ?? o.factory.createTypeQueryNode(o.factory.createIdentifier(e.name.escapedText))
1676
- ) : o.isSpreadAssignment(e) ? o.factory.createPropertySignature(
1677
- a,
1678
- "_spread",
1679
- void 0,
1680
- Y(n, X, i)
1681
- ) : o.isMethodDeclaration(e) ? o.factory.createPropertySignature(
1682
- a,
1683
- e.name,
1684
- void 0,
1685
- o.factory.createFunctionTypeNode(
1686
- e.typeParameters,
1687
- vt(e.parameters, t, n, i),
1688
- e.type ?? qe(e, i) ?? Y(n, X, i)
1689
- )
1690
- ) : o.isGetAccessorDeclaration(e) ? o.factory.createGetAccessorDeclaration(
1691
- void 0,
1692
- e.name,
1693
- // Should always be empty
1694
- e.parameters,
1695
- e.type ?? qe(e, i) ?? Y(n, X, i),
1696
- void 0
1697
- ) : o.factory.createSetAccessorDeclaration(
1698
- void 0,
1699
- e.name,
1700
- vt(e.parameters, t, n, i),
1701
- void 0
1702
- );
1703
- }
1704
- function Pe(e, t, n, i) {
1705
- return Se(e, n, i) ?? Y(e, t, i);
1706
- }
1707
- function Se(e, t, n) {
1708
- const i = n.program?.getTypeChecker?.();
1709
- if (i !== void 0 && e.node !== void 0) {
1710
- let a;
1711
- const r = t === w.false;
1712
- if (r && e.node.kind === o.SyntaxKind.Identifier) {
1713
- const s = i.getSymbolAtLocation(e.node);
1714
- a = s === void 0 ? void 0 : i.getTypeOfSymbol(s);
1715
- }
1716
- a ??= i.getTypeAtLocation(e.node);
1717
- const l = r ? en(i, a) : a;
1718
- return it(i, l);
1719
- }
1720
- }
1721
- function it(e, t) {
1722
- const n = t.flags & o.TypeFlags.Union ? t.types.every(Bt) : Bt(t);
1723
- return e.typeToTypeNode(
1724
- t,
1725
- void 0,
1726
- zn & (n ? ~o.TypeFormatFlags.MultilineObjectLiterals : -1)
1727
- );
1728
- }
1729
- const Hn = o.TypeFormatFlags.NoTruncation | o.TypeFormatFlags.WriteArrayAsGenericType | o.TypeFormatFlags.SuppressAnyReturnType | o.TypeFormatFlags.MultilineObjectLiterals, $n = Hn & o.TypeFormatFlags.NodeBuilderFlagsMask, zn = $n | o.NodeBuilderFlags.IgnoreErrors | o.NodeBuilderFlags.NoTruncation, Bt = (e) => e.flags & o.TypeFlags.Object ? e.getProperties().length === 1 : !!(e.flags & o.TypeFlags.PossiblyFalsy);
1730
- function qe(e, t) {
1731
- const n = t.program?.getTypeChecker?.();
1732
- if (n === void 0)
1733
- return;
1734
- const i = n.getSignatureFromDeclaration(e);
1735
- if (i === void 0)
1736
- return;
1737
- const a = n.getReturnTypeOfSignature(i);
1738
- return it(n, a);
1739
- }
1740
- function jn(e, t) {
1741
- const n = t.program?.getTypeChecker?.();
1742
- if (n === void 0)
1743
- return;
1744
- const i = n.getTypeAtLocation(e);
1745
- return it(n, i);
1746
- }
1747
- function Y(e, t, n) {
1748
- return n.isInLuminaMinimalExtraction || n.emitError(t, e), gt;
1749
- }
1750
- const X = "Failed to infer the type of the expression. Please provide an explicit type annotation or simplify the expression.", gt = o.factory.createKeywordTypeNode(o.SyntaxKind.AnyKeyword), we = o.factory.createKeywordTypeNode(o.SyntaxKind.UnknownKeyword), We = o.factory.createKeywordTypeNode(o.SyntaxKind.VoidKeyword), Jn = o.factory.createToken(o.SyntaxKind.ReadonlyKeyword), qn = [Jn];
1751
- function vt(e, t, n, i) {
1752
- const a = new Array(e.length);
1753
- for (let r = 0; r < a.length; ++r) {
1754
- const l = e[r];
1755
- a[r] = l.initializer === void 0 && o.isIdentifier(l.name) ? l : o.factory.createParameterDeclaration(
1756
- void 0,
1757
- l.dotDotDotToken,
1758
- o.isIdentifier(l.name) ? l.name : o.factory.createIdentifier(`parameter${r}`),
1759
- l.questionToken,
1760
- l.type ?? (l.initializer === void 0 ? Y({ ...n, node: l }, X, i) : H(
1761
- l.initializer,
1762
- t,
1763
- {
1764
- ...n,
1765
- node: l.initializer
1766
- },
1767
- i
1768
- ))
1769
- );
1770
- }
1771
- return a;
1772
- }
1773
- function Qn(e, t) {
1774
- const n = t.program?.getTypeChecker?.();
1775
- if (n === void 0 || !Xn(e.exprName, t))
1776
- return;
1777
- const i = n.getTypeAtLocation(e.exprName);
1778
- return it(n, i);
1779
- }
1780
- function Xn(e, t) {
1781
- return e.kind === o.SyntaxKind.QualifiedName ? Yn(e.left) : t.moduleContext.importsMap[e.escapedText]?.specifier.endsWith(".json") === !0;
1782
- }
1783
- function Yn(e) {
1784
- for (; e !== void 0; )
1785
- if (e.kind === o.SyntaxKind.QualifiedName)
1786
- e = e.left;
1787
- else if (e.kind === o.SyntaxKind.Identifier)
1788
- return e.escapedText === "this";
1789
- return !1;
1790
- }
1791
- function z(e, t) {
1792
- if (b = t, _e.clear(), $ = [], Qe.clear(), e.pos !== -1 && e.getText(b.file).includes("* @public") && b.emitError(
1793
- "@public JSDoc tag may only appear in interfaces, top-level of type alias, or top-level intersection inside a type-alias. @public JSDoc tag inside inline object literal types or deeper aliases is not supported as such are tricky to represent in the docs UI. Refactor out the type into a separate top-level interface/type-alias. Documentation: https://webgis.esri.com/sdk/contributing/core/core/documenting-api#describing-nested-object-types",
1794
- { file: b.file, node: e }
1795
- ), e.kind === o.SyntaxKind.Identifier || e.kind === o.SyntaxKind.QualifiedName)
1796
- Be(e);
1797
- else if (o.isFunctionTypeNode(e) || o.isConstructorTypeNode(e)) {
1798
- const i = e.typeParameters;
1799
- if (i !== void 0)
1800
- for (let a = 0; a < i.length; ++a) {
1801
- const r = i[a];
1802
- Qe.add(r.name.escapedText);
1803
- }
1804
- }
1805
- return Zn.writeNode(o.EmitHint.Unspecified, e, void 0, _e), {
1806
- text: _e.getText(),
1807
- references: $.length > 0 ? $ : void 0,
1808
- values: void 0,
1809
- source: void 0
1810
- };
1811
- }
1812
- let b;
1813
- const ge = (e, t, n) => {
1814
- switch (t.kind) {
1815
- case o.SyntaxKind.TypeReference:
1816
- const i = t, a = i.typeName;
1817
- switch (a.escapedText) {
1818
- case "nil":
1819
- return ge(e, eo, n);
1820
- // Used in public typings in 88 files
1821
- // REFACTOR: consider refactoring out Const usages in public API to
1822
- // reduce divergence
1823
- case "Const":
1824
- // In public types, Lumina's "component" and "el" have the same type
1825
- // eslint-disable-next-line no-fallthrough
1826
- case "ToElement":
1827
- return ge(e, i.typeArguments[0], n);
1828
- /**
1829
- * @see https://webgis.esri.com/sdk/contributing/core/core/documenting-api#publicprivate-type-divergence
1830
- */
1831
- case "PublicApiNarrowType":
1832
- case "PublicApiRelaxType":
1833
- return ge(e, i.typeArguments[1], n);
1834
- }
1835
- Be(a);
1836
- break;
1837
- case o.SyntaxKind.TypeQuery:
1838
- const l = Qn(t, b);
1839
- if (l !== void 0)
1840
- return ge(e, l, n);
1841
- Be(t.exprName, to);
1842
- break;
1843
- case o.SyntaxKind.PropertyAccessExpression:
1844
- Be(t);
1845
- break;
1846
- case o.SyntaxKind.InferType:
1847
- case o.SyntaxKind.MappedType:
1848
- const c = t.typeParameter;
1849
- Qe.add(c.name.escapedText);
1850
- break;
1851
- case o.SyntaxKind.TypeLiteral:
1852
- const p = t;
1853
- p.members.length === 1 && ("emitNode" in p && (p.emitNode ??= {}), o.setEmitFlags(p, o.EmitFlags.SingleLine));
1854
- break;
1855
- case o.SyntaxKind.IndexedAccessType:
1856
- const d = t;
1857
- if (
1858
- // In public types, Lumina's "component" and "el" have the same type
1859
- // Thus print ArcgisHome["el"] as just ArcgisHome
1860
- b.isComponentProject && d.indexType.kind === o.SyntaxKind.LiteralType && d.indexType.literal.text === "el"
1861
- )
1862
- return ge(e, d.objectType, n);
1863
- break;
1864
- case o.SyntaxKind.ImportType:
1865
- b.emitError(
1866
- `\`import()\` syntax inside types is not supported - refactor to import the type at the top of the file${t.pos === -1 ? ". The import() syntax might also be inserted by TypeScript if you are referencing a type that is not otherwise accessible - refactor such cases by adding explicit type annotation." : ""}`,
1867
- { file: b.file, node: t }
1868
- );
1869
- break;
1870
- }
1871
- n(e, t), Xe !== void 0 && (ui(), Xe = void 0);
1872
- }, Zn = nn(
1873
- {},
1874
- {
1875
- onEmitNode: ge
1876
- }
1877
- ), eo = o.factory.createIdentifier("null | undefined"), _e = tn.createTextWriter(`
1878
- `), to = 7, Qe = /* @__PURE__ */ new Set();
1879
- let $;
1880
- function Be(e, t = 0) {
1881
- const n = [];
1882
- let i = e;
1883
- for (; i !== void 0; )
1884
- if (i.kind === o.SyntaxKind.Identifier) {
1885
- n.push(i);
1886
- break;
1887
- } else if (i.kind === o.SyntaxKind.QualifiedName)
1888
- n.push(i.right), i = i.left;
1889
- else if (i.kind === o.SyntaxKind.PropertyAccessExpression) {
1890
- const v = i.name;
1891
- n.push(v), i = i.expression;
1892
- }
1893
- const a = n.at(-1), r = a.escapedText, l = _e.getTextPos() + t;
1894
- let s = l + r.length;
1895
- const c = a;
1896
- if (c.pos === -1 && c.symbol !== void 0) {
1897
- $.push(
1898
- Je(c.symbol, c, b, l, s)
1899
- );
1900
- return;
1901
- }
1902
- if (b.functionLikeTypeParameters?.has(r) === !0) {
1903
- $.push({
1904
- name: r,
1905
- module: void 0,
1906
- package: void 0,
1907
- viewUrl: void 0,
1908
- start: l,
1909
- end: s
1910
- });
1911
- return;
1912
- }
1913
- if (b.objectLikeTypeParameters?.has(r) === !0) {
1914
- $.push({
1915
- name: r,
1916
- module: void 0,
1917
- package: void 0,
1918
- viewUrl: void 0,
1919
- start: l,
1920
- end: s
1921
- });
1922
- return;
1923
- }
1924
- if (b.localDeclarations.has(r)) {
1925
- $.push({
1926
- name: r,
1927
- module: void 0,
1928
- package: void 0,
1929
- viewUrl: Ue(
1930
- b.apiModule.path,
1931
- r === b.exportDefaultName ? void 0 : r,
1932
- void 0,
1933
- b
1934
- ),
1935
- start: l,
1936
- end: s
1937
- });
1938
- return;
1939
- }
1940
- if (b.localPrivateDeclarations?.has(r) === !0) {
1941
- b.localPrivateDeclarations.set(r, Math.abs(b.localPrivateDeclarations.get(r))), $.push({
1942
- name: r,
1943
- module: void 0,
1944
- package: void 0,
1945
- viewUrl: Ue(
1946
- b.apiModule.path,
1947
- r === b.exportDefaultName ? void 0 : r,
1948
- void 0,
1949
- b
1950
- ),
1951
- start: l,
1952
- end: s
1953
- });
1954
- return;
1955
- }
1956
- const d = b.moduleContext.importsMap[r];
1957
- if (d !== void 0) {
1958
- d.wasUsed = !0;
1959
- const v = d.type === "named";
1960
- d.replacementName !== void 0 && (be(a, d.replacementName), s = l + d.replacementName.length), d.replacementName !== void 0 && (b.functionLikeTypeParameters?.has(d.replacementName) === !0 || b.objectLikeTypeParameters?.has(d.replacementName) === !0) && b.emitError(
1961
- `Can't do a type replacement of ${ne("green", r)} to ${ne("red", d.replacementName)} as the latter name conflicts with a type parameter name in the current scope. Rename the type parameter or refactor out the type replacement.`,
1962
- { file: b.file, node: e }
1963
- );
1964
- const C = v ? d.actualName ?? d.replacementName ?? r : void 0;
1965
- if (d.modulePath === void 0) {
1966
- if (b.config.strict) {
1967
- const h = dt(d.specifier);
1968
- b.runtimeDependencyNames.has(h) || b.emitError(
1969
- h === "esri" ? `Found unexpected absolute path import of ${ne("red", C ?? d.type)} from ${ne("red", d.specifier)}. Did you mean to use a relative import instead?` : `Type ${ne("red", C ?? d.type)} imported from ${ne("red", h)} cannot be referenced in public types as this dependency is not declared as a "dependency" in the package.json`,
1970
- { file: b.file, node: e }
1971
- );
1972
- }
1973
- } else b.config.strict || je(
1974
- d.modulePath,
1975
- mt(
1976
- b.apiModule.sourcePath.slice(b.config.context.basePath.length),
1977
- d.specifier
1978
- ),
1979
- v ? C : d.type,
1980
- b
1981
- );
1982
- let g, P = d.modulePath;
1983
- P === void 0 && (g = dt(d.specifier), P = d.specifier.length === g.length ? void 0 : d.specifier.slice(g.length + 1)), $.push({
1984
- name: C ?? d.type,
1985
- module: P,
1986
- package: g,
1987
- viewUrl: d.modulePath === void 0 ? pi(g, P, v ? r : d.type, b) : Ue(d.modulePath, C, void 0, b),
1988
- start: l,
1989
- end: s
1990
- });
1991
- return;
1992
- }
1993
- const m = ut[r];
1994
- if (m !== void 0) {
1995
- $.push({
1996
- name: r,
1997
- module: void 0,
1998
- package: Re,
1999
- viewUrl: m[0]?.startsWith("https") === !1 ? `${ft}${m[0]}` : m[0] ?? void 0,
2000
- start: l,
2001
- end: s
2002
- });
2003
- let v = m;
2004
- if (v.length > 1) {
2005
- let C = n.length - 2, g = s + 1;
2006
- for (; v[1] !== void 0 && C >= 0; ) {
2007
- const P = n[C--];
2008
- if (v = v[1][P.escapedText], v === void 0)
2009
- b.emitError("Failed to resolve the definition of the type reference", {
2010
- file: b.file,
2011
- node: e
2012
- });
2013
- else {
2014
- const h = g + P.escapedText.length;
2015
- $.push({
2016
- name: P.escapedText,
2017
- module: void 0,
2018
- package: Re,
2019
- viewUrl: v[0]?.startsWith("https") === !1 ? `${ft}${v[0]}` : v[0] ?? void 0,
2020
- start: g,
2021
- end: h
2022
- }), g = h + 1;
2023
- }
2024
- }
2025
- }
2026
- return;
2027
- }
2028
- if (Qe.has(r))
2029
- return;
2030
- const u = b.program?.getTypeChecker?.()?.getSymbolAtLocation(a);
2031
- if (u !== void 0) {
2032
- $.push(Je(u, a, b, l, s));
2033
- return;
2034
- }
2035
- b.emitError(
2036
- "Failed to resolve the definition of the type reference. Ensure it has @public or refactor out its usage from the public API type",
2037
- { file: b.file, node: e }
2038
- );
2039
- }
2040
- function be(e, t) {
2041
- const n = e.escapedText;
2042
- Xe = e, St = t, ui(), St = n;
2043
- }
2044
- let Xe, St;
2045
- function ui() {
2046
- Xe.escapedText = St;
2047
- }
2048
- function nt(e, t, n) {
2049
- if (e === void 0 || n.isInLuminaMinimalExtraction) {
2050
- t ? n.objectLikeTypeParameters = void 0 : n.functionLikeTypeParameters = void 0;
2051
- return;
2052
- }
2053
- const i = new Array(e.length), a = t ? io : no;
2054
- a.clear();
2055
- for (let r = 0; r < e.length; ++r) {
2056
- const l = e[r], s = l.name.escapedText;
2057
- a.add(s);
2058
- const c = {
2059
- name: s,
2060
- constraint: void 0,
2061
- default: void 0,
2062
- const: void 0,
2063
- in: void 0,
2064
- out: void 0
2065
- };
2066
- if (l.modifiers !== void 0)
2067
- for (let p = 0; p < l.modifiers.length; ++p) {
2068
- const d = l.modifiers[p];
2069
- d.kind === o.SyntaxKind.ConstKeyword ? c.const = !0 : d.kind === o.SyntaxKind.InKeyword ? c.in = !0 : d.kind === o.SyntaxKind.OutKeyword && (c.out = !0);
2070
- }
2071
- i[r] = c;
2072
- }
2073
- t ? n.objectLikeTypeParameters = a : n.functionLikeTypeParameters = a;
2074
- for (let r = 0; r < e.length; ++r) {
2075
- const l = e[r], s = l.constraint, c = l.default;
2076
- s !== void 0 && (i[r].constraint = z(s, n)), c !== void 0 && (i[r].default = z(c, n));
2077
- }
2078
- return i;
2079
- }
2080
- const io = /* @__PURE__ */ new Set(), no = /* @__PURE__ */ new Set();
2081
- function Ee(e, t, n) {
2082
- if (!o.isIdentifier(e) && !o.isQualifiedName(e) && !o.isPropertyAccessExpression(e))
2083
- return n.emitError(
2084
- "Expected the type nodes in the extends clause to be Identifier, QualifiedName or PropertyAccessExpression.",
2085
- { file: n.file, node: e }
2086
- ), {
2087
- [j]: "Record<never, Error>",
2088
- name: "error",
2089
- module: void 0,
2090
- package: void 0,
2091
- viewUrl: void 0,
2092
- typeArguments: void 0
2093
- };
2094
- const i = z(e, n), a = i.references?.[0] ?? {
2095
- module: void 0,
2096
- package: void 0,
2097
- viewUrl: void 0
2098
- };
2099
- let r, l;
2100
- if (r = i.text, t !== void 0) {
2101
- l = new Array(t.length), r += "<";
2102
- for (let s = 0; s < t.length; ++s) {
2103
- const c = t[s], p = z(c, n);
2104
- l[s] = p, r += p.text, s < t.length - 1 && (r += ", ");
2105
- }
2106
- r += ">";
2107
- }
2108
- return {
2109
- /**
2110
- * If referenced type is imported as default, the `name` will be `default`,
2111
- * which is not a name suitable for .d.ts emit. So we preserve the original
2112
- * type string in a temporary field.
2113
- */
2114
- [j]: r,
2115
- name: i.references?.length === 1 ? i.references[0].name : i.text,
2116
- module: a.module,
2117
- package: a.package,
2118
- viewUrl: a.viewUrl,
2119
- typeArguments: l
2120
- };
2121
- }
2122
- function Ct(e) {
2123
- return o.isTypeReferenceNode(e) && (e.typeName.escapedText === "PublicApiNarrowType" || e.typeName.escapedText === "PublicApiRelaxType") ? e.typeArguments[1] : e;
2124
- }
2125
- function oo(e) {
2126
- return e.expression.escapedText === "PublicApiNarrowType" || e.expression.escapedText === "PublicApiRelaxType" ? e.typeArguments[1] : e;
2127
- }
2128
- const fi = { text: "unknown", references: void 0, values: void 0, source: void 0 }, ao = {
2129
- text: "Promise<unknown>",
2130
- references: void 0,
2131
- values: void 0,
2132
- source: void 0
2133
- }, ro = {
2134
- text: "Record<string, unknown> | undefined",
2135
- references: [
2136
- {
2137
- name: "Record",
2138
- module: void 0,
2139
- package: "global:",
2140
- viewUrl: "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
2141
- start: 0,
2142
- end: 6
2143
- }
2144
- ],
2145
- values: void 0,
2146
- source: void 0
2147
- };
2148
- function so(e, t) {
2149
- if (t.isInLuminaMinimalExtraction)
2150
- return;
2151
- const n = ji(e.name), i = {
2152
- [j]: lo,
2153
- kind: "method",
2154
- name: "componentOnReady",
2155
- static: void 0,
2156
- deprecated: void 0,
2157
- summary: void 0,
2158
- description: "Creates a promise that resolves once the component is fully loaded.",
2159
- docsTags: [
2160
- {
2161
- name: "example",
2162
- text: `\`\`\`js
2163
- const ${n} = document.createElement("${e.tagName}");
2164
- document.body.append(${n});
2165
- await ${n}.componentOnReady();
2166
- console.log("${e.tagName} is ready to go!");
2167
- \`\`\``
2168
- }
2169
- ],
2170
- typeParameters: void 0,
2171
- parameters: void 0,
2172
- return: co,
2173
- inheritedFrom: e.superclass,
2174
- signature: "(): Promise<this>",
2175
- privacy: void 0,
2176
- source: void 0
2177
- };
2178
- e.members.push(i);
2179
- const a = [], r = t.config.documentation.getComponentDocsUrl, l = t.config.documentation.getComponentDemoUrl, s = typeof r == "function" ? r(e.tagName, e.name) : void 0, c = typeof l == "function" ? l(e.tagName, e.name) : void 0;
2180
- typeof s == "string" && a.push({
2181
- description: "Docs",
2182
- url: s,
2183
- source: void 0
2184
- }), typeof c == "string" && a.push({
2185
- description: "Demo",
2186
- url: c,
2187
- source: void 0
2188
- });
2189
- const p = t.componentStories[e.tagName];
2190
- if (typeof p == "object" && a.push(...p), t.componentCssFileDocs !== void 0) {
2191
- e.cssProperties ??= [];
2192
- const d = new Set(e.cssProperties.map((m) => m.name));
2193
- e.cssProperties = [
2194
- ...e.cssProperties,
2195
- ...t.componentCssFileDocs.filter((m) => !d.has(m.name))
2196
- ], t.componentCssFileDocs = void 0;
2197
- }
2198
- a.length > 0 && (e.demos = a);
2199
- }
2200
- const lo = et(), co = {
2201
- summary: void 0,
2202
- description: void 0,
2203
- type: {
2204
- text: "Promise<this>",
2205
- references: [
2206
- {
2207
- name: "Promise",
2208
- module: "lib/lib.es5.d.ts",
2209
- package: "typescript",
2210
- viewUrl: void 0,
2211
- start: 0,
2212
- end: 7
2213
- }
2214
- ],
2215
- values: void 0,
2216
- source: void 0
2217
- }
2218
- }, po = ce, mo = ce, uo = ce, fo = ce, yo = ce, go = ce, vo = ce, yi = ce;
2219
- function ce(e, t, n, i, a) {
2220
- if (i.docsTags === void 0 || n === void 0)
2221
- return;
2222
- const r = i.docsTags.indexOf(U.copyDoc);
2223
- if (r === -1)
2224
- return;
2225
- const l = i.name;
2226
- let s = n?.[l];
2227
- s === void 0 && e.emitError(
2228
- "@copyDoc tag was used, but failed to find copyDoc definition for it. Documentation: https://webgis.esri.com/sdk/contributing/core/core/documenting-api#copydoc",
2229
- {
2230
- file: e.file,
2231
- node: t
2232
- }
2233
- ), !(typeof s == "function" && (s = s(i, a, e.apiModule), s === void 0)) && Qi(s, i, r);
2234
- }
2235
- function Pt(e, t, n) {
2236
- n.apiModule.exports.push({
2237
- kind: e.customElement === !0 ? "custom-element-definition" : e.kind === "interface" || e.kind === "mixin" ? "ts" : "js",
2238
- name: t ? "default" : e.tagName ?? e.name,
2239
- deprecated: void 0,
2240
- declaration: {
2241
- name: e.name,
2242
- module: void 0,
2243
- package: void 0,
2244
- viewUrl: void 0
2245
- }
2246
- });
2247
- }
2248
- const So = Ae, st = Ae, To = Ae, Kt = Ae, Ht = Ae;
2249
- function Ae(e, t, n, i) {
2250
- if (t === void 0) {
2251
- i.emitError("Computed function/method names are not yet supported.", {
2252
- file: i.file,
2253
- node: e
2254
- });
2255
- return;
2256
- }
2257
- const a = n ?? e, r = n !== void 0 && !o.isVariableStatement(n), l = o.isMethodDeclaration(e), s = o.isMethodSignature(e), c = l || s || r, p = n !== void 0 && o.isVariableStatement(n), m = o.isFunctionDeclaration(e) || p, f = !r && !p && o.isFunctionTypeNode(e) || o.isCallSignatureDeclaration(e), u = o.isConstructorDeclaration(e), v = u || o.isConstructSignatureDeclaration(e) || o.isConstructorTypeNode(e), C = i.isInLuminaMinimalExtraction || i.jsDoc === Ce, g = et();
2258
- let P, h, R = !1, L = !1;
2259
- if (!m && a.modifiers !== void 0)
2260
- for (let E = 0; E < a.modifiers.length; ++E)
2261
- switch (a.modifiers[E].kind) {
2262
- case o.SyntaxKind.StaticKeyword:
2263
- P = !0;
2264
- break;
2265
- case o.SyntaxKind.ProtectedKeyword:
2266
- h = "protected";
2267
- break;
2268
- case o.SyntaxKind.AbstractKeyword:
2269
- R = !0;
2270
- break;
2271
- case o.SyntaxKind.AsyncKeyword:
2272
- L = !0;
2273
- break;
2274
- }
2275
- const y = {
2276
- [j]: g,
2277
- kind: c ? "method" : m ? "function" : f ? "call-signature" : v ? "constructor" : void 0,
2278
- name: v || f ? void 0 : t,
2279
- static: P,
2280
- deprecated: void 0,
2281
- summary: void 0,
2282
- description: void 0,
2283
- docsTags: void 0,
2284
- typeParameters: nt(e.typeParameters, !1, i),
2285
- parameters: [],
2286
- return: u ? void 0 : {
2287
- summary: void 0,
2288
- description: void 0,
2289
- type: C ? L ? ao : fi : z(
2290
- e.type ?? qe(e, i) ?? Y(
2291
- { file: i.file, node: e },
2292
- "@public function must have a return type annotation",
2293
- i
2294
- ),
2295
- i
2296
- )
2297
- },
2298
- inheritedFrom: void 0,
2299
- signature: void 0,
2300
- privacy: h,
2301
- source: void 0
2302
- }, k = y, M = cn(y, i.jsDoc), I = C ? [] : e.parameters;
2303
- let D = M.length, T = !1, _ = 0;
2304
- for (let E = 0; E < I.length; ++E) {
2305
- const S = I[E], A = o.isIdentifier(S.name) ? S.name.escapedText : void 0;
2306
- if (A === "this") {
2307
- _ -= 1;
2308
- continue;
2309
- }
2310
- const W = u && A !== void 0 && S.modifiers !== void 0 && S.modifiers.length > 0 ? J(S, !0, i) : void 0;
2311
- if (W !== void 0) {
2312
- _ -= 1, D += 1, i.jsDoc = W;
2313
- const Q = vi(S, A, !1, i);
2314
- if (Q === void 0)
2315
- continue;
2316
- i.apiObject.members.push(Q);
2317
- const de = {
2318
- name: A,
2319
- deprecated: void 0,
2320
- summary: void 0,
2321
- description: Q.description,
2322
- docsTags: void 0,
2323
- optional: void 0,
2324
- rest: S.dotDotDotToken ? !0 : void 0,
2325
- type: Q.type,
2326
- default: Q.default
2327
- };
2328
- de.optional = $t(S, de), y.parameters.push(de);
2329
- continue;
2330
- }
2331
- let G = M[E + _]?.text, O, F;
2332
- if (!i.config.strict && (G === void 0 || A === void 0) && (G = A ?? `parameter${E}`), G === void 0) {
2333
- i.emitError(
2334
- `Expected @param tag for every parameter on a public function. If you need to include a non-public parameter on a public function, see https://webgis.esri.com/sdk/contributing/core/core/documenting-api#param${v ? " and https://webgis.esri.com/sdk/contributing/core/core/documenting-api#constructor" : ""}`,
2335
- { file: i.file, node: S }
2336
- ), T = !0;
2337
- break;
2338
- }
2339
- const B = G.indexOf(" ");
2340
- if (O = B === -1 ? G : G.slice(0, B), F = B === -1 ? "" : G.slice(B + 1).trim(), (F.startsWith("- ") || F.startsWith(`-
2341
- `)) && (F = F.slice(2).trim()), A !== void 0 && A !== O && `_${O}` !== A) {
2342
- const Q = O.startsWith("[") || O.endsWith("]");
2343
- if (i.config.strict) {
2344
- i.emitError(
2345
- `The '${A}' TypeScript parameter name does not match the @param tag at position ${E}, '${O}'${Q ? ". If you meant to mark the parameter as optional, use TypeScript's `?` syntax or `=` default value syntax instead of JSDoc [square brackets]" : ""}`,
2346
- {
2347
- file: i.file,
2348
- node: S
2349
- }
2350
- ), T = !0;
2351
- break;
2352
- } else
2353
- O = A.startsWith("_") ? A.slice(1) : A;
2354
- }
2355
- const me = S.type ?? (S.initializer === void 0 ? Y(
2356
- { file: i.file, node: S },
2357
- `Public parameter ${O} must have a type annotation or a default value`,
2358
- i
2359
- ) : Et(S.initializer, w.false, i.file, i)), ke = z(me, i), ie = {
2360
- name: O,
2361
- deprecated: void 0,
2362
- summary: void 0,
2363
- description: F || void 0,
2364
- docsTags: void 0,
2365
- optional: void 0,
2366
- rest: S.dotDotDotToken ? !0 : void 0,
2367
- type: ke,
2368
- default: $e(S.initializer, void 0, i.file)
2369
- };
2370
- ie.optional = $t(S, ie), y.parameters.push(ie);
2371
- }
2372
- if (i.config.strict && !T && D !== y.parameters.length && i.emitError(
2373
- `Expected @param tags to match the number of parameters on a public function. Found ${M.length} @param tags for ${y.parameters.length} TypeScript parameters. Documentation: https://webgis.esri.com/sdk/contributing/core/core/documenting-api#param${v ? " and https://webgis.esri.com/sdk/contributing/core/core/documenting-api#constructor" : ""}`,
2374
- { file: i.file, node: e }
2375
- ), y.parameters.length === 0)
2376
- y.parameters = void 0;
2377
- else {
2378
- let E = !0;
2379
- for (let S = y.parameters.length - 1; S >= 0; S--) {
2380
- const x = y.parameters[S];
2381
- E &&= x.optional === !0 || x.rest === !0 || x.default !== void 0, !E && x.optional && (x.optional = void 0, x.type.text.endsWith(" | undefined") || (x.type.text += " | undefined"));
2382
- }
2383
- }
2384
- l && i.componentTagName !== void 0 && (k.signature = _i(k), L && !Xi(k) && i.emitError("Public method marked as async must have a Promise<SomeType> return type annotation.", {
2385
- file: i.file,
2386
- node: e
2387
- })), i.functionLikeTypeParameters = void 0;
2388
- const N = m ? tt(a) : 0, q = m && i.exportDefaultName === t, K = N === 2 || q;
2389
- return m && (K ? Pt(y, !0, i) : N === 0 && i.config.strict && i.emitError("Expected @public function to be exported using named or default export.", {
2390
- file: i.file,
2391
- node: e
2392
- })), i.produceDts && (c || v || f ? (R && (g.isAbstract = !0), g.hasQuestionToken = a.questionToken !== void 0 ? !0 : void 0) : g.isDefaultExported = K || void 0), c ? mo(
2393
- i,
2394
- n ?? e,
2395
- i.config.documentation.copyDocDefinitions.methods,
2396
- y,
2397
- i.apiObject
2398
- ) : m && fo(
2399
- i,
2400
- n ?? e,
2401
- i.config.documentation.copyDocDefinitions.functions,
2402
- y,
2403
- i.apiModule
2404
- ), y;
2405
- }
2406
- const $t = (e, t) => (
2407
- // Keep ? as is
2408
- e.questionToken !== void 0 || // If had default value internally, but not publicly, add ?
2409
- e.initializer !== void 0 && t.default === void 0 ? !0 : void 0
2410
- );
2411
- function ho(e, t, n) {
2412
- return Tt(), Me(e, t), bt && t !== void 0 && n !== void 0 && (Tt(), Mt(t.getTypeAtLocation(n))), gi();
2413
- }
2414
- function Eo(e) {
2415
- return Tt(), Mt(e), gi();
2416
- }
2417
- let Le = !1, ae = !1, re = !1, Ie = !1, se = !1, bt = !1;
2418
- const le = [], te = [];
2419
- function Tt() {
2420
- Le = !1, ae = !1, re = !1, Ie = !1, se = !1, bt = !1, le.length = 0, te.length = 0;
2421
- }
2422
- function gi() {
2423
- if (!re && !Ie && !se && !Le)
2424
- return;
2425
- const e = [];
2426
- if (le.length > 0)
2427
- for (let t = 0; t < le.length; ++t)
2428
- e.push({ type: "string", value: le[t] });
2429
- else re && e.push(Co);
2430
- if (te.length > 0)
2431
- for (let t = 0; t < te.length; ++t)
2432
- e.push({ type: "number", value: te[t] });
2433
- else se && e.push(Po);
2434
- return Ie && e.push(bo), Le ? e.push(Mo) : ae && e.push(Do), e;
2435
- }
2436
- const Co = { type: "string", value: void 0 }, Po = { type: "number", value: void 0 }, bo = { type: "boolean", value: void 0 }, Mo = { type: "any", value: void 0 }, Do = { type: "object", value: void 0 };
2437
- function Me(e, t) {
2438
- switch (e.kind) {
2439
- case o.SyntaxKind.BooleanKeyword:
2440
- case o.SyntaxKind.TrueKeyword:
2441
- case o.SyntaxKind.FalseKeyword:
2442
- Ie = !0;
2443
- return;
2444
- case o.SyntaxKind.NumberKeyword:
2445
- se = !0;
2446
- return;
2447
- case o.SyntaxKind.StringKeyword:
2448
- case o.SyntaxKind.TemplateLiteralType:
2449
- re = !0;
2450
- return;
2451
- case o.SyntaxKind.AnyKeyword:
2452
- Le = !0;
2453
- return;
2454
- case o.SyntaxKind.LiteralType:
2455
- Me(e.literal, t);
2456
- return;
2457
- case o.SyntaxKind.StringLiteral:
2458
- case o.SyntaxKind.NoSubstitutionTemplateLiteral:
2459
- re = !0, le.push(e.text);
2460
- return;
2461
- case o.SyntaxKind.NumericLiteral:
2462
- se = !0, te.push(e.text);
2463
- return;
2464
- case o.SyntaxKind.PrefixUnaryExpression:
2465
- const n = e.operand;
2466
- n.kind === o.SyntaxKind.NumericLiteral ? (te.push(`-${n.text}`), se = !0) : ae = !0;
2467
- return;
2468
- case o.SyntaxKind.VoidKeyword:
2469
- case o.SyntaxKind.UndefinedKeyword:
2470
- case o.SyntaxKind.NullKeyword:
2471
- return;
2472
- case o.SyntaxKind.UnionType:
2473
- const i = e.types, a = Math.min(i.length, Ye);
2474
- for (let l = 0; l < a; ++l)
2475
- Me(i[l], t);
2476
- i.length > Ye && (le.length = 0, te.length = 0);
2477
- return;
2478
- case o.SyntaxKind.ParenthesizedType:
2479
- Me(e.type, t);
2480
- return;
2481
- case o.SyntaxKind.TypeQuery:
2482
- case o.SyntaxKind.IndexedAccessType:
2483
- case o.SyntaxKind.ImportType:
2484
- case o.SyntaxKind.TypeReference:
2485
- t === void 0 ? ae = !0 : Mt(
2486
- t.getTypeFromTypeNode(
2487
- e
2488
- )
2489
- );
2490
- return;
2491
- case o.SyntaxKind.TypeOperator:
2492
- const r = e;
2493
- r.operator === o.SyntaxKind.KeyOfKeyword ? re = !0 : r.operator === o.SyntaxKind.ReadonlyKeyword ? Me(r.type, t) : ae = !0;
2494
- return;
2495
- /*case ts.SyntaxKind.UnknownKeyword:
2496
- case ts.SyntaxKind.FunctionType:
2497
- case ts.SyntaxKind.ConstructorType:
2498
- case ts.SyntaxKind.ThisKeyword:
2499
- case ts.SyntaxKind.ConditionalType:
2500
- case ts.SyntaxKind.ArrayType:
2501
- case ts.SyntaxKind.TupleType:
2502
- case ts.SyntaxKind.IntersectionType:
2503
- case ts.SyntaxKind.ObjectKeyword:
2504
- case ts.SyntaxKind.SymbolKeyword:*/
2505
- default:
2506
- ae = !0;
2507
- return;
2508
- }
2509
- }
2510
- const Ye = 40;
2511
- function Mt(e) {
2512
- if (e.isUnion()) {
2513
- const t = Math.min(e.types.length, Ye);
2514
- for (let n = 0; n < t; ++n)
2515
- zt(e.types[n]);
2516
- e.types.length > Ye && (le.length = 0, te.length = 0);
2517
- } else
2518
- zt(e);
2519
- }
2520
- function zt(e) {
2521
- const t = e.flags;
2522
- let n = !1;
2523
- if (t & o.TypeFlags.StringLiteral ? (n = !0, re = !0, le.push(e.value)) : t & o.TypeFlags.StringLike && (n = !0, re = !0), t & o.TypeFlags.NumberLiteral ? (n = !0, se = !0, te.push(e.value.toString())) : t & o.TypeFlags.NumberLike && (n = !0, se = !0), t & o.TypeFlags.BooleanLike && (n = !0, Ie = !0), t & o.TypeFlags.Any) {
2524
- if (e.intrinsicName === "error") {
2525
- ae = !0, bt = !0;
2526
- return;
2527
- }
2528
- Le = !0, n = !0;
2529
- }
2530
- t & xo || n || (ae = !0);
2531
- }
2532
- const xo = o.TypeFlags.Null | o.TypeFlags.VoidLike, Sa = (e) => e.map(Ro).join(" | "), Ro = (e) => e.type === "string" && e.value !== void 0 ? `"${e.value}"` : e.value ?? e.type;
2533
- function Lo(e, t, n) {
2534
- let i;
2535
- const a = e.initializer;
2536
- let r;
2537
- if (e.questionToken !== void 0)
2538
- return;
2539
- if (e.type !== void 0)
2540
- o.isTypeReferenceNode(e.type) && e.type.typeName.escapedText === "EventEmitter" && (i = e.type.typeArguments?.[0] ?? We);
2541
- else if (a !== void 0 && o.isCallExpression(a)) {
2542
- const s = a.expression;
2543
- if (o.isIdentifier(s)) {
2544
- const c = s.escapedText;
2545
- c === Ke ? (i = a.typeArguments?.[0] ?? We, r = a.arguments[0]) : c === "reEmitEvent" ? i = a.typeArguments?.[0] ?? We : c.startsWith("use") && (i = jt(e, n));
2546
- } else if (o.isCallExpression(s) && o.isIdentifier(s.expression)) {
2547
- const c = s.expression.escapedText;
2548
- if (c === "usePropertyChange") {
2549
- const p = [];
2550
- for (let d = 0; d < a.arguments.length; ++d) {
2551
- const m = a.arguments[d];
2552
- o.isStringLiteral(m) && p.push(o.factory.createLiteralTypeNode(m));
2553
- }
2554
- if (p.length === 0)
2555
- return;
2556
- i = o.factory.createTypeLiteralNode([
2557
- o.factory.createPropertySignature(
2558
- void 0,
2559
- "name",
2560
- void 0,
2561
- p.length === 1 ? p[0] : o.factory.createUnionTypeNode(p)
2562
- )
2563
- ]);
2564
- } else c.startsWith("use") && (i = jt(e, n));
2565
- }
2566
- }
2567
- if (i === void 0)
2568
- return;
2569
- const l = {
2570
- name: t,
2571
- deprecated: void 0,
2572
- summary: void 0,
2573
- description: void 0,
2574
- docsTags: void 0,
2575
- type: z(i, n),
2576
- inheritedFrom: void 0,
2577
- privacy: void 0,
2578
- bubbles: void 0,
2579
- cancelable: void 0,
2580
- composed: void 0
2581
- };
2582
- return mn(l, n.jsDoc), r !== void 0 && Io(e, r, l, n), uo(
2583
- n,
2584
- e,
2585
- n.config.documentation.copyDocDefinitions.events,
2586
- l,
2587
- n.apiObject
2588
- ), l;
2589
- }
2590
- const Ke = "createEvent";
2591
- function Io(e, t, n, i) {
2592
- if (t !== void 0) {
2593
- if (!o.isObjectLiteralExpression(t)) {
2594
- i.emitError(`Expected object literal expression as first argument of ${Ke}().`, {
2595
- file: i.file,
2596
- node: e
2597
- });
2598
- return;
2599
- }
2600
- if (t.properties.some(o.isSpreadAssignment)) {
2601
- i.emitError(
2602
- `Unexpected spread syntax in ${Ke}() argument. ${Ke}() arguments must be statically parsable at compile time`,
2603
- {
2604
- file: i.file,
2605
- node: e
2606
- }
2607
- );
2608
- return;
2609
- }
2610
- for (const a of t.properties)
2611
- !o.isPropertyAssignment(a) || !o.isIdentifier(a.name) || (a.name.text === "cancelable" && !Z(a.initializer, i) && (n.cancelable = !1), a.name.text === "bubbles" && !Z(a.initializer, i) && (n.bubbles = !1), a.name.text === "composed" && !Z(a.initializer, i) && (n.composed = !1));
2612
- }
2613
- }
2614
- function jt(e, t) {
2615
- const n = t.program?.getTypeChecker?.();
2616
- if (n === void 0)
2617
- return;
2618
- const i = n.getTypeAtLocation(e);
2619
- if (!((i.aliasSymbol ?? i.symbol)?.name === "EventEmitter"))
2620
- return;
2621
- const r = n.getTypeArguments(i);
2622
- if (r.length === 0)
2623
- return We;
2624
- const l = r[0];
2625
- return n.typeToTypeNode(l, e, o.NodeBuilderFlags.NoTruncation);
2626
- }
2627
- function vi(e, t, n, i) {
2628
- if (t === void 0) {
2629
- i.emitError("Computed property names are not yet supported", { file: i.file, node: e });
2630
- return;
2631
- }
2632
- const a = e, r = De(a.modifiers, "property") ?? (i.pairedSetter === void 0 ? void 0 : De(i.pairedSetter.modifiers, "property")), l = r?.arguments[0], s = l !== void 0 && o.isObjectLiteralExpression(l) ? l.properties : void 0, c = o.isPropertyDeclaration(e) || o.isPropertySignature(e), p = o.isGetAccessor(e), d = Gi(), m = i.isInLuminaMinimalExtraction || i.jsDoc === Ce;
2633
- let f = !1, u = !1, v, C = !1, g, P, h;
2634
- if (c && e.modifiers !== void 0)
2635
- for (let E = 0; E < e.modifiers.length; ++E)
2636
- switch (e.modifiers[E].kind) {
2637
- case o.SyntaxKind.ReadonlyKeyword:
2638
- f = !0;
2639
- continue;
2640
- case o.SyntaxKind.AccessorKeyword:
2641
- u = !0;
2642
- continue;
2643
- case o.SyntaxKind.ProtectedKeyword:
2644
- v = "protected";
2645
- continue;
2646
- case o.SyntaxKind.StaticKeyword:
2647
- g = !0;
2648
- continue;
2649
- case o.SyntaxKind.AbstractKeyword:
2650
- C = !0;
2651
- continue;
2652
- }
2653
- n ||= f || p && i.pairedSetter === void 0;
2654
- const R = i.apiObject.customElement === !0;
2655
- let L = !1;
2656
- if (i.moduleHasAccessorLikeClass)
2657
- if (s !== void 0) {
2658
- for (let E = 0; E < s.length; ++E) {
2659
- const S = s[E];
2660
- if (!o.isPropertyAssignment(S)) {
2661
- L ||= o.isSpreadAssignment(S);
2662
- continue;
2663
- }
2664
- const x = S.name.escapedText;
2665
- x === "readOnly" && Z(S.initializer, i) ? n = !0 : x === "constructOnly" && Z(S.initializer, i) ? d.isConstructorOnly = !0 : x === "type" ? d.hasAutoCasting = !0 : x === "types" && Ao(
2666
- d,
2667
- S.initializer?.kind === o.SyntaxKind.ObjectLiteralExpression ? S.initializer : void 0
2668
- );
2669
- }
2670
- L && d.hasAutoCasting === void 0 && (d.hasAutoCasting = !0, d.autoCastingRequiresType = !0);
2671
- } else l !== void 0 && (d.hasAutoCasting = !0, d.autoCastingRequiresType = !0);
2672
- else if (R) {
2673
- const E = i.apiObject;
2674
- if (r === void 0) {
2675
- if (m)
2676
- return;
2677
- {
2678
- const S = c && !g ? Lo(e, t, i) : void 0;
2679
- if (S !== void 0) {
2680
- E.events ??= [], E.events.push(S);
2681
- return;
2682
- } else !i.config.strict && Si(e) ? (v = "protected", P = !1, i.jsDoc = {
2683
- ...i.jsDoc,
2684
- docsTags: [...i.jsDoc.docsTags, U.internal]
2685
- }) : r === void 0 && i.emitError(
2686
- "Public properties on a Lumina component must have a @property() decorator for lazy-loading compatibility.",
2687
- {
2688
- file: i.file,
2689
- node: e
2690
- }
2691
- );
2692
- }
2693
- } else if (s !== void 0)
2694
- for (let S = 0; S < s.length; ++S) {
2695
- const x = s[S];
2696
- if (!(!o.isPropertyAssignment(x) || !o.isIdentifier(x.name)))
2697
- switch (x.name.escapedText) {
2698
- case "attribute":
2699
- o.isStringLiteral(x.initializer) ? P = x.initializer.text : P = Z(x.initializer, i);
2700
- continue;
2701
- case "reflect":
2702
- Z(x.initializer, i) && (P ??= !0, h = !0);
2703
- continue;
2704
- case "readOnly":
2705
- Z(x.initializer, i) && (n = !0);
2706
- continue;
2707
- case "type":
2708
- case "converter":
2709
- P ??= !0;
2710
- continue;
2711
- }
2712
- }
2713
- }
2714
- const y = i.pairedSetter ?? (o.isSetAccessor(e) ? e : void 0), k = n ? void 0 : y;
2715
- u ||= r !== void 0 || p || y !== void 0, d.isAccessor = u || void 0;
2716
- const M = k?.parameters[0].type, I = a.type;
2717
- let D = M ?? I;
2718
- if (D === void 0) {
2719
- const E = k?.parameters[0].initializer ?? e.initializer;
2720
- if (c && E !== void 0 && o.isArrowFunction(E)) {
2721
- if (n)
2722
- return Ht(E, t, e, i);
2723
- Jt(e, i);
2724
- }
2725
- D = E === void 0 ? jn(e, i) ?? Y(
2726
- { file: i.file, node: e },
2727
- "Public property must have a type annotation or a default value",
2728
- i
2729
- ) : Et(E, n ? w.shallow : w.false, i.file, i);
2730
- } else if (D = Ct(D), c && o.isFunctionTypeNode(D)) {
2731
- if (n)
2732
- return Ht(D, t, e, i);
2733
- Jt(e, i);
2734
- }
2735
- const T = {
2736
- [j]: d,
2737
- kind: "field",
2738
- name: t,
2739
- static: g,
2740
- deprecated: void 0,
2741
- summary: void 0,
2742
- description: void 0,
2743
- docsTags: void 0,
2744
- // In minimal extraction, we care only for type.values (set below)
2745
- type: m ? { ...fi } : z(D, i),
2746
- getterType: void 0,
2747
- default: void 0,
2748
- readonly: n || void 0,
2749
- inheritedFrom: void 0,
2750
- privacy: v,
2751
- source: void 0,
2752
- attribute: !R || P === !1 ? void 0 : typeof P == "string" ? P : Ji(t),
2753
- reflects: h,
2754
- docsOnlyReadonly: void 0
2755
- };
2756
- dn(T, i.jsDoc);
2757
- const _ = T.default;
2758
- R && t === "messageOverrides" && (d.dtsTypeOverride = T.type.text, T.type = ro);
2759
- const N = R && r !== void 0;
2760
- if (N) {
2761
- !n && T.readonly === !0 && (T.docsOnlyReadonly = !0);
2762
- const E = i.program?.getTypeChecker?.();
2763
- T.type.values = E !== void 0 && D.pos === -1 && (D.kind === o.SyntaxKind.TypeQuery || D.kind === o.SyntaxKind.IndexedAccessType || D.kind === o.SyntaxKind.ImportType || D.kind === o.SyntaxKind.TypeReference) ? Eo(E.getTypeAtLocation(y?.parameters[0] ?? e)) : ho(D, E, y?.parameters[0] ?? e), (P === void 0 && T.type.values === void 0 && !i.config.context.isLuminaMinimalExtraction || T.readonly && !T.reflects) && (T.attribute = void 0);
2764
- const S = E !== void 0 && o.isPropertyDeclaration(e) && // BUG: should not check node.type here? but do check in property.getterType below
2765
- e.type !== void 0 && e.initializer !== void 0 && o.isPropertyAccessExpression(e.initializer) && o.isPropertyAccessExpression(e.initializer.expression) && e.initializer.expression.expression.kind === o.SyntaxKind.ThisKeyword && o.isIdentifier(e.initializer.expression.name) && o.isIdentifier(e.initializer.name);
2766
- if (("initializer" in e && e.initializer !== void 0 && (!T.default || !T.description) || S) && !m) {
2767
- const x = e.initializer, A = E?.getSymbolAtLocation(x), V = A !== void 0 && ((A.flags ?? 0) & o.SymbolFlags.Alias) !== 0 ? E?.getAliasedSymbol(A) : A;
2768
- let W, G;
2769
- const O = V?.getDeclarations();
2770
- if (O !== void 0)
2771
- for (let F = 0; F < O.length; ++F) {
2772
- const B = O[F];
2773
- W ??= o.isGetAccessor(B) ? B : void 0, G ??= o.isSetAccessor(B) ? B : void 0, "initializer" in B && (T.default = $e(
2774
- B.initializer,
2775
- T.default,
2776
- B.getSourceFile()
2777
- ));
2778
- }
2779
- S && W?.type !== void 0 && G !== void 0 && W.type.getText() !== G.parameters[0]?.type?.getText() && (T.getterType = {
2780
- text: z(W.type, i).text,
2781
- references: void 0,
2782
- values: void 0,
2783
- source: void 0
2784
- });
2785
- }
2786
- }
2787
- if (I !== void 0 && M !== void 0 && !m && // Quick perf check: type is definitely the same if raw type string matches.
2788
- // More reliable check follows in processing/index.ts, where printed normalized
2789
- // type string is compared.
2790
- I.getText(i.file) !== M.getText(i.file) ? T.getterType = z(I, i) : T.readonly === !0 && T.name === "type" && D.kind === o.SyntaxKind.LiteralType && D.literal.kind === o.SyntaxKind.StringLiteral && (i.moduleContext.typeName = D.literal.text), (d.hasAutoCasting === !0 || d.isConstructorOnly === !0) && (T.readonly === !0 && d.isConstructorOnly !== !0 ? d.hasAutoCasting = void 0 : T.getterType ??= {
2791
- ...T.type,
2792
- references: T.type.references === void 0 ? void 0 : [...T.type.references]
2793
- }), n && D.kind === o.SyntaxKind.LiteralType || (T.default = $e(
2794
- e.initializer,
2795
- T.default,
2796
- i.file
2797
- )), N) {
2798
- const E = _ === void 0 && T.default === "true";
2799
- T.type.values?.length === 1 && T.type.values[0].type === "boolean" && (T.default === void 0 ? T.default = "false" : E && T.deprecated === void 0 && (i.loggedBooleanWarning || i.config.context.logger.error(
2800
- `${Ii}Boolean properties should default to "false". Found default value "true" in ${i.apiObject.name}.${T.name}. See https://webgis.esri.com/references/lumina/properties#boolean-properties`
2801
- ), i.loggedBooleanWarning = !0));
2802
- }
2803
- return po(
2804
- i,
2805
- e,
2806
- i.config.documentation.copyDocDefinitions?.properties,
2807
- T,
2808
- i.apiObject
2809
- ), i.produceDts && C && (d.isAbstract = !0), c && e.questionToken !== void 0 && (T.type.text.endsWith(" | undefined") || (T.type.text = // Don't need to wrap non-accessors in |undefined as we replace |undefined
2810
- // with ? during printing
2811
- u && (D.kind === o.SyntaxKind.FunctionType || D.kind === o.SyntaxKind.ConstructorType || D.kind === o.SyntaxKind.ConditionalType || D.kind === o.SyntaxKind.InferType) ? `(${T.type.text}) | undefined` : `${T.type.text} | undefined`), T.getterType !== void 0 && !T.getterType.text.endsWith(" | undefined") && (T.getterType.text += " | undefined")), T;
2812
- }
2813
- function Jt(e, t) {
2814
- if (!t.config.strict)
2815
- return;
2816
- const n = t.jsDoc.docsTags;
2817
- for (let i = 0; i < n.length; ++i) {
2818
- const a = n[i].name;
2819
- if (a === "param" || a === "returns") {
2820
- t.emitError(
2821
- "@param and @returns tags are only allowed on method-like properties. If this property is intended to be documented as a method, please add the 'readonly' modifier.",
2822
- {
2823
- file: t.file,
2824
- node: e
2825
- }
2826
- );
2827
- return;
2828
- }
2829
- }
2830
- }
2831
- function Ao(e, t) {
2832
- if (e.hasAutoCasting = !0, e.autoCastingRequiresType = !0, t !== void 0)
2833
- for (let n = 0; n < t.properties.length; ++n) {
2834
- const i = t.properties[n];
2835
- if (o.isPropertyAssignment(i) && i.name.escapedText === "defaultKeyValue" && o.isStringLiteral(i.initializer)) {
2836
- e.autoCastingDefaultType = i.initializer.text;
2837
- return;
2838
- }
2839
- }
2840
- }
2841
- const Si = (e) => o.isPropertyDeclaration(e) && e.initializer !== void 0 && o.isCallExpression(e.initializer) && o.isIdentifier(e.initializer.expression) && e.initializer.expression.escapedText === "useT9n";
2842
- function Ze(e, t) {
2843
- const n = o.isClassDeclaration(e);
2844
- let i = e.name.escapedText;
2845
- const a = n ? t.componentTagName : void 0, r = !n && di(i, t);
2846
- let l = e.heritageClauses === void 0 || r ? void 0 : e.heritageClauses[0]?.token === o.SyntaxKind.ExtendsKeyword ? e.heritageClauses[0] : e.heritageClauses[1]?.token === o.SyntaxKind.ExtendsKeyword ? e.heritageClauses[1] : void 0;
2847
- if (t.config.context.supportApplyMixinsSyntax && !n && l?.types.length === 1 && o.isExpressionWithTypeArguments(l.types[0]) && l.types[0].expression.escapedText === "MixinInstances" && l.types[0].typeArguments?.length === 1) {
2848
- Go(i, l.types[0].typeArguments[0], t);
2849
- return;
2850
- }
2851
- const s = n && t.mixinName !== void 0 && l !== void 0 && o.isExpressionWithTypeArguments(l.types[0]) && o.isIdentifier(l.types[0].expression) && l.types[0].expression.escapedText === "TypedBase";
2852
- s && (l = void 0, i = t.mixinName);
2853
- const c = ii(), p = {
2854
- [j]: c,
2855
- kind: n ? "class" : "interface",
2856
- name: i,
2857
- customElement: a === void 0 ? void 0 : !0,
2858
- tagName: a,
2859
- privacy: void 0,
2860
- pascalCaseName: a === void 0 ? void 0 : (
2861
- /**
2862
- * We use the tag name rather than the class name to generate the
2863
- * type name because the class name may not start with the library
2864
- * prefix (Arcgis), where as tag name always does. This also matches
2865
- * Stencil's behavior.
2866
- */
2867
- qi(a)
2868
- ),
2869
- deprecated: void 0,
2870
- summary: void 0,
2871
- description: void 0,
2872
- docsTags: void 0,
2873
- demos: void 0,
2874
- typeParameters: s ? void 0 : nt(e.typeParameters, !0, t),
2875
- superclass: void 0,
2876
- supertypes: void 0,
2877
- mixins: void 0,
2878
- encapsulation: void 0,
2879
- formAssociated: void 0,
2880
- members: [],
2881
- attributes: void 0,
2882
- events: void 0,
2883
- slots: void 0,
2884
- cssParts: void 0,
2885
- cssProperties: void 0,
2886
- cssStates: void 0,
2887
- type: void 0,
2888
- source: void 0,
2889
- // REFACTOR: remove this deprecated property
2890
- importPath: a === void 0 ? void 0 : t.apiModule.path
2891
- }, d = p, m = d, f = d;
2892
- ni(p, t.jsDoc);
2893
- const u = r ? (
2894
- // Members will be added during post-processing
2895
- !1
2896
- ) : Ti(d, e.members, i, t);
2897
- s && (t.mixinMixins !== void 0 && (m.mixins = t.mixinMixins), u && t.emitError("Mixin class is not expected to have a @public constructor", { file: t.file, node: e })), l === void 0 ? a !== void 0 && m.superclass === void 0 && t.emitError(
2898
- "Lumina web component must extend LitElement class. Found a class that does not extend any class.",
2899
- {
2900
- file: t.file,
2901
- node: e
2902
- }
2903
- ) : ko(l, n, p, e, t), a !== void 0 && so(m, t), d.members.length === 0 && (a === void 0 && (d.members = void 0), r && (t.moduleContext.constructorPropertiesInterface = f));
2904
- const v = t.exportDefaultName === i, C = tt(e), g = v || C === 2;
2905
- return (g || a !== void 0) && Pt(d, g, t), n ? (a === void 0 ? go(
2906
- t,
2907
- e,
2908
- t.config.documentation.copyDocDefinitions.classes,
2909
- m,
2910
- t.apiModule
2911
- ) : vo(
2912
- t,
2913
- e,
2914
- t.config.documentation.copyDocDefinitions.customElements,
2915
- m,
2916
- t.apiModule
2917
- ), t.moduleHasClass && t.config.strict && t.emitError(
2918
- "A module may only export at most one public class/mixin/custom element. Documentation: https://webgis.esri.com/sdk/contributing/core/core/documenting-api#class",
2919
- { file: t.file, node: e }
2920
- ), t.moduleHasClass = !0) : yi(
2921
- t,
2922
- e,
2923
- t.config.documentation.copyDocDefinitions.interfaces,
2924
- f,
2925
- t.apiModule
2926
- ), t.produceDts && (c.isDefaultExported = g || void 0, n && (!s && (!v && C === 0) && t.config.strict && t.emitError("Expected @public class to be exported using named or default export.", {
2927
- file: t.file,
2928
- node: e
2929
- }), ci(e.modifiers, o.SyntaxKind.AbstractKeyword) ? c.hasExplicitAbstract = !0 : !u && (t.config.strict || a !== void 0) && (c.hasExplicitAbstract = !1))), t.objectLikeTypeParameters = void 0, d;
2930
- }
2931
- function ko(e, t, n, i, a) {
2932
- for (let r = 0; r < e.types.length; ++r) {
2933
- const l = e.types[r];
2934
- if (t) {
2935
- let s = l.typeArguments, c = l.expression;
2936
- if (o.isCallExpression(c)) {
2937
- do {
2938
- const d = c.expression;
2939
- if (o.isPropertyAccessExpression(d) && o.isIdentifier(d.expression) && o.isIdentifier(d.name) && d.expression.escapedText === "Collection" && d.name.escapedText === "ofType") {
2940
- const m = c.arguments[0];
2941
- if (!o.isIdentifier(m)) {
2942
- a.emitError("Expected the argument to Collection.ofType to be an identifier.", {
2943
- file: a.file,
2944
- node: m
2945
- });
2946
- break;
2947
- }
2948
- s = [o.factory.createTypeReferenceNode(m)], c = d.expression;
2949
- } else {
2950
- n.mixins ??= [];
2951
- const m = c.expression;
2952
- n.mixins.unshift(
2953
- Ee(m, c.typeArguments, a)
2954
- ), c = c.arguments[0];
2955
- }
2956
- } while (o.isCallExpression(c));
2957
- if (o.isClassExpression(c)) {
2958
- (c.members.length !== 0 || c.heritageClauses !== void 0) && a.emitError(
2959
- "The only supported inline class expression is an empty class. Extract into a separate named class",
2960
- { file: a.file, node: c }
2961
- );
2962
- break;
2963
- } else o.isExpressionWithTypeArguments(c) && (s = c.typeArguments, c = c.expression);
2964
- }
2965
- const p = Ee(
2966
- c,
2967
- a.isInLuminaMinimalExtraction ? void 0 : s,
2968
- a
2969
- );
2970
- if (p.name === "LitElement") {
2971
- p.name = "PublicLitElement", p.module = "PublicLitElement", p.package = "@arcgis/lumina";
2972
- const d = a.moduleContext.importsMap.LitElement;
2973
- d === void 0 ? a.emitError("Expected LitElement import to be defined", { file: a.file, node: i }) : d.actualName = "PublicLitElement";
2974
- }
2975
- n.superclass = p;
2976
- break;
2977
- } else {
2978
- const s = oo(l);
2979
- let c = s, p;
2980
- if (o.isExpressionWithTypeArguments(s))
2981
- c = s.expression, p = s.typeArguments;
2982
- else if (o.isTypeReferenceNode(s) && (c = s.typeName, p = s.typeArguments, c.escapedText === "Record" && p?.length === 2 && p[0].kind === o.SyntaxKind.NeverKeyword && p[1].kind === o.SyntaxKind.NeverKeyword))
2983
- continue;
2984
- n.supertypes ??= [], n.supertypes.push(
2985
- Ee(c, p, a)
2986
- );
2987
- }
2988
- }
2989
- }
2990
- function Ti(e, t, n, i) {
2991
- i.apiObject = e;
2992
- const a = e.customElement === !0, r = e.members, l = t.length;
2993
- let s, c = t[0], p, d = xe(c?.name), m = !1;
2994
- for (let f = 0; f < l; ++f) {
2995
- if (s = c, c = t[f + 1], p = d, d = xe(c?.name), i.pairedSetter !== void 0) {
2996
- i.pairedSetter = void 0;
2997
- continue;
2998
- }
2999
- if (p === void 0 && s.name?.kind === o.SyntaxKind.PrivateIdentifier)
3000
- continue;
3001
- c !== void 0 && p === d && (o.isGetAccessor(c) ? (i.pairedSetter = s, s = c) : o.isSetAccessor(c) && (i.pairedSetter = c));
3002
- let u = J(s, !0, i) ?? (i.pairedSetter === void 0 ? void 0 : J(i.pairedSetter, !0, i));
3003
- if (u === void 0 && !i.config.strict && (a ? p !== void 0 && qt(s, i.pairedSetter, !0) : !ci(s.modifiers, o.SyntaxKind.PrivateKeyword))) {
3004
- const C = J(s, !1, i) ?? (i.pairedSetter === void 0 ? void 0 : J(i.pairedSetter, !1, i)) ?? ze;
3005
- C.docsTags.includes(U.private) ? a && i.config.context.includeLuminaPrivateComponents ? u = Ce : u = void 0 : u = C;
3006
- } else u === void 0 && a && i.config.context.includeLuminaPrivateComponents && qt(s, i.pairedSetter, !1) && (u = Ce);
3007
- if (u === void 0) {
3008
- a && o.isPropertyDeclaration(s) && o.isIdentifier(s.name) && (s.name.escapedText === "shadowRootOptions" && s.initializer !== void 0 && o.isIdentifier(s.initializer) && s.initializer.escapedText === "noShadowRoot" && (i.apiObject.encapsulation = "none"), s.name.escapedText === "formAssociated" && s.initializer !== void 0 && Z(s.initializer, i) && (i.apiObject.formAssociated = !0));
3009
- continue;
3010
- }
3011
- i.jsDoc = u;
3012
- let v;
3013
- o.isPropertyDeclaration(s) || o.isPropertyAssignment(s) || o.isGetAccessorDeclaration(s) || o.isSetAccessorDeclaration(s) || o.isPropertySignature(s) ? v = vi(s, p, !1, i) : o.isMethodDeclaration(s) || o.isMethodSignature(s) ? v = st(s, p, void 0, i) : o.isConstructorDeclaration(s) || o.isConstructSignatureDeclaration(s) ? (m = !0, v = st(s, n, void 0, i)) : o.isCallSignatureDeclaration(s) ? v = st(s, n, void 0, i) : o.isIndexSignatureDeclaration(s) && e.kind === "interface" ? (lt.members.splice(
3014
- 0,
3015
- lt.members.length,
3016
- s
3017
- ), hi(e, lt, i), pe(e).emitAsTypeAlias = !0) : i.emitError(`@public used on unsupported member kind: ${o.SyntaxKind[s.kind]}`, {
3018
- file: i.file,
3019
- node: s
3020
- }), v !== void 0 && r.push(v);
3021
- }
3022
- return i.apiObject = void 0, m;
3023
- }
3024
- const lt = o.factory.createTypeLiteralNode(void 0);
3025
- function qt(e, t, n) {
3026
- if (e.kind === o.SyntaxKind.PropertyDeclaration || e.kind === o.SyntaxKind.GetAccessor || e.kind === o.SyntaxKind.SetAccessor) {
3027
- const i = e;
3028
- if ((De(i.modifiers, "property") ?? (t === void 0 ? void 0 : De(t.modifiers, "property"))) !== void 0)
3029
- return !0;
3030
- if (!n)
3031
- return !1;
3032
- if (Si(e))
3033
- return !0;
3034
- if (i.modifiers !== void 0)
3035
- for (let r = 0; r < (i.modifiers?.length ?? 0); ++r) {
3036
- const l = i.modifiers[r];
3037
- if (l.kind === o.SyntaxKind.PrivateKeyword || l.kind === o.SyntaxKind.ProtectedKeyword || l.kind === o.SyntaxKind.StaticKeyword)
3038
- return !1;
3039
- }
3040
- return e.kind === o.SyntaxKind.PropertyDeclaration && i.initializer !== void 0 && o.isCallExpression(i.initializer) ? o.isIdentifier(i.initializer.expression) && (i.initializer.expression.escapedText === "createEvent" || i.initializer.expression.escapedText === "useCloseEvent" || i.initializer.expression.escapedText === "useArcgisLoadError" || i.initializer.expression.escapedText === "useArcgisViewReadyError" || i.initializer.expression.escapedText === "reEmitEvent") || o.isCallExpression(i.initializer.expression) && o.isIdentifier(i.initializer.expression.expression) && i.initializer.expression.expression.escapedText === "usePropertyChange" : !1;
3041
- } else return e.kind === o.SyntaxKind.MethodDeclaration ? De(e.modifiers, "method") !== void 0 : !1;
3042
- }
3043
- function hi(e, t, n) {
3044
- const i = z(t, n);
3045
- if (e.type === void 0)
3046
- e.type = i;
3047
- else {
3048
- const a = `${e.type.text} &
3049
- `, r = a.length;
3050
- e.type = {
3051
- text: `${a}${i.text}`,
3052
- references: i.references === void 0 ? e.type.references : e.type.references === void 0 ? Ut(i.references, r) : [...e.type.references, ...Ut(i.references, r)],
3053
- values: void 0,
3054
- source: void 0
3055
- };
3056
- }
3057
- }
3058
- function Go(e, t, n) {
3059
- if (!o.isTypeQueryNode(t)) {
3060
- n.emitError("Expected a TypeQueryNode for applyMixins syntax", { file: n.file, node: t });
3061
- return;
3062
- }
3063
- if (!o.isIdentifier(t.exprName)) {
3064
- n.emitError("Expected an Identifier for the expression name in applyMixins syntax", {
3065
- file: n.file,
3066
- node: t
3067
- });
3068
- return;
3069
- }
3070
- const i = t.exprName.escapedText;
3071
- let a;
3072
- for (let s = n.file.statements.length - 1; s >= 0; --s) {
3073
- const c = n.file.statements[s];
3074
- if (!o.isVariableStatement(c))
3075
- continue;
3076
- const p = c.declarationList.declarations[0];
3077
- if (o.isIdentifier(p.name) && p.name?.escapedText === i) {
3078
- a = p;
3079
- break;
3080
- }
3081
- }
3082
- if (a === void 0) {
3083
- n.emitError(`Could not find variable declaration for ${i} in applyMixins syntax`, {
3084
- file: n.file,
3085
- node: t
3086
- });
3087
- return;
3088
- }
3089
- if (a.initializer === void 0 || !o.isAsExpression(a.initializer) || !o.isArrayLiteralExpression(a.initializer.expression)) {
3090
- n.emitError(
3091
- `Expected an 'as' expression with an array literal for the initializer of ${i} in applyMixins syntax`,
3092
- {
3093
- file: n.file,
3094
- node: a
3095
- }
3096
- );
3097
- return;
3098
- }
3099
- const r = n.apiModule.declarations.at(-1);
3100
- if (r?.kind !== "class" || r.name !== e) {
3101
- n.emitError(
3102
- `Expected the ${e} class to be defined right before the ${e} interface`,
3103
- {
3104
- file: n.file,
3105
- node: t
3106
- }
3107
- );
3108
- return;
3109
- }
3110
- const l = a.initializer.expression.elements;
3111
- r.mixins ??= [];
3112
- for (let s = 0; s < l.length; ++s) {
3113
- const c = l[s];
3114
- if (!o.isIdentifier(c)) {
3115
- n.emitError(`Expected an Identifier in the mixins array for ${i} in applyMixins syntax`, {
3116
- file: n.file,
3117
- node: c
3118
- });
3119
- return;
3120
- }
3121
- r.mixins.unshift(Ee(c, void 0, n));
3122
- }
3123
- }
3124
- function Fo(e, t) {
3125
- const n = e.type, i = e.name.escapedText, a = di(i, t), r = ii(), l = {
3126
- [j]: r,
3127
- kind: "interface",
3128
- name: i,
3129
- customElement: void 0,
3130
- tagName: void 0,
3131
- privacy: void 0,
3132
- pascalCaseName: void 0,
3133
- deprecated: void 0,
3134
- summary: void 0,
3135
- description: void 0,
3136
- docsTags: void 0,
3137
- demos: void 0,
3138
- typeParameters: nt(e.typeParameters, !0, t),
3139
- superclass: void 0,
3140
- supertypes: void 0,
3141
- mixins: void 0,
3142
- encapsulation: void 0,
3143
- formAssociated: void 0,
3144
- members: [],
3145
- attributes: void 0,
3146
- events: void 0,
3147
- slots: void 0,
3148
- cssParts: void 0,
3149
- cssProperties: void 0,
3150
- cssStates: void 0,
3151
- type: void 0,
3152
- source: void 0,
3153
- importPath: void 0
3154
- }, s = l;
3155
- if (ni(l, t.jsDoc), a)
3156
- t.moduleContext.constructorPropertiesInterface = s;
3157
- else {
3158
- r.emitAsTypeAlias = !0;
3159
- const c = o.isIntersectionTypeNode(n) ? n.types : [n];
3160
- for (let p = 0; p < c.length; ++p) {
3161
- const d = Ct(c[p]);
3162
- if (o.isTypeLiteralNode(d))
3163
- Ti(s, d.members, i, t);
3164
- else if (o.isTypeReferenceNode(d))
3165
- s.supertypes ??= [], s.supertypes.push(Ee(d.typeName, d.typeArguments, t));
3166
- else if (o.isFunctionTypeNode(d) || o.isConstructorTypeNode(d)) {
3167
- if (t.jsDoc = ze, s.docsTags !== void 0) {
3168
- t.jsDoc = { ...ze, docsTags: [] };
3169
- for (let m = 0; m < s.docsTags.length; ++m) {
3170
- const f = s.docsTags[m];
3171
- (f.name === "param" || f.name === "returns") && (t.jsDoc.docsTags.push(f), s.docsTags.splice(m, 1), m -= 1);
3172
- }
3173
- s.docsTags.length === 0 && (s.docsTags = void 0);
3174
- }
3175
- s.members.push(To(d, i, void 0, t));
3176
- } else
3177
- hi(s, d, t);
3178
- }
3179
- }
3180
- return t.objectLikeTypeParameters = void 0, yi(
3181
- t,
3182
- e,
3183
- t.config.documentation.copyDocDefinitions.interfaces,
3184
- s,
3185
- t.apiModule
3186
- ), s.members.length === 0 && (s.members = void 0), s;
3187
- }
3188
- function Oo(e, t, n) {
3189
- const i = e.initializer, a = i.body;
3190
- let r, l;
3191
- for (let d = 0; d < a.statements.length; ++d) {
3192
- const m = a.statements[d];
3193
- if (o.isVariableStatement(m)) {
3194
- const f = m.declarationList.declarations[0];
3195
- if (!o.isIdentifier(f.name) || f.name?.escapedText !== "TypedBase")
3196
- continue;
3197
- let u = f.initializer.expression.expression;
3198
- for (; o.isCallExpression(u); ) {
3199
- const v = u.expression;
3200
- r ??= [], r.push(Ee(v, u.typeArguments, n)), u = u.arguments[0];
3201
- }
3202
- } else o.isClassDeclaration(m) && (l = m);
3203
- }
3204
- if (l === void 0) {
3205
- n.emitError(`Failed to find class declaration inside the mixin ${t}`, {
3206
- file: n.file,
3207
- node: e
3208
- });
3209
- return;
3210
- }
3211
- nt(
3212
- // Skip the TBase type parameter - non-public implementation detail
3213
- i.typeParameters.length === 1 ? void 0 : i.typeParameters.slice(1),
3214
- !0,
3215
- n
3216
- ) !== void 0 && n.emitError(
3217
- "Type parameters are not yet supported in public mixins (the first TBase type parameter is a special case). See workaround in https://webgis.esri.com/sdk/contributing/core/core/mixins#limitations-of-mixins",
3218
- {
3219
- file: n.file,
3220
- node: e
3221
- }
3222
- ), n.mixinName = t, n.mixinMixins = r;
3223
- const p = Ze(l, n);
3224
- return p.kind = "mixin", p;
3225
- }
3226
- function No(e, t, n) {
3227
- const i = n.moduleHasClass;
3228
- n.moduleHasClass = !1;
3229
- const a = o.factory.createClassDeclaration(
3230
- [o.factory.createModifier(o.SyntaxKind.ExportKeyword)],
3231
- t,
3232
- void 0,
3233
- [
3234
- o.factory.createHeritageClause(o.SyntaxKind.ExtendsKeyword, [
3235
- o.factory.createExpressionWithTypeArguments(e, void 0)
3236
- ])
3237
- ],
3238
- []
3239
- ), r = Ze(a, n), l = r, s = pe(l);
3240
- return l.kind = "interface", l.supertypes = r.mixins, r.mixins = void 0, r.superclass !== void 0 && (l.supertypes ??= [], l.supertypes.unshift(r.superclass), r.superclass = void 0), n.moduleHasClass = i, s.isMixinBaseClass = !0, l;
3241
- }
3242
- function wo(e, t) {
3243
- const n = e.declarationList.declarations;
3244
- n.length !== 1 && t.emitError("Public variable statements must have only a single variable declarations. Found multiple.", {
3245
- file: t.file,
3246
- node: e
3247
- });
3248
- const i = n[0], a = i.name;
3249
- if (!o.isIdentifier(a)) {
3250
- t.config.strict && t.emitError("Expected public variable names to be an identifier.", {
3251
- file: t.file,
3252
- node: e
3253
- });
3254
- return;
3255
- }
3256
- const r = a.escapedText, l = t.exportDefaultName === r;
3257
- if (tt(e) === 0 && !l && t.config.strict && t.emitError("Expected @public variable to be exported as named or default export.", {
3258
- file: t.file,
3259
- node: e
3260
- }), t.mixinName !== void 0 && i.initializer !== void 0 && o.isCallExpression(i.initializer) && o.isIdentifier(i.initializer.expression) && i.initializer.expression.escapedText === t.mixinName)
3261
- return No(i.initializer, r, t);
3262
- let c = i.type;
3263
- const p = (e.declarationList.flags & o.NodeFlags.Const) !== 0;
3264
- if (c === void 0) {
3265
- const u = i.initializer;
3266
- if (u !== void 0 && o.isArrowFunction(u) && p)
3267
- return u.typeParameters?.at(0)?.name?.escapedText === "TBase" ? Oo(i, r, t) : Kt(u, r, e, t);
3268
- u === void 0 ? c = Y(
3269
- { file: t.file, node: i },
3270
- "Public variable must have a type annotation or a default value",
3271
- t
3272
- ) : c = Et(u, p ? w.shallow : w.false, t.file, t);
3273
- } else if (c = Ct(c), o.isFunctionTypeNode(c))
3274
- return Kt(c, r, e, t);
3275
- const d = Fi(), m = {
3276
- [j]: d,
3277
- kind: "variable",
3278
- name: r,
3279
- deprecated: void 0,
3280
- summary: void 0,
3281
- description: void 0,
3282
- docsTags: void 0,
3283
- source: void 0,
3284
- type: z(c, t),
3285
- default: void 0
3286
- };
3287
- return pn(m, t.jsDoc), p && c.kind === o.SyntaxKind.LiteralType || (m.default = $e(i.initializer, m.default, t.file)), yo(
3288
- t,
3289
- e,
3290
- t.config.documentation.copyDocDefinitions.variables,
3291
- m,
3292
- t.apiModule
3293
- ), l && (Pt(m, !0, t), t.produceDts && (d.isDefaultExported = !0)), m;
3294
- }
3295
- function Ei(e, t, n) {
3296
- const i = n.statementJsDocs[t];
3297
- if (i !== void 0) {
3298
- if (n.jsDoc = i, o.isClassDeclaration(e))
3299
- return Ze(e, n);
3300
- if (o.isFunctionDeclaration(e))
3301
- return So(e, e.name.escapedText, void 0, n);
3302
- if (o.isInterfaceDeclaration(e))
3303
- return Ze(e, n);
3304
- if (o.isTypeAliasDeclaration(e))
3305
- return Fo(e, n);
3306
- if (o.isVariableStatement(e))
3307
- return wo(e, n);
3308
- }
3309
- }
3310
- function Uo(e, t) {
3311
- const n = t.apiModule.declarations, i = e.statements;
3312
- for (let a = 0; a < i.length; ++a) {
3313
- const r = i[a], l = Ei(r, a, t);
3314
- l !== void 0 && n.push(l);
3315
- }
3316
- }
3317
- function Vo(e, t) {
3318
- const n = e.fileName.slice(t.config.context.cwd.length), i = t.watchFiles?.get(n);
3319
- if (i !== void 0) {
3320
- if (i.module !== void 0)
3321
- return i.module;
3322
- if (i.isEmptyModule)
3323
- return;
3324
- }
3325
- const a = n.slice(t.config.context.basePath.length), r = ee(a), l = Ve(r, t, !0), s = t.componentTagName === void 0 ? l : `${l}/customElement`;
3326
- t.mixinName = void 0, t.moduleHasClass = !1, t.apiClassLikeName = void 0, t.isInLuminaMinimalExtraction = t.config.context.isLuminaMinimalExtraction;
3327
- const c = /* @__PURE__ */ Object.create(null), p = t.localDeclarations;
3328
- p.clear();
3329
- const d = t.localPrivateDeclarations;
3330
- d?.clear(), t.exportDefaultName = void 0;
3331
- let m;
3332
- const f = {
3333
- class: void 0,
3334
- default: void 0,
3335
- named: /* @__PURE__ */ Object.create(null)
3336
- }, u = ti(e, s, c, f);
3337
- t.moduleContext = u;
3338
- const v = t.implicitPublicModules?.[l];
3339
- let C = !1;
3340
- const g = t.isJsApi && l.startsWith("applications/");
3341
- t.statementJsDocs.length = 0;
3342
- for (let L = 0; L < e.statements.length; ++L) {
3343
- const y = e.statements[L], k = y.kind === o.SyntaxKind.ClassDeclaration || y.kind === o.SyntaxKind.FunctionDeclaration || y.kind === o.SyntaxKind.InterfaceDeclaration || y.kind === o.SyntaxKind.TypeAliasDeclaration || y.kind === o.SyntaxKind.VariableStatement;
3344
- let M;
3345
- if (
3346
- // Only look at web components in Lumina's dev server
3347
- t.isInLuminaMinimalExtraction
3348
- )
3349
- M = y.kind === o.SyntaxKind.ClassDeclaration && t.componentTagName !== void 0 && y.heritageClauses !== void 0 && y.modifiers !== void 0 ? ze : void 0;
3350
- else if (k) {
3351
- if (M = J(y, !0, t), M === void 0 && !t.config.strict) {
3352
- const I = J(y, !1, t) ?? { description: void 0, docsTags: [] }, D = y.kind === o.SyntaxKind.ClassDeclaration && t.componentTagName !== void 0 && y.heritageClauses !== void 0 && y.modifiers !== void 0;
3353
- I.docsTags.includes(U.private) ? D && t.config.context.includeLuminaPrivateComponents ? (M = Ce, t.isInLuminaMinimalExtraction = !0) : M = void 0 : (D || v !== void 0 && Fn(y, v)) && (M = I);
3354
- } else M === void 0 && t.componentTagName !== void 0 && t.config.context.includeLuminaPrivateComponents && y.kind === o.SyntaxKind.ClassDeclaration && (M = Ce, t.isInLuminaMinimalExtraction = !0);
3355
- M !== void 0 && !t.config.strict && y.kind === o.SyntaxKind.ClassDeclaration && t.componentTagName !== void 0 && y.heritageClauses !== void 0 && y.modifiers !== void 0 && M.docsTags.includes(U.internal) && (C = !0);
3356
- }
3357
- if (t.statementJsDocs[L] = M, k || L === 0 && (m = J(e, !0, t)), M !== void 0)
3358
- g && M.docsTags.push(U.internal), p.add(
3359
- (y.name ?? y.declarationList?.declarations[0].name).escapedText
3360
- ), y.kind === o.SyntaxKind.ClassDeclaration ? t.apiClassLikeName = y.name?.escapedText : y.kind === o.SyntaxKind.VariableStatement && y.declarationList.declarations[0].initializer?.kind === o.SyntaxKind.ArrowFunction && (t.apiClassLikeName = y.declarationList.declarations[0].name.escapedText);
3361
- else if (o.isImportDeclaration(y)) {
3362
- const I = y.importClause;
3363
- if (I === void 0)
3364
- continue;
3365
- const D = y.moduleSpecifier.text, T = !D.startsWith("."), _ = T ? D : ee(D), N = T ? void 0 : Ve(mt(r, _), t), q = N === void 0 ? void 0 : t.config.types.typeReplacements[N];
3366
- if (Dn(y, t), I.name !== void 0) {
3367
- const E = I.name.escapedText, S = q?.[E], x = S?.[1], A = S === void 0 ? !T && D.endsWith(".json") ? D : _ : ye(s, S[0]), V = S?.[0] ?? N;
3368
- c[E] = {
3369
- type: S?.[2] ?? "default",
3370
- modulePath: V,
3371
- specifier: A,
3372
- replacementName: x,
3373
- actualName: void 0,
3374
- wasUsed: !1
3375
- };
3376
- }
3377
- const K = I.namedBindings;
3378
- if (K === void 0)
3379
- continue;
3380
- if (K.kind === o.SyntaxKind.NamespaceImport) {
3381
- const E = K.name.escapedText, S = q?.[E], x = S?.[1], A = S === void 0 ? _ : ye(s, S[0]), V = S?.[0] ?? N;
3382
- c[E] = {
3383
- type: "*",
3384
- modulePath: V,
3385
- specifier: A,
3386
- replacementName: x,
3387
- actualName: void 0,
3388
- wasUsed: !1
3389
- };
3390
- } else
3391
- for (let E = 0; E < K.elements.length; ++E) {
3392
- const S = K.elements[E], x = S.propertyName === void 0 ? void 0 : S.propertyName.escapedText ?? S.propertyName.text, A = S.name.escapedText, V = q?.[x ?? A], W = V?.[1], G = V === void 0 ? _ : ye(s, V[0]), O = V?.[0] ?? N;
3393
- c[A] = {
3394
- type: V?.[2] ?? "named",
3395
- modulePath: O,
3396
- specifier: G,
3397
- replacementName: W,
3398
- actualName: V === void 0 ? x : void 0,
3399
- wasUsed: !1
3400
- };
3401
- }
3402
- } else if (o.isExportAssignment(y)) {
3403
- if (o.isIdentifier(y.expression)) {
3404
- const I = y.expression.escapedText;
3405
- t.exportDefaultName = I, !p.has(I) && d?.has(I) === !0 && v?.pendingNames?.has("default") === !0 && d.set(I, Math.abs(d.get(I)));
3406
- }
3407
- } else if (o.isExportDeclaration(y) && y.moduleSpecifier !== void 0 && !t.isInLuminaMinimalExtraction) {
3408
- if (J(y, !0, t) !== void 0) {
3409
- const D = y.moduleSpecifier.text, T = !D.startsWith("."), _ = T ? D : mt(r, ee(D)), N = T ? void 0 : Ve(_, t), q = T ? D : ye(s, N);
3410
- u.reExports ??= [];
3411
- const K = [];
3412
- if (y.exportClause?.kind === o.SyntaxKind.NamedExports) {
3413
- const E = y.exportClause.elements;
3414
- for (let S = 0; S < E.length; ++S) {
3415
- const x = E[S], A = xe(x.name), V = x.propertyName === void 0 ? void 0 : xe(x.propertyName), W = V ?? A, G = V === void 0 ? void 0 : A;
3416
- K.push({
3417
- exportName: W,
3418
- aliasName: G,
3419
- isTypeOnly: y.isTypeOnly
3420
- }), !t.config.strict && N !== void 0 && je(N, _, W, t);
3421
- }
3422
- } else
3423
- K.push({
3424
- exportName: "*",
3425
- aliasName: y.exportClause === void 0 ? void 0 : xe(y.exportClause.name),
3426
- isTypeOnly: !1
3427
- }), !t.config.strict && N !== void 0 && je(N, _, "*", t);
3428
- u.reExports.push({
3429
- modulePath: N,
3430
- specifier: q,
3431
- isTypeOnly: y.isTypeOnly,
3432
- specifiers: K
3433
- });
3434
- }
3435
- } else o.isModuleDeclaration(y) ? J(y, !0, t) !== void 0 && (u.namespaces ??= [], u.namespaces.push(y.getFullText(e))) : d !== void 0 && k && d.set(
3436
- (y.name ?? y.declarationList?.declarations[0].name).escapedText,
3437
- -L
3438
- );
3439
- }
3440
- const P = t.config.types.typeReplacements[l];
3441
- if (P !== void 0) {
3442
- const L = Object.keys(P);
3443
- for (let y = 0; y < L.length; ++y) {
3444
- const k = L[y], M = P[k];
3445
- c[k] = {
3446
- type: M[2],
3447
- modulePath: M[0],
3448
- specifier: ye(s, M[0]),
3449
- replacementName: M[1],
3450
- actualName: void 0,
3451
- wasUsed: !1
3452
- };
3453
- }
3454
- }
3455
- t.moduleHasAccessorLikeClass = c.subclass?.specifier.includes("accessorSupport") ?? !1;
3456
- const h = {
3457
- [j]: u,
3458
- kind: "javascript-module",
3459
- path: l,
3460
- sourcePath: n,
3461
- deprecated: void 0,
3462
- description: void 0,
3463
- docsTags: void 0,
3464
- summary: void 0,
3465
- declarations: [],
3466
- exports: []
3467
- };
3468
- if (t.apiModule = h, Uo(e, t), d !== void 0) {
3469
- let L = !1;
3470
- do {
3471
- L = !1;
3472
- for (const [y, k] of d)
3473
- if (k > 0 || Object.is(k, 0)) {
3474
- d.delete(y), p.add(y), L = !0;
3475
- const M = e.statements[k], I = J(M, !1, t) ?? { description: void 0, docsTags: [] };
3476
- if (I.docsTags.includes(U.private))
3477
- t.emitError(
3478
- `Declaration "${y}" is marked @private but is used by public API in the same file. Either refactor our its reference or remove the @private tag.`,
3479
- {
3480
- file: e,
3481
- node: M
3482
- }
3483
- );
3484
- else {
3485
- C && !I.docsTags.includes(U.internal) && I.docsTags.push(U.internal), t.statementJsDocs[k] = I;
3486
- const T = Ei(M, k, t);
3487
- T !== void 0 && h.declarations.push(T);
3488
- }
3489
- }
3490
- } while (L);
3491
- }
3492
- if (h.declarations.length === 0 && u.reExports === void 0 && u.namespaces === void 0) {
3493
- i !== void 0 && (i.isEmptyModule = !0);
3494
- return;
3495
- }
3496
- t.moduleMap.set(l, h), t.watchFiles !== void 0 && (i === void 0 ? t.watchFiles.set(h.sourcePath, {
3497
- file: u.file,
3498
- module: h,
3499
- previousModule: void 0,
3500
- isEmptyModule: !1,
3501
- dependencies: /* @__PURE__ */ new Set(),
3502
- dependents: /* @__PURE__ */ new Map(),
3503
- docLinks: [],
3504
- hasDirtyLinks: !1,
3505
- wasRemoved: !1
3506
- }) : i.module = h);
3507
- const R = t.componentTagName === void 0 ? h.exports[0]?.declaration.name : void 0;
3508
- h.exports.length === 0 && (h.exports = void 0);
3509
- for (let L = 0; L < h.declarations.length; ++L) {
3510
- const y = h.declarations[L];
3511
- (y.kind === "class" || y.kind === "mixin") && (f.class = y), R === y.name && (f.default = y), f.named[y.name] = y;
3512
- }
3513
- return m !== void 0 && (t.moduleHasClass ? t.emitError(
3514
- "A module that exports a class must have JSDoc attached to the class, rather than module-top JSDoc. See https://webgis.esri.com/sdk/contributing/core/core/documenting-api#module-documentation",
3515
- {
3516
- file: e,
3517
- start: 0,
3518
- length: e.statements[0]?.getStart(e) ?? 1,
3519
- node: void 0
3520
- }
3521
- ) : (g && m.docsTags.push(U.internal), ln(h, m))), h;
3522
- }
3523
- async function Ta(e) {
3524
- const t = [], n = e.basePath, i = e.config.context.excludedDirectories, a = `${e.basePath}components/`, r = [], l = !e.config.strict || e.config.context.includeLuminaPrivateComponents;
3525
- e.componentPathMapping = /* @__PURE__ */ Object.create(null);
3526
- const s = e.isComponentProject ? (m) => Ki(m, a) : () => !1, c = e.isComponentProject ? p : d;
3527
- if (e.program === void 0)
3528
- await Mi(n, i, async (m) => {
3529
- if (Ci(m))
3530
- return;
3531
- const f = await Lt(m);
3532
- if (m.includes(".stories.")) {
3533
- const C = f.toString("utf8");
3534
- wt(C, m, e);
3535
- return;
3536
- }
3537
- const u = s(m);
3538
- if (u && l || // Exclude files before paying .toString() cost
3539
- f.includes(Ko) && (f.includes(Ho) || f.includes($o))) {
3540
- const C = f.toString("utf8"), g = Xt(m, C);
3541
- c(g, u);
3542
- }
3543
- });
3544
- else {
3545
- const m = e.program.getSourceFiles();
3546
- for (let f = 0; f < m.length; ++f) {
3547
- const u = m[f], v = u.fileName;
3548
- if (!Wo(v, e))
3549
- continue;
3550
- if (v.includes(".stories.")) {
3551
- wt(u.text, v, e);
3552
- continue;
3553
- }
3554
- const C = s(v);
3555
- (C && l || u.text.includes(Pi) || u.text.includes(bi)) && c(u, C);
3556
- }
3557
- }
3558
- function p(m, f) {
3559
- r.push(m);
3560
- const u = f ? Hi(m.text)?.[0] : void 0;
3561
- if (u !== void 0) {
3562
- const v = m.fileName.slice(e.basePath.length);
3563
- $i(u, e, v);
3564
- }
3565
- }
3566
- function d(m) {
3567
- e.file = m;
3568
- const f = Vo(m, e);
3569
- f !== void 0 && t.push(f);
3570
- }
3571
- for (let m = 0; m < r.length; ++m)
3572
- d(r[m]);
3573
- if (e.implicitPublicModules !== void 0) {
3574
- let m = !1;
3575
- do {
3576
- m = !1;
3577
- for (const f in e.implicitPublicModules) {
3578
- const u = e.implicitPublicModules[f], v = u.actualModulePath ?? f, C = e.moduleMap.get(v);
3579
- if (u.extractedNames === void 0)
3580
- continue;
3581
- if (u.pendingNames !== void 0) {
3582
- const R = e.watchFiles?.get(e.config.context.basePath + u.sourcePath);
3583
- let y = !(R !== void 0 && R.module === void 0 && !R.isEmptyModule);
3584
- const k = C === void 0 ? void 0 : oe(C).index;
3585
- for (const M of u.pendingNames)
3586
- if (!u.extractedNames.has(M) && (k === void 0 || (M === "default" ? k.default === void 0 : k.named[M] === void 0))) {
3587
- y = !1;
3588
- break;
3589
- }
3590
- if (y)
3591
- continue;
3592
- }
3593
- if (C !== void 0) {
3594
- t.splice(t.indexOf(C), 1);
3595
- const R = e.watchFiles?.get(C.sourcePath);
3596
- R !== void 0 && (R.module = void 0);
3597
- }
3598
- m = !0, u.extractedNames = u.pendingNames === void 0 ? void 0 : new Set(u.pendingNames);
3599
- let g = e.basePath + u.sourcePath, P = !1, h = e.program?.getSourceFile(g) ?? e.program?.getSourceFile(`${g}.ts`) ?? e.program?.getSourceFile(`${g}.tsx`) ?? e.program?.getSourceFile(`${g}.d.ts`);
3600
- if (h === void 0 && (h = e.program?.getSourceFile(`${g}/index.ts`) ?? e.program?.getSourceFile(`${g}/index.tsx`) ?? e.program?.getSourceFile(`${g}/index.d.ts`), h !== void 0 && (P = !0)), e.program === void 0 && (ee(g) === g && (g = ue(`${g}.ts`) ? `${g}.ts` : ue(`${g}.tsx`) ? `${g}.tsx` : ue(`${g}.d.ts`) ? `${g}.d.ts` : void 0, g === void 0 && (g = ue(`${g}/index.ts`) ? `${g}/index.ts` : ue(`${g}/index.tsx`) ? `${g}/index.tsx` : ue(`${g}/index.d.ts`) ? `${g}/index.d.ts` : void 0, g !== void 0 && (P = !0))), g !== void 0 && (h = Xt(g, await Lt(g, "utf8")))), h !== void 0) {
3601
- const R = h.fileName.slice(e.basePath.length);
3602
- R !== u.sourcePath && (u.sourcePath = R), P && (u.actualModulePath = `${v}/index`), d(h);
3603
- }
3604
- }
3605
- } while (m);
3606
- }
3607
- return t;
3608
- }
3609
- const Wo = (e, t) => _o(e) && Bo(e, t), _o = (e) => (e.endsWith(".ts") || e.endsWith(".tsx")) && !Ci(e), Ci = (e) => e.includes("__test") || e.includes(".e2e.") || e.includes(".spec.") || e.includes(".test."), Bo = (e, t) => e.startsWith(t.basePath) && !t.config.context.excludedDirectories.has(
3610
- Tn(e.slice(t.basePath.length))
3611
- ) && !e.includes("node_modules"), Qt = 32, Ko = 64, Pi = "@public", Ho = Buffer.from(Pi), bi = "@internal", $o = Buffer.from(bi);
3612
- async function ha(e) {
3613
- await Yt(e) && await Mi(e, /* @__PURE__ */ new Set(), Bi);
3614
- }
3615
- async function Mi(e, t, n) {
3616
- const i = [], a = [];
3617
- for await (const d of await It(e)) {
3618
- const m = `${e}${d.name}`;
3619
- d.isDirectory() && !t.has(d.name) ? a.push(m) : (d.name.endsWith(".ts") || d.name.endsWith(".tsx")) && i.push(m);
3620
- }
3621
- const r = i.length === 0 ? [] : [i], l = Promise.withResolvers();
3622
- function s(d) {
3623
- l.reject(d), r.length = 0;
3624
- }
3625
- let c = Qt;
3626
- for (let d = 0; d < Qt; ++d)
3627
- p().catch(s);
3628
- async function p() {
3629
- for (; ; )
3630
- if (r.length === 0 && a.length > 0) {
3631
- const d = a.shift(), m = [];
3632
- for await (const f of await It(d, { recursive: !0 }))
3633
- f.isFile() && (f.name.endsWith(".ts") || f.name.endsWith(".tsx")) && m.push(`${xi(f.parentPath)}/${f.name}`);
3634
- if (m.length === 0)
3635
- continue;
3636
- r.push(m);
3637
- } else if (r.length > 0) {
3638
- const d = r[0], m = d.shift();
3639
- d.length === 0 && r.shift(), await n(m);
3640
- } else {
3641
- c -= 1, c === 0 && l.resolve();
3642
- return;
3643
- }
3644
- }
3645
- return await l.promise;
3646
- }
3647
- function Xt(e, t) {
3648
- return o.createSourceFile(
3649
- e,
3650
- t,
3651
- {
3652
- languageVersion: o.ScriptTarget.Latest,
3653
- impliedNodeFormat: o.ModuleKind.ESNext,
3654
- // TypeScript parses too much around @param, @property and @deprecated tags
3655
- // It also parses out inline tags. We have to put them back together
3656
- // (overhead and complexity). Plus, it is a bit too tolerant - we want
3657
- // to disallow some ambiguous behavior to improve consistency.
3658
- // So, we disable JSDoc parsing and do it ourselves.
3659
- jsDocParsingMode: o.JSDocParsingMode.ParseNone
3660
- },
3661
- !1,
3662
- e.endsWith("ts") ? o.ScriptKind.TS : o.ScriptKind.TSX
3663
- );
3664
- }
3665
- export {
3666
- ye as a,
3667
- ya as b,
3668
- ha as c,
3669
- ga as d,
3670
- Ta as e,
3671
- va as f,
3672
- _o as g,
3673
- Bo as h,
3674
- Wo as i,
3675
- Ci as j,
3676
- Xt as k,
3677
- ma as l,
3678
- ua as m,
3679
- Vt as n,
3680
- Ut as o,
3681
- fa as p,
3682
- pa as r,
3683
- Sa as t
3684
- };