@arcgis/coding-components 4.34.0-next.114 → 4.34.0-next.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/addons.js +1 -1
  2. package/dist/cdn/{O3FRNAN3.js → 2YL7DY3N.js} +2 -2
  3. package/dist/cdn/{IUV5YXLI.js → 3EFS4Z3A.js} +1 -1
  4. package/dist/cdn/{SNLTQROT.js → 3XWNZAFH.js} +2 -2
  5. package/dist/cdn/{3NVM2RP6.js → 4LPM4KT5.js} +2 -2
  6. package/dist/cdn/{RIDXNOC5.js → 5HI6KX7M.js} +2 -2
  7. package/dist/cdn/{I67MCGCX.js → 6KTHCLPL.js} +2 -2
  8. package/dist/cdn/{XBHCKNXZ.js → 6KWQEE2E.js} +2 -2
  9. package/dist/cdn/{WP2OZIGF.js → 74NWTFYJ.js} +2 -2
  10. package/dist/cdn/{QO7B2AHK.js → 77TUYUF5.js} +2 -2
  11. package/dist/cdn/{AZBZI2TY.js → A35E3UJW.js} +3 -3
  12. package/dist/cdn/{XHZAZ345.js → BCKQ73J6.js} +1 -1
  13. package/dist/cdn/{T5HWAVXO.js → BTITFQY4.js} +2 -2
  14. package/dist/cdn/{X7V7TADS.js → C6CN7W4Z.js} +1 -1
  15. package/dist/cdn/{2MT567PL.js → CXZAMMHH.js} +2 -2
  16. package/dist/cdn/EDRS4PF3.js +4 -0
  17. package/dist/cdn/{JUE4R2V7.js → FFCJ3PV2.js} +2 -2
  18. package/dist/cdn/{QOUS7KCD.js → FUUXEIAL.js} +2 -2
  19. package/dist/cdn/{I2BM5AMT.js → G5E2IFVH.js} +2 -2
  20. package/dist/cdn/{72DHOXO5.js → I6JYKGGK.js} +2 -2
  21. package/dist/cdn/{J4SB5EX2.js → J7BVYINA.js} +1 -1
  22. package/dist/cdn/{OZ5NOY6V.js → JM7HZQSL.js} +2 -2
  23. package/dist/cdn/{S3OFVM4L.js → JWZFGFOL.js} +2 -2
  24. package/dist/cdn/{PZUWJJH7.js → KSTXP6YY.js} +2 -2
  25. package/dist/cdn/{PH27OTJO.js → KZHWNBOR.js} +2 -2
  26. package/dist/cdn/L245NE64.js +10 -0
  27. package/dist/cdn/{OASW2PLH.js → LKOJWZHA.js} +2 -2
  28. package/dist/cdn/{H4CLIPZP.js → NS5SH6BY.js} +2 -2
  29. package/dist/cdn/{MLJF5WD3.js → PEPGJQCL.js} +2 -2
  30. package/dist/cdn/{IWSOX347.js → PI3BDRUY.js} +2 -2
  31. package/dist/cdn/{T4FE3GC7.js → PKBJLRZA.js} +1 -1
  32. package/dist/cdn/{VE3ULLOS.js → Q3XZOBN2.js} +2 -2
  33. package/dist/cdn/{RRRB6CUF.js → Q7ZLAR5F.js} +3 -3
  34. package/dist/cdn/{VIQZJJMB.js → QRVTFBXI.js} +2 -2
  35. package/dist/cdn/{G6JQYMPR.js → QWYJOR4M.js} +2 -2
  36. package/dist/cdn/{TSBQYC4K.js → RITTJJ5U.js} +2 -2
  37. package/dist/cdn/{SFVYFJ5R.js → SJKIHOJ2.js} +2 -2
  38. package/dist/cdn/{MNLIRWUW.js → SM46KS6F.js} +4 -4
  39. package/dist/cdn/{A36BIRDJ.js → V6KTECX4.js} +1 -1
  40. package/dist/cdn/{PN5BQGMH.js → WTHGD4I7.js} +2 -2
  41. package/dist/cdn/{VBI6SFEZ.js → WXUG42SV.js} +2 -2
  42. package/dist/cdn/{H6UMNSU7.js → WZ675KH5.js} +2 -2
  43. package/dist/cdn/{53Z6PZA5.js → XVB2BK6J.js} +1 -1
  44. package/dist/cdn/{3JKTOZOY.js → YIIK6JIN.js} +2 -2
  45. package/dist/cdn/{YNOXLARH.js → YXCIJ2OO.js} +2 -2
  46. package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.en.json +1 -1
  47. package/dist/cdn/assets/code-editor/sql-expr.worker.js +31718 -31719
  48. package/dist/cdn/index.js +2 -2
  49. package/dist/chunks/arcade-defaults.js +1 -1
  50. package/dist/chunks/arcade-executor.js +1 -1
  51. package/dist/chunks/arcade-mode.js +1 -1
  52. package/dist/chunks/arcade-service-accessors.js +1 -1
  53. package/dist/chunks/editor.js +1 -1
  54. package/dist/chunks/fields.js +1 -1
  55. package/dist/chunks/language-defaults-base.js +121 -128
  56. package/dist/chunks/markdown.js +3 -3
  57. package/dist/chunks/monaco-importer.js +1 -1
  58. package/dist/chunks/runtime.js +1 -1
  59. package/dist/chunks/setup-monaco.js +1 -1
  60. package/dist/chunks/sql-expr-contribution.js +1 -1
  61. package/dist/chunks/sql-expr-defaults.js +1 -1
  62. package/dist/chunks/sql-expr-mode.js +1 -1
  63. package/dist/chunks/sql-expr-service-accessors.js +1 -1
  64. package/dist/chunks/useT9n.js +1 -1
  65. package/dist/components/arcgis-arcade-coding-assistant/customElement.js +12 -12
  66. package/dist/components/arcgis-arcade-coding-assistant/functional.d.ts +4 -0
  67. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  68. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  69. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  70. package/dist/components/arcgis-code-editor/customElement.js +1 -1
  71. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  72. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  73. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  74. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  75. package/dist/docs/api.json +2 -2
  76. package/dist/docs/docs.json +2 -2
  77. package/dist/docs/web-types.json +1 -1
  78. package/dist/index.js +1 -1
  79. package/dist/loader.js +1 -1
  80. package/package.json +5 -5
  81. package/dist/cdn/2PV4BKRZ.js +0 -10
  82. package/dist/cdn/ACOU4MY4.js +0 -4
