@arcgis/coding-components 4.30.0-next.6 → 4.30.0-next.60

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 (141) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.css +1 -1
  2. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  3. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +25 -0
  4. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +25 -0
  5. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +25 -0
  6. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +25 -0
  7. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +25 -0
  8. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +25 -0
  9. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +25 -0
  10. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +25 -0
  11. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +25 -0
  12. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +25 -0
  13. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +25 -0
  14. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +25 -0
  15. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +25 -0
  16. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +25 -0
  17. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +25 -0
  18. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +25 -0
  19. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +25 -0
  20. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +25 -0
  21. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +25 -0
  22. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +25 -0
  23. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +25 -0
  24. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +25 -0
  25. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +25 -0
  26. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +25 -0
  27. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +25 -0
  28. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +25 -0
  29. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +25 -0
  30. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +25 -0
  31. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +25 -0
  32. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +25 -0
  33. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +25 -0
  34. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +25 -0
  35. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +25 -0
  36. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +25 -0
  37. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +25 -0
  38. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +25 -0
  39. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +25 -0
  40. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +25 -0
  41. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +25 -0
  42. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +25 -0
  43. package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +1 -1
  44. package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +1 -1
  45. package/dist/arcgis-coding-components/assets/code-editor/editor.worker.js +1 -1
  46. package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +1 -1
  47. package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +1 -1
  48. package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +1 -1
  49. package/dist/arcgis-coding-components/index.esm.js +2 -2
  50. package/dist/arcgis-coding-components/{p-90fb100f.js → p-297663c9.js} +2 -2
  51. package/dist/arcgis-coding-components/{p-9d1d979c.js → p-45801ffe.js} +1 -1
  52. package/dist/arcgis-coding-components/{p-5d6fc1e7.js → p-48f37b8e.js} +2 -2
  53. package/dist/arcgis-coding-components/p-53b69ec3.js +68 -0
  54. package/dist/arcgis-coding-components/{p-5adc9cfb.js → p-55ac23d1.js} +2 -2
  55. package/dist/arcgis-coding-components/{p-7ca4aa88.js → p-6be741ea.js} +3 -3
  56. package/dist/arcgis-coding-components/{p-ef4155a9.js → p-6d2daea8.js} +3 -3
  57. package/dist/arcgis-coding-components/p-9c6bb77a.js +7 -0
  58. package/dist/arcgis-coding-components/p-a7f7c1aa.entry.js +6 -0
  59. package/dist/arcgis-coding-components/{p-b9722015.js → p-c3c62032.js} +2 -2
  60. package/dist/arcgis-coding-components/{p-eb917f3a.js → p-c94e9b77.js} +2 -2
  61. package/dist/arcgis-coding-components/{p-d196feb5.js → p-f411a906.js} +2 -2
  62. package/dist/cjs/{arcade-defaults-70b8df41.js → arcade-defaults-25e01647.js} +561 -214
  63. package/dist/cjs/{arcade-mode-414c66f4.js → arcade-mode-80f256b2.js} +45 -51
  64. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +1558 -289
  65. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  66. package/dist/cjs/{css-0300126d.js → css-a4343f63.js} +1 -1
  67. package/dist/cjs/{cssMode-639e66e0.js → cssMode-a55308d9.js} +3 -3
  68. package/dist/cjs/{html-e3fdf204.js → html-0d7ea22e.js} +3 -3
  69. package/dist/cjs/{htmlMode-10f18c9b.js → htmlMode-f49a890f.js} +3 -3
  70. package/dist/cjs/{index-adc344c5.js → index-cc90af2a.js} +40 -4
  71. package/dist/cjs/index.cjs.js +3 -3
  72. package/dist/cjs/{javascript-aa185858.js → javascript-ca83132d.js} +4 -4
  73. package/dist/cjs/{jsonMode-f518f7ed.js → jsonMode-4ae5f2d3.js} +3 -3
  74. package/dist/cjs/loader.cjs.js +3 -3
  75. package/dist/cjs/{tsMode-26a73467.js → tsMode-f3f32f78.js} +3 -3
  76. package/dist/cjs/{typescript-15f88a16.js → typescript-a3feebd1.js} +3 -3
  77. package/dist/components/arcade-api.js +21 -32
  78. package/dist/components/arcade-contribution.js +71 -12
  79. package/dist/components/arcade-defaults.js +93 -114
  80. package/dist/components/arcade-mode.js +44 -50
  81. package/dist/components/arcade-results.js +47 -60
  82. package/dist/components/arcade-suggestions.js +23 -33
  83. package/dist/components/arcade-variables.js +22 -36
  84. package/dist/components/arcgis-arcade-api.js +1 -1
  85. package/dist/components/arcgis-arcade-editor.js +60 -150
  86. package/dist/components/arcgis-arcade-results.js +1 -1
  87. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  88. package/dist/components/arcgis-arcade-variables.js +1 -1
  89. package/dist/components/arcgis-assets.d.ts +1 -1
  90. package/dist/components/arcgis-assets.js +1 -1
  91. package/dist/components/arcgis-code-editor.js +1 -1
  92. package/dist/components/chunk-A2KF2X73.js +1273 -0
  93. package/dist/components/code-editor.js +70 -78
  94. package/dist/components/fields.js +40 -44
  95. package/dist/components/index.js +1 -1
  96. package/dist/components/index2.js +372 -3
  97. package/dist/components/markdown.js +9 -11
  98. package/dist/components/useT9n.js +35 -0
  99. package/dist/components/utilities.js +3 -3
  100. package/dist/esm/{arcade-defaults-87f41324.js → arcade-defaults-c0b9c076.js} +545 -201
  101. package/dist/esm/{arcade-mode-391974e7.js → arcade-mode-792cbcf5.js} +45 -51
  102. package/dist/esm/arcgis-arcade-api_6.entry.js +1558 -289
  103. package/dist/esm/arcgis-coding-components.js +4 -4
  104. package/dist/esm/{css-2e473dc7.js → css-5c8d2920.js} +1 -1
  105. package/dist/esm/{cssMode-17d87e3a.js → cssMode-8fa2f14c.js} +3 -3
  106. package/dist/esm/{html-8b3066e6.js → html-e888de7a.js} +3 -3
  107. package/dist/esm/{htmlMode-ad2b857d.js → htmlMode-774cf48f.js} +3 -3
  108. package/dist/esm/{index-e85ba44c.js → index-052906ef.js} +40 -4
  109. package/dist/esm/index.js +3 -3
  110. package/dist/esm/{javascript-00a0be9d.js → javascript-b5c99634.js} +4 -4
  111. package/dist/esm/{jsonMode-b6f2e0b4.js → jsonMode-48b7186d.js} +3 -3
  112. package/dist/esm/loader.js +4 -4
  113. package/dist/esm/{tsMode-84b08f5b.js → tsMode-a9ff7531.js} +3 -3
  114. package/dist/esm/{typescript-f47937d0.js → typescript-9bbf3eca.js} +3 -3
  115. package/dist/loader/cdn.js +1 -1
  116. package/dist/loader/index.cjs.js +1 -1
  117. package/dist/loader/index.es2017.js +1 -1
  118. package/dist/loader/index.js +1 -1
  119. package/dist/types/components/arcade-api/arcade-api.d.ts +6 -7
  120. package/dist/types/components/arcade-editor/arcade-editor.d.ts +18 -12
  121. package/dist/types/components/arcade-results/arcade-results.d.ts +6 -9
  122. package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +7 -8
  123. package/dist/types/components/arcade-variables/arcade-variables.d.ts +6 -8
  124. package/dist/types/components/code-editor/code-editor.d.ts +23 -13
  125. package/dist/types/components.d.ts +57 -35
  126. package/dist/types/controllers/useT9n.d.ts +1 -0
  127. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stencil.config.d.ts +3 -0
  128. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/arcade-editor.stories.d.ts +27 -0
  129. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/editorContext.d.ts +11 -0
  130. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/code-editor/code-editor.stories.d.ts +6 -0
  131. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/reference/stories/arcade-editor.stories.d.ts +9 -0
  132. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-inline-url-importer.d.ts +9 -0
  133. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-json-importer.d.ts +19 -0
  134. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/stencil-monaco-plugins.d.ts +6 -0
  135. package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +1 -1
  136. package/dist/types/utils/profile/types.d.ts +13 -11
  137. package/dist/types/utils/profile/utils.d.ts +0 -2
  138. package/package.json +21 -20
  139. package/dist/arcgis-coding-components/p-1fc82a07.js +0 -68
  140. package/dist/arcgis-coding-components/p-1feca957.js +0 -7
  141. package/dist/arcgis-coding-components/p-27cce129.entry.js +0 -6
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.6
4
+ * v4.30.0-next.60
5
5
  */
6
- import { g as getAssetPath } from './index-e85ba44c.js';
6
+ import { g as getAssetPath } from './index-052906ef.js';
7
7
 
