@arcgis/api-extractor 5.2.0-next.9 → 5.2.0-next.90

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,3721 +0,0 @@
1
- import { path as He, existsAsync as Yt, getCwd as Di, retrievePackageJson as ct, toPosixPathSeparators as Ri } from "@arcgis/components-build-utils";
2
- import { b as Li, p as Ii, l as Ai } from "./typeScript-DewdSAUb.js";
3
- import { getDefaultBasePath as Zt, buildViewUrl as ki, getViewUrl as Ue } from "./extractor/processing/links.js";
4
- import o from "typescript";
5
- import "fs/promises";
6
- import { a as ue, b as ei, c as ht, g as me, p as J, f as et, h as ti, d as Fe, e as Gi, i as Fi, j as ii, k as Oi } from "./privateContext-CB7P40up.js";
7
- import { maybeEscapePropertyName as Dt, printTypeAlias as Rt, printInterface as Ni, printFunction as wi, printVariable as Ui, printClass as Vi, printMethod as Wi, printProperty as ve, printGetterSetter as _i, printSignature as Bi } from "./utils/partPrinter.js";
8
- import { styleText as ie } from "node:util";
9
- import { readFile as Lt, opendir as It, rm as Ki } from "node:fs/promises";
10
- import { pathIsComponentEntrypoint as Hi, findDeclaredComponent as $i } from "./extractor/webComponent/findComponents.js";
11
- import { renameComponentFolder as Ve, addComponentPathMapping as zi } from "./extractor/webComponent/pathMapping.js";
12
- import { getBasename as Z, getPackageNameFromExternalSpecifier as dt, extractInitializer as $e, extractBooleanInitializer as Y, findDecorator as xe, getMemberName as De } from "./utils/astHelpers.js";
13
- import { readFileSync as ji, existsSync as ye } from "node:fs";
14
- import { uncapitalize as Ji, camelToKebab as qi, kebabToPascal as Qi } from "@arcgis/toolkit/string";
15
- import { globalPackageIdentifier as le, mergeApiNodes as Xi, isApiMethodAsync as Yi } from "./utils/apiHelpers.js";
16
- import { identity as Se } from "@arcgis/toolkit/function";
17
- import { pathToFileURL as Zi } from "node:url";
18
- import en from "path";
19
- import { getWidenedLiteralType as tn, unsafeUndocumentedTs as nn, unsafeGetUndocumentedPrinter as on } from "./utils/internalTypeScriptApis.js";
20
- const At = "developers.arcgis.com", kt = "next.gha.afd.arcgis.com";
21
- function fa(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 ? Li(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
- `${Ii.name}: Provided types.typeScriptConfig has no included files. If you used loadTypeScriptConfig, make sure to set resolveIncludedFiles to true.`
38
- );
39
- const u = {
40
- config: {
41
- ...m.config,
42
- options: {
43
- ...m.config.options,
44
- ...n?.compilerOptions
45
- }
46
- },
47
- configPath: m.configPath
48
- }, f = t?.dtsEmitPath === void 0 || t?.dtsEmitPath === "" ? "" : `${He.resolve(r, t.dtsEmitPath)}/`, S = f !== "", C = t?.environment ?? "production", v = C === "development", P = t?.emptyDtsEmitPath ?? (!v && S), h = i?.omitInternal ?? !1, L = n?.forceProduceDts ?? !1;
49
- if (h && (S || L))
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: f,
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 ?? Se,
79
- typeScriptInstanceCreated: n?.typeScriptInstanceCreated ?? Se,
80
- typeScriptConfigPath: m.configPath,
81
- typeScriptConfig: u,
82
- compilerOptions: u.config.options,
83
- declarationTextTransformers: n?.declarationTextTransformers ?? [],
84
- typeReplacements: n?.typeReplacements ?? {},
85
- forceProduceDts: L
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 ?? (v ? kt : At),
95
- alternativeHost: i?.alternativeHost ?? (v ? 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 ?? Se,
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 ?? Se
115
- };
116
- }
117
- async function ya(e, t) {
118
- const n = t !== void 0, i = e ?? process.cwd(), a = He.resolve(i, t ?? "api-extractor.config.ts"), r = await Yt(a);
119
- if (n && !r)
120
- throw Error(`The provided config file at ${a} does not exist.`);
121
- if (!r)
122
- return e === void 0 ? {} : { context: { cwd: e } };
123
- const l = (await import(Zi(a).href)).config;
124
- return {
125
- ...l,
126
- context: {
127
- ...l.context,
128
- cwd: l.context?.cwd ?? He.dirname(a)
129
- }
130
- };
131
- }
132
- function va(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 === Se ? void 0 : t, i = e === Se ? 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 an(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, rn = 32, sn = 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 === sn) {
292
- const l = a === 0 ? 0 : e.charCodeAt(a - 1);
293
- (a === 0 || l === rn || 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 ne(e, t, n) {
299
- return ni(e, t, n) ?? void 0;
300
- }
301
- function ze(e, t, n, i) {
302
- const a = ni(e, t, n);
303
- return a === void 0 ? i : a ?? void 0;
304
- }
305
- function ni(e, t, n) {
306
- const i = o.getLeadingCommentRanges(n.file.text, e.pos);
307
- if (i === void 0)
308
- return;
309
- let a;
310
- for (const l of i) {
311
- const s = n.file.text.slice(l.pos, l.end);
312
- s.startsWith("/**") && (a !== void 0 && n.config.strict && n.emitError(
313
- `Found multiple JSDoc comments for the same node. This is not allowed.
314
- If one of these was meant to be a file-level comment, read the documentation: https://webgis.esri.com/references/api-extractor/api-node-kinds#module-level-documentation
315
- If this is meant to be a function overload, read the documentation: https://webgis.esri.com/references/api-extractor/api-node-kinds#function-overloads`,
316
- {
317
- file: n.file,
318
- node: e
319
- }
320
- ), a = s);
321
- }
322
- if (a === void 0)
323
- return;
324
- const r = n.config.documentation.omitInternal;
325
- return ln(a, t, r, n);
326
- }
327
- function ln(e, t, n, i) {
328
- if (t && !e.includes("* @public") && (n || !e.includes("* @internal")))
329
- return null;
330
- const a = e.length - 2;
331
- let r = 3, l = "";
332
- const s = [];
333
- let c, p, d = !1;
334
- for (; r < a; ) {
335
- let m = e.indexOf(`
336
- `, r);
337
- m === -1 && (m = a);
338
- let u = e.slice(r, m).trim();
339
- if (r = m + 1, u === "*" ? u = "" : u.startsWith("*") && (u[1] === " " ? u = u.slice(2) : i.config.strict ? i.emitError(
340
- `For consistency, include a space character after '*' in JSDoc. Did not find it in "${e}"`,
341
- {
342
- file: i.file,
343
- node: void 0
344
- }
345
- ) : u = u.slice(1)), u.startsWith("@")) {
346
- c !== void 0 && !d && s.push(
347
- N[c] ?? {
348
- name: c,
349
- text: p.trim().replaceAll("\\@", "@") || void 0
350
- }
351
- );
352
- const f = u.indexOf(" "), S = f === -1 ? u.slice(1) : u.slice(1, f);
353
- if (S === "internal") {
354
- if (n)
355
- return null;
356
- t = !1;
357
- } else S === "public" ? (t = !1, d = !0) : d = S === "privateRemarks";
358
- const C = f === -1 ? "" : u.slice(f + 1);
359
- c = S, p = C;
360
- } else c !== void 0 ? p = `${p}
361
- ${u}` : l += `${u}
362
- `;
363
- }
364
- return t ? null : (c !== void 0 && !d && s.push(
365
- N[c] ?? {
366
- name: c,
367
- text: p.trim().replaceAll("\\@", "@") || void 0
368
- }
369
- ), {
370
- description: l.trim().replaceAll("\\@", "@") || void 0,
371
- docsTags: s
372
- });
373
- }
374
- function cn(e, t) {
375
- for (let n = 0; n < t.docsTags.length; ++n) {
376
- const i = t.docsTags[n], { name: a, text: r } = i;
377
- a === "deprecated" ? e.deprecated = r || !0 : (e.docsTags ??= [], e.docsTags.push(i));
378
- }
379
- e.description = t.description;
380
- }
381
- function oi(e, t) {
382
- for (let n = 0; n < t.docsTags.length; ++n) {
383
- const i = t.docsTags[n], { name: a, text: r } = i;
384
- if (a === "deprecated")
385
- e.deprecated = r || !0;
386
- else if (i === N.private)
387
- e.privacy = "private";
388
- else if (a === "csspart")
389
- e.cssParts ??= [], e.cssParts.push(at(r));
390
- else if (a === "cssstate")
391
- e.cssStates ??= [], e.cssStates.push(at(r));
392
- else if (a === "slot")
393
- e.slots ??= [], e.slots.push(at(r));
394
- else if (a === "esriCompatibilityName") {
395
- const l = ue(e);
396
- l.esriCompatibilityNames ??= [], l.esriCompatibilityNames.push(r ?? "");
397
- } else a === "readonly" || (e.docsTags ??= [], e.docsTags.push(i));
398
- }
399
- e.description = t.description;
400
- }
401
- function dn(e, t) {
402
- const n = e, i = [];
403
- for (let a = 0; a < t.docsTags.length; ++a) {
404
- const r = t.docsTags[a], { name: l, text: s } = r;
405
- if (l === "deprecated")
406
- e.deprecated = s || !0;
407
- else if (r === N.private)
408
- e.privacy = "private";
409
- else if (l === "param")
410
- i.push(r);
411
- else if (l === "returns")
412
- n.return.description = r.text;
413
- else if (l === "esriCompatibilityName") {
414
- const c = ht(e);
415
- c.esriCompatibilityNames ??= [], c.esriCompatibilityNames.push(s ?? "");
416
- } else
417
- e.docsTags ??= [], e.docsTags.push(r);
418
- }
419
- return e.description = t.description, i;
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
- a === "deprecated" ? e.deprecated = r || !0 : a === "default" ? e.default = r : i === N.readonly ? e.readonly = !0 : i === N.private ? e.privacy = "private" : (e.docsTags ??= [], e.docsTags.push(i));
425
- }
426
- e.description = t.description;
427
- }
428
- function mn(e, t) {
429
- for (let n = 0; n < t.docsTags.length; ++n) {
430
- const i = t.docsTags[n], { name: a, text: r } = i;
431
- if (a === "deprecated")
432
- e.deprecated = r || !0;
433
- else if (a === "default")
434
- e.default = r;
435
- else if (a !== "readonly") if (a === "esriCompatibilityName") {
436
- const l = ei(e);
437
- l.esriCompatibilityNames ??= [], l.esriCompatibilityNames.push(r ?? "");
438
- } else
439
- e.docsTags ??= [], e.docsTags.push(i);
440
- }
441
- e.description = t.description;
442
- }
443
- function un(e, t) {
444
- for (let n = 0; n < t.docsTags.length; ++n) {
445
- const i = t.docsTags[n], { name: a, text: r } = i;
446
- a === "deprecated" ? e.deprecated = r || !0 : i === N.private ? e.privacy = "private" : (e.docsTags ??= [], e.docsTags.push(i));
447
- }
448
- e.description = t.description;
449
- }
450
- function at(e) {
451
- if (e === void 0)
452
- return {
453
- name: "",
454
- deprecated: void 0,
455
- summary: void 0,
456
- description: void 0,
457
- syntax: void 0,
458
- default: void 0
459
- };
460
- const t = e.indexOf(" - ");
461
- if (t === -1)
462
- return e.startsWith("- ") ? {
463
- name: "",
464
- deprecated: void 0,
465
- summary: void 0,
466
- description: e.slice(2),
467
- syntax: void 0,
468
- default: void 0
469
- } : {
470
- name: e,
471
- deprecated: void 0,
472
- summary: void 0,
473
- description: void 0,
474
- syntax: void 0,
475
- default: void 0
476
- };
477
- let n, i = e.slice(0, t);
478
- if (i.startsWith("[") && i.endsWith("]")) {
479
- const r = i.slice(1, -1), l = r.indexOf("=");
480
- i = r.slice(0, l), n = r.slice(l + 1);
481
- }
482
- const a = e.slice(t + 3);
483
- return {
484
- name: i,
485
- deprecated: void 0,
486
- summary: void 0,
487
- description: a,
488
- syntax: void 0,
489
- default: n
490
- };
491
- }
492
- const N = {
493
- // Create a null prototype object to avoid collisions with Object.prototype when doing lookups
494
- // eslint-disable-next-line @typescript-eslint/naming-convention
495
- __proto__: null,
496
- internal: { name: "internal", text: void 0 },
497
- private: { name: "private", text: void 0 },
498
- copyDoc: { name: "copyDoc", text: void 0 },
499
- beta: { name: "beta", text: void 0 },
500
- experimental: { name: "experimental", text: void 0 },
501
- readonly: { name: "readonly", text: void 0 },
502
- required: { name: "required", text: void 0 }
503
- }, Re = {
504
- description: void 0,
505
- docsTags: []
506
- }, Ce = {
507
- description: void 0,
508
- docsTags: [N.private]
509
- };
510
- function fn(e, t, n) {
511
- switch (t.path) {
512
- case "layers/FeatureLayer": {
513
- const i = "export default class FeatureLayer extends FeatureLayerSuperclass {", a = e.indexOf(i);
514
- if (a === -1)
515
- return n.emitError(
516
- `Hardcoded behavior error: Expected .d.ts for FeatureLayer to include "${i}".`,
517
- { file: me(t).file, node: void 0 }
518
- ), e;
519
- const r = 'get type(): "feature";', l = e.indexOf(r);
520
- if (l === -1)
521
- return n.emitError(
522
- `Hardcoded behavior error: Expected .d.ts for FeatureLayer to include "${r}".`,
523
- { file: me(t).file, node: void 0 }
524
- ), e;
525
- const s = l + r.length, c = e.lastIndexOf("/**", l);
526
- if (c === -1)
527
- return n.emitError(
528
- `Hardcoded behavior error: Expected .d.ts for FeatureLayer to include JSDoc for "${r}".`,
529
- { file: me(t).file, node: void 0 }
530
- ), e;
531
- const p = `export default class FeatureLayer extends __FeatureLayerSansType {
532
- ${e.slice(c, s)}
533
- }
534
- export abstract class __FeatureLayerSansType extends FeatureLayerSuperclass {`;
535
- return e.slice(0, a) + p + e.slice(a + i.length, c) + e.slice(s);
536
- }
537
- case "layers/OrientedImageryLayer": {
538
- const i = `import type { __FeatureLayerSansType } from "./FeatureLayer.js";
539
- `, a = `extends FeatureLayer {
540
- `, r = e.indexOf(a);
541
- return r === -1 ? (n.emitError(
542
- `Hardcoded behavior error: Expected .d.ts for ${t.path} to include "${a}".`,
543
- { file: me(t).file, node: void 0 }
544
- ), e) : i + e.slice(0, r) + `extends __FeatureLayerSansType {
545
- ` + e.slice(r + a.length);
546
- }
547
- case "widgets/support/widget":
548
- return e + `
549
-
550
- export namespace tsx {
551
- namespace JSX {
552
- interface IntrinsicElements {
553
- [elementName: string]: any;
554
- }
555
-
556
- interface Element {
557
- }
558
- }
559
- }`;
560
- default:
561
- return e;
562
- }
563
- }
564
- function Sa(e, t) {
565
- let n = `/// <reference types="../index.d.ts" />
566
- `, i = `
567
-
568
- `, a = "", r = "", l = "", s = "", c = "", p = "", d = "", m = "", u = "", f = "", S = "", C = "";
569
- for (let T = 0; T < e.length; ++T) {
570
- const R = e[T];
571
- for (let A = 0; A < R.declarations.length; ++A) {
572
- const H = R.declarations[A];
573
- if (H.customElement !== !0)
574
- continue;
575
- const V = H;
576
- if (V.privacy !== void 0 || ue(V).hasExplicitAbstract === !0)
577
- continue;
578
- const { name: G, tagName: U, pascalCaseName: F, events: W } = V;
579
- i += `import type { ${G} } from "./${R.path}/customElement.js";
580
- `, n += `import type { ${G} } from "../${R.path}/customElement.js";
581
- `;
582
- const [fe, ke] = yn(V.name, V.members);
583
- let te = "", q = "";
584
- if (W !== void 0) {
585
- for (let de = 0; de < W.length; ++de) {
586
- const Ge = W[de], xt = `EventHandler<${G}["${Ge.name}"]>`;
587
- te += ` ${Dt(`on${Ge.name}`)}?: ${xt};
588
- `, q += ` ${Dt(`on${Ge.name[0].toUpperCase()}${Ge.name.slice(1)}`)}?: ${xt};
589
- `;
590
- }
591
- a += `export interface ${F}CustomEvent<T> extends CustomEvent<T> {
592
- detail: T;
593
- target: ${G};
594
- currentTarget: ${G};
595
- }
596
- `, r += ` type HTML${F}ElementEventMap = ${G}["@eventTypes"];
597
- `;
598
- }
599
- r += ` type HTML${F}Element = ${G};
600
-
601
- `, l += ` "${U}": ${G};
602
- `, s += `interface Lumina${F} extends ${fe}h.JSX.HTMLAttributes<${G}> {
603
- ${te}}
604
-
605
- `, c += ` "${U}": Lumina${F};
606
- `, p += `interface Preact${F} extends ${fe}HTMLAttributes<${G}> {
607
- ${te}}
608
-
609
- `, d += ` "${U}": Preact${F};
610
- `, m += `interface React${F} extends ${fe}HTMLProps<${G}> {
611
- ${te}}
612
-
613
- `, u += ` "${U}": React${F};
614
- `, f += `interface Stencil${F} extends ${fe}StencilJsx.HTMLAttributes<${G}> {
615
- ${q}}
616
-
617
- `, S += ` "${U}": Stencil${F};
618
- `, ke !== "" && (C += ke);
619
- }
620
- }
621
- if (r === "") {
622
- t.vanillaComponentTypes = "";
623
- return;
624
- }
625
- const v = "@arcgis/lumina";
626
- t.vanillaComponentTypes = `${i}
627
- export { ToEvents, TargetedEvent } from "${v}";
628
-
629
- ${a}
630
-
631
- declare global {
632
- interface HTMLElementTagNameMap {
633
- ${l}
634
- }
635
-
636
- ${r}
637
- }`;
638
- const P = `import "./index.js";
639
- export declare const defineCustomElements: import("${v}").DefineCustomElements;`, h = `${t.config.context.dtsEmitPath}loader.d.ts`;
640
- t.dtsFiles.set(h, P);
641
- const L = `${n}import type { h, EventHandler } from "${v}";
642
-
643
- ${C}${s}declare module "@arcgis/lumina" {
644
- export namespace h.JSX {
645
- interface IntrinsicElements {
646
- ${c} }
647
- }
648
- }`, b = ` interface IntrinsicElements {
649
- ${d} }`, y = `${n}import { HTMLAttributes } from "preact";
650
- import type { EventHandler } from "${v}";
651
-
652
- ${C}${p}declare module 'preact' {
653
- namespace createElement.JSX {
654
- ${b}
655
- }
656
- namespace h.JSX {
657
- ${b}
658
- }
659
- }`, k = `
660
- namespace JSX {
661
- interface IntrinsicElements {
662
- ${u} }
663
- }
664
- `, D = `${n}import type { HTMLProps } from 'react';
665
- import type { EventHandler } from "${v}";
666
-
667
- ${C}${m}declare module "react" {${k}}
668
- declare module "react/jsx-runtime" {${k}}
669
- declare module "react/jsx-dev-runtime" {${k}}`, I = `${n}import { JSXBase as StencilJsx } from "@stencil/core/internal";
670
- import type { EventHandler } from "${v}";
671
-
672
- ${C}${f}interface ExposedElements {
673
- ${S}}
674
-
675
- export namespace JSX {
676
- export interface IntrinsicElements extends ExposedElements {}
677
- }
678
-
679
- declare module "@stencil/core/internal/stencil-public-runtime" {
680
- export namespace h.JSX {
681
- interface IntrinsicElements extends ExposedElements {}
682
- }
683
- }`, x = `/** @deprecated import from stencil.d.ts instead */
684
- export * from "./stencil.js";`, g = `${t.config.context.dtsEmitPath}types/`, K = `${g}lumina.d.ts`, w = `${g}preact.d.ts`, $ = `${g}react.d.ts`, B = `${g}stencil.d.ts`, E = `${g}components.d.ts`;
685
- t.dtsFiles.set(K, L), t.dtsFiles.set(w, y), t.dtsFiles.set($, D), t.dtsFiles.set(B, I), t.dtsFiles.set(E, x);
686
- }
687
- function yn(e, t) {
688
- const n = [], i = [];
689
- let a = !1;
690
- if (t !== void 0)
691
- for (let s = 0; s < t.length; ++s) {
692
- const c = t[s];
693
- if (c.kind !== "field" || c.readonly !== void 0 || c.privacy !== void 0)
694
- continue;
695
- if (c.getterType !== void 0) {
696
- a = !0;
697
- continue;
698
- }
699
- c.docsTags?.includes(N.required) === !0 ? n.push(`"${c.name}"`) : i.push(`"${c.name}"`);
700
- }
701
- let r = n.length > 0 ? `Required<Pick<${e}, ${n.join(" | ")}>>` : "";
702
- i.length > 0 && (r.length > 0 && (r += ", "), r += `Partial<Pick<${e}, ${i.join(" | ")}>>`), a && (r.length > 0 && (r += ", "), r += `${e}SetterTypes`);
703
- const l = a ? `type ${e}SetterTypes = ${e}["${ai}"];
704
- ` : "";
705
- return [r.length === 0 ? "" : `${r}, `, l];
706
- }
707
- function ga(e, t) {
708
- const n = t.moduleMap.get("index");
709
- if (n === void 0)
710
- e.unshift(vn);
711
- else {
712
- const i = me(n);
713
- i.index.named.getAssetPath === void 0 && n.declarations.push(ri), i.index.named.setAssetPath === void 0 && n.declarations.push(si);
714
- }
715
- }
716
- const ai = "@setterTypes", ri = {
717
- [J]: et(),
718
- kind: "function",
719
- name: "getAssetPath",
720
- static: void 0,
721
- deprecated: void 0,
722
- summary: void 0,
723
- description: "Get a resolved path from where an asset can be loaded.",
724
- docsTags: void 0,
725
- typeParameters: void 0,
726
- parameters: [
727
- {
728
- name: "suffix",
729
- deprecated: void 0,
730
- summary: void 0,
731
- description: "The relative path for the asset.",
732
- docsTags: void 0,
733
- optional: void 0,
734
- rest: void 0,
735
- type: {
736
- text: "string",
737
- references: void 0,
738
- values: void 0,
739
- source: void 0
740
- },
741
- default: void 0
742
- }
743
- ],
744
- return: {
745
- summary: void 0,
746
- description: void 0,
747
- type: {
748
- text: "string",
749
- references: void 0,
750
- values: void 0,
751
- source: void 0
752
- }
753
- },
754
- inheritedFrom: void 0,
755
- signature: void 0,
756
- privacy: void 0,
757
- source: void 0
758
- }, si = {
759
- [J]: et(),
760
- kind: "function",
761
- name: "setAssetPath",
762
- static: void 0,
763
- deprecated: void 0,
764
- summary: void 0,
765
- description: `Used to manually set the base path where package assets (like localization
766
- and icons) can be found.
767
-
768
- By default, the package assets are loaded from
769
- \`https://js.arcgis.com/<version>/<simplified-package-name>/\`. We are hosting
770
- our assets on a CDN (Content Delivery Network) to ensure fast and reliable
771
- access. It is CORS-enabled, so you can load the assets from any domain. This
772
- is the recommended way to load the assets and avoid bundling them with your
773
- application.
774
-
775
- However, if you need to host the assets locally, you can copy them manually
776
- as part of your build process and use \`setAssetPath\` to customize where the
777
- browser will load the assets from.`,
778
- docsTags: void 0,
779
- typeParameters: void 0,
780
- parameters: [
781
- {
782
- name: "path",
783
- deprecated: void 0,
784
- summary: void 0,
785
- description: "Relative or absolute path to the assets folder.",
786
- docsTags: void 0,
787
- optional: void 0,
788
- rest: void 0,
789
- type: {
790
- text: "URL | string",
791
- references: [
792
- {
793
- name: "URL",
794
- module: void 0,
795
- package: le,
796
- viewUrl: "https://developer.mozilla.org/docs/Web/API/URL",
797
- start: 0,
798
- end: 3
799
- }
800
- ],
801
- values: void 0,
802
- source: void 0
803
- },
804
- default: void 0
805
- }
806
- ],
807
- return: {
808
- summary: void 0,
809
- description: void 0,
810
- type: {
811
- text: "void",
812
- references: void 0,
813
- values: void 0,
814
- source: void 0
815
- }
816
- },
817
- inheritedFrom: void 0,
818
- signature: void 0,
819
- privacy: void 0,
820
- source: void 0
821
- }, li = ti(void 0, "index", {}, { class: void 0, default: void 0, named: {} });
822
- li.importsText = "";
823
- const vn = {
824
- [J]: li,
825
- kind: "javascript-module",
826
- path: "index",
827
- sourcePath: "src/index.ts",
828
- deprecated: void 0,
829
- description: void 0,
830
- docsTags: void 0,
831
- summary: void 0,
832
- declarations: [ri, si],
833
- exports: void 0
834
- };
835
- function pt(e, t) {
836
- let i = t.startsWith("./") ? t.slice(2) : t, a = e;
837
- for (; ; ) {
838
- const r = a.lastIndexOf("/");
839
- if (a = r === -1 ? "" : a.slice(0, r), i.startsWith("../"))
840
- i = i.slice(3);
841
- else
842
- return a === "" ? i : `${a}/${i}`;
843
- }
844
- }
845
- function Sn(e, t) {
846
- let n = 0;
847
- for (; ; ) {
848
- const a = e.indexOf("/", n) + 1;
849
- if (a === 0)
850
- break;
851
- const r = e.slice(n, a), l = t.slice(n, a);
852
- if (r !== l)
853
- break;
854
- n = a;
855
- }
856
- let i = "";
857
- for (let a = n; a < e.length && (a = e.indexOf("/", a), a !== -1); ++a)
858
- i += "../";
859
- return i.length === 0 && (i = "./"), `${i}${t.slice(n)}.js`;
860
- }
861
- function Ft(e, t, n = 0) {
862
- for (; n < e.length; ++n) {
863
- const i = e[n];
864
- i.start += t, i.end += t;
865
- }
866
- return e;
867
- }
868
- function Ot(e, t) {
869
- if (e === t)
870
- return !0;
871
- if (typeof e != "object" || typeof t != "object" || e === null || t === null)
872
- return !1;
873
- if (Array.isArray(e)) {
874
- if (!Array.isArray(t) || e.length !== t.length)
875
- return !1;
876
- for (let a = 0; a < e.length; ++a)
877
- if (!Ot(e[a], t[a]))
878
- return !1;
879
- return !0;
880
- }
881
- const n = Object.keys(e), i = Object.keys(t);
882
- if (n.length !== i.length)
883
- return !1;
884
- for (let a = 0; a < n.length; ++a) {
885
- const r = n[a];
886
- if (!Ot(e[r], t[r]))
887
- return !1;
888
- }
889
- return !0;
890
- }
891
- function Ta(e, t) {
892
- const n = Te(e), i = he(n), a = me(e);
893
- if (a.index.class?.privacy !== void 0)
894
- return e.declarations.length > 1 && t.emitError(
895
- `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(", ")}`,
896
- { file: a.file, node: void 0 }
897
- ), "";
898
- let r = `${i}${a.importsText}`;
899
- if (r !== "" && (r += `
900
- `), a.reExports !== void 0) {
901
- for (let s = 0; s < a.reExports.length; ++s) {
902
- const c = a.reExports[s];
903
- let p = "";
904
- if (c.specifiers[0].exportName === "*") {
905
- const m = c.specifiers[0];
906
- p = (c.isTypeOnly ? "type *" : "*") + (m.aliasName ? ` as ${m.aliasName}` : "");
907
- } else {
908
- for (let m = 0; m < c.specifiers.length; ++m) {
909
- const u = c.specifiers[m];
910
- p += (m === 0 ? "{" : ",") + (c.isTypeOnly ? " type " : " ") + u.exportName + (u.aliasName ? ` as ${u.aliasName}` : "");
911
- }
912
- p += " }";
913
- }
914
- const d = c.modulePath === void 0 ? c.externalSpecifier : Sn(a.dtsPath, c.modulePath);
915
- r += `export ${p} from "${d}";
916
- `;
917
- }
918
- r += `
919
- `;
920
- }
921
- if (a.namespaces !== void 0)
922
- for (let s = 0; s < a.namespaces.length; ++s)
923
- r += `${a.namespaces[s]}
924
-
925
- `;
926
- const l = e.declarations;
927
- a.constructorPropertiesInterface !== void 0 && (r += `${Nt(a.constructorPropertiesInterface)}
928
-
929
- `);
930
- for (let s = 0; s < l.length; ++s) {
931
- const c = l[s];
932
- r += Nt(c), s < l.length - 1 && (r += `
933
-
934
- `);
935
- }
936
- return t.isJsApi ? fn(r, e, t) : (t.isComponentProject && (e.exports?.[0].kind === "custom-element-definition" ? r = `/// <reference path="../../index.d.ts" />
937
- ${r}` : e.path === "index" && (r += t.vanillaComponentTypes)), r);
938
- }
939
- function he(e) {
940
- return e === void 0 ? "" : `/*${an(e)}*/
941
- `;
942
- }
943
- function Nt(e) {
944
- let t = Te(e), n = "";
945
- if (e.kind === "class" || e.kind === "mixin")
946
- n = wt(e);
947
- else if (e.kind === "interface") {
948
- const a = ue(e);
949
- if (e.supertypes === void 0 && e.type === void 0 && e.members?.length === 1 && (e.members[0].kind === "call-signature" || e.members[0].kind === "constructor")) {
950
- const l = e.members[0];
951
- let s = ci(l, !0);
952
- const c = Te(l)?.docsTags;
953
- c !== void 0 && (t = {
954
- description: t?.description,
955
- docsTags: [...c, ...t?.docsTags ?? []]
956
- });
957
- const p = s.indexOf("): ");
958
- s = `${s.slice(0, p)}) => ${s.slice(p + 3, -1)}`, n = Rt(e.name, e.typeParameters, void 0, s);
959
- } else if (a.isMixinBaseClass === !0)
960
- n = wt(e);
961
- else if (a.emitAsTypeAlias === !0) {
962
- let l = e.type?.text;
963
- const s = mt(e);
964
- 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);
965
- } else {
966
- const l = mt(e);
967
- n = Ni(
968
- a.isDefaultExported === !0,
969
- e.name,
970
- e.typeParameters,
971
- e.supertypes,
972
- l
973
- );
974
- }
975
- } else if (e.kind === "function") {
976
- const a = ht(e);
977
- n = wi(
978
- a.isDefaultExported === !0,
979
- e.name,
980
- e.typeParameters,
981
- e.parameters,
982
- e.return.type.text
983
- );
984
- } else if (e.kind === "variable") {
985
- const a = ei(e);
986
- n += Ui(a.isDefaultExported === !0, e.name, e.type.text);
987
- }
988
- return `${he(t)}${n}`;
989
- }
990
- function wt(e) {
991
- const t = ue(e), n = t.isDefaultExported === !0, i = mt(e), a = e, r = e;
992
- let l, s = a.mixins ?? r.supertypes;
993
- 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`;
994
- let c = Vi(
995
- t.hasExplicitAbstract !== void 0,
996
- n,
997
- e.name,
998
- e.typeParameters,
999
- l,
1000
- i
1001
- );
1002
- if (s !== void 0) {
1003
- c += `
1004
- declare const ${l}:`, a.superclass !== void 0 && (c += ` typeof ${Fe(a.superclass)}`);
1005
- for (let p = 0; p < s.length; ++p) {
1006
- const d = s[p];
1007
- c += ` & typeof ${Fe(d)}`;
1008
- }
1009
- }
1010
- return c;
1011
- }
1012
- function mt(e) {
1013
- const t = e.members;
1014
- let n = "";
1015
- const i = ue(e);
1016
- if (e.kind === "mixin" && (n += `constructor(...args: any[]);
1017
- `), i.eventTypesProperty !== void 0) {
1018
- let l = Tn;
1019
- if (i.eventTypesProperty.description !== void 0 || i.eventTypesProperty.docsTags !== void 0) {
1020
- const c = Te(i.eventTypesProperty);
1021
- l = he(c);
1022
- }
1023
- const s = Ut(i.eventTypesProperty);
1024
- n += `${l}${s}
1025
- `;
1026
- }
1027
- const a = e, r = e.customElement === !0;
1028
- if (t !== void 0) {
1029
- let l = "";
1030
- for (let s = 0; s < t.length; ++s) {
1031
- const c = t[s];
1032
- if (c.inheritedFrom !== void 0 || c.privacy === "private")
1033
- continue;
1034
- const d = Te(c);
1035
- n += he(d), c.kind === "field" ? (r && c.getterType !== void 0 && (l += ` ${ve(!1, !1, !1, !1, !1, c.docsTags?.includes(N.required) !== !0, c.name, c.type.text)}
1036
- `), n += Ut(c)) : n += ci(c, !1), n += `
1037
- `;
1038
- }
1039
- l !== "" && (n += `${ve(!1, !1, !1, !1, !1, !1, ai, `{
1040
- ${l}}`)}
1041
- `);
1042
- }
1043
- if (r && a.events !== void 0) {
1044
- let l = e.name;
1045
- if (e.typeParameters !== void 0) {
1046
- l += "<";
1047
- for (let c = 0; c < e.typeParameters.length; ++c)
1048
- l += e.typeParameters[c].name, c < e.typeParameters.length - 1 && (l += ", ");
1049
- l += ">";
1050
- }
1051
- let s = "";
1052
- for (let c = 0; c < a.events.length; ++c) {
1053
- const p = a.events[c];
1054
- if (p.inheritedFrom === void 0) {
1055
- const d = Te(p);
1056
- n += `${he(d)}${ve(!1, !1, !1, !0, !1, !1, p.name, `import("${gn}").TargetedEvent<this, ${p.type.text}>`)}
1057
- `;
1058
- }
1059
- s += ` ${ve(!1, !1, !1, !1, !1, !1, p.name, `${l}["${p.name}"]["detail"]`)}
1060
- `;
1061
- }
1062
- n += `${ve(!1, !1, !1, !0, !1, !1, "@eventTypes", `{
1063
- ${s}}`)}
1064
- `;
1065
- }
1066
- return n === "" ? "" : `
1067
- ${n.replaceAll(`
1068
- `, `
1069
- `).slice(0, -2)}`;
1070
- }
1071
- const gn = "@arcgis/lumina";
1072
- function Ut(e) {
1073
- let t = "";
1074
- const n = Gi(e), i = n.isAccessor === !0, a = e.readonly === !0;
1075
- if (e.getterType !== void 0 || i && a)
1076
- t += _i(
1077
- e.privacy !== void 0,
1078
- n.isAbstract === !0,
1079
- e.static === !0,
1080
- e.name,
1081
- e.getterType?.text ?? e.type.text,
1082
- a ? void 0 : e.type.text
1083
- );
1084
- else {
1085
- const r = n.dtsTypeOverride ?? e.type.text, l = i ? !1 : r.endsWith(" | undefined"), s = l ? r.slice(0, -12) : r;
1086
- t += ve(
1087
- e.privacy !== void 0,
1088
- n.isAbstract === !0,
1089
- e.static === !0,
1090
- a,
1091
- i,
1092
- l,
1093
- e.name,
1094
- s
1095
- );
1096
- }
1097
- return t;
1098
- }
1099
- function ci(e, t) {
1100
- const n = ht(e);
1101
- return Wi(
1102
- e.privacy !== void 0,
1103
- n.isAbstract === !0,
1104
- e.static === !0,
1105
- n.hasQuestionToken === !0,
1106
- e.kind === "constructor" ? t ? "new" : "constructor" : e.kind === "call-signature" ? "" : e.name,
1107
- e.typeParameters,
1108
- e.parameters,
1109
- e.return?.type.text
1110
- );
1111
- }
1112
- const Tn = he({
1113
- description: void 0,
1114
- docsTags: [
1115
- {
1116
- name: "deprecated",
1117
- text: `Do not directly reference this property.
1118
- Use EventNames and EventTypes helpers from @arcgis/core/Evented`
1119
- }
1120
- ]
1121
- });
1122
- function ha() {
1123
- const e = Date.now();
1124
- return () => (Date.now() - e) / hn;
1125
- }
1126
- const hn = 1e3;
1127
- function En(e) {
1128
- const t = e.indexOf("/");
1129
- return t === -1 ? e : e.slice(0, t);
1130
- }
1131
- function Vt(e, t, n) {
1132
- if (!n.isComponentProject || n.config.context.isLuminaMinimalExtraction || n.config.documentation.publicStoryUrlPrefix === !1)
1133
- return;
1134
- const i = e.match(Cn)?.[1];
1135
- if (i === void 0) {
1136
- n.emitError(
1137
- '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',
1138
- { file: void 0, node: void 0, scope: t.slice(n.basePath.length) }
1139
- );
1140
- return;
1141
- }
1142
- const a = [];
1143
- for (const l of e.matchAll(Pn)) {
1144
- const s = l[1], c = Dn(s), p = e.indexOf("{", l.index), d = e.indexOf("}", p), m = e.slice(0, l.index).trimEnd();
1145
- let u = "";
1146
- if (m.endsWith("*/")) {
1147
- const C = m.lastIndexOf("/**");
1148
- u = m.slice(C + 3, -2).trim().replaceAll(Mn, "");
1149
- }
1150
- const f = e.slice(p, d).match(bn)?.[1] || c, S = xn(c);
1151
- a.push({
1152
- description: `${f}${u ? `
1153
- ${u}` : ""}`,
1154
- url: `${n.config.documentation.publicStoryUrlPrefix}?path=/story/${i}--${S}&singleStory=true`,
1155
- source: void 0
1156
- });
1157
- }
1158
- if (a.length === 0) {
1159
- n.emitError(
1160
- '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',
1161
- { file: void 0, node: void 0, scope: t.slice(n.basePath.length) }
1162
- );
1163
- return;
1164
- }
1165
- const r = n.componentStories[i];
1166
- r === void 0 ? n.componentStories[i] = a : r.push(...a);
1167
- }
1168
- const Cn = /component: ["']([^"']+)["']/u, Pn = /export const (\w+)/gu, bn = /name: ["']([^"']+)["']/u, Mn = /^\s*\*\s?/gmu, xn = (e) => e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/giu, "-").replace(/-+/gu, "-").replace(/^-+/u, "").replace(/-+$/u, ""), Dn = (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();
1169
- function Rn(e, t) {
1170
- if (t.config.context.isLuminaMinimalExtraction || t.componentTagName === void 0)
1171
- return;
1172
- const n = e.moduleSpecifier.text, i = /\.(?:css|s[ac]ss|less|styl(?:us)?|postcss|pcss|sss)(\\?|$)/u;
1173
- if (!(n.startsWith(".") && i.test(n)))
1174
- return;
1175
- const r = n.split("?", 1)[0], l = en.join(t.file.fileName, "..", r), s = ji(l, "utf-8"), c = Ln(s);
1176
- c !== void 0 && (t.componentCssFileDocs = c);
1177
- }
1178
- function Ln(e) {
1179
- const t = [];
1180
- for (const n of e.matchAll(In)) {
1181
- const i = n.groups.name, a = n.groups.description.replaceAll(An, " ").trim();
1182
- t.push({
1183
- name: i,
1184
- deprecated: void 0,
1185
- summary: void 0,
1186
- description: a.endsWith("*") ? a.slice(0, -1).trim() : a,
1187
- syntax: void 0,
1188
- default: void 0
1189
- });
1190
- }
1191
- return t.length === 0 ? void 0 : t;
1192
- }
1193
- const In = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, An = /\n\s+\*? ?/gu;
1194
- function di(e, t) {
1195
- if (e === void 0)
1196
- return !1;
1197
- for (let n = 0; n < e.length; ++n)
1198
- if (e[n].kind === t)
1199
- return !0;
1200
- return !1;
1201
- }
1202
- function tt(e) {
1203
- if (e.modifiers === void 0)
1204
- return 0;
1205
- for (let t = 0; t < e.modifiers.length; ++t)
1206
- if (e.modifiers[t].kind === o.SyntaxKind.ExportKeyword)
1207
- return e.modifiers[t + 1]?.kind === o.SyntaxKind.DefaultKeyword ? 2 : 1;
1208
- return 0;
1209
- }
1210
- function pi(e, t) {
1211
- return e.endsWith("Properties") && t.apiClassLikeName === e.slice(0, -10);
1212
- }
1213
- const kn = /* @__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":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/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://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise"],"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"]}'), Gn = {
1214
- globals: kn
1215
- }, ut = Object.freeze(
1216
- Object.assign(/* @__PURE__ */ Object.create(null), Gn.globals)
1217
- ), ft = "https://developer.mozilla.org/docs/Web/API/";
1218
- function mi(e, t, n = "*", i) {
1219
- if (e === "@arcgis/core")
1220
- return Fn(t, n, i);
1221
- }
1222
- function Fn(e, t, n) {
1223
- if (!(e === void 0 || e === "interfaces.d.ts")) {
1224
- const i = `https://${n.config.documentation.host}${On}${Z(e)}/`;
1225
- return ki(i, t === "default" || t === "*" ? void 0 : t, void 0);
1226
- }
1227
- }
1228
- const On = Zt("core");
1229
- function je(e, t, n, i) {
1230
- i.implicitPublicModules ??= /* @__PURE__ */ Object.create(null);
1231
- const a = i.implicitPublicModules[e];
1232
- a === void 0 ? i.implicitPublicModules[e] = {
1233
- actualModulePath: void 0,
1234
- // moduleResolution:Node16 may use .js extension to refer to non-JS files
1235
- // We strip the extension, and manually guess the extension in worker.ts
1236
- sourcePath: t.endsWith(".js") ? t.slice(0, -3) : t,
1237
- pendingNames: n === "*" ? void 0 : /* @__PURE__ */ new Set([n]),
1238
- extractedNames: /* @__PURE__ */ new Set()
1239
- } : a.pendingNames !== void 0 && n !== "*" ? a.pendingNames.add(n) : a.pendingNames = void 0;
1240
- }
1241
- function Nn(e, t) {
1242
- const n = tt(e);
1243
- if (t.pendingNames === void 0)
1244
- return n > 0;
1245
- if (n === 2 && t.pendingNames.has("default"))
1246
- return !0;
1247
- const a = (e.name ?? e.declarationList?.declarations[0].name).escapedText;
1248
- return t.pendingNames.has(a);
1249
- }
1250
- function Je(e, t, n, i, a) {
1251
- const r = n.program.getTypeChecker(), l = e.flags & o.SymbolFlags.Alias ? r.getAliasedSymbol(e) : e, s = Bn(l), c = t.escapedText, p = s ?? c, d = l?.declarations?.[0];
1252
- if (d === void 0)
1253
- return n.emitError(`Unable to resolve the declaration file name for the type ${p}`, {
1254
- file: n.file,
1255
- node: void 0
1256
- }), {
1257
- name: p,
1258
- module: void 0,
1259
- package: le,
1260
- viewUrl: void 0,
1261
- start: i,
1262
- end: a
1263
- };
1264
- const m = d.getSourceFile(), { packageName: u, modulePath: f } = Un(m.fileName, n, p);
1265
- if (u === "@arcgis/core" && f === "interfaces.js")
1266
- return n.moduleContext.importsMap.__esri = {
1267
- type: "*",
1268
- modulePath: void 0,
1269
- rawSpecifier: `${u}/${f}`,
1270
- replacementName: void 0,
1271
- actualName: void 0,
1272
- wasUsed: !0
1273
- }, {
1274
- name: "__esri",
1275
- module: f,
1276
- package: u,
1277
- viewUrl: void 0,
1278
- start: i,
1279
- end: a
1280
- };
1281
- if (u === "typescript" && f?.startsWith("lib/") === !0) {
1282
- let v = ut[p], P, h = p;
1283
- if (v === void 0) {
1284
- for (let L = d.parent; L !== void 0; L = L.parent)
1285
- if (o.isModuleDeclaration(L) && o.isIdentifier(L.name)) {
1286
- P = L.name.escapedText, v = ut[P]?.[1]?.[p], h = `${P}.${p}`, be(t, h);
1287
- break;
1288
- }
1289
- }
1290
- return {
1291
- name: h,
1292
- module: void 0,
1293
- package: le,
1294
- viewUrl: v?.[0]?.startsWith("https") === !1 ? `${ft}${v[0]}` : v?.[0] ?? void 0,
1295
- start: i,
1296
- end: i + h.length
1297
- };
1298
- }
1299
- let S = p;
1300
- if (u !== void 0 && f === 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") {
1301
- if (s.endsWith("Element")) {
1302
- const v = o.isInterfaceDeclaration(d) ? d.heritageClauses?.[0]?.types[0]?.expression : o.isTypeAliasDeclaration(d) && o.isTypeReferenceNode(d.type) ? d.type.typeName : void 0;
1303
- if (v !== void 0 && o.isIdentifier(v)) {
1304
- const P = r.getSymbolAtLocation(v);
1305
- if (P !== void 0) {
1306
- const h = r.getAliasedSymbol(P);
1307
- return Je(
1308
- h,
1309
- t,
1310
- n,
1311
- i,
1312
- i + h.escapedName.length
1313
- );
1314
- }
1315
- }
1316
- } else if (
1317
- // Only supporting the syntax after
1318
- // https://devtopia.esri.com/WebGIS/arcgis-web-components/pull/10794
1319
- // As this interface is not likely to be used directly.
1320
- 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"
1321
- ) {
1322
- const v = r.getSymbolAtLocation(d.type.objectType.typeName);
1323
- if (v !== void 0) {
1324
- const P = r.getAliasedSymbol(v), h = Je(
1325
- P,
1326
- t,
1327
- n,
1328
- i,
1329
- i + P.escapedName.length
1330
- );
1331
- return be(t, c), be(t, `${h.name}["@eventTypes"]`), h;
1332
- }
1333
- }
1334
- }
1335
- if (u !== void 0 || f !== void 0) {
1336
- const v = s ?? ((f ?? u).split("/").pop()?.replaceAll(wn, "") || "type");
1337
- for (let P = 1; ; P += 1) {
1338
- const h = P === 1 ? v : `${v}${P}`;
1339
- let L = n.functionLikeTypeParameters?.has(h) === !0 || n.objectLikeTypeParameters?.has(h) === !0 || n.localDeclarations.has(h);
1340
- if (L)
1341
- continue;
1342
- const b = n.moduleContext.importsMap[h], y = b !== void 0 && (u === void 0 ? b.modulePath === f : b.rawSpecifier === u + (f === void 0 ? "" : `/${f}`));
1343
- if (y ? b.wasUsed = !0 : L = n.moduleContext.importsMap[h] !== void 0, L)
1344
- continue;
1345
- const k = h !== c;
1346
- k && (be(t, h), a = i + h.length);
1347
- const D = Kn(l), I = D === "named";
1348
- I || (S = D), u === void 0 && !n.config.strict && je(
1349
- f,
1350
- m.fileName.slice(n.basePath.length),
1351
- S,
1352
- n
1353
- ), y || (n.moduleContext.importsMap[h] = {
1354
- type: D,
1355
- modulePath: u === void 0 ? f : void 0,
1356
- rawSpecifier: u === void 0 ? "" : u + (f === void 0 ? "" : `/${f}`),
1357
- replacementName: void 0,
1358
- actualName: I && k ? s : void 0,
1359
- wasUsed: !0
1360
- });
1361
- break;
1362
- }
1363
- } else if (n.localPrivateDeclarations?.has(c) === !0)
1364
- n.localPrivateDeclarations.set(
1365
- c,
1366
- Math.abs(n.localPrivateDeclarations.get(c))
1367
- );
1368
- else {
1369
- if (d.kind === o.SyntaxKind.TypeParameter)
1370
- return {
1371
- name: c,
1372
- module: void 0,
1373
- package: void 0,
1374
- viewUrl: void 0,
1375
- start: i,
1376
- end: a
1377
- };
1378
- n.localDeclarations.has(c) || n.emitError(
1379
- `@public declaration referenced non-public ${ie("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.`,
1380
- {
1381
- file: n.file,
1382
- node: void 0
1383
- }
1384
- );
1385
- }
1386
- const C = S === "default" || S === "*" ? void 0 : s;
1387
- return u ? {
1388
- name: S,
1389
- module: f || void 0,
1390
- package: u,
1391
- viewUrl: mi(u, f ?? "", C, n),
1392
- start: i,
1393
- end: a
1394
- } : {
1395
- name: S,
1396
- module: f,
1397
- package: void 0,
1398
- viewUrl: Ue(f ?? n.apiModule.path, C, void 0, n),
1399
- start: i,
1400
- end: a
1401
- };
1402
- }
1403
- const wn = /[^a-zA-Z0-9$_]/gu;
1404
- function Un(e, t, n) {
1405
- const i = e.lastIndexOf(rt);
1406
- if (i !== -1) {
1407
- const s = e.slice(i + rt.length), c = ui(s), p = e.slice(
1408
- 0,
1409
- i + rt.length + c.packageName.length
1410
- ), d = ct(p);
1411
- return Wt(c), c.modulePath = _t(c.modulePath, d, t, n), c;
1412
- }
1413
- const r = e.indexOf(Vn);
1414
- if (r !== -1) {
1415
- const s = e.slice(0, r), c = ct(s), p = c.name, d = e.slice(r + 1), m = _t(d, c, t, n), u = { packageName: p, modulePath: m };
1416
- return Wt(u), u;
1417
- }
1418
- if (e.startsWith(t.basePath)) {
1419
- const s = e.slice(t.basePath.length), c = Ve(Z(s), t);
1420
- return c === t.apiModule.path ? {
1421
- packageName: void 0,
1422
- modulePath: void 0
1423
- } : {
1424
- packageName: void 0,
1425
- modulePath: c
1426
- };
1427
- } else
1428
- return t.emitError(
1429
- `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)`,
1430
- {
1431
- file: t.file,
1432
- node: void 0
1433
- }
1434
- ), {
1435
- packageName: le,
1436
- modulePath: void 0
1437
- };
1438
- }
1439
- const rt = "/node_modules/", Vn = "/dist/";
1440
- function ui(e) {
1441
- const t = dt(e), n = e.length === t.length ? void 0 : e.slice(t.length + 1);
1442
- return { packageName: t, modulePath: n };
1443
- }
1444
- function Wt(e) {
1445
- e.packageName?.startsWith("@types/") === !0 && (e.packageName = e.packageName.slice(7));
1446
- }
1447
- function _t(e, t, n, i) {
1448
- const a = Z(e);
1449
- if (t.exports === void 0)
1450
- return `${a}.js`;
1451
- const r = `./${a}`, l = "@arcgis/lumina" in (t.dependencies ?? {}) && r.endsWith("/customElement") ? `${r.slice(0, -13)}index` : r;
1452
- let s = yt(t.exports, ".", l);
1453
- if (s === void 0 && (s = Wn[t.name]?.(a)), s !== void 0)
1454
- return s === "." ? void 0 : s.slice(2);
1455
- const c = n.moduleContext.importsMap[i];
1456
- if (c !== void 0 && c.modulePath === void 0) {
1457
- const p = ui(c.rawSpecifier);
1458
- if (p.packageName === t.name)
1459
- return p.modulePath;
1460
- }
1461
- return n.emitError(
1462
- `Need explicit type annotation for where the ${ie("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.`,
1463
- { file: n.file, node: void 0 }
1464
- ), e;
1465
- }
1466
- const Wn = {
1467
- // REFACTOR: dissolve barrel files (match @arcgis/core). then this won't be needed
1468
- "@arcgis/lumina"(e) {
1469
- 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;
1470
- }
1471
- };
1472
- function yt(e, t, n) {
1473
- if (typeof e == "string")
1474
- return _n(t, e, n);
1475
- if (Array.isArray(e))
1476
- for (let i = 0; i < e.length; ++i) {
1477
- const a = yt(e[i], t, n);
1478
- if (a !== void 0)
1479
- return a;
1480
- }
1481
- if (typeof e == "object" && e !== null)
1482
- for (const [i, a] of Object.entries(e)) {
1483
- const l = i.startsWith(".") ? i : t, s = yt(a, l, n);
1484
- if (s !== void 0)
1485
- return s;
1486
- }
1487
- }
1488
- function _n(e, t, n) {
1489
- const i = Z(t);
1490
- if (i === n)
1491
- return e;
1492
- const a = i.indexOf("*");
1493
- if (a === -1)
1494
- return;
1495
- const r = i.slice(0, a);
1496
- if (!n.startsWith(r))
1497
- return;
1498
- const l = i.slice(a + 1), s = n.slice(r.length), c = t.slice(i.length);
1499
- if (l === "") {
1500
- const m = Z(e), u = e.slice(m.length), f = m === e && c === "" ? ".js" : u;
1501
- return m.slice(0, -1) + s + f;
1502
- }
1503
- if (!s.endsWith(l))
1504
- return;
1505
- const p = s.slice(0, -l.length), d = e.indexOf("*");
1506
- if (d !== -1)
1507
- return e.slice(0, d) + p + e.slice(d + 1);
1508
- }
1509
- function Bn(e) {
1510
- const t = e.getDeclarations()?.[0];
1511
- 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)))
1512
- return t.name.escapedText;
1513
- const n = e.escapedName;
1514
- return n === "default" || n.startsWith("__") ? void 0 : n;
1515
- }
1516
- function Kn(e) {
1517
- return e.flags & o.SymbolFlags.ValueModule ? "*" : Hn(e) ? "default" : "named";
1518
- }
1519
- function Hn(e) {
1520
- const t = e.escapedName;
1521
- if (t === "default" || // CommonJS "export ="
1522
- t === "export=")
1523
- return !0;
1524
- const n = e.getDeclarations();
1525
- if (n !== void 0)
1526
- for (let i = 0; i < n.length; ++i) {
1527
- const a = n[i];
1528
- if (o.canHaveModifiers(a) && o.getModifiers(a)?.some((r) => r.kind === o.SyntaxKind.DefaultKeyword))
1529
- return !0;
1530
- }
1531
- return !1;
1532
- }
1533
- function Et(e, t, n, i) {
1534
- const a = { file: n, node: e };
1535
- return e.getText(n).includes("* @public") && i.emitError(
1536
- "@public is not permitted in nested types. See options in documentation: https://webgis.esri.com/references/api-extractor/advanced-patterns#describing-nested-object-types and https://webgis.esri.com/references/api-extractor/api-node-kinds#variables",
1537
- a
1538
- ), _(e, t, a, i);
1539
- }
1540
- const O = {
1541
- false: 0,
1542
- /**
1543
- * True for literal types. False for object types
1544
- */
1545
- shallow: 2,
1546
- true: 1
1547
- };
1548
- function _(e, t, n, i) {
1549
- if (e.kind === o.SyntaxKind.TrueKeyword || e.kind === o.SyntaxKind.FalseKeyword)
1550
- return t === O.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.BooleanKeyword) : o.factory.createLiteralTypeNode(e);
1551
- if (e.kind === o.SyntaxKind.NullKeyword)
1552
- return o.factory.createLiteralTypeNode(e);
1553
- if (e.kind === o.SyntaxKind.UndefinedKeyword || o.isVoidExpression(e))
1554
- return o.factory.createKeywordTypeNode(o.SyntaxKind.UndefinedKeyword);
1555
- if (o.isStringLiteral(e) || o.isNoSubstitutionTemplateLiteral(e))
1556
- return t === O.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.StringKeyword) : o.factory.createLiteralTypeNode(e);
1557
- if (o.isTemplateExpression(e))
1558
- return ge(n, t, i) ?? o.factory.createKeywordTypeNode(o.SyntaxKind.StringKeyword);
1559
- if (o.isNumericLiteral(e))
1560
- return t === O.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.NumberKeyword) : o.factory.createLiteralTypeNode(e);
1561
- if (o.isBigIntLiteral(e))
1562
- return t === O.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.BigIntKeyword) : o.factory.createLiteralTypeNode(e);
1563
- if (o.isAsExpression(e) || o.isTypeAssertionExpression(e))
1564
- return o.isTypeReferenceNode(e.type) && o.isIdentifier(e.type.typeName) && e.type.typeName.escapedText === "const" ? _(e.expression, O.true, n, i) : e.type;
1565
- if (o.isSatisfiesExpression(e))
1566
- return t === O.false ? e.type : _(e.expression, t, n, i);
1567
- if (o.isRegularExpressionLiteral(e))
1568
- return o.factory.createTypeReferenceNode(o.factory.createIdentifier("RegExp"));
1569
- if (o.isArrayLiteralExpression(e)) {
1570
- if (i.isInLuminaMinimalExtraction)
1571
- return we;
1572
- const a = t === O.shallow ? O.false : t, r = new Array(e.elements.length);
1573
- for (let l = 0; l < r.length; ++l) {
1574
- const s = e.elements[l];
1575
- r[l] = _(s, a, { ...n, node: s }, i);
1576
- }
1577
- return a ? o.factory.createTypeOperatorNode(o.SyntaxKind.ReadonlyKeyword, o.factory.createTupleTypeNode(r)) : o.factory.createArrayTypeNode(
1578
- r.length === 1 ? r[0] : o.factory.createUnionTypeNode(r)
1579
- );
1580
- }
1581
- if (o.isObjectLiteralExpression(e)) {
1582
- if (i.isInLuminaMinimalExtraction)
1583
- return we;
1584
- const a = t === O.shallow ? O.false : t, r = new Array(e.properties.length);
1585
- for (let l = 0; l < r.length; ++l) {
1586
- const s = e.properties[l];
1587
- r[l] = $n(s, a, { ...n, node: s }, i);
1588
- }
1589
- return o.factory.createTypeLiteralNode(r);
1590
- }
1591
- if (o.isPrefixUnaryExpression(e)) {
1592
- if (e.operator !== o.SyntaxKind.MinusToken)
1593
- return Pe(n, Q, t, i);
1594
- if (t === O.false)
1595
- return o.factory.createKeywordTypeNode(o.SyntaxKind.NumberKeyword);
1596
- {
1597
- const a = _(e.operand, t, n, i);
1598
- return o.isLiteralTypeNode(a) ? o.factory.createLiteralTypeNode(
1599
- o.factory.createPrefixUnaryExpression(o.SyntaxKind.MinusToken, a.literal)
1600
- ) : Pe(n, Q, t, i);
1601
- }
1602
- }
1603
- if (o.isParenthesizedExpression(e))
1604
- return _(e.expression, t, n, i);
1605
- if (o.isNewExpression(e)) {
1606
- if (i.isInLuminaMinimalExtraction)
1607
- return we;
1608
- if (o.isIdentifier(e.expression)) {
1609
- const r = e.expression.escapedText;
1610
- let l = e.typeArguments, s = !1;
1611
- if ((r === "Set" || r === "WeakSet") && l === void 0)
1612
- if (e.arguments?.[0] !== void 0) {
1613
- const c = _(
1614
- e.arguments[0],
1615
- t,
1616
- { ...n, node: e.arguments[0] },
1617
- i
1618
- );
1619
- c.kind === o.SyntaxKind.ArrayType && (l = [c.elementType]);
1620
- } else
1621
- s = !0;
1622
- else
1623
- s ||= (r === "Map" || r === "WeakMap") && l?.length !== 2;
1624
- if (!s)
1625
- return o.factory.createTypeReferenceNode(e.expression, l);
1626
- }
1627
- const a = _(e.expression, t, n, i);
1628
- if (o.isTypeReferenceNode(a))
1629
- return a;
1630
- }
1631
- if (o.isConditionalExpression(e))
1632
- return o.factory.createUnionTypeNode([
1633
- _(e.whenTrue, t, { ...n, node: e.whenTrue }, i),
1634
- _(e.whenFalse, t, { ...n, node: e.whenFalse }, i)
1635
- ]);
1636
- if (o.isIdentifier(e))
1637
- return ge(n, t, i) ?? o.factory.createTypeQueryNode(e);
1638
- if (o.isPropertyAccessExpression(e) && o.isIdentifier(e.name)) {
1639
- const a = ge(n, t, i);
1640
- if (a !== void 0)
1641
- return a;
1642
- const r = _(e.expression, t, n, i);
1643
- return o.isTypeQueryNode(r) ? o.factory.createTypeQueryNode(o.factory.createQualifiedName(r.exprName, e.name)) : r === vt ? vt : Pe(n, Q, t, i);
1644
- }
1645
- if (o.isCallExpression(e)) {
1646
- const a = e.expression, r = e.arguments.at(0);
1647
- 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))
1648
- return o.factory.createTypeReferenceNode(a.expression, [
1649
- o.factory.createTypeReferenceNode(r)
1650
- ]);
1651
- const l = ge(n, t, i);
1652
- if (l !== void 0)
1653
- return l;
1654
- const s = _(a, t, n, i);
1655
- return o.isTypeQueryNode(s) ? o.factory.createTypeReferenceNode(o.factory.createIdentifier("ReturnType"), [
1656
- o.factory.createTypeQueryNode(s.exprName, e.typeArguments)
1657
- ]) : Pe(n, Q, t, i);
1658
- }
1659
- if (o.isArrowFunction(e)) {
1660
- if (i.isInLuminaMinimalExtraction)
1661
- return we;
1662
- const a = t === O.shallow ? O.false : t;
1663
- return o.factory.createFunctionTypeNode(
1664
- e.typeParameters,
1665
- St(e.parameters, a, n, i),
1666
- e.type ?? (o.isBlock(e.body) ? qe(e, i) ?? X(n, Q, i) : _(e.body, a, n, i))
1667
- );
1668
- }
1669
- return Pe(n, Q, t, i);
1670
- }
1671
- function $n(e, t, n, i) {
1672
- const a = t === O.false ? void 0 : Xn;
1673
- return o.isPropertyAssignment(e) ? o.factory.createPropertySignature(
1674
- a,
1675
- e.name,
1676
- void 0,
1677
- _(e.initializer, t, { ...n, node: e.initializer }, i)
1678
- ) : o.isShorthandPropertyAssignment(e) ? o.factory.createPropertySignature(
1679
- a,
1680
- e.name,
1681
- void 0,
1682
- ge(n, t, i) ?? o.factory.createTypeQueryNode(o.factory.createIdentifier(e.name.escapedText))
1683
- ) : o.isSpreadAssignment(e) ? o.factory.createPropertySignature(
1684
- a,
1685
- "_spread",
1686
- void 0,
1687
- X(n, Q, i)
1688
- ) : o.isMethodDeclaration(e) ? o.factory.createPropertySignature(
1689
- a,
1690
- e.name,
1691
- void 0,
1692
- o.factory.createFunctionTypeNode(
1693
- e.typeParameters,
1694
- St(e.parameters, t, n, i),
1695
- e.type ?? qe(e, i) ?? X(n, Q, i)
1696
- )
1697
- ) : o.isGetAccessorDeclaration(e) ? o.factory.createGetAccessorDeclaration(
1698
- void 0,
1699
- e.name,
1700
- // Should always be empty
1701
- e.parameters,
1702
- e.type ?? qe(e, i) ?? X(n, Q, i),
1703
- void 0
1704
- ) : o.factory.createSetAccessorDeclaration(
1705
- void 0,
1706
- e.name,
1707
- St(e.parameters, t, n, i),
1708
- void 0
1709
- );
1710
- }
1711
- function Pe(e, t, n, i) {
1712
- return ge(e, n, i) ?? X(e, t, i);
1713
- }
1714
- function ge(e, t, n) {
1715
- const i = n.program?.getTypeChecker?.();
1716
- if (i !== void 0 && e.node !== void 0) {
1717
- let a;
1718
- const r = t === O.false;
1719
- if (r && e.node.kind === o.SyntaxKind.Identifier) {
1720
- const s = i.getSymbolAtLocation(e.node);
1721
- a = s === void 0 ? void 0 : i.getTypeOfSymbol(s);
1722
- }
1723
- a ??= i.getTypeAtLocation(e.node);
1724
- const l = r ? tn(i, a) : a;
1725
- return it(i, l);
1726
- }
1727
- }
1728
- function it(e, t) {
1729
- const n = t.flags & o.TypeFlags.Union ? t.types.every(Bt) : Bt(t);
1730
- return e.typeToTypeNode(
1731
- t,
1732
- void 0,
1733
- Jn & (n ? ~o.TypeFormatFlags.MultilineObjectLiterals : -1)
1734
- );
1735
- }
1736
- const zn = o.TypeFormatFlags.NoTruncation | o.TypeFormatFlags.WriteArrayAsGenericType | o.TypeFormatFlags.SuppressAnyReturnType | o.TypeFormatFlags.MultilineObjectLiterals, jn = zn & o.TypeFormatFlags.NodeBuilderFlagsMask, Jn = jn | o.NodeBuilderFlags.IgnoreErrors | o.NodeBuilderFlags.NoTruncation, Bt = (e) => e.flags & o.TypeFlags.Object ? e.getProperties().length === 1 : !!(e.flags & o.TypeFlags.PossiblyFalsy);
1737
- function qe(e, t) {
1738
- const n = t.program?.getTypeChecker?.();
1739
- if (n === void 0)
1740
- return;
1741
- const i = n.getSignatureFromDeclaration(e);
1742
- if (i === void 0)
1743
- return;
1744
- const a = n.getReturnTypeOfSignature(i);
1745
- return it(n, a);
1746
- }
1747
- function qn(e, t) {
1748
- const n = t.program?.getTypeChecker?.();
1749
- if (n === void 0)
1750
- return;
1751
- const i = n.getTypeAtLocation(e);
1752
- return it(n, i);
1753
- }
1754
- function X(e, t, n) {
1755
- return n.isInLuminaMinimalExtraction || n.emitError(t, e), vt;
1756
- }
1757
- const Q = "Failed to infer the type of the expression. Please provide an explicit type annotation or simplify the expression.", vt = o.factory.createKeywordTypeNode(o.SyntaxKind.AnyKeyword), we = o.factory.createKeywordTypeNode(o.SyntaxKind.UnknownKeyword), We = o.factory.createKeywordTypeNode(o.SyntaxKind.VoidKeyword), Qn = o.factory.createToken(o.SyntaxKind.ReadonlyKeyword), Xn = [Qn];
1758
- function St(e, t, n, i) {
1759
- const a = new Array(e.length);
1760
- for (let r = 0; r < a.length; ++r) {
1761
- const l = e[r];
1762
- a[r] = l.initializer === void 0 && o.isIdentifier(l.name) ? l : o.factory.createParameterDeclaration(
1763
- void 0,
1764
- l.dotDotDotToken,
1765
- o.isIdentifier(l.name) ? l.name : o.factory.createIdentifier(`parameter${r}`),
1766
- l.questionToken,
1767
- l.type ?? (l.initializer === void 0 ? X({ ...n, node: l }, Q, i) : _(
1768
- l.initializer,
1769
- t,
1770
- {
1771
- ...n,
1772
- node: l.initializer
1773
- },
1774
- i
1775
- ))
1776
- );
1777
- }
1778
- return a;
1779
- }
1780
- function Yn(e, t) {
1781
- const n = t.program?.getTypeChecker?.();
1782
- if (n === void 0 || !Zn(e.exprName, t))
1783
- return;
1784
- const i = n.getTypeAtLocation(e.exprName);
1785
- return it(n, i);
1786
- }
1787
- function Zn(e, t) {
1788
- return e.kind === o.SyntaxKind.QualifiedName ? eo(e.left) : t.moduleContext.importsMap[e.escapedText]?.rawSpecifier.endsWith(".json") === !0;
1789
- }
1790
- function eo(e) {
1791
- for (; e !== void 0; )
1792
- if (e.kind === o.SyntaxKind.QualifiedName)
1793
- e = e.left;
1794
- else if (e.kind === o.SyntaxKind.Identifier)
1795
- return e.escapedText === "this";
1796
- return !1;
1797
- }
1798
- function j(e, t) {
1799
- if (M = t, _e.clear(), z = [], Qe.clear(), e.pos !== -1 && e.getText(M.file).includes("* @public") && M.emitError(
1800
- "@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/references/api-extractor/advanced-patterns#describing-nested-object-types",
1801
- { file: M.file, node: e }
1802
- ), e.kind === o.SyntaxKind.Identifier || e.kind === o.SyntaxKind.QualifiedName)
1803
- Be(e);
1804
- else if (o.isFunctionTypeNode(e) || o.isConstructorTypeNode(e)) {
1805
- const i = e.typeParameters;
1806
- if (i !== void 0)
1807
- for (let a = 0; a < i.length; ++a) {
1808
- const r = i[a];
1809
- Qe.add(r.name.escapedText);
1810
- }
1811
- }
1812
- return to.writeNode(o.EmitHint.Unspecified, e, void 0, _e), {
1813
- text: _e.getText(),
1814
- references: z.length > 0 ? z : void 0,
1815
- values: void 0,
1816
- source: void 0
1817
- };
1818
- }
1819
- let M;
1820
- const pe = (e, t, n) => {
1821
- switch (t.kind) {
1822
- case o.SyntaxKind.TypeReference:
1823
- const i = t, a = i.typeName;
1824
- switch (a.escapedText) {
1825
- case "nil":
1826
- return pe(e, io, n);
1827
- // Used in public typings in 88 files
1828
- // REFACTOR: consider refactoring out Const usages in public API to
1829
- // reduce divergence
1830
- case "Const":
1831
- return pe(e, i.typeArguments[0], n);
1832
- // In component public types, Lumina's "component" and "el" have the same type
1833
- case "ToElement":
1834
- if (M.isComponentProject)
1835
- return pe(e, i.typeArguments[0], n);
1836
- break;
1837
- /**
1838
- * @see https://webgis.esri.com/references/api-extractor/advanced-patterns#publicprivate-type-divergence
1839
- */
1840
- case "PublicApiNarrowType":
1841
- case "PublicApiRelaxType":
1842
- return pe(e, i.typeArguments[1], n);
1843
- }
1844
- Be(a);
1845
- break;
1846
- case o.SyntaxKind.TypeQuery:
1847
- const l = Yn(t, M);
1848
- if (l !== void 0)
1849
- return pe(e, l, n);
1850
- Be(t.exprName, no);
1851
- break;
1852
- case o.SyntaxKind.PropertyAccessExpression:
1853
- Be(t);
1854
- break;
1855
- case o.SyntaxKind.InferType:
1856
- case o.SyntaxKind.MappedType:
1857
- const c = t.typeParameter;
1858
- Qe.add(c.name.escapedText);
1859
- break;
1860
- case o.SyntaxKind.TypeLiteral:
1861
- const p = t;
1862
- p.members.length === 1 && ("emitNode" in p && (p.emitNode ??= {}), o.setEmitFlags(p, o.EmitFlags.SingleLine));
1863
- break;
1864
- case o.SyntaxKind.IndexedAccessType:
1865
- const d = t;
1866
- if (
1867
- // In public types, Lumina's "component" and "el" have the same type
1868
- // Thus print ArcgisHome["el"] as just ArcgisHome
1869
- M.isComponentProject && d.indexType.kind === o.SyntaxKind.LiteralType && d.indexType.literal.text === "el"
1870
- )
1871
- return pe(e, d.objectType, n);
1872
- break;
1873
- case o.SyntaxKind.ImportType:
1874
- M.emitError(
1875
- `\`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." : ""}`,
1876
- { file: M.file, node: t }
1877
- );
1878
- break;
1879
- }
1880
- n(e, t), Xe !== void 0 && (fi(), Xe = void 0);
1881
- }, to = on(
1882
- {},
1883
- {
1884
- onEmitNode: pe
1885
- }
1886
- ), io = o.factory.createIdentifier("null | undefined"), _e = nn.createTextWriter(`
1887
- `), no = 7, Qe = /* @__PURE__ */ new Set();
1888
- let z;
1889
- function Be(e, t = 0) {
1890
- const n = [];
1891
- let i = e;
1892
- for (; i !== void 0; )
1893
- if (i.kind === o.SyntaxKind.Identifier) {
1894
- n.push(i);
1895
- break;
1896
- } else if (i.kind === o.SyntaxKind.QualifiedName)
1897
- n.push(i.right), i = i.left;
1898
- else if (i.kind === o.SyntaxKind.PropertyAccessExpression) {
1899
- const S = i.name;
1900
- n.push(S), i = i.expression;
1901
- }
1902
- const a = n.at(-1), r = a.escapedText, l = _e.getTextPos() + t;
1903
- let s = l + r.length;
1904
- const c = a;
1905
- if (c.pos === -1 && c.symbol !== void 0) {
1906
- z.push(
1907
- Je(c.symbol, c, M, l, s)
1908
- );
1909
- return;
1910
- }
1911
- if (M.functionLikeTypeParameters?.has(r) === !0) {
1912
- z.push({
1913
- name: r,
1914
- module: void 0,
1915
- package: void 0,
1916
- viewUrl: void 0,
1917
- start: l,
1918
- end: s
1919
- });
1920
- return;
1921
- }
1922
- if (M.objectLikeTypeParameters?.has(r) === !0) {
1923
- z.push({
1924
- name: r,
1925
- module: void 0,
1926
- package: void 0,
1927
- viewUrl: void 0,
1928
- start: l,
1929
- end: s
1930
- });
1931
- return;
1932
- }
1933
- if (M.localDeclarations.has(r)) {
1934
- z.push({
1935
- name: r,
1936
- module: void 0,
1937
- package: void 0,
1938
- viewUrl: Ue(
1939
- M.apiModule.path,
1940
- r === M.exportDefaultName ? void 0 : r,
1941
- void 0,
1942
- M
1943
- ),
1944
- start: l,
1945
- end: s
1946
- });
1947
- return;
1948
- }
1949
- if (M.localPrivateDeclarations?.has(r) === !0) {
1950
- M.localPrivateDeclarations.set(r, Math.abs(M.localPrivateDeclarations.get(r))), z.push({
1951
- name: r,
1952
- module: void 0,
1953
- package: void 0,
1954
- viewUrl: Ue(
1955
- M.apiModule.path,
1956
- r === M.exportDefaultName ? void 0 : r,
1957
- void 0,
1958
- M
1959
- ),
1960
- start: l,
1961
- end: s
1962
- });
1963
- return;
1964
- }
1965
- const d = M.moduleContext.importsMap[r];
1966
- if (d !== void 0) {
1967
- d.wasUsed = !0;
1968
- const S = d.type === "named";
1969
- d.replacementName !== void 0 && (be(a, d.replacementName), s = l + d.replacementName.length), d.replacementName !== void 0 && (M.functionLikeTypeParameters?.has(d.replacementName) === !0 || M.objectLikeTypeParameters?.has(d.replacementName) === !0) && M.emitError(
1970
- `Can't do a type replacement of ${ie("green", r)} to ${ie("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.`,
1971
- { file: M.file, node: e }
1972
- );
1973
- const C = S ? d.actualName ?? d.replacementName ?? r : void 0;
1974
- if (d.modulePath === void 0) {
1975
- if (M.config.strict) {
1976
- const h = dt(d.rawSpecifier);
1977
- M.runtimeDependencyNames.has(h) || M.emitError(
1978
- h === "esri" ? `Found unexpected absolute path import of ${ie("red", C ?? d.type)} from ${ie("red", d.rawSpecifier)}. Did you mean to use a relative import instead?` : `Type ${ie("red", C ?? d.type)} imported from ${ie("red", h)} cannot be referenced in public types as this dependency is not declared as a "dependency" in the package.json`,
1979
- { file: M.file, node: e }
1980
- );
1981
- }
1982
- } else M.config.strict || je(
1983
- d.modulePath,
1984
- d.rawSpecifier === "" ? d.modulePath : pt(
1985
- M.apiModule.sourcePath.slice(M.config.context.basePath.length),
1986
- d.rawSpecifier
1987
- ),
1988
- S ? C : d.type,
1989
- M
1990
- );
1991
- let v, P = d.modulePath;
1992
- P === void 0 && (v = dt(d.rawSpecifier), P = d.rawSpecifier.length === v.length ? void 0 : d.rawSpecifier.slice(v.length + 1)), z.push({
1993
- name: C ?? d.type,
1994
- module: P,
1995
- package: v,
1996
- viewUrl: d.modulePath === void 0 ? mi(v, P, S ? r : d.type, M) : Ue(d.modulePath, C, void 0, M),
1997
- start: l,
1998
- end: s
1999
- });
2000
- return;
2001
- }
2002
- const m = ut[r];
2003
- if (m !== void 0) {
2004
- z.push({
2005
- name: r,
2006
- module: void 0,
2007
- package: le,
2008
- viewUrl: m[0]?.startsWith("https") === !1 ? `${ft}${m[0]}` : m[0] ?? void 0,
2009
- start: l,
2010
- end: s
2011
- });
2012
- let S = m;
2013
- if (S.length > 1) {
2014
- let C = n.length - 2, v = s + 1;
2015
- for (; S[1] !== void 0 && C >= 0; ) {
2016
- const P = n[C--];
2017
- if (S = S[1][P.escapedText], S === void 0)
2018
- M.emitError("Failed to resolve the definition of the type reference", {
2019
- file: M.file,
2020
- node: e
2021
- });
2022
- else {
2023
- const h = v + P.escapedText.length;
2024
- z.push({
2025
- name: P.escapedText,
2026
- module: void 0,
2027
- package: le,
2028
- viewUrl: S[0]?.startsWith("https") === !1 ? `${ft}${S[0]}` : S[0] ?? void 0,
2029
- start: v,
2030
- end: h
2031
- }), v = h + 1;
2032
- }
2033
- }
2034
- }
2035
- return;
2036
- }
2037
- if (Qe.has(r))
2038
- return;
2039
- const f = M.program?.getTypeChecker?.()?.getSymbolAtLocation(a);
2040
- if (f !== void 0) {
2041
- z.push(Je(f, a, M, l, s));
2042
- return;
2043
- }
2044
- M.emitError(
2045
- "Failed to resolve the definition of the type reference. Ensure it has @public or refactor out its usage from the public API type",
2046
- { file: M.file, node: e }
2047
- );
2048
- }
2049
- function be(e, t) {
2050
- const n = e.escapedText;
2051
- Xe = e, gt = t, fi(), gt = n;
2052
- }
2053
- let Xe, gt;
2054
- function fi() {
2055
- Xe.escapedText = gt;
2056
- }
2057
- function nt(e, t, n) {
2058
- if (e === void 0 || n.isInLuminaMinimalExtraction) {
2059
- t ? n.objectLikeTypeParameters = void 0 : n.functionLikeTypeParameters = void 0;
2060
- return;
2061
- }
2062
- const i = new Array(e.length), a = t ? oo : ao;
2063
- a.clear();
2064
- for (let r = 0; r < e.length; ++r) {
2065
- const l = e[r], s = l.name.escapedText;
2066
- a.add(s);
2067
- const c = {
2068
- name: s,
2069
- constraint: void 0,
2070
- default: void 0,
2071
- const: void 0,
2072
- in: void 0,
2073
- out: void 0
2074
- };
2075
- if (l.modifiers !== void 0)
2076
- for (let p = 0; p < l.modifiers.length; ++p) {
2077
- const d = l.modifiers[p];
2078
- d.kind === o.SyntaxKind.ConstKeyword ? c.const = !0 : d.kind === o.SyntaxKind.InKeyword ? c.in = !0 : d.kind === o.SyntaxKind.OutKeyword && (c.out = !0);
2079
- }
2080
- i[r] = c;
2081
- }
2082
- t ? n.objectLikeTypeParameters = a : n.functionLikeTypeParameters = a;
2083
- for (let r = 0; r < e.length; ++r) {
2084
- const l = e[r], s = l.constraint, c = l.default;
2085
- s !== void 0 && (i[r].constraint = j(s, n)), c !== void 0 && (i[r].default = j(c, n));
2086
- }
2087
- return i;
2088
- }
2089
- const oo = /* @__PURE__ */ new Set(), ao = /* @__PURE__ */ new Set();
2090
- function Ee(e, t, n) {
2091
- if (!o.isIdentifier(e) && !o.isQualifiedName(e) && !o.isPropertyAccessExpression(e))
2092
- return n.emitError(
2093
- "Expected the type nodes in the extends clause to be Identifier, QualifiedName or PropertyAccessExpression.",
2094
- { file: n.file, node: e }
2095
- ), {
2096
- [J]: "Record<never, Error>",
2097
- name: "error",
2098
- module: void 0,
2099
- package: void 0,
2100
- viewUrl: void 0,
2101
- typeArguments: void 0
2102
- };
2103
- const i = j(e, n), a = i.references?.[0] ?? {
2104
- module: void 0,
2105
- package: void 0,
2106
- viewUrl: void 0
2107
- };
2108
- let r, l;
2109
- if (r = i.text, t !== void 0) {
2110
- l = new Array(t.length), r += "<";
2111
- for (let s = 0; s < t.length; ++s) {
2112
- const c = t[s], p = j(c, n);
2113
- l[s] = p, r += p.text, s < t.length - 1 && (r += ", ");
2114
- }
2115
- r += ">";
2116
- }
2117
- return {
2118
- /**
2119
- * If referenced type is imported as default, the `name` will be `default`,
2120
- * which is not a name suitable for .d.ts emit. So we preserve the original
2121
- * type string in a temporary field.
2122
- */
2123
- [J]: r,
2124
- name: i.references?.length === 1 ? i.references[0].name : i.text,
2125
- module: a.module,
2126
- package: a.package,
2127
- viewUrl: a.viewUrl,
2128
- typeArguments: l
2129
- };
2130
- }
2131
- function Ct(e) {
2132
- return o.isTypeReferenceNode(e) && (e.typeName.escapedText === "PublicApiNarrowType" || e.typeName.escapedText === "PublicApiRelaxType") ? e.typeArguments[1] : e;
2133
- }
2134
- function ro(e) {
2135
- return e.expression.escapedText === "PublicApiNarrowType" || e.expression.escapedText === "PublicApiRelaxType" ? e.typeArguments[1] : e;
2136
- }
2137
- const yi = { text: "unknown", references: void 0, values: void 0, source: void 0 }, so = {
2138
- text: "Promise<unknown>",
2139
- references: void 0,
2140
- values: void 0,
2141
- source: void 0
2142
- }, lo = {
2143
- text: "Record<string, unknown> | undefined",
2144
- references: [
2145
- {
2146
- name: "Record",
2147
- module: void 0,
2148
- package: le,
2149
- viewUrl: "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
2150
- start: 0,
2151
- end: 6
2152
- }
2153
- ],
2154
- values: void 0,
2155
- source: void 0
2156
- };
2157
- function co(e, t) {
2158
- if (t.isInLuminaMinimalExtraction)
2159
- return;
2160
- const n = Ji(e.name), i = {
2161
- [J]: po,
2162
- kind: "method",
2163
- name: "componentOnReady",
2164
- static: void 0,
2165
- deprecated: void 0,
2166
- summary: void 0,
2167
- description: "Creates a promise that resolves once the component is fully loaded.",
2168
- docsTags: [
2169
- {
2170
- name: "example",
2171
- text: `\`\`\`js
2172
- const ${n} = document.createElement("${e.tagName}");
2173
- document.body.append(${n});
2174
- await ${n}.componentOnReady();
2175
- console.log("${e.tagName} is ready to go!");
2176
- \`\`\``
2177
- }
2178
- ],
2179
- typeParameters: void 0,
2180
- parameters: void 0,
2181
- return: mo,
2182
- // Must include .inheritedFrom for this member so that it is excluded from
2183
- // .d.ts printing (TypeScript inherits it from PublicLitElement) and from
2184
- // the docs search index.
2185
- inheritedFrom: uo,
2186
- signature: "(): Promise<this>",
2187
- privacy: void 0,
2188
- source: void 0
2189
- };
2190
- e.members.push(i);
2191
- 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;
2192
- typeof s == "string" && a.push({
2193
- description: "Docs",
2194
- url: s,
2195
- source: void 0
2196
- }), typeof c == "string" && a.push({
2197
- description: "Demo",
2198
- url: c,
2199
- source: void 0
2200
- });
2201
- const p = t.componentStories[e.tagName];
2202
- if (typeof p == "object" && a.push(...p), t.componentCssFileDocs !== void 0) {
2203
- e.cssProperties ??= [];
2204
- const d = new Set(e.cssProperties.map((m) => m.name));
2205
- e.cssProperties = [
2206
- ...e.cssProperties,
2207
- ...t.componentCssFileDocs.filter((m) => !d.has(m.name))
2208
- ], t.componentCssFileDocs = void 0;
2209
- }
2210
- a.length > 0 && (e.demos = a);
2211
- }
2212
- const po = et(), mo = {
2213
- summary: void 0,
2214
- description: void 0,
2215
- type: {
2216
- text: "Promise<this>",
2217
- references: [
2218
- {
2219
- name: "Promise",
2220
- module: "lib/lib.es5.d.ts",
2221
- package: "typescript",
2222
- viewUrl: void 0,
2223
- start: 0,
2224
- end: 7
2225
- }
2226
- ],
2227
- values: void 0,
2228
- source: void 0
2229
- }
2230
- }, uo = {
2231
- name: "this",
2232
- module: void 0,
2233
- package: void 0,
2234
- viewUrl: void 0
2235
- }, fo = ce, yo = ce, vo = ce, So = ce, go = ce, To = ce, ho = ce, vi = ce;
2236
- function ce(e, t, n, i, a) {
2237
- if (i.docsTags === void 0 || n === void 0)
2238
- return;
2239
- const r = i.docsTags.indexOf(N.copyDoc);
2240
- if (r === -1)
2241
- return;
2242
- const l = i.name;
2243
- let s = n?.[l];
2244
- s === void 0 && e.emitError(
2245
- "@copyDoc tag was used, but failed to find copyDoc definition for it. Documentation: https://webgis.esri.com/references/api-extractor/tags-reference#copydoc)",
2246
- {
2247
- file: e.file,
2248
- node: t
2249
- }
2250
- ), !(typeof s == "function" && (s = s(i, a, e.apiModule), s === void 0)) && Xi(s, i, r);
2251
- }
2252
- function Pt(e, t, n) {
2253
- n.apiModule.exports.push({
2254
- kind: e.customElement === !0 ? "custom-element-definition" : e.kind === "interface" || e.kind === "mixin" ? "ts" : "js",
2255
- name: t ? "default" : e.tagName ?? e.name,
2256
- deprecated: void 0,
2257
- declaration: {
2258
- name: e.name,
2259
- module: void 0,
2260
- package: void 0,
2261
- viewUrl: void 0
2262
- }
2263
- });
2264
- }
2265
- const Eo = Ae, st = Ae, Co = Ae, Kt = Ae, Ht = Ae;
2266
- function Ae(e, t, n, i) {
2267
- if (t === void 0) {
2268
- i.emitError("Computed function/method names are not yet supported.", {
2269
- file: i.file,
2270
- node: e
2271
- });
2272
- return;
2273
- }
2274
- 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, u = !r && !p && o.isFunctionTypeNode(e) || o.isCallSignatureDeclaration(e), f = o.isConstructorDeclaration(e), S = f || o.isConstructSignatureDeclaration(e) || o.isConstructorTypeNode(e), C = i.isInLuminaMinimalExtraction || i.jsDoc === Ce, v = et();
2275
- let P, h, L = !1, b = !1;
2276
- if (!m && a.modifiers !== void 0)
2277
- for (let E = 0; E < a.modifiers.length; ++E)
2278
- switch (a.modifiers[E].kind) {
2279
- case o.SyntaxKind.StaticKeyword:
2280
- P = !0;
2281
- break;
2282
- case o.SyntaxKind.ProtectedKeyword:
2283
- h = "protected";
2284
- break;
2285
- case o.SyntaxKind.AbstractKeyword:
2286
- L = !0;
2287
- break;
2288
- case o.SyntaxKind.AsyncKeyword:
2289
- b = !0;
2290
- break;
2291
- }
2292
- const y = {
2293
- [J]: v,
2294
- kind: c ? "method" : m ? "function" : u ? "call-signature" : S ? "constructor" : void 0,
2295
- name: S || u ? void 0 : t,
2296
- static: P,
2297
- deprecated: void 0,
2298
- summary: void 0,
2299
- description: void 0,
2300
- docsTags: void 0,
2301
- typeParameters: nt(e.typeParameters, !1, i),
2302
- parameters: [],
2303
- return: f ? void 0 : {
2304
- summary: void 0,
2305
- description: void 0,
2306
- type: C ? b ? so : yi : j(
2307
- e.type ?? qe(e, i) ?? X(
2308
- { file: i.file, node: e },
2309
- "@public function must have a return type annotation",
2310
- i
2311
- ),
2312
- i
2313
- )
2314
- },
2315
- inheritedFrom: void 0,
2316
- signature: void 0,
2317
- privacy: h,
2318
- source: void 0
2319
- }, k = y, D = dn(y, i.jsDoc), I = C ? [] : e.parameters;
2320
- let x = D.length, g = !1, K = 0;
2321
- for (let E = 0; E < I.length; ++E) {
2322
- const T = I[E], A = o.isIdentifier(T.name) ? T.name.escapedText : void 0;
2323
- if (A === "this") {
2324
- K -= 1;
2325
- continue;
2326
- }
2327
- const V = f && A !== void 0 && T.modifiers !== void 0 && T.modifiers.length > 0 ? ne(T, !0, i) : void 0;
2328
- if (V !== void 0) {
2329
- K -= 1, x += 1, i.jsDoc = V;
2330
- const q = gi(T, A, !1, i);
2331
- if (q === void 0)
2332
- continue;
2333
- i.apiObject.members.push(q);
2334
- const de = {
2335
- name: A,
2336
- deprecated: void 0,
2337
- summary: void 0,
2338
- description: q.description,
2339
- docsTags: void 0,
2340
- optional: void 0,
2341
- rest: T.dotDotDotToken ? !0 : void 0,
2342
- type: q.type,
2343
- default: q.default
2344
- };
2345
- de.optional = $t(T, de), y.parameters.push(de);
2346
- continue;
2347
- }
2348
- let G = D[E + K]?.text, U, F;
2349
- if (!i.config.strict && (G === void 0 || A === void 0) && (G = A ?? `parameter${E}`), G === void 0) {
2350
- i.emitError(
2351
- `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/references/api-extractor/tags-reference#param)${S ? " and https://webgis.esri.com/references/api-extractor/api-node-kinds#constructor" : ""}`,
2352
- { file: i.file, node: T }
2353
- ), g = !0;
2354
- break;
2355
- }
2356
- const W = G.indexOf(" ");
2357
- if (U = W === -1 ? G : G.slice(0, W), F = W === -1 ? "" : G.slice(W + 1).trim(), (F.startsWith("- ") || F.startsWith(`-
2358
- `)) && (F = F.slice(2).trim()), A !== void 0 && A !== U && `_${U}` !== A) {
2359
- const q = U.startsWith("[") || U.endsWith("]");
2360
- if (i.config.strict) {
2361
- i.emitError(
2362
- `The '${A}' TypeScript parameter name does not match the @param tag at position ${E}, '${U}'${q ? ". If you meant to mark the parameter as optional, use TypeScript's `?` syntax or `=` default value syntax instead of JSDoc [square brackets]" : ""}`,
2363
- {
2364
- file: i.file,
2365
- node: T
2366
- }
2367
- ), g = !0;
2368
- break;
2369
- } else
2370
- U = A.startsWith("_") ? A.slice(1) : A;
2371
- }
2372
- const fe = T.type ?? (T.initializer === void 0 ? X(
2373
- { file: i.file, node: T },
2374
- `Public parameter ${U} must have a type annotation or a default value`,
2375
- i
2376
- ) : Et(T.initializer, O.false, i.file, i)), ke = j(fe, i), te = {
2377
- name: U,
2378
- deprecated: void 0,
2379
- summary: void 0,
2380
- description: F || void 0,
2381
- docsTags: void 0,
2382
- optional: void 0,
2383
- rest: T.dotDotDotToken ? !0 : void 0,
2384
- type: ke,
2385
- default: $e(T.initializer, void 0, i.file)
2386
- };
2387
- te.optional = $t(T, te), y.parameters.push(te);
2388
- }
2389
- if (i.config.strict && !g && !i.isInLuminaMinimalExtraction && x !== y.parameters.length && i.emitError(
2390
- `Expected @param tags to match the number of parameters on a public function. Found ${D.length} @param tags for ${y.parameters.length} TypeScript parameters. Documentation: https://webgis.esri.com/references/api-extractor/tags-reference#param)${S ? " and https://webgis.esri.com/references/api-extractor/api-node-kinds#constructor" : ""}`,
2391
- { file: i.file, node: e }
2392
- ), y.parameters.length === 0)
2393
- y.parameters = void 0;
2394
- else {
2395
- let E = !0;
2396
- for (let T = y.parameters.length - 1; T >= 0; T--) {
2397
- const R = y.parameters[T];
2398
- E &&= R.optional === !0 || R.rest === !0 || R.default !== void 0, !E && R.optional && (R.optional = void 0, R.type.text.endsWith(" | undefined") || (R.type.text += " | undefined"));
2399
- }
2400
- }
2401
- l && i.componentTagName !== void 0 && (k.signature = Bi(k), b && !Yi(k) && i.emitError("Public method marked as async must have a Promise<SomeType> return type annotation.", {
2402
- file: i.file,
2403
- node: e
2404
- })), i.functionLikeTypeParameters = void 0;
2405
- const w = m ? tt(a) : 0, $ = m && i.exportDefaultName === t, B = w === 2 || $;
2406
- return m && (B ? Pt(y, !0, i) : w === 0 && i.config.strict && i.emitError("Expected @public function to be exported using named or default export.", {
2407
- file: i.file,
2408
- node: e
2409
- })), i.produceDts && (c || S || u ? (L && (v.isAbstract = !0), v.hasQuestionToken = a.questionToken !== void 0 ? !0 : void 0) : v.isDefaultExported = B || void 0), c ? yo(
2410
- i,
2411
- n ?? e,
2412
- i.config.documentation.copyDocDefinitions.methods,
2413
- y,
2414
- i.apiObject
2415
- ) : m && So(
2416
- i,
2417
- n ?? e,
2418
- i.config.documentation.copyDocDefinitions.functions,
2419
- y,
2420
- i.apiModule
2421
- ), y;
2422
- }
2423
- const $t = (e, t) => (
2424
- // Keep ? as is
2425
- e.questionToken !== void 0 || // If had default value internally, but not publicly, add ?
2426
- e.initializer !== void 0 && t.default === void 0 ? !0 : void 0
2427
- );
2428
- function Po(e, t, n) {
2429
- return Tt(), Me(e, t), bt && t !== void 0 && n !== void 0 && (Tt(), Mt(t.getTypeAtLocation(n))), Si();
2430
- }
2431
- function bo(e) {
2432
- return Tt(), Mt(e), Si();
2433
- }
2434
- let Le = !1, oe = !1, ae = !1, Ie = !1, re = !1, bt = !1;
2435
- const se = [], ee = [];
2436
- function Tt() {
2437
- Le = !1, oe = !1, ae = !1, Ie = !1, re = !1, bt = !1, se.length = 0, ee.length = 0;
2438
- }
2439
- function Si() {
2440
- if (!ae && !Ie && !re && !Le)
2441
- return;
2442
- const e = [];
2443
- if (se.length > 0)
2444
- for (let t = 0; t < se.length; ++t)
2445
- e.push({ type: "string", value: se[t] });
2446
- else ae && e.push(Mo);
2447
- if (ee.length > 0)
2448
- for (let t = 0; t < ee.length; ++t)
2449
- e.push({ type: "number", value: ee[t] });
2450
- else re && e.push(xo);
2451
- return Ie && e.push(Do), Le ? e.push(Ro) : oe && e.push(Lo), e;
2452
- }
2453
- const Mo = { type: "string", value: void 0 }, xo = { type: "number", value: void 0 }, Do = { type: "boolean", value: void 0 }, Ro = { type: "any", value: void 0 }, Lo = { type: "object", value: void 0 };
2454
- function Me(e, t) {
2455
- switch (e.kind) {
2456
- case o.SyntaxKind.BooleanKeyword:
2457
- case o.SyntaxKind.TrueKeyword:
2458
- case o.SyntaxKind.FalseKeyword:
2459
- Ie = !0;
2460
- return;
2461
- case o.SyntaxKind.NumberKeyword:
2462
- re = !0;
2463
- return;
2464
- case o.SyntaxKind.StringKeyword:
2465
- case o.SyntaxKind.TemplateLiteralType:
2466
- ae = !0;
2467
- return;
2468
- case o.SyntaxKind.AnyKeyword:
2469
- Le = !0;
2470
- return;
2471
- case o.SyntaxKind.LiteralType:
2472
- Me(e.literal, t);
2473
- return;
2474
- case o.SyntaxKind.StringLiteral:
2475
- case o.SyntaxKind.NoSubstitutionTemplateLiteral:
2476
- ae = !0, se.push(e.text);
2477
- return;
2478
- case o.SyntaxKind.NumericLiteral:
2479
- re = !0, ee.push(e.text);
2480
- return;
2481
- case o.SyntaxKind.PrefixUnaryExpression:
2482
- const n = e.operand;
2483
- n.kind === o.SyntaxKind.NumericLiteral ? (ee.push(`-${n.text}`), re = !0) : oe = !0;
2484
- return;
2485
- case o.SyntaxKind.VoidKeyword:
2486
- case o.SyntaxKind.UndefinedKeyword:
2487
- case o.SyntaxKind.NullKeyword:
2488
- return;
2489
- case o.SyntaxKind.UnionType:
2490
- const i = e.types, a = Math.min(i.length, Ye);
2491
- for (let l = 0; l < a; ++l)
2492
- Me(i[l], t);
2493
- i.length > Ye && (se.length = 0, ee.length = 0);
2494
- return;
2495
- case o.SyntaxKind.ParenthesizedType:
2496
- Me(e.type, t);
2497
- return;
2498
- case o.SyntaxKind.TypeQuery:
2499
- case o.SyntaxKind.IndexedAccessType:
2500
- case o.SyntaxKind.ImportType:
2501
- case o.SyntaxKind.TypeReference:
2502
- t === void 0 ? oe = !0 : Mt(
2503
- t.getTypeFromTypeNode(
2504
- e
2505
- )
2506
- );
2507
- return;
2508
- case o.SyntaxKind.TypeOperator:
2509
- const r = e;
2510
- r.operator === o.SyntaxKind.KeyOfKeyword ? ae = !0 : r.operator === o.SyntaxKind.ReadonlyKeyword ? Me(r.type, t) : oe = !0;
2511
- return;
2512
- /*case ts.SyntaxKind.UnknownKeyword:
2513
- case ts.SyntaxKind.FunctionType:
2514
- case ts.SyntaxKind.ConstructorType:
2515
- case ts.SyntaxKind.ThisKeyword:
2516
- case ts.SyntaxKind.ConditionalType:
2517
- case ts.SyntaxKind.ArrayType:
2518
- case ts.SyntaxKind.TupleType:
2519
- case ts.SyntaxKind.IntersectionType:
2520
- case ts.SyntaxKind.ObjectKeyword:
2521
- case ts.SyntaxKind.SymbolKeyword:*/
2522
- default:
2523
- oe = !0;
2524
- return;
2525
- }
2526
- }
2527
- const Ye = 40;
2528
- function Mt(e) {
2529
- if (e.isUnion()) {
2530
- const t = Math.min(e.types.length, Ye);
2531
- for (let n = 0; n < t; ++n)
2532
- zt(e.types[n]);
2533
- e.types.length > Ye && (se.length = 0, ee.length = 0);
2534
- } else
2535
- zt(e);
2536
- }
2537
- function zt(e) {
2538
- const t = e.flags;
2539
- let n = !1;
2540
- if (t & o.TypeFlags.StringLiteral ? (n = !0, ae = !0, se.push(e.value)) : t & o.TypeFlags.StringLike && (n = !0, ae = !0), t & o.TypeFlags.NumberLiteral ? (n = !0, re = !0, ee.push(e.value.toString())) : t & o.TypeFlags.NumberLike && (n = !0, re = !0), t & o.TypeFlags.BooleanLike && (n = !0, Ie = !0), t & o.TypeFlags.Any) {
2541
- if (e.intrinsicName === "error") {
2542
- oe = !0, bt = !0;
2543
- return;
2544
- }
2545
- Le = !0, n = !0;
2546
- }
2547
- t & Io || n || (oe = !0);
2548
- }
2549
- const Io = o.TypeFlags.Null | o.TypeFlags.VoidLike, Ea = (e) => e.map(Ao).join(" | "), Ao = (e) => e.type === "string" && e.value !== void 0 ? `"${e.value}"` : e.value ?? e.type;
2550
- function ko(e, t, n) {
2551
- let i;
2552
- const a = e.initializer;
2553
- let r;
2554
- if (e.questionToken !== void 0)
2555
- return;
2556
- if (e.type !== void 0)
2557
- o.isTypeReferenceNode(e.type) && e.type.typeName.escapedText === "EventEmitter" && (i = e.type.typeArguments?.[0] ?? We);
2558
- else if (a !== void 0 && o.isCallExpression(a)) {
2559
- const s = a.expression;
2560
- if (o.isIdentifier(s)) {
2561
- const c = s.escapedText;
2562
- 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));
2563
- } else if (o.isCallExpression(s) && o.isIdentifier(s.expression)) {
2564
- const c = s.expression.escapedText;
2565
- if (c === "usePropertyChange") {
2566
- const p = [];
2567
- for (let d = 0; d < a.arguments.length; ++d) {
2568
- const m = a.arguments[d];
2569
- o.isStringLiteral(m) && p.push(o.factory.createLiteralTypeNode(m));
2570
- }
2571
- if (p.length === 0)
2572
- return;
2573
- i = o.factory.createTypeLiteralNode([
2574
- o.factory.createPropertySignature(
2575
- void 0,
2576
- "name",
2577
- void 0,
2578
- p.length === 1 ? p[0] : o.factory.createUnionTypeNode(p)
2579
- )
2580
- ]);
2581
- } else c.startsWith("use") && (i = jt(e, n));
2582
- }
2583
- }
2584
- if (i === void 0)
2585
- return;
2586
- const l = {
2587
- name: t,
2588
- deprecated: void 0,
2589
- summary: void 0,
2590
- description: void 0,
2591
- docsTags: void 0,
2592
- type: j(i, n),
2593
- inheritedFrom: void 0,
2594
- privacy: void 0,
2595
- bubbles: void 0,
2596
- cancelable: void 0,
2597
- composed: void 0
2598
- };
2599
- return un(l, n.jsDoc), r !== void 0 && Go(e, r, l, n), vo(
2600
- n,
2601
- e,
2602
- n.config.documentation.copyDocDefinitions.events,
2603
- l,
2604
- n.apiObject
2605
- ), l;
2606
- }
2607
- const Ke = "createEvent";
2608
- function Go(e, t, n, i) {
2609
- if (t !== void 0) {
2610
- if (!o.isObjectLiteralExpression(t)) {
2611
- i.emitError(`Expected object literal expression as first argument of ${Ke}().`, {
2612
- file: i.file,
2613
- node: e
2614
- });
2615
- return;
2616
- }
2617
- if (t.properties.some(o.isSpreadAssignment)) {
2618
- i.emitError(
2619
- `Unexpected spread syntax in ${Ke}() argument. ${Ke}() arguments must be statically parsable at compile time`,
2620
- {
2621
- file: i.file,
2622
- node: e
2623
- }
2624
- );
2625
- return;
2626
- }
2627
- for (const a of t.properties)
2628
- !o.isPropertyAssignment(a) || !o.isIdentifier(a.name) || (a.name.text === "cancelable" && !Y(a.initializer, i) && (n.cancelable = !1), a.name.text === "bubbles" && !Y(a.initializer, i) && (n.bubbles = !1), a.name.text === "composed" && !Y(a.initializer, i) && (n.composed = !1));
2629
- }
2630
- }
2631
- function jt(e, t) {
2632
- const n = t.program?.getTypeChecker?.();
2633
- if (n === void 0)
2634
- return;
2635
- const i = n.getTypeAtLocation(e);
2636
- if (!((i.aliasSymbol ?? i.symbol)?.name === "EventEmitter"))
2637
- return;
2638
- const r = n.getTypeArguments(i);
2639
- if (r.length === 0)
2640
- return We;
2641
- const l = r[0];
2642
- return n.typeToTypeNode(l, e, o.NodeBuilderFlags.NoTruncation);
2643
- }
2644
- function gi(e, t, n, i) {
2645
- if (t === void 0) {
2646
- i.emitError("Computed property names are not yet supported", { file: i.file, node: e });
2647
- return;
2648
- }
2649
- const a = e, r = xe(a.modifiers, "property") ?? (i.pairedSetter === void 0 ? void 0 : xe(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 = Fi(), m = i.isInLuminaMinimalExtraction || i.jsDoc === Ce;
2650
- let u = !1, f = !1, S, C = !1, v, P, h;
2651
- if (c && e.modifiers !== void 0)
2652
- for (let E = 0; E < e.modifiers.length; ++E)
2653
- switch (e.modifiers[E].kind) {
2654
- case o.SyntaxKind.ReadonlyKeyword:
2655
- u = !0;
2656
- continue;
2657
- case o.SyntaxKind.AccessorKeyword:
2658
- f = !0;
2659
- continue;
2660
- case o.SyntaxKind.ProtectedKeyword:
2661
- S = "protected";
2662
- continue;
2663
- case o.SyntaxKind.StaticKeyword:
2664
- v = !0;
2665
- continue;
2666
- case o.SyntaxKind.AbstractKeyword:
2667
- C = !0;
2668
- continue;
2669
- }
2670
- n ||= u || p && i.pairedSetter === void 0;
2671
- const L = i.apiObject.customElement === !0;
2672
- let b = !1;
2673
- if (i.moduleHasAccessorLikeClass)
2674
- if (s !== void 0) {
2675
- for (let E = 0; E < s.length; ++E) {
2676
- const T = s[E];
2677
- if (!o.isPropertyAssignment(T)) {
2678
- b ||= o.isSpreadAssignment(T);
2679
- continue;
2680
- }
2681
- const R = T.name.escapedText;
2682
- R === "readOnly" && Y(T.initializer, i) ? n = !0 : R === "constructOnly" && Y(T.initializer, i) ? d.isConstructorOnly = !0 : R === "type" ? d.hasAutoCasting = !0 : R === "types" && Fo(
2683
- d,
2684
- T.initializer?.kind === o.SyntaxKind.ObjectLiteralExpression ? T.initializer : void 0
2685
- );
2686
- }
2687
- b && d.hasAutoCasting === void 0 && (d.hasAutoCasting = !0, d.autoCastingRequiresType = !0);
2688
- } else l !== void 0 && (d.hasAutoCasting = !0, d.autoCastingRequiresType = !0);
2689
- else if (L) {
2690
- const E = i.apiObject;
2691
- if (r === void 0) {
2692
- if (m)
2693
- return;
2694
- {
2695
- const T = c && !v ? ko(e, t, i) : void 0;
2696
- if (T !== void 0) {
2697
- E.events ??= [], E.events.push(T);
2698
- return;
2699
- } else !i.config.strict && Ti(e) ? (S = "protected", P = !1, i.jsDoc = {
2700
- ...i.jsDoc,
2701
- docsTags: [...i.jsDoc.docsTags, N.internal]
2702
- }) : r === void 0 && i.emitError(
2703
- "Public properties on a Lumina component must have a @property() decorator for lazy-loading compatibility.",
2704
- {
2705
- file: i.file,
2706
- node: e
2707
- }
2708
- );
2709
- }
2710
- } else if (s !== void 0)
2711
- for (let T = 0; T < s.length; ++T) {
2712
- const R = s[T];
2713
- if (!(!o.isPropertyAssignment(R) || !o.isIdentifier(R.name)))
2714
- switch (R.name.escapedText) {
2715
- case "attribute":
2716
- o.isStringLiteral(R.initializer) ? P = R.initializer.text : P = Y(R.initializer, i);
2717
- continue;
2718
- case "reflect":
2719
- Y(R.initializer, i) && (P ??= !0, h = !0);
2720
- continue;
2721
- case "readOnly":
2722
- Y(R.initializer, i) && (n = !0);
2723
- continue;
2724
- case "type":
2725
- case "converter":
2726
- P ??= !0;
2727
- continue;
2728
- }
2729
- }
2730
- }
2731
- const y = i.pairedSetter ?? (o.isSetAccessor(e) ? e : void 0), k = n ? void 0 : y;
2732
- f ||= r !== void 0 || p || y !== void 0, d.isAccessor = f || void 0;
2733
- const D = k?.parameters[0].type, I = a.type;
2734
- let x = D ?? I;
2735
- if (x === void 0) {
2736
- const E = k?.parameters[0].initializer ?? e.initializer;
2737
- if (c && E !== void 0 && o.isArrowFunction(E)) {
2738
- if (n)
2739
- return Ht(E, t, e, i);
2740
- Jt(e, i);
2741
- }
2742
- x = E === void 0 ? qn(e, i) ?? X(
2743
- { file: i.file, node: e },
2744
- "Public property must have a type annotation or a default value",
2745
- i
2746
- ) : Et(E, n ? O.shallow : O.false, i.file, i);
2747
- } else if (x = Ct(x), c && o.isFunctionTypeNode(x)) {
2748
- if (n)
2749
- return Ht(x, t, e, i);
2750
- Jt(e, i);
2751
- }
2752
- const g = {
2753
- [J]: d,
2754
- kind: "field",
2755
- name: t,
2756
- static: v,
2757
- deprecated: void 0,
2758
- summary: void 0,
2759
- description: void 0,
2760
- docsTags: void 0,
2761
- // In minimal extraction, we care only for type.values (set below)
2762
- type: m ? { ...yi } : j(x, i),
2763
- getterType: void 0,
2764
- default: void 0,
2765
- readonly: n || void 0,
2766
- inheritedFrom: void 0,
2767
- privacy: S,
2768
- source: void 0,
2769
- attribute: !L || P === !1 ? void 0 : typeof P == "string" ? P : qi(t),
2770
- reflects: h,
2771
- docsOnlyReadonly: void 0
2772
- };
2773
- pn(g, i.jsDoc);
2774
- const K = g.default;
2775
- L && t === "messageOverrides" && (d.dtsTypeOverride = g.type.text, g.type = lo);
2776
- const w = L && r !== void 0;
2777
- if (w) {
2778
- !n && g.readonly === !0 && (g.docsOnlyReadonly = !0);
2779
- const E = i.program?.getTypeChecker?.();
2780
- g.type.values = E !== void 0 && x.pos === -1 && (x.kind === o.SyntaxKind.TypeQuery || x.kind === o.SyntaxKind.IndexedAccessType || x.kind === o.SyntaxKind.ImportType || x.kind === o.SyntaxKind.TypeReference) ? bo(E.getTypeAtLocation(y?.parameters[0] ?? e)) : Po(x, E, y?.parameters[0] ?? e), (P === void 0 && g.type.values === void 0 && !i.config.context.isLuminaMinimalExtraction || g.readonly && !g.reflects) && (g.attribute = void 0);
2781
- const T = E !== void 0 && o.isPropertyDeclaration(e) && // BUG: should not check node.type here? but do check in property.getterType below
2782
- 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);
2783
- if (("initializer" in e && e.initializer !== void 0 && (!g.default || !g.description) || T) && !m) {
2784
- const R = e.initializer, A = E?.getSymbolAtLocation(R), H = A !== void 0 && ((A.flags ?? 0) & o.SymbolFlags.Alias) !== 0 ? E?.getAliasedSymbol(A) : A;
2785
- let V, G;
2786
- const U = H?.getDeclarations();
2787
- if (U !== void 0)
2788
- for (let F = 0; F < U.length; ++F) {
2789
- const W = U[F];
2790
- V ??= o.isGetAccessor(W) ? W : void 0, G ??= o.isSetAccessor(W) ? W : void 0, "initializer" in W && (g.default = $e(
2791
- W.initializer,
2792
- g.default,
2793
- W.getSourceFile()
2794
- ));
2795
- }
2796
- if (T && V?.type !== void 0 && G !== void 0 && V.type.getText() !== G.parameters[0]?.type?.getText()) {
2797
- const F = V.getSourceFile(), W = i.file;
2798
- i.file = F, g.getterType = {
2799
- text: j(V.type, i).text,
2800
- references: void 0,
2801
- values: void 0,
2802
- source: void 0
2803
- }, i.file = W;
2804
- }
2805
- }
2806
- }
2807
- if (I !== void 0 && D !== void 0 && !m && // Quick perf check: type is definitely the same if raw type string matches.
2808
- // More reliable check follows in processing/index.ts, where printed normalized
2809
- // type string is compared.
2810
- I.getText(i.file) !== D.getText(i.file) ? g.getterType = j(I, i) : g.readonly === !0 && g.name === "type" && x.kind === o.SyntaxKind.LiteralType && x.literal.kind === o.SyntaxKind.StringLiteral && (i.moduleContext.typeName = x.literal.text), (d.hasAutoCasting === !0 || d.isConstructorOnly === !0) && (g.readonly === !0 && d.isConstructorOnly !== !0 ? d.hasAutoCasting = void 0 : g.getterType ??= {
2811
- ...g.type,
2812
- references: g.type.references === void 0 ? void 0 : [...g.type.references]
2813
- }), n && x.kind === o.SyntaxKind.LiteralType || (g.default = $e(
2814
- e.initializer,
2815
- g.default,
2816
- i.file
2817
- )), w) {
2818
- const E = K === void 0 && g.default === "true";
2819
- g.type.values?.length === 1 && g.type.values[0].type === "boolean" && (g.default === void 0 ? g.default = "false" : E && g.deprecated === void 0 && (i.loggedBooleanWarning || i.config.context.logger.error(
2820
- `${Ai}Boolean properties should default to "false". Found default value "true" in ${i.apiObject.name}.${g.name}. See https://webgis.esri.com/references/lumina/properties#boolean-properties`
2821
- ), i.loggedBooleanWarning = !0));
2822
- }
2823
- return fo(
2824
- i,
2825
- e,
2826
- i.config.documentation.copyDocDefinitions?.properties,
2827
- g,
2828
- i.apiObject
2829
- ), i.produceDts && C && (d.isAbstract = !0), c && e.questionToken !== void 0 && (g.type.text.endsWith(" | undefined") || (g.type.text = // Don't need to wrap non-accessors in |undefined as we replace |undefined
2830
- // with ? during printing
2831
- f && (x.kind === o.SyntaxKind.FunctionType || x.kind === o.SyntaxKind.ConstructorType || x.kind === o.SyntaxKind.ConditionalType || x.kind === o.SyntaxKind.InferType) ? `(${g.type.text}) | undefined` : `${g.type.text} | undefined`), g.getterType !== void 0 && !g.getterType.text.endsWith(" | undefined") && (g.getterType.text += " | undefined")), g;
2832
- }
2833
- function Jt(e, t) {
2834
- if (!t.config.strict)
2835
- return;
2836
- const n = t.jsDoc.docsTags;
2837
- for (let i = 0; i < n.length; ++i) {
2838
- const a = n[i].name;
2839
- if (a === "param" || a === "returns") {
2840
- t.emitError(
2841
- "@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.",
2842
- {
2843
- file: t.file,
2844
- node: e
2845
- }
2846
- );
2847
- return;
2848
- }
2849
- }
2850
- }
2851
- function Fo(e, t) {
2852
- if (e.hasAutoCasting = !0, e.autoCastingRequiresType = !0, t !== void 0)
2853
- for (let n = 0; n < t.properties.length; ++n) {
2854
- const i = t.properties[n];
2855
- if (o.isPropertyAssignment(i) && i.name.escapedText === "defaultKeyValue" && o.isStringLiteral(i.initializer)) {
2856
- e.autoCastingDefaultType = i.initializer.text;
2857
- return;
2858
- }
2859
- }
2860
- }
2861
- const Ti = (e) => o.isPropertyDeclaration(e) && e.initializer !== void 0 && o.isCallExpression(e.initializer) && o.isIdentifier(e.initializer.expression) && e.initializer.expression.escapedText === "useT9n";
2862
- function Ze(e, t) {
2863
- const n = o.isClassDeclaration(e);
2864
- let i = e.name.escapedText;
2865
- const a = n ? t.componentTagName : void 0, r = !n && pi(i, t);
2866
- 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;
2867
- 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) {
2868
- No(i, l.types[0].typeArguments[0], t);
2869
- return;
2870
- }
2871
- 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";
2872
- s && (l = void 0, i = t.mixinName);
2873
- const c = ii(), p = {
2874
- [J]: c,
2875
- kind: n ? "class" : "interface",
2876
- name: i,
2877
- customElement: a === void 0 ? void 0 : !0,
2878
- tagName: a,
2879
- privacy: void 0,
2880
- pascalCaseName: a === void 0 ? void 0 : (
2881
- /**
2882
- * We use the tag name rather than the class name to generate the
2883
- * type name because the class name may not start with the library
2884
- * prefix (Arcgis), where as tag name always does. This also matches
2885
- * Stencil's behavior.
2886
- */
2887
- Qi(a)
2888
- ),
2889
- deprecated: void 0,
2890
- summary: void 0,
2891
- description: void 0,
2892
- docsTags: void 0,
2893
- demos: void 0,
2894
- typeParameters: s ? void 0 : nt(e.typeParameters, !0, t),
2895
- superclass: void 0,
2896
- supertypes: void 0,
2897
- mixins: void 0,
2898
- encapsulation: void 0,
2899
- formAssociated: void 0,
2900
- members: [],
2901
- attributes: void 0,
2902
- events: void 0,
2903
- slots: void 0,
2904
- cssParts: void 0,
2905
- cssProperties: void 0,
2906
- cssStates: void 0,
2907
- type: void 0,
2908
- source: void 0,
2909
- // REFACTOR: remove this deprecated property
2910
- importPath: a === void 0 ? void 0 : t.apiModule.path
2911
- }, d = p, m = d, u = d;
2912
- oi(p, t.jsDoc);
2913
- const f = r ? (
2914
- // Members will be added during post-processing
2915
- !1
2916
- ) : hi(d, e.members, i, t);
2917
- s && (t.mixinMixins !== void 0 && (m.mixins = t.mixinMixins), f && 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(
2918
- "Lumina web component must extend LitElement class. Found a class that does not extend any class.",
2919
- {
2920
- file: t.file,
2921
- node: e
2922
- }
2923
- ) : Oo(l, n, p, e, t), a !== void 0 && co(m, t), d.members.length === 0 && (a === void 0 && (d.members = void 0), r && (t.moduleContext.constructorPropertiesInterface = u));
2924
- const S = t.exportDefaultName === i, C = tt(e), v = S || C === 2;
2925
- return (v || a !== void 0) && Pt(d, v, t), n ? (a === void 0 ? To(
2926
- t,
2927
- e,
2928
- t.config.documentation.copyDocDefinitions.classes,
2929
- m,
2930
- t.apiModule
2931
- ) : ho(
2932
- t,
2933
- e,
2934
- t.config.documentation.copyDocDefinitions.customElements,
2935
- m,
2936
- t.apiModule
2937
- ), t.moduleHasClass && t.config.strict && t.emitError(
2938
- "A module may only export at most one public class/mixin/custom element. Documentation: https://webgis.esri.com/references/api-extractor/api-node-kinds#module-level-documentation",
2939
- { file: t.file, node: e }
2940
- ), t.moduleHasClass = !0) : vi(
2941
- t,
2942
- e,
2943
- t.config.documentation.copyDocDefinitions.interfaces,
2944
- u,
2945
- t.apiModule
2946
- ), t.produceDts && (c.isDefaultExported = v || void 0, n && (!s && (!S && C === 0) && t.config.strict && t.emitError("Expected @public class to be exported using named or default export.", {
2947
- file: t.file,
2948
- node: e
2949
- }), di(e.modifiers, o.SyntaxKind.AbstractKeyword) ? c.hasExplicitAbstract = !0 : !f && (t.config.strict || a !== void 0) && (c.hasExplicitAbstract = !1))), t.objectLikeTypeParameters = void 0, d;
2950
- }
2951
- function Oo(e, t, n, i, a) {
2952
- for (let r = 0; r < e.types.length; ++r) {
2953
- const l = e.types[r];
2954
- if (t) {
2955
- let s = l.typeArguments, c = l.expression;
2956
- if (o.isCallExpression(c)) {
2957
- do {
2958
- const d = c.expression;
2959
- if (o.isPropertyAccessExpression(d) && o.isIdentifier(d.expression) && o.isIdentifier(d.name) && d.expression.escapedText === "Collection" && d.name.escapedText === "ofType") {
2960
- const m = c.arguments[0];
2961
- if (!o.isIdentifier(m)) {
2962
- a.emitError("Expected the argument to Collection.ofType to be an identifier.", {
2963
- file: a.file,
2964
- node: m
2965
- });
2966
- break;
2967
- }
2968
- s = [o.factory.createTypeReferenceNode(m)], c = d.expression;
2969
- } else {
2970
- n.mixins ??= [];
2971
- const m = c.expression;
2972
- n.mixins.unshift(
2973
- Ee(m, c.typeArguments, a)
2974
- ), c = c.arguments[0];
2975
- }
2976
- } while (o.isCallExpression(c));
2977
- if (o.isClassExpression(c)) {
2978
- (c.members.length !== 0 || c.heritageClauses !== void 0) && a.emitError(
2979
- "The only supported inline class expression is an empty class. Extract into a separate named class",
2980
- { file: a.file, node: c }
2981
- );
2982
- break;
2983
- } else o.isExpressionWithTypeArguments(c) && (s = c.typeArguments, c = c.expression);
2984
- }
2985
- const p = Ee(
2986
- c,
2987
- a.isInLuminaMinimalExtraction ? void 0 : s,
2988
- a
2989
- );
2990
- if (p.name === "LitElement") {
2991
- p.name = "HTMLElement", p.package = le, p.viewUrl = "https://developer.mozilla.org/docs/Web/API/HTMLElement";
2992
- const d = a.moduleContext.importsMap.LitElement;
2993
- d === void 0 ? a.emitError("Expected LitElement import to be defined", { file: a.file, node: i }) : d.actualName = "PublicLitElement";
2994
- }
2995
- n.superclass = p;
2996
- break;
2997
- } else {
2998
- const s = ro(l);
2999
- let c = s, p;
3000
- if (o.isExpressionWithTypeArguments(s))
3001
- c = s.expression, p = s.typeArguments;
3002
- 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))
3003
- continue;
3004
- n.supertypes ??= [], n.supertypes.push(
3005
- Ee(c, p, a)
3006
- );
3007
- }
3008
- }
3009
- }
3010
- function hi(e, t, n, i) {
3011
- i.apiObject = e;
3012
- const a = e.customElement === !0, r = e.members, l = t.length;
3013
- let s, c = t[0], p, d = De(c?.name), m = !1;
3014
- for (let u = 0; u < l; ++u) {
3015
- if (s = c, c = t[u + 1], p = d, d = De(c?.name), i.pairedSetter !== void 0) {
3016
- i.pairedSetter = void 0;
3017
- continue;
3018
- }
3019
- if (p === void 0 && s.name?.kind === o.SyntaxKind.PrivateIdentifier)
3020
- continue;
3021
- c !== void 0 && p === d && (o.isGetAccessor(c) ? (i.pairedSetter = s, s = c) : o.isSetAccessor(c) && (i.pairedSetter = c));
3022
- let f = ne(s, !0, i) ?? (i.pairedSetter === void 0 ? void 0 : ne(i.pairedSetter, !0, i));
3023
- if (f === void 0 && !i.config.strict && (a ? p !== void 0 && qt(s, i.pairedSetter, !0) : !di(s.modifiers, o.SyntaxKind.PrivateKeyword))) {
3024
- const C = i.pairedSetter === void 0 ? ze(s, !1, i, Re) : ne(s, !1, i) ?? ze(i.pairedSetter, !1, i, Re);
3025
- C?.docsTags.includes(N.private) === !0 ? a && i.config.context.includeLuminaPrivateComponents ? f = Ce : f = void 0 : f = C;
3026
- } else f === void 0 && a && i.config.context.includeLuminaPrivateComponents && qt(s, i.pairedSetter, !1) && (f = Ce);
3027
- if (f === void 0) {
3028
- 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 && Y(s.initializer, i) && (i.apiObject.formAssociated = !0));
3029
- continue;
3030
- }
3031
- i.jsDoc = f;
3032
- let S;
3033
- o.isPropertyDeclaration(s) || o.isPropertyAssignment(s) || o.isGetAccessorDeclaration(s) || o.isSetAccessorDeclaration(s) || o.isPropertySignature(s) ? S = gi(s, p, !1, i) : o.isMethodDeclaration(s) || o.isMethodSignature(s) ? S = st(s, p, void 0, i) : o.isConstructorDeclaration(s) || o.isConstructSignatureDeclaration(s) ? (m = !0, S = st(s, n, void 0, i)) : o.isCallSignatureDeclaration(s) ? S = st(s, n, void 0, i) : o.isIndexSignatureDeclaration(s) && e.kind === "interface" ? (lt.members.splice(
3034
- 0,
3035
- lt.members.length,
3036
- s
3037
- ), Ei(e, lt, i), ue(e).emitAsTypeAlias = !0) : i.emitError(`@public used on unsupported member kind: ${o.SyntaxKind[s.kind]}`, {
3038
- file: i.file,
3039
- node: s
3040
- }), S !== void 0 && r.push(S);
3041
- }
3042
- return i.apiObject = void 0, m;
3043
- }
3044
- const lt = o.factory.createTypeLiteralNode(void 0);
3045
- function qt(e, t, n) {
3046
- if (e.kind === o.SyntaxKind.PropertyDeclaration || e.kind === o.SyntaxKind.GetAccessor || e.kind === o.SyntaxKind.SetAccessor) {
3047
- const i = e;
3048
- if ((xe(i.modifiers, "property") ?? (t === void 0 ? void 0 : xe(t.modifiers, "property"))) !== void 0)
3049
- return !0;
3050
- if (!n)
3051
- return !1;
3052
- if (Ti(e))
3053
- return !0;
3054
- if (i.modifiers !== void 0)
3055
- for (let r = 0; r < (i.modifiers?.length ?? 0); ++r) {
3056
- const l = i.modifiers[r];
3057
- if (l.kind === o.SyntaxKind.PrivateKeyword || l.kind === o.SyntaxKind.ProtectedKeyword || l.kind === o.SyntaxKind.StaticKeyword)
3058
- return !1;
3059
- }
3060
- 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;
3061
- } else return e.kind === o.SyntaxKind.MethodDeclaration ? xe(e.modifiers, "method") !== void 0 : !1;
3062
- }
3063
- function Ei(e, t, n) {
3064
- const i = j(t, n);
3065
- if (e.type === void 0)
3066
- e.type = i;
3067
- else {
3068
- const a = `${e.type.text} &
3069
- `, r = a.length;
3070
- e.type = {
3071
- text: `${a}${i.text}`,
3072
- references: i.references === void 0 ? e.type.references : e.type.references === void 0 ? Ft(i.references, r) : [...e.type.references, ...Ft(i.references, r)],
3073
- values: void 0,
3074
- source: void 0
3075
- };
3076
- }
3077
- }
3078
- function No(e, t, n) {
3079
- if (!o.isTypeQueryNode(t)) {
3080
- n.emitError("Expected a TypeQueryNode for applyMixins syntax", { file: n.file, node: t });
3081
- return;
3082
- }
3083
- if (!o.isIdentifier(t.exprName)) {
3084
- n.emitError("Expected an Identifier for the expression name in applyMixins syntax", {
3085
- file: n.file,
3086
- node: t
3087
- });
3088
- return;
3089
- }
3090
- const i = t.exprName.escapedText;
3091
- let a;
3092
- for (let s = n.file.statements.length - 1; s >= 0; --s) {
3093
- const c = n.file.statements[s];
3094
- if (!o.isVariableStatement(c))
3095
- continue;
3096
- const p = c.declarationList.declarations[0];
3097
- if (o.isIdentifier(p.name) && p.name?.escapedText === i) {
3098
- a = p;
3099
- break;
3100
- }
3101
- }
3102
- if (a === void 0) {
3103
- n.emitError(`Could not find variable declaration for ${i} in applyMixins syntax`, {
3104
- file: n.file,
3105
- node: t
3106
- });
3107
- return;
3108
- }
3109
- if (a.initializer === void 0 || !o.isAsExpression(a.initializer) || !o.isArrayLiteralExpression(a.initializer.expression)) {
3110
- n.emitError(
3111
- `Expected an 'as' expression with an array literal for the initializer of ${i} in applyMixins syntax`,
3112
- {
3113
- file: n.file,
3114
- node: a
3115
- }
3116
- );
3117
- return;
3118
- }
3119
- const r = n.apiModule.declarations.at(-1);
3120
- if (r?.kind !== "class" || r.name !== e) {
3121
- n.emitError(
3122
- `Expected the ${e} class to be defined right before the ${e} interface`,
3123
- {
3124
- file: n.file,
3125
- node: t
3126
- }
3127
- );
3128
- return;
3129
- }
3130
- const l = a.initializer.expression.elements;
3131
- r.mixins ??= [];
3132
- for (let s = 0; s < l.length; ++s) {
3133
- const c = l[s];
3134
- if (!o.isIdentifier(c)) {
3135
- n.emitError(`Expected an Identifier in the mixins array for ${i} in applyMixins syntax`, {
3136
- file: n.file,
3137
- node: c
3138
- });
3139
- return;
3140
- }
3141
- r.mixins.unshift(Ee(c, void 0, n));
3142
- }
3143
- }
3144
- function wo(e, t) {
3145
- const n = e.type, i = e.name.escapedText, a = pi(i, t), r = ii(), l = {
3146
- [J]: r,
3147
- kind: "interface",
3148
- name: i,
3149
- customElement: void 0,
3150
- tagName: void 0,
3151
- privacy: void 0,
3152
- pascalCaseName: void 0,
3153
- deprecated: void 0,
3154
- summary: void 0,
3155
- description: void 0,
3156
- docsTags: void 0,
3157
- demos: void 0,
3158
- typeParameters: nt(e.typeParameters, !0, t),
3159
- superclass: void 0,
3160
- supertypes: void 0,
3161
- mixins: void 0,
3162
- encapsulation: void 0,
3163
- formAssociated: void 0,
3164
- members: [],
3165
- attributes: void 0,
3166
- events: void 0,
3167
- slots: void 0,
3168
- cssParts: void 0,
3169
- cssProperties: void 0,
3170
- cssStates: void 0,
3171
- type: void 0,
3172
- source: void 0,
3173
- importPath: void 0
3174
- }, s = l;
3175
- if (oi(l, t.jsDoc), a)
3176
- t.moduleContext.constructorPropertiesInterface = s;
3177
- else {
3178
- r.emitAsTypeAlias = !0;
3179
- const c = o.isIntersectionTypeNode(n) ? n.types : [n];
3180
- for (let p = 0; p < c.length; ++p) {
3181
- const d = Ct(c[p]);
3182
- if (o.isTypeLiteralNode(d))
3183
- hi(s, d.members, i, t);
3184
- else if (o.isTypeReferenceNode(d))
3185
- s.supertypes ??= [], s.supertypes.push(Ee(d.typeName, d.typeArguments, t));
3186
- else if (o.isFunctionTypeNode(d) || o.isConstructorTypeNode(d)) {
3187
- if (t.jsDoc = Re, s.docsTags !== void 0) {
3188
- t.jsDoc = { ...Re, docsTags: [] };
3189
- for (let m = 0; m < s.docsTags.length; ++m) {
3190
- const u = s.docsTags[m];
3191
- (u.name === "param" || u.name === "returns") && (t.jsDoc.docsTags.push(u), s.docsTags.splice(m, 1), m -= 1);
3192
- }
3193
- s.docsTags.length === 0 && (s.docsTags = void 0);
3194
- }
3195
- s.members.push(Co(d, i, void 0, t));
3196
- } else
3197
- Ei(s, d, t);
3198
- }
3199
- }
3200
- return t.objectLikeTypeParameters = void 0, vi(
3201
- t,
3202
- e,
3203
- t.config.documentation.copyDocDefinitions.interfaces,
3204
- s,
3205
- t.apiModule
3206
- ), s.members.length === 0 && (s.members = void 0), s;
3207
- }
3208
- function Uo(e, t, n) {
3209
- const i = e.initializer, a = i.body;
3210
- let r, l;
3211
- for (let d = 0; d < a.statements.length; ++d) {
3212
- const m = a.statements[d];
3213
- if (o.isVariableStatement(m)) {
3214
- const u = m.declarationList.declarations[0];
3215
- if (!o.isIdentifier(u.name) || u.name?.escapedText !== "TypedBase")
3216
- continue;
3217
- let f = u.initializer.expression.expression;
3218
- for (; o.isCallExpression(f); ) {
3219
- const S = f.expression;
3220
- r ??= [], r.push(Ee(S, f.typeArguments, n)), f = f.arguments[0];
3221
- }
3222
- } else o.isClassDeclaration(m) && (l = m);
3223
- }
3224
- if (l === void 0) {
3225
- n.emitError(`Failed to find class declaration inside the mixin ${t}`, {
3226
- file: n.file,
3227
- node: e
3228
- });
3229
- return;
3230
- }
3231
- nt(
3232
- // Skip the TBase type parameter - non-public implementation detail
3233
- i.typeParameters.length === 1 ? void 0 : i.typeParameters.slice(1),
3234
- !0,
3235
- n
3236
- ) !== void 0 && n.emitError(
3237
- "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",
3238
- {
3239
- file: n.file,
3240
- node: e
3241
- }
3242
- ), n.mixinName = t, n.mixinMixins = r;
3243
- const p = Ze(l, n);
3244
- return p.kind = "mixin", p;
3245
- }
3246
- function Vo(e, t, n) {
3247
- const i = n.moduleHasClass;
3248
- n.moduleHasClass = !1;
3249
- const a = o.factory.createClassDeclaration(
3250
- [o.factory.createModifier(o.SyntaxKind.ExportKeyword)],
3251
- t,
3252
- void 0,
3253
- [
3254
- o.factory.createHeritageClause(o.SyntaxKind.ExtendsKeyword, [
3255
- o.factory.createExpressionWithTypeArguments(e, void 0)
3256
- ])
3257
- ],
3258
- []
3259
- ), r = Ze(a, n), l = r, s = ue(l);
3260
- 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;
3261
- }
3262
- function Wo(e, t) {
3263
- const n = e.declarationList.declarations;
3264
- n.length !== 1 && t.emitError("Public variable statements must have only a single variable declarations. Found multiple.", {
3265
- file: t.file,
3266
- node: e
3267
- });
3268
- const i = n[0], a = i.name;
3269
- if (!o.isIdentifier(a)) {
3270
- t.config.strict && t.emitError("Expected public variable names to be an identifier.", {
3271
- file: t.file,
3272
- node: e
3273
- });
3274
- return;
3275
- }
3276
- const r = a.escapedText, l = t.exportDefaultName === r;
3277
- if (tt(e) === 0 && !l && t.config.strict && t.emitError("Expected @public variable to be exported as named or default export.", {
3278
- file: t.file,
3279
- node: e
3280
- }), t.mixinName !== void 0 && i.initializer !== void 0 && o.isCallExpression(i.initializer) && o.isIdentifier(i.initializer.expression) && i.initializer.expression.escapedText === t.mixinName)
3281
- return Vo(i.initializer, r, t);
3282
- let c = i.type;
3283
- const p = (e.declarationList.flags & o.NodeFlags.Const) !== 0;
3284
- if (c === void 0) {
3285
- const f = i.initializer;
3286
- if (f !== void 0 && o.isArrowFunction(f) && p)
3287
- return f.typeParameters?.at(0)?.name?.escapedText === "TBase" ? Uo(i, r, t) : Kt(f, r, e, t);
3288
- f === void 0 ? c = X(
3289
- { file: t.file, node: i },
3290
- "Public variable must have a type annotation or a default value",
3291
- t
3292
- ) : c = Et(f, p ? O.shallow : O.false, t.file, t);
3293
- } else if (c = Ct(c), o.isFunctionTypeNode(c))
3294
- return Kt(c, r, e, t);
3295
- const d = Oi(), m = {
3296
- [J]: d,
3297
- kind: "variable",
3298
- name: r,
3299
- deprecated: void 0,
3300
- summary: void 0,
3301
- description: void 0,
3302
- docsTags: void 0,
3303
- source: void 0,
3304
- type: j(c, t),
3305
- default: void 0
3306
- };
3307
- return mn(m, t.jsDoc), p && c.kind === o.SyntaxKind.LiteralType || (m.default = $e(i.initializer, m.default, t.file)), go(
3308
- t,
3309
- e,
3310
- t.config.documentation.copyDocDefinitions.variables,
3311
- m,
3312
- t.apiModule
3313
- ), l && (Pt(m, !0, t), t.produceDts && (d.isDefaultExported = !0)), m;
3314
- }
3315
- function Ci(e, t, n) {
3316
- const i = n.statementJsDocs[t];
3317
- if (i !== void 0) {
3318
- if (n.jsDoc = i, o.isClassDeclaration(e))
3319
- return Ze(e, n);
3320
- if (o.isFunctionDeclaration(e))
3321
- return Eo(e, e.name.escapedText, void 0, n);
3322
- if (o.isInterfaceDeclaration(e))
3323
- return Ze(e, n);
3324
- if (o.isTypeAliasDeclaration(e))
3325
- return wo(e, n);
3326
- if (o.isVariableStatement(e))
3327
- return Wo(e, n);
3328
- }
3329
- }
3330
- function _o(e, t) {
3331
- const n = t.apiModule.declarations, i = e.statements;
3332
- for (let a = 0; a < i.length; ++a) {
3333
- const r = i[a], l = Ci(r, a, t);
3334
- l !== void 0 && n.push(l);
3335
- }
3336
- }
3337
- function Bo(e, t) {
3338
- const n = e.fileName.slice(t.config.context.cwd.length), i = t.watchFiles?.get(n);
3339
- if (i !== void 0) {
3340
- if (i.module !== void 0)
3341
- return i.module;
3342
- if (i.isEmptyModule)
3343
- return;
3344
- }
3345
- const a = n.slice(t.config.context.basePath.length), r = Z(a), l = Ve(r, t, !0), s = t.componentTagName === void 0 ? l : `${l}/customElement`;
3346
- t.mixinName = void 0, t.moduleHasClass = !1, t.apiClassLikeName = void 0, t.isInLuminaMinimalExtraction = t.config.context.isLuminaMinimalExtraction;
3347
- const c = /* @__PURE__ */ Object.create(null), p = t.localDeclarations;
3348
- p.clear();
3349
- const d = t.localPrivateDeclarations;
3350
- d?.clear(), t.exportDefaultName = void 0;
3351
- let m;
3352
- const u = {
3353
- class: void 0,
3354
- default: void 0,
3355
- named: /* @__PURE__ */ Object.create(null)
3356
- }, f = ti(e, s, c, u);
3357
- t.moduleContext = f;
3358
- const S = t.implicitPublicModules?.[l];
3359
- let C = !1;
3360
- const v = t.isJsApi && l.startsWith("applications/");
3361
- t.statementJsDocs.length = 0;
3362
- for (let b = 0; b < e.statements.length; ++b) {
3363
- const y = e.statements[b], 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;
3364
- let D;
3365
- if (
3366
- // Only look at web components in Lumina's dev server
3367
- t.isInLuminaMinimalExtraction
3368
- )
3369
- D = y.kind === o.SyntaxKind.ClassDeclaration && t.componentTagName !== void 0 && y.heritageClauses !== void 0 && y.modifiers !== void 0 ? Re : void 0;
3370
- else if (k) {
3371
- if (D = ne(y, !0, t), D === void 0 && !t.config.strict) {
3372
- const I = ze(y, !1, t, {
3373
- description: void 0,
3374
- docsTags: []
3375
- }), x = y.kind === o.SyntaxKind.ClassDeclaration && t.componentTagName !== void 0 && y.heritageClauses !== void 0 && y.modifiers !== void 0;
3376
- I?.docsTags.includes(N.private) === !0 ? x && t.config.context.includeLuminaPrivateComponents ? (D = Ce, t.isInLuminaMinimalExtraction = !0) : D = void 0 : I !== void 0 && (x || S !== void 0 && Nn(y, S)) && (D = I);
3377
- } else D === void 0 && t.componentTagName !== void 0 && t.config.context.includeLuminaPrivateComponents && y.kind === o.SyntaxKind.ClassDeclaration && // Avoid the following from being falsely considered a component class
3378
- // https://devtopia.esri.com/WebGIS/arcgis-web-components/blob/223ebb8df0067bf332013a4cfc6032152c14fe58/packages/common-packages/common-components/src/components/ramp-color/ramp-color.tsx#L19-L26
3379
- y.heritageClauses !== void 0 && y.modifiers !== void 0 && (D = Ce, t.isInLuminaMinimalExtraction = !0);
3380
- D !== void 0 && !t.config.strict && y.kind === o.SyntaxKind.ClassDeclaration && t.componentTagName !== void 0 && y.heritageClauses !== void 0 && y.modifiers !== void 0 && D.docsTags.includes(N.internal) && (C = !0);
3381
- }
3382
- if (t.statementJsDocs[b] = D, k || b === 0 && (m = ne(e, !0, t)), D !== void 0)
3383
- v && D.docsTags.push(N.internal), p.add(
3384
- (y.name ?? y.declarationList?.declarations[0].name).escapedText
3385
- ), 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);
3386
- else if (o.isImportDeclaration(y)) {
3387
- const I = y.importClause;
3388
- if (I === void 0)
3389
- continue;
3390
- const x = y.moduleSpecifier.text, g = !x.startsWith("."), K = g ? x : Z(x), w = g ? void 0 : Ve(pt(r, K), t), $ = w === void 0 ? void 0 : t.config.types.typeReplacements[w];
3391
- if (Rn(y, t), I.name !== void 0) {
3392
- const E = I.name.escapedText, T = $?.[E], R = T?.[1], A = T?.[0] ?? w;
3393
- c[E] = {
3394
- type: T?.[2] ?? "default",
3395
- modulePath: A,
3396
- rawSpecifier: x,
3397
- replacementName: R,
3398
- actualName: void 0,
3399
- wasUsed: !1
3400
- };
3401
- }
3402
- const B = I.namedBindings;
3403
- if (B === void 0)
3404
- continue;
3405
- if (B.kind === o.SyntaxKind.NamespaceImport) {
3406
- const E = B.name.escapedText, T = $?.[E], R = T?.[1], A = T?.[0] ?? w;
3407
- c[E] = {
3408
- type: "*",
3409
- modulePath: A,
3410
- rawSpecifier: x,
3411
- replacementName: R,
3412
- actualName: void 0,
3413
- wasUsed: !1
3414
- };
3415
- } else
3416
- for (let E = 0; E < B.elements.length; ++E) {
3417
- const T = B.elements[E], R = T.propertyName === void 0 ? void 0 : T.propertyName.escapedText ?? T.propertyName.text, A = T.name.escapedText, H = $?.[R ?? A], V = H?.[1], G = H?.[0] ?? w;
3418
- c[A] = {
3419
- type: H?.[2] ?? "named",
3420
- modulePath: G,
3421
- rawSpecifier: x,
3422
- replacementName: V,
3423
- actualName: H === void 0 ? R : void 0,
3424
- wasUsed: !1
3425
- };
3426
- }
3427
- } else if (o.isExportAssignment(y)) {
3428
- if (o.isIdentifier(y.expression)) {
3429
- const I = y.expression.escapedText;
3430
- t.exportDefaultName = I, !p.has(I) && d?.has(I) === !0 && S?.pendingNames?.has("default") === !0 && d.set(I, Math.abs(d.get(I)));
3431
- }
3432
- } else if (o.isExportDeclaration(y) && y.moduleSpecifier !== void 0 && !t.isInLuminaMinimalExtraction) {
3433
- if (ne(y, !0, t) !== void 0) {
3434
- const x = y.moduleSpecifier.text, g = !x.startsWith("."), K = g ? x : pt(r, Z(x)), w = g ? void 0 : Ve(K, t);
3435
- f.reExports ??= [];
3436
- const $ = [];
3437
- if (y.exportClause?.kind === o.SyntaxKind.NamedExports) {
3438
- const B = y.exportClause.elements;
3439
- for (let E = 0; E < B.length; ++E) {
3440
- const T = B[E], R = De(T.name), A = T.propertyName === void 0 ? void 0 : De(T.propertyName), H = A ?? R, V = A === void 0 ? void 0 : R;
3441
- $.push({
3442
- exportName: H,
3443
- aliasName: V,
3444
- isTypeOnly: y.isTypeOnly
3445
- }), !t.config.strict && w !== void 0 && je(w, K, H, t);
3446
- }
3447
- } else
3448
- $.push({
3449
- exportName: "*",
3450
- aliasName: y.exportClause === void 0 ? void 0 : De(y.exportClause.name),
3451
- isTypeOnly: !1
3452
- }), !t.config.strict && w !== void 0 && je(w, K, "*", t);
3453
- f.reExports.push({
3454
- modulePath: w,
3455
- externalSpecifier: g ? x : void 0,
3456
- isTypeOnly: y.isTypeOnly,
3457
- specifiers: $
3458
- });
3459
- }
3460
- } else o.isModuleDeclaration(y) ? ne(y, !0, t) !== void 0 && (f.namespaces ??= [], f.namespaces.push(y.getFullText(e))) : d !== void 0 && k && d.set(
3461
- (y.name ?? y.declarationList?.declarations[0].name).escapedText,
3462
- -b
3463
- );
3464
- }
3465
- const P = t.config.types.typeReplacements[l];
3466
- if (P !== void 0) {
3467
- const b = Object.keys(P);
3468
- for (let y = 0; y < b.length; ++y) {
3469
- const k = b[y], D = P[k];
3470
- c[k] = {
3471
- type: D[2],
3472
- modulePath: D[0],
3473
- rawSpecifier: "",
3474
- replacementName: D[1],
3475
- actualName: void 0,
3476
- wasUsed: !1
3477
- };
3478
- }
3479
- }
3480
- t.moduleHasAccessorLikeClass = c.subclass?.rawSpecifier.includes("accessorSupport") ?? !1;
3481
- const h = {
3482
- [J]: f,
3483
- kind: "javascript-module",
3484
- path: l,
3485
- sourcePath: n,
3486
- deprecated: void 0,
3487
- description: void 0,
3488
- docsTags: void 0,
3489
- summary: void 0,
3490
- declarations: [],
3491
- exports: []
3492
- };
3493
- if (t.apiModule = h, _o(e, t), d !== void 0) {
3494
- let b = !1;
3495
- do {
3496
- b = !1;
3497
- for (const [y, k] of d)
3498
- if (k > 0 || Object.is(k, 0)) {
3499
- d.delete(y), p.add(y), b = !0;
3500
- const D = e.statements[k], I = ze(D, !1, t, {
3501
- description: void 0,
3502
- docsTags: []
3503
- });
3504
- if (I === void 0)
3505
- continue;
3506
- if (I.docsTags.includes(N.private))
3507
- t.emitError(
3508
- `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.`,
3509
- {
3510
- file: e,
3511
- node: D
3512
- }
3513
- );
3514
- else {
3515
- C && !I.docsTags.includes(N.internal) && I.docsTags.push(N.internal), t.statementJsDocs[k] = I;
3516
- const g = Ci(D, k, t);
3517
- g !== void 0 && h.declarations.push(g);
3518
- }
3519
- }
3520
- } while (b);
3521
- }
3522
- if (h.declarations.length === 0 && f.reExports === void 0 && f.namespaces === void 0) {
3523
- i !== void 0 && (i.isEmptyModule = !0);
3524
- return;
3525
- }
3526
- t.moduleMap.set(l, h), t.watchFiles !== void 0 && (i === void 0 ? t.watchFiles.set(h.sourcePath, {
3527
- file: f.file,
3528
- module: h,
3529
- previousModule: void 0,
3530
- isEmptyModule: !1,
3531
- dependencies: /* @__PURE__ */ new Set(),
3532
- dependents: /* @__PURE__ */ new Map(),
3533
- docLinks: [],
3534
- hasDirtyLinks: !1,
3535
- wasRemoved: !1
3536
- }) : i.module = h);
3537
- const L = t.componentTagName === void 0 ? h.exports[0]?.declaration.name : void 0;
3538
- h.exports.length === 0 && (h.exports = void 0);
3539
- for (let b = 0; b < h.declarations.length; ++b) {
3540
- const y = h.declarations[b];
3541
- (y.kind === "class" || y.kind === "mixin") && (u.class = y), L === y.name && (u.default = y), u.named[y.name] = y;
3542
- }
3543
- return m !== void 0 && (t.moduleHasClass ? t.emitError(
3544
- "A module that exports a class must have JSDoc attached to the class, rather than module-top JSDoc. See https://webgis.esri.com/references/api-extractor/api-node-kinds#module-level-documentation",
3545
- {
3546
- file: e,
3547
- start: 0,
3548
- length: e.statements[0]?.getStart(e) ?? 1,
3549
- node: void 0
3550
- }
3551
- ) : (v && m.docsTags.push(N.internal), cn(h, m))), h;
3552
- }
3553
- async function Ca(e) {
3554
- const t = [], n = e.basePath, i = e.config.context.excludedDirectories, a = `${e.basePath}components/`, r = [], l = !e.config.strict || e.config.context.includeLuminaPrivateComponents;
3555
- e.componentPathMapping = /* @__PURE__ */ Object.create(null);
3556
- const s = e.isComponentProject ? (m) => Hi(m, a) : () => !1, c = e.isComponentProject ? p : d;
3557
- if (e.program === void 0)
3558
- await xi(n, i, async (m) => {
3559
- if (Pi(m))
3560
- return;
3561
- const u = await Lt(m);
3562
- if (m.includes(".stories.")) {
3563
- const C = u.toString("utf8");
3564
- Vt(C, m, e);
3565
- return;
3566
- }
3567
- const f = s(m);
3568
- if (f && l || // Exclude files before paying .toString() cost
3569
- u.includes(zo) && (u.includes(jo) || u.includes(Jo))) {
3570
- const C = u.toString("utf8"), v = Xt(m, C);
3571
- c(v, f);
3572
- }
3573
- });
3574
- else {
3575
- const m = e.program.getSourceFiles();
3576
- for (let u = 0; u < m.length; ++u) {
3577
- const f = m[u], S = f.fileName;
3578
- if (!Ko(S, e))
3579
- continue;
3580
- if (S.includes(".stories.")) {
3581
- Vt(f.text, S, e);
3582
- continue;
3583
- }
3584
- const C = s(S);
3585
- (C && l || f.text.includes(bi) || f.text.includes(Mi)) && c(f, C);
3586
- }
3587
- }
3588
- function p(m, u) {
3589
- r.push(m);
3590
- const f = u ? $i(m.text)?.[0] : void 0;
3591
- if (f !== void 0) {
3592
- const S = m.fileName.slice(e.basePath.length);
3593
- zi(f, e, S);
3594
- }
3595
- }
3596
- function d(m) {
3597
- e.file = m;
3598
- const u = Bo(m, e);
3599
- u !== void 0 && t.push(u);
3600
- }
3601
- for (let m = 0; m < r.length; ++m)
3602
- d(r[m]);
3603
- if (e.implicitPublicModules !== void 0) {
3604
- let m = !1;
3605
- do {
3606
- m = !1;
3607
- for (const u in e.implicitPublicModules) {
3608
- const f = e.implicitPublicModules[u], S = f.actualModulePath ?? u, C = e.moduleMap.get(S);
3609
- if (f.extractedNames === void 0)
3610
- continue;
3611
- if (f.pendingNames !== void 0) {
3612
- const L = e.watchFiles?.get(e.config.context.basePath + f.sourcePath);
3613
- let y = !(L !== void 0 && L.module === void 0 && !L.isEmptyModule);
3614
- const k = C === void 0 ? void 0 : me(C).index;
3615
- for (const D of f.pendingNames)
3616
- if (!f.extractedNames.has(D) && (k === void 0 || (D === "default" ? k.default === void 0 : k.named[D] === void 0))) {
3617
- y = !1;
3618
- break;
3619
- }
3620
- if (y)
3621
- continue;
3622
- }
3623
- if (C !== void 0) {
3624
- t.splice(t.indexOf(C), 1);
3625
- const L = e.watchFiles?.get(C.sourcePath);
3626
- L !== void 0 && (L.module = void 0);
3627
- }
3628
- m = !0, f.extractedNames = f.pendingNames === void 0 ? void 0 : new Set(f.pendingNames);
3629
- let v = e.basePath + f.sourcePath, P = !1, h = e.program?.getSourceFile(v) ?? e.program?.getSourceFile(`${v}.ts`) ?? e.program?.getSourceFile(`${v}.tsx`) ?? e.program?.getSourceFile(`${v}.d.ts`);
3630
- if (h === void 0 && (h = e.program?.getSourceFile(`${v}/index.ts`) ?? e.program?.getSourceFile(`${v}/index.tsx`) ?? e.program?.getSourceFile(`${v}/index.d.ts`), h !== void 0 && (P = !0)), e.program === void 0) {
3631
- if (Z(v) === v) {
3632
- const b = v;
3633
- v = ye(`${b}.ts`) ? `${b}.ts` : ye(`${b}.tsx`) ? `${b}.tsx` : ye(`${b}.d.ts`) ? `${b}.d.ts` : void 0, v === void 0 && (v = ye(`${b}/index.ts`) ? `${b}/index.ts` : ye(`${b}/index.tsx`) ? `${b}/index.tsx` : ye(`${b}/index.d.ts`) ? `${b}/index.d.ts` : void 0, v !== void 0 && (P = !0));
3634
- }
3635
- v !== void 0 && (h = Xt(v, await Lt(v, "utf8")));
3636
- }
3637
- if (h !== void 0) {
3638
- const L = h.fileName.slice(e.basePath.length);
3639
- L !== f.sourcePath && (f.sourcePath = L), P && (f.actualModulePath = `${S}/index`), d(h);
3640
- }
3641
- }
3642
- } while (m);
3643
- }
3644
- return t;
3645
- }
3646
- const Ko = (e, t) => Ho(e) && $o(e, t), Ho = (e) => (e.endsWith(".ts") || e.endsWith(".tsx")) && !Pi(e), Pi = (e) => e.includes("__test") || e.includes(".e2e.") || e.includes(".spec.") || e.includes(".test."), $o = (e, t) => e.startsWith(t.basePath) && !t.config.context.excludedDirectories.has(
3647
- En(e.slice(t.basePath.length))
3648
- ) && !e.includes("node_modules"), Qt = 32, zo = 64, bi = "@public", jo = Buffer.from(bi), Mi = "@internal", Jo = Buffer.from(Mi);
3649
- async function Pa(e) {
3650
- await Yt(e) && await xi(e, /* @__PURE__ */ new Set(), Ki);
3651
- }
3652
- async function xi(e, t, n) {
3653
- const i = [], a = [];
3654
- for await (const d of await It(e)) {
3655
- const m = `${e}${d.name}`;
3656
- d.isDirectory() && !t.has(d.name) ? a.push(m) : (d.name.endsWith(".ts") || d.name.endsWith(".tsx")) && i.push(m);
3657
- }
3658
- const r = i.length === 0 ? [] : [i], l = Promise.withResolvers();
3659
- function s(d) {
3660
- l.reject(d), r.length = 0;
3661
- }
3662
- let c = Qt;
3663
- for (let d = 0; d < Qt; ++d)
3664
- p().catch(s);
3665
- async function p() {
3666
- for (; ; )
3667
- if (r.length === 0 && a.length > 0) {
3668
- const d = a.shift(), m = [];
3669
- for await (const u of await It(d, { recursive: !0 }))
3670
- u.isFile() && (u.name.endsWith(".ts") || u.name.endsWith(".tsx")) && m.push(`${Ri(u.parentPath)}/${u.name}`);
3671
- if (m.length === 0)
3672
- continue;
3673
- r.push(m);
3674
- } else if (r.length > 0) {
3675
- const d = r[0], m = d.shift();
3676
- d.length === 0 && r.shift(), await n(m);
3677
- } else {
3678
- c -= 1, c === 0 && l.resolve();
3679
- return;
3680
- }
3681
- }
3682
- return await l.promise;
3683
- }
3684
- function Xt(e, t) {
3685
- return o.createSourceFile(
3686
- e,
3687
- t,
3688
- {
3689
- languageVersion: o.ScriptTarget.Latest,
3690
- impliedNodeFormat: o.ModuleKind.ESNext,
3691
- // TypeScript parses too much around @param, @property and @deprecated tags
3692
- // It also parses out inline tags. We have to put them back together
3693
- // (overhead and complexity). Plus, it is a bit too tolerant - we want
3694
- // to disallow some ambiguous behavior to improve consistency.
3695
- // So, we disable JSDoc parsing and do it ourselves.
3696
- jsDocParsingMode: o.JSDocParsingMode.ParseNone
3697
- },
3698
- !1,
3699
- e.endsWith("ts") ? o.ScriptKind.TS : o.ScriptKind.TSX
3700
- );
3701
- }
3702
- export {
3703
- Sn as a,
3704
- ga as b,
3705
- Pa as c,
3706
- Ta as d,
3707
- Ca as e,
3708
- ha as f,
3709
- Ho as g,
3710
- $o as h,
3711
- Ko as i,
3712
- Pi as j,
3713
- Xt as k,
3714
- ya as l,
3715
- va as m,
3716
- Ot as n,
3717
- Ft as o,
3718
- Sa as p,
3719
- fa as r,
3720
- Ea as t
3721
- };