@@ -1,30 +1,27 @@
1
- import _ from "@arcgis/core/layers/FeatureLayer.js";
1
+ import b from "@arcgis/core/layers/FeatureLayer.js";
2
2
  import X from "@arcgis/core/request.js";
3
3
  import { p as Y, i as Z } from "./monaco-importer.js";
4
4
  import ee from "@arcgis/core/portal/PortalItem.js";
5
5
  import te from "@arcgis/core/WebMap.js";
6
6
  import ie from "@arcgis/core/WebScene.js";
7
7
  import { isNotNull as w, isNotUndefined as N } from "@arcgis/toolkit/predicate";
8
- import { addLtrMark as re, setValuesInString as P } from "@arcgis/toolkit/string";
9
- import { s as U, f as se, a as b, b as ne } from "./fields.js";
10
- import { CompletionItemKind as V, InsertTextFormat as I, InsertTextMode as M } from "vscode-languageserver-types";
8
+ import { addLtrMark as re, setValuesInString as T } from "@arcgis/toolkit/string";
9
+ import { s as U, f as se, a as _, b as ne } from "./fields.js";
10
+ import { CompletionItemKind as I, InsertTextFormat as V, InsertTextMode as M } from "vscode-languageserver-types";
11
11
  import { g as oe } from "./runtime.js";
12
12
  import { normalizeLocale as ae } from "@arcgis/toolkit/intl";
13
13
  import { filterApiLibraryForContext as le } from "@arcgis/languages-api-utils";