8
8
  /**
9
9
  * Returns the last element of an array.
@@ -20619,7 +20619,7 @@ class DragAndDropObserver extends Disposable {
20619
20619
  }
20620
20620
  }
20621
20621
  const H_REGEX = /(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;
20622
- function h$1(tag, ...args) {
20622
+ function h(tag, ...args) {
20623
20623
  let attributes;
20624
20624
  let children;
20625
20625
  if (Array.isArray(args[0])) {
@@ -113875,15 +113875,15 @@ class LinesLayout {
113875
113875
  }
113876
113876
  class MovedBlockOverlayWidget extends ViewZoneOverlayWidget {
113877
113877
  constructor(_editor, _viewZone, _move, _kind, _diffModel) {
113878
- const root = h$1('div.diff-hidden-lines-widget');
113878
+ const root = h('div.diff-hidden-lines-widget');
113879
113879
  super(_editor, _viewZone, root.root);
113880
113880
  this._editor = _editor;
113881
113881
  this._move = _move;
113882
113882
  this._kind = _kind;
113883
113883
  this._diffModel = _diffModel;
113884
- this._nodes = h$1('div.diff-moved-code-block', { style: { marginRight: '4px' } }, [
113885
- h$1('div.text-content@textContent'),
113886
- h$1('div.action-bar@actionBar'),
113884
+ this._nodes = h('div.diff-moved-code-block', { style: { marginRight: '4px' } }, [
113885
+ h('div.text-content@textContent'),
113886
+ h('div.action-bar@actionBar'),
113887
113887
  ]);
113888
113888
  root.root.appendChild(this._nodes.root);
113889
113889
  const editorLayout = observableFromEvent(this._editor.onDidLayoutChange, () => this._editor.getLayoutInfo());
@@ -114082,7 +114082,7 @@ class RevertButton {
114082
114082
  this._diffs = _diffs;
114083
114083
  this._selection = _selection;
114084
114084
  this._id = `revertButton${RevertButton.counter++}`;
114085
- this._domNode = h$1('div.revertButton', {
114085
+ this._domNode = h('div.revertButton', {
114086
114086
  title: this._selection
114087
114087
  ? localize('revertSelectedChanges', 'Revert Selected Changes')
114088
114088
  : localize('revertChange', 'Revert Change')
@@ -114555,7 +114555,7 @@ HideUnchangedRegionsFeature = __decorate$1B([
114555
114555
  ], HideUnchangedRegionsFeature);
114556
114556
  class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
114557
114557
  constructor(_editor, _viewZone, _unchangedRegion, _unchangedRegionRange, _hide, _modifiedOutlineSource, _revealModifiedHiddenLine, _options) {
114558
- const root = h$1('div.diff-hidden-lines-widget');
114558
+ const root = h('div.diff-hidden-lines-widget');
114559
114559
  super(_editor, _viewZone, root.root);
114560
114560
  this._editor = _editor;
114561
114561
  this._unchangedRegion = _unchangedRegion;
@@ -114564,13 +114564,13 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
114564
114564
  this._modifiedOutlineSource = _modifiedOutlineSource;
114565
114565
  this._revealModifiedHiddenLine = _revealModifiedHiddenLine;
114566
114566
  this._options = _options;
114567
- this._nodes = h$1('div.diff-hidden-lines', [
114568
- h$1('div.top@top', { title: localize('diff.hiddenLines.top', 'Click or drag to show more above') }),
114569
- h$1('div.center@content', { style: { display: 'flex' } }, [
114570
- 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)'))]),
114571
- h$1('div@others', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } }),
114567
+ this._nodes = h('div.diff-hidden-lines', [
114568
+ h('div.top@top', { title: localize('diff.hiddenLines.top', 'Click or drag to show more above') }),
114569
+ h('div.center@content', { style: { display: 'flex' } }, [
114570
+ 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)'))]),
114571
+ h('div@others', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } }),
114572
114572
  ]),
114573
- h$1('div.bottom@bottom', { title: localize('diff.bottom', 'Click or drag to show more below'), role: 'button' }),
114573
+ h('div.bottom@bottom', { title: localize('diff.bottom', 'Click or drag to show more below'), role: 'button' }),
114574
114574
  ]);
114575
114575
  root.root.appendChild(this._nodes.root);
114576
114576
  const layoutInfo = observableFromEvent(this._editor.onDidLayoutChange, () => this._editor.getLayoutInfo());
@@ -114695,7 +114695,7 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
114695
114695
  for (let i = 0; i < items.length; i++) {
114696
114696
  const item = items[i];
114697
114697
  const icon = SymbolKinds.toIcon(item.kind);
114698
- const divItem = h$1('div.breadcrumb-item', {
114698
+ const divItem = h('div.breadcrumb-item', {
114699
114699
  style: { display: 'flex', alignItems: 'center' },
114700
114700
  }, [
114701
114701
  renderIcon(icon),
@@ -116112,7 +116112,7 @@ let OverviewRulerPart = OverviewRulerPart_1 = class OverviewRulerPart extends Di
116112
116112
  const viewportDomElement = createFastDomNode(document.createElement('div'));
116113
116113
  viewportDomElement.setClassName('diffViewport');
116114
116114
  viewportDomElement.setPosition('absolute');
116115
- const diffOverviewRoot = h$1('div.diffOverview', {
116115
+ const diffOverviewRoot = h('div.diffOverview', {
116116
116116
  style: { position: 'absolute', top: '0px', width: OverviewRulerPart_1.ENTIRE_DIFF_OVERVIEW_WIDTH + 'px' }
116117
116117
  }).root;
116118
116118
  this._register(appendRemoveOnDispose(diffOverviewRoot, viewportDomElement.domNode));
@@ -116592,11 +116592,11 @@ let DiffEditorWidget = class DiffEditorWidget extends DelegatingEditor {
116592
116592
  this._parentInstantiationService = _parentInstantiationService;
116593
116593
  this._audioCueService = _audioCueService;
116594
116594
  this._editorProgressService = _editorProgressService;
116595
- this.elements = h$1('div.monaco-diff-editor.side-by-side', { style: { position: 'relative', height: '100%' } }, [
116596
- h$1('div.noModificationsOverlay@overlay', { style: { position: 'absolute', height: '100%', visibility: 'hidden', } }, [$$d('span', {}, 'No Changes')]),
116597
- h$1('div.editor.original@original', { style: { position: 'absolute', height: '100%' } }),
116598
- h$1('div.editor.modified@modified', { style: { position: 'absolute', height: '100%' } }),
116599
- h$1('div.accessibleDiffViewer@accessibleDiffViewer', { style: { position: 'absolute', height: '100%' } }),
116595
+ this.elements = h('div.monaco-diff-editor.side-by-side', { style: { position: 'relative', height: '100%' } }, [
116596
+ h('div.noModificationsOverlay@overlay', { style: { position: 'absolute', height: '100%', visibility: 'hidden', } }, [$$d('span', {}, 'No Changes')]),
116597
+ h('div.editor.original@original', { style: { position: 'absolute', height: '100%' } }),
116598
+ h('div.editor.modified@modified', { style: { position: 'absolute', height: '100%' } }),
116599
+ h('div.accessibleDiffViewer@accessibleDiffViewer', { style: { position: 'absolute', height: '100%' } }),
116600
116600
  ]);
116601
116601
  this._diffModel = observableValue(this, undefined);
116602
116602
  this._shouldDisposeDiffModel = false;
@@ -117730,8 +117730,8 @@ let DiffEditorItemTemplate = class DiffEditorItemTemplate extends Disposable {
117730
117730
  return { maxScroll: scroll2, width: this._originalWidth.read(reader) };
117731
117731
  }
117732
117732
  });
117733
- this._elements = h$1('div.multiDiffEntry', [
117734
- h$1('div.content', {
117733
+ this._elements = h('div.multiDiffEntry', [
117734
+ h('div.content', {
117735
117735
  style: {
117736
117736
  display: 'flex',
117737
117737
  flexDirection: 'column',
@@ -117739,19 +117739,19 @@ let DiffEditorItemTemplate = class DiffEditorItemTemplate extends Disposable {
117739
117739
  overflow: 'hidden',
117740
117740
  }
117741
117741
  }, [
117742
- h$1('div.header@header', [
117743
- h$1('div.collapse-button@collapseButton'),
117744
- h$1('div.title.show-file-icons@title', []),
117745
- h$1('div.actions@actions'),
117742
+ h('div.header@header', [
117743
+ h('div.collapse-button@collapseButton'),
117744
+ h('div.title.show-file-icons@title', []),
117745
+ h('div.actions@actions'),
117746
117746
  ]),
117747
- h$1('div.editorParent', {
117747
+ h('div.editorParent', {
117748
117748
  style: {
117749
117749
  flex: '1',
117750
117750
  display: 'flex',
117751
117751
  flexDirection: 'column',
117752
117752
  }
117753
117753
  }, [
117754
- h$1('div.editorContainer@editor', { style: { flex: '1' } }),
117754
+ h('div.editorContainer@editor', { style: { flex: '1' } }),
117755
117755
  ])
117756
117756
  ])
117757
117757
  ]);
@@ -117952,17 +117952,17 @@ let MultiDiffEditorWidgetImpl = class MultiDiffEditorWidgetImpl extends Disposab
117952
117952
  this._workbenchUIElementFactory = _workbenchUIElementFactory;
117953
117953
  this._parentContextKeyService = _parentContextKeyService;
117954
117954
  this._parentInstantiationService = _parentInstantiationService;
117955
- this._elements = h$1('div', {
117955
+ this._elements = h('div', {
117956
117956
  style: {
117957
117957
  overflowY: 'hidden',
117958
117958
  }
117959
117959
  }, [
117960
- h$1('div@content', {
117960
+ h('div@content', {
117961
117961
  style: {
117962
117962
  overflow: 'hidden',
117963
117963
  }
117964
117964
  }),
117965
- h$1('div.monaco-editor@overflowWidgetsDomNode', {}),
117965
+ h('div.monaco-editor@overflowWidgetsDomNode', {}),
117966
117966
  ]);
117967
117967
  this._sizeObserver = this._register(new ObservableElementSizeObserver(this._element, undefined));
117968
117968
  this._objectPool = this._register(new ObjectPool((data) => {
@@ -120522,7 +120522,7 @@ registerLanguage({
120522
120522
  mimetypes: ["text/css"],
120523
120523
  loader: () => {
120524
120524
  {
120525
- return import('./css-2e473dc7.js');
120525
+ return import('./css-5c8d2920.js');
120526
120526
  }
120527
120527
  }
120528
120528
  });
@@ -120540,7 +120540,7 @@ registerLanguage({
120540
120540
  mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
120541
120541
  loader: () => {
120542
120542
  {
120543
- return import('./html-8b3066e6.js');
120543
+ return import('./html-e888de7a.js');
120544
120544
  }
120545
120545
  }
120546
120546
  });
@@ -120560,7 +120560,7 @@ registerLanguage({
120560
120560
  mimetypes: ["text/javascript"],
120561
120561
  loader: () => {
120562
120562
  {
120563
- return import('./javascript-00a0be9d.js');
120563
+ return import('./javascript-b5c99634.js');
120564
120564
  }
120565
120565
  }
120566
120566
  });
@@ -120578,7 +120578,7 @@ registerLanguage({
120578
120578
  mimetypes: ["text/typescript"],
120579
120579
  loader: () => {
120580
120580
  {
120581
- return import('./typescript-f47937d0.js');
120581
+ return import('./typescript-9bbf3eca.js');
120582
120582
  }
120583
120583
  }
120584
120584
  });
@@ -120699,7 +120699,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
120699
120699
  monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
120700
120700
  function getMode$3() {
120701
120701
  {
120702
- return import('./cssMode-17d87e3a.js');
120702
+ return import('./cssMode-8fa2f14c.js');
120703
120703
  }
120704
120704
  }
120705
120705
  monaco_editor_core_exports$3.languages.onLanguage("less", () => {
@@ -120824,7 +120824,7 @@ monaco_editor_core_exports$2.languages.html = {
120824
120824
  };
120825
120825
  function getMode$2() {
120826
120826
  {
120827
- return import('./htmlMode-ad2b857d.js');
120827
+ return import('./htmlMode-774cf48f.js');
120828
120828
  }
120829
120829
  }
120830
120830
  function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
@@ -120926,7 +120926,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
120926
120926
  monaco_editor_core_exports$1.languages.json = { jsonDefaults };
120927
120927
  function getMode$1() {
120928
120928
  {
120929
- return import('./jsonMode-b6f2e0b4.js');
120929
+ return import('./jsonMode-48b7186d.js');
120930
120930
  }
120931
120931
  }
120932
120932
  monaco_editor_core_exports$1.languages.register({
@@ -121195,7 +121195,7 @@ monaco_editor_core_exports.languages.typescript = {
121195
121195
  };
121196
121196
  function getMode() {
121197
121197
  {
121198
- return import('./tsMode-84b08f5b.js');
121198
+ return import('./tsMode-a9ff7531.js');
121199
121199
  }
121200
121200
  }
121201
121201
  monaco_editor_core_exports.languages.onLanguage("typescript", () => {
@@ -132853,8 +132853,8 @@ let InlineSuggestionHintsContentWidget = InlineSuggestionHintsContentWidget_1 =
132853
132853
  this.id = `InlineSuggestionHintsContentWidget${InlineSuggestionHintsContentWidget_1.id++}`;
132854
132854
  this.allowEditorOverflow = true;
132855
132855
  this.suppressMouseDown = false;
132856
- this.nodes = h$1('div.inlineSuggestionsHints', { className: this.withBorder ? '.withBorder' : '' }, [
132857
- h$1('div@toolBar'),
132856
+ this.nodes = h('div.inlineSuggestionsHints', { className: this.withBorder ? '.withBorder' : '' }, [
132857
+ h('div@toolBar'),
132858
132858
  ]);
132859
132859
  this.previousAction = this.createCommandAction(showPreviousInlineSuggestionActionId, localize('previous', 'Previous'), ThemeIcon.asClassName(inlineSuggestionHintsPreviousIcon));
132860
132860
  this.availableSuggestionCountAction = new Action('inlineSuggestionHints.availableSuggestionCount', '', undefined, false);
@@ -132990,7 +132990,7 @@ class StatusBarViewItem$1 extends MenuEntryActionViewItem {
132990
132990
  return super.updateLabel();
132991
132991
  }
132992
132992
  if (this.label) {
132993
- const div = h$1('div.keybinding').root;
132993
+ const div = h('div.keybinding').root;
132994
132994
  const k = new KeybindingLabel(div, OS, { disableTitle: true, ...unthemedKeybindingLabelOptions });
132995
132995
  k.set(kb);
132996
132996
  this.label.textContent = this._action.label;
@@ -168925,68 +168925,64 @@ var main = createCommonjsModule(function (module, exports) {
168925
168925
  });
168926
168926
  });
168927
168927
 
168928
- const isAMD = "define" in window && typeof window.define === "function" && "amd" in window.define;
168928
+ // src/index.ts
168929
+ var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis;
168929
168930
  function isDefaultModule(module) {
168930
- return module.default !== undefined;
168931
- }
168932
- async function requireModule(modulePath) {
168933
- return await new Promise((resolve) => window.require([modulePath], (moduleDefault) => {
168934
- resolve(moduleDefault);
168935
- }));
168931
+ return module.default !== void 0;
168936
168932
  }
168937
168933
  async function importLayersFeatureLayer() {
168938
- if (isAMD) {
168939
- return await requireModule("esri/layers/FeatureLayer");
168940
- }
168941
- const module = await import('@arcgis/core/layers/FeatureLayer.js');
168942
- return isDefaultModule(module) ? module.default : module;
168934
+ if (isAMD) {
168935
+ return await window.$arcgis.import("esri/layers/FeatureLayer");
168936
+ }
168937
+ const module = await import('@arcgis/core/layers/FeatureLayer.js');
168938
+ return isDefaultModule(module) ? module.default : module;
168943
168939
  }
168944
168940
  async function importPortalPortalItem() {
168945
- if (isAMD) {
168946
- return await requireModule("esri/portal/PortalItem");
168947
- }
168948
- const module = await import('@arcgis/core/portal/PortalItem.js');
168949
- return isDefaultModule(module) ? module.default : module;
168941
+ if (isAMD) {
168942
+ return await window.$arcgis.import("esri/portal/PortalItem");
168943
+ }
168944
+ const module = await import('@arcgis/core/portal/PortalItem.js');
168945
+ return isDefaultModule(module) ? module.default : module;
168950
168946
  }
168951
168947
  async function newPortalPortalItem(properties) {
168952
- const ModConstructor = await importPortalPortalItem();
168953
- return new ModConstructor(properties);
168948
+ const ModConstructor = await importPortalPortalItem();
168949
+ return new ModConstructor(properties);
168954
168950
  }
168955
168951
  async function importWebMap() {
168956
- if (isAMD) {
168957
- return await requireModule("esri/WebMap");
168958
- }
168959
- const module = await import('@arcgis/core/WebMap.js');
168960
- return isDefaultModule(module) ? module.default : module;
168952
+ if (isAMD) {
168953
+ return await window.$arcgis.import("esri/WebMap");
168954
+ }
168955
+ const module = await import('@arcgis/core/WebMap.js');
168956
+ return isDefaultModule(module) ? module.default : module;
168961
168957
  }
168962
168958
  async function newWebMap(properties) {
168963
- const ModConstructor = await importWebMap();
168964
- return new ModConstructor(properties);
168959
+ const ModConstructor = await importWebMap();
168960
+ return new ModConstructor(properties);
168965
168961
  }
168966
168962
  async function importWebScene() {
168967
- if (isAMD) {
168968
- return await requireModule("esri/WebScene");
168969
- }
168970
- const module = await import('@arcgis/core/WebScene.js');
168971
- return isDefaultModule(module) ? module.default : module;
168963
+ if (isAMD) {
168964
+ return await window.$arcgis.import("esri/WebScene");
168965
+ }
168966
+ const module = await import('@arcgis/core/WebScene.js');
168967
+ return isDefaultModule(module) ? module.default : module;
168972
168968
  }
168973
168969
  async function newWebScene(properties) {
168974
- const ModConstructor = await importWebScene();
168975
- return new ModConstructor(properties);
168970
+ const ModConstructor = await importWebScene();
168971
+ return new ModConstructor(properties);
168976
168972
  }
168977
168973
  async function importArcade() {
168978
- if (isAMD) {
168979
- return await requireModule("esri/arcade");
168980
- }
168981
- const module = await import('@arcgis/core/arcade.js');
168982
- return isDefaultModule(module) ? module.default : module;
168974
+ if (isAMD) {
168975
+ return await window.$arcgis.import("esri/arcade");
168976
+ }
168977
+ const module = await import('@arcgis/core/arcade.js');
168978
+ return isDefaultModule(module) ? module.default : module;
168983
168979
  }
168984
168980
  async function importRequest() {
168985
- if (isAMD) {
168986
- return await requireModule("esri/request");
168987
- }
168988
- const module = await import('@arcgis/core/request.js');
168989
- return isDefaultModule(module) ? module.default : module;
168981
+ if (isAMD) {
168982
+ return await window.$arcgis.import("esri/request");
168983
+ }
168984
+ const module = await import('@arcgis/core/request.js');
168985
+ return isDefaultModule(module) ? module.default : module;
168990
168986
  }
168991
168987
 
168992
168988
  //#region core adapter fix
@@ -168997,20 +168993,6 @@ async function newFeatureLayer(definition) {
168997
168993
  }
168998
168994
  //#endregion
168999
168995
  //#region Type Guards
169000
- function isSupportedLayerInstance(item) {
169001
- return (!!item &&
169002
- typeof item === "object" &&
169003
- "declaredClass" in item &&
169004
- typeof item.declaredClass === "string" &&
169005
- item.declaredClass.startsWith("esri.layers."));
169006
- }
169007
- function isFeatureSetInstance(item) {
169008
- return (!!item &&
169009
- typeof item === "object" &&
169010
- "declaredClass" in item &&
169011
- typeof item.declaredClass === "string" &&
169012
- item.declaredClass === "esri.rest.support.FeatureSet");
169013
- }
169014
168996
  function isQueryableLayerInstance(item) {
169015
168997
  return (!!item &&
169016
168998
  typeof item === "object" &&
@@ -169060,10 +169042,10 @@ function isFeatureLayerItemDefinition(item) {
169060
169042
  return !!item && typeof item === "object" && "portalItem" in item && item.portalItem != null;
169061
169043
  }
169062
169044
  function isFieldsDefinition(item) {
169063
- return (!!item && typeof item === "object" && "fields" in item && Array.isArray(item.fields) && !("declaredClass" in item));
169045
+ return !!item && typeof item === "object" && "fields" in item && Array.isArray(item.fields);
169064
169046
  }
169065
169047
  function isUrlDefinition(item) {
169066
- return (!!item && typeof item === "object" && "url" in item && typeof item.url === "string" && !("declaredClass" in item));
169048
+ return !!item && typeof item === "object" && "url" in item && typeof item.url === "string";
169067
169049
  }
169068
169050
  function isSubtypeInstance(item) {
169069
169051
  return (!!item &&
@@ -169133,7 +169115,7 @@ async function supportedSourceFromDefinition(definition) {
169133
169115
  return null;
169134
169116
  }
169135
169117
  let source = null;
169136
- if (isSupportedLayerInstance(definition) || isFeatureSetInstance(definition) || isFieldsDefinition(definition)) {
169118
+ if (isFieldsDefinition(definition)) {
169137
169119
  source = definition;
169138
169120
  }
169139
169121
  else {
@@ -169150,30 +169132,404 @@ async function serviceMetaData(url) {
169150
169132
  const response = await request(url, { responseType: "json", query: { f: "json" } });
169151
169133
  const data = {
169152
169134
  layers: response.data?.layers ?? [],
169153
- tables: response.data?.tables ?? []
169135
+ tables: response.data?.tables ?? [],
169154
169136
  };
169155
169137
  const queryCapability = url.endsWith("MapServer/layers") ? "data" : "query";
169156
- const layers = filterFeatureLayerInfos(data.layers, queryCapability);
169157
- const tables = filterFeatureLayerInfos(data.tables, queryCapability);
169138
+ const layers = getSupportedLayerInfos(data.layers, queryCapability);
169139
+ const tables = getSupportedLayerInfos(data.tables, queryCapability);
169158
169140
  return { layers, tables };
169159
169141
  }
169160
- function filterFeatureLayerInfos(layers, queryCapability) {
169142
+ function getSupportedLayerInfos(layers, queryCapability) {
169161
169143
  return layers.filter((layer) => {
169162
- if (layer.type !== "Feature Layer" && layer.type !== "Table") {
169163
- return false;
169144
+ switch (layer.type) {
169145
+ case "Feature Layer":
169146
+ case "Oriented Imagery Layer":
169147
+ case "Table": {
169148
+ const capabilities = layer.capabilities
169149
+ ? layer.capabilities
169150
+ .toLowerCase()
169151
+ .split(",")
169152
+ .map((value) => value.trim())
169153
+ : [];
169154
+ return capabilities.includes(queryCapability);
169155
+ }
169156
+ default:
169157
+ return false;
169164
169158
  }
169165
- const capabilities = layer.capabilities
169166
- ? layer.capabilities
169167
- .toLowerCase()
169168
- .split(",")
169169
- .map((value) => value.trim())
169170
- : [];
169171
- return capabilities.includes(queryCapability);
169172
169159
  });
169173
169160
  }
169174
169161
  //#endregion
169175
169162
 
169176
- 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}}
169163
+ // src/array-utils.ts
169164
+
169165
+ // src/deferred.ts
169166
+ var Deferred = class {
169167
+ /**
169168
+ * Resolves the promise.
169169
+ * @param value The value to resolve the promise with.
169170
+ */
169171
+ resolve(_value) {
169172
+ }
169173
+ /**
169174
+ * Rejects the promise.
169175
+ */
169176
+ reject(_error) {
169177
+ }
169178
+ /**
169179
+ * Creates a new deferred promise.
169180
+ */
169181
+ constructor() {
169182
+ this.promise = new Promise((resolve, reject) => {
169183
+ this.resolve = resolve;
169184
+ this.reject = reject;
169185
+ });
169186
+ }
169187
+ };
169188
+
169189
+ // src/dom.ts
169190
+ function inTargetElement(element, targetElement) {
169191
+ let currentElement = element;
169192
+ while (currentElement) {
169193
+ if (currentElement === targetElement) {
169194
+ return true;
169195
+ }
169196
+ if (!currentElement.parentNode) {
169197
+ return false;
169198
+ }
169199
+ if (currentElement.parentNode instanceof ShadowRoot) {
169200
+ currentElement = currentElement.parentNode.host;
169201
+ } else {
169202
+ currentElement = currentElement.parentNode;
169203
+ }
169204
+ }
169205
+ return false;
169206
+ }
169207
+ function observeAncestorsMutation(element, attributeFilter, callback) {
169208
+ const { subscribe } = observe(attributeFilter);
169209
+ return subscribe((mutations) => {
169210
+ const matched = mutations.some((mutation) => inTargetElement(element, mutation.target));
169211
+ if (matched)
169212
+ callback();
169213
+ });
169214
+ }
169215
+ var observers = {};
169216
+ function observe(attributeFilter) {
169217
+ const attributes = attributeFilter.join(",");
169218
+ const previousObserver = observers[attributes];
169219
+ if (previousObserver !== void 0)
169220
+ return previousObserver;
169221
+ const subscribers = /* @__PURE__ */ new Set();
169222
+ const mutationObserver = new MutationObserver((mutations) => subscribers.forEach((callback) => callback(mutations)));
169223
+ mutationObserver.observe(document.documentElement, {
169224
+ attributes: true,
169225
+ attributeFilter,
169226
+ subtree: true
169227
+ });
169228
+ const observer = {
169229
+ subscribe(callback) {
169230
+ subscribers.add(callback);
169231
+ return {
169232
+ remove: () => {
169233
+ subscribers.delete(callback);
169234
+ if (subscribers.size === 0) {
169235
+ mutationObserver.disconnect();
169236
+ observers[attributes] = void 0;
169237
+ }
169238
+ }
169239
+ };
169240
+ }
169241
+ };
169242
+ observers[attributes] = observer;
169243
+ return observer;
169244
+ }
169245
+ function closestElement(base, selector) {
169246
+ let currentElement = base;
169247
+ while (currentElement) {
169248
+ const element = currentElement.closest(selector);
169249
+ if (element) {
169250
+ return element;
169251
+ }
169252
+ const rootElement = currentElement.getRootNode();
169253
+ if (rootElement === document) {
169254
+ return null;
169255
+ }
169256
+ currentElement = rootElement.host;
169257
+ }
169258
+ return null;
169259
+ }
169260
+ function getElementTheme(base) {
169261
+ const themeElt = closestElement(base, ":is(.calcite-mode-light, .calcite-mode-dark)");
169262
+ return themeElt && themeElt.classList.contains("calcite-mode-dark") ? "dark" : "light";
169263
+ }
169264
+ function getElementAttribute(el, prop, fallbackValue) {
169265
+ const closest = closestElement(el, `[${prop}]`);
169266
+ return closest?.getAttribute(prop) ?? fallbackValue;
169267
+ }
169268
+ function isElement(ref) {
169269
+ return ref.nodeType === Node.ELEMENT_NODE;
169270
+ }
169271
+ function isHTMLWithSetFocus(ref) {
169272
+ return "setFocus" in ref && typeof ref.setFocus === "function";
169273
+ }
169274
+ function setFocus(ref, selector = "") {
169275
+ if (!isElement(ref)) {
169276
+ return false;
169277
+ }
169278
+ if (ref.matches(selector)) {
169279
+ if (isHTMLWithSetFocus(ref)) {
169280
+ setTimeout(() => ref.setFocus(), 0);
169281
+ }
169282
+ return true;
169283
+ }
169284
+ for (const child of ref.children) {
169285
+ if (setFocus(child, selector)) {
169286
+ return true;
169287
+ }
169288
+ }
169289
+ const shadowRoot = ref.shadowRoot;
169290
+ if (shadowRoot) {
169291
+ for (const child of shadowRoot.children) {
169292
+ if (setFocus(child, selector)) {
169293
+ return true;
169294
+ }
169295
+ }
169296
+ }
169297
+ return false;
169298
+ }
169299
+ function setFocusOnElement(ref, selector) {
169300
+ if (!ref?.shadowRoot) {
169301
+ return;
169302
+ }
169303
+ if (ref.hasAttribute("hydrated") || ref.hasAttribute("calcite-hydrated")) {
169304
+ setFocus(ref, selector);
169305
+ return;
169306
+ }
169307
+ const mutationObserver = new MutationObserver(() => {
169308
+ mutationObserver.disconnect();
169309
+ setFocus(ref, selector);
169310
+ });
169311
+ mutationObserver.observe(ref, {
169312
+ attributes: true,
169313
+ attributeFilter: ["hydrated", "calcite-hydrated"]
169314
+ });
169315
+ }
169316
+
169317
+ // src/errors.ts
169318
+ function safeCall(callback, thisContext, ...rest) {
169319
+ try {
169320
+ return callback?.call(thisContext, ...rest);
169321
+ } catch (error) {
169322
+ console.error(error, callback);
169323
+ }
169324
+ return void 0;
169325
+ }
169326
+ async function safeAsyncCall(callback, thisContext, ...rest) {
169327
+ try {
169328
+ const result = callback?.call(thisContext, ...rest);
169329
+ return result instanceof Promise ? await result : result;
169330
+ } catch (error) {
169331
+ console.error(error, callback);
169332
+ }
169333
+ return void 0;
169334
+ }
169335
+
169336
+ // src/guid.ts
169337
+ function gen(count) {
169338
+ let out = "";
169339
+ for (let i = 0; i < count; i++) {
169340
+ out += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
169341
+ }
169342
+ return out;
169343
+ }
169344
+ function generateGuid() {
169345
+ return [gen(2), gen(1), gen(1), gen(1), gen(3)].join("-");
169346
+ }
169347
+ var camelToKebab = (string) => string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : "-"}${upper.toLowerCase()}`);
169348
+ var upperBeforeLower = /[A-Z]+(?![a-z])|[A-Z]/gu;
169349
+ var capitalize = (string) => string.charAt(0).toUpperCase() + string.slice(1);
169350
+ var camelToHuman = (string) => capitalize(string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : " "}${upper}`));
169351
+
169352
+ // src/intl.ts
169353
+ var supportedLocales = /* @__PURE__ */ new Set([
169354
+ "ar",
169355
+ "bg",
169356
+ "bs",
169357
+ "ca",
169358
+ "cs",
169359
+ "da",
169360
+ "de",
169361
+ "el",
169362
+ "en",
169363
+ "es",
169364
+ "et",
169365
+ "fi",
169366
+ "fr",
169367
+ "he",
169368
+ "hr",
169369
+ "hu",
169370
+ "id",
169371
+ "it",
169372
+ "ja",
169373
+ "ko",
169374
+ "lt",
169375
+ "lv",
169376
+ "nl",
169377
+ "nb",
169378
+ "pl",
169379
+ "pt-BR",
169380
+ "pt-PT",
169381
+ "ro",
169382
+ "ru",
169383
+ "sk",
169384
+ "sl",
169385
+ "sr",
169386
+ "sv",
169387
+ "th",
169388
+ "tr",
169389
+ "uk",
169390
+ "vi",
169391
+ "zh-CN",
169392
+ "zh-HK",
169393
+ "zh-TW"
169394
+ ]);
169395
+ var defaultLocale = "en";
169396
+ async function fetchT9NStringsBundle(locale, assetsPath, prefix = "") {
169397
+ const path = `${assetsPath}/${prefix}`;
169398
+ const filePath = `${path}${locale}.json`;
169399
+ t9nStringsCache[filePath] ?? (t9nStringsCache[filePath] = fetchBundle(locale, path));
169400
+ return await t9nStringsCache[filePath];
169401
+ }
169402
+ var t9nStringsCache = {};
169403
+ async function fetchBundle(locale, path) {
169404
+ const filePath = `${path}${locale}.json`;
169405
+ try {
169406
+ const response = await fetch(filePath);
169407
+ if (response.ok)
169408
+ return await response.json();
169409
+ } catch (error) {
169410
+ console.error(error);
169411
+ return fallbackBundle;
169412
+ }
169413
+ if (locale === defaultLocale)
169414
+ return fallbackBundle;
169415
+ return await fetchBundle(defaultLocale, path);
169416
+ }
169417
+ var fallbackBundle = new Proxy(
169418
+ {},
169419
+ {
169420
+ get: (_target, property) => camelToHuman(property.toString())
169421
+ }
169422
+ );
169423
+ function getElementLocales(element) {
169424
+ const lang = getElementAttribute(element, "lang", navigator.language || defaultLocale);
169425
+ if (supportedLocales.has(lang)) {
169426
+ return { lang, t9nLocale: lang };
169427
+ }
169428
+ const rootCode = lang.slice(0, 2);
169429
+ return { lang, t9nLocale: supportedLocales.has(rootCode) ? rootCode : defaultLocale };
169430
+ }
169431
+ function startLocaleObserver(element, assetsPath, onUpdated, assetName) {
169432
+ let result = void 0;
169433
+ const callback = () => void updateComponentLocateState(element, assetsPath, assetName).then((newResult) => {
169434
+ if (result?.lang !== newResult.lang || result.t9nLocale !== newResult.t9nLocale || result.t9nStrings !== newResult.t9nStrings)
169435
+ onUpdated(newResult);
169436
+ result = newResult;
169437
+ }).catch(console.error);
169438
+ callback();
169439
+ return observeAncestorsMutation(element, ["lang"], callback);
169440
+ }
169441
+ async function updateComponentLocateState(element, assetsPath, assetName = element.tagName.toLowerCase().replace("arcgis-", "")) {
169442
+ const { lang, t9nLocale } = getElementLocales(element);
169443
+ const t9nAssetsPath = `${assetsPath}/${assetName}/t9n`;
169444
+ const prefix = `${assetName}.t9n.`;
169445
+ const t9nStrings = await fetchT9NStringsBundle(t9nLocale, t9nAssetsPath, prefix);
169446
+ return { lang, t9nLocale, t9nStrings };
169447
+ }
169448
+
169449
+ // src/strings.ts
169450
+ var doubleQuote = '"';
169451
+ var singleQuote = "'";
169452
+ function repeatString(value, n) {
169453
+ return new Array(n + 1).join(value);
169454
+ }
169455
+ function quoteString(value) {
169456
+ let quote = doubleQuote;
169457
+ let alternateQuote = singleQuote;
169458
+ const avoidEscape = value.includes(quote) && !value.includes(alternateQuote);
169459
+ if (avoidEscape) {
169460
+ alternateQuote = doubleQuote;
169461
+ quote = singleQuote;
169462
+ }
169463
+ const alternateEscape = new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${alternateQuote})+)`, "gu");
169464
+ value = value.replace(
169465
+ alternateEscape,
169466
+ (_, boundaryChar, leadingEscapedSlashes, escapedQuoteChars) => (
169467
+ // We divide the escapedQuoteChars by 2 since there are 2 characters in each escaped part ('\\"'.length === 2)
169468
+ boundaryChar + leadingEscapedSlashes + repeatString(alternateQuote, escapedQuoteChars.length / 2)
169469
+ )
169470
+ );
169471
+ const quoteEscape = new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${quote}+)`, "gu");
169472
+ value = value.replace(
169473
+ quoteEscape,
169474
+ (_, boundaryChar, leadingEscapedSlashes, quoteChars) => boundaryChar + leadingEscapedSlashes + repeatString(`\\${quote}`, quoteChars.length)
169475
+ );
169476
+ return quote + value + quote;
169477
+ }
169478
+ function createFilterExpression(filterWord) {
169479
+ const sanitizedWord = filterWord ? filterWord.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu, "\\$&") : "^.*$";
169480
+ return new RegExp(sanitizedWord, "i");
169481
+ }
169482
+ function setValuesInString(message, values = {}) {
169483
+ return (message ?? "").replace(/\{(?<valueName>.*?)\}/gu, (match, valueName) => values[valueName] ?? match);
169484
+ }
169485
+ function addLTRMark(value) {
169486
+ return `\u200E${value ?? ""}\u200E`;
169487
+ }
169488
+
169489
+ // src/type-guards.ts
169490
+ function isNotNull(item) {
169491
+ return item !== null;
169492
+ }
169493
+ function isNotUndefined(item) {
169494
+ return item !== void 0;
169495
+ }
169496
+
169497
+ // src/ui.ts
169498
+ function debounce(func, waitFor = 100) {
169499
+ let timeout;
169500
+ return (...args) => {
169501
+ const later = () => {
169502
+ clearTimeout(timeout);
169503
+ func(...args);
169504
+ };
169505
+ clearTimeout(timeout);
169506
+ timeout = setTimeout(later, waitFor);
169507
+ };
169508
+ }
169509
+
169510
+ // src/url.ts
169511
+ function hasSameOrigin(url1, url2, ignoreProtocol = false) {
169512
+ if (!url1 || !url2) {
169513
+ return false;
169514
+ }
169515
+ const url1Obj = new URL(url1);
169516
+ const url2Obj = new URL(url2);
169517
+ if (!ignoreProtocol && url1Obj.protocol !== url2Obj.protocol) {
169518
+ return false;
169519
+ }
169520
+ if (url1Obj.host == null || url2Obj.host == null) {
169521
+ return false;
169522
+ }
169523
+ return url1Obj.host.toLowerCase() === url2Obj.host.toLowerCase() && url1Obj.port === url2Obj.port;
169524
+ }
169525
+ function isURL(url) {
169526
+ try {
169527
+ new URL(url);
169528
+ return true;
169529
+ } catch (e) {
169530
+ return false;
169531
+ }
169532
+ }
169177
169533
 
