@arcgis/coding-components 5.0.0-next.123 → 5.0.0-next.125

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 (89) hide show
  1. package/dist/addons.js +1 -1
  2. package/dist/cdn/{U3QDEN2G.js → 2G2UIQFF.js} +2 -2
  3. package/dist/cdn/{CJYF3F5E.js → 2HVUC5LC.js} +2 -2
  4. package/dist/cdn/{TK5S3TVF.js → 2VU4VVWH.js} +2 -2
  5. package/dist/cdn/{D6Q3IOSD.js → 2ZTUZFKP.js} +3 -3
  6. package/dist/cdn/{KCEE5SGH.js → 3CUXSNY7.js} +2 -2
  7. package/dist/cdn/{MAIR6G6S.js → 3FZTYAD4.js} +2 -2
  8. package/dist/cdn/{LM57FLMD.js → 3TESWV4K.js} +2 -2
  9. package/dist/cdn/{OEKP6ARZ.js → 3XNJCFB5.js} +2 -2
  10. package/dist/cdn/{OKWUXFG3.js → 4DFWA57L.js} +2 -2
  11. package/dist/cdn/{5OMU3HCN.js → 4G757YT6.js} +2 -2
  12. package/dist/cdn/{CDWEXLAS.js → 4JP6FKDN.js} +2 -2
  13. package/dist/cdn/{EB7DKJEJ.js → 4VGB5W3U.js} +2 -2
  14. package/dist/cdn/{SS25D2QB.js → 5DCFXGJ7.js} +1 -1
  15. package/dist/cdn/{BFVPYR32.js → 5ZZBTOH6.js} +2 -2
  16. package/dist/cdn/{SB3NUP4J.js → 6CWAN6GB.js} +1 -1
  17. package/dist/cdn/{HUNG6LTU.js → 7HWZHCIC.js} +2 -2
  18. package/dist/cdn/{Q5KGEDBE.js → A3OJNC67.js} +2 -2
  19. package/dist/cdn/{EEVKX4HF.js → AFY7HI3Q.js} +2 -2
  20. package/dist/cdn/{JVJZQ5W4.js → AYIUZ5CU.js} +2 -2
  21. package/dist/cdn/AYUGR6ZA.js +6 -0
  22. package/dist/cdn/{6GEJDWVQ.js → B7OICTUH.js} +2 -2
  23. package/dist/cdn/BAITV2XQ.js +4 -0
  24. package/dist/cdn/{4EJVPJ6S.js → C4TV4A4C.js} +2 -2
  25. package/dist/cdn/{UX46QJ2S.js → C73TSET3.js} +2 -2
  26. package/dist/cdn/{GH26ROWM.js → CZANWUR3.js} +2 -2
  27. package/dist/cdn/{SKB3B7IU.js → F7MDHLHB.js} +2 -2
  28. package/dist/cdn/{QZN2YLKG.js → GGJDOT2S.js} +2 -2
  29. package/dist/cdn/{OCNO5WFU.js → GLEMXJI2.js} +1 -1
  30. package/dist/cdn/{7I3N5U2L.js → HUQKIFID.js} +1 -1
  31. package/dist/cdn/{R7C4DPOP.js → HZTUEAMV.js} +2 -2
  32. package/dist/cdn/{P4TW7DBI.js → LQ72XFE7.js} +2 -2
  33. package/dist/cdn/{Y4EXZMWD.js → MFEN7P66.js} +1 -1
  34. package/dist/cdn/{SRA5XA6E.js → MQ5UFP4I.js} +2 -2
  35. package/dist/cdn/{EEA4JHWB.js → MQEEUZFF.js} +2 -2
  36. package/dist/cdn/{6W2W2MBK.js → NW3ARPZK.js} +2 -2
  37. package/dist/cdn/{PENMZRLN.js → OI6RPXMQ.js} +2 -2
  38. package/dist/cdn/{LEUNKTRS.js → OTOW5G34.js} +2 -2
  39. package/dist/cdn/{KBFTJJ7T.js → PBC727YK.js} +2 -2
  40. package/dist/cdn/{3AJSLHAX.js → Q3NZOH23.js} +1 -1
  41. package/dist/cdn/{J7IX2YOG.js → QL2L2MHZ.js} +2 -2
  42. package/dist/cdn/{BF2WMMEI.js → S3EFBHYY.js} +1 -1
  43. package/dist/cdn/SIHG6RHL.js +8 -0
  44. package/dist/cdn/{W6OFFZGA.js → SQCK67HN.js} +1 -1
  45. package/dist/cdn/{UZZO3SUI.js → TARV44ET.js} +2 -2
  46. package/dist/cdn/{JZSTD5RM.js → TTTDPTRD.js} +2 -2
  47. package/dist/cdn/{LYSTTY6K.js → USX755BM.js} +2 -2
  48. package/dist/cdn/{XICATE5G.js → VPFXW4XP.js} +2 -2
  49. package/dist/cdn/{QG2GH2I4.js → XDWUK6VX.js} +2 -2
  50. package/dist/cdn/assets/code-editor/sql-expr.worker.js +1 -1
  51. package/dist/cdn/index.js +2 -2
  52. package/dist/chunks/arcade-contribution.js +1 -1
  53. package/dist/chunks/arcade-defaults.js +153 -130
  54. package/dist/chunks/arcade-executor.js +1 -1
  55. package/dist/chunks/arcade-mode.js +1 -1
  56. package/dist/chunks/arcade-service-accessors.js +1 -1
  57. package/dist/chunks/colorize.js +1 -1
  58. package/dist/chunks/fields.js +1 -1
  59. package/dist/chunks/language-defaults-base.js +1 -1
  60. package/dist/chunks/markdown.js +1 -1
  61. package/dist/chunks/monaco-importer.js +1 -1
  62. package/dist/chunks/monaco-theme.js +1 -1
  63. package/dist/chunks/runtime.js +1 -1
  64. package/dist/chunks/sql-expr-defaults.js +1 -1
  65. package/dist/chunks/sql-expr-mode.js +1 -1
  66. package/dist/chunks/sql-expr-service-accessors.js +1 -1
  67. package/dist/chunks/useT9n.js +1 -1
  68. package/dist/chunks/utilities.js +1 -1
  69. package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
  70. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  71. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  72. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  73. package/dist/components/arcgis-code-editor/customElement.js +1 -1
  74. package/dist/components/arcgis-code-editor-shell/customElement.js +1 -1
  75. package/dist/components/arcgis-code-viewer/customElement.js +1 -1
  76. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  77. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  78. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  79. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  80. package/dist/docs/api.json +2 -2
  81. package/dist/docs/docs.json +2 -2
  82. package/dist/docs/web-types.json +1 -1
  83. package/dist/index.js +1 -1
  84. package/dist/loader.js +1 -1
  85. package/dist/utils/arcade-monaco/arcade-defaults.d.ts +20 -0
  86. package/package.json +6 -6
  87. package/dist/cdn/OYL5NSHY.js +0 -6
  88. package/dist/cdn/SMKCMY3X.js +0 -4
  89. package/dist/cdn/TMTTXILL.js +0 -8
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.123 */
4
- import{a as n}from"./Y4EXZMWD.js";import{a as f}from"./LM57FLMD.js";import"./UX46QJ2S.js";import{a as g}from"./OEKP6ARZ.js";import"./BF2WMMEI.js";import{d as p,e as u}from"./OKWUXFG3.js";import{E as c,F as d,J as h,h as m,j as s,n as a,r as o}from"./OYL5NSHY.js";import"./SS25D2QB.js";import"./7I3N5U2L.js";var b=m`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-block{p:first-of-type{margin-top:0}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}calcite-flow{[slot=footer]{word-break:break-word}}}`,r=class extends d{constructor(){super(...arguments),this.messages=f(),this._unselectItem=async()=>{this._selectedApiItem=void 0},this._filterValue="",this.languageId="arcade",this.hideDocumentationActions=!1,this.loading=!1,this.closed=!1,this.arcgisClose=a({bubbles:!1}),this.arcgisItemSelected=a({bubbles:!1})}static{this.properties={_filterValue:16,_selectedApiItem:16,languageId:1,apiLibrary:0,hideDocumentationActions:5,loading:5,closed:5}}static{this.styles=b}willUpdate(e){if(e.has("apiLibrary")){if(!this._selectedApiItem)return;for(let i of this.apiLibrary??[])for(let t of i.items)if(t.name===this._selectedApiItem.name){this._selectedApiItem=t;return}this._selectedApiItem=void 0}}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect()}flowFocusHandler(e){if(!e){this._flowObserver?.disconnect(),this._flowObserver=void 0;return}this._flowObserver||(this._flowObserver=new MutationObserver(()=>{u(e.querySelector("calcite-flow-item:last-child"),"calcite-input")}),this._flowObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0}))}_emitItemSelected(e,i){if(!i)return;let t=e;(!t.key||t.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(i.completion.insertText??""))}_emitClose(){this.arcgisClose.emit()}_emitItemSelectedAndClose(e,i){let t=e;(!t.key||t.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(i.completion.insertText??""))}_selectItem(e,i){e.stopPropagation(),this._selectedApiItem=i}_updateFilterValue(e){this._filterValue=e.currentTarget.value??""}_elementToMarkdown(e){e!==void 0&&(e.innerHTML=n(this._selectedApiItem.examples))}renderApiCategory(e){let i=g(e.items,"name",this._filterValue);return i.length?s`<calcite-list-item-group .heading=${e.title}>${i.map(t=>s`<calcite-list-item .label=${o(t.completion.detail)} @calciteListItemSelect=${l=>this._emitItemSelected(l,t)} @keydown=${l=>this._emitItemSelected(l,t)}><calcite-action slot=actions-end .text=${this.messages.expand??""} icon=chevron-right icon-flip-rtl scale=s @click=${l=>this._selectItem(l,t)}></calcite-action></calcite-list-item>`)}</calcite-list-item-group>`:null}renderApiItemFlowItem(){let e=this._selectedApiItem;return e?s`<calcite-flow-item heading-level=2 .heading=${this.messages.constantsandfunctions} .beforeBack=${this._unselectItem} closable @calciteFlowItemClose=${this._emitClose} selected>${this.hideDocumentationActions?null:s`<calcite-button width=half slot=footer appearance=outline kind=brand scale=s .href=${e.link} target=Help icon-start=information>${this.messages.moreinformation}</calcite-button>`}<calcite-button .width=${this.hideDocumentationActions?"full":"half"} slot=footer appearance=outline kind=brand icon-start=code scale=s @click=${i=>this._emitItemSelectedAndClose(i,e)} ${c(p)}>${this.messages.insert}</calcite-button><calcite-block expanded .heading=${o(e.completion.detail)}><div .innerHTML=${n(e.completion.documentation)??""}></div>${e.examples?s`<div ${c(this._elementToMarkdown)}></div>`:null}</calcite-block></calcite-flow-item>`:null}render(){if(this.closed)return null;let e=(this.apiLibrary??[]).map(t=>this.renderApiCategory(t)),i=e.every(t=>!t);return s`<calcite-flow ${c(this.flowFocusHandler)}><calcite-flow-item heading-level=2 .heading=${this.messages.constantsandfunctions} closable @calciteFlowItemClose=${this._emitClose} .selected=${!this._selectedApiItem}><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input>${this.loading?s`<calcite-loader scale=s type=indeterminate .label=${this.messages.loading??"Loading"}></calcite-loader>`:s`<calcite-list label="arcade api">${i?s`<div class="notice-container">${this.messages.noitems}</div>`:e}</calcite-list>`}</calcite-flow-item>${this.renderApiItemFlowItem()}</calcite-flow>`}};h("arcgis-language-api-panel",r);export{r as ArcgisLanguageApiPanel};
3
+ v5.0.0-next.125 */
4
+ import{a as n}from"./MFEN7P66.js";import{a as f}from"./3TESWV4K.js";import"./C73TSET3.js";import{a as g}from"./3XNJCFB5.js";import"./S3EFBHYY.js";import{d as p,e as u}from"./4DFWA57L.js";import{E as c,F as d,J as h,h as m,j as s,n as a,r as o}from"./AYUGR6ZA.js";import"./5DCFXGJ7.js";import"./HUQKIFID.js";var b=m`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-block{p:first-of-type{margin-top:0}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}calcite-flow{[slot=footer]{word-break:break-word}}}`,r=class extends d{constructor(){super(...arguments),this.messages=f(),this._unselectItem=async()=>{this._selectedApiItem=void 0},this._filterValue="",this.languageId="arcade",this.hideDocumentationActions=!1,this.loading=!1,this.closed=!1,this.arcgisClose=a({bubbles:!1}),this.arcgisItemSelected=a({bubbles:!1})}static{this.properties={_filterValue:16,_selectedApiItem:16,languageId:1,apiLibrary:0,hideDocumentationActions:5,loading:5,closed:5}}static{this.styles=b}willUpdate(e){if(e.has("apiLibrary")){if(!this._selectedApiItem)return;for(let i of this.apiLibrary??[])for(let t of i.items)if(t.name===this._selectedApiItem.name){this._selectedApiItem=t;return}this._selectedApiItem=void 0}}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect()}flowFocusHandler(e){if(!e){this._flowObserver?.disconnect(),this._flowObserver=void 0;return}this._flowObserver||(this._flowObserver=new MutationObserver(()=>{u(e.querySelector("calcite-flow-item:last-child"),"calcite-input")}),this._flowObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0}))}_emitItemSelected(e,i){if(!i)return;let t=e;(!t.key||t.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(i.completion.insertText??""))}_emitClose(){this.arcgisClose.emit()}_emitItemSelectedAndClose(e,i){let t=e;(!t.key||t.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(i.completion.insertText??""))}_selectItem(e,i){e.stopPropagation(),this._selectedApiItem=i}_updateFilterValue(e){this._filterValue=e.currentTarget.value??""}_elementToMarkdown(e){e!==void 0&&(e.innerHTML=n(this._selectedApiItem.examples))}renderApiCategory(e){let i=g(e.items,"name",this._filterValue);return i.length?s`<calcite-list-item-group .heading=${e.title}>${i.map(t=>s`<calcite-list-item .label=${o(t.completion.detail)} @calciteListItemSelect=${l=>this._emitItemSelected(l,t)} @keydown=${l=>this._emitItemSelected(l,t)}><calcite-action slot=actions-end .text=${this.messages.expand??""} icon=chevron-right icon-flip-rtl scale=s @click=${l=>this._selectItem(l,t)}></calcite-action></calcite-list-item>`)}</calcite-list-item-group>`:null}renderApiItemFlowItem(){let e=this._selectedApiItem;return e?s`<calcite-flow-item heading-level=2 .heading=${this.messages.constantsandfunctions} .beforeBack=${this._unselectItem} closable @calciteFlowItemClose=${this._emitClose} selected>${this.hideDocumentationActions?null:s`<calcite-button width=half slot=footer appearance=outline kind=brand scale=s .href=${e.link} target=Help icon-start=information>${this.messages.moreinformation}</calcite-button>`}<calcite-button .width=${this.hideDocumentationActions?"full":"half"} slot=footer appearance=outline kind=brand icon-start=code scale=s @click=${i=>this._emitItemSelectedAndClose(i,e)} ${c(p)}>${this.messages.insert}</calcite-button><calcite-block expanded .heading=${o(e.completion.detail)}><div .innerHTML=${n(e.completion.documentation)??""}></div>${e.examples?s`<div ${c(this._elementToMarkdown)}></div>`:null}</calcite-block></calcite-flow-item>`:null}render(){if(this.closed)return null;let e=(this.apiLibrary??[]).map(t=>this.renderApiCategory(t)),i=e.every(t=>!t);return s`<calcite-flow ${c(this.flowFocusHandler)}><calcite-flow-item heading-level=2 .heading=${this.messages.constantsandfunctions} closable @calciteFlowItemClose=${this._emitClose} .selected=${!this._selectedApiItem}><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input>${this.loading?s`<calcite-loader scale=s type=indeterminate .label=${this.messages.loading??"Loading"}></calcite-loader>`:s`<calcite-list label="arcade api">${i?s`<div class="notice-container">${this.messages.noitems}</div>`:e}</calcite-list>`}</calcite-flow-item>${this.renderApiItemFlowItem()}</calcite-flow>`}};h("arcgis-language-api-panel",r);export{r as ArcgisLanguageApiPanel};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.123 */
4
- import{Xl as s}from"./JZSTD5RM.js";var c=Object.defineProperty,p=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,a=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of g(e))!l.call(t,n)&&n!==o&&c(t,n,{get:()=>e[n],enumerable:!(i=p(e,n))||i.enumerable});return t},d=(t,e,o)=>(a(t,e,"default"),o&&a(o,e,"default")),r={};d(r,s);var m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:r.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:r.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:r.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:r.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},x={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/#?[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{m as a,x as b};
3
+ v5.0.0-next.125 */
4
+ import{Xl as s}from"./TTTDPTRD.js";var c=Object.defineProperty,p=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,a=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of g(e))!l.call(t,n)&&n!==o&&c(t,n,{get:()=>e[n],enumerable:!(i=p(e,n))||i.enumerable});return t},d=(t,e,o)=>(a(t,e,"default"),o&&a(o,e,"default")),r={};d(r,s);var m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:r.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:r.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:r.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:r.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},x={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/#?[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{m as a,x as b};
@@ -17401,7 +17401,7 @@ function se(t, e, r, n) {
17401
17401
  const fr = { apiKey: void 0, apiKeys: { scopes: [] }, applicationName: "", applicationUrl: globalThis.location?.href, assetsPath: "", fontsUrl: "https://static.arcgis.com/fonts", geometryServiceUrl: "https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer", geoRSSServiceUrl: "https://utility.arcgis.com/sharing/rss", kmlServiceUrl: "https://utility.arcgis.com/sharing/kml", userPrivilegesApplied: !0, portalUrl: "https://www.arcgis.com", respectPrefersReducedMotion: !0, routeServiceUrl: "https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World", workers: { loaderConfig: { has: {}, paths: {}, map: {}, packages: [] } }, request: { crossOriginNoCorsDomains: null, httpsDomains: ["arcgis.com", "arcgisonline.com", "esrikr.com", "premiumservices.blackbridge.com", "esripremium.accuweather.com", "gbm.digitalglobe.com", "firstlook.digitalglobe.com", "msi.digitalglobe.com"], interceptors: [], internalInterceptors: [], maxUrlLength: 2e3, priority: "high", proxyRules: [], proxyUrl: null, timeout: 62e3, trustedServers: [], useIdentity: !0 }, log: { interceptors: [], level: null } };
17402
17402
  if (globalThis.esriConfig && (D7(fr, globalThis.esriConfig, !0), delete fr.has), !fr.assetsPath) {
17403
17403
  {
17404
- const t = "5.0.0-next.91";
17404
+ const t = "5.0.0-next.92";
17405
17405
  fr.assetsPath = `https://cdn.jsdelivr.net/npm/@arcgis/core@${t}/assets`;
17406
17406
  }
17407
17407
  fr.defaultAssetsPath = fr.assetsPath;
package/dist/cdn/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.123 */
4
- import{I as s,u as e}from"./OYL5NSHY.js";import"./SS25D2QB.js";import"./7I3N5U2L.js";var i=e(s,{"arcgis-arcade-coding-assistant":[()=>import("./GH26ROWM.js"),"appVersion,assistantsEnabled,closed,closePanel:,editorRef:,feedbackServiceUrl,helpBase,insertText:,layer,portalUrl,serviceUrl;destroy"],"arcgis-arcade-editor":[()=>import("./CDWEXLAS.js"),"arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./LEUNKTRS.js"),"calciteModeDark,consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./TK5S3TVF.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./5OMU3HCN.js"),"editorInstance:,editorOptions:,language,modelId:,value;getEditorInstance,getValue,insertSnippet,insertText,setFocus,setValue"],"arcgis-code-editor-shell":[()=>import("./6GEJDWVQ.js")],"arcgis-code-viewer":[()=>import("./UZZO3SUI.js"),"language,round"],"arcgis-editor-variables":[()=>import("./4EJVPJ6S.js"),"closed,loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./XICATE5G.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./SKB3B7IU.js"),"hideSideBar,profile:,script;setFocus"],"arcgis-sql-expression-fields":[()=>import("./SRA5XA6E.js"),"loading,modelId"]});i({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-code-editor-shell,arcgis-code-viewer,arcgis-sql-expression-editor){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,s)
3
+ v5.0.0-next.125 */
4
+ import{I as s,u as e}from"./AYUGR6ZA.js";import"./5DCFXGJ7.js";import"./HUQKIFID.js";var i=e(s,{"arcgis-arcade-coding-assistant":[()=>import("./CZANWUR3.js"),"appVersion,assistantsEnabled,closed,closePanel:,editorRef:,feedbackServiceUrl,helpBase,insertText:,layer,portalUrl,serviceUrl;destroy"],"arcgis-arcade-editor":[()=>import("./4JP6FKDN.js"),"arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./OTOW5G34.js"),"calciteModeDark,consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./2VU4VVWH.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./4G757YT6.js"),"editorInstance:,editorOptions:,language,modelId:,value;getEditorInstance,getValue,insertSnippet,insertText,setFocus,setValue"],"arcgis-code-editor-shell":[()=>import("./B7OICTUH.js")],"arcgis-code-viewer":[()=>import("./TARV44ET.js"),"language,round"],"arcgis-editor-variables":[()=>import("./C4TV4A4C.js"),"closed,loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./VPFXW4XP.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./F7MDHLHB.js"),"hideSideBar,profile:,script;setFocus"],"arcgis-sql-expression-fields":[()=>import("./MQ5UFP4I.js"),"loading,modelId"]});i({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-code-editor-shell,arcgis-code-viewer,arcgis-sql-expression-editor){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,s)
@@ -14,7 +14,7 @@ import { b as n } from "./arcade-defaults.js";
14
14
  import { a as h } from "./arcade-service-accessors.js";
15
15
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
16
16
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
17
- v5.0.0-next.123 */
17
+ v5.0.0-next.125 */
18
18
  const k = ["arcade", "arcgis-sql-expression"], i = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Map();
19
19
  function c(e) {
20
20
  let r = g.get(e);
@@ -1,99 +1,99 @@
1
- import { i as y, b as x, a as b, c as D, d as F, e as S, f as M, m as v, L as A, E as L } from "./language-defaults-base.js";
2
- import { supportedLocales as k, fetchT9nStringsBundle as E } from "@arcgis/toolkit/intl";
3
- import { g as m } from "./runtime.js";
4
- import { CompletionItemKind as w, InsertTextFormat as u, InsertTextMode as p } from "vscode-languageserver-types";
5
- import { getDeclaredPixelMembers as I } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
1
+ import { i as g, b as D, a as v, c as F, d as S, e as M, f as A, m as L, L as k, E } from "./language-defaults-base.js";
2
+ import { supportedLocales as I, fetchT9nStringsBundle as C } from "@arcgis/toolkit/intl";
3
+ import { g as h } from "./runtime.js";
4
+ import { CompletionItemKind as T, InsertTextFormat as p, InsertTextMode as f } from "vscode-languageserver-types";
5
+ import { getDeclaredPixelMembers as j } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
6
6
  import "@arcgis/toolkit/type";
7
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
9
- v5.0.0-next.123 */
10
- async function C(e) {
11
- const { apiVersion: i, bundles: t, hiddenApiItems: n } = e.toEditorProfileDefinition(), r = await g(e.dictionaryVariables);
12
- return { apiVersion: i, bundles: t, variables: r, hiddenApiItems: n?.map((s) => s.toLowerCase()) };
9
+ v5.0.0-next.125 */
10
+ async function $(e) {
11
+ const { apiVersion: r, bundles: n, hiddenApiItems: i } = e.toEditorProfileDefinition(), t = await P(e.dictionaryVariables);
12
+ return { apiVersion: r, bundles: n, variables: t, hiddenApiItems: i?.map((s) => s.toLowerCase()) };
13
13
  }
14
- async function g(e, i = w.Variable) {
14
+ async function P(e, r = T.Variable) {
15
15
  return await Promise.all(
16
- e.map(async (t) => {
17
- switch (t.type) {
16
+ e.map(async (n) => {
17
+ switch (n.type) {
18
18
  case "dictionary":
19
- return await K(t, i);
19
+ return await q(n, r);
20
20
  case "pixel":
21
- return await B(t, i);
21
+ return await _(n, r);
22
22
  // Voxel is equivalent to features in regards to the languageservice.
23
23
  // They both have equivalent fields, but some voxel fields are different types (arrays)
24
24
  // than what is reported in .fields, so in the sidebar we treat a bit differently.
25
25
  // In autocomplete we don't differentiate types, so we can use the same logic as features.
26
26
  case "voxel":
27
27
  case "feature":
28
- return await $(t, i);
28
+ return await K(n, r);
29
29
  default:
30
- return j(t, i);
30
+ return B(n, r);
31
31
  }
32
32
  })
33
33
  );
34
34
  }
35
- function j(e, i) {
36
- const { name: t, type: n } = e, r = e.getDescription();
35
+ function B(e, r) {
36
+ const { name: n, type: i } = e, t = e.getDescription();
37
37
  return {
38
- name: t,
39
- description: r,
40
- type: n,
38
+ name: n,
39
+ description: t,
40
+ type: i,
41
41
  completion: {
42
- label: t,
43
- detail: t,
44
- insertText: t,
45
- insertTextMode: p.asIs,
46
- insertTextFormat: u.PlainText,
47
- kind: i,
48
- documentation: { kind: "markdown", value: r }
42
+ label: n,
43
+ detail: n,
44
+ insertText: n,
45
+ insertTextMode: f.asIs,
46
+ insertTextFormat: p.PlainText,
47
+ kind: r,
48
+ documentation: { kind: "markdown", value: t }
49
49
  }
50
50
  };
51
51
  }
52
- async function $(e, i) {
53
- const t = await e.loadSource(), { name: n } = e, r = e.getDescription(), s = {
54
- label: n,
55
- detail: n,
56
- insertText: n,
57
- insertTextMode: p.asIs,
58
- insertTextFormat: u.PlainText,
59
- kind: i
52
+ async function K(e, r) {
53
+ const n = await e.loadSource(), { name: i } = e, t = e.getDescription(), s = {
54
+ label: i,
55
+ detail: i,
56
+ insertText: i,
57
+ insertTextMode: f.asIs,
58
+ insertTextFormat: p.PlainText,
59
+ kind: r
60
60
  }, o = {
61
- name: n,
62
- description: r,
61
+ name: i,
62
+ description: t,
63
63
  type: "dictionary",
64
64
  properties: [],
65
65
  completion: s
66
66
  };
67
- if (!t)
67
+ if (!n)
68
68
  return o;
69
- const [a, c] = M(t.fields, r, !0);
69
+ const [a, c] = A(n.fields, t, !0);
70
70
  return o.properties = a, s.documentation = { kind: "markdown", value: c }, o;
71
71
  }
72
- async function B(e, i) {
73
- const t = await e.loadSource(), n = e.toProfileVariableDefinition();
74
- if (n.type !== "pixel")
72
+ async function _(e, r) {
73
+ const n = await e.loadSource(), i = e.toProfileVariableDefinition();
74
+ if (i.type !== "pixel")
75
75
  throw new Error("Incorrect definition passed to pixel variable");
76
- const { name: r } = e, s = e.getDescription(), o = {
77
- label: r,
78
- detail: r,
79
- insertText: r,
80
- insertTextMode: p.asIs,
81
- insertTextFormat: u.PlainText,
82
- kind: i
76
+ const { name: t } = e, s = e.getDescription(), o = {
77
+ label: t,
78
+ detail: t,
79
+ insertText: t,
80
+ insertTextMode: f.asIs,
81
+ insertTextFormat: p.PlainText,
82
+ kind: r
83
83
  }, a = {
84
- name: r,
84
+ name: t,
85
85
  description: s,
86
86
  type: "dictionary",
87
87
  properties: [],
88
88
  completion: o
89
89
  };
90
- if (!t || !n.definition)
90
+ if (!n || !i.definition)
91
91
  return a;
92
- const c = await I(t), [T, P] = v(c, s);
93
- return a.properties = T, o.documentation = { kind: "markdown", value: P }, a;
92
+ const c = await j(n), [d, l] = L(c, s);
93
+ return a.properties = d, o.documentation = { kind: "markdown", value: l }, a;
94
94
  }
95
- async function K(e, i) {
96
- const { name: t, dictionaryVariables: n } = e, r = e.getDescription(), s = n.reduce((o, a) => {
95
+ async function q(e, r) {
96
+ const { name: n, dictionaryVariables: i } = e, t = e.getDescription(), s = i.reduce((o, a) => {
97
97
  o !== "" && (o += `
98
98
 
99
99
  `), o += `**${a.name}**
@@ -101,53 +101,53 @@ ${a.type}`;
101
101
  const c = a.getDescription();
102
102
  return c && (o += `
103
103
  ${c}`), o;
104
- }, r);
104
+ }, t);
105
105
  return {
106
- name: t,
107
- description: r,
106
+ name: n,
107
+ description: t,
108
108
  type: "dictionary",
109
- properties: await g(n, w.Field),
109
+ properties: await P(i, T.Field),
110
110
  completion: {
111
- label: t,
112
- detail: t,
113
- insertText: t,
114
- insertTextMode: p.asIs,
115
- insertTextFormat: u.PlainText,
116
- kind: i,
111
+ label: n,
112
+ detail: n,
113
+ insertText: n,
114
+ insertTextMode: f.asIs,
115
+ insertTextFormat: p.PlainText,
116
+ kind: r,
117
117
  documentation: { kind: "markdown", value: s }
118
118
  }
119
119
  };
120
120
  }
121
- async function f(e = "en") {
122
- const i = h.get(e);
123
- if (i)
124
- return i;
125
- if (!k.has(e))
126
- return await f("en");
121
+ async function y(e = "en") {
122
+ const r = x.get(e);
123
+ if (r)
124
+ return r;
125
+ if (!I.has(e))
126
+ return await y("en");
127
127
  try {
128
- const t = await fetch(m(`./assets/arcade-language/profiles/arcade-profiles.t9n.${e}.json`));
129
- return t.ok ? _(e, await t.json()) : e === "en" ? null : await f("en");
128
+ const n = await fetch(h(`./assets/arcade-language/profiles/arcade-profiles.t9n.${e}.json`));
129
+ return n.ok ? Q(e, await n.json()) : e === "en" ? null : await y("en");
130
130
  } catch {
131
131
  return null;
132
132
  }
133
133
  }
134
- const h = /* @__PURE__ */ new Map();
135
- function _(e, i) {
136
- const t = /* @__PURE__ */ new Map();
137
- return i.forEach((n) => {
138
- t.set(n.id, n);
139
- }), h.set(e, t), t;
134
+ const x = /* @__PURE__ */ new Map();
135
+ function Q(e, r) {
136
+ const n = /* @__PURE__ */ new Map();
137
+ return r.forEach((i) => {
138
+ n.set(i.id, i);
139
+ }), x.set(e, n), n;
140
140
  }
141
- async function q(e, i = "en") {
142
- return (await f(i))?.get(e) ?? null;
141
+ async function U(e, r = "en") {
142
+ return (await y(r))?.get(e) ?? null;
143
143
  }
144
144
  function z(e) {
145
145
  return !!e && typeof e == "object" && "additionalVariables" in e && Array.isArray(e.additionalVariables);
146
146
  }
147
147
  function G(e) {
148
- return e?.map(d);
148
+ return e?.map(m);
149
149
  }
150
- function d(e) {
150
+ function m(e) {
151
151
  switch (e.type) {
152
152
  case "dictionary":
153
153
  return {
@@ -165,44 +165,44 @@ function d(e) {
165
165
  return { ...e, type: e.type };
166
166
  }
167
167
  }
168
- async function H(e, i = "en") {
169
- if (!y(e))
168
+ async function H(e, r = "en") {
169
+ if (!g(e))
170
170
  return;
171
- const t = await q(e.id, i);
172
- if (!t)
171
+ const n = await U(e.id, r);
172
+ if (!n)
173
173
  return;
174
- const n = {
175
- bundles: [...t.bundles],
174
+ const i = {
175
+ bundles: [...n.bundles],
176
176
  variables: [],
177
- hiddenApiItems: e.hiddenApiItems?.map((r) => r.toLowerCase())
177
+ hiddenApiItems: e.hiddenApiItems?.map((t) => t.toLowerCase())
178
178
  };
179
- return t.variables.forEach((r) => {
180
- if (e.disabledVariables?.includes(r.name))
179
+ return n.variables.forEach((t) => {
180
+ if (e.disabledVariables?.includes(t.name))
181
181
  return;
182
- const s = e.definitions[r.name];
183
- switch (r.type) {
182
+ const s = e.definitions[t.name];
183
+ switch (t.type) {
184
184
  case "dictionary":
185
- return n.variables.push(
186
- d({
187
- ...r,
188
- type: r.type,
189
- properties: Array.isArray(s) ? [...s] : r.properties
185
+ return i.variables.push(
186
+ m({
187
+ ...t,
188
+ type: t.type,
189
+ properties: Array.isArray(s) ? [...s] : t.properties
190
190
  })
191
191
  );
192
192
  case "feature":
193
- return S(s) ? n.variables.push({ ...r, type: "feature", definition: s }) : void 0;
193
+ return M(s) ? i.variables.push({ ...t, type: "feature", definition: s }) : void 0;
194
194
  case "pixel":
195
- return F(s) ? n.variables.push({ ...r, type: r.type, definition: s }) : void 0;
195
+ return S(s) ? i.variables.push({ ...t, type: t.type, definition: s }) : void 0;
196
196
  case "voxel":
197
- return D(s) ? n.variables.push({ ...r, type: r.type, definition: s }) : void 0;
197
+ return F(s) ? i.variables.push({ ...t, type: t.type, definition: s }) : void 0;
198
198
  case "featureSet":
199
- return b(s) ? n.variables.push({ ...r, type: r.type, definition: s }) : void 0;
199
+ return v(s) ? i.variables.push({ ...t, type: t.type, definition: s }) : void 0;
200
200
  case "featureSetCollection":
201
- return x(s) ? n.variables.push({ ...r, type: r.type, definition: s }) : void 0;
201
+ return D(s) ? i.variables.push({ ...t, type: t.type, definition: s }) : void 0;
202
202
  default:
203
- return n.variables.push(d(r));
203
+ return i.variables.push(m(t));
204
204
  }
205
- }), z(e) && n.variables.push(...e.additionalVariables ?? []), n;
205
+ }), z(e) && i.variables.push(...e.additionalVariables ?? []), i;
206
206
  }
207
207
  const J = [
208
208
  "catalog-footprint",
@@ -225,7 +225,21 @@ const O = {
225
225
  N(e)
226
226
  )
227
227
  };
228
- class Q extends A {
228
+ class R extends k {
229
+ /**
230
+ * Per-model update chaining to serialize profile updates.
231
+ *
232
+ * Why this is necessary:
233
+ * `setProfileForModel` does multiple async steps (t9n load, predefined profile conversion,
234
+ * profile -> API conversion, model disposal + re-init). If callers invoke it twice quickly,
235
+ * the *earlier* call can complete *after* the later call and overwrite the newer API context,
236
+ * because a new profile could convert faster than an old one (e.g. if the newer one is a simple
237
+ * editor profile but the older one is a complex predefined profile that takes a while to convert).
238
+ *
239
+ * We prevent that race by chaining a promise per model key so updates for the same model run
240
+ * strictly in call order.
241
+ */
242
+ #e = /* @__PURE__ */ new Map();
229
243
  constructor() {
230
244
  super("arcade", {
231
245
  apiPath: "./assets/arcade-language/api",
@@ -242,31 +256,40 @@ class Q extends A {
242
256
  * @param locale The locale to use for the model context.
243
257
  * @returns The EditorProfile for the model.
244
258
  */
245
- async setProfileForModel(i, t, n = { locale: "en" }) {
246
- y(t) && (t = await H(t, n.locale));
247
- const r = await E(
248
- n.locale,
249
- m("./assets/editor-profile/t9n"),
250
- "messages."
251
- );
252
- if (!r)
253
- throw new Error(`Failed to load the language bundle for ${n.locale}`);
254
- this.disposeForModel(i);
255
- const s = this._getApiKey(i), o = new L(t, r, n.locale, O);
256
- this._modelToProfileMap.set(s, o);
257
- const a = await C(o);
258
- this.updateApiContextForModel(i, {
259
- locale: n.locale,
260
- profile: a,
261
- snippets: n.snippets
259
+ async setProfileForModel(r, n, i = { locale: "en" }) {
260
+ const t = this._getApiKey(r), o = (this.#e.get(t) || Promise.resolve()).then(async () => {
261
+ const c = n, d = g(c) ? await H(c, i.locale) : c, l = await C(
262
+ i.locale,
263
+ h("./assets/editor-profile/t9n"),
264
+ "messages."
265
+ );
266
+ if (!l)
267
+ throw new Error(`Failed to load the language bundle for ${i.locale}`);
268
+ this.disposeForModel(r);
269
+ const w = new E(
270
+ d,
271
+ l,
272
+ i.locale,
273
+ O
274
+ );
275
+ this._modelToProfileMap.set(t, w);
276
+ const b = await $(w);
277
+ this.updateApiContextForModel(r, {
278
+ locale: i.locale,
279
+ profile: b,
280
+ snippets: i.snippets
281
+ });
282
+ }), a = o.finally(() => {
283
+ this.#e.get(t) === a && this.#e.delete(t);
262
284
  });
285
+ return this.#e.set(t, a), await o;
263
286
  }
264
287
  }
265
- const l = new Q(), V = {
266
- setProfileForModel: l.setProfileForModel.bind(l),
267
- getApiLibraryForModel: l.getApiLibraryForModel.bind(l)
288
+ const u = new R(), te = {
289
+ setProfileForModel: u.setProfileForModel.bind(u),
290
+ getApiLibraryForModel: u.getApiLibraryForModel.bind(u)
268
291
  };
269
292
  export {
270
- V as a,
271
- l as b
293
+ te as a,
294
+ u as b
272
295
  };
@@ -1,7 +1,7 @@
1
1
  import { createArcadeExecutor as C } from "@arcgis/core/arcade.js";
2
2
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
- v5.0.0-next.123 */
4
+ v5.0.0-next.125 */
5
5
  const O = "https://developers.arcgis.com/arcade/", P = 100, A = 100;
6
6
  function g(t) {
7
7
  return !!t && typeof t == "object" && "declaredRootClass" in t && typeof t.declaredRootClass == "string" && t.declaredRootClass === "esri.arcade.featureset.support.FeatureSet";
@@ -14,7 +14,7 @@ import { rethrowError as f } from "@arcgis/toolkit/log";
14
14
  import { Deferred as b } from "@arcgis/toolkit/promise";
15
15
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
16
16
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
17
- v5.0.0-next.123 */
17
+ v5.0.0-next.125 */
18
18
  const S = [
19
19
  "<=",
20
20
  ">=",
@@ -9,7 +9,7 @@ import "monaco-editor/esm/vs/editor/browser/editorDom.js";
9
9
  import "monaco-editor/esm/vs/editor/browser/controller/mouseTarget.js";
10
10
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
12
- v5.0.0-next.123 */
12
+ v5.0.0-next.125 */
13
13
  function g() {
14
14
  return !!window.MonacoEnvironment?.getWorker;
15
15
  }
@@ -4,7 +4,7 @@ import { IStandaloneThemeService as n } from "monaco-editor/esm/vs/editor/standa
4
4
  import { generateTokensCSSForColorMap as a } from "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
5
5
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
6
6
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
7
- v5.0.0-next.123 */
7
+ v5.0.0-next.125 */
8
8
  async function c(e, o) {
9
9
  return await (await i()).colorize(e, o, { tabSize: 2 });
10
10
  }
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.123 */
3
+ v5.0.0-next.125 */
4
4
  const n = "cube";
5
5
  function u(e, t) {
6
6
  switch (e.type) {
@@ -17,7 +17,7 @@ import { filterApiLibraryForContext as ye } from "@arcgis/languages-api-utils";
17
17
  import { Emitter as E, Uri as j } from "monaco-editor";
18
18
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
19
19
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
20
- v5.0.0-next.123 */
20
+ v5.0.0-next.125 */
21
21
  function q(t) {
22
22
  return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.layers.") && D(t) && "queryFeatures" in t && typeof t.queryFeatures == "function";
23
23
  }
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.123 */
3
+ v5.0.0-next.125 */
4
4
  function D() {
5
5
  return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
6
6
  }
@@ -8,7 +8,7 @@ import "monaco-editor/esm/vs/editor/browser/editorDom.js";
8
8
  import "monaco-editor/esm/vs/editor/browser/controller/mouseTarget.js";
9
9
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
11
- v5.0.0-next.123 */
11
+ v5.0.0-next.125 */
12
12
  const r = async () => {
13
13
  const { editor: t } = await import("monaco-editor/esm/vs/editor/editor.api.js");
14
14
  return t;
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.123 */
3
+ v5.0.0-next.125 */
4
4
  const e = {
5
5
  "light-theme": { comment: "#606060", constant: "#9809C8", date: "#296389", identifier: "#0000B3", keyword: "#BF4900", number: "#136D3D", string: "#A31515", operator: "#9809C8", predefined: "#0000B3" },
6
6
  "dark-theme": { comment: "#BFBFBF", constant: "#CDBAEA", date: "#97A6CE", identifier: "#9FD4F3", keyword: "#EEAA5A", number: "#AAD04B", string: "#F2877B", operator: "#CDBAEA", predefined: "#9FD4F3" }
@@ -3,7 +3,7 @@ import { makeRuntime as e } from "@arcgis/lumina";
3
3
  import { trackAccess as s, createObservable as r, createTrackingTarget as a, runTracked as c } from "@arcgis/core/applications/Components/reactiveUtils.js";
4
4
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
5
5
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
6
- v5.0.0-next.123 */
6
+ v5.0.0-next.125 */
7
7
  const t = e({ defaultAssetPath: "https://jsdev.arcgis.com/5.0.0-next/coding-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: d, setAssetPath: i } = t;
8
8
  t.t = s;
9
9
  t.o = r;
@@ -4,7 +4,7 @@ import { fetchT9nStringsBundle as M } from "@arcgis/toolkit/intl";
4
4
  import { g as b } from "./runtime.js";
5
5
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
6
6
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
7
- v5.0.0-next.123 */
7
+ v5.0.0-next.125 */
8
8
  const x = (r) => {
9
9
  const e = r.variables[0], i = e && e.type === "featureSet" ? A(e) : void 0, { apiVersion: t, bundles: o, hiddenApiItems: s } = r.toEditorProfileDefinition();
10
10
  return {
@@ -14,7 +14,7 @@ import { rethrowError as g } from "@arcgis/toolkit/log";
14
14
  import { g as N } from "./sql-expr-service-accessors.js";
15
15
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
16
16
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
17
- v5.0.0-next.123 */
17
+ v5.0.0-next.125 */
18
18
  let h = new m();
19
19
  class C {
20
20
  constructor(e) {