@arcgis/coding-components 4.30.0-next.9 → 4.31.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +2 -4
  3. package/dist/arcgis-coding-components/arcgis-coding-components.css +1 -1
  4. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +3 -3
  5. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +25 -0
  6. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +25 -0
  7. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +25 -0
  8. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +25 -0
  9. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +25 -0
  10. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +25 -0
  11. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +25 -0
  12. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +25 -0
  13. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +25 -0
  14. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +25 -0
  15. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +25 -0
  16. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +25 -0
  17. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +25 -0
  18. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +25 -0
  19. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +25 -0
  20. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +25 -0
  21. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +25 -0
  22. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +25 -0
  23. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +25 -0
  24. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +25 -0
  25. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +25 -0
  26. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +25 -0
  27. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +25 -0
  28. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +25 -0
  29. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +25 -0
  30. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +25 -0
  31. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +25 -0
  32. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +25 -0
  33. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +25 -0
  34. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +25 -0
  35. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +25 -0
  36. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +25 -0
  37. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +25 -0
  38. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +25 -0
  39. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +25 -0
  40. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +25 -0
  41. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +25 -0
  42. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +25 -0
  43. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +25 -0
  44. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +25 -0
  45. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ar.json +2 -0
  46. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bg.json +2 -0
  47. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bs.json +2 -0
  48. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ca.json +2 -0
  49. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.cs.json +2 -0
  50. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.da.json +2 -0
  51. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.de.json +2 -0
  52. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.el.json +2 -0
  53. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.es.json +2 -0
  54. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.et.json +2 -0
  55. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fi.json +2 -0
  56. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fr.json +2 -0
  57. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.he.json +2 -0
  58. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.hr.json +2 -0
  59. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.hu.json +2 -0
  60. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.id.json +2 -0
  61. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.it.json +2 -0
  62. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ja.json +2 -0
  63. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ko.json +2 -0
  64. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.lt.json +2 -0
  65. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.lv.json +2 -0
  66. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nb.json +2 -0
  67. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nl.json +2 -0
  68. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pl.json +2 -0
  69. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-BR.json +2 -0
  70. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-PT.json +2 -0
  71. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ro.json +2 -0
  72. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ru.json +2 -0
  73. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sk.json +2 -0
  74. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sl.json +2 -0
  75. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sr.json +2 -0
  76. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sv.json +2 -0
  77. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.th.json +2 -0
  78. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.tr.json +2 -0
  79. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.uk.json +2 -0
  80. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.vi.json +2 -0
  81. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-CN.json +2 -0
  82. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-HK.json +2 -0
  83. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-TW.json +2 -0
  84. package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +2 -2
  85. package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +1 -1
  86. package/dist/arcgis-coding-components/assets/code-editor/editor.worker.js +1 -1
  87. package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +1 -1
  88. package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +1 -1
  89. package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +1 -1
  90. package/dist/arcgis-coding-components/index.esm.js +3 -3
  91. package/dist/arcgis-coding-components/{p-acf1a47b.js → p-25960980.js} +3 -3
  92. package/dist/arcgis-coding-components/{p-07a4996f.js → p-3fb3347e.js} +3 -3
  93. package/dist/arcgis-coding-components/{p-5bb0cc6f.js → p-4b079737.js} +3 -3
  94. package/dist/arcgis-coding-components/p-52fc1b44.js +7 -0
  95. package/dist/arcgis-coding-components/{p-24963fee.js → p-73af647c.js} +4 -4
  96. package/dist/arcgis-coding-components/p-75571c31.entry.js +6 -0
  97. package/dist/arcgis-coding-components/{p-f6ac0a47.js → p-a333eca1.js} +4 -4
  98. package/dist/arcgis-coding-components/{p-ee8182a0.js → p-b0f66fd8.js} +3 -3
  99. package/dist/arcgis-coding-components/{p-3861533c.js → p-bd97ed67.js} +4 -4
  100. package/dist/arcgis-coding-components/p-c07f51a4.js +68 -0
  101. package/dist/arcgis-coding-components/{p-e8d8cb26.js → p-d34c7a85.js} +3 -3
  102. package/dist/arcgis-coding-components/{p-22acdf9e.js → p-f32a81b3.js} +2 -2
  103. package/dist/cjs/{arcade-defaults-9a205209.js → arcade-defaults-fa428ea6.js} +621 -249
  104. package/dist/cjs/{arcade-mode-b45aee7d.js → arcade-mode-75d2c139.js} +46 -52
  105. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +1561 -290
  106. package/dist/cjs/arcgis-coding-components.cjs.js +4 -4
  107. package/dist/cjs/{css-19232df4.js → css-c5819912.js} +2 -2
  108. package/dist/cjs/{cssMode-4f290a37.js → cssMode-555a44d1.js} +4 -4
  109. package/dist/cjs/{html-8e42ebe7.js → html-2bff0c65.js} +4 -4
  110. package/dist/cjs/{htmlMode-062349b7.js → htmlMode-77c4a499.js} +4 -4
  111. package/dist/cjs/{index-f8b11b82.js → index-f61a8dce.js} +41 -5
  112. package/dist/cjs/index.cjs.js +4 -4
  113. package/dist/cjs/{javascript-337ae21a.js → javascript-70a512ed.js} +5 -5
  114. package/dist/cjs/{jsonMode-247b2a02.js → jsonMode-0a74131c.js} +4 -4
  115. package/dist/cjs/loader.cjs.js +4 -4
  116. package/dist/cjs/{tsMode-a95a4dea.js → tsMode-8cb776f7.js} +4 -4
  117. package/dist/cjs/{typescript-78dffda3.js → typescript-2695cf9d.js} +4 -4
  118. package/dist/components/arcade-api.js +22 -33
  119. package/dist/components/arcade-contribution.js +73 -14
  120. package/dist/components/arcade-defaults.js +132 -150
  121. package/dist/components/arcade-mode.js +45 -51
  122. package/dist/components/arcade-results.js +48 -61
  123. package/dist/components/arcade-suggestions.js +24 -34
  124. package/dist/components/arcade-variables.js +23 -37
  125. package/dist/components/arcgis-arcade-api.js +2 -2
  126. package/dist/components/arcgis-arcade-editor.js +61 -151
  127. package/dist/components/arcgis-arcade-results.js +2 -2
  128. package/dist/components/arcgis-arcade-suggestions.js +2 -2
  129. package/dist/components/arcgis-arcade-variables.js +2 -2
  130. package/dist/components/arcgis-assets.d.ts +2 -2
  131. package/dist/components/arcgis-assets.js +2 -2
  132. package/dist/components/arcgis-code-editor.js +2 -2
  133. package/dist/components/chunk-63RMNUHL.js +1275 -0
  134. package/dist/components/code-editor.js +71 -79
  135. package/dist/components/fields.js +46 -46
  136. package/dist/components/index.js +2 -2
  137. package/dist/components/index2.js +390 -4
  138. package/dist/components/markdown.js +10 -12
  139. package/dist/components/useT9n.js +35 -0
  140. package/dist/components/utilities.js +4 -4
  141. package/dist/esm/{arcade-defaults-2280f825.js → arcade-defaults-ef553659.js} +604 -236
  142. package/dist/esm/{arcade-mode-85d869d0.js → arcade-mode-f534f6f8.js} +46 -52
  143. package/dist/esm/arcgis-arcade-api_6.entry.js +1561 -290
  144. package/dist/esm/arcgis-coding-components.js +5 -5
  145. package/dist/esm/{css-da967c43.js → css-34fa13c1.js} +2 -2
  146. package/dist/esm/{cssMode-b235d424.js → cssMode-8758c994.js} +4 -4
  147. package/dist/esm/{html-4b5f94a0.js → html-c2757f30.js} +4 -4
  148. package/dist/esm/{htmlMode-c9b00fcc.js → htmlMode-64bfdd08.js} +4 -4
  149. package/dist/esm/{index-f5eb0427.js → index-7be467d0.js} +41 -5
  150. package/dist/esm/index.js +4 -4
  151. package/dist/esm/{javascript-42627a0e.js → javascript-7cb6a2cd.js} +5 -5
  152. package/dist/esm/{jsonMode-7dce6c2d.js → jsonMode-728cfcab.js} +4 -4
  153. package/dist/esm/loader.js +5 -5
  154. package/dist/esm/{tsMode-85663f7f.js → tsMode-f3c09a15.js} +4 -4
  155. package/dist/esm/{typescript-911c34c6.js → typescript-a359e263.js} +4 -4
  156. package/dist/loader/cdn.js +2 -2
  157. package/dist/loader/index.cjs.js +2 -2
  158. package/dist/loader/index.es2017.js +2 -2
  159. package/dist/loader/index.js +2 -2
  160. package/dist/types/components/arcade-api/arcade-api.d.ts +6 -7
  161. package/dist/types/components/arcade-editor/arcade-editor.d.ts +18 -12
  162. package/dist/types/components/arcade-results/arcade-results.d.ts +6 -9
  163. package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +7 -8
  164. package/dist/types/components/arcade-variables/arcade-variables.d.ts +6 -8
  165. package/dist/types/components/code-editor/code-editor.d.ts +23 -13
  166. package/dist/types/components.d.ts +57 -35
  167. package/dist/types/controllers/useT9n.d.ts +1 -0
  168. package/dist/types/data/actions-runner-2/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stencil.config.d.ts +3 -0
  169. package/dist/types/data/actions-runner-2/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/arcade-editor.stories.d.ts +27 -0
  170. package/dist/types/data/actions-runner-2/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/editorContext.d.ts +11 -0
  171. package/dist/types/data/actions-runner-2/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/code-editor/code-editor.stories.d.ts +6 -0
  172. package/dist/types/data/actions-runner-2/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/reference/stories/arcade-editor.stories.d.ts +9 -0
  173. package/dist/types/data/actions-runner-2/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-inline-url-importer.d.ts +9 -0
  174. package/dist/types/data/actions-runner-2/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-json-importer.d.ts +19 -0
  175. package/dist/types/data/actions-runner-2/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/stencil-monaco-plugins.d.ts +6 -0
  176. package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +1 -1
  177. package/dist/types/utils/profile/types.d.ts +15 -13
  178. package/dist/types/utils/profile/utils.d.ts +1 -3
  179. package/package.json +21 -21
  180. package/dist/arcgis-coding-components/p-8f70519f.js +0 -7
  181. package/dist/arcgis-coding-components/p-9d23e7cc.entry.js +0 -6
  182. package/dist/arcgis-coding-components/p-e9157a8c.js +0 -68
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.9
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.0
5
5
  */
6
6
  'use strict';
7
7
 
8
- const index = require('./index-f8b11b82.js');
8
+ const index = require('./index-f61a8dce.js');
9
9
 
10
10
  function _interopNamespace(e) {
11
11
  if (e && e.__esModule) return e;
@@ -20641,7 +20641,7 @@ class DragAndDropObserver extends Disposable {
20641
20641
  }
20642
20642
  }