169178
169534
  /**
169179
169535
  * Filters a collection of items by the given keys and filter word.
@@ -169186,7 +169542,7 @@ function filterCollection(collection, keys, filterWord, beforeFilteringFn) {
169186
169542
  if (!_keys.length) {
169187
169543
  return [];
169188
169544
  }
169189
- const filterExpression = K(filterWord);
169545
+ const filterExpression = createFilterExpression(filterWord);
169190
169546
  return collection.filter((item) => {
169191
169547
  if (beforeFilteringFn) {
169192
169548
  const res = beforeFilteringFn(item);
@@ -169386,8 +169742,8 @@ function variableToLSVariable(editorVariable, kind) {
169386
169742
  insertTextMode: main.InsertTextMode.asIs,
169387
169743
  insertTextFormat: main.InsertTextFormat.PlainText,
169388
169744
  kind,
169389
- documentation: { kind: "markdown", value: description }
169390
- }
169745
+ documentation: { kind: "markdown", value: description },
169746
+ },
169391
169747
  };
169392
169748
  }
169393
169749
  async function featureToLSFeature(editorFeature, kind) {
@@ -169401,14 +169757,14 @@ async function featureToLSFeature(editorFeature, kind) {
169401
169757
  insertText: name,
169402
169758
  insertTextMode: main.InsertTextMode.asIs,
169403
169759
  insertTextFormat: main.InsertTextFormat.PlainText,
169404
- kind
169760
+ kind,
169405
169761
  };
169406
169762
  const result = {
169407
169763
  name,
169408
169764
  description,
169409
169765
  type: "dictionary",
169410
169766
  properties: [],
169411
- completion: resultCompletion
169767
+ completion: resultCompletion,
169412
169768
  };
169413
169769
  // No source definition, then it will be a feature without any known fields
169414
169770
  if (!source) {
@@ -169446,8 +169802,8 @@ async function featureToLSFeature(editorFeature, kind) {
169446
169802
  insertTextMode: main.InsertTextMode.asIs,
169447
169803
  insertTextFormat: main.InsertTextFormat.PlainText,
169448
169804
  kind: main.CompletionItemKind.Field,
169449
- documentation: { kind: "markdown", value: fieldCompletionDescription }
169450
- }
169805
+ documentation: { kind: "markdown", value: fieldCompletionDescription },
169806
+ },
169451
169807
  });
169452
169808
  if (!field.alias || field.alias.toLowerCase() === field.name.toLowerCase()) {
169453
169809
  return;
@@ -169468,8 +169824,8 @@ async function featureToLSFeature(editorFeature, kind) {
169468
169824
  insertTextMode: main.InsertTextMode.asIs,
169469
169825
  insertTextFormat: main.InsertTextFormat.PlainText,
169470
169826
  kind: main.CompletionItemKind.Field,
169471
- documentation: { kind: "markdown", value: aliasCompletionDescription }
169472
- }
169827
+ documentation: { kind: "markdown", value: aliasCompletionDescription },
169828
+ },
169473
169829
  });
169474
169830
  });
169475
169831
  result.properties = [...fieldProfileValues, ...aliasProfileValues];
@@ -169502,8 +169858,8 @@ async function dictionaryToLSDictionary(editorDictionary, kind) {
169502
169858
  insertTextMode: main.InsertTextMode.asIs,
169503
169859
  insertTextFormat: main.InsertTextFormat.PlainText,
169504
169860
  kind,
169505
- documentation: { kind: "markdown", value: completionDescription }
169506
- }
169861
+ documentation: { kind: "markdown", value: completionDescription },
169862
+ },
169507
169863
  };
169508
169864
  }
169509
169865
  /**
@@ -169530,9 +169886,9 @@ class ProfileItemBase {
169530
169886
  // If the component is under RTL, the string is messed up.
169531
169887
  // It is converted from $feature to feature$, This is not acceptable since the label
169532
169888
  // represents a variable name. We are adding in front of the $ sign a right to left mark.
169533
- return G(this._label);
169889
+ return addLTRMark(this._label);
169534
169890
  }
169535
- return Z(this._profile?.intlStrings[this._label.code], this._label.formatValues);
169891
+ return setValuesInString(this._profile?.intlStrings[this._label.code], this._label.formatValues);
169536
169892
  }
169537
169893
  /**
169538
169894
  * Returns the description string.
@@ -169544,7 +169900,7 @@ class ProfileItemBase {
169544
169900
  if (typeof this.description === "string") {
169545
169901
  return this.description;
169546
169902
  }
169547
- return Z(this._profile?.intlStrings[this.description.code], this.description.formatValues);
169903
+ return setValuesInString(this._profile?.intlStrings[this.description.code], this.description.formatValues);
169548
169904
  }
169549
169905
  /**
169550
169906
  * Returns true if the item pass the filter test
@@ -169721,28 +170077,28 @@ class DictionaryVariable extends CollectionBasedVariable {
169721
170077
  return new FeatureVariable(this, { profile: this._profile, declaration, label: snippet, snippet });
169722
170078
  case "featureSet":
169723
170079
  return new FeatureSetVariable(this, { profile: this._profile, declaration, label: snippet, snippet }, [
169724
- new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })
170080
+ new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet }),
169725
170081
  ]);
169726
170082
  case "featureSetCollection":
169727
170083
  return new FeatureSetCollectionVariable(this, {
169728
170084
  profile: this._profile,
169729
170085
  declaration,
169730
170086
  label: snippet,
169731
- snippet
170087
+ snippet,
169732
170088
  });
169733
170089
  case "dictionary":
169734
170090
  return new DictionaryVariable(this, {
169735
170091
  profile: this._profile,
169736
170092
  declaration,
169737
170093
  label: snippet,
169738
- snippet
170094
+ snippet,
169739
170095
  });
169740
170096
  case "array":
169741
170097
  return new ArrayVariable({
169742
170098
  profile: this._profile,
169743
170099
  declaration,
169744
170100
  label: snippet,
169745
- snippet
170101
+ snippet,
169746
170102
  });
169747
170103
  default:
169748
170104
  console.error("Editor profile: Invalid profile variable", declaration);
@@ -169754,7 +170110,7 @@ class DictionaryVariable extends CollectionBasedVariable {
169754
170110
  type: this.type,
169755
170111
  name: "",
169756
170112
  ...this.declaration,
169757
- properties: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition())
170113
+ properties: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition()),
169758
170114
  };
169759
170115
  }
169760
170116
  }
@@ -169785,7 +170141,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169785
170141
  return this._profile?.intlStrings.layer ?? "layer";
169786
170142
  }
169787
170143
  async loadSource() {
169788
- if (ee(this._loadPromise) && te(this._loadPromise)) {
170144
+ if (isNotNull(this._loadPromise) && isNotUndefined(this._loadPromise)) {
169789
170145
  return await this._loadPromise;
169790
170146
  }
169791
170147
  this._loadPromise = this._loadSource();
@@ -169820,7 +170176,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169820
170176
  description: fieldAlias(field),
169821
170177
  snippet: valueSnippet,
169822
170178
  icon: fieldTypeToIconName(field),
169823
- filterDescription: true
170179
+ filterDescription: true,
169824
170180
  });
169825
170181
  }
169826
170182
  _getDomainDictionary(field) {
@@ -169913,7 +170269,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169913
170269
  return null;
169914
170270
  }
169915
170271
  const domainValuesGroup = this._getCodedValueDomainGroup(fieldDomain, {
169916
- code: "domainvalues"
170272
+ code: "domainvalues",
169917
170273
  });
169918
170274
  const domainDictionary = this._createDomainDictionary(field);
169919
170275
  domainDictionary.variables.push(domainValuesGroup);
@@ -169931,7 +170287,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169931
170287
  profile: this._profile,
169932
170288
  label: `${label}`,
169933
170289
  description: t.name,
169934
- snippet: `"${label}"`
170290
+ snippet: `"${label}"`,
169935
170291
  });
169936
170292
  }) ?? [];
169937
170293
  return new GroupOfVariables(this._profile, { code: "subtypes" }, values);
@@ -169942,7 +170298,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169942
170298
  label: `${v.code}`,
169943
170299
  description: v.name,
169944
170300
  snippet: `"${v.code}"`,
169945
- filterDescription: true
170301
+ filterDescription: true,
169946
170302
  }));
169947
170303
  return new GroupOfVariables(this._profile, label, values);
169948
170304
  }
@@ -169968,8 +170324,8 @@ class SourceBasedVariable extends CollectionBasedVariable {
169968
170324
  code: "domainvaluesfortypeformat",
169969
170325
  formatValues: {
169970
170326
  fieldName: alias,
169971
- typeName: type.name
169972
- }
170327
+ typeName: type.name,
170328
+ },
169973
170329
  });
169974
170330
  const id = isSubtypeInstance(type) ? type.code : type.id;
169975
170331
  const label = `${id}`;
@@ -169979,7 +170335,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169979
170335
  label,
169980
170336
  snippet,
169981
170337
  description: type.name,
169982
- declaration: { name: alias }
170338
+ declaration: { name: alias },
169983
170339
  });
169984
170340
  subtypeDictionary.variables = [domainValuesGroup];
169985
170341
  variables.push(subtypeDictionary);
@@ -170001,7 +170357,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
170001
170357
  description: alias,
170002
170358
  snippet: valueSnippet,
170003
170359
  icon: "form-dropdown",
170004
- declaration: { name: field.name }
170360
+ declaration: { name: field.name },
170005
170361
  });
170006
170362
  // Add the header group
170007
170363
  const headerGroup = new GroupOfVariables(this._profile, alias, [
@@ -170009,8 +170365,8 @@ class SourceBasedVariable extends CollectionBasedVariable {
170009
170365
  profile: this._profile,
170010
170366
  label: valueSnippet,
170011
170367
  description: "",
170012
- snippet: valueSnippet
170013
- })
170368
+ snippet: valueSnippet,
170369
+ }),
170014
170370
  ]);
170015
170371
  domainDictionary.variables = [headerGroup];
170016
170372
  // Add the SubtypeName or DomainName snippet if available
@@ -170020,7 +170376,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
170020
170376
  profile: this._profile,
170021
170377
  label: subtypeOrDomainNameSnippet,
170022
170378
  description: "",
170023
- snippet: subtypeOrDomainNameSnippet
170379
+ snippet: subtypeOrDomainNameSnippet,
170024
170380
  }));
170025
170381
  }
170026
170382
  return domainDictionary;
@@ -170050,10 +170406,10 @@ class SourceBasedVariable extends CollectionBasedVariable {
170050
170406
  declaration: { definition: relatedLayer },
170051
170407
  label: relatedLayer.title,
170052
170408
  description: "",
170053
- nonInteractive: true
170409
+ nonInteractive: true,
170054
170410
  }, [new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })], { exposeRelationships: true, sourceTableId: source.layerId });
170055
170411
  }));
170056
- relationshipsGroup.variables = relationshipItems.filter(ee);
170412
+ relationshipsGroup.variables = relationshipItems.filter(isNotNull);
170057
170413
  if (!relationshipsGroup.variables.length) {
170058
170414
  return null;
170059
170415
  }
@@ -170066,8 +170422,8 @@ class FeatureVariable extends SourceBasedVariable {
170066
170422
  this.type = "feature";
170067
170423
  }
170068
170424
  get title() {
170069
- if (isSupportedLayerInstance(this._source)) {
170070
- return this._source.title;
170425
+ if (isTitleCapableSource(this._source)) {
170426
+ return this._source.title ?? "";
170071
170427
  }
170072
170428
  return { code: "feature" };
170073
170429
  }
@@ -170081,14 +170437,14 @@ class FeatureVariable extends SourceBasedVariable {
170081
170437
  throw new Error("Invalid definition");
170082
170438
  }
170083
170439
  // The title group and snippet
170084
- const title = isSupportedLayerInstance(this._source) ? this._source.title : "";
170440
+ const title = isTitleCapableSource(this._source) ? this._source.title ?? "" : "";
170085
170441
  this.variables.push(new GroupOfVariables(this._profile, title, [
170086
170442
  new ValueVariable({
170087
170443
  profile: this._profile,
170088
170444
  label: this.snippet,
170089
170445
  description: "",
170090
- snippet: this.snippet
170091
- })
170446
+ snippet: this.snippet,
170447
+ }),
170092
170448
  ]));
170093
170449
  // The collection of feature attribute values
170094
170450
  const valuesGroup = new GroupOfVariables(this._profile, { code: "values" });
@@ -170103,7 +170459,7 @@ class FeatureVariable extends SourceBasedVariable {
170103
170459
  description: "Geometry",
170104
170460
  snippet,
170105
170461
  icon: "shapes",
170106
- filterDescription: true
170462
+ filterDescription: true,
170107
170463
  });
170108
170464
  valuesGroup.variables.push(geometryProperty);
170109
170465
  }
@@ -170116,8 +170472,8 @@ class FeatureVariable extends SourceBasedVariable {
170116
170472
  this.variables.push(relationshipsGroup);
170117
170473
  }
170118
170474
  }
170119
- catch (e) {
170120
- console.error("Loading issue", e, this);
170475
+ catch (error) {
170476
+ console.error("Error with definition", error, this._definition);
170121
170477
  this._source = null;
170122
170478
  }
170123
170479
  finally {
@@ -170139,8 +170495,8 @@ class FeatureSetVariable extends SourceBasedVariable {
170139
170495
  this.type = "featureSet";
170140
170496
  }
170141
170497
  get title() {
170142
- if (isSupportedLayerInstance(this._source)) {
170143
- return this._source.title;
170498
+ if (isTitleCapableSource(this._source)) {
170499
+ return this._source.title ?? "";
170144
170500
  }
170145
170501
  return { code: "featureset" };
170146
170502
  }
@@ -170167,8 +170523,8 @@ class FeatureSetVariable extends SourceBasedVariable {
170167
170523
  this.variables.push(relationshipsGroup);
170168
170524
  }
170169
170525
  }
170170
- catch (e) {
170171
- console.error("Loading issue", e, this);
170526
+ catch (error) {
170527
+ console.error("Error with definition", error, this._definition);
170172
170528
  this._source = null;
170173
170529
  }
170174
170530
  finally {
@@ -170217,7 +170573,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170217
170573
  return this._profile?.intlStrings.map ?? "map";
170218
170574
  }
170219
170575
  async loadSource() {
170220
- if (ee(this._loadPromise) && te(this._loadPromise)) {
170576
+ if (isNotNull(this._loadPromise) && isNotUndefined(this._loadPromise)) {
170221
170577
  return await this._loadPromise;
170222
170578
  }
170223
170579
  this._loadPromise = this._loadSource();
@@ -170238,24 +170594,24 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170238
170594
  : {
170239
170595
  code: "webmapformat",
170240
170596
  formatValues: {
170241
- webMapTitle: getMapPortalItem(this._featureSetCollections.source)?.title || "Untitled map"
170242
- }
170597
+ webMapTitle: getMapPortalItem(this._featureSetCollections.source)?.title || "Untitled map",
170598
+ },
170243
170599
  };
170244
170600
  const headerGroup = new GroupOfVariables(this._profile, groupLabel, [
170245
170601
  new ValueVariable({
170246
170602
  profile: this._profile,
170247
170603
  label: this.snippet,
170248
170604
  description: "",
170249
- snippet: this.snippet
170250
- })
170605
+ snippet: this.snippet,
170606
+ }),
170251
170607
  ]);
170252
170608
  // Creates the groups for the layer and tables
170253
170609
  const layersGroup = new GroupOfVariables(this._profile, { code: "layers" }, this._featureSetCollections.layers);
170254
170610
  const tablesGroup = new GroupOfVariables(this._profile, { code: "tables" }, this._featureSetCollections.tables);
170255
170611
  this.variables.push(headerGroup, layersGroup, tablesGroup);
170256
170612
  }
170257
- catch (e) {
170258
- console.error("Loading issue", e, this);
170613
+ catch (error) {
170614
+ console.error("Error with definition", error, this._definition);
170259
170615
  this._featureSetCollections = null;
170260
170616
  }
170261
170617
  finally {
@@ -170270,7 +170626,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170270
170626
  if (isMapInstance(this._definition)) {
170271
170627
  return await this._featureSetCollectionFromMap(this._definition);
170272
170628
  }
170273
- if (isSupportedLayerInstance(this._definition)) {
170629
+ if (isUrlDefinition(this._definition)) {
170274
170630
  return await this._featureSetCollectionFromUrl(this._definition.url);
170275
170631
  }
170276
170632
  if (isPortalItemDefinition(this._definition)) {
@@ -170278,10 +170634,6 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170278
170634
  // or Feature Service
170279
170635
  return await this._featureSetCollectionFromPortalItem(this._definition.portalItem);
170280
170636
  }
170281
- if (isUrlDefinition(this._definition)) {
170282
- // Assume that the url is pointing to a feature server
170283
- return await this._featureSetCollectionFromUrl(this._definition.url);
170284
- }
170285
170637
  return null;
170286
170638
  }
170287
170639
  async _featureSetCollectionFromMap(map) {
@@ -170294,7 +170646,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170294
170646
  return {
170295
170647
  layers: this._convertWebMapLayersToVariables(map.layers),
170296
170648
  tables: this._convertWebMapLayersToVariables(map.tables, true),
170297
- source: map
170649
+ source: map,
170298
170650
  };
170299
170651
  }
170300
170652
  async _featureSetCollectionFromPortalItem(definition) {
@@ -170362,7 +170714,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170362
170714
  declaration: { name: featureLayer.title, definition: featureLayer },
170363
170715
  label: featureLayer.title,
170364
170716
  description: "",
170365
- nonInteractive: true
170717
+ nonInteractive: true,
170366
170718
  }, this._makeFeatureSetSnippets(featureLayer, isFromWebMap));
170367
170719
  }
170368
170720
  _makeFeatureSetSnippets(featureLayer, isFromWebMap = false) {
@@ -170374,7 +170726,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170374
170726
  const snippetByName = `FeatureSetByName(${this.snippet}, "${featureLayer.title}")`;
170375
170727
  return [
170376
170728
  new ValueVariable({ profile: this._profile, label: snippetById, description: "", snippet: snippetById }),
170377
- new ValueVariable({ profile: this._profile, label: snippetByName, description: "", snippet: snippetByName })
170729
+ new ValueVariable({ profile: this._profile, label: snippetByName, description: "", snippet: snippetByName }),
170378
170730
  ];
170379
170731
  }
170380
170732
  else {
@@ -170399,7 +170751,7 @@ class EditorProfile extends DictionaryVariable {
170399
170751
  // Delay the load of the variable declarations so we have a `this`
170400
170752
  super(undefined, {
170401
170753
  profile: null,
170402
- declaration: { properties: [] }
170754
+ declaration: { properties: [] },
170403
170755
  });
170404
170756
  this.definition = definition;
170405
170757
  this.intlStrings = intlStrings;
@@ -170431,28 +170783,20 @@ class EditorProfile extends DictionaryVariable {
170431
170783
  toEditorProfileDefinition() {
170432
170784
  return {
170433
170785
  ...this.definition,
170434
- variables: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition())
170786
+ variables: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition()),
170435
170787
  };
170436
170788
  }
170437
170789
  }
170438
170790
  //#endregion
170439
170791
 
170440
170792
  function isFeatureDefinition(item) {
170441
- return (isSupportedLayerInstance(item) ||
170442
- isFeatureSetInstance(item) ||
170443
- isUrlDefinition(item) ||
170444
- isFieldsDefinition(item) ||
170445
- isFeatureLayerItemDefinition(item));
170793
+ return isUrlDefinition(item) || isFieldsDefinition(item) || isFeatureLayerItemDefinition(item);
170446
170794
  }
170447
170795
  function isFeatureSetDefinition(item) {
170448
- return (isQueryableLayerInstance(item) ||
170449
- isFeatureSetInstance(item) ||
170450
- isUrlDefinition(item) ||
170451
- isFieldsDefinition(item) ||
170452
- isFeatureLayerItemDefinition(item));
170796
+ return isUrlDefinition(item) || isFieldsDefinition(item) || isFeatureLayerItemDefinition(item);
170453
170797
  }
170454
170798
  function isFeatureSetCollectionDefinition(item) {
170455
- return isPortalItemDefinition(item) || isMapInstance(item) || isFeatureSetDefinition(item);
170799
+ return isPortalItemDefinition(item) || isMapInstance(item) || isUrlDefinition(item);
170456
170800
  }
170457
170801
  /**
170458
170802
  * Get a PredefinedProfile for a locale. If not already loaded then fetch it.
@@ -170464,7 +170808,7 @@ async function getSdkPredefinedProfiles(locale = "en") {
170464
170808
  if (profiles) {
170465
170809
  return profiles;
170466
170810
  }
170467
- if (!E.has(locale)) {
170811
+ if (!supportedLocales.has(locale)) {
170468
170812
  return await getSdkPredefinedProfiles("en");
170469
170813
  }
170470
170814
  try {
@@ -170510,13 +170854,13 @@ function convertApiVariable(variable) {
170510
170854
  return {
170511
170855
  ...variable,
170512
170856
  type: variable.type,
170513
- properties: convertApiVariables(variable.properties)
170857
+ properties: convertApiVariables(variable.properties),
170514
170858
  };
170515
170859
  case "array": {
170516
170860
  return {
170517
170861
  ...variable,
170518
170862
  type: variable.type,
170519
- elementType: { type: "number", name: "number" }
170863
+ elementType: { type: "number", name: "number" },
170520
170864
  };
170521
170865
  }
170522
170866
  default:
@@ -170534,7 +170878,7 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
170534
170878
  const editorProfile = {
170535
170879
  bundles: [...sdkPredefinedProfile.bundles],
170536
170880
  variables: [],
170537
- hiddenApiItems: predefinedProfile.hiddenApiItems?.map((s) => s.toLowerCase())
170881
+ hiddenApiItems: predefinedProfile.hiddenApiItems?.map((s) => s.toLowerCase()),
170538
170882
  };
170539
170883
  // Merge the SDK variables' definitions/properties with the predefined profile definitions.
170540
170884
  sdkPredefinedProfile.variables.forEach((sdkVariable) => {
@@ -170552,7 +170896,7 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
170552
170896
  return editorProfile.variables.push(convertApiVariable({
170553
170897
  ...sdkVariable,
170554
170898
  type: sdkVariable.type,
170555
- properties: Array.isArray(definition) ? [...definition] : sdkVariable.properties
170899
+ properties: Array.isArray(definition) ? [...definition] : sdkVariable.properties,
170556
170900
  }));
170557
170901
  case "feature":
170558
170902
  if (isFeatureDefinition(definition)) {
@@ -170581,7 +170925,7 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
170581
170925
 
170582
170926
  const arcadeLanguageId = "arcade";
170583
170927
  const defaultContext = {
170584
- locale: "en"
170928
+ locale: "en",
170585
170929
  };
170586
170930
  class ArcadeLanguageServiceDefaults {
170587
170931
  constructor() {
@@ -170635,7 +170979,7 @@ class ArcadeLanguageServiceDefaults {
170635
170979
  if (isPredefinedProfile(definition)) {
170636
170980
  definition = await convertToEditorProfileDefinition(definition, apiContext.locale);
170637
170981
  }
170638
- const intlStrings = await v(apiContext.locale, getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
170982
+ const intlStrings = await fetchT9NStringsBundle(apiContext.locale, getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
170639
170983
  if (!intlStrings) {
170640
170984
  throw new Error(`Failed to load the language bundle for ${apiContext.locale}`);
170641
170985
  }
@@ -170647,7 +170991,7 @@ class ArcadeLanguageServiceDefaults {
170647
170991
  this.updateApiContextForModel(modelId, {
170648
170992
  locale: apiContext.locale,
170649
170993
  profile: apiProfile,
170650
- snippets: apiContext.snippets
170994
+ snippets: apiContext.snippets,
170651
170995
  });
170652
170996
  }
170653
170997
  /**
@@ -170714,7 +171058,7 @@ class ArcadeLanguageServiceDefaults {
170714
171058
  }
170715
171059
  const arcadeDefaults = new ArcadeLanguageServiceDefaults();
170716
171060
  const arcade = {
170717
- setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults)
171061
+ setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults),
170718
171062
  };
170719
171063
 
170720
- export { B, D, Emitter as E, G, IStandaloneThemeService as I, KeyCode as K, MarkerSeverity as M, Range as R, StandaloneServices as S, Uri as U, W, Z, arcade as a, commonjsGlobal as b, createCommonjsModule as c, importRequest as d, editor as e, arcadeDefaults as f, generateTokensCSSForColorMap as g, filterCollection as h, ie as i, importArcade as j, h as k, languages as l, U as m, k as n, supportedFields as o, K as p, q, KeyMod as r, se as s, monaco_editor_core_star as t, typescriptDefaults as u, main as v, re as w, x };
171064
+ export { KeyMod as A, monaco_editor_core_star as B, typescriptDefaults as C, Deferred as D, main as E, debounce as F, Emitter as G, IStandaloneThemeService as I, KeyCode as K, MarkerSeverity as M, Range as R, StandaloneServices as S, Uri as U, arcade as a, commonjsGlobal as b, createCommonjsModule as c, camelToKebab as d, editor as e, safeAsyncCall as f, generateTokensCSSForColorMap as g, startLocaleObserver as h, getElementLocales as i, isURL as j, hasSameOrigin as k, importRequest as l, languages as m, arcadeDefaults as n, setFocusOnElement as o, filterCollection as p, addLTRMark as q, importArcade as r, safeCall as s, generateGuid as t, getElementTheme as u, setValuesInString as v, quoteString as w, supportedFields as x, createFilterExpression as y, observeAncestorsMutation as z };