14
- import { Emitter as x, Uri as L } from "monaco-editor";
14
+ import { Emitter as x, Uri as $ } from "monaco-editor";
15
15
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
16
16
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
17
- v4.34.0-next.114 */
18
- function W(t) {
17
+ v4.34.0-next.115 */
18
+ function B(t) {
19
19
  return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.layers.") && g(t) && "queryFeatures" in t && typeof t.queryFeatures == "function";
20
20
  }
21
- function ue(t) {
22
- return !!t && typeof t == "object" && "allLayers" in t && "allTables" in t && typeof t.allLayers == "object" && typeof t.allTables == "object";
23
- }
24
- function B(t) {
21
+ function W(t) {
25
22
  return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && (t.declaredClass === "esri.Map" || t.declaredClass === "esri.WebMap" || t.declaredClass === "esri.WebScene");
26
23
  }
27
- function pe(t) {
24
+ function ue(t) {
28
25
  return !!t && typeof t == "object" && "loadAll" in t && typeof t.loadAll == "function";
29
26
  }
30
27
  function O(t) {
@@ -39,34 +36,34 @@ function g(t) {
39
36
  function D(t) {
40
37
  return !!t && typeof t == "object" && "url" in t && typeof t.url == "string";
41
38
  }
42
- function ce(t) {
39
+ function pe(t) {
43
40
  return D(t) && /\/(?:featureserver|mapserver)(?:\/|$)/iu.test(t.url ?? "");
44
41
  }
45
- function Oe(t) {
42
+ function We(t) {
46
43
  return D(t) || g(t) || R(t);
47
44
  }
48
- function Re(t) {
45
+ function Oe(t) {
49
46
  return D(t) || g(t) || R(t);
50
47
  }
51
- function ke(t) {
52
- return O(t) || B(t) || ce(t);
48
+ function Re(t) {
49
+ return O(t) || W(t) || pe(t);
53
50
  }
54
- function $(t) {
51
+ function A(t) {
55
52
  return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.Subtype";
56
53
  }
57
54
  function C(t) {
58
55
  return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.CodedValueDomain";
59
56
  }
60
- function he(t) {
57
+ function ce(t) {
61
58
  return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.InheritedDomain";
62
59
  }
63
- function qe(t) {
60
+ function ke(t) {
64
61
  return !!t && typeof t == "object" && "id" in t && typeof t.id == "string" && "definitions" in t && typeof t.definitions == "object" && !Array.isArray(t.definitions);
65
62
  }
66
63
  function m(t) {
67
64
  return !!t && typeof t == "object" && "title" in t && typeof t.title == "string";
68
65
  }
69
- function fe(t) {
66
+ function he(t) {
70
67
  return !!t && typeof t == "object" && "url" in t && typeof t.url == "string";
71
68
  }
72
69
  function k(t) {
@@ -75,25 +72,25 @@ function k(t) {
75
72
  function S(t) {
76
73
  return !!t && typeof t == "object" && "typeIdField" in t && "types" in t;
77
74
  }
78
- function A(t) {
75
+ function L(t) {
79
76
  return !!t && typeof t == "object" && "getFieldDomain" in t && typeof t.getFieldDomain == "function";
80
77
  }
81
78
  function f(t) {
82
79
  return !!t && typeof t == "object" && "subtypeField" in t;
83
80
  }
84
- function de(t) {
81
+ function fe(t) {
85
82
  return f(t) && "subtypes" in t;
86
83
  }
87
- function ye(t) {
84
+ function de(t) {
88
85
  return !!t && typeof t == "object" && "portalItem" in t;
89
86
  }
90
- function be(t) {
87
+ function ye(t) {
91
88
  return k(t) && "relationships" in t && "url" in t && Array.isArray(t.relationships) && typeof t.url == "string";
92
89
  }
93
90
  function _e(t) {
94
91
  return !!t && typeof t == "object" && "isTable" in t && typeof t.isTable == "boolean";
95
92
  }
96
- function me(t) {
93
+ function be(t) {
97
94
  if (t && typeof t == "object") {
98
95
  if (_e(t))
99
96
  return t.isTable || "type" in t && t.type === "table";
@@ -102,19 +99,19 @@ function me(t) {
102
99
  }
103
100
  return !1;
104
101
  }
105
- function ge(t) {
106
- return !me(t);
102
+ function me(t) {
103
+ return !be(t);
107
104
  }
108
- function De(t) {
105
+ function ge(t) {
109
106
  return !!t && typeof t == "object" && "load" in t && typeof t.load == "function";
110
107
  }
111
108
  async function q(t) {
112
109
  if (!t)
113
110
  return null;
114
111
  let e;
115
- return g(t) ? e = t : e = new _(t), De(e) && await e.load(), e;
112
+ return g(t) ? e = t : e = new b(t), ge(e) && await e.load(), e;
116
113
  }
117
- async function Ce(t) {
114
+ async function De(t) {
118
115
  t += "/layers";
119
116
  const e = await X(t, { responseType: "json", query: { f: "json" } }), i = t.endsWith("MapServer/layers") ? "data" : "query", r = G(e.data?.layers, i), s = G(e.data?.tables, i);
120
117
  return { layers: r, tables: s };
@@ -132,8 +129,8 @@ function G(t, e) {
132
129
  }
133
130
  }) : [];
134
131
  }
135
- async function we(t, e) {
136
- const i = new _({ url: `${t.url}/${e.relatedTableId}` });
132
+ async function Ce(t, e) {
133
+ const i = new b({ url: `${t.url}/${e.relatedTableId}` });
137
134
  return await i.load(), i;
138
135
  }
139
136
  function K(t) {
@@ -160,60 +157,60 @@ function K(t) {
160
157
  function j(t, e) {
161
158
  return t?.every((i) => i.domains?.[e.name]?.type === "inherited") ?? !1;
162
159
  }
163
- const Se = /^[a-z_$][a-z0-9_$]*$/giu;
160
+ const we = /^[a-z_$][a-z0-9_$]*$/giu;
164
161
  function z(t, e = !0) {
165
- return t.match(Se) ? `${e ? "." : ""}${t}` : `["${t}"]`;
162
+ return t.match(we) ? `${e ? "." : ""}${t}` : `["${t}"]`;
166
163
  }
167
164
  function H(t, e) {
168
165
  return t ? `${t}${z(e)}` : e;
169
166
  }
170
167
  function E(t) {
171
- return ye(t) ? t.portalItem : null;
168
+ return de(t) ? t.portalItem : null;
172
169
  }
173
- function Ke(t, e, i = !1) {
170
+ function qe(t, e, i = !1) {
174
171
  let r = e;
175
- const s = [], n = [];
176
- return U(t).forEach((o) => {
172
+ const s = [], o = [];
173
+ return U(t).forEach((n) => {
177
174
  r && (r += `
178
175
 
179
- `), r += `**${o.name}** (${o.alias})
180
- ${o.type}`, o.description && (r += `
181
- '${o.description}`);
182
- const c = ne(o), p = z(o.name, !1), y = b(o);
176
+ `), r += `**${n.name}** (${n.alias})
177
+ ${n.type}`, n.description && (r += `
178
+ '${n.description}`);
179
+ const c = ne(n), p = z(n.name, !1), y = _(n);
183
180
  if (s.push({
184
- name: o.name,
181
+ name: n.name,
185
182
  description: y,
186
183
  type: c,
187
184
  completion: {
188
- label: o.name,
185
+ label: n.name,
189
186
  detail: y,
190
187
  insertText: p,
191
188
  insertTextMode: M.asIs,
192
- insertTextFormat: I.PlainText,
193
- kind: V.Field
189
+ insertTextFormat: V.PlainText,
190
+ kind: I.Field
194
191
  }
195
192
  }), i) {
196
- if (!o.alias || o.alias.toLowerCase() === o.name.toLowerCase())
193
+ if (!n.alias || n.alias.toLowerCase() === n.name.toLowerCase())
197
194
  return;
198
- let h = `**${o.alias}**
199
- ${o.type}`;
200
- o.description && (h += `
201
- '${o.description}`), n.push({
202
- name: o.alias,
203
- description: o.name,
195
+ let h = `**${n.alias}**
196
+ ${n.type}`;
197
+ n.description && (h += `
198
+ '${n.description}`), o.push({
199
+ name: n.alias,
200
+ description: n.name,
204
201
  type: c,
205
202
  completion: {
206
- label: o.alias,
207
- detail: o.name,
203
+ label: n.alias,
204
+ detail: n.name,
208
205
  insertText: p,
209
206
  insertTextMode: M.asIs,
210
- insertTextFormat: I.PlainText,
211
- kind: V.Field,
207
+ insertTextFormat: V.PlainText,
208
+ kind: I.Field,
212
209
  documentation: { kind: "markdown", value: h }
213
210
  }
214
211
  });
215
212
  }
216
- }), [[...s, ...n], r];
213
+ }), [[...s, ...o], r];
217
214
  }
218
215
  class J {
219
216
  constructor(e, i, r) {
@@ -223,13 +220,13 @@ class J {
223
220
  * Returns the label string.
224
221
  */
225
222
  getLabel() {
226
- return this._label == null ? "" : typeof this._label == "string" ? re(this._label) : P(this._profile?.intlStrings[this._label.code], this._label.formatValues);
223
+ return this._label == null ? "" : typeof this._label == "string" ? re(this._label) : T(this._profile?.intlStrings[this._label.code], this._label.formatValues);
227
224
  }
228
225
  /**
229
226
  * Returns the description string.
230
227
  */
231
228
  getDescription() {
232
- return this.description == null ? "" : typeof this.description == "string" ? this.description : P(this._profile?.intlStrings[this.description.code], this.description.formatValues);
229
+ return this.description == null ? "" : typeof this.description == "string" ? this.description : T(this._profile?.intlStrings[this.description.code], this.description.formatValues);
233
230
  }
234
231
  /**
235
232
  * Returns true if the item pass the filter test
@@ -254,7 +251,7 @@ class a extends F {
254
251
  return { type: this.type, name: "", ...this.declaration };
255
252
  }
256
253
  }
257
- class Fe extends F {
254
+ class Se extends F {
258
255
  constructor(e) {
259
256
  super(e), this.type = "array", this.isCollection = !1, this.elementType = e.declaration?.elementType ?? { type: "number", name: "number" };
260
257
  }
@@ -331,13 +328,13 @@ class d extends v {
331
328
  case "knowledgeGraph":
332
329
  return new a({ profile: this._profile, declaration: e, label: i, snippet: i });
333
330
  case "feature":
334
- return new ve(this, { profile: this._profile, declaration: e, label: i, snippet: i });
331
+ return new Fe(this, { profile: this._profile, declaration: e, label: i, snippet: i });
335
332
  case "featureSet":
336
- return new T(this, { profile: this._profile, declaration: e, label: i, snippet: i }, [
333
+ return new P(this, { profile: this._profile, declaration: e, label: i, snippet: i }, [
337
334
  new a({ profile: this._profile, label: i, description: "", snippet: i })
338
335
  ]);
339
336
  case "featureSetCollection":
340
- return new Te(this, {
337
+ return new ve(this, {
341
338
  profile: this._profile,
342
339
  declaration: e,
343
340
  label: i,
@@ -351,7 +348,7 @@ class d extends v {
351
348
  snippet: i
352
349
  });
353
350
  case "array":
354
- return new Fe({
351
+ return new Se({
355
352
  profile: this._profile,
356
353
  declaration: e,
357
354
  label: i,
@@ -378,7 +375,7 @@ class Q extends v {
378
375
  return m(this._source) ? this._source.title ?? "" : "";
379
376
  }
380
377
  get url() {
381
- return fe(this._source) ? this._source.url ?? "" : "";
378
+ return he(this._source) ? this._source.url ?? "" : "";
382
379
  }
383
380
  get informationUrl() {
384
381
  return !this.loaded || !this.url ? null : k(this._source) ? `${this.url}/${this._source.layerId}` : this.url;
@@ -403,19 +400,19 @@ class Q extends v {
403
400
  return new a({
404
401
  profile: this._profile,
405
402
  label: r,
406
- description: b(e),
403
+ description: _(e),
407
404
  snippet: r,
408
405
  icon: se(e),
409
406
  filterDescription: !0
410
407
  });
411
408
  }
412
409
  _getDomainDictionary(e) {
413
- return A(this._source) ? f(this._source) && this._source.subtypeField ? this._getSubtypeDomainDictionary(e) : S(this._source) && this._source.typeIdField ? this._getFeatureTypeDomainDictionary(e) : this._getFieldDomainDictionary(e) : null;
410
+ return L(this._source) ? f(this._source) && this._source.subtypeField ? this._getSubtypeDomainDictionary(e) : S(this._source) && this._source.typeIdField ? this._getFeatureTypeDomainDictionary(e) : this._getFieldDomainDictionary(e) : null;
414
411
  }
415
412
  _getSubtypeDomainDictionary(e) {
416
413
  if (!f(this._source))
417
414
  return null;
418
- if (!de(this._source))
415
+ if (!fe(this._source))
419
416
  return e.name === this._source.subtypeField ? null : this._getFieldDomainDictionary(e);
420
417
  if (e.name === this._source.subtypeField) {
421
418
  const s = this._createDomainDictionary(e);
@@ -445,7 +442,7 @@ class Q extends v {
445
442
  return r.variables.push(i), r;
446
443
  }
447
444
  _getFieldDomainDictionary(e) {
448
- if (!A(this._source))
445
+ if (!L(this._source))
449
446
  return null;
450
447
  const i = this._source.getFieldDomain(e.name);
451
448
  if (!C(i))
@@ -459,12 +456,12 @@ class Q extends v {
459
456
  if (C(i.domain))
460
457
  return this._getCodedValueDomainGroup(i.domain, { code: "subtypes" });
461
458
  const r = e?.map((s) => {
462
- const n = $(s) ? s.code : s.id;
459
+ const o = A(s) ? s.code : s.id;
463
460
  return new a({
464
461
  profile: this._profile,
465
- label: `${n}`,
462
+ label: `${o}`,
466
463
  description: s.name,
467
- snippet: `"${n}"`
464
+ snippet: `"${o}"`
468
465
  });
469
466
  }) ?? [];
470
467
  return new l(this._profile, { code: "subtypes" }, r);
@@ -484,34 +481,34 @@ class Q extends v {
484
481
  _getDomainValuesGroup(e, i) {
485
482
  const r = [];
486
483
  return !e || e.length === 0 || (e.forEach((s) => {
487
- const n = s.domains?.[i.name];
488
- if (!n || he(n) || !C(n))
484
+ const o = s.domains?.[i.name];
485
+ if (!o || ce(o) || !C(o))
489
486
  return;
490
- const u = b(i), o = this._getCodedValueDomainGroup(n, {
487
+ const u = _(i), n = this._getCodedValueDomainGroup(o, {
491
488
  code: "domainvaluesfortypeformat",
492
489
  formatValues: {
493
490
  fieldName: u,
494
491
  typeName: s.name
495
492
  }
496
- }), c = $(s) ? s.code : s.id, p = `${c}`, y = `"${c}""`, h = new d(this, {
493
+ }), c = A(s) ? s.code : s.id, p = `${c}`, y = `"${c}""`, h = new d(this, {
497
494
  profile: this._profile,
498
495
  label: p,
499
496
  snippet: y,
500
497
  description: s.name,
501
498
  declaration: { name: u }
502
499
  });
503
- h.variables = [o], r.push(h);
500
+ h.variables = [n], r.push(h);
504
501
  }), !r.length) ? null : new l(this._profile, { code: "domainvaluesbysubtypes" }, r);
505
502
  }
506
503
  _createDomainDictionary(e) {
507
- const i = this._getValueSnippet(e), r = b(e), s = new d(this, {
504
+ const i = this._getValueSnippet(e), r = _(e), s = new d(this, {
508
505
  profile: this._profile,
509
506
  label: i,
510
507
  description: r,
511
508
  snippet: i,
512
509
  icon: "form-dropdown",
513
510
  declaration: { name: e.name }
514
- }), n = new l(this._profile, r, [
511
+ }), o = new l(this._profile, r, [
515
512
  new a({
516
513
  profile: this._profile,
517
514
  label: i,
@@ -519,9 +516,9 @@ class Q extends v {
519
516
  snippet: i
520
517
  })
521
518
  ]);
522
- s.variables = [n];
519
+ s.variables = [o];
523
520
  const u = this._getSubtypeOrDomainNameSnippet(e);
524
- return u && n.variables.push(
521
+ return u && o.variables.push(
525
522
  new a({
526
523
  profile: this._profile,
527
524
  label: u,
@@ -534,20 +531,20 @@ class Q extends v {
534
531
  if (!this.relationshipsProperties?.exposeRelationships || !this._profile?.supportFeatureSetFunctions)
535
532
  return null;
536
533
  const e = this._source;
537
- if (!be(e))
534
+ if (!ye(e))
538
535
  return null;
539
536
  const i = new l(this._profile, { code: "relationships" }), r = await Promise.all(
540
537
  e.relationships?.map(async (s) => {
541
- const n = await we(e, s);
542
- if (!W(n) || s.relatedTableId === this.relationshipsProperties?.sourceTableId)
538
+ const o = await Ce(e, s);
539
+ if (!B(o) || s.relatedTableId === this.relationshipsProperties?.sourceTableId)
543
540
  return null;
544
541
  const u = `FeatureSetByRelationshipName(${this.snippet}, "${s.name}")`;
545
- return new T(
542
+ return new P(
546
543
  this,
547
544
  {
548
545
  profile: this._profile,
549
- declaration: { definition: n },
550
- label: n.title,
546
+ declaration: { definition: o },
547
+ label: o.title,
551
548
  description: "",
552
549
  nonInteractive: !0
553
550
  },
@@ -559,7 +556,7 @@ class Q extends v {
559
556
  return i.variables = r.filter(w), i.variables.length ? i : null;
560
557
  }
561
558
  }
562
- class ve extends Q {
559
+ class Fe extends Q {
563
560
  constructor(e, i) {
564
561
  super(e, i, { exposeRelationships: !0 }), this.type = "feature";
565
562
  }
@@ -584,8 +581,8 @@ class ve extends Q {
584
581
  ])
585
582
  );
586
583
  const i = new l(this._profile, { code: "values" });
587
- if (this.variables.push(i), ge(this._source)) {
588
- const s = `Geometry(${this.snippet})`, n = new a({
584
+ if (this.variables.push(i), me(this._source)) {
585
+ const s = `Geometry(${this.snippet})`, o = new a({
589
586
  profile: this._profile,
590
587
  declaration: { name: s },
591
588
  label: s,
@@ -594,7 +591,7 @@ class ve extends Q {
594
591
  icon: "shapes",
595
592
  filterDescription: !0
596
593
  });
597
- i.variables.push(n);
594
+ i.variables.push(o);
598
595
  }
599
596
  U(this._source.fields).sort(K(this._source)).forEach((s) => {
600
597
  i.variables.push(this._getFieldProperty(s));
@@ -612,7 +609,7 @@ class ve extends Q {
612
609
  return { type: this.type, name: "", ...this.declaration, definition: this._definition };
613
610
  }
614
611
  }
615
- class T extends Q {
612
+ class P extends Q {
616
613
  constructor(e, i, r = [], s) {
617
614
  super(e, i, s), this.featureSetSnippets = r, this.type = "featureSet";
618
615
  }
@@ -641,7 +638,7 @@ class T extends Q {
641
638
  return { type: this.type, name: "", ...this.declaration, definition: this._definition };
642
639
  }
643
640
  }
644
- class Te extends v {
641
+ class ve extends v {
645
642
  constructor(e, i) {
646
643
  super(e, i), this.type = "featureSetCollection", this._featureSetCollections = null, this._loaded = !1, this._definition = i.declaration?.definition;
647
644
  }
@@ -693,12 +690,12 @@ class Te extends v {
693
690
  return this._featureSetCollections;
694
691
  }
695
692
  async _featureSetCollectionsFromDefinition() {
696
- return this._definition ? B(this._definition) ? await this._featureSetCollectionFromMap(this._definition) : D(this._definition) ? await this._featureSetCollectionFromUrl(this._definition.url) : O(this._definition) ? await this._featureSetCollectionFromPortalItem(this._definition.portalItem) : null : null;
693
+ return this._definition ? W(this._definition) ? await this._featureSetCollectionFromMap(this._definition) : D(this._definition) ? await this._featureSetCollectionFromUrl(this._definition.url) : O(this._definition) ? await this._featureSetCollectionFromPortalItem(this._definition.portalItem) : null : null;
697
694
  }
698
695
  async _featureSetCollectionFromMap(e) {
699
- return pe(e) && await e.loadAll(), await Promise.all(e.allTables.map(async (i) => await i.load())), {
696
+ return ue(e) && await e.loadAll(), await Promise.all(e.allTables.map(async (i) => await i.load())), {
700
697
  layers: this._convertWebMapLayersToVariables(e.allLayers),
701
- tables: this._convertWebMapLayersToVariables(e.allTables, !0),
698
+ tables: this._convertWebMapLayersToVariables(e.allTables),
702
699
  source: e
703
700
  };
704
701
  }
@@ -723,34 +720,30 @@ class Te extends v {
723
720
  let i = e?.replace(/\/featureserver\/[0-9]*/iu, "/FeatureServer");
724
721
  if (i = i?.replace(/\/mapserver\/[0-9]*/iu, "/MapServer"), i = i?.split("?")[0], !i)
725
722
  return null;
726
- const r = await Ce(i), s = Promise.all(
723
+ const r = await De(i), s = Promise.all(
727
724
  r.layers.map(async (c) => {
728
- const p = new _({ url: `${i}/${c.id}` });
725
+ const p = new b({ url: `${i}/${c.id}` });
729
726
  return await p.load(), this._createFeatureSetVariable(p);
730
727
  })
731
- ), n = Promise.all(
728
+ ), o = Promise.all(
732
729
  r.tables.map(async (c) => {
733
- const p = new _({ url: `${i}/${c.id}` });
730
+ const p = new b({ url: `${i}/${c.id}` });
734
731
  return await p.load(), this._createFeatureSetVariable(p);
735
732
  })
736
- ), [u, o] = await Promise.all([s, n]);
737
- return { layers: u, tables: o, source: i };
733
+ ), [u, n] = await Promise.all([s, o]);
734
+ return { layers: u, tables: n, source: i };
738
735
  }
739
- _convertWebMapLayersToVariables(e, i = !1) {
740
- const r = [];
741
- return e.toArray().reverse().forEach((s) => {
742
- if (W(s)) {
743
- r.push(this._createFeatureSetVariable(s, !0));
736
+ _convertWebMapLayersToVariables(e) {
737
+ const i = [];
738
+ return e.toArray().reverse().forEach((r) => {
739
+ if (B(r)) {
740
+ i.push(this._createFeatureSetVariable(r, !0));
744
741
  return;
745
742
  }
746
- if (ue(s)) {
747
- const n = i ? this._convertWebMapLayersToVariables(s.allTables, !0) : this._convertWebMapLayersToVariables(s.allLayers);
748
- r.push(...n);
749
- }
750
- }), r;
743
+ }), i;
751
744
  }
752
745
  _createFeatureSetVariable(e, i = !1) {
753
- return new T(
746
+ return new P(
754
747
  this,
755
748
  {
756
749
  profile: this._profile,
@@ -780,7 +773,7 @@ class Te extends v {
780
773
  return { type: this.type, name: "", ...this.declaration, definition: this._definition };
781
774
  }
782
775
  }
783
- class ze extends d {
776
+ class Ke extends d {
784
777
  constructor(e, i, r = "en") {
785
778
  super(void 0, {
786
779
  profile: null,
@@ -807,7 +800,7 @@ class ze extends d {
807
800
  const Pe = {
808
801
  locale: "en"
809
802
  };
810
- class He {
803
+ class ze {
811
804
  // #endregion
812
805
  constructor(e, i) {
813
806
  this.languageId = e, this._apiConfig = i, this._onDidChange = new x(), this._modelToProfileMap = /* @__PURE__ */ new Map(), this._modelToApiContextMap = /* @__PURE__ */ new Map(), this._localeToApiLibraryPromiseMap = /* @__PURE__ */ new Map(), this._onModelContextDidChange = new x(), this._onDidModelContextChangeTimeout = -1, this.workerHost = {
@@ -825,7 +818,7 @@ class He {
825
818
  }, 0));
826
819
  }
827
820
  _getApiKey(e) {
828
- return L.isUri(e) || (e = L.parse(e)), e.toString();
821
+ return $.isUri(e) || (e = $.parse(e)), e.toString();
829
822
  }
830
823
  // #endregion
831
824
  // #region Public methods
@@ -881,8 +874,8 @@ class He {
881
874
  //#region Private methods
882
875
  async fetchApiLibrary(e) {
883
876
  try {
884
- const { apiPath: i, apiPrefix: r } = this._apiConfig, s = oe(`${i}/${r}${e}.json`), n = await fetch(s);
885
- return n.ok ? await n.json() : [];
877
+ const { apiPath: i, apiPrefix: r } = this._apiConfig, s = oe(`${i}/${r}${e}.json`), o = await fetch(s);
878
+ return o.ok ? await o.json() : [];
886
879
  } catch {
887
880
  return [];
888
881
  }
@@ -894,12 +887,12 @@ class He {
894
887
  // #endregion
895
888
  }
896
889
  export {
897
- ze as E,
898
- He as L,
899
- Re as a,
900
- W as b,
901
- ke as c,
902
- Oe as d,
903
- Ke as f,
904
- qe as i
890
+ Ke as E,
891
+ ze as L,
892
+ Oe as a,
893
+ B as b,
894
+ Re as c,
895
+ We as d,
896
+ qe as f,
897
+ ke as i
905
898
  };