20643
20643
  const H_REGEX = /(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;
20644
- function h$1(tag, ...args) {
20644
+ function h(tag, ...args) {
20645
20645
  let attributes;
20646
20646
  let children;
20647
20647
  if (Array.isArray(args[0])) {
@@ -113897,15 +113897,15 @@ class LinesLayout {
113897
113897
  }
113898
113898
  class MovedBlockOverlayWidget extends ViewZoneOverlayWidget {
113899
113899
  constructor(_editor, _viewZone, _move, _kind, _diffModel) {
113900
- const root = h$1('div.diff-hidden-lines-widget');
113900
+ const root = h('div.diff-hidden-lines-widget');
113901
113901
  super(_editor, _viewZone, root.root);
113902
113902
  this._editor = _editor;
113903
113903
  this._move = _move;
113904
113904
  this._kind = _kind;
113905
113905
  this._diffModel = _diffModel;
113906
- this._nodes = h$1('div.diff-moved-code-block', { style: { marginRight: '4px' } }, [
113907
- h$1('div.text-content@textContent'),
113908
- h$1('div.action-bar@actionBar'),
113906
+ this._nodes = h('div.diff-moved-code-block', { style: { marginRight: '4px' } }, [
113907
+ h('div.text-content@textContent'),
113908
+ h('div.action-bar@actionBar'),
113909
113909
  ]);
113910
113910
  root.root.appendChild(this._nodes.root);
113911
113911
  const editorLayout = observableFromEvent(this._editor.onDidLayoutChange, () => this._editor.getLayoutInfo());
@@ -114104,7 +114104,7 @@ class RevertButton {
114104
114104
  this._diffs = _diffs;
114105
114105
  this._selection = _selection;
114106
114106
  this._id = `revertButton${RevertButton.counter++}`;
114107
- this._domNode = h$1('div.revertButton', {
114107
+ this._domNode = h('div.revertButton', {
114108
114108
  title: this._selection
114109
114109
  ? localize('revertSelectedChanges', 'Revert Selected Changes')
114110
114110
  : localize('revertChange', 'Revert Change')
@@ -114577,7 +114577,7 @@ HideUnchangedRegionsFeature = __decorate$1B([
114577
114577
  ], HideUnchangedRegionsFeature);
114578
114578
  class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
114579
114579
  constructor(_editor, _viewZone, _unchangedRegion, _unchangedRegionRange, _hide, _modifiedOutlineSource, _revealModifiedHiddenLine, _options) {
114580
- const root = h$1('div.diff-hidden-lines-widget');
114580
+ const root = h('div.diff-hidden-lines-widget');
114581
114581
  super(_editor, _viewZone, root.root);
114582
114582
  this._editor = _editor;
114583
114583
  this._unchangedRegion = _unchangedRegion;
@@ -114586,13 +114586,13 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
114586
114586
  this._modifiedOutlineSource = _modifiedOutlineSource;
114587
114587
  this._revealModifiedHiddenLine = _revealModifiedHiddenLine;
114588
114588
  this._options = _options;
114589
- this._nodes = h$1('div.diff-hidden-lines', [
114590
- h$1('div.top@top', { title: localize('diff.hiddenLines.top', 'Click or drag to show more above') }),
114591
- h$1('div.center@content', { style: { display: 'flex' } }, [
114592
- h$1('div@first', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center', flexShrink: '0' } }, [$$d('a', { title: localize('showUnchangedRegion', 'Show Unchanged Region'), role: 'button', onclick: () => { this._unchangedRegion.showAll(undefined); } }, ...renderLabelWithIcons('$(unfold)'))]),
114593
- h$1('div@others', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } }),
114589
+ this._nodes = h('div.diff-hidden-lines', [
114590
+ h('div.top@top', { title: localize('diff.hiddenLines.top', 'Click or drag to show more above') }),
114591
+ h('div.center@content', { style: { display: 'flex' } }, [
114592
+ h('div@first', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center', flexShrink: '0' } }, [$$d('a', { title: localize('showUnchangedRegion', 'Show Unchanged Region'), role: 'button', onclick: () => { this._unchangedRegion.showAll(undefined); } }, ...renderLabelWithIcons('$(unfold)'))]),
114593
+ h('div@others', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } }),
114594
114594
  ]),
114595
- h$1('div.bottom@bottom', { title: localize('diff.bottom', 'Click or drag to show more below'), role: 'button' }),
114595
+ h('div.bottom@bottom', { title: localize('diff.bottom', 'Click or drag to show more below'), role: 'button' }),
114596
114596
  ]);
114597
114597
  root.root.appendChild(this._nodes.root);
114598
114598
  const layoutInfo = observableFromEvent(this._editor.onDidLayoutChange, () => this._editor.getLayoutInfo());
@@ -114717,7 +114717,7 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
114717
114717
  for (let i = 0; i < items.length; i++) {
114718
114718
  const item = items[i];
114719
114719
  const icon = SymbolKinds.toIcon(item.kind);
114720
- const divItem = h$1('div.breadcrumb-item', {
114720
+ const divItem = h('div.breadcrumb-item', {
114721
114721
  style: { display: 'flex', alignItems: 'center' },
114722
114722
  }, [
114723
114723
  renderIcon(icon),
@@ -116134,7 +116134,7 @@ let OverviewRulerPart = OverviewRulerPart_1 = class OverviewRulerPart extends Di
116134
116134
  const viewportDomElement = createFastDomNode(document.createElement('div'));
116135
116135
  viewportDomElement.setClassName('diffViewport');
116136
116136
  viewportDomElement.setPosition('absolute');
116137
- const diffOverviewRoot = h$1('div.diffOverview', {
116137
+ const diffOverviewRoot = h('div.diffOverview', {
116138
116138
  style: { position: 'absolute', top: '0px', width: OverviewRulerPart_1.ENTIRE_DIFF_OVERVIEW_WIDTH + 'px' }
116139
116139
  }).root;
116140
116140
  this._register(appendRemoveOnDispose(diffOverviewRoot, viewportDomElement.domNode));
@@ -116614,11 +116614,11 @@ let DiffEditorWidget = class DiffEditorWidget extends DelegatingEditor {
116614
116614
  this._parentInstantiationService = _parentInstantiationService;
116615
116615
  this._audioCueService = _audioCueService;
116616
116616
  this._editorProgressService = _editorProgressService;
116617
- this.elements = h$1('div.monaco-diff-editor.side-by-side', { style: { position: 'relative', height: '100%' } }, [
116618
- h$1('div.noModificationsOverlay@overlay', { style: { position: 'absolute', height: '100%', visibility: 'hidden', } }, [$$d('span', {}, 'No Changes')]),
116619
- h$1('div.editor.original@original', { style: { position: 'absolute', height: '100%' } }),
116620
- h$1('div.editor.modified@modified', { style: { position: 'absolute', height: '100%' } }),
116621
- h$1('div.accessibleDiffViewer@accessibleDiffViewer', { style: { position: 'absolute', height: '100%' } }),
116617
+ this.elements = h('div.monaco-diff-editor.side-by-side', { style: { position: 'relative', height: '100%' } }, [
116618
+ h('div.noModificationsOverlay@overlay', { style: { position: 'absolute', height: '100%', visibility: 'hidden', } }, [$$d('span', {}, 'No Changes')]),
116619
+ h('div.editor.original@original', { style: { position: 'absolute', height: '100%' } }),
116620
+ h('div.editor.modified@modified', { style: { position: 'absolute', height: '100%' } }),
116621
+ h('div.accessibleDiffViewer@accessibleDiffViewer', { style: { position: 'absolute', height: '100%' } }),
116622
116622
  ]);
116623
116623
  this._diffModel = observableValue(this, undefined);
116624
116624
  this._shouldDisposeDiffModel = false;
@@ -117752,8 +117752,8 @@ let DiffEditorItemTemplate = class DiffEditorItemTemplate extends Disposable {
117752
117752
  return { maxScroll: scroll2, width: this._originalWidth.read(reader) };
117753
117753
  }
117754
117754
  });
117755
- this._elements = h$1('div.multiDiffEntry', [
117756
- h$1('div.content', {
117755
+ this._elements = h('div.multiDiffEntry', [
117756
+ h('div.content', {
117757
117757
  style: {
117758
117758
  display: 'flex',
117759
117759
  flexDirection: 'column',
@@ -117761,19 +117761,19 @@ let DiffEditorItemTemplate = class DiffEditorItemTemplate extends Disposable {
117761
117761
  overflow: 'hidden',
117762
117762
  }
117763
117763
  }, [
117764
- h$1('div.header@header', [
117765
- h$1('div.collapse-button@collapseButton'),
117766
- h$1('div.title.show-file-icons@title', []),
117767
- h$1('div.actions@actions'),
117764
+ h('div.header@header', [
117765
+ h('div.collapse-button@collapseButton'),
117766
+ h('div.title.show-file-icons@title', []),
117767
+ h('div.actions@actions'),
117768
117768
  ]),
117769
- h$1('div.editorParent', {
117769
+ h('div.editorParent', {
117770
117770
  style: {
117771
117771
  flex: '1',
117772
117772
  display: 'flex',
117773
117773
  flexDirection: 'column',
117774
117774
  }
117775
117775
  }, [
117776
- h$1('div.editorContainer@editor', { style: { flex: '1' } }),
117776
+ h('div.editorContainer@editor', { style: { flex: '1' } }),
117777
117777
  ])
117778
117778
  ])
117779
117779
  ]);
@@ -117974,17 +117974,17 @@ let MultiDiffEditorWidgetImpl = class MultiDiffEditorWidgetImpl extends Disposab
117974
117974
  this._workbenchUIElementFactory = _workbenchUIElementFactory;
117975
117975
  this._parentContextKeyService = _parentContextKeyService;
117976
117976
  this._parentInstantiationService = _parentInstantiationService;
117977
- this._elements = h$1('div', {
117977
+ this._elements = h('div', {
117978
117978
  style: {
117979
117979
  overflowY: 'hidden',
117980
117980
  }
117981
117981
  }, [
117982
- h$1('div@content', {
117982
+ h('div@content', {
117983
117983
  style: {
117984
117984
  overflow: 'hidden',
117985
117985
  }
117986
117986
  }),
117987
- h$1('div.monaco-editor@overflowWidgetsDomNode', {}),
117987
+ h('div.monaco-editor@overflowWidgetsDomNode', {}),
117988
117988
  ]);
117989
117989
  this._sizeObserver = this._register(new ObservableElementSizeObserver(this._element, undefined));
117990
117990
  this._objectPool = this._register(new ObjectPool((data) => {
@@ -120544,7 +120544,7 @@ registerLanguage({
120544
120544
  mimetypes: ["text/css"],
120545
120545
  loader: () => {
120546
120546
  {
120547
- return Promise.resolve().then(function () { return require('./css-19232df4.js'); });
120547
+ return Promise.resolve().then(function () { return require('./css-c5819912.js'); });
120548
120548
  }
120549
120549
  }
120550
120550
  });
@@ -120562,7 +120562,7 @@ registerLanguage({
120562
120562
  mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
120563
120563
  loader: () => {
120564
120564
  {
120565
- return Promise.resolve().then(function () { return require('./html-8e42ebe7.js'); });
120565
+ return Promise.resolve().then(function () { return require('./html-2bff0c65.js'); });
120566
120566
  }
120567
120567
  }
120568
120568
  });
@@ -120582,7 +120582,7 @@ registerLanguage({
120582
120582
  mimetypes: ["text/javascript"],
120583
120583
  loader: () => {
120584
120584
  {
120585
- return Promise.resolve().then(function () { return require('./javascript-337ae21a.js'); });
120585
+ return Promise.resolve().then(function () { return require('./javascript-70a512ed.js'); });
120586
120586
  }
120587
120587
  }
120588
120588
  });
@@ -120600,7 +120600,7 @@ registerLanguage({
120600
120600
  mimetypes: ["text/typescript"],
120601
120601
  loader: () => {
120602
120602
  {
120603
- return Promise.resolve().then(function () { return require('./typescript-78dffda3.js'); });
120603
+ return Promise.resolve().then(function () { return require('./typescript-2695cf9d.js'); });
120604
120604
  }
120605
120605
  }
120606
120606
  });
@@ -120721,7 +120721,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
120721
120721
  monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
120722
120722
  function getMode$3() {
120723
120723
  {
120724
- return Promise.resolve().then(function () { return require('./cssMode-4f290a37.js'); });
120724
+ return Promise.resolve().then(function () { return require('./cssMode-555a44d1.js'); });
120725
120725
  }
120726
120726
  }
120727
120727
  monaco_editor_core_exports$3.languages.onLanguage("less", () => {
@@ -120846,7 +120846,7 @@ monaco_editor_core_exports$2.languages.html = {
120846
120846
  };
120847
120847
  function getMode$2() {
120848
120848
  {
120849
- return Promise.resolve().then(function () { return require('./htmlMode-062349b7.js'); });
120849
+ return Promise.resolve().then(function () { return require('./htmlMode-77c4a499.js'); });
120850
120850
  }
120851
120851
  }
120852
120852
  function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
@@ -120948,7 +120948,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
120948
120948
  monaco_editor_core_exports$1.languages.json = { jsonDefaults };
120949
120949
  function getMode$1() {
120950
120950
  {
120951
- return Promise.resolve().then(function () { return require('./jsonMode-247b2a02.js'); });
120951
+ return Promise.resolve().then(function () { return require('./jsonMode-0a74131c.js'); });
120952
120952
  }
120953
120953
  }
120954
120954
  monaco_editor_core_exports$1.languages.register({
@@ -121217,7 +121217,7 @@ monaco_editor_core_exports.languages.typescript = {
121217
121217
  };
121218
121218
  function getMode() {
121219
121219
  {
121220
- return Promise.resolve().then(function () { return require('./tsMode-a95a4dea.js'); });
121220
+ return Promise.resolve().then(function () { return require('./tsMode-8cb776f7.js'); });
121221
121221
  }
121222
121222
  }
121223
121223
  monaco_editor_core_exports.languages.onLanguage("typescript", () => {
@@ -132875,8 +132875,8 @@ let InlineSuggestionHintsContentWidget = InlineSuggestionHintsContentWidget_1 =
132875
132875
  this.id = `InlineSuggestionHintsContentWidget${InlineSuggestionHintsContentWidget_1.id++}`;
132876
132876
  this.allowEditorOverflow = true;
132877
132877
  this.suppressMouseDown = false;
132878
- this.nodes = h$1('div.inlineSuggestionsHints', { className: this.withBorder ? '.withBorder' : '' }, [
132879
- h$1('div@toolBar'),
132878
+ this.nodes = h('div.inlineSuggestionsHints', { className: this.withBorder ? '.withBorder' : '' }, [
132879
+ h('div@toolBar'),
132880
132880
  ]);
132881
132881
  this.previousAction = this.createCommandAction(showPreviousInlineSuggestionActionId, localize('previous', 'Previous'), ThemeIcon.asClassName(inlineSuggestionHintsPreviousIcon));
132882
132882
  this.availableSuggestionCountAction = new Action('inlineSuggestionHints.availableSuggestionCount', '', undefined, false);
@@ -133012,7 +133012,7 @@ class StatusBarViewItem$1 extends MenuEntryActionViewItem {
133012
133012
  return super.updateLabel();
133013
133013
  }
133014
133014
  if (this.label) {
133015
- const div = h$1('div.keybinding').root;
133015
+ const div = h('div.keybinding').root;
133016
133016
  const k = new KeybindingLabel(div, OS, { disableTitle: true, ...unthemedKeybindingLabelOptions });
133017
133017
  k.set(kb);
133018
133018
  this.label.textContent = this._action.label;
@@ -168947,92 +168947,71 @@ var main = createCommonjsModule(function (module, exports) {
168947
168947
  });
168948
168948
  });
168949
168949
 
168950
- const isAMD = "define" in window && typeof window.define === "function" && "amd" in window.define;
168950
+ // src/index.ts
168951
+ var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis;
168951
168952
  function isDefaultModule(module) {
168952
- return module.default !== undefined;
168953
- }
168954
- async function requireModule(modulePath) {
168955
- return await new Promise((resolve) => window.require([modulePath], (moduleDefault) => {
168956
- resolve(moduleDefault);
168957
- }));
168953
+ return module.default !== void 0;
168958
168954
  }
168959
168955
  async function importLayersFeatureLayer() {
168960
- if (isAMD) {
168961
- return await requireModule("esri/layers/FeatureLayer");
168962
- }
168963
- const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/layers/FeatureLayer.js')); });
168964
- return isDefaultModule(module) ? module.default : module;
168956
+ if (isAMD) {
168957
+ return await window.$arcgis.import("esri/layers/FeatureLayer");
168958
+ }
168959
+ const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/layers/FeatureLayer.js')); });
168960
+ return isDefaultModule(module) ? module.default : module;
168961
+ }
168962
+ async function newLayersFeatureLayer(properties) {
168963
+ const ModConstructor = await importLayersFeatureLayer();
168964
+ return new ModConstructor(properties);
168965
168965
  }
168966
168966
  async function importPortalPortalItem() {
168967
- if (isAMD) {
168968
- return await requireModule("esri/portal/PortalItem");
168969
- }
168970
- const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/portal/PortalItem.js')); });
168971
- return isDefaultModule(module) ? module.default : module;
168967
+ if (isAMD) {
168968
+ return await window.$arcgis.import("esri/portal/PortalItem");
168969
+ }
168970
+ const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/portal/PortalItem.js')); });
168971
+ return isDefaultModule(module) ? module.default : module;
168972
168972
  }
168973
168973
  async function newPortalPortalItem(properties) {
168974
- const ModConstructor = await importPortalPortalItem();
168975
- return new ModConstructor(properties);
168974
+ const ModConstructor = await importPortalPortalItem();
168975
+ return new ModConstructor(properties);
168976
168976
  }
168977
168977
  async function importWebMap() {
168978
- if (isAMD) {
168979
- return await requireModule("esri/WebMap");
168980
- }
168981
- const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/WebMap.js')); });
168982
- return isDefaultModule(module) ? module.default : module;
168978
+ if (isAMD) {
168979
+ return await window.$arcgis.import("esri/WebMap");
168980
+ }
168981
+ const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/WebMap.js')); });
168982
+ return isDefaultModule(module) ? module.default : module;
168983
168983
  }
168984
168984
  async function newWebMap(properties) {
168985
- const ModConstructor = await importWebMap();
168986
- return new ModConstructor(properties);
168985
+ const ModConstructor = await importWebMap();
168986
+ return new ModConstructor(properties);
168987
168987
  }
168988
168988
  async function importWebScene() {
168989
- if (isAMD) {
168990
- return await requireModule("esri/WebScene");
168991
- }
168992
- const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/WebScene.js')); });
168993
- return isDefaultModule(module) ? module.default : module;
168989
+ if (isAMD) {
168990
+ return await window.$arcgis.import("esri/WebScene");
168991
+ }
168992
+ const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/WebScene.js')); });
168993
+ return isDefaultModule(module) ? module.default : module;
168994
168994
  }
168995
168995
  async function newWebScene(properties) {
168996
- const ModConstructor = await importWebScene();
168997
- return new ModConstructor(properties);
168996
+ const ModConstructor = await importWebScene();
168997
+ return new ModConstructor(properties);
168998
168998
  }
168999
168999
  async function importArcade() {
169000
- if (isAMD) {
169001
- return await requireModule("esri/arcade");
169002
- }
169003
- const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/arcade.js')); });
169004
- return isDefaultModule(module) ? module.default : module;
169000
+ if (isAMD) {
169001
+ return await window.$arcgis.import("esri/arcade");
169002
+ }
169003
+ const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/arcade.js')); });
169004
+ return isDefaultModule(module) ? module.default : module;
169005
169005
  }
169006
169006
  async function importRequest() {
169007
- if (isAMD) {
169008
- return await requireModule("esri/request");
169009
- }
169010
- const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/request.js')); });
169011
- return isDefaultModule(module) ? module.default : module;
169007
+ if (isAMD) {
169008
+ return await window.$arcgis.import("esri/request");
169009
+ }
169010
+ const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/request.js')); });
169011
+ return isDefaultModule(module) ? module.default : module;
169012
169012
  }
169013
169013
 
169014
- //#region core adapter fix
169015
- async function newFeatureLayer(definition) {
169016
- const FeatureLayer = await importLayersFeatureLayer();
169017
- // Fix title for the layer. Instead of defaulting to the map viewer style.
169018
- return new FeatureLayer({ ...definition, sublayerTitleMode: "service-name" });
169019
- }
169020
- //#endregion
169021
169014
  //#region Type Guards
169022
- function isSupportedLayerInstance(item) {
169023
- return (!!item &&
169024
- typeof item === "object" &&
169025
- "declaredClass" in item &&
169026
- typeof item.declaredClass === "string" &&
169027
- item.declaredClass.startsWith("esri.layers."));
169028
- }
169029
- function isFeatureSetInstance(item) {
169030
- return (!!item &&
169031
- typeof item === "object" &&
169032
- "declaredClass" in item &&
169033
- typeof item.declaredClass === "string" &&
169034
- item.declaredClass === "esri.rest.support.FeatureSet");
169035
- }
169036
169015
  function isQueryableLayerInstance(item) {
169037
169016
  return (!!item &&
169038
169017
  typeof item === "object" &&
@@ -169082,10 +169061,13 @@ function isFeatureLayerItemDefinition(item) {
169082
169061
  return !!item && typeof item === "object" && "portalItem" in item && item.portalItem != null;
169083
169062
  }
169084
169063
  function isFieldsDefinition(item) {
169085
- return (!!item && typeof item === "object" && "fields" in item && Array.isArray(item.fields) && !("declaredClass" in item));
169064
+ return !!item && typeof item === "object" && "fields" in item && Array.isArray(item.fields);
169086
169065
  }
169087
169066
  function isUrlDefinition(item) {
169088
- return (!!item && typeof item === "object" && "url" in item && typeof item.url === "string" && !("declaredClass" in item));
169067
+ return !!item && typeof item === "object" && "url" in item && typeof item.url === "string";
169068
+ }
169069
+ function isSupportedServiceUrlDefinition(item) {
169070
+ return isUrlDefinition(item) && /\/(?:featureserver|mapserver)(?:\/|$)/iu.test(item.url);
169089
169071
  }
169090
169072
  function isSubtypeInstance(item) {
169091
169073
  return (!!item &&
@@ -169155,11 +169137,11 @@ async function supportedSourceFromDefinition(definition) {
169155
169137
  return null;
169156
169138
  }
169157
169139
  let source = null;
169158
- if (isSupportedLayerInstance(definition) || isFeatureSetInstance(definition) || isFieldsDefinition(definition)) {
169140
+ if (isFieldsDefinition(definition)) {
169159
169141
  source = definition;
169160
169142
  }
169161
169143
  else {
169162
- source = await newFeatureLayer(definition);
169144
+ source = await newLayersFeatureLayer(definition);
169163
169145
  }
169164
169146
  if (isLoadableSource(source)) {
169165
169147
  await source.load();
@@ -169170,32 +169152,423 @@ async function serviceMetaData(url) {
169170
169152
  url += "/layers";
169171
169153
  const request = await importRequest();
169172
169154
  const response = await request(url, { responseType: "json", query: { f: "json" } });
169173
- const data = {
169174
- layers: response.data?.layers ?? [],
169175
- tables: response.data?.tables ?? []
169176
- };
169177
169155
  const queryCapability = url.endsWith("MapServer/layers") ? "data" : "query";
169178
- const layers = filterFeatureLayerInfos(data.layers, queryCapability);
169179
- const tables = filterFeatureLayerInfos(data.tables, queryCapability);
169156
+ const layers = getSupportedLayerInfos(response.data?.layers, queryCapability);
169157
+ const tables = getSupportedLayerInfos(response.data?.tables, queryCapability);
169180
169158
  return { layers, tables };
169181
169159
  }
169182
- function filterFeatureLayerInfos(layers, queryCapability) {
169160
+ function getSupportedLayerInfos(layers, queryCapability) {
169161
+ if (!layers) {
169162
+ return [];
169163
+ }
169183
169164
  return layers.filter((layer) => {
169184
- if (layer.type !== "Feature Layer" && layer.type !== "Table") {
169185
- return false;
169165
+ switch (layer.type) {
169166
+ case "Feature Layer":
169167
+ case "Oriented Imagery Layer":
169168
+ case "Catalog Layer":
169169
+ case "Table": {
169170
+ const capabilities = layer.capabilities
169171
+ ? layer.capabilities
169172
+ .toLowerCase()
169173
+ .split(",")
169174
+ .map((value) => value.trim())
169175
+ : [];
169176
+ return capabilities.includes(queryCapability);
169177
+ }
169178
+ default:
169179
+ return false;
169186
169180
  }
169187
- const capabilities = layer.capabilities
169188
- ? layer.capabilities
169189
- .toLowerCase()
169190
- .split(",")
169191
- .map((value) => value.trim())
169192
- : [];
169193
- return capabilities.includes(queryCapability);
169194
169181
  });
169195
169182
  }
169196
169183
  //#endregion
169197
169184
 
169198
- var h=class{constructor(){this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n;});}};function S(e,t){let n=e;for(;n;){if(n===t)return !0;if(!n.parentNode)return !1;n.parentNode instanceof ShadowRoot?n=n.parentNode.host:n=n.parentNode;}return !1}function x(e,t,n=()=>{}){if(!t||t.length<=0)return;let r=new MutationObserver(o=>{for(let s of o)S(e,s.target)&&n();});return r.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0}),r}function T(e,t){let n=e;for(;n;){let r=n.closest(t);if(r)return r;let o=n.getRootNode();if(o===document)return null;n=o.host;}return null}function k(e){let t=T(e,":is(.calcite-mode-light, .calcite-mode-dark)");return t&&t.classList.contains("calcite-mode-dark")?"dark":"light"}function f(e,t,n){return T(e,`[${t}]`)?.getAttribute(t)??n}function M(e){return e.nodeType===Node.ELEMENT_NODE}function R(e){return "setFocus"in e&&typeof e.setFocus=="function"}function d(e,t=""){if(!M(e))return !1;if(e.matches(t))return R(e)&&setTimeout(()=>e.setFocus(),0),!0;for(let r of e.children)if(d(r,t))return !0;let n=e.shadowRoot;if(n){for(let r of n.children)if(d(r,t))return !0}return !1}function W(e,t){if(!e?.shadowRoot)return;if(e.hasAttribute("hydrated")||e.hasAttribute("calcite-hydrated")){d(e,t);return}let n=new MutationObserver(()=>{n.disconnect(),d(e,t);});n.observe(e,{attributes:!0,attributeFilter:["hydrated","calcite-hydrated"]});}function c(e){let t="";for(let n=0;n<e;n++)t+=((1+Math.random())*65536|0).toString(16).substring(1);return t}function U(){return [c(2),c(1),c(1),c(1),c(3)].join("-")}var E=new Set(["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"]),a=new Map;async function v(e,t,n=""){let r=`${t}/${n}${e}.json`;if(a.has(r))return a.get(r);try{let o=await fetch(r);if(o.ok){let i=await o.json();return a.set(r,i),i}if(e==="en"){a.set(r,void 0);return}let s=await v("en",t,n);return a.set(r,s),s}catch{a.set(r,void 0);return}}function _(e){let t=f(e,"lang",navigator.language||"en");if(E.has(t))return {lang:t,t9nLocale:t};let n=t.slice(0,2);return {lang:t,t9nLocale:E.has(n)?n:"en"}}var p=new WeakMap,m=new WeakMap,C=new WeakMap;async function B(e,t,n){m.set(e,t),p.set(e,x(e._hostElement,["lang"],()=>{b(e,n).catch(console.error);})),await b(e,n);}function q(e){p.get(e)?.disconnect(),p.delete(e),m.delete(e);}async function b(e,t){let{lang:n,t9nLocale:r}=_(e._hostElement);if(n===e._lang&&r===e._t9nLocale||(n!==e._lang&&(e._lang=n),r===e._t9nLocale))return;let o=C.get(e);if(!o){let s=m.get(e)??"",i=e._hostElement.tagName.toLowerCase().replace("arcgis-",""),l=`${s}/${i}/t9n`,u=`${i}.t9n.`;o=await v(r,l,u);}r!==e._t9nLocale&&(e._t9nLocale=r,e._t9nStrings=o,await t?.call(e));}var N='"',w="'";function L(e,t){return new Array(t+1).join(e)}function D(e){let t=N,n=w;e.includes(t)&&!e.includes(n)&&(n=N,t=w);let o=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${n})+)`,"gu");e=e.replace(o,(i,l,u,g)=>l+u+L(n,g.length/2));let s=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${t}+)`,"gu");return e=e.replace(s,(i,l,u,g)=>l+u+L(`\\${t}`,g.length)),t+e+t}function K(e){let t=e?e.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu,"\\$&"):"^.*$";return new RegExp(t,"i")}function Z(e,t={}){return (e??"").replace(/\{(.*?)\}/gu,(n,r)=>t[r]??n)}function G(e){return `\u200E${e??""}\u200E`}function ee(e){return e!==null}function te(e){return e!==void 0}function re(e,t=100){let n;return (...r)=>{let o=()=>{clearTimeout(n),e(...r);};clearTimeout(n),n=setTimeout(o,t);}}function se(e,t,n=!1){if(!e||!t)return !1;let r=new URL(e),o=new URL(t);return !n&&r.protocol!==o.protocol||r.host==null||o.host==null?!1:r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function ie(e){try{return new URL(e),!0}catch{return !1}}
169185
+ // src/array-utils.ts
169186
+
169187
+ // src/deferred.ts
169188
+ var Deferred = class {
169189
+ /**
169190
+ * Resolves the promise.
169191
+ * @param value The value to resolve the promise with.
169192
+ */
169193
+ resolve(_value) {
169194
+ }
169195
+ /**
169196
+ * Rejects the promise.
169197
+ */
169198
+ reject(_error) {
169199
+ }
169200
+ /**
169201
+ * Creates a new deferred promise.
169202
+ */
169203
+ constructor() {
169204
+ this.promise = new Promise((resolve, reject) => {
169205
+ this.resolve = resolve;
169206
+ this.reject = reject;
169207
+ });
169208
+ }
169209
+ };
169210
+
169211
+ // src/dom.ts
169212
+ function inTargetElement(element, targetElement) {
169213
+ let currentElement = element;
169214
+ while (currentElement) {
169215
+ if (currentElement === targetElement) {
169216
+ return true;
169217
+ }
169218
+ if (!currentElement.parentNode) {
169219
+ return false;
169220
+ }
169221
+ if (currentElement.parentNode instanceof ShadowRoot) {
169222
+ currentElement = currentElement.parentNode.host;
169223
+ } else {
169224
+ currentElement = currentElement.parentNode;
169225
+ }
169226
+ }
169227
+ return false;
169228
+ }
169229
+ function observeAncestorsMutation(element, attributeFilter, callback) {
169230
+ const { subscribe } = observe(attributeFilter);
169231
+ return subscribe((mutations) => {
169232
+ const matched = mutations.some((mutation) => inTargetElement(element, mutation.target));
169233
+ if (matched)
169234
+ callback();
169235
+ });
169236
+ }
169237
+ var observers = {};
169238
+ function observe(attributeFilter) {
169239
+ const attributes = attributeFilter.join(",");
169240
+ const previousObserver = observers[attributes];
169241
+ if (previousObserver !== void 0)
169242
+ return previousObserver;
169243
+ const subscribers = /* @__PURE__ */ new Set();
169244
+ const mutationObserver = new MutationObserver((mutations) => subscribers.forEach((callback) => callback(mutations)));
169245
+ mutationObserver.observe(document.documentElement, {
169246
+ attributes: true,
169247
+ attributeFilter,
169248
+ subtree: true
169249
+ });
169250
+ const observer = {
169251
+ subscribe(callback) {
169252
+ subscribers.add(callback);
169253
+ return {
169254
+ remove: () => {
169255
+ subscribers.delete(callback);
169256
+ if (subscribers.size === 0) {
169257
+ mutationObserver.disconnect();
169258
+ observers[attributes] = void 0;
169259
+ }
169260
+ }
169261
+ };
169262
+ }
169263
+ };
169264
+ observers[attributes] = observer;
169265
+ return observer;
169266
+ }
169267
+ function closestElement(base, selector) {
169268
+ let currentElement = base;
169269
+ while (currentElement) {
169270
+ const element = currentElement.closest(selector);
169271
+ if (element) {
169272
+ return element;
169273
+ }
169274
+ const rootElement = currentElement.getRootNode();
169275
+ if (rootElement === document) {
169276
+ return null;
169277
+ }
169278
+ currentElement = rootElement.host;
169279
+ }
169280
+ return null;
169281
+ }
169282
+ function getElementTheme(base) {
169283
+ const themeElt = closestElement(base, ":is(.calcite-mode-light, .calcite-mode-dark)");
169284
+ return themeElt && themeElt.classList.contains("calcite-mode-dark") ? "dark" : "light";
169285
+ }
169286
+ function getElementAttribute(el, prop, fallbackValue) {
169287
+ const closest = closestElement(el, `[${prop}]`);
169288
+ return closest?.getAttribute(prop) ?? fallbackValue;
169289
+ }
169290
+ function isElement(ref) {
169291
+ return ref.nodeType === Node.ELEMENT_NODE;
169292
+ }
169293
+ function isHTMLWithSetFocus(ref) {
169294
+ return "setFocus" in ref && typeof ref.setFocus === "function";
169295
+ }
169296
+ function setFocus(ref, selector = "") {
169297
+ if (!isElement(ref)) {
169298
+ return false;
169299
+ }
169300
+ if (ref.matches(selector)) {
169301
+ if (isHTMLWithSetFocus(ref)) {
169302
+ setTimeout(() => ref.setFocus(), 0);
169303
+ }
169304
+ return true;
169305
+ }
169306
+ for (const child of ref.children) {
169307
+ if (setFocus(child, selector)) {
169308
+ return true;
169309
+ }
169310
+ }
169311
+ const shadowRoot = ref.shadowRoot;
169312
+ if (shadowRoot) {
169313
+ for (const child of shadowRoot.children) {
169314
+ if (setFocus(child, selector)) {
169315
+ return true;
169316
+ }
169317
+ }
169318
+ }
169319
+ return false;
169320
+ }
169321
+ function setFocusOnElement(ref, selector) {
169322
+ if (!ref?.shadowRoot) {
169323
+ return;
169324
+ }
169325
+ if (ref.hasAttribute("hydrated") || ref.hasAttribute("calcite-hydrated")) {
169326
+ setFocus(ref, selector);
169327
+ return;
169328
+ }
169329
+ const mutationObserver = new MutationObserver(() => {
169330
+ mutationObserver.disconnect();
169331
+ setFocus(ref, selector);
169332
+ });
169333
+ mutationObserver.observe(ref, {
169334
+ attributes: true,
169335
+ attributeFilter: ["hydrated", "calcite-hydrated"]
169336
+ });
169337
+ }
169338
+
169339
+ // src/errors.ts
169340
+ function safeCall(callback, thisContext, ...rest) {
169341
+ try {
169342
+ return callback?.call(thisContext, ...rest);
169343
+ } catch (error) {
169344
+ console.error(error, callback);
169345
+ }
169346
+ return void 0;
169347
+ }
169348
+ async function safeAsyncCall(callback, thisContext, ...rest) {
169349
+ try {
169350
+ const result = callback?.call(thisContext, ...rest);
169351
+ return result instanceof Promise ? await result : result;
169352
+ } catch (error) {
169353
+ console.error(error, callback);
169354
+ }
169355
+ return void 0;
169356
+ }
169357
+
169358
+ // src/guid.ts
169359
+ function gen(count) {
169360
+ let out = "";
169361
+ for (let i = 0; i < count; i++) {
169362
+ out += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
169363
+ }
169364
+ return out;
169365
+ }
169366
+ function generateGuid() {
169367
+ return [gen(2), gen(1), gen(1), gen(1), gen(3)].join("-");
169368
+ }
169369
+ var camelToKebab = (string) => string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : "-"}${upper.toLowerCase()}`);
169370
+ var upperBeforeLower = /[A-Z]+(?![a-z])|[A-Z]/gu;
169371
+ var capitalize = (string) => string.charAt(0).toUpperCase() + string.slice(1);
169372
+ var camelToHuman = (string) => capitalize(string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : " "}${upper}`));
169373
+
169374
+ // src/intl.ts
169375
+ var supportedLocales = /* @__PURE__ */ new Set([
169376
+ "ar",
169377
+ "bg",
169378
+ "bs",
169379
+ "ca",
169380
+ "cs",
169381
+ "da",
169382
+ "de",
169383
+ "el",
169384
+ "en",
169385
+ "es",
169386
+ "et",
169387
+ "fi",
169388
+ "fr",
169389
+ "he",
169390
+ "hr",
169391
+ "hu",
169392
+ "id",
169393
+ "it",
169394
+ "ja",
169395
+ "ko",
169396
+ "lt",
169397
+ "lv",
169398
+ "nl",
169399
+ "nb",
169400
+ "pl",
169401
+ "pt-BR",
169402
+ "pt-PT",
169403
+ "ro",
169404
+ "ru",
169405
+ "sk",
169406
+ "sl",
169407
+ "sr",
169408
+ "sv",
169409
+ "th",
169410
+ "tr",
169411
+ "uk",
169412
+ "vi",
169413
+ "zh-CN",
169414
+ "zh-HK",
169415
+ "zh-TW"
169416
+ ]);
169417
+ var defaultLocale = "en";
169418
+ async function fetchT9NStringsBundle(locale, assetsPath, prefix = "") {
169419
+ const path = `${assetsPath}/${prefix}`;
169420
+ const filePath = `${path}${locale}.json`;
169421
+ t9nStringsCache[filePath] ?? (t9nStringsCache[filePath] = fetchBundle(locale, path));
169422
+ return await t9nStringsCache[filePath];
169423
+ }
169424
+ var t9nStringsCache = {};
169425
+ async function fetchBundle(locale, path) {
169426
+ const filePath = `${path}${locale}.json`;
169427
+ try {
169428
+ const response = await fetch(filePath);
169429
+ if (response.ok)
169430
+ return await response.json();
169431
+ } catch (error) {
169432
+ console.error(error);
169433
+ return fallbackBundle;
169434
+ }
169435
+ if (locale === defaultLocale)
169436
+ return fallbackBundle;
169437
+ return await fetchBundle(defaultLocale, path);
169438
+ }
169439
+ var fallbackBundle = new Proxy(
169440
+ {},
169441
+ {
169442
+ get: (_target, property) => camelToHuman(property.toString())
169443
+ }
169444
+ );
169445
+ function getElementLocales(element) {
169446
+ const lang = getElementAttribute(element, "lang", navigator.language || defaultLocale);
169447
+ if (supportedLocales.has(lang)) {
169448
+ return { lang, t9nLocale: lang };
169449
+ }
169450
+ const rootCode = lang.slice(0, 2);
169451
+ return { lang, t9nLocale: supportedLocales.has(rootCode) ? rootCode : defaultLocale };
169452
+ }
169453
+ function startLocaleObserver(element, assetsPath, onUpdated, assetName) {
169454
+ let result = void 0;
169455
+ const callback = () => void updateComponentLocateState(element, assetsPath, assetName).then((newResult) => {
169456
+ if (result?.lang !== newResult.lang || result.t9nLocale !== newResult.t9nLocale || result.t9nStrings !== newResult.t9nStrings)
169457
+ onUpdated(newResult);
169458
+ result = newResult;
169459
+ }).catch(console.error);
169460
+ callback();
169461
+ return observeAncestorsMutation(element, ["lang"], callback);
169462
+ }
169463
+ async function updateComponentLocateState(element, assetsPath, assetName = element.tagName.toLowerCase().replace("arcgis-", "")) {
169464
+ const { lang, t9nLocale } = getElementLocales(element);
169465
+ const t9nAssetsPath = `${assetsPath}/${assetName}/t9n`;
169466
+ const prefix = `${assetName}.t9n.`;
169467
+ const t9nStrings = await fetchT9NStringsBundle(t9nLocale, t9nAssetsPath, prefix);
169468
+ return { lang, t9nLocale, t9nStrings };
169469
+ }
169470
+
169471
+ // src/strings.ts
169472
+ var doubleQuote = '"';
169473
+ var singleQuote = "'";
169474
+ function repeatString(value, n) {
169475
+ return new Array(n + 1).join(value);
169476
+ }
169477
+ function quoteString(value) {
169478
+ let quote = doubleQuote;
169479
+ let alternateQuote = singleQuote;
169480
+ const avoidEscape = value.includes(quote) && !value.includes(alternateQuote);
169481
+ if (avoidEscape) {
169482
+ alternateQuote = doubleQuote;
169483
+ quote = singleQuote;
169484
+ }
169485
+ const alternateEscape = new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${alternateQuote})+)`, "gu");
169486
+ value = value.replace(
169487
+ alternateEscape,
169488
+ (_, boundaryChar, leadingEscapedSlashes, escapedQuoteChars) => (
169489
+ // We divide the escapedQuoteChars by 2 since there are 2 characters in each escaped part ('\\"'.length === 2)
169490
+ boundaryChar + leadingEscapedSlashes + repeatString(alternateQuote, escapedQuoteChars.length / 2)
169491
+ )
169492
+ );
169493
+ const quoteEscape = new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${quote}+)`, "gu");
169494
+ value = value.replace(
169495
+ quoteEscape,
169496
+ (_, boundaryChar, leadingEscapedSlashes, quoteChars) => boundaryChar + leadingEscapedSlashes + repeatString(`\\${quote}`, quoteChars.length)
169497
+ );
169498
+ return quote + value + quote;
169499
+ }
169500
+ function createFilterExpression(filterWord) {
169501
+ const sanitizedWord = filterWord ? filterWord.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu, "\\$&") : "^.*$";
169502
+ return new RegExp(sanitizedWord, "i");
169503
+ }
169504
+ function setValuesInString(message, values = {}) {
169505
+ return (message ?? "").replace(/\{(?<valueName>.*?)\}/gu, (match, valueName) => values[valueName] ?? match);
169506
+ }
169507
+ function addLTRMark(value) {
169508
+ return `\u200E${value ?? ""}\u200E`;
169509
+ }
169510
+
169511
+ // src/timeouts.ts
169512
+ function devToolsAwareTimeout(callback, timeout) {
169513
+ const interval = timeout > longTimeoutThreshold ? longTimeoutInterval : timeout / shortTimeoutIntervals;
169514
+ let elapsed = 0;
169515
+ const reference = setInterval(() => {
169516
+ elapsed += interval;
169517
+ if (elapsed >= timeout) {
169518
+ clearInterval(reference);
169519
+ callback();
169520
+ }
169521
+ }, interval);
169522
+ return reference;
169523
+ }
169524
+ var longTimeoutThreshold = 4e3;
169525
+ var longTimeoutInterval = 2e3;
169526
+ var shortTimeoutIntervals = 4;
169527
+
169528
+ // src/type-guards.ts
169529
+ function isNotNull(item) {
169530
+ return item !== null;
169531
+ }
169532
+ function isNotUndefined(item) {
169533
+ return item !== void 0;
169534
+ }
169535
+
169536
+ // src/ui.ts
169537
+ function debounce(func, waitFor = 100) {
169538
+ let timeout;
169539
+ return (...args) => {
169540
+ const later = () => {
169541
+ clearTimeout(timeout);
169542
+ func(...args);
169543
+ };
169544
+ clearTimeout(timeout);
169545
+ timeout = setTimeout(later, waitFor);
169546
+ };
169547
+ }
169548
+
169549
+ // src/url.ts
169550
+ function hasSameOrigin(url1, url2, ignoreProtocol = false) {
169551
+ if (!url1 || !url2) {
169552
+ return false;
169553
+ }
169554
+ const url1Obj = new URL(url1);
169555
+ const url2Obj = new URL(url2);
169556
+ if (!ignoreProtocol && url1Obj.protocol !== url2Obj.protocol) {
169557
+ return false;
169558
+ }
169559
+ if (url1Obj.host == null || url2Obj.host == null) {
169560
+ return false;
169561
+ }
169562
+ return url1Obj.host.toLowerCase() === url2Obj.host.toLowerCase() && url1Obj.port === url2Obj.port;
169563
+ }
169564
+ function isURL(url) {
169565
+ try {
169566
+ new URL(url);
169567
+ return true;
169568
+ } catch (e) {
169569
+ return false;
169570
+ }
169571
+ }
169199
169572
 
169200
169573
  /**
169201
169574
  * Filters a collection of items by the given keys and filter word.
@@ -169208,7 +169581,7 @@ function filterCollection(collection, keys, filterWord, beforeFilteringFn) {
169208
169581
  if (!_keys.length) {
169209
169582
  return [];
169210
169583
  }
169211
- const filterExpression = K(filterWord);
169584
+ const filterExpression = createFilterExpression(filterWord);
169212
169585
  return collection.filter((item) => {
169213
169586
  if (beforeFilteringFn) {
169214
169587
  const res = beforeFilteringFn(item);
@@ -169318,7 +169691,7 @@ function fieldAlias(field) {
169318
169691
  //#endregion
169319
169692
  //#region Support functions
169320
169693
  async function getRelatedFeatureLayer(layer, relationship) {
169321
- const relatedFeatureLayer = await newFeatureLayer({ url: `${layer.url}/${relationship.relatedTableId}` });
169694
+ const relatedFeatureLayer = await newLayersFeatureLayer({ url: `${layer.url}/${relationship.relatedTableId}` });
169322
169695
  await relatedFeatureLayer.load();
169323
169696
  return relatedFeatureLayer;
169324
169697
  }
@@ -169408,8 +169781,8 @@ function variableToLSVariable(editorVariable, kind) {
169408
169781
  insertTextMode: main.InsertTextMode.asIs,
169409
169782
  insertTextFormat: main.InsertTextFormat.PlainText,
169410
169783
  kind,
169411
- documentation: { kind: "markdown", value: description }
169412
- }
169784
+ documentation: { kind: "markdown", value: description },
169785
+ },
169413
169786
  };
169414
169787
  }
169415
169788
  async function featureToLSFeature(editorFeature, kind) {
@@ -169423,14 +169796,14 @@ async function featureToLSFeature(editorFeature, kind) {
169423
169796
  insertText: name,
169424
169797
  insertTextMode: main.InsertTextMode.asIs,
169425
169798
  insertTextFormat: main.InsertTextFormat.PlainText,
169426
- kind
169799
+ kind,
169427
169800
  };
169428
169801
  const result = {
169429
169802
  name,
169430
169803
  description,
169431
169804
  type: "dictionary",
169432
169805
  properties: [],
169433
- completion: resultCompletion
169806
+ completion: resultCompletion,
169434
169807
  };
169435
169808
  // No source definition, then it will be a feature without any known fields
169436
169809
  if (!source) {
@@ -169468,8 +169841,8 @@ async function featureToLSFeature(editorFeature, kind) {
169468
169841
  insertTextMode: main.InsertTextMode.asIs,
169469
169842
  insertTextFormat: main.InsertTextFormat.PlainText,
169470
169843
  kind: main.CompletionItemKind.Field,
169471
- documentation: { kind: "markdown", value: fieldCompletionDescription }
169472
- }
169844
+ documentation: { kind: "markdown", value: fieldCompletionDescription },
169845
+ },
169473
169846
  });
169474
169847
  if (!field.alias || field.alias.toLowerCase() === field.name.toLowerCase()) {
169475
169848
  return;
@@ -169490,8 +169863,8 @@ async function featureToLSFeature(editorFeature, kind) {
169490
169863
  insertTextMode: main.InsertTextMode.asIs,
169491
169864
  insertTextFormat: main.InsertTextFormat.PlainText,
169492
169865
  kind: main.CompletionItemKind.Field,
169493
- documentation: { kind: "markdown", value: aliasCompletionDescription }
169494
- }
169866
+ documentation: { kind: "markdown", value: aliasCompletionDescription },
169867
+ },
169495
169868
  });
169496
169869
  });
169497
169870
  result.properties = [...fieldProfileValues, ...aliasProfileValues];
@@ -169524,8 +169897,8 @@ async function dictionaryToLSDictionary(editorDictionary, kind) {
169524
169897
  insertTextMode: main.InsertTextMode.asIs,
169525
169898
  insertTextFormat: main.InsertTextFormat.PlainText,
169526
169899
  kind,
169527
- documentation: { kind: "markdown", value: completionDescription }
169528
- }
169900
+ documentation: { kind: "markdown", value: completionDescription },
169901
+ },
169529
169902
  };
169530
169903
  }
169531
169904
  /**
@@ -169552,9 +169925,9 @@ class ProfileItemBase {
169552
169925
  // If the component is under RTL, the string is messed up.
169553
169926
  // It is converted from $feature to feature$, This is not acceptable since the label
169554
169927
  // represents a variable name. We are adding in front of the $ sign a right to left mark.
169555
- return G(this._label);
169928
+ return addLTRMark(this._label);
169556
169929
  }
169557
- return Z(this._profile?.intlStrings[this._label.code], this._label.formatValues);
169930
+ return setValuesInString(this._profile?.intlStrings[this._label.code], this._label.formatValues);
169558
169931
  }
169559
169932
  /**
169560
169933
  * Returns the description string.
@@ -169566,7 +169939,7 @@ class ProfileItemBase {
169566
169939
  if (typeof this.description === "string") {
169567
169940
  return this.description;
169568
169941
  }
169569
- return Z(this._profile?.intlStrings[this.description.code], this.description.formatValues);
169942
+ return setValuesInString(this._profile?.intlStrings[this.description.code], this.description.formatValues);
169570
169943
  }
169571
169944
  /**
169572
169945
  * Returns true if the item pass the filter test
@@ -169743,28 +170116,28 @@ class DictionaryVariable extends CollectionBasedVariable {
169743
170116
  return new FeatureVariable(this, { profile: this._profile, declaration, label: snippet, snippet });
169744
170117
  case "featureSet":
169745
170118
  return new FeatureSetVariable(this, { profile: this._profile, declaration, label: snippet, snippet }, [
169746
- new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })
170119
+ new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet }),
169747
170120
  ]);
169748
170121
  case "featureSetCollection":
169749
170122
  return new FeatureSetCollectionVariable(this, {
169750
170123
  profile: this._profile,
169751
170124
  declaration,
169752
170125
  label: snippet,
169753
- snippet
170126
+ snippet,
169754
170127
  });
169755
170128
  case "dictionary":
169756
170129
  return new DictionaryVariable(this, {
169757
170130
  profile: this._profile,
169758
170131
  declaration,
169759
170132
  label: snippet,
169760
- snippet
170133
+ snippet,
169761
170134
  });
169762
170135
  case "array":
169763
170136
  return new ArrayVariable({
169764
170137
  profile: this._profile,
169765
170138
  declaration,
169766
170139
  label: snippet,
169767
- snippet
170140
+ snippet,
169768
170141
  });
169769
170142
  default:
169770
170143
  console.error("Editor profile: Invalid profile variable", declaration);
@@ -169776,7 +170149,7 @@ class DictionaryVariable extends CollectionBasedVariable {
169776
170149
  type: this.type,
169777
170150
  name: "",
169778
170151
  ...this.declaration,
169779
- properties: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition())
170152
+ properties: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition()),
169780
170153
  };
169781
170154
  }
169782
170155
  }
@@ -169807,7 +170180,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169807
170180
  return this._profile?.intlStrings.layer ?? "layer";
169808
170181
  }
169809
170182
  async loadSource() {
169810
- if (ee(this._loadPromise) && te(this._loadPromise)) {
170183
+ if (isNotNull(this._loadPromise) && isNotUndefined(this._loadPromise)) {
169811
170184
  return await this._loadPromise;
169812
170185
  }
169813
170186
  this._loadPromise = this._loadSource();
@@ -169842,7 +170215,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169842
170215
  description: fieldAlias(field),
169843
170216
  snippet: valueSnippet,
169844
170217
  icon: fieldTypeToIconName(field),
169845
- filterDescription: true
170218
+ filterDescription: true,
169846
170219
  });
169847
170220
  }
169848
170221
  _getDomainDictionary(field) {
@@ -169881,6 +170254,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169881
170254
  // Sepcial case for the subtype field
169882
170255
  if (field.name === this._source.subtypeField) {
169883
170256
  const domainDictionary = this._createDomainDictionary(field);
170257
+ domainDictionary.icon = "subtype";
169884
170258
  domainDictionary.variables.push(this._getTypeOrSubtypeDomainGroup(this._source.subtypes, field));
169885
170259
  return domainDictionary;
169886
170260
  }
@@ -169935,7 +170309,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169935
170309
  return null;
169936
170310
  }
169937
170311
  const domainValuesGroup = this._getCodedValueDomainGroup(fieldDomain, {
169938
- code: "domainvalues"
170312
+ code: "domainvalues",
169939
170313
  });
169940
170314
  const domainDictionary = this._createDomainDictionary(field);
169941
170315
  domainDictionary.variables.push(domainValuesGroup);
@@ -169953,7 +170327,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169953
170327
  profile: this._profile,
169954
170328
  label: `${label}`,
169955
170329
  description: t.name,
169956
- snippet: `"${label}"`
170330
+ snippet: `"${label}"`,
169957
170331
  });
169958
170332
  }) ?? [];
169959
170333
  return new GroupOfVariables(this._profile, { code: "subtypes" }, values);
@@ -169964,7 +170338,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169964
170338
  label: `${v.code}`,
169965
170339
  description: v.name,
169966
170340
  snippet: `"${v.code}"`,
169967
- filterDescription: true
170341
+ filterDescription: true,
169968
170342
  }));
169969
170343
  return new GroupOfVariables(this._profile, label, values);
169970
170344
  }
@@ -169990,8 +170364,8 @@ class SourceBasedVariable extends CollectionBasedVariable {
169990
170364
  code: "domainvaluesfortypeformat",
169991
170365
  formatValues: {
169992
170366
  fieldName: alias,
169993
- typeName: type.name
169994
- }
170367
+ typeName: type.name,
170368
+ },
169995
170369
  });
169996
170370
  const id = isSubtypeInstance(type) ? type.code : type.id;
169997
170371
  const label = `${id}`;
@@ -170001,7 +170375,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
170001
170375
  label,
170002
170376
  snippet,
170003
170377
  description: type.name,
170004
- declaration: { name: alias }
170378
+ declaration: { name: alias },
170005
170379
  });
170006
170380
  subtypeDictionary.variables = [domainValuesGroup];
170007
170381
  variables.push(subtypeDictionary);
@@ -170023,7 +170397,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
170023
170397
  description: alias,
170024
170398
  snippet: valueSnippet,
170025
170399
  icon: "form-dropdown",
170026
- declaration: { name: field.name }
170400
+ declaration: { name: field.name },
170027
170401
  });
170028
170402
  // Add the header group
170029
170403
  const headerGroup = new GroupOfVariables(this._profile, alias, [
@@ -170031,8 +170405,8 @@ class SourceBasedVariable extends CollectionBasedVariable {
170031
170405
  profile: this._profile,
170032
170406
  label: valueSnippet,
170033
170407
  description: "",
170034
- snippet: valueSnippet
170035
- })
170408
+ snippet: valueSnippet,
170409
+ }),
170036
170410
  ]);
170037
170411
  domainDictionary.variables = [headerGroup];
170038
170412
  // Add the SubtypeName or DomainName snippet if available
@@ -170042,7 +170416,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
170042
170416
  profile: this._profile,
170043
170417
  label: subtypeOrDomainNameSnippet,
170044
170418
  description: "",
170045
- snippet: subtypeOrDomainNameSnippet
170419
+ snippet: subtypeOrDomainNameSnippet,
170046
170420
  }));
170047
170421
  }
170048
170422
  return domainDictionary;
@@ -170072,10 +170446,10 @@ class SourceBasedVariable extends CollectionBasedVariable {
170072
170446
  declaration: { definition: relatedLayer },
170073
170447
  label: relatedLayer.title,
170074
170448
  description: "",
170075
- nonInteractive: true
170449
+ nonInteractive: true,
170076
170450
  }, [new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })], { exposeRelationships: true, sourceTableId: source.layerId });
170077
170451
  }));
170078
- relationshipsGroup.variables = relationshipItems.filter(ee);
170452
+ relationshipsGroup.variables = relationshipItems.filter(isNotNull);
170079
170453
  if (!relationshipsGroup.variables.length) {
170080
170454
  return null;
170081
170455
  }
@@ -170088,8 +170462,8 @@ class FeatureVariable extends SourceBasedVariable {
170088
170462
  this.type = "feature";
170089
170463
  }
170090
170464
  get title() {
170091
- if (isSupportedLayerInstance(this._source)) {
170092
- return this._source.title;
170465
+ if (isTitleCapableSource(this._source)) {
170466
+ return this._source.title ?? "";
170093
170467
  }
170094
170468
  return { code: "feature" };
170095
170469
  }
@@ -170103,14 +170477,14 @@ class FeatureVariable extends SourceBasedVariable {
170103
170477
  throw new Error("Invalid definition");
170104
170478
  }
170105
170479
  // The title group and snippet
170106
- const title = isSupportedLayerInstance(this._source) ? this._source.title : "";
170480
+ const title = isTitleCapableSource(this._source) ? this._source.title ?? "" : "";
170107
170481
  this.variables.push(new GroupOfVariables(this._profile, title, [
170108
170482
  new ValueVariable({
170109
170483
  profile: this._profile,
170110
170484
  label: this.snippet,
170111
170485
  description: "",
170112
- snippet: this.snippet
170113
- })
170486
+ snippet: this.snippet,
170487
+ }),
170114
170488
  ]));
170115
170489
  // The collection of feature attribute values
170116
170490
  const valuesGroup = new GroupOfVariables(this._profile, { code: "values" });
@@ -170125,7 +170499,7 @@ class FeatureVariable extends SourceBasedVariable {
170125
170499
  description: "Geometry",
170126
170500
  snippet,
170127
170501
  icon: "shapes",
170128
- filterDescription: true
170502
+ filterDescription: true,
170129
170503
  });
170130
170504
  valuesGroup.variables.push(geometryProperty);
170131
170505
  }
@@ -170138,8 +170512,8 @@ class FeatureVariable extends SourceBasedVariable {
170138
170512
  this.variables.push(relationshipsGroup);
170139
170513
  }
170140
170514
  }
170141
- catch (e) {
170142
- console.error("Loading issue", e, this);
170515
+ catch (error) {
170516
+ console.error("Error with definition", error, this._definition);
170143
170517
  this._source = null;
170144
170518
  }
170145
170519
  finally {
@@ -170161,8 +170535,8 @@ class FeatureSetVariable extends SourceBasedVariable {
170161
170535
  this.type = "featureSet";
170162
170536
  }
170163
170537
  get title() {
170164
- if (isSupportedLayerInstance(this._source)) {
170165
- return this._source.title;
170538
+ if (isTitleCapableSource(this._source)) {
170539
+ return this._source.title ?? "";
170166
170540
  }
170167
170541
  return { code: "featureset" };
170168
170542
  }
@@ -170189,8 +170563,8 @@ class FeatureSetVariable extends SourceBasedVariable {
170189
170563
  this.variables.push(relationshipsGroup);
170190
170564
  }
170191
170565
  }
170192
- catch (e) {
170193
- console.error("Loading issue", e, this);
170566
+ catch (error) {
170567
+ console.error("Error with definition", error, this._definition);
170194
170568
  this._source = null;
170195
170569
  }
170196
170570
  finally {
@@ -170239,7 +170613,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170239
170613
  return this._profile?.intlStrings.map ?? "map";
170240
170614
  }
170241
170615
  async loadSource() {
170242
- if (ee(this._loadPromise) && te(this._loadPromise)) {
170616
+ if (isNotNull(this._loadPromise) && isNotUndefined(this._loadPromise)) {
170243
170617
  return await this._loadPromise;
170244
170618
  }
170245
170619
  this._loadPromise = this._loadSource();
@@ -170260,24 +170634,24 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170260
170634
  : {
170261
170635
  code: "webmapformat",
170262
170636
  formatValues: {
170263
- webMapTitle: getMapPortalItem(this._featureSetCollections.source)?.title || "Untitled map"
170264
- }
170637
+ webMapTitle: getMapPortalItem(this._featureSetCollections.source)?.title || "Untitled map",
170638
+ },
170265
170639
  };
170266
170640
  const headerGroup = new GroupOfVariables(this._profile, groupLabel, [
170267
170641
  new ValueVariable({
170268
170642
  profile: this._profile,
170269
170643
  label: this.snippet,
170270
170644
  description: "",
170271
- snippet: this.snippet
170272
- })
170645
+ snippet: this.snippet,
170646
+ }),
170273
170647
  ]);
170274
170648
  // Creates the groups for the layer and tables
170275
170649
  const layersGroup = new GroupOfVariables(this._profile, { code: "layers" }, this._featureSetCollections.layers);
170276
170650
  const tablesGroup = new GroupOfVariables(this._profile, { code: "tables" }, this._featureSetCollections.tables);
170277
170651
  this.variables.push(headerGroup, layersGroup, tablesGroup);
170278
170652
  }
170279
- catch (e) {
170280
- console.error("Loading issue", e, this);
170653
+ catch (error) {
170654
+ console.error("Error with definition", error, this._definition);
170281
170655
  this._featureSetCollections = null;
170282
170656
  }
170283
170657
  finally {
@@ -170292,7 +170666,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170292
170666
  if (isMapInstance(this._definition)) {
170293
170667
  return await this._featureSetCollectionFromMap(this._definition);
170294
170668
  }
170295
- if (isSupportedLayerInstance(this._definition)) {
170669
+ if (isUrlDefinition(this._definition)) {
170296
170670
  return await this._featureSetCollectionFromUrl(this._definition.url);
170297
170671
  }
170298
170672
  if (isPortalItemDefinition(this._definition)) {
@@ -170300,10 +170674,6 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170300
170674
  // or Feature Service
170301
170675
  return await this._featureSetCollectionFromPortalItem(this._definition.portalItem);
170302
170676
  }
170303
- if (isUrlDefinition(this._definition)) {
170304
- // Assume that the url is pointing to a feature server
170305
- return await this._featureSetCollectionFromUrl(this._definition.url);
170306
- }
170307
170677
  return null;
170308
170678
  }
170309
170679
  async _featureSetCollectionFromMap(map) {
@@ -170316,7 +170686,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170316
170686
  return {
170317
170687
  layers: this._convertWebMapLayersToVariables(map.layers),
170318
170688
  tables: this._convertWebMapLayersToVariables(map.tables, true),
170319
- source: map
170689
+ source: map,
170320
170690
  };
170321
170691
  }
170322
170692
  async _featureSetCollectionFromPortalItem(definition) {
@@ -170347,12 +170717,12 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170347
170717
  }
170348
170718
  const metadata = await serviceMetaData(processedUrl);
170349
170719
  const layersPromise = Promise.all(metadata.layers.map(async (layerInfo) => {
170350
- const featureLayer = await newFeatureLayer({ url: `${processedUrl}/${layerInfo.id}` });
170720
+ const featureLayer = await newLayersFeatureLayer({ url: `${processedUrl}/${layerInfo.id}` });
170351
170721
  await featureLayer.load();
170352
170722
  return this._createFeatureSetVariable(featureLayer);
170353
170723
  }));
170354
170724
  const tablesPromise = Promise.all(metadata.tables.map(async (layerInfo) => {
170355
- const table = await newFeatureLayer({ url: `${processedUrl}/${layerInfo.id}` });
170725
+ const table = await newLayersFeatureLayer({ url: `${processedUrl}/${layerInfo.id}` });
170356
170726
  await table.load();
170357
170727
  return this._createFeatureSetVariable(table);
170358
170728
  }));
@@ -170382,9 +170752,11 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170382
170752
  return new FeatureSetVariable(this, {
170383
170753
  profile: this._profile,
170384
170754
  declaration: { name: featureLayer.title, definition: featureLayer },
170385
- label: featureLayer.title,
170755
+ label: isFromWebMap
170756
+ ? featureLayer.title
170757
+ : featureLayer.sourceJSON.name ?? featureLayer.title,
170386
170758
  description: "",
170387
- nonInteractive: true
170759
+ nonInteractive: true,
170388
170760
  }, this._makeFeatureSetSnippets(featureLayer, isFromWebMap));
170389
170761
  }
170390
170762
  _makeFeatureSetSnippets(featureLayer, isFromWebMap = false) {
@@ -170396,7 +170768,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170396
170768
  const snippetByName = `FeatureSetByName(${this.snippet}, "${featureLayer.title}")`;
170397
170769
  return [
170398
170770
  new ValueVariable({ profile: this._profile, label: snippetById, description: "", snippet: snippetById }),
170399
- new ValueVariable({ profile: this._profile, label: snippetByName, description: "", snippet: snippetByName })
170771
+ new ValueVariable({ profile: this._profile, label: snippetByName, description: "", snippet: snippetByName }),
170400
170772
  ];
170401
170773
  }
170402
170774
  else {
@@ -170421,7 +170793,7 @@ class EditorProfile extends DictionaryVariable {
170421
170793
  // Delay the load of the variable declarations so we have a `this`
170422
170794
  super(undefined, {
170423
170795
  profile: null,
170424
- declaration: { properties: [] }
170796
+ declaration: { properties: [] },
170425
170797
  });
170426
170798
  this.definition = definition;
170427
170799
  this.intlStrings = intlStrings;
@@ -170453,28 +170825,20 @@ class EditorProfile extends DictionaryVariable {
170453
170825
  toEditorProfileDefinition() {
170454
170826
  return {
170455
170827
  ...this.definition,
170456
- variables: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition())
170828
+ variables: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition()),
170457
170829
  };
170458
170830
  }
170459
170831
  }
170460
170832
  //#endregion
170461
170833
 
170462
170834
  function isFeatureDefinition(item) {
170463
- return (isSupportedLayerInstance(item) ||
170464
- isFeatureSetInstance(item) ||
170465
- isUrlDefinition(item) ||
170466
- isFieldsDefinition(item) ||
170467
- isFeatureLayerItemDefinition(item));
170835
+ return isUrlDefinition(item) || isFieldsDefinition(item) || isFeatureLayerItemDefinition(item);
170468
170836
  }
170469
170837
  function isFeatureSetDefinition(item) {
170470
- return (isQueryableLayerInstance(item) ||
170471
- isFeatureSetInstance(item) ||
170472
- isUrlDefinition(item) ||
170473
- isFieldsDefinition(item) ||
170474
- isFeatureLayerItemDefinition(item));
170838
+ return isUrlDefinition(item) || isFieldsDefinition(item) || isFeatureLayerItemDefinition(item);
170475
170839
  }
170476
170840
  function isFeatureSetCollectionDefinition(item) {
170477
- return isPortalItemDefinition(item) || isMapInstance(item) || isFeatureSetDefinition(item);
170841
+ return isPortalItemDefinition(item) || isMapInstance(item) || isSupportedServiceUrlDefinition(item);
170478
170842
  }
170479
170843
  /**
170480
170844
  * Get a PredefinedProfile for a locale. If not already loaded then fetch it.
@@ -170486,7 +170850,7 @@ async function getSdkPredefinedProfiles(locale = "en") {
170486
170850
  if (profiles) {
170487
170851
  return profiles;
170488
170852
  }
170489
- if (!E.has(locale)) {
170853
+ if (!supportedLocales.has(locale)) {
170490
170854
  return await getSdkPredefinedProfiles("en");
170491
170855
  }
170492
170856
  try {
@@ -170524,7 +170888,7 @@ function isExtendedPredefinedProfileDefinition(item) {
170524
170888
  return !!item && typeof item === "object" && "additionalVariables" in item && Array.isArray(item.additionalVariables);
170525
170889
  }
170526
170890
  function convertApiVariables(variables) {
170527
- return variables.map(convertApiVariable);
170891
+ return variables?.map(convertApiVariable);
170528
170892
  }
170529
170893
  function convertApiVariable(variable) {
170530
170894
  switch (variable.type) {
@@ -170532,13 +170896,13 @@ function convertApiVariable(variable) {
170532
170896
  return {
170533
170897
  ...variable,
170534
170898
  type: variable.type,
170535
- properties: convertApiVariables(variable.properties)
170899
+ properties: convertApiVariables(variable.properties),
170536
170900
  };
170537
170901
  case "array": {
170538
170902
  return {
170539
170903
  ...variable,
170540
170904
  type: variable.type,
170541
- elementType: { type: "number", name: "number" }
170905
+ elementType: { type: "number", name: "number" },
170542
170906
  };
170543
170907
  }
170544
170908
  default:
@@ -170556,43 +170920,47 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
170556
170920
  const editorProfile = {
170557
170921
  bundles: [...sdkPredefinedProfile.bundles],
170558
170922
  variables: [],
170559
- hiddenApiItems: predefinedProfile.hiddenApiItems?.map((s) => s.toLowerCase())
170923
+ hiddenApiItems: predefinedProfile.hiddenApiItems?.map((s) => s.toLowerCase()),
170560
170924
  };
170561
170925
  // Merge the SDK variables' definitions/properties with the predefined profile definitions.
170562
- sdkPredefinedProfile.variables.forEach((sdkVariable) => {
170926
+ sdkPredefinedProfile.variables.forEach((predefinedVariable) => {
170563
170927
  // Don't include disabled variables
170564
- if (predefinedProfile.disabledVariables?.includes(sdkVariable.name)) {
170928
+ if (predefinedProfile.disabledVariables?.includes(predefinedVariable.name)) {
170565
170929
  return;
170566
170930
  }
170567
- // Try to get a definition from the predefined profile.
170568
- const definition = predefinedProfile.definitions[sdkVariable.name];
170931
+ // Try to get a definition from the predefined profile, for the variable that needs one.
170932
+ const definition = predefinedProfile.definitions[predefinedVariable.name];
170569
170933
  // Note: Something is weird with TS. The sdkVariables are being casted to the wrong type
170570
170934
  // despite the type checking from the switch statement.
170571
- switch (sdkVariable.type) {
170572
- case "dictionary":
170935
+ switch (predefinedVariable.type) {
170936
+ case "dictionary": {
170573
170937
  // For dictionary, we support properties overrride
170574
170938
  return editorProfile.variables.push(convertApiVariable({
170575
- ...sdkVariable,
170576
- type: sdkVariable.type,
170577
- properties: Array.isArray(definition) ? [...definition] : sdkVariable.properties
170939
+ ...predefinedVariable,
170940
+ type: predefinedVariable.type,
170941
+ properties: Array.isArray(definition) ? [...definition] : predefinedVariable.properties,
170578
170942
  }));
170943
+ }
170579
170944
  case "feature":
170580
- if (isFeatureDefinition(definition)) {
170581
- return editorProfile.variables.push({ ...sdkVariable, type: sdkVariable.type, definition });
170945
+ // If the definition is not valid, then we don't include it.
170946
+ if (!isFeatureDefinition(definition)) {
170947
+ return;
170582
170948
  }
170583
- return editorProfile.variables.push({ ...sdkVariable, type: sdkVariable.type });
170949
+ return editorProfile.variables.push({ ...predefinedVariable, type: predefinedVariable.type, definition });
170584
170950
  case "featureSet":
170585
- if (isFeatureSetDefinition(definition)) {
170586
- return editorProfile.variables.push({ ...sdkVariable, type: sdkVariable.type, definition });
170951
+ // If the definition is not valid, then we don't include it.
170952
+ if (!isFeatureSetDefinition(definition)) {
170953
+ return;
170587
170954
  }
170588
- return editorProfile.variables.push({ ...sdkVariable, type: sdkVariable.type });
170955
+ return editorProfile.variables.push({ ...predefinedVariable, type: predefinedVariable.type, definition });
170589
170956
  case "featureSetCollection":
170590
- if (isFeatureSetCollectionDefinition(definition)) {
170591
- return editorProfile.variables.push({ ...sdkVariable, type: sdkVariable.type, definition });
170957
+ // If the definition is not valid, then we don't include it.
170958
+ if (!isFeatureSetCollectionDefinition(definition)) {
170959
+ return;
170592
170960
  }
170593
- return editorProfile.variables.push({ ...sdkVariable, type: sdkVariable.type });
170961
+ return editorProfile.variables.push({ ...predefinedVariable, type: predefinedVariable.type, definition });
170594
170962
  default:
170595
- return editorProfile.variables.push(convertApiVariable(sdkVariable));
170963
+ return editorProfile.variables.push(convertApiVariable(predefinedVariable));
170596
170964
  }
170597
170965
  });
170598
170966
  if (isExtendedPredefinedProfileDefinition(predefinedProfile)) {
@@ -170603,7 +170971,7 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
170603
170971
 
170604
170972
  const arcadeLanguageId = "arcade";
170605
170973
  const defaultContext = {
170606
- locale: "en"
170974
+ locale: "en",
170607
170975
  };
170608
170976
  class ArcadeLanguageServiceDefaults {
170609
170977
  constructor() {
@@ -170657,7 +171025,7 @@ class ArcadeLanguageServiceDefaults {
170657
171025
  if (isPredefinedProfile(definition)) {
170658
171026
  definition = await convertToEditorProfileDefinition(definition, apiContext.locale);
170659
171027
  }
170660
- const intlStrings = await v(apiContext.locale, index.getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
171028
+ const intlStrings = await fetchT9NStringsBundle(apiContext.locale, index.getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
170661
171029
  if (!intlStrings) {
170662
171030
  throw new Error(`Failed to load the language bundle for ${apiContext.locale}`);
170663
171031
  }
@@ -170669,7 +171037,7 @@ class ArcadeLanguageServiceDefaults {
170669
171037
  this.updateApiContextForModel(modelId, {
170670
171038
  locale: apiContext.locale,
170671
171039
  profile: apiProfile,
170672
- snippets: apiContext.snippets
171040
+ snippets: apiContext.snippets,
170673
171041
  });
170674
171042
  }
170675
171043
  /**
@@ -170736,41 +171104,45 @@ class ArcadeLanguageServiceDefaults {
170736
171104
  }
170737
171105
  const arcadeDefaults = new ArcadeLanguageServiceDefaults();
170738
171106
  const arcade = {
170739
- setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults)
171107
+ setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults),
170740
171108
  };
170741
171109
 
170742
- exports.B = B;
170743
- exports.D = D;
171110
+ exports.Deferred = Deferred;
170744
171111
  exports.Emitter = Emitter;
170745
- exports.G = G;
170746
171112
  exports.IStandaloneThemeService = IStandaloneThemeService;
170747
- exports.K = K;
170748
171113
  exports.KeyCode = KeyCode;
170749
171114
  exports.KeyMod = KeyMod;
170750
171115
  exports.MarkerSeverity = MarkerSeverity;
170751
171116
  exports.Range = Range;
170752
- exports.U = U;
170753
171117
  exports.Uri = Uri;
170754
- exports.W = W;
170755
- exports.Z = Z;
171118
+ exports.addLTRMark = addLTRMark;
170756
171119
  exports.arcade = arcade;
170757
171120
  exports.arcadeDefaults = arcadeDefaults;
171121
+ exports.camelToKebab = camelToKebab;
170758
171122
  exports.commonjsGlobal = commonjsGlobal;
170759
171123
  exports.createCommonjsModule = createCommonjsModule;
171124
+ exports.createFilterExpression = createFilterExpression;
171125
+ exports.debounce = debounce;
171126
+ exports.devToolsAwareTimeout = devToolsAwareTimeout;
170760
171127
  exports.editor = editor;
170761
171128
  exports.filterCollection = filterCollection;
171129
+ exports.generateGuid = generateGuid;
170762
171130
  exports.generateTokensCSSForColorMap = generateTokensCSSForColorMap;
170763
- exports.h = h;
170764
- exports.ie = ie;
171131
+ exports.getElementLocales = getElementLocales;
171132
+ exports.getElementTheme = getElementTheme;
171133
+ exports.hasSameOrigin = hasSameOrigin;
170765
171134
  exports.importArcade = importArcade;
170766
171135
  exports.importRequest = importRequest;
170767
- exports.k = k;
171136
+ exports.isURL = isURL;
170768
171137
  exports.languages = languages;
170769
171138
  exports.main = main;
170770
171139
  exports.monaco_editor_core_star = monaco_editor_core_star;
170771
- exports.q = q;
170772
- exports.re = re;
170773
- exports.se = se;
171140
+ exports.observeAncestorsMutation = observeAncestorsMutation;
171141
+ exports.quoteString = quoteString;
171142
+ exports.safeAsyncCall = safeAsyncCall;
171143
+ exports.safeCall = safeCall;
171144
+ exports.setFocusOnElement = setFocusOnElement;
171145
+ exports.setValuesInString = setValuesInString;
171146
+ exports.startLocaleObserver = startLocaleObserver;
170774
171147
  exports.supportedFields = supportedFields;
170775
171148
  exports.typescriptDefaults = typescriptDefaults;
170776
- exports.x = x;