@arcgis/coding-components 4.30.0-next.25 → 4.30.0-next.27
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.
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-ff18eae5.js → p-0968b99a.js} +1 -1
- package/dist/arcgis-coding-components/{p-739a390e.js → p-0997c147.js} +2 -2
- package/dist/arcgis-coding-components/{p-a6e0408e.js → p-176fbe3a.js} +2 -2
- package/dist/arcgis-coding-components/{p-c7e83e19.js → p-36409c26.js} +2 -2
- package/dist/arcgis-coding-components/{p-9a06d91e.js → p-3ecfbe64.js} +2 -2
- package/dist/arcgis-coding-components/{p-74c134b2.js → p-5ee7a335.js} +3 -3
- package/dist/arcgis-coding-components/{p-4e4ccb22.js → p-7557110d.js} +2 -2
- package/dist/arcgis-coding-components/{p-17d15cb9.js → p-7832d4e3.js} +10 -10
- package/dist/arcgis-coding-components/{p-921150b1.js → p-8f28b055.js} +2 -2
- package/dist/arcgis-coding-components/{p-05243ae4.js → p-9510179f.js} +2 -2
- package/dist/arcgis-coding-components/{p-904f5ed9.js → p-9f624a31.js} +1 -1
- package/dist/arcgis-coding-components/p-d21d9b5f.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-ffcc7148.js → p-d9820705.js} +2 -2
- package/dist/arcgis-coding-components/{p-3580fa60.js → p-eaa0bf5b.js} +2 -2
- package/dist/arcgis-coding-components/{p-289b8437.js → p-f7149a66.js} +2 -2
- package/dist/cjs/{Accessor-K5EEI5WT-b88fc2a4.js → Accessor-WJXOYV5M-e2997df4.js} +57 -57
- package/dist/cjs/{arcade-defaults-c2ec41d1.js → arcade-defaults-babb1084.js} +10 -10
- package/dist/cjs/{arcade-mode-40fb726f.js → arcade-mode-4917ff5e.js} +3 -3
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +13 -15
- package/dist/cjs/arcgis-coding-components.cjs.js +2 -2
- package/dist/cjs/{chunk-K5OO3GAM-c5c3bfaa.js → chunk-5SWTJIOL-f951a532.js} +17 -17
- package/dist/cjs/{css-ab107194.js → css-ea659b5a.js} +1 -1
- package/dist/cjs/{cssMode-bb08e5bd.js → cssMode-d4112185.js} +3 -3
- package/dist/cjs/{decorators-ROXODUND-78fa07c2.js → decorators-DEHOP47G-97336336.js} +15 -15
- package/dist/cjs/{html-46ea7730.js → html-1c3f7a48.js} +3 -3
- package/dist/cjs/{htmlMode-d7b93ee9.js → htmlMode-60f261d2.js} +3 -3
- package/dist/cjs/{index-4c8629ad.js → index-155894a5.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-5c13b787.js → javascript-b38865a5.js} +4 -4
- package/dist/cjs/{jsonMode-15e0e9ae.js → jsonMode-8e0c8101.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{tsMode-8d8f7ea4.js → tsMode-94bb36a0.js} +3 -3
- package/dist/cjs/{typescript-36035fea.js → typescript-01a1b140.js} +3 -3
- package/dist/components/{Accessor-K5EEI5WT.js → Accessor-WJXOYV5M.js} +2 -2
- package/dist/components/arcade-api.js +2 -2
- package/dist/components/arcade-contribution.js +1 -1
- package/dist/components/arcade-defaults.js +1 -1
- package/dist/components/arcade-mode.js +1 -1
- package/dist/components/arcade-results.js +2 -2
- package/dist/components/arcade-suggestions.js +2 -2
- package/dist/components/arcade-variables.js +2 -2
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +3 -3
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-variables.js +1 -1
- package/dist/components/arcgis-assets.d.ts +1 -1
- package/dist/components/arcgis-assets.js +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/{chunk-CUKUHPDJ.js → chunk-544ZT4QT.js} +3 -3
- package/dist/{esm/chunk-K5OO3GAM-75615e96.js → components/chunk-5SWTJIOL.js} +17 -17
- package/dist/components/code-editor.js +1 -1
- package/dist/components/{decorators-ROXODUND.js → decorators-DEHOP47G.js} +3 -3
- package/dist/components/fields.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/markdown.js +7 -9
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{Accessor-K5EEI5WT-0598ef2e.js → Accessor-WJXOYV5M-ef61336a.js} +2 -2
- package/dist/esm/{arcade-defaults-f6090fed.js → arcade-defaults-203e2665.js} +10 -10
- package/dist/esm/{arcade-mode-0ad4cb23.js → arcade-mode-c9190d33.js} +3 -3
- package/dist/esm/arcgis-arcade-api_6.entry.js +13 -15
- package/dist/esm/arcgis-coding-components.js +3 -3
- package/dist/{components/chunk-K5OO3GAM.js → esm/chunk-5SWTJIOL-19f3e69a.js} +17 -17
- package/dist/esm/{css-93582172.js → css-4d290703.js} +1 -1
- package/dist/esm/{cssMode-2c7cb3f0.js → cssMode-0a1227f2.js} +3 -3
- package/dist/esm/{decorators-ROXODUND-72a4f40b.js → decorators-DEHOP47G-8805d39d.js} +3 -3
- package/dist/esm/{html-f45b866f.js → html-6fce09a6.js} +3 -3
- package/dist/esm/{htmlMode-1f7f702f.js → htmlMode-573fff22.js} +3 -3
- package/dist/esm/{index-04501a90.js → index-7268f84b.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-6d22b317.js → javascript-c77dc5f3.js} +4 -4
- package/dist/esm/{jsonMode-8d42c2c3.js → jsonMode-834c0690.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{tsMode-5603cacf.js → tsMode-deb4f257.js} +3 -3
- package/dist/esm/{typescript-6dbe886a.js → typescript-ee9c3d05.js} +3 -3
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/package.json +11 -11
- package/dist/arcgis-coding-components/p-df9c7278.entry.js +0 -6
- /package/dist/types/data/{arcgis-web-compoments/actions-runner-1 → 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 +0 -0
- /package/dist/types/data/{arcgis-web-compoments/actions-runner-1 → 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 +0 -0
- /package/dist/types/data/{arcgis-web-compoments/actions-runner-1 → actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/reference/stories/arcade-editor.stories.d.ts +0 -0
|
@@ -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.
|
|
4
|
+
* v4.30.0-next.27
|
|
5
5
|
*/
|
|
6
|
-
import{conf as e,language as t}from"./p-
|
|
6
|
+
import{conf as e,language as t}from"./p-8f28b055.js";import"./p-7832d4e3.js";import"./p-0968b99a.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -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.
|
|
4
|
+
* v4.30.0-next.27
|
|
5
5
|
*/
|
|
6
|
-
import{u as t}from"./p-
|
|
6
|
+
import{u as t}from"./p-7832d4e3.js";import"./p-0968b99a.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -1,6 +1,6 @@
|
|
|
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.
|
|
4
|
+
* v4.30.0-next.27
|
|
5
5
|
*/
|
|
6
|
-
import{w as e,e as t,M as s,R as n,l as r,x as i,E as o}from"./p-17d15cb9.js";import"./p-ff18eae5.js";var a=[[],[],[]];["++","--"].forEach((e=>a[e.length-1]?.push(e))),["-","+","!","~"].forEach((e=>a[e.length-1]?.push(e))),["||","&&"].forEach((e=>a[e.length-1]?.push(e))),["=","/=","*=","%=","+=","-="].forEach((e=>a[e.length-1]?.push(e))),["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"].forEach((e=>a[e.length-1]?.push(e)));var c=Object.values({Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"});Object.values({False:"false",Null:"null",True:"true"}).map((t=>({label:t,kind:e.CompletionItemKind.Constant}))),c.map((t=>({label:t,kind:e.CompletionItemKind.Keyword})));const u={wordPattern:/(-?\d*\.\d\w*)|([^`~!#%\^&\*\(\)\-=\+\[\{\]\}\\\|;:'",\.<>\/\?\s]+)/gu,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]}],autoCloseBefore:";:.,=}])` \n\t",folding:{markers:{start:/^\s*\/\/\s*#?region\b/u,end:/^\s*\/\/\s*#?endregion\b/u}},indentationRules:{decreaseIndentPattern:/^((?!.*?\/\*).*\*\/)?\s*[\}\]\)].*$/u,increaseIndentPattern:/^((?!\/\/).)*(\{[^}"'`]*|\([^)"'`]*|\[[^\]"'`]*)$/u}},l={defaultToken:"invalid",tokenPostfix:".arc",ignoreCase:!0,keywords:c.filter((e=>"from"!==e)),operators:["<=",">=","==","!=","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","=","+=","-=","*=","**=","/=","%="],constants:["true","false","null"],symbols:/[=><!~?:&|+\-*\/\^%]+/u,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/u,digits:/\d+(_+\d+)*/u,octaldigits:/[0-7]+(_+[0-7]+)*/u,binarydigits:/[0-1]+(_+[0-1]+)*/u,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/u,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/u,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/u,tokenizer:{root:[[/[{}]/u,"delimiter.bracket"],{include:"common"}],common:[[/import(?=\s)/u,{token:"keyword",next:"@import"}],[/[a-z_$][\w$]*/u,{cases:{"@constants":"constant","@keywords":"keyword","@default":"identifier"}}],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|\/|,|\)|\]|\}|$))/u,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/u,"@brackets"],[/[<>](?!@symbols)/u,"@brackets"],[/@symbols/u,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/u,"number"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/u,"number"],[/0[xX](@hexdigits)/u,"number"],[/0[oO]?(@octaldigits)/u,"number"],[/0[bB](@binarydigits)/u,"number"],[/(@digits)/u,"number"],[/[;,.]/u,"delimiter"],[/"([^"\\]|\\.)*$/u,"string.invalid"],[/'([^'\\]|\\.)*$/u,"string.invalid"],[/"/u,"string","@string_double"],[/'/u,"string","@string_single"],[/`/u,"string","@string_backtick"]],import:[[/import(?=\s)/u,{token:"keyword"}],{include:"@whitespace"},[/[a-z_$][\w$]*/u,"identifier"],{include:"@whitespace"},[/from/u,{token:"keyword",next:"@popall"}]],whitespace:[[/[ \t\r\n]+/u,""],[/\/\*/u,"comment","@comment"],[/\/\/.*$/u,"comment"]],comment:[[/[^\/*]+/u,"comment"],[/\*\//u,"comment","@pop"],[/[\/*]/u,"comment"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/u,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/u,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/u,["regexp.escape.control","regexp.escape.control"]],[/[()]/u,"regexp.escape.control"],[/@regexpctl/u,"regexp.escape.control"],[/[^\\\/]/u,"regexp"],[/@regexpesc/u,"regexp.escape"],[/\\\./u,"regexp.invalid"],[/(\/)([gimsuy]*)/u,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/u,"regexp.escape.control"],[/\^/u,"regexp.invalid"],[/@regexpesc/u,"regexp.escape"],[/[^\]]/u,"regexp"],[/\]/u,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/"/u,"string","@pop"]],string_single:[[/[^\\']+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/'/u,"string","@pop"]],string_backtick:[[/\$\{/u,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/`/u,"string","@pop"]],bracketCounting:[[/\{/u,"delimiter.bracket","@bracketCounting"],[/\}/u,"delimiter.bracket","@pop"],{include:"common"}]}};class g{constructor(e,s,{defaults:n,diagnosticsService:r}){this._languageId=e,this._worker=s,this._disposables=[],this._listener=new Map,this._diagnosticsService=r,this._defaults=n;const o=e=>{const t=e.getLanguageId();if(t!==this._languageId)return;const s=i((()=>{this._doValidate(e,t).catch((e=>{throw e}))}));this._listener.set(e.uri.toString(),e.onDidChangeContent(s)),this._doValidate(e,t).catch(console.error)},a=e=>{const s=e.uri.toString();t.setModelMarkers(e,this._languageId,[]);const n=this._listener.get(s);n&&(n.dispose(),this._listener.delete(s))};this._disposables.push(t.onDidCreateModel(o)),this._disposables.push(t.onWillDisposeModel((e=>{a(e)}))),this._disposables.push(t.onDidChangeModelLanguage((e=>{a(e.model),o(e.model)}))),this._disposables.push(n.onDidChange((()=>{t.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(a(e),o(e))}))}))),this._disposables.push(n.onModelContextDidChange((e=>{t.getModels().forEach((t=>{t.getLanguageId()===this._languageId&&t.uri.toString()===e&&this._doValidate(t,this._languageId).catch(console.error)}))}))),this._disposables.push({dispose:()=>{this._listener.forEach((e=>e.dispose())),this._listener.clear()}}),t.getModels().forEach(o)}dispose(){this._disposables.forEach((e=>e.dispose())),this._disposables=[]}async _doValidate(e,s){if(e.isAttachedToEditor())try{const n=await this._worker(e.uri),r=this._defaults.getApiContextForModel(e.uri),i=await n.doValidation(e.uri.toString(),r),o=i.map((e=>{return{severity:p((t=e).severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message};var t}));this._diagnosticsService.fireDiagnosticsChange(e.uri,i),t.setModelMarkers(e,s,o)}catch(e){console.error(e)}}}function p(t){switch(t){case e.DiagnosticSeverity.Error:return s.Error;case e.DiagnosticSeverity.Warning:return s.Warning;case e.DiagnosticSeverity.Information:return s.Info;case e.DiagnosticSeverity.Hint:return s.Hint;default:return s.Info}}function d(e){return new n(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function h(e){return{range:d(e.range),text:e.newText}}function m(t){const s=r.CompletionItemKind;switch(t){case e.CompletionItemKind.Text:return s.Text;case e.CompletionItemKind.Method:return s.Method;case e.CompletionItemKind.Function:return s.Function;case e.CompletionItemKind.Constructor:return s.Constructor;case e.CompletionItemKind.Field:return s.Field;case e.CompletionItemKind.Variable:return s.Variable;case e.CompletionItemKind.Class:return s.Class;case e.CompletionItemKind.Interface:return s.Interface;case e.CompletionItemKind.Module:return s.Module;case e.CompletionItemKind.Property:return s.Property;case e.CompletionItemKind.Unit:return s.Unit;case e.CompletionItemKind.Value:return s.Value;case e.CompletionItemKind.Enum:return s.Enum;case e.CompletionItemKind.Keyword:return s.Keyword;case e.CompletionItemKind.Snippet:return s.Snippet;case e.CompletionItemKind.Color:return s.Color;case e.CompletionItemKind.File:return s.File;case e.CompletionItemKind.Reference:return s.Reference;case e.CompletionItemKind.Folder:return s.Folder;case e.CompletionItemKind.EnumMember:return s.EnumMember;case e.CompletionItemKind.Constant:return s.Constant;case e.CompletionItemKind.Struct:return s.Struct;case e.CompletionItemKind.Event:return s.Event;case e.CompletionItemKind.Operator:return s.Operator;case e.CompletionItemKind.TypeParameter:return s.TypeParameter;default:return s.Property}}class x{constructor(e,t){this._worker=e,this._defaults=t,this.triggerCharacters=[".","("]}async provideCompletionItems(t,s){const i=await this._worker(t.uri),o=this._defaults.getApiContextForModel(t.uri),a=await i.doComplete(t.uri.toString(),function(e){return{character:e.column-1,line:e.lineNumber-1}}(s),o),c=t.getWordUntilPosition(s),u=new n(s.lineNumber,c.startColumn,s.lineNumber,c.endColumn),l=a.items.map((t=>{const s={label:t.label,insertText:t.insertText||t.label,sortText:t.sortText,filterText:t.filterText,detail:t.detail,range:u,kind:m(t.kind)};var n;return t.textEdit&&(s.range=void 0!==(n=t.textEdit).insert&&void 0!==n.replace?{insert:d(t.textEdit.insert),replace:d(t.textEdit.replace)}:d(t.textEdit.range),s.insertText=t.textEdit.newText),t.additionalTextEdits&&(s.additionalTextEdits=t.additionalTextEdits.map(h)),t.insertTextFormat===e.InsertTextFormat.Snippet&&(s.insertTextRules=r.CompletionItemInsertTextRule.InsertAsSnippet),t.documentation&&(s.documentation="string"==typeof t.documentation?t.documentation:{supportThemeIcons:!1,value:t.documentation.value,supportHtml:!0}),s}));return{incomplete:a.isIncomplete,suggestions:l}}}class f{constructor(e,t){this._worker=e,this._defaults=t}async provideDocumentFormattingEdits(e){const t=await this._worker(e.uri),s=this._defaults.getApiContextForModel(e.uri.toString());return(await t.doFormat(e.uri.toString(),s)).map((e=>({range:d(e.range),text:e.newText})))}}class k{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this.stopWorker()))}dispose(){this._configChangeListener.dispose(),this.stopWorker()}stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _getClientProxy(){if(!this._client){const{languageId:e,languageOptions:s}=this._defaults;this._worker=t.createWebWorker({moduleId:"ArcadeWorker",label:e,createData:{languageId:e,languageOptions:s}}),this._client=this._worker.getProxy()}return await this._client}async getLanguageServiceWorker(...e){const t=await this._getClientProxy();return await(this._worker?.withSyncedResources(e)),t}}let b;async function w(...e){return await new Promise(((t,s)=>{b?t(b(...e)):s(new Error("TypeScript not registered!"))}))}const y=new class{constructor(){this._onDiagnosticsChange=new o}get onDiagnosticsChange(){return this._onDiagnosticsChange.event}fireDiagnosticsChange(e,t){this._onDiagnosticsChange.fire({uri:e,diagnostics:t})}};function v(){return y}function C(e){const t=new k(e),s=async(...e)=>await t.getLanguageServiceWorker(...e);b=s,r.setMonarchTokensProvider(e.languageId,l),r.setLanguageConfiguration(e.languageId,u),r.registerCompletionItemProvider(e.languageId,new x(s,e)),r.registerDocumentFormattingEditProvider(e.languageId,new f(s,e)),new g(e.languageId,s,{defaults:e,diagnosticsService:y})}export{v as getArcadeDiagnosticService,w as getArcadeWorker,C as setupMode}
|
|
6
|
+
import{w as e,e as t,M as s,R as n,l as r,x as i,E as o}from"./p-7832d4e3.js";import"./p-0968b99a.js";var a=[[],[],[]];["++","--"].forEach((e=>a[e.length-1]?.push(e))),["-","+","!","~"].forEach((e=>a[e.length-1]?.push(e))),["||","&&"].forEach((e=>a[e.length-1]?.push(e))),["=","/=","*=","%=","+=","-="].forEach((e=>a[e.length-1]?.push(e))),["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"].forEach((e=>a[e.length-1]?.push(e)));var c=Object.values({Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"});Object.values({False:"false",Null:"null",True:"true"}).map((t=>({label:t,kind:e.CompletionItemKind.Constant}))),c.map((t=>({label:t,kind:e.CompletionItemKind.Keyword})));const u={wordPattern:/(-?\d*\.\d\w*)|([^`~!#%\^&\*\(\)\-=\+\[\{\]\}\\\|;:'",\.<>\/\?\s]+)/gu,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]}],autoCloseBefore:";:.,=}])` \n\t",folding:{markers:{start:/^\s*\/\/\s*#?region\b/u,end:/^\s*\/\/\s*#?endregion\b/u}},indentationRules:{decreaseIndentPattern:/^((?!.*?\/\*).*\*\/)?\s*[\}\]\)].*$/u,increaseIndentPattern:/^((?!\/\/).)*(\{[^}"'`]*|\([^)"'`]*|\[[^\]"'`]*)$/u}},l={defaultToken:"invalid",tokenPostfix:".arc",ignoreCase:!0,keywords:c.filter((e=>"from"!==e)),operators:["<=",">=","==","!=","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","=","+=","-=","*=","**=","/=","%="],constants:["true","false","null"],symbols:/[=><!~?:&|+\-*\/\^%]+/u,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/u,digits:/\d+(_+\d+)*/u,octaldigits:/[0-7]+(_+[0-7]+)*/u,binarydigits:/[0-1]+(_+[0-1]+)*/u,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/u,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/u,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/u,tokenizer:{root:[[/[{}]/u,"delimiter.bracket"],{include:"common"}],common:[[/import(?=\s)/u,{token:"keyword",next:"@import"}],[/[a-z_$][\w$]*/u,{cases:{"@constants":"constant","@keywords":"keyword","@default":"identifier"}}],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|\/|,|\)|\]|\}|$))/u,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/u,"@brackets"],[/[<>](?!@symbols)/u,"@brackets"],[/@symbols/u,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/u,"number"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/u,"number"],[/0[xX](@hexdigits)/u,"number"],[/0[oO]?(@octaldigits)/u,"number"],[/0[bB](@binarydigits)/u,"number"],[/(@digits)/u,"number"],[/[;,.]/u,"delimiter"],[/"([^"\\]|\\.)*$/u,"string.invalid"],[/'([^'\\]|\\.)*$/u,"string.invalid"],[/"/u,"string","@string_double"],[/'/u,"string","@string_single"],[/`/u,"string","@string_backtick"]],import:[[/import(?=\s)/u,{token:"keyword"}],{include:"@whitespace"},[/[a-z_$][\w$]*/u,"identifier"],{include:"@whitespace"},[/from/u,{token:"keyword",next:"@popall"}]],whitespace:[[/[ \t\r\n]+/u,""],[/\/\*/u,"comment","@comment"],[/\/\/.*$/u,"comment"]],comment:[[/[^\/*]+/u,"comment"],[/\*\//u,"comment","@pop"],[/[\/*]/u,"comment"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/u,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/u,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/u,["regexp.escape.control","regexp.escape.control"]],[/[()]/u,"regexp.escape.control"],[/@regexpctl/u,"regexp.escape.control"],[/[^\\\/]/u,"regexp"],[/@regexpesc/u,"regexp.escape"],[/\\\./u,"regexp.invalid"],[/(\/)([gimsuy]*)/u,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/u,"regexp.escape.control"],[/\^/u,"regexp.invalid"],[/@regexpesc/u,"regexp.escape"],[/[^\]]/u,"regexp"],[/\]/u,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/"/u,"string","@pop"]],string_single:[[/[^\\']+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/'/u,"string","@pop"]],string_backtick:[[/\$\{/u,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/`/u,"string","@pop"]],bracketCounting:[[/\{/u,"delimiter.bracket","@bracketCounting"],[/\}/u,"delimiter.bracket","@pop"],{include:"common"}]}};class g{constructor(e,s,{defaults:n,diagnosticsService:r}){this._languageId=e,this._worker=s,this._disposables=[],this._listener=new Map,this._diagnosticsService=r,this._defaults=n;const o=e=>{const t=e.getLanguageId();if(t!==this._languageId)return;const s=i((()=>{this._doValidate(e,t).catch((e=>{throw e}))}));this._listener.set(e.uri.toString(),e.onDidChangeContent(s)),this._doValidate(e,t).catch(console.error)},a=e=>{const s=e.uri.toString();t.setModelMarkers(e,this._languageId,[]);const n=this._listener.get(s);n&&(n.dispose(),this._listener.delete(s))};this._disposables.push(t.onDidCreateModel(o)),this._disposables.push(t.onWillDisposeModel((e=>{a(e)}))),this._disposables.push(t.onDidChangeModelLanguage((e=>{a(e.model),o(e.model)}))),this._disposables.push(n.onDidChange((()=>{t.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(a(e),o(e))}))}))),this._disposables.push(n.onModelContextDidChange((e=>{t.getModels().forEach((t=>{t.getLanguageId()===this._languageId&&t.uri.toString()===e&&this._doValidate(t,this._languageId).catch(console.error)}))}))),this._disposables.push({dispose:()=>{this._listener.forEach((e=>e.dispose())),this._listener.clear()}}),t.getModels().forEach(o)}dispose(){this._disposables.forEach((e=>e.dispose())),this._disposables=[]}async _doValidate(e,s){if(e.isAttachedToEditor())try{const n=await this._worker(e.uri),r=this._defaults.getApiContextForModel(e.uri),i=await n.doValidation(e.uri.toString(),r),o=i.map((e=>{return{severity:p((t=e).severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message};var t}));this._diagnosticsService.fireDiagnosticsChange(e.uri,i),t.setModelMarkers(e,s,o)}catch(e){console.error(e)}}}function p(t){switch(t){case e.DiagnosticSeverity.Error:return s.Error;case e.DiagnosticSeverity.Warning:return s.Warning;case e.DiagnosticSeverity.Information:return s.Info;case e.DiagnosticSeverity.Hint:return s.Hint;default:return s.Info}}function d(e){return new n(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function h(e){return{range:d(e.range),text:e.newText}}function m(t){const s=r.CompletionItemKind;switch(t){case e.CompletionItemKind.Text:return s.Text;case e.CompletionItemKind.Method:return s.Method;case e.CompletionItemKind.Function:return s.Function;case e.CompletionItemKind.Constructor:return s.Constructor;case e.CompletionItemKind.Field:return s.Field;case e.CompletionItemKind.Variable:return s.Variable;case e.CompletionItemKind.Class:return s.Class;case e.CompletionItemKind.Interface:return s.Interface;case e.CompletionItemKind.Module:return s.Module;case e.CompletionItemKind.Property:return s.Property;case e.CompletionItemKind.Unit:return s.Unit;case e.CompletionItemKind.Value:return s.Value;case e.CompletionItemKind.Enum:return s.Enum;case e.CompletionItemKind.Keyword:return s.Keyword;case e.CompletionItemKind.Snippet:return s.Snippet;case e.CompletionItemKind.Color:return s.Color;case e.CompletionItemKind.File:return s.File;case e.CompletionItemKind.Reference:return s.Reference;case e.CompletionItemKind.Folder:return s.Folder;case e.CompletionItemKind.EnumMember:return s.EnumMember;case e.CompletionItemKind.Constant:return s.Constant;case e.CompletionItemKind.Struct:return s.Struct;case e.CompletionItemKind.Event:return s.Event;case e.CompletionItemKind.Operator:return s.Operator;case e.CompletionItemKind.TypeParameter:return s.TypeParameter;default:return s.Property}}class x{constructor(e,t){this._worker=e,this._defaults=t,this.triggerCharacters=[".","("]}async provideCompletionItems(t,s){const i=await this._worker(t.uri),o=this._defaults.getApiContextForModel(t.uri),a=await i.doComplete(t.uri.toString(),function(e){return{character:e.column-1,line:e.lineNumber-1}}(s),o),c=t.getWordUntilPosition(s),u=new n(s.lineNumber,c.startColumn,s.lineNumber,c.endColumn),l=a.items.map((t=>{const s={label:t.label,insertText:t.insertText||t.label,sortText:t.sortText,filterText:t.filterText,detail:t.detail,range:u,kind:m(t.kind)};var n;return t.textEdit&&(s.range=void 0!==(n=t.textEdit).insert&&void 0!==n.replace?{insert:d(t.textEdit.insert),replace:d(t.textEdit.replace)}:d(t.textEdit.range),s.insertText=t.textEdit.newText),t.additionalTextEdits&&(s.additionalTextEdits=t.additionalTextEdits.map(h)),t.insertTextFormat===e.InsertTextFormat.Snippet&&(s.insertTextRules=r.CompletionItemInsertTextRule.InsertAsSnippet),t.documentation&&(s.documentation="string"==typeof t.documentation?t.documentation:{supportThemeIcons:!1,value:t.documentation.value,supportHtml:!0}),s}));return{incomplete:a.isIncomplete,suggestions:l}}}class f{constructor(e,t){this._worker=e,this._defaults=t}async provideDocumentFormattingEdits(e){const t=await this._worker(e.uri),s=this._defaults.getApiContextForModel(e.uri.toString());return(await t.doFormat(e.uri.toString(),s)).map((e=>({range:d(e.range),text:e.newText})))}}class k{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this.stopWorker()))}dispose(){this._configChangeListener.dispose(),this.stopWorker()}stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _getClientProxy(){if(!this._client){const{languageId:e,languageOptions:s}=this._defaults;this._worker=t.createWebWorker({moduleId:"ArcadeWorker",label:e,createData:{languageId:e,languageOptions:s}}),this._client=this._worker.getProxy()}return await this._client}async getLanguageServiceWorker(...e){const t=await this._getClientProxy();return await(this._worker?.withSyncedResources(e)),t}}let b;async function w(...e){return await new Promise(((t,s)=>{b?t(b(...e)):s(new Error("TypeScript not registered!"))}))}const y=new class{constructor(){this._onDiagnosticsChange=new o}get onDiagnosticsChange(){return this._onDiagnosticsChange.event}fireDiagnosticsChange(e,t){this._onDiagnosticsChange.fire({uri:e,diagnostics:t})}};function v(){return y}function C(e){const t=new k(e),s=async(...e)=>await t.getLanguageServiceWorker(...e);b=s,r.setMonarchTokensProvider(e.languageId,l),r.setLanguageConfiguration(e.languageId,u),r.registerCompletionItemProvider(e.languageId,new x(s,e)),r.registerDocumentFormattingEditProvider(e.languageId,new f(s,e)),new g(e.languageId,s,{defaults:e,diagnosticsService:y})}export{v as getArcadeDiagnosticService,w as getArcadeWorker,C as setupMode}
|
|
@@ -1,11 +1,11 @@
|
|
|
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.
|
|
4
|
+
* v4.30.0-next.27
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const chunk5SWTJIOL = require('./chunk-5SWTJIOL-f951a532.js');
|
|
9
9
|
|
|
10
10
|
// ../../../node_modules/@arcgis/core/core/ObjectPool.js
|
|
11
11
|
function t$3(t2) {
|
|
@@ -117,7 +117,7 @@ var e$1 = 1.1;
|
|
|
117
117
|
var l$1 = class {
|
|
118
118
|
constructor(h) {
|
|
119
119
|
this.data = [], this._length = 0, this._allocator = void 0, this._deallocator = () => null, this._shrink = () => {
|
|
120
|
-
}, this._hint = new
|
|
120
|
+
}, this._hint = new chunk5SWTJIOL.v(), h && (h.initialSize && (this.data = new Array(h.initialSize)), h.allocator && (this._allocator = h.allocator), void 0 !== h.deallocator && (this._deallocator = h.deallocator), h.shrink && (this._shrink = () => n(this)));
|
|
121
121
|
}
|
|
122
122
|
toArray() {
|
|
123
123
|
return this.data.slice(0, this.length);
|
|
@@ -188,19 +188,19 @@ var l$1 = class {
|
|
|
188
188
|
return this.length = this.length - 1, this._shrink(), t2;
|
|
189
189
|
}
|
|
190
190
|
remove(t2) {
|
|
191
|
-
const i =
|
|
191
|
+
const i = chunk5SWTJIOL.S(this.data, t2, this.length, this._hint);
|
|
192
192
|
if (-1 !== i)
|
|
193
193
|
return this.data.splice(i, 1), this.length = this.length - 1, t2;
|
|
194
194
|
}
|
|
195
195
|
removeUnordered(t2) {
|
|
196
|
-
return this.removeUnorderedIndex(
|
|
196
|
+
return this.removeUnorderedIndex(chunk5SWTJIOL.S(this.data, t2, this.length, this._hint));
|
|
197
197
|
}
|
|
198
198
|
removeUnorderedIndex(t2) {
|
|
199
199
|
if (!(t2 >= this.length || t2 < 0))
|
|
200
200
|
return this.swapElements(t2, this.length - 1), this.pop();
|
|
201
201
|
}
|
|
202
202
|
removeUnorderedMany(t2, h = t2.length, s) {
|
|
203
|
-
this.length =
|
|
203
|
+
this.length = chunk5SWTJIOL.j(this.data, t2, this.length, h, this._hint, s), this._shrink();
|
|
204
204
|
}
|
|
205
205
|
front() {
|
|
206
206
|
if (0 !== this.length)
|
|
@@ -444,13 +444,13 @@ function n2(n6, t11, i6 = false) {
|
|
|
444
444
|
r9 || (r9 = /* @__PURE__ */ new Set(), e3.set(n6, r9)), r9.has(t11) || (r9.add(t11), n6.warn(o9));
|
|
445
445
|
}
|
|
446
446
|
function i2(e9, n6, t11 = {}) {
|
|
447
|
-
if (
|
|
447
|
+
if (chunk5SWTJIOL.has("esri-deprecation-warnings")) {
|
|
448
448
|
const { moduleName: i6 } = t11;
|
|
449
449
|
r3(e9, `Function: ${(i6 ? i6 + "::" : "") + n6 + "()"}`, t11);
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
function r3(e9, t11, i6 = {}) {
|
|
453
|
-
if (
|
|
453
|
+
if (chunk5SWTJIOL.has("esri-deprecation-warnings")) {
|
|
454
454
|
const { replacement: o9, version: r9, see: a3, warnOnce: s6 } = i6;
|
|
455
455
|
let c3 = t11;
|
|
456
456
|
o9 && (c3 += `
|
|
@@ -466,7 +466,7 @@ var s2 = class {
|
|
|
466
466
|
this._observers = r9, this._observer = s6;
|
|
467
467
|
}
|
|
468
468
|
remove() {
|
|
469
|
-
|
|
469
|
+
chunk5SWTJIOL.O(this._observers, this._observer);
|
|
470
470
|
}
|
|
471
471
|
};
|
|
472
472
|
|
|
@@ -525,7 +525,7 @@ var r4 = class {
|
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
};
|
|
528
|
-
var t3 =
|
|
528
|
+
var t3 = chunk5SWTJIOL.e();
|
|
529
529
|
|
|
530
530
|
// ../../../node_modules/@arcgis/core/core/accessorSupport/PropertyOrigin.js
|
|
531
531
|
var e4;
|
|
@@ -574,24 +574,24 @@ function t4(r9) {
|
|
|
574
574
|
// ../../../node_modules/@arcgis/core/core/accessorSupport/Property.js
|
|
575
575
|
var o4 = class extends r4 {
|
|
576
576
|
constructor(t11, s6) {
|
|
577
|
-
super(), this.propertyName = t11, this.metadata = s6, this._accessed = null, this._handles = null, this.flags = 0, this.flags =
|
|
577
|
+
super(), this.propertyName = t11, this.metadata = s6, this._accessed = null, this._handles = null, this.flags = 0, this.flags = chunk5SWTJIOL.i.Dirty | (s6.nonNullable ? chunk5SWTJIOL.i.NonNullable : 0) | (s6.hasOwnProperty("value") ? chunk5SWTJIOL.i.HasDefaultValue : 0) | (void 0 === s6.get ? chunk5SWTJIOL.i.DepTrackingInitialized : 0) | (void 0 === s6.dependsOn ? chunk5SWTJIOL.i.AutoTracked : 0);
|
|
578
578
|
}
|
|
579
579
|
destroy() {
|
|
580
|
-
this.flags &
|
|
580
|
+
this.flags & chunk5SWTJIOL.i.Dirty && this.onCommitted(), super.destroy(), this._accessed = null, this._clearObservationHandles();
|
|
581
581
|
}
|
|
582
582
|
getComputed(t11) {
|
|
583
|
-
|
|
583
|
+
chunk5SWTJIOL.s3(this);
|
|
584
584
|
const o9 = t11.store, r9 = this.propertyName, h3 = this.flags, d2 = o9.get(r9);
|
|
585
|
-
if (h3 &
|
|
585
|
+
if (h3 & chunk5SWTJIOL.i.Computing)
|
|
586
586
|
return d2;
|
|
587
|
-
if (~h3 &
|
|
587
|
+
if (~h3 & chunk5SWTJIOL.i.Dirty && o9.has(r9))
|
|
588
588
|
return d2;
|
|
589
|
-
this.flags |=
|
|
589
|
+
this.flags |= chunk5SWTJIOL.i.Computing;
|
|
590
590
|
const c3 = t11.host;
|
|
591
591
|
let g5;
|
|
592
|
-
h3 &
|
|
592
|
+
h3 & chunk5SWTJIOL.i.AutoTracked ? g5 = chunk5SWTJIOL.f(this, this.metadata.get, c3) : (chunk5SWTJIOL.k2(c3, this), g5 = this.metadata.get.call(c3)), o9.set(r9, g5, e4.COMPUTED);
|
|
593
593
|
const f6 = o9.get(r9);
|
|
594
|
-
return f6 === d2 ? this.flags &= ~
|
|
594
|
+
return f6 === d2 ? this.flags &= ~chunk5SWTJIOL.i.Dirty : chunk5SWTJIOL.g(this.commit, this), this.flags &= ~chunk5SWTJIOL.i.Computing, f6;
|
|
595
595
|
}
|
|
596
596
|
onObservableAccessed(t11) {
|
|
597
597
|
if (t11 === this)
|
|
@@ -604,7 +604,7 @@ var o4 = class extends r4 {
|
|
|
604
604
|
s6.push(t11);
|
|
605
605
|
}
|
|
606
606
|
onTrackingEnd() {
|
|
607
|
-
this._clearObservationHandles(), this.flags |=
|
|
607
|
+
this._clearObservationHandles(), this.flags |= chunk5SWTJIOL.i.DepTrackingInitialized;
|
|
608
608
|
const t11 = this._accessed;
|
|
609
609
|
if (null == t11 || 0 === t11.length)
|
|
610
610
|
return;
|
|
@@ -621,7 +621,7 @@ var o4 = class extends r4 {
|
|
|
621
621
|
this.onInvalidated();
|
|
622
622
|
}
|
|
623
623
|
commit() {
|
|
624
|
-
this.flags &= ~
|
|
624
|
+
this.flags &= ~chunk5SWTJIOL.i.Dirty, this.onCommitted();
|
|
625
625
|
}
|
|
626
626
|
_clearObservationHandles() {
|
|
627
627
|
const t11 = this._handles;
|
|
@@ -632,7 +632,7 @@ var o4 = class extends r4 {
|
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
onInvalidated() {
|
|
635
|
-
~this.flags &
|
|
635
|
+
~this.flags & chunk5SWTJIOL.i.Overridden && (this.flags |= chunk5SWTJIOL.i.Dirty);
|
|
636
636
|
const t11 = this._observers;
|
|
637
637
|
if (t11 && t11.length > 0)
|
|
638
638
|
for (const s6 of t11)
|
|
@@ -656,7 +656,7 @@ var t5 = class _t {
|
|
|
656
656
|
clone(s6) {
|
|
657
657
|
const r9 = new _t();
|
|
658
658
|
return this._values.forEach((t11, i6) => {
|
|
659
|
-
s6 && s6.has(i6) || r9.set(i6,
|
|
659
|
+
s6 && s6.has(i6) || r9.set(i6, chunk5SWTJIOL.a2(t11));
|
|
660
660
|
}), r9;
|
|
661
661
|
}
|
|
662
662
|
get(e9) {
|
|
@@ -687,11 +687,11 @@ function f2(t11, e9, i6) {
|
|
|
687
687
|
return void 0 !== t11;
|
|
688
688
|
}
|
|
689
689
|
function d(t11, e9, s6, r9) {
|
|
690
|
-
return void 0 !== t11 && (!(null == s6 && t11.flags &
|
|
690
|
+
return void 0 !== t11 && (!(null == s6 && t11.flags & chunk5SWTJIOL.i.NonNullable) || (false));
|
|
691
691
|
}
|
|
692
692
|
var g2 = class {
|
|
693
693
|
constructor(t11) {
|
|
694
|
-
this.host = t11, this.propertiesByName = /* @__PURE__ */ new Map(), this.ctorArgs = null, this.lifecycle =
|
|
694
|
+
this.host = t11, this.propertiesByName = /* @__PURE__ */ new Map(), this.ctorArgs = null, this.lifecycle = chunk5SWTJIOL.I.INITIALIZING, this.store = new t5(), this._origin = e4.USER;
|
|
695
695
|
const e9 = this.host.constructor.__accessorMetadata__;
|
|
696
696
|
for (const i6 in e9) {
|
|
697
697
|
const t12 = new o4(i6, e9[i6]);
|
|
@@ -700,22 +700,22 @@ var g2 = class {
|
|
|
700
700
|
this.metadata = e9;
|
|
701
701
|
}
|
|
702
702
|
initialize() {
|
|
703
|
-
this.lifecycle =
|
|
703
|
+
this.lifecycle = chunk5SWTJIOL.I.CONSTRUCTING;
|
|
704
704
|
}
|
|
705
705
|
constructed() {
|
|
706
|
-
this.lifecycle =
|
|
706
|
+
this.lifecycle = chunk5SWTJIOL.I.CONSTRUCTED;
|
|
707
707
|
}
|
|
708
708
|
destroy() {
|
|
709
|
-
this.lifecycle =
|
|
709
|
+
this.lifecycle = chunk5SWTJIOL.I.DESTROYED, this.propertiesByName.forEach((t11) => t11.destroy());
|
|
710
710
|
}
|
|
711
711
|
get initialized() {
|
|
712
|
-
return this.lifecycle !==
|
|
712
|
+
return this.lifecycle !== chunk5SWTJIOL.I.INITIALIZING;
|
|
713
713
|
}
|
|
714
714
|
get(t11) {
|
|
715
715
|
const e9 = this.propertiesByName.get(t11);
|
|
716
716
|
if (e9.metadata.get)
|
|
717
717
|
return e9.getComputed(this);
|
|
718
|
-
|
|
718
|
+
chunk5SWTJIOL.s3(e9);
|
|
719
719
|
const i6 = this.store;
|
|
720
720
|
return i6.has(t11) ? i6.get(t11) : e9.metadata.value;
|
|
721
721
|
}
|
|
@@ -723,7 +723,7 @@ var g2 = class {
|
|
|
723
723
|
const e9 = this.store.originOf(t11);
|
|
724
724
|
if (void 0 === e9) {
|
|
725
725
|
const e10 = this.propertiesByName.get(t11);
|
|
726
|
-
if (void 0 !== e10 && e10.flags &
|
|
726
|
+
if (void 0 !== e10 && e10.flags & chunk5SWTJIOL.i.HasDefaultValue)
|
|
727
727
|
return "defaults";
|
|
728
728
|
}
|
|
729
729
|
return t4(e9);
|
|
@@ -747,7 +747,7 @@ var g2 = class {
|
|
|
747
747
|
const r9 = this.propertiesByName.get(e9);
|
|
748
748
|
if (!f2(r9))
|
|
749
749
|
return "";
|
|
750
|
-
const o9 = /* @__PURE__ */ new Set(), a3 =
|
|
750
|
+
const o9 = /* @__PURE__ */ new Set(), a3 = chunk5SWTJIOL.f({ onObservableAccessed: (t12) => o9.add(t12), onTrackingEnd: () => {
|
|
751
751
|
} }, () => r9.metadata.get?.call(t11));
|
|
752
752
|
let n6 = `${i6}${t11.declaredClass.split(".").pop()}.${e9}: ${a3}
|
|
753
753
|
`;
|
|
@@ -769,11 +769,11 @@ var g2 = class {
|
|
|
769
769
|
}
|
|
770
770
|
isOverridden(t11) {
|
|
771
771
|
const e9 = this.propertiesByName.get(t11);
|
|
772
|
-
return void 0 !== e9 && !!(e9.flags &
|
|
772
|
+
return void 0 !== e9 && !!(e9.flags & chunk5SWTJIOL.i.Overridden);
|
|
773
773
|
}
|
|
774
774
|
clearOverride(t11) {
|
|
775
775
|
const e9 = this.propertiesByName.get(t11);
|
|
776
|
-
e9 && e9.flags &
|
|
776
|
+
e9 && e9.flags & chunk5SWTJIOL.i.Overridden && (e9.flags &= ~chunk5SWTJIOL.i.Overridden, e9.notifyChange());
|
|
777
777
|
}
|
|
778
778
|
override(t11, e9) {
|
|
779
779
|
const i6 = this.propertiesByName.get(t11);
|
|
@@ -786,7 +786,7 @@ var g2 = class {
|
|
|
786
786
|
return;
|
|
787
787
|
e9 = r9;
|
|
788
788
|
}
|
|
789
|
-
i6.flags |=
|
|
789
|
+
i6.flags |= chunk5SWTJIOL.i.Overridden, this._internalSet(i6, e9);
|
|
790
790
|
}
|
|
791
791
|
set(t11, e9) {
|
|
792
792
|
const i6 = this.propertiesByName.get(t11);
|
|
@@ -821,12 +821,12 @@ var g2 = class {
|
|
|
821
821
|
void 0 !== e9 && e9.commit();
|
|
822
822
|
}
|
|
823
823
|
_internalSet(t11, e9) {
|
|
824
|
-
const s6 = this.lifecycle !==
|
|
824
|
+
const s6 = this.lifecycle !== chunk5SWTJIOL.I.INITIALIZING ? this._origin : e4.DEFAULTS;
|
|
825
825
|
this._setAtOrigin(t11, e9, s6);
|
|
826
826
|
}
|
|
827
827
|
_setAtOrigin(e9, i6, s6) {
|
|
828
828
|
const r9 = this.store, o9 = e9.propertyName;
|
|
829
|
-
r9.has(o9, s6) &&
|
|
829
|
+
r9.has(o9, s6) && chunk5SWTJIOL.j$1(i6, r9.get(o9)) && ~e9.flags & chunk5SWTJIOL.i.Overridden && s6 === r9.originOf(o9) || (e9.invalidate(), r9.set(o9, i6, s6), e9.commit(), chunk5SWTJIOL.m(this.host, e9));
|
|
830
830
|
}
|
|
831
831
|
_cast(t11, e9) {
|
|
832
832
|
const i6 = u4.acquire();
|
|
@@ -972,12 +972,12 @@ function o8(u7, o9) {
|
|
|
972
972
|
if (l)
|
|
973
973
|
return void c2(a3);
|
|
974
974
|
const n6 = i6;
|
|
975
|
-
e9.clear(), l = true, s6 = true, i6 =
|
|
975
|
+
e9.clear(), l = true, s6 = true, i6 = chunk5SWTJIOL.f(e9, u7), s6 = false, l = false, o9(i6, n6), f4();
|
|
976
976
|
}
|
|
977
977
|
function m5() {
|
|
978
978
|
e9 && (e9.destroy(), e9 = null, i6 = null);
|
|
979
979
|
}
|
|
980
|
-
return s6 = true, i6 =
|
|
980
|
+
return s6 = true, i6 = chunk5SWTJIOL.f(e9, u7), s6 = false, chunk5SWTJIOL.e(m5);
|
|
981
981
|
}
|
|
982
982
|
function e8(l2, u7) {
|
|
983
983
|
let o9 = new t10(i6), e9 = null;
|
|
@@ -988,9 +988,9 @@ function e8(l2, u7) {
|
|
|
988
988
|
o9 && (o9.destroy(), o9 = null), e9 = null;
|
|
989
989
|
}
|
|
990
990
|
function f6() {
|
|
991
|
-
return o9 ? (o9.clear(), e9 =
|
|
991
|
+
return o9 ? (o9.clear(), e9 = chunk5SWTJIOL.f(o9, l2), e9) : null;
|
|
992
992
|
}
|
|
993
|
-
return f6(),
|
|
993
|
+
return f6(), chunk5SWTJIOL.e(c3);
|
|
994
994
|
}
|
|
995
995
|
function c2(n6) {
|
|
996
996
|
u6.includes(n6) || u6.unshift(n6);
|
|
@@ -1010,7 +1010,7 @@ var m3 = class {
|
|
|
1010
1010
|
this.uid = e6(), this.removed = false, this.type = null, this.oldValue = null, this.callback = null, this.getValue = null, this.target = null, this.path = null, this.equals = null;
|
|
1011
1011
|
}
|
|
1012
1012
|
static acquireUntracked(e9, t11, l2, o9, i6) {
|
|
1013
|
-
return this.pool.acquire(h2.Untracked, e9, t11, l2, o9, i6,
|
|
1013
|
+
return this.pool.acquire(h2.Untracked, e9, t11, l2, o9, i6, chunk5SWTJIOL.j$1);
|
|
1014
1014
|
}
|
|
1015
1015
|
static acquireTracked(e9, t11, r9, l2) {
|
|
1016
1016
|
return this.pool.acquire(h2.Tracked, e9, t11, r9, null, null, l2);
|
|
@@ -1068,27 +1068,27 @@ function V() {
|
|
|
1068
1068
|
}
|
|
1069
1069
|
var y2 = /* @__PURE__ */ new Set();
|
|
1070
1070
|
function T(e9, r9, l2) {
|
|
1071
|
-
let o9 =
|
|
1072
|
-
let i6, n6, s6 = e8(() =>
|
|
1073
|
-
e10.__accessor__?.lifecycle ===
|
|
1071
|
+
let o9 = chunk5SWTJIOL.p(e9, r9, l2, (e10, r10, l3) => {
|
|
1072
|
+
let i6, n6, s6 = e8(() => chunk5SWTJIOL.u(e10, r10), (t11, s7) => {
|
|
1073
|
+
e10.__accessor__?.lifecycle === chunk5SWTJIOL.I.DESTROYED || i6 && i6.uid !== n6 ? o9.remove() : (i6 || (i6 = m3.acquireUntracked(t11, l3, s7, e10, r10), n6 = i6.uid), _(i6));
|
|
1074
1074
|
});
|
|
1075
|
-
return
|
|
1075
|
+
return chunk5SWTJIOL.e(() => {
|
|
1076
1076
|
s6.remove(), i6 && (i6.uid !== n6 || i6.removed || (i6.removed = true, _(i6)), i6 = null), o9 = s6 = null;
|
|
1077
1077
|
});
|
|
1078
1078
|
});
|
|
1079
1079
|
return o9;
|
|
1080
1080
|
}
|
|
1081
1081
|
function E(e9, t11, l2) {
|
|
1082
|
-
const o9 =
|
|
1082
|
+
const o9 = chunk5SWTJIOL.p(e9, t11, l2, (e10, t12, l3) => {
|
|
1083
1083
|
let i6 = false;
|
|
1084
|
-
return o8(() =>
|
|
1085
|
-
e10.__accessor__.lifecycle !==
|
|
1084
|
+
return o8(() => chunk5SWTJIOL.u(e10, t12), (n6, s6) => {
|
|
1085
|
+
e10.__accessor__.lifecycle !== chunk5SWTJIOL.I.DESTROYED ? i6 || (i6 = true, chunk5SWTJIOL.j$1(s6, n6) || l3.call(e10, n6, s6, t12, e10), i6 = false) : o9.remove();
|
|
1086
1086
|
});
|
|
1087
1087
|
});
|
|
1088
1088
|
return o9;
|
|
1089
1089
|
}
|
|
1090
1090
|
function b(e9, r9, l2, o9 = false) {
|
|
1091
|
-
return e9.__accessor__ && e9.__accessor__.lifecycle !==
|
|
1091
|
+
return e9.__accessor__ && e9.__accessor__.lifecycle !== chunk5SWTJIOL.I.DESTROYED ? o9 ? E(e9, r9, l2) : T(e9, r9, l2) : chunk5SWTJIOL.e();
|
|
1092
1092
|
}
|
|
1093
1093
|
|
|
1094
1094
|
// ../../../node_modules/@arcgis/core/core/Accessor.js
|
|
@@ -1128,7 +1128,7 @@ var S2 = class _S {
|
|
|
1128
1128
|
super(...r10), this.inherited = null, s6 && s6.apply(this, r10);
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
1131
|
-
|
|
1131
|
+
chunk5SWTJIOL.r(i6.prototype);
|
|
1132
1132
|
for (const c3 in r9) {
|
|
1133
1133
|
const t12 = r9[c3];
|
|
1134
1134
|
i6.prototype[c3] = "function" == typeof t12 ? function(...r10) {
|
|
@@ -1148,9 +1148,9 @@ var S2 = class _S {
|
|
|
1148
1148
|
}
|
|
1149
1149
|
for (const c3 in t11) {
|
|
1150
1150
|
const r10 = f5(t11[c3]);
|
|
1151
|
-
|
|
1151
|
+
chunk5SWTJIOL.y(r10)(i6.prototype, c3);
|
|
1152
1152
|
}
|
|
1153
|
-
return
|
|
1153
|
+
return chunk5SWTJIOL.a7(e9)(i6);
|
|
1154
1154
|
}
|
|
1155
1155
|
constructor(...r9) {
|
|
1156
1156
|
if (this[y3] = null, this[m4] = false, this.constructor === _S)
|
|
@@ -1164,7 +1164,7 @@ var S2 = class _S {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
initialize() {
|
|
1166
1166
|
}
|
|
1167
|
-
[
|
|
1167
|
+
[chunk5SWTJIOL.o3]() {
|
|
1168
1168
|
this[v3] = u(this[v3]);
|
|
1169
1169
|
}
|
|
1170
1170
|
destroy() {
|
|
@@ -1180,13 +1180,13 @@ var S2 = class _S {
|
|
|
1180
1180
|
return this[g4];
|
|
1181
1181
|
}
|
|
1182
1182
|
get destroyed() {
|
|
1183
|
-
return this.__accessor__?.lifecycle ===
|
|
1183
|
+
return this.__accessor__?.lifecycle === chunk5SWTJIOL.I.DESTROYED || false;
|
|
1184
1184
|
}
|
|
1185
1185
|
commitProperty(r9) {
|
|
1186
|
-
|
|
1186
|
+
chunk5SWTJIOL.o2(this, r9);
|
|
1187
1187
|
}
|
|
1188
1188
|
get(t11) {
|
|
1189
|
-
return i2(
|
|
1189
|
+
return i2(chunk5SWTJIOL.n2.getLogger(this), "`Accessor.get` is deprecated in favor of using optional chaining", { version: "4.28", see: "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining" }), chunk5SWTJIOL.o2(this, t11);
|
|
1190
1190
|
}
|
|
1191
1191
|
hasOwnProperty(r9) {
|
|
1192
1192
|
return this.__accessor__ ? this.__accessor__.has(r9) : Object.prototype.hasOwnProperty.call(this, r9);
|
|
@@ -1195,7 +1195,7 @@ var S2 = class _S {
|
|
|
1195
1195
|
return this.__accessor__ ? this.__accessor__.keys() : [];
|
|
1196
1196
|
}
|
|
1197
1197
|
set(r9, t11) {
|
|
1198
|
-
return
|
|
1198
|
+
return chunk5SWTJIOL.t2(this, r9, t11), this;
|
|
1199
1199
|
}
|
|
1200
1200
|
watch(r9, t11, e9) {
|
|
1201
1201
|
return b(this, r9, t11, e9);
|
|
@@ -1,11 +1,11 @@
|
|
|
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.
|
|
4
|
+
* v4.30.0-next.27
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-155894a5.js');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
11
11
|
if (e && e.__esModule) return e;
|
|
@@ -120544,7 +120544,7 @@ registerLanguage({
|
|
|
120544
120544
|
mimetypes: ["text/css"],
|
|
120545
120545
|
loader: () => {
|
|
120546
120546
|
{
|
|
120547
|
-
return Promise.resolve().then(function () { return require('./css-
|
|
120547
|
+
return Promise.resolve().then(function () { return require('./css-ea659b5a.js'); });
|
|
120548
120548
|
}
|
|
120549
120549
|
}
|
|
120550
120550
|
});
|
|
@@ -120562,7 +120562,7 @@ registerLanguage({
|
|
|
120562
120562
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
120563
120563
|
loader: () => {
|
|
120564
120564
|
{
|
|
120565
|
-
return Promise.resolve().then(function () { return require('./html-
|
|
120565
|
+
return Promise.resolve().then(function () { return require('./html-1c3f7a48.js'); });
|
|
120566
120566
|
}
|
|
120567
120567
|
}
|
|
120568
120568
|
});
|
|
@@ -120582,7 +120582,7 @@ registerLanguage({
|
|
|
120582
120582
|
mimetypes: ["text/javascript"],
|
|
120583
120583
|
loader: () => {
|
|
120584
120584
|
{
|
|
120585
|
-
return Promise.resolve().then(function () { return require('./javascript-
|
|
120585
|
+
return Promise.resolve().then(function () { return require('./javascript-b38865a5.js'); });
|
|
120586
120586
|
}
|
|
120587
120587
|
}
|
|
120588
120588
|
});
|
|
@@ -120600,7 +120600,7 @@ registerLanguage({
|
|
|
120600
120600
|
mimetypes: ["text/typescript"],
|
|
120601
120601
|
loader: () => {
|
|
120602
120602
|
{
|
|
120603
|
-
return Promise.resolve().then(function () { return require('./typescript-
|
|
120603
|
+
return Promise.resolve().then(function () { return require('./typescript-01a1b140.js'); });
|
|
120604
120604
|
}
|
|
120605
120605
|
}
|
|
120606
120606
|
});
|
|
@@ -120721,7 +120721,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
|
|
|
120721
120721
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
120722
120722
|
function getMode$3() {
|
|
120723
120723
|
{
|
|
120724
|
-
return Promise.resolve().then(function () { return require('./cssMode-
|
|
120724
|
+
return Promise.resolve().then(function () { return require('./cssMode-d4112185.js'); });
|
|
120725
120725
|
}
|
|
120726
120726
|
}
|
|
120727
120727
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -120846,7 +120846,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
120846
120846
|
};
|
|
120847
120847
|
function getMode$2() {
|
|
120848
120848
|
{
|
|
120849
|
-
return Promise.resolve().then(function () { return require('./htmlMode-
|
|
120849
|
+
return Promise.resolve().then(function () { return require('./htmlMode-60f261d2.js'); });
|
|
120850
120850
|
}
|
|
120851
120851
|
}
|
|
120852
120852
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -120948,7 +120948,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
|
|
|
120948
120948
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
120949
120949
|
function getMode$1() {
|
|
120950
120950
|
{
|
|
120951
|
-
return Promise.resolve().then(function () { return require('./jsonMode-
|
|
120951
|
+
return Promise.resolve().then(function () { return require('./jsonMode-8e0c8101.js'); });
|
|
120952
120952
|
}
|
|
120953
120953
|
}
|
|
120954
120954
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -121217,7 +121217,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
121217
121217
|
};
|
|
121218
121218
|
function getMode() {
|
|
121219
121219
|
{
|
|
121220
|
-
return Promise.resolve().then(function () { return require('./tsMode-
|
|
121220
|
+
return Promise.resolve().then(function () { return require('./tsMode-94bb36a0.js'); });
|
|
121221
121221
|
}
|
|
121222
121222
|
}
|
|
121223
121223
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -1,12 +1,12 @@
|
|
|
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.
|
|
4
|
+
* v4.30.0-next.27
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-babb1084.js');
|
|
9
|
+
require('./index-155894a5.js');
|
|
10
10
|
|
|
11
11
|
var j={False:"false",Null:"null",True:"true"},f={Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"},Fe=["++","--"],Qe=["-","+","!","~"],Ze=["=","/=","*=","%=","+=","-="],Xe=["||","&&"],Lt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var U=[[],[],[]];Fe.forEach(t=>U[t.length-1]?.push(t));Qe.forEach(t=>U[t.length-1]?.push(t));Xe.forEach(t=>U[t.length-1]?.push(t));Ze.forEach(t=>U[t.length-1]?.push(t));Lt.forEach(t=>U[t.length-1]?.push(t));var ht=Object.values(f),dt=Object.values(j);dt.map(t=>({label:t,kind:arcadeDefaults.main.CompletionItemKind.Constant}));ht.map(t=>({label:t,kind:arcadeDefaults.main.CompletionItemKind.Keyword}));
|
|
12
12
|
|