@arcgis/coding-components 4.31.3 → 4.31.4
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/assets/code-editor/sql-expr.worker.js +1 -1
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-b61518f0.js → p-00420ce4.js} +2 -2
- package/dist/arcgis-coding-components/{p-c0b4c0fe.js → p-1b74896f.js} +10 -10
- package/dist/arcgis-coding-components/{p-01cf5344.js → p-1d9fa2ac.js} +2 -2
- package/dist/arcgis-coding-components/{p-3cfdddbf.entry.js → p-1ef1d7b9.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-11b1e496.js → p-34298205.js} +1 -1
- package/dist/arcgis-coding-components/{p-5f5f3061.entry.js → p-352f8eae.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-d2917888.js → p-42635273.js} +2 -2
- package/dist/arcgis-coding-components/{p-9413ca76.js → p-670a1da6.js} +2 -2
- package/dist/arcgis-coding-components/{p-3f75cd2e.js → p-8993a703.js} +1 -1
- package/dist/arcgis-coding-components/{p-b93d8b71.js → p-905b113f.js} +2 -2
- package/dist/arcgis-coding-components/{p-733ed2d2.entry.js → p-9cbf2ec9.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-49addf7e.js → p-9f32c858.js} +2 -2
- package/dist/arcgis-coding-components/{p-00dec4c7.js → p-9f94dc8d.js} +2 -2
- package/dist/arcgis-coding-components/{p-1d7e2ff3.js → p-a6815cc8.js} +1 -1
- package/dist/arcgis-coding-components/{p-b98f1029.js → p-c25b25bb.js} +2 -2
- package/dist/arcgis-coding-components/{p-aabd9d29.js → p-d817b322.js} +2 -2
- package/dist/arcgis-coding-components/{p-27450cd9.js → p-e4c396a4.js} +2 -2
- package/dist/arcgis-coding-components/{p-8feb3357.js → p-f9d9c027.js} +2 -2
- package/dist/cjs/{app-globals-fa2b45ed.js → app-globals-48b73099.js} +1 -1
- package/dist/cjs/{arcade-defaults-97f49c4d.js → arcade-defaults-500a58bc.js} +3 -3
- package/dist/cjs/{arcade-mode-d5c03946.js → arcade-mode-b1772e70.js} +3 -3
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +7 -7
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +4 -4
- package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
- package/dist/cjs/{css-9a389232.js → css-5cbc766a.js} +1 -1
- package/dist/cjs/{cssMode-1bf0c83c.js → cssMode-6b380a30.js} +3 -3
- package/dist/cjs/{html-823aa094.js → html-311b02ae.js} +3 -3
- package/dist/cjs/{htmlMode-af02e57e.js → htmlMode-94e1225a.js} +3 -3
- package/dist/cjs/{index-12656b2f.js → index-5068811b.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-b8cccac8.js → javascript-e8e7ebb2.js} +4 -4
- package/dist/cjs/{jsonMode-29e76bdf.js → jsonMode-7b4c357d.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{sql-expr-defaults-b73095f1.js → sql-expr-defaults-2a5b8cde.js} +10 -10
- package/dist/cjs/{sql-expr-mode-a11ec2be.js → sql-expr-mode-39d6b488.js} +3 -3
- package/dist/cjs/{tsMode-53d10cab.js → tsMode-925311e5.js} +3 -3
- package/dist/cjs/{typescript-ee9d57b7.js → typescript-c18f5f59.js} +3 -3
- package/dist/cjs/{useT9n-f2308ea5.js → useT9n-98f6e34e.js} +3 -3
- package/dist/components/arcade-defaults.js +1 -1
- package/dist/components/arcade-mode.js +1 -1
- package/dist/components/arcade-results.js +1 -1
- package/dist/components/arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +1 -1
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.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/arcgis-editor-variables.js +1 -1
- package/dist/components/arcgis-language-api-panel.js +1 -1
- package/dist/components/arcgis-sql-expression-editor.js +1 -1
- package/dist/components/arcgis-sql-expression-fields.js +1 -1
- package/dist/components/chunk-UFIZBDFE.js +1 -1
- package/dist/components/code-editor.js +1 -1
- package/dist/components/editor-variables.js +1 -1
- package/dist/components/fields.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/language-api-panel.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/sql-expr-defaults.js +1 -1
- package/dist/components/sql-expr-mode.js +1 -1
- package/dist/components/useT9n.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{app-globals-6f062c75.js → app-globals-f27bd022.js} +1 -1
- package/dist/esm/{arcade-defaults-ddab5465.js → arcade-defaults-4bcc2229.js} +3 -3
- package/dist/esm/{arcade-mode-38ddb527.js → arcade-mode-c03a445b.js} +3 -3
- package/dist/esm/arcgis-arcade-editor_6.entry.js +7 -7
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
- package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
- package/dist/esm/{css-9b69a8d9.js → css-a4763a34.js} +1 -1
- package/dist/esm/{cssMode-d9a9ea6d.js → cssMode-a78d1899.js} +3 -3
- package/dist/esm/{html-1d3a8596.js → html-c02b19c9.js} +3 -3
- package/dist/esm/{htmlMode-b4ca7e18.js → htmlMode-e1ca365f.js} +3 -3
- package/dist/esm/{index-db5cd6f5.js → index-cc347652.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-24a2e7f9.js → javascript-7ac1edb8.js} +4 -4
- package/dist/esm/{jsonMode-9cdc4910.js → jsonMode-eb30567c.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{sql-expr-defaults-7ba75b0f.js → sql-expr-defaults-f92d7d0b.js} +10 -10
- package/dist/esm/{sql-expr-mode-a62bef95.js → sql-expr-mode-faba4ff8.js} +3 -3
- package/dist/esm/{tsMode-072ef706.js → tsMode-b6146171.js} +3 -3
- package/dist/esm/{typescript-cd21ef97.js → typescript-d6c41a65.js} +3 -3
- package/dist/esm/{useT9n-2a956810.js → useT9n-f37abeee.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 +6 -6
|
@@ -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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
|
-
import{r as e,c as i,h as s,H as t,a}from"./p-
|
|
6
|
+
import{r as e,c as i,h as s,H as t,a}from"./p-a6815cc8.js";import{u as o,a as n}from"./p-42635273.js";import{l as c,x as r}from"./p-1b74896f.js";const d=class{constructor(s){e(this,s),this.arcgisScriptChange=i(this,"arcgisScriptChange",3),this.manager=o(this),this._modelId=c(),this._insertAsSnippet=e=>{this._codeEditorElt?.insertSnippet(e.detail).catch(console.error)},this._insertAsText=e=>{this._codeEditorElt?.insertText(e.detail.replaceAll('"',"'")).catch(console.error)},this._updateApiLibrary=async()=>{this._apiLibrary=await r.getApiLibraryForModel(this._modelId)},this._onCodeEditorValueChange=e=>{e.stopPropagation(),this.script=e.detail,this.arcgisScriptChange.emit(e.detail)},this._toggleSideActionBarExpanded=()=>{this.sideActionBarExpanded=!this.sideActionBarExpanded},this._preparing=!1,this._editorProfile=void 0,this._activeAction=void 0,this._apiLibrary=void 0,this.sideActionBarExpanded=!1,this.messages=n(),this.profile=void 0,this.script="",this.hideSideBar=!1}async _messagesChanged(){await this._updateEditorProfile(),await this._updateApiLibrary()}async _profileChanged(){await this._updateEditorProfile(),await this._updateApiLibrary()}async _updateEditorProfile(){this._preparing=!0;try{await r.setProfileForModel(this._modelId,this.profile,{locale:this.messages._t9nLocale}),this._editorProfile=r.getEditorProfileForModel(this._modelId)}catch{this._editorProfile=void 0}finally{this._preparing=!1}}_setActiveAction(e){this._activeAction=this._activeAction!==e?e:void 0}_handleActionClick(e){this._setActiveAction(e.target.dataset.panelName)}_getFeatureSetVariable(){let e;const i=r.getEditorProfileForModel(this._modelId);return i?.variables?.length&&"featureSet"!==i?.variables?.[0]?.type?console.error("encountered unexpected editor profile"):e=i?.variables?.[0],e}async componentWillLoad(){await this._updateEditorProfile().catch(console.error)}async componentDidLoad(){await this._updateApiLibrary()}render(){const e=this._getFeatureSetVariable();return s(t,{key:"3e73cda4effdd5e967e5e13eed2590cf76a9b678"},s("div",{key:"4118574ffeee6d7afd2e1578e70eca66c5e4f176",class:"flex-row flex-adjustable"},s("div",{key:"17620aa2fef7c979cf7f25dbf594e0143945ac94",class:"flex-column flex-adjustable"},s("arcgis-code-editor",{key:"4dd0249360c334394fa4302fa9e41d9174dab56f",language:"arcgis-sql-expression",modelId:this._modelId,ref:e=>this._codeEditorElt=e,value:this.script??"",onArcgisValueChange:this._onCodeEditorValueChange})),"fields"===this._activeAction&&!this.hideSideBar&&s("arcgis-editor-variables",{key:"4fa0827db5432582ce7b029103f1804b07834030",variable:e,class:"side-panel flex-panel border-inline-start",loading:this._preparing,modelId:this._modelId,onArcgisItemSelected:this._insertAsText,onArcgisClose:()=>this._setActiveAction(void 0),"data-panel-name":"none"}),"functions"===this._activeAction&&!this.hideSideBar&&s("arcgis-language-api-panel",{key:"431721750bfc0bf856af1d2fc627544c3c3b7aa6",class:"side-panel flex-panel border-inline-start",onArcgisItemSelected:this._insertAsSnippet,onArcgisClose:()=>this._setActiveAction(void 0),loading:this._preparing,apiLibrary:this._apiLibrary,"data-panel-name":"none",hideDocumentationActions:!0}),!this.hideSideBar&&s("calcite-action-bar",{key:"b96ce9bb0650fd5cd2cac4be83186d9531b9f7b4",class:"side-action-bar border-inline-start",expanded:this.sideActionBarExpanded,position:"end",onCalciteActionBarToggle:this._toggleSideActionBarExpanded},s("calcite-action-group",{key:"f2967694a12f6926c92e4d61a84456895654834f"},s("calcite-action",{key:"0f041d66f37d3c9bb32e9b9770c16461641abeb1",id:"fields-action",text:this.messages.fields??"Fields",icon:"profile-variables",active:"fields"===this._activeAction,"data-panel-name":"fields",onClick:e=>this._handleActionClick(e)}),!this.sideActionBarExpanded&&s("calcite-tooltip",{key:"947c16b81627f6d2f688c689263bb56a3a2e5a89","reference-element":"fields-action"},s("span",{key:"65cfab22849866e80614fe643778ca66a2dac30d"},this.messages.fields??"Fields")),s("calcite-action",{key:"2685d0c61c9bd66770413b89f6b3ac0752e475cc",id:"functions-action",text:this.messages.functions??"Functions",icon:"function",active:"functions"===this._activeAction,"data-panel-name":"functions",onClick:e=>this._handleActionClick(e)}),!this.sideActionBarExpanded&&s("calcite-tooltip",{key:"15381638bc59c2dc99cb267be39e2f3b91a4b9ea","reference-element":"functions-action"},s("span",{key:"6364b66c2c09970a4c8d33c0d5b5c6dae7ea8f9b"},this.messages.functions??"Functions"))))))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{messages:["_messagesChanged"],profile:["_profileChanged"]}}};d.style="arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%}arcgis-sql-expression-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-sql-expression-editor .flex-panel{flex:1 0 auto}arcgis-sql-expression-editor .position-relative{position:relative}arcgis-sql-expression-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-sql-expression-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-sql-expression-editor .border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-sql-expression-editor .border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-sql-expression-editor .side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}arcgis-sql-expression-editor .side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}arcgis-sql-expression-editor .side-panel calcite-flow{height:100%}";export{d as arcgis_sql_expression_editor}
|
|
@@ -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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
|
-
import{F as t,D as i,G as s,H as o,J as e,M as n,N as h}from"./p-c0b4c0fe.js";import{g as c}from"./p-1d7e2ff3.js";var r,a=(t,i)=>t.manager.internals.members?.[i]?.[0],d=Symbol.for("controller");function u(t){r!==t&&(r=t,queueMicrotask((()=>{r===t&&(r=void 0)})))}function f(){return r}var l,v=[];function y(t){if(void 0===t)return void(v=[]);const i=v.indexOf(t);v=-1===i?[...v,t]:v.slice(0,i+1),queueMicrotask((()=>{v=[]}))}var p,g=async(t,i)=>{const s=w(t);if(void 0===s)return t;if(await s.ready,"function"==typeof i){const t=s.watchExports((s=>i(s,t)))}return s.exports},b=async t=>{const i=w(t);return await i.ready,i},w=t=>{const i=function(){const t=l;return l=void 0,t}();if(void 0!==i)return i;const s=f().manager.internals.resolveExports(t);return void 0!==s?s:(t=>"object"==typeof t&&null!==t&&(d in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t))(t)?t:void 0},m={setter:!1,getter:!1,readOnly:!1},_=new WeakMap;p=d;var j=class{constructor(t){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new i,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[p]=!0,this.ready=this._ready.promise,this._exports=M(this),this._exportWatchers=new Set;const s=t??f();this.component=s,this.component.addController(this),y(this),void 0===this.component.manager||queueMicrotask((()=>this.catchUpLifecycle()))}catchUpLifecycle(){const{manager:t}=this.component;!t.connectedCalled||this.connectedCalled||this.triggerConnected(),!t._loadCalled||this.triggerLoad().then((()=>{!t.loadedCalled||this.triggerLoaded()})).catch(console.error)}get exports(){return this._exports}set exports(t){const i=this._exports;i!==t&&(this._exports=t,this._exportWatchers.forEach(e),this.connectedCalled&&!1!==this.assignedProperty&&this.component.requestUpdate(this.assignedProperty,i)),this._ready.resolve(t)}setProvisionalExports(t){this._exports=M(t),this._exportWatchers.forEach(e)}watchExports(t){const i=()=>t(this._exports);return this._exportWatchers.add(i),()=>{this._exportWatchers.delete(i)}}get use(){return u(this.component),g}get useRef(){return u(this.component),b}get useRefSync(){return u(this.component),w}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this._callbacks.hostConnected.push(t)}onDisconnected(t){this._callbacks.hostDisconnected.push(t)}onLoad(t){this._callbacks.hostLoad.push(t)}onLoaded(t){this._callbacks.hostLoaded.push(t)}onUpdate(t){this._callbacks.hostUpdate.push(t)}onUpdated(t){this._callbacks.hostUpdated.push(t)}onDestroy(t){this._callbacks.hostDestroy.push(t)}onLifecycle(t){this._callbacks.hostLifecycle.push(t),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(t)}triggerConnected(){const t=this;t.hostConnected&&e(t.hostConnected,t),this._callbacks.hostConnected.forEach(e),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){const t=this;t.hostDisconnected&&e(t.hostDisconnected,t),this._callbacks.hostDisconnected.forEach(e),this._lifecycleCleanups.forEach(e),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;const t=this;t.hostLoad&&await s(t.hostLoad,t),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(s)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;const t=this;t.hostLoaded&&e(t.hostLoaded,t),this._callbacks.hostLoaded.forEach(e),this.loadedCalled=!0}triggerUpdate(t){const i=this;i.hostUpdate&&e(i.hostUpdate,i,t),this._callbacks.hostUpdate.forEach(k,t)}triggerUpdated(t){const i=this;i.hostUpdated&&e(i.hostUpdated,i,t),this._callbacks.hostUpdated.forEach(k,t)}triggerDestroy(){const t=this;t.hostDestroy&&e(t.hostDestroy,t),this._callbacks.hostDestroy.forEach(e)}triggerLifecycle(){const t=this;t.hostLifecycle&&this._callLifecycle((()=>t.hostLifecycle())),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(t){u(this.component);const i=e(t);(Array.isArray(i)?i:[i]).forEach((t=>{"function"==typeof t?this._lifecycleCleanups.push(t):"object"==typeof t&&"function"==typeof t.remove&&this._lifecycleCleanups.push(t.remove)}))}};function k(t){e(t,void 0,this)}var L=j;function M(t){if("object"!=typeof t&&"function"!=typeof t||null===t)return t;const i=new Proxy(t,{get(t,s,o){if(!O.has(s)||!(s in t)||t[s]!==i)return s in t||s in Promise.prototype||"symbol"==typeof s?"function"==typeof t?t[s]:Reflect.get(t,s,o):void 0},set:(t,i,s,o)=>Reflect.set(t,i,s,o)});return i}var O=new Set(["exports","_exports"]),U=void 0;function x(){Array.from(U?.entries()??[]).forEach((([t,{callbacks:i}])=>{const s=Object.keys(t);i.forEach((t=>t(s)))})),U=void 0}function C(t,i,s){var o;const n=i,h=t.manager.internals;(o=h.allWatchers)[n]??(o[n]=[]);const c=h.allWatchers[n],r=s,a=(t,i,s)=>e(r,null,t,i,s);return c.push(a),()=>{const t=c.indexOf(a);-1!==t&&c.splice(t,1)}}var D=class{constructor(t){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;const t=this.component.manager.internals;Object.entries(t.members).forEach((([i,[s]])=>{var o;2048&s&&((o=t.setters)[i]??(o[i]=[]),t.setters[i].push(t.readonlySetter))}))},this.trackedValue=P,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this.reactiveUtilsIntegrations=new Set,this._exports=new WeakMap,this.readonlySetter=(t,i,s)=>{if(m.readOnly)return t;throw new Error(`Cannot assign to read-only property "${s}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=t}firePropTrackers(t,i){const s=this.keyTrackers;this.trackedValue=P,this.keyTrackers=[],s.forEach((s=>s(t,i)))}getSetProxy(t){const i=this.component,s=i.constructor.prototype;if(this._getSetProxy(s,t,"class"),i.manager.isLit)return;const o=i.el.constructor.prototype;s!==o&&this._getSetProxy(o,t,"html")}_getSetProxy(t,i,s){const o=a(this.component,i);let e;do{e=Object.getOwnPropertyDescriptor(t,i)}while(!e&&(t=Object.getPrototypeOf(t)));if(!e)return;const n=e.get,h=e.set,c=q in n,r=q in h;if(c&&r)return;const d=!c,u=!r,f=d?function(){let t=n.call(this);const s=_.get(this);if(void 0===s)return t;const o=s.manager.internals;t=o.accessorGetter[i](t,i);const e=o.getters[i]??S;for(let s=0;s<e.length;s++)t=e[s](t,i);return t}:n,l=u?function(t){const s=n.call(this),e=_.get(this);if(void 0===e)return void h.call(this,t);let c=e.manager.isLit?t??void 0:function(t,i=8){return null==t||"object"==typeof t||"function"==typeof t?t:4&i?"false"!==t&&(""===t||!!t):2&i?Number.parseFloat(t):1&i?String(t):t}(t,o);const r=e.manager.internals;if(c===s)h.call(this,c);else{const t=m.setter?S:r.setters[i]??S;for(let o=0;o<t.length&&(c=t[o](c,s,i),c!==s);o++);c=r.accessorSetter[i](c,s,i),h.call(this,c),c!==s&&r.enabledWatchers[i]?.forEach((t=>t(c,s,i)))}r.keyTrackers.length>0&&r?.firePropTrackers(i,t)}:h;d&&(f[q]=!0),u&&(l[q]=!0),Object.defineProperty(t,i,{...e,get:f,set:l})}markExports(t,i){("object"==typeof i&&null!==i||"function"==typeof i)&&this._exports.set(i,t)}resolveExports(t){return"object"==typeof t&&null!==t||"function"==typeof t?this._exports.get(t):void 0}},S=[],q=Symbol(),P=Symbol(),R=(t,i)=>new E(t,i),E=class extends L{constructor(s,o){const e="addController"in s,n=new Set,h=s;if(h.addController=function(t){n.add(t),!(d in t)&&s.renderRoot&&s.el.isConnected&&t.hostConnected?.()},h.removeController=function(t){n.delete(t),t.controllerRemoved?.()},!e){const t=o??s.constructor.__forceUpdate;h.requestUpdate=()=>t(s)}super(s),this.internals=new D(this.component),this.destroyed=!1,this._updatePromise=new i,this._originalLifecycles={},this.isLit=e,this.component.manager=this,function(i,s){if(s)i.manager.internals.members=Object.fromEntries(Array.from(i.constructor.elementProperties,(([t,i])=>i.noAccessor?void 0:[t,[(i.readOnly?2048:0)|(i.state?32:16)]])).filter(t));else{const t=i.constructor,s=t.__registerControllers?.(i)??void 0;if(t.__registerControllers=void 0,"object"!=typeof s)throw new Error("Failed to retrieve component meta");i.manager.internals.members=Object.fromEntries(Object.entries(s).filter((([t,[i]])=>!!(63&i))))}}(s,e),this._controllers=n,this.exports=void 0,this.hasDestroy=A in this.component&&"function"==typeof this.component.destroy,this._bindLifecycleMethods();const c=this.internals;Object.keys(c.members).forEach((t=>{c.accessorGetter[t]=$,c.accessorSetter[t]=$,c.getSetProxy(t)})),e?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(s,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),y(void 0),u(s),_.set(s.el,s),_.set(s,s)}_bindLifecycleMethods(){const t=this.component,i=this.isLit,s=t.el===t;this._originalLifecycles={_connectedCallback:i||s?void 0:t.connectedCallback,_disconnectedCallback:i||s?void 0:t.disconnectedCallback,_load:i?t.load:t.componentWillLoad,_loaded:i?t.loaded:t.componentDidLoad,_willUpdate:i?void 0:t.componentWillUpdate,_updated:i?void 0:t.componentDidUpdate,_destroy:t.destroy};const o=this._connectedCallback.bind(this),e=this._disconnectedCallback.bind(this),n=this._update.bind(this),h=this._updated.bind(this);i?t.constructor.prototype.addController.call(t,{hostConnected:o,hostDisconnected:e,hostUpdate:n,hostUpdated:h}):(t.connectedCallback=o,t.disconnectedCallback=e,t.componentWillLoad=this._load.bind(this),t.componentDidLoad=this._loaded.bind(this),t.componentWillUpdate=n,t.componentDidUpdate=h),this.hasDestroy&&(t.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){const t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${A} prop.`)}void 0!==this._autoDestroyTimeout&&clearTimeout(this._autoDestroyTimeout);const t=this.internals;t.enabledWatchers=t.allWatchers,x(),t.enableReadonly?.(),this._controllers.forEach(F),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(I),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){const t=this.internals.reactiveUtilsIntegrations;if(t.size>0)for(const i of t)"triggerLoad"in i?await i.triggerLoad():await s(i.hostLoad,i);await Promise.allSettled(Array.from(this._controllers,N,t)),await(this._originalLifecycles._load?.call(this.component)),this.hasDestroy&&C(this.component,A,(()=>this._setAutoDestroyTimeout()))}_loaded(){this._controllers.forEach(W),this._originalLifecycles._loaded?.call(this.component)}_update(){this._controllers.forEach(G,this.component.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){const t=this.component;if(this._controllers.forEach(H,t.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)t.$changes=new Map;else{const t=this._updatePromise;this._updatePromise=new i,t.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(J),this._controllers.clear(),await(this._originalLifecycles._destroy?.call(this.component))}}_setAutoDestroyTimeout(){void 0!==this._autoDestroyTimeout&&clearTimeout(this._autoDestroyTimeout),this.component.el.isConnected||this.component.autoDestroyDisabled||(this._autoDestroyTimeout=o((()=>{this.destroy().catch(console.error)}),T))}},A="autoDestroyDisabled",T=1e3,$=t=>t;function F(t){"triggerConnected"in t?t.triggerConnected():e(t.hostConnected,t)}function I(t){"triggerDisconnected"in t?t.triggerDisconnected():e(t.hostDisconnected,t)}async function N(t){this.has(t)||("triggerLoad"in t?await t.triggerLoad():await s(t.hostLoad,t))}function W(t){"triggerLoaded"in t?t.triggerLoaded():e(t.hostLoaded,t)}function G(t){"triggerUpdate"in t?t.triggerUpdate(this):e(t.hostUpdate,t,this)}function H(t){"triggerUpdated"in t?t.triggerUpdated(this):e(t.hostUpdated,t,this)}function J(t){"triggerDestroy"in t?t.triggerDestroy():e(t.hostDestroy,t)}function z(t,i,s){const o=t.manager.internals;return o.trackedValue!==P&&o.trackedValue!==s&&o.firePropTrackers(void 0,void 0),0===o.keyTrackers.length&&queueMicrotask((()=>o.firePropTrackers(void 0,void 0))),o.trackedValue=s,o.keyTrackers.push(((t,o)=>e(i,void 0,s===o?t:void 0))),s}function B(t,i){const s=f();return z(s,(o=>{const e=o,n=s.manager,h=s,c=h[e];if(null!=c&&c!==t&&"function"==typeof i.set){const s=i.set(c,t,e);if(s!==c)if(n.isLit)h[e]=s;else{let t=!0;n.onConnected((()=>{t&&(t=!0,function(){m.setter=!0;try{return void(h[e]=s)}finally{m.setter=!1}}())}))}}!function(t,i,s){var o,e;const n=s,h=t.manager.internals,c="function"==typeof n.get?n.get:void 0;c&&((o=h.getters)[i]??(o[i]=[]),h.getters[i].unshift(c));const r="ignore"===n.set?Q:n.set;r&&((e=h.setters)[i]??(e[i]=[]),h.setters[i].unshift(r))}(s,e,i)}),t)}var K,Q=(t,i)=>i,V=(K=class extends j{constructor(t,i){super(t);const s=this.exports;try{u(this.component);const t=i(this.component,this),o=this.exports!==s;if(t instanceof Promise){o||this.setProvisionalExports(t);const i=t.then((t=>{this.exports=t,super.catchUpLifecycle()})).catch((t=>{this._ready.reject(t),console.error(t)}));this.onLoad((async()=>await i))}else o&&void 0===t||(this.exports=t),queueMicrotask((()=>super.catchUpLifecycle()))}catch(t){this._ready.reject(t),console.error(t)}}catchUpLifecycle(){}},(...t)=>{const i=v,s=new K(...t),o=s.exports;y(i.at(-1));const n=s.component.manager.internals;var h;return n.markExports(s,o),s.watchExports((t=>n.markExports(s,t))),l!==(h=s)&&(l=h,queueMicrotask((()=>{l===h&&(l=void 0)}))),function(t,i,s){const o=Array.isArray(t)?t:[t];let n=o.length+1;const h=t=>{n-=1,void 0!==t&&(n=Math.min(n,0)),0===n&&i(t)};o.forEach((t=>function(t,i,s){const o=Object.keys(t),n=o.length;void 0===U&&queueMicrotask(x),U??(U=new Map);let h=U.get(t);return void 0===h&&(h={callbacks:[],keyCount:n},U.set(t,h)),h.keyCount!==n&&(h.callbacks.forEach((t=>t(o))),h.callbacks=[],h.keyCount=n),h.callbacks.push((o=>{const h=o[n];e(i,null,void 0===h?void 0:t[h]===s?h:void 0)})),s}(t,(i=>h(void 0===i?void 0:{key:i,host:t,isReactive:!1})),s)));const c=o.find((t=>"manager"in t&&"object"==typeof t.manager&&t.manager.component===t));return c&&z(c,(t=>h(void 0===t?void 0:{key:t,host:c,isReactive:void 0!==a(c,t)})),s),s}([s.component,...i].reverse(),(t=>void 0===t?void 0:function(t,{host:i,key:s,isReactive:o},e){const n=i,h=n[s]!==e;n[s]!==t.exports&&!h&&e!==t.exports&&(n[s]=t.exports);if(i===t.component){if(o){const i=t.component.manager.internals;h&&i.markExports(t,n[s]),C(t.component,s,(s=>{s!==t.exports&&i.markExports(t,s)}))}t.assignedProperty=o?void 0:s}t.watchExports((()=>{if(n[s]===t.exports)return;const i=t.component.manager,o=i.internals.setters[s]?.includes(i.internals.readonlySetter);o?function(){m.readOnly=!0;try{return void(n[s]=t.exports)}finally{m.readOnly=!1}}():n[s]=t.exports}))}(s,t,o)),o)});function X(t,i){if(!i)return t;const s={...t};return Object.entries(i).forEach((([i,o])=>{s[i]="object"==typeof o?X(t[i],o):o??t[i]})),s}const Y=(t=>(i={})=>V(void 0,((s,o)=>{const e=s;function c(t){const i=o.exports,s=i._original??i,e=X(s,t);t&&(e._original=s),o.exports=e}if(queueMicrotask((()=>o.onLifecycle((()=>n(s.el,t("./assets"),(({t9nLocale:t,t9nStrings:i,lang:n})=>{const h={...i,_lang:n,_t9nLocale:t,_loading:!1};o.exports=h;const r=i.componentLabel??i.widgetLabel;"string"==typeof r&&"label"in s&&null==s.label&&(s.label??(s.label=r)),c(e.messageOverrides)}),i.name))))),"messageOverrides"in e&&o.onLifecycle((()=>C(e,"messageOverrides",c))),i.blocking)return o.ready;const r=h(s.el);return{_lang:r.lang,_t9nLocale:r.t9nLocale,_loading:!0}})))(c);export{Y as a,B as g,R as u}
|
|
6
|
+
import{F as t,D as i,G as s,H as o,J as e,M as n,N as h}from"./p-1b74896f.js";import{g as c}from"./p-a6815cc8.js";var r,a=(t,i)=>t.manager.internals.members?.[i]?.[0],d=Symbol.for("controller");function u(t){r!==t&&(r=t,queueMicrotask((()=>{r===t&&(r=void 0)})))}function f(){return r}var l,v=[];function y(t){if(void 0===t)return void(v=[]);const i=v.indexOf(t);v=-1===i?[...v,t]:v.slice(0,i+1),queueMicrotask((()=>{v=[]}))}var p,g=async(t,i)=>{const s=w(t);if(void 0===s)return t;if(await s.ready,"function"==typeof i){const t=s.watchExports((s=>i(s,t)))}return s.exports},b=async t=>{const i=w(t);return await i.ready,i},w=t=>{const i=function(){const t=l;return l=void 0,t}();if(void 0!==i)return i;const s=f().manager.internals.resolveExports(t);return void 0!==s?s:(t=>"object"==typeof t&&null!==t&&(d in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t))(t)?t:void 0},m={setter:!1,getter:!1,readOnly:!1},_=new WeakMap;p=d;var j=class{constructor(t){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new i,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[p]=!0,this.ready=this._ready.promise,this._exports=M(this),this._exportWatchers=new Set;const s=t??f();this.component=s,this.component.addController(this),y(this),void 0===this.component.manager||queueMicrotask((()=>this.catchUpLifecycle()))}catchUpLifecycle(){const{manager:t}=this.component;!t.connectedCalled||this.connectedCalled||this.triggerConnected(),!t._loadCalled||this.triggerLoad().then((()=>{!t.loadedCalled||this.triggerLoaded()})).catch(console.error)}get exports(){return this._exports}set exports(t){const i=this._exports;i!==t&&(this._exports=t,this._exportWatchers.forEach(e),this.connectedCalled&&!1!==this.assignedProperty&&this.component.requestUpdate(this.assignedProperty,i)),this._ready.resolve(t)}setProvisionalExports(t){this._exports=M(t),this._exportWatchers.forEach(e)}watchExports(t){const i=()=>t(this._exports);return this._exportWatchers.add(i),()=>{this._exportWatchers.delete(i)}}get use(){return u(this.component),g}get useRef(){return u(this.component),b}get useRefSync(){return u(this.component),w}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this._callbacks.hostConnected.push(t)}onDisconnected(t){this._callbacks.hostDisconnected.push(t)}onLoad(t){this._callbacks.hostLoad.push(t)}onLoaded(t){this._callbacks.hostLoaded.push(t)}onUpdate(t){this._callbacks.hostUpdate.push(t)}onUpdated(t){this._callbacks.hostUpdated.push(t)}onDestroy(t){this._callbacks.hostDestroy.push(t)}onLifecycle(t){this._callbacks.hostLifecycle.push(t),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(t)}triggerConnected(){const t=this;t.hostConnected&&e(t.hostConnected,t),this._callbacks.hostConnected.forEach(e),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){const t=this;t.hostDisconnected&&e(t.hostDisconnected,t),this._callbacks.hostDisconnected.forEach(e),this._lifecycleCleanups.forEach(e),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;const t=this;t.hostLoad&&await s(t.hostLoad,t),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(s)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;const t=this;t.hostLoaded&&e(t.hostLoaded,t),this._callbacks.hostLoaded.forEach(e),this.loadedCalled=!0}triggerUpdate(t){const i=this;i.hostUpdate&&e(i.hostUpdate,i,t),this._callbacks.hostUpdate.forEach(k,t)}triggerUpdated(t){const i=this;i.hostUpdated&&e(i.hostUpdated,i,t),this._callbacks.hostUpdated.forEach(k,t)}triggerDestroy(){const t=this;t.hostDestroy&&e(t.hostDestroy,t),this._callbacks.hostDestroy.forEach(e)}triggerLifecycle(){const t=this;t.hostLifecycle&&this._callLifecycle((()=>t.hostLifecycle())),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(t){u(this.component);const i=e(t);(Array.isArray(i)?i:[i]).forEach((t=>{"function"==typeof t?this._lifecycleCleanups.push(t):"object"==typeof t&&"function"==typeof t.remove&&this._lifecycleCleanups.push(t.remove)}))}};function k(t){e(t,void 0,this)}var L=j;function M(t){if("object"!=typeof t&&"function"!=typeof t||null===t)return t;const i=new Proxy(t,{get(t,s,o){if(!O.has(s)||!(s in t)||t[s]!==i)return s in t||s in Promise.prototype||"symbol"==typeof s?"function"==typeof t?t[s]:Reflect.get(t,s,o):void 0},set:(t,i,s,o)=>Reflect.set(t,i,s,o)});return i}var O=new Set(["exports","_exports"]),U=void 0;function x(){Array.from(U?.entries()??[]).forEach((([t,{callbacks:i}])=>{const s=Object.keys(t);i.forEach((t=>t(s)))})),U=void 0}function C(t,i,s){var o;const n=i,h=t.manager.internals;(o=h.allWatchers)[n]??(o[n]=[]);const c=h.allWatchers[n],r=s,a=(t,i,s)=>e(r,null,t,i,s);return c.push(a),()=>{const t=c.indexOf(a);-1!==t&&c.splice(t,1)}}var D=class{constructor(t){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;const t=this.component.manager.internals;Object.entries(t.members).forEach((([i,[s]])=>{var o;2048&s&&((o=t.setters)[i]??(o[i]=[]),t.setters[i].push(t.readonlySetter))}))},this.trackedValue=P,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this.reactiveUtilsIntegrations=new Set,this._exports=new WeakMap,this.readonlySetter=(t,i,s)=>{if(m.readOnly)return t;throw new Error(`Cannot assign to read-only property "${s}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=t}firePropTrackers(t,i){const s=this.keyTrackers;this.trackedValue=P,this.keyTrackers=[],s.forEach((s=>s(t,i)))}getSetProxy(t){const i=this.component,s=i.constructor.prototype;if(this._getSetProxy(s,t,"class"),i.manager.isLit)return;const o=i.el.constructor.prototype;s!==o&&this._getSetProxy(o,t,"html")}_getSetProxy(t,i,s){const o=a(this.component,i);let e;do{e=Object.getOwnPropertyDescriptor(t,i)}while(!e&&(t=Object.getPrototypeOf(t)));if(!e)return;const n=e.get,h=e.set,c=q in n,r=q in h;if(c&&r)return;const d=!c,u=!r,f=d?function(){let t=n.call(this);const s=_.get(this);if(void 0===s)return t;const o=s.manager.internals;t=o.accessorGetter[i](t,i);const e=o.getters[i]??S;for(let s=0;s<e.length;s++)t=e[s](t,i);return t}:n,l=u?function(t){const s=n.call(this),e=_.get(this);if(void 0===e)return void h.call(this,t);let c=e.manager.isLit?t??void 0:function(t,i=8){return null==t||"object"==typeof t||"function"==typeof t?t:4&i?"false"!==t&&(""===t||!!t):2&i?Number.parseFloat(t):1&i?String(t):t}(t,o);const r=e.manager.internals;if(c===s)h.call(this,c);else{const t=m.setter?S:r.setters[i]??S;for(let o=0;o<t.length&&(c=t[o](c,s,i),c!==s);o++);c=r.accessorSetter[i](c,s,i),h.call(this,c),c!==s&&r.enabledWatchers[i]?.forEach((t=>t(c,s,i)))}r.keyTrackers.length>0&&r?.firePropTrackers(i,t)}:h;d&&(f[q]=!0),u&&(l[q]=!0),Object.defineProperty(t,i,{...e,get:f,set:l})}markExports(t,i){("object"==typeof i&&null!==i||"function"==typeof i)&&this._exports.set(i,t)}resolveExports(t){return"object"==typeof t&&null!==t||"function"==typeof t?this._exports.get(t):void 0}},S=[],q=Symbol(),P=Symbol(),R=(t,i)=>new E(t,i),E=class extends L{constructor(s,o){const e="addController"in s,n=new Set,h=s;if(h.addController=function(t){n.add(t),!(d in t)&&s.renderRoot&&s.el.isConnected&&t.hostConnected?.()},h.removeController=function(t){n.delete(t),t.controllerRemoved?.()},!e){const t=o??s.constructor.__forceUpdate;h.requestUpdate=()=>t(s)}super(s),this.internals=new D(this.component),this.destroyed=!1,this._updatePromise=new i,this._originalLifecycles={},this.isLit=e,this.component.manager=this,function(i,s){if(s)i.manager.internals.members=Object.fromEntries(Array.from(i.constructor.elementProperties,(([t,i])=>i.noAccessor?void 0:[t,[(i.readOnly?2048:0)|(i.state?32:16)]])).filter(t));else{const t=i.constructor,s=t.__registerControllers?.(i)??void 0;if(t.__registerControllers=void 0,"object"!=typeof s)throw new Error("Failed to retrieve component meta");i.manager.internals.members=Object.fromEntries(Object.entries(s).filter((([t,[i]])=>!!(63&i))))}}(s,e),this._controllers=n,this.exports=void 0,this.hasDestroy=A in this.component&&"function"==typeof this.component.destroy,this._bindLifecycleMethods();const c=this.internals;Object.keys(c.members).forEach((t=>{c.accessorGetter[t]=$,c.accessorSetter[t]=$,c.getSetProxy(t)})),e?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(s,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),y(void 0),u(s),_.set(s.el,s),_.set(s,s)}_bindLifecycleMethods(){const t=this.component,i=this.isLit,s=t.el===t;this._originalLifecycles={_connectedCallback:i||s?void 0:t.connectedCallback,_disconnectedCallback:i||s?void 0:t.disconnectedCallback,_load:i?t.load:t.componentWillLoad,_loaded:i?t.loaded:t.componentDidLoad,_willUpdate:i?void 0:t.componentWillUpdate,_updated:i?void 0:t.componentDidUpdate,_destroy:t.destroy};const o=this._connectedCallback.bind(this),e=this._disconnectedCallback.bind(this),n=this._update.bind(this),h=this._updated.bind(this);i?t.constructor.prototype.addController.call(t,{hostConnected:o,hostDisconnected:e,hostUpdate:n,hostUpdated:h}):(t.connectedCallback=o,t.disconnectedCallback=e,t.componentWillLoad=this._load.bind(this),t.componentDidLoad=this._loaded.bind(this),t.componentWillUpdate=n,t.componentDidUpdate=h),this.hasDestroy&&(t.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){const t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${A} prop.`)}void 0!==this._autoDestroyTimeout&&clearTimeout(this._autoDestroyTimeout);const t=this.internals;t.enabledWatchers=t.allWatchers,x(),t.enableReadonly?.(),this._controllers.forEach(F),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(I),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){const t=this.internals.reactiveUtilsIntegrations;if(t.size>0)for(const i of t)"triggerLoad"in i?await i.triggerLoad():await s(i.hostLoad,i);await Promise.allSettled(Array.from(this._controllers,N,t)),await(this._originalLifecycles._load?.call(this.component)),this.hasDestroy&&C(this.component,A,(()=>this._setAutoDestroyTimeout()))}_loaded(){this._controllers.forEach(W),this._originalLifecycles._loaded?.call(this.component)}_update(){this._controllers.forEach(G,this.component.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){const t=this.component;if(this._controllers.forEach(H,t.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)t.$changes=new Map;else{const t=this._updatePromise;this._updatePromise=new i,t.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(J),this._controllers.clear(),await(this._originalLifecycles._destroy?.call(this.component))}}_setAutoDestroyTimeout(){void 0!==this._autoDestroyTimeout&&clearTimeout(this._autoDestroyTimeout),this.component.el.isConnected||this.component.autoDestroyDisabled||(this._autoDestroyTimeout=o((()=>{this.destroy().catch(console.error)}),T))}},A="autoDestroyDisabled",T=1e3,$=t=>t;function F(t){"triggerConnected"in t?t.triggerConnected():e(t.hostConnected,t)}function I(t){"triggerDisconnected"in t?t.triggerDisconnected():e(t.hostDisconnected,t)}async function N(t){this.has(t)||("triggerLoad"in t?await t.triggerLoad():await s(t.hostLoad,t))}function W(t){"triggerLoaded"in t?t.triggerLoaded():e(t.hostLoaded,t)}function G(t){"triggerUpdate"in t?t.triggerUpdate(this):e(t.hostUpdate,t,this)}function H(t){"triggerUpdated"in t?t.triggerUpdated(this):e(t.hostUpdated,t,this)}function J(t){"triggerDestroy"in t?t.triggerDestroy():e(t.hostDestroy,t)}function z(t,i,s){const o=t.manager.internals;return o.trackedValue!==P&&o.trackedValue!==s&&o.firePropTrackers(void 0,void 0),0===o.keyTrackers.length&&queueMicrotask((()=>o.firePropTrackers(void 0,void 0))),o.trackedValue=s,o.keyTrackers.push(((t,o)=>e(i,void 0,s===o?t:void 0))),s}function B(t,i){const s=f();return z(s,(o=>{const e=o,n=s.manager,h=s,c=h[e];if(null!=c&&c!==t&&"function"==typeof i.set){const s=i.set(c,t,e);if(s!==c)if(n.isLit)h[e]=s;else{let t=!0;n.onConnected((()=>{t&&(t=!0,function(){m.setter=!0;try{return void(h[e]=s)}finally{m.setter=!1}}())}))}}!function(t,i,s){var o,e;const n=s,h=t.manager.internals,c="function"==typeof n.get?n.get:void 0;c&&((o=h.getters)[i]??(o[i]=[]),h.getters[i].unshift(c));const r="ignore"===n.set?Q:n.set;r&&((e=h.setters)[i]??(e[i]=[]),h.setters[i].unshift(r))}(s,e,i)}),t)}var K,Q=(t,i)=>i,V=(K=class extends j{constructor(t,i){super(t);const s=this.exports;try{u(this.component);const t=i(this.component,this),o=this.exports!==s;if(t instanceof Promise){o||this.setProvisionalExports(t);const i=t.then((t=>{this.exports=t,super.catchUpLifecycle()})).catch((t=>{this._ready.reject(t),console.error(t)}));this.onLoad((async()=>await i))}else o&&void 0===t||(this.exports=t),queueMicrotask((()=>super.catchUpLifecycle()))}catch(t){this._ready.reject(t),console.error(t)}}catchUpLifecycle(){}},(...t)=>{const i=v,s=new K(...t),o=s.exports;y(i.at(-1));const n=s.component.manager.internals;var h;return n.markExports(s,o),s.watchExports((t=>n.markExports(s,t))),l!==(h=s)&&(l=h,queueMicrotask((()=>{l===h&&(l=void 0)}))),function(t,i,s){const o=Array.isArray(t)?t:[t];let n=o.length+1;const h=t=>{n-=1,void 0!==t&&(n=Math.min(n,0)),0===n&&i(t)};o.forEach((t=>function(t,i,s){const o=Object.keys(t),n=o.length;void 0===U&&queueMicrotask(x),U??(U=new Map);let h=U.get(t);return void 0===h&&(h={callbacks:[],keyCount:n},U.set(t,h)),h.keyCount!==n&&(h.callbacks.forEach((t=>t(o))),h.callbacks=[],h.keyCount=n),h.callbacks.push((o=>{const h=o[n];e(i,null,void 0===h?void 0:t[h]===s?h:void 0)})),s}(t,(i=>h(void 0===i?void 0:{key:i,host:t,isReactive:!1})),s)));const c=o.find((t=>"manager"in t&&"object"==typeof t.manager&&t.manager.component===t));return c&&z(c,(t=>h(void 0===t?void 0:{key:t,host:c,isReactive:void 0!==a(c,t)})),s),s}([s.component,...i].reverse(),(t=>void 0===t?void 0:function(t,{host:i,key:s,isReactive:o},e){const n=i,h=n[s]!==e;n[s]!==t.exports&&!h&&e!==t.exports&&(n[s]=t.exports);if(i===t.component){if(o){const i=t.component.manager.internals;h&&i.markExports(t,n[s]),C(t.component,s,(s=>{s!==t.exports&&i.markExports(t,s)}))}t.assignedProperty=o?void 0:s}t.watchExports((()=>{if(n[s]===t.exports)return;const i=t.component.manager,o=i.internals.setters[s]?.includes(i.internals.readonlySetter);o?function(){m.readOnly=!0;try{return void(n[s]=t.exports)}finally{m.readOnly=!1}}():n[s]=t.exports}))}(s,t,o)),o)});function X(t,i){if(!i)return t;const s={...t};return Object.entries(i).forEach((([i,o])=>{s[i]="object"==typeof o?X(t[i],o):o??t[i]})),s}const Y=(t=>(i={})=>V(void 0,((s,o)=>{const e=s;function c(t){const i=o.exports,s=i._original??i,e=X(s,t);t&&(e._original=s),o.exports=e}if(queueMicrotask((()=>o.onLifecycle((()=>n(s.el,t("./assets"),(({t9nLocale:t,t9nStrings:i,lang:n})=>{const h={...i,_lang:n,_t9nLocale:t,_loading:!1};o.exports=h;const r=i.componentLabel??i.widgetLabel;"string"==typeof r&&"label"in s&&null==s.label&&(s.label??(s.label=r)),c(e.messageOverrides)}),i.name))))),"messageOverrides"in e&&o.onLifecycle((()=>C(e,"messageOverrides",c))),i.blocking)return o.ready;const r=h(s.el);return{_lang:r.lang,_t9nLocale:r.t9nLocale,_loading:!0}})))(c);export{Y as a,B as g,R as u}
|
|
@@ -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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
|
-
import{m as e,f as t,i as n,a,b as r,c as i,d as s,L as o,e as c,E as u}from"./p-
|
|
6
|
+
import{m as e,f as t,i as n,a,b as r,c as i,d as s,L as o,e as c,E as u}from"./p-1b74896f.js";import{g as d}from"./p-a6815cc8.js";async function l(n,a=e.exports.CompletionItemKind.Variable){return await Promise.all(n.map((async n=>{switch(n.type){case"dictionary":return await async function(t,n){const{name:a,dictionaryVariables:r}=t,i=t.getDescription(),s=r.reduce(((e,t)=>{""!==e&&(e+=" \n \n"),e+=`**${t.name}** \n${t.type}`;const n=t.getDescription();return n&&(e+=` \n${n}`),e}),i);return{name:a,description:i,type:"dictionary",properties:await l(r,e.exports.CompletionItemKind.Field),completion:{label:a,detail:a,insertText:a,insertTextMode:e.exports.InsertTextMode.asIs,insertTextFormat:e.exports.InsertTextFormat.PlainText,kind:n,documentation:{kind:"markdown",value:s}}}}(n,a);case"feature":return await async function(n,a){const r=await n.loadSource(),{name:i}=n,s=n.getDescription(),o={label:i,detail:i,insertText:i,insertTextMode:e.exports.InsertTextMode.asIs,insertTextFormat:e.exports.InsertTextFormat.PlainText,kind:a},c={name:i,description:s,type:"dictionary",properties:[],completion:o};if(!r)return c;const[u,d]=t(r.fields,s,!0);return c.properties=u,o.documentation={kind:"markdown",value:d},c}(n,a);default:return function(t,n){const{name:a,type:r}=t,i=t.getDescription();return{name:a,description:i,type:r,completion:{label:a,detail:a,insertText:a,insertTextMode:e.exports.InsertTextMode.asIs,insertTextFormat:e.exports.InsertTextFormat.PlainText,kind:n,documentation:{kind:"markdown",value:i}}}}(n,a)}})))}async function p(e="en"){const t=f.get(e);if(t)return t;if(!s.has(e))return await p("en");try{const t=await fetch(d(`./assets/arcade-language/profiles/arcade-profiles.t9n.${e}.json`));return t.ok?function(e,t){const n=new Map;return t.forEach((e=>{n.set(e.id,e)})),f.set(e,n),n}(e,await t.json()):"en"===e?null:await p("en")}catch{return null}}const f=new Map;function y(e){switch(e.type){case"dictionary":return{...e,type:e.type,properties:(t=e.properties,t?.map(y))};case"array":return{...e,type:e.type,elementType:{type:"number",name:"number"}};default:return{...e,type:e.type}}var t}async function m(e,t="en"){if(!n(e))return;const s=await async function(e,t="en"){const n=await p(t);return n?.get(e)??null}(e.id,t);if(!s)return;const o={bundles:[...s.bundles],variables:[],hiddenApiItems:e.hiddenApiItems?.map((e=>e.toLowerCase()))};var c;return s.variables.forEach((t=>{if(e.disabledVariables?.includes(t.name))return;const n=e.definitions[t.name];switch(t.type){case"dictionary":return o.variables.push(y({...t,type:t.type,properties:Array.isArray(n)?[...n]:t.properties}));case"feature":if(!i(n))return;return o.variables.push({...t,type:t.type,definition:n});case"featureSet":if(!r(n))return;return o.variables.push({...t,type:t.type,definition:n});case"featureSetCollection":if(!a(n))return;return o.variables.push({...t,type:t.type,definition:n});default:return o.variables.push(y(t))}})),(c=e)&&"object"==typeof c&&"additionalVariables"in c&&Array.isArray(c.additionalVariables)&&o.variables.push(...e.additionalVariables??[]),o}const w=new class extends o{constructor(){super("arcade",{apiPath:"./assets/arcade-language/api",apiPrefix:"arcade-api.t9n."})}async setProfileForModel(e,t,a={locale:"en"}){n(t)&&(t=await m(t,a.locale));const r=await c(a.locale,d("./assets/arcade-language/t9n"),"profile.t9n.");if(!r)throw new Error(`Failed to load the language bundle for ${a.locale}`);this.disposeForModel(e);const i=this._getApiKey(e),s=new u(t,r);this._modelToProfileMap.set(i,s);const o=await async function(e){const{apiVersion:t,bundles:n,hiddenApiItems:a}=e.toEditorProfileDefinition();return{apiVersion:t,bundles:n,variables:await l(e.dictionaryVariables),hiddenApiItems:a?.map((e=>e.toLowerCase()))}}(s);this.updateApiContextForModel(e,{locale:a.locale,profile:o,snippets:a.snippets})}},b={setProfileForModel:w.setProfileForModel.bind(w),getApiLibraryForModel:w.getApiLibraryForModel.bind(w)};export{b as a,w as b}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
6
|
/*!-----------------------------------------------------------------------------
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
|
-
import{O as t}from"./p-
|
|
6
|
+
import{O as t}from"./p-1b74896f.js";import"./p-a6815cc8.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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
|
-
import{r as t,c as i,h as s,a as e}from"./p-
|
|
6
|
+
import{r as t,c as i,h as s,a as e}from"./p-a6815cc8.js";import{u as c,a as l}from"./p-42635273.js";import{x as o}from"./p-1b74896f.js";const a=class{constructor(s){t(this,s),this.arcgisClose=i(this,"arcgisClose",3),this.arcgisFieldSelected=i(this,"arcgisFieldSelected",3),this.manager=c(this),this.messages=l(),this._handleSelectField=t=>{if(t.target instanceof HTMLElement)switch(t.target.tagName.toLowerCase()){case"calcite-list-item":this.arcgisFieldSelected.emit(t.target.value??"");break;case"calcite-action":t.stopPropagation()}},this._handleSelectDomain=t=>{const i=t.target.value;this.arcgisFieldSelected.emit(i?`'${i}'`:"")},this._emitClose=()=>{this.arcgisClose.emit()},this._mutationCounter=1,this._flowItemRenderers=[],this._filterValue="",this.loading=!1,this.modelId=void 0}modelIdPropChanged(){this._flowItemRenderers=[]}disconnectedCallback(){this._flowObserver?.disconnect()}render(){const t=o.getFeatureLayerForModel(this.modelId??"");return!this.loading&&this.modelId&&t?s("calcite-flow",null,s("calcite-flow-item",{heading:this.messages.availablefields??"",closable:!0,onCalciteFlowItemClose:this._emitClose},s("calcite-list",{filterEnabled:!0},t.fields.map((t=>s("calcite-list-item",{key:t.name,onClick:this._handleSelectField,label:t.name,description:t.alias,value:t.name},t.domain&&s("calcite-action",{slot:"actions-end",text:"open",icon:"chevron-right",onClick:()=>{const i=t.domain;"coded-value"===i.type&&(this._flowItemRenderers=[...this._flowItemRenderers,()=>s("calcite-flow-item",{closable:!0,heading:this.messages.domainvalues??"",description:t.name,onCalciteFlowItemClose:this._emitClose},s("calcite-list",null,i.codedValues.map((t=>s("calcite-list-item",{key:t.code,onClick:this._handleSelectDomain,label:t.name,description:String(t.code),value:String(t.code)})))))])}})))))),this._flowItemRenderers.map((t=>t()))):s("calcite-block",{heading:this.messages.availablefields??""})}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{modelId:["modelIdPropChanged"]}}};a.style=":host calcite-flow{height:100%}:host calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}";export{a as arcgis_sql_expression_fields}
|
|
@@ -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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
|
-
import{P as t,O as e}from"./p-
|
|
6
|
+
import{P as t,O as e}from"./p-1b74896f.js";import"./p-a6815cc8.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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
|
-
import{O as e}from"./p-
|
|
6
|
+
import{O as e}from"./p-1b74896f.js";import"./p-a6815cc8.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
6
|
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,r=(e,t)=>(0,console.error)(e,t),s=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="http://www.w3.org/1999/xlink",a="undefined"!=typeof window?window:{},f=a.document||{head:{}},d={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,y=[],v=[],w=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&d.l?g($):d.raf($))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){r(e)}e.length=0},$=()=>{b(y),b(v),(m=y.length>0)&&d.raf($)},g=e=>h().then(e),S=w(v,!0),k=e=>{const t=new URL(e,d.o);return t.origin!==a.location.origin?t.href:t.pathname},j={},E=e=>"object"==(e=typeof e)||"function"===e;function O(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>x,map:()=>M,ok:()=>C,unwrap:()=>U,unwrapErr:()=>L});var C=e=>({isOk:!0,isErr:!1,value:e}),x=e=>({isOk:!1,isErr:!0,value:e});function M(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>C(e))):C(n)}if(e.isErr)return x(e.value);throw"should never get here"}var P,U=e=>{if(e.isOk)return e.value;throw e.value},L=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...n)=>{let l=null,o=null,r=!1,s=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((r="function"!=typeof e&&!E(l))&&(l+=""),r&&s?i[i.length-1].i+=l:i.push(r?A(null,l):l),s=r)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,H);const u=A(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},A=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),D={},H={forEach:(e,t)=>e.map(T).forEach(t),map:(e,t)=>e.map(T).map(t).map(W)},T=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.$,vtag:e.m,vtext:e.i}),W=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),R(e.vtag,t,...e.vchildren||[])}const t=A(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.$=e.vname,t},F=e=>n(e).$hostElement$,N=(e,t,n)=>{const l=F(e);return{emit:e=>q(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},q=(e,t,n)=>{const l=d.ce(t,n);return e.dispatchEvent(l),l},G=new WeakMap,V=e=>"sc-"+e.S,_=(e,t,n,l,r,s)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=B(n),r=B(l);t.remove(...o.filter((e=>e&&!r.includes(e)))),t.add(...r.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=E(l);if((i||o&&null!==l)&&!r)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,a=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(a?e.removeAttributeNS(u,t):e.removeAttribute(t)):(!i||4&s||r)&&!o&&(l=!0===l?"":l,a?e.setAttributeNS(u,t,l):e.setAttribute(t,l))}else if(t="-"===t[2]?t.slice(3):o(a,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(I);t=t.replace(J,""),n&&d.rel(e,t,n,o),l&&d.ael(e,t,l,o)}}},z=/\s/,B=e=>e?e.split(z):[],I="Capture",J=RegExp(I+"$"),K=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||j,r=t.u||j;for(const e of Q(Object.keys(o)))e in r||_(l,e,o[e],void 0,n,t.l);for(const e of Q(Object.keys(r)))_(l,e,o[e],r[e],n,t.l)};function Q(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var X=!1,Y=(e,t,n)=>{const l=t.h[n];let o,r,s=0;if(null!==l.i)o=l.v=f.createTextNode(l.i);else if(o=l.v=f.createElement(l.m),K(null,l,X),o.getRootNode().querySelector("body"),l.h)for(s=0;s<l.h.length;++s)r=Y(e,l,s),r&&o.appendChild(r);return o["s-hn"]=P,o},Z=(e,t,n,l,o,r)=>{let s,i=e;for(i.shadowRoot&&i.tagName===P&&(i=i.shadowRoot);o<=r;++o)l[o]&&(s=Y(null,n,o),s&&(l[o].v=s,oe(i,s,t)))},ee=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;le(t),e&&e.remove()}}},te=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),ne=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,r=t.h,s=t.i;null===s?(K(e,t,X),null!==o&&null!==r?((e,t,n,l,o=!1)=>{let r,s,i=0,c=0,u=0,a=0,f=t.length-1,d=t[0],h=t[f],p=l.length-1,m=l[0],y=l[p];for(;i<=f&&c<=p;)if(null==d)d=t[++i];else if(null==h)h=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--p];else if(te(d,m,o))ne(d,m,o),d=t[++i],m=l[++c];else if(te(h,y,o))ne(h,y,o),h=t[--f],y=l[--p];else if(te(d,y,o))ne(d,y,o),oe(e,d.v,h.v.nextSibling),d=t[++i],y=l[--p];else if(te(h,m,o))ne(h,m,o),oe(e,h.v,d.v),h=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(s=t[u],s.m!==m.m?r=Y(t&&t[c],n,u):(ne(s,m,o),t[u]=void 0,r=s.v),m=l[++c]):(r=Y(t&&t[c],n,c),m=l[++c]),r&&oe(d.v.parentNode,r,d.v)}i>f?Z(e,null==l[p+1]?null:l[p+1].v,n,l,c,p):c>p&&ee(t,i,f)})(l,o,t,r,n):null!==r?(null!==e.i&&(l.textContent=""),Z(l,null,t,r,0,r.length-1)):!n&&null!==o&&ee(o,0,o.length-1)):e.i!==s&&(l.data=s)},le=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(le)},oe=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),re=(e,t)=>{t&&!e.k&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.k=t)))},se=(e,t)=>{if(e.l|=16,!(4&e.l))return re(e,e.j),S((()=>ie(e,t)));e.l|=512},ie=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=me(n,t?"componentWillLoad":"componentWillUpdate"),ce(l,(()=>ae(e,n,t)))},ce=(e,t)=>ue(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ue=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ae=async(e,t,n)=>{var l;const o=e.$hostElement$,r=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=V(t),o=i.get(l);if(e=11===e.nodeType?e:f,o)if("string"==typeof o){let r,s=G.get(e=e.head||e);if(s||G.set(e,s=new Set),!s.has(l)){{r=f.createElement("style"),r.innerHTML=o;const l=null!=(n=d.C)?n:O(f);null!=l&&r.setAttribute("nonce",l),(!(1&t.l)||1&t.l&&"HEAD"!==e.nodeName)&&e.insertBefore(r,e.querySelector("link"))}4&t.l&&(r.innerHTML+=c),s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);fe(e,t,o,n),r&&(r.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>de(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},fe=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,r=e.M||A(null,null),s=(e=>e&&e.m===D)(t)?t:R(null,null,t);if(P=l.tagName,o.P&&(s.u=s.u||{},o.P.map((([e,t])=>s.u[t]=l[e]))),n&&s.u)for(const e of Object.keys(s.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(s.u[e]=l[e]);s.m=null,s.l|=4,e.M=s,s.v=r.v=l.shadowRoot||l,ne(r,s,n)})(e,t,l)}catch(t){r(t,e.$hostElement$)}return null},de=e=>{const t=e.$hostElement$,n=e.t,l=e.j;64&e.l?me(n,"componentDidUpdate"):(e.l|=64,ye(t),me(n,"componentDidLoad"),e.U(t),l||pe()),e.L(t),e.k&&(e.k(),e.k=void 0),512&e.l&&g((()=>se(e,!1))),e.l&=-517},he=e=>{{const t=n(e),l=t.$hostElement$.isConnected;return l&&2==(18&t.l)&&se(t,!1),l}},pe=()=>{ye(f.documentElement),g((()=>q(a,"appload",{detail:{namespace:"arcgis-coding-components"}})))},me=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){r(e)}},ye=e=>e.setAttribute("hydrated",""),ve=(e,t,l)=>{var o,s;const i=e.prototype;if(t.R||t.A||e.watchers){e.watchers&&!t.A&&(t.A=e.watchers);const c=Object.entries(null!=(o=t.R)?o:{});if(c.map((([e,[o]])=>{31&o||2&l&&32&o?Object.defineProperty(i,e,{get(){return((e,t)=>n(this).D.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.$hostElement$,c=s.D.get(t),u=s.l,a=s.t;if(l=((e,t)=>null==e||E(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.R[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(s.D.set(t,l),a)){if(o.A&&128&u){const e=o.A[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){r(e,i)}}))}if(2==(18&u)){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(l,c,t))return;se(s,!1)}}})(this,e,l,t)},configurable:!0,enumerable:!0}):1&l&&64&o&&Object.defineProperty(i,e,{value(...t){var l;const o=n(this);return null==(l=null==o?void 0:o.H)?void 0:l.then((()=>{var n;return null==(n=o.t)?void 0:n[e](...t)}))}})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,r){d.jmp((()=>{var s;const c=l.get(e);if(this.hasOwnProperty(c))r=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==r)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&r!==o){const n=l.t,i=null==(s=t.A)?void 0:s[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,r,o,e)}))}return}}this[c]=(null!==r||"boolean"!=typeof this[c])&&r}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.A)?s:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const r=n[1]||e;return l.set(r,e),512&n[0]&&(null==(o=t.P)||o.push([e,r])),r}))]))}}return e},we=e=>{me(e,"connectedCallback")},be=e=>{me(e,"disconnectedCallback")},$e=(e,o={})=>{var u;const h=[],m=o.exclude||[],y=a.customElements,v=f.head,w=v.querySelector("meta[charset]"),b=f.createElement("style"),$=[];let g,S=!0;Object.assign(d,o),d.o=new URL(o.resourcesUrl||"./",f.baseURI).href;let k=!1;if(e.map((e=>{e[1].map((o=>{var c;const u={l:o[0],S:o[1],R:o[2],T:o[3]};4&u.l&&(k=!0),u.R=o[2],u.P=[],u.A=null!=(c=o[4])?c:{};const a=u.S,f=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,D:new Map};l.H=new Promise((e=>l.L=e)),l.W=new Promise((e=>l.U=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,u),1&u.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${u.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),g&&(clearTimeout(g),g=null),S?$.push(this):d.jmp((()=>(e=>{if(!(1&d.l)){const t=n(e),o=t.O,c=()=>{};if(1&t.l)(null==t?void 0:t.t)?we(t.t):(null==t?void 0:t.W)&&t.W.then((()=>we(t.t)));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){re(t,t.j=n);break}}o.R&&Object.entries(o.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.l)){if(t.l|=32,n.F){const e=(e=>{const t=e.S.replace(/-/g,"_"),n=e.F;if(!n)return;const l=s.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),r)
|
|
7
7
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.S}#${t.N}" was not found`);o.isProxied||(n.A=o.watchers,ve(o,n,2),o.isProxied=!0);const i=()=>{};t.l|=8;try{o.__forceUpdate=he,o.__registerControllers=e=>(l(e,t),t.O.R??{}),new o(t),o.__registerControllers=void 0}catch(e){r(e)}t.l&=-9,t.l|=128,i(),we(t.t)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=V(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const c=t.j,u=()=>se(t,!0);c&&c["s-rc"]?c["s-rc"].push(u):u()})(e,t,o)}c()}})(this)))}disconnectedCallback(){d.jmp((()=>(async()=>{if(!(1&d.l)){const e=n(this);(null==e?void 0:e.t)?be(e.t):(null==e?void 0:e.W)&&e.W.then((()=>be(e.t)))}})()))}componentOnReady(){return n(this).W}};u.F=e[0],m.includes(a)||y.get(a)||(h.push(a),y.define(a,ve(f,u,1)))}))})),h.length>0&&(k&&(b.textContent+=c),b.textContent+=h.sort()+"{visibility:hidden}[hydrated]{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(u=d.C)?u:O(f);null!=e&&b.setAttribute("nonce",e),v.insertBefore(b,w?w.nextSibling:v.firstChild)}S=!1,$.length?$.map((e=>e.connectedCallback())):d.jmp((()=>g=setTimeout(pe,30)))},ge=(e,t)=>t,Se=e=>d.C=e;export{ge as F,D as H,F as a,$e as b,N as c,k as g,R as h,h as p,l as r,Se as s}
|
|
@@ -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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
|
-
import{O as t}from"./p-
|
|
6
|
+
import{O as t}from"./p-1b74896f.js";import"./p-a6815cc8.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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
|
-
import{conf as e,language as t}from"./p-
|
|
6
|
+
import{conf as e,language as t}from"./p-00420ce4.js";import"./p-1b74896f.js";import"./p-a6815cc8.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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
|
-
import{m as e,r as t,Q as s,R as r,w as n,T as i,D as a,V as o}from"./p-c0b4c0fe.js";import"./p-1d7e2ff3.js";var c=[[],[],[]];["++","--"].forEach((e=>c[e.length-1]?.push(e))),["-","+","!","~"].forEach((e=>c[e.length-1]?.push(e))),["||","&&"].forEach((e=>c[e.length-1]?.push(e))),["=","/=","*=","%=","+=","-="].forEach((e=>c[e.length-1]?.push(e))),["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"].forEach((e=>c[e.length-1]?.push(e)));var u=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.exports.CompletionItemKind.Constant}))),u.map((t=>({label:t,kind:e.exports.CompletionItemKind.Keyword})));const l={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}},g={defaultToken:"invalid",tokenPostfix:".arcgis",ignoreCase:!0,keywords:u.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 p{constructor(e,s,{defaults:r,diagnosticsService:n}){this._languageId=e,this._worker=s,this._disposables=[],this._modelListeners=new Map,this._diagnosticsService=n,this._defaults=r;const a=e=>{const t=e.getLanguageId();if(t!==this._languageId)return;const s=i((()=>{this._doValidate(e,t).catch((e=>{throw e}))})),r=e.onDidChangeContent(s),n=e.onDidChangeAttached(s);this._modelListeners.set(e.uri.toString(),[r,n]),this._doValidate(e,t).catch(console.error)},o=e=>{const s=e.uri.toString();t.setModelMarkers(e,this._languageId,[]);const r=this._modelListeners.get(s);if(r){for(;r.length;)r.pop()?.dispose();this._modelListeners.delete(s)}};this._disposables.push(t.onDidCreateModel(a)),this._disposables.push(t.onWillDisposeModel((e=>{o(e)}))),this._disposables.push(t.onDidChangeModelLanguage((e=>{o(e.model),a(e.model)}))),this._disposables.push(r.onDidChange((()=>{t.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(o(e),a(e))}))}))),this._disposables.push(r.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._modelListeners.forEach((e=>e.forEach((e=>e.dispose())))),this._modelListeners.clear()}}),t.getModels().forEach(a)}dispose(){this._disposables.forEach((e=>e.dispose())),this._disposables=[]}async _doValidate(e,s){if(e.isAttachedToEditor())try{const r=await this._worker(e.uri),n=this._defaults.getApiContextForModel(e.uri),i=await r.doValidation(e.uri.toString(),n),a=i.map((e=>{return{severity:d((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,a)}catch(e){console.error(e)}}}function d(t){switch(t){case e.exports.DiagnosticSeverity.Error:return s.Error;case e.exports.DiagnosticSeverity.Warning:return s.Warning;case e.exports.DiagnosticSeverity.Information:return s.Info;case e.exports.DiagnosticSeverity.Hint:return s.Hint;default:return s.Info}}function h(e){return new r(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function m(e){return{range:h(e.range),text:e.newText}}function x(t){const s=n.CompletionItemKind;switch(t){case e.exports.CompletionItemKind.Text:return s.Text;case e.exports.CompletionItemKind.Method:return s.Method;case e.exports.CompletionItemKind.Function:return s.Function;case e.exports.CompletionItemKind.Constructor:return s.Constructor;case e.exports.CompletionItemKind.Field:return s.Field;case e.exports.CompletionItemKind.Variable:return s.Variable;case e.exports.CompletionItemKind.Class:return s.Class;case e.exports.CompletionItemKind.Interface:return s.Interface;case e.exports.CompletionItemKind.Module:return s.Module;case e.exports.CompletionItemKind.Property:return s.Property;case e.exports.CompletionItemKind.Unit:return s.Unit;case e.exports.CompletionItemKind.Value:return s.Value;case e.exports.CompletionItemKind.Enum:return s.Enum;case e.exports.CompletionItemKind.Keyword:return s.Keyword;case e.exports.CompletionItemKind.Snippet:return s.Snippet;case e.exports.CompletionItemKind.Color:return s.Color;case e.exports.CompletionItemKind.File:return s.File;case e.exports.CompletionItemKind.Reference:return s.Reference;case e.exports.CompletionItemKind.Folder:return s.Folder;case e.exports.CompletionItemKind.EnumMember:return s.EnumMember;case e.exports.CompletionItemKind.Constant:return s.Constant;case e.exports.CompletionItemKind.Struct:return s.Struct;case e.exports.CompletionItemKind.Event:return s.Event;case e.exports.CompletionItemKind.Operator:return s.Operator;case e.exports.CompletionItemKind.TypeParameter:return s.TypeParameter;default:return s.Property}}class f{constructor(e,t){this._worker=e,this._defaults=t,this.triggerCharacters=[".","("]}async provideCompletionItems(t,s){const i=await this._worker(t.uri),a=this._defaults.getApiContextForModel(t.uri),o=await i.doComplete(t.uri.toString(),function(e){return{character:e.column-1,line:e.lineNumber-1}}(s),a),c=t.getWordUntilPosition(s),u=new r(s.lineNumber,c.startColumn,s.lineNumber,c.endColumn),l=o.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:x(t.kind)};var r;return t.textEdit&&(s.range=void 0!==(r=t.textEdit).insert&&void 0!==r.replace?{insert:h(t.textEdit.insert),replace:h(t.textEdit.replace)}:h(t.textEdit.range),s.insertText=t.textEdit.newText),t.additionalTextEdits&&(s.additionalTextEdits=t.additionalTextEdits.map(m)),t.insertTextFormat===e.exports.InsertTextFormat.Snippet&&(s.insertTextRules=n.CompletionItemInsertTextRule.InsertAsSnippet),t.documentation&&(s.documentation="string"==typeof t.documentation?t.documentation:{supportThemeIcons:!1,value:t.documentation.value,supportHtml:!0}),s}));return{incomplete:o.isIncomplete,suggestions:l}}}class w{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:h(e.range),text:e.newText})))}}let k,b=new a;class y{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,b=new a),this._client=null}static async waitForWorker(){return await b.promise}async _getClientProxy(){if(!this._client){const{languageId:e}=this._defaults;this._worker=t.createWebWorker({moduleId:"ArcadeWorker",label:e,createData:{languageId:e},host:this._defaults.workerHost}),b.resolve(this._worker),this._client=this._worker.getProxy()}return await this._client}async getLanguageServiceWorker(...e){const t=await this._getClientProxy();return await(this._worker?.withSyncedResources(e)),t}}async function v(...e){return await y.waitForWorker(),await new Promise(((t,s)=>{k?t(k(...e)):s(new Error("Arcade not registered!"))}))}const C=new class{constructor(){this._onDiagnosticsChange=new o}get onDiagnosticsChange(){return this._onDiagnosticsChange.event}fireDiagnosticsChange(e,t){this._onDiagnosticsChange.fire({uri:e,diagnostics:t})}};function _(){return C}function F(e){const t=new y(e),s=async(...e)=>await t.getLanguageServiceWorker(...e);k=s,n.setMonarchTokensProvider(e.languageId,g),n.setLanguageConfiguration(e.languageId,l),n.registerCompletionItemProvider(e.languageId,new f(s,e)),n.registerDocumentFormattingEditProvider(e.languageId,new w(s,e)),new p(e.languageId,s,{defaults:e,diagnosticsService:C})}export{_ as getArcadeDiagnosticService,v as getArcadeWorker,F as setupMode}
|
|
6
|
+
import{m as e,r as t,Q as s,R as r,w as n,T as i,D as a,V as o}from"./p-1b74896f.js";import"./p-a6815cc8.js";var c=[[],[],[]];["++","--"].forEach((e=>c[e.length-1]?.push(e))),["-","+","!","~"].forEach((e=>c[e.length-1]?.push(e))),["||","&&"].forEach((e=>c[e.length-1]?.push(e))),["=","/=","*=","%=","+=","-="].forEach((e=>c[e.length-1]?.push(e))),["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"].forEach((e=>c[e.length-1]?.push(e)));var u=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.exports.CompletionItemKind.Constant}))),u.map((t=>({label:t,kind:e.exports.CompletionItemKind.Keyword})));const l={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}},g={defaultToken:"invalid",tokenPostfix:".arcgis",ignoreCase:!0,keywords:u.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 p{constructor(e,s,{defaults:r,diagnosticsService:n}){this._languageId=e,this._worker=s,this._disposables=[],this._modelListeners=new Map,this._diagnosticsService=n,this._defaults=r;const a=e=>{const t=e.getLanguageId();if(t!==this._languageId)return;const s=i((()=>{this._doValidate(e,t).catch((e=>{throw e}))})),r=e.onDidChangeContent(s),n=e.onDidChangeAttached(s);this._modelListeners.set(e.uri.toString(),[r,n]),this._doValidate(e,t).catch(console.error)},o=e=>{const s=e.uri.toString();t.setModelMarkers(e,this._languageId,[]);const r=this._modelListeners.get(s);if(r){for(;r.length;)r.pop()?.dispose();this._modelListeners.delete(s)}};this._disposables.push(t.onDidCreateModel(a)),this._disposables.push(t.onWillDisposeModel((e=>{o(e)}))),this._disposables.push(t.onDidChangeModelLanguage((e=>{o(e.model),a(e.model)}))),this._disposables.push(r.onDidChange((()=>{t.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(o(e),a(e))}))}))),this._disposables.push(r.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._modelListeners.forEach((e=>e.forEach((e=>e.dispose())))),this._modelListeners.clear()}}),t.getModels().forEach(a)}dispose(){this._disposables.forEach((e=>e.dispose())),this._disposables=[]}async _doValidate(e,s){if(e.isAttachedToEditor())try{const r=await this._worker(e.uri),n=this._defaults.getApiContextForModel(e.uri),i=await r.doValidation(e.uri.toString(),n),a=i.map((e=>{return{severity:d((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,a)}catch(e){console.error(e)}}}function d(t){switch(t){case e.exports.DiagnosticSeverity.Error:return s.Error;case e.exports.DiagnosticSeverity.Warning:return s.Warning;case e.exports.DiagnosticSeverity.Information:return s.Info;case e.exports.DiagnosticSeverity.Hint:return s.Hint;default:return s.Info}}function h(e){return new r(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function m(e){return{range:h(e.range),text:e.newText}}function x(t){const s=n.CompletionItemKind;switch(t){case e.exports.CompletionItemKind.Text:return s.Text;case e.exports.CompletionItemKind.Method:return s.Method;case e.exports.CompletionItemKind.Function:return s.Function;case e.exports.CompletionItemKind.Constructor:return s.Constructor;case e.exports.CompletionItemKind.Field:return s.Field;case e.exports.CompletionItemKind.Variable:return s.Variable;case e.exports.CompletionItemKind.Class:return s.Class;case e.exports.CompletionItemKind.Interface:return s.Interface;case e.exports.CompletionItemKind.Module:return s.Module;case e.exports.CompletionItemKind.Property:return s.Property;case e.exports.CompletionItemKind.Unit:return s.Unit;case e.exports.CompletionItemKind.Value:return s.Value;case e.exports.CompletionItemKind.Enum:return s.Enum;case e.exports.CompletionItemKind.Keyword:return s.Keyword;case e.exports.CompletionItemKind.Snippet:return s.Snippet;case e.exports.CompletionItemKind.Color:return s.Color;case e.exports.CompletionItemKind.File:return s.File;case e.exports.CompletionItemKind.Reference:return s.Reference;case e.exports.CompletionItemKind.Folder:return s.Folder;case e.exports.CompletionItemKind.EnumMember:return s.EnumMember;case e.exports.CompletionItemKind.Constant:return s.Constant;case e.exports.CompletionItemKind.Struct:return s.Struct;case e.exports.CompletionItemKind.Event:return s.Event;case e.exports.CompletionItemKind.Operator:return s.Operator;case e.exports.CompletionItemKind.TypeParameter:return s.TypeParameter;default:return s.Property}}class f{constructor(e,t){this._worker=e,this._defaults=t,this.triggerCharacters=[".","("]}async provideCompletionItems(t,s){const i=await this._worker(t.uri),a=this._defaults.getApiContextForModel(t.uri),o=await i.doComplete(t.uri.toString(),function(e){return{character:e.column-1,line:e.lineNumber-1}}(s),a),c=t.getWordUntilPosition(s),u=new r(s.lineNumber,c.startColumn,s.lineNumber,c.endColumn),l=o.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:x(t.kind)};var r;return t.textEdit&&(s.range=void 0!==(r=t.textEdit).insert&&void 0!==r.replace?{insert:h(t.textEdit.insert),replace:h(t.textEdit.replace)}:h(t.textEdit.range),s.insertText=t.textEdit.newText),t.additionalTextEdits&&(s.additionalTextEdits=t.additionalTextEdits.map(m)),t.insertTextFormat===e.exports.InsertTextFormat.Snippet&&(s.insertTextRules=n.CompletionItemInsertTextRule.InsertAsSnippet),t.documentation&&(s.documentation="string"==typeof t.documentation?t.documentation:{supportThemeIcons:!1,value:t.documentation.value,supportHtml:!0}),s}));return{incomplete:o.isIncomplete,suggestions:l}}}class w{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:h(e.range),text:e.newText})))}}let k,b=new a;class y{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,b=new a),this._client=null}static async waitForWorker(){return await b.promise}async _getClientProxy(){if(!this._client){const{languageId:e}=this._defaults;this._worker=t.createWebWorker({moduleId:"ArcadeWorker",label:e,createData:{languageId:e},host:this._defaults.workerHost}),b.resolve(this._worker),this._client=this._worker.getProxy()}return await this._client}async getLanguageServiceWorker(...e){const t=await this._getClientProxy();return await(this._worker?.withSyncedResources(e)),t}}async function v(...e){return await y.waitForWorker(),await new Promise(((t,s)=>{k?t(k(...e)):s(new Error("Arcade not registered!"))}))}const C=new class{constructor(){this._onDiagnosticsChange=new o}get onDiagnosticsChange(){return this._onDiagnosticsChange.event}fireDiagnosticsChange(e,t){this._onDiagnosticsChange.fire({uri:e,diagnostics:t})}};function _(){return C}function F(e){const t=new y(e),s=async(...e)=>await t.getLanguageServiceWorker(...e);k=s,n.setMonarchTokensProvider(e.languageId,g),n.setLanguageConfiguration(e.languageId,l),n.registerCompletionItemProvider(e.languageId,new f(s,e)),n.registerDocumentFormattingEditProvider(e.languageId,new w(s,e)),new p(e.languageId,s,{defaults:e,diagnosticsService:C})}export{_ as getArcadeDiagnosticService,v as getArcadeWorker,F as setupMode}
|
|
@@ -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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
|
-
import{O as t}from"./p-
|
|
6
|
+
import{O as t}from"./p-1b74896f.js";import"./p-a6815cc8.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
9
|
-
const index = require('./index-
|
|
8
|
+
const sqlExprDefaults = require('./sql-expr-defaults-2a5b8cde.js');
|
|
9
|
+
const index = require('./index-5068811b.js');
|
|
10
10
|
|
|
11
11
|
// #region convert editor profile to apiProfile
|
|
12
12
|
/**
|
|
@@ -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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const sqlExprDefaults = require('./sql-expr-defaults-2a5b8cde.js');
|
|
9
|
+
require('./index-5068811b.js');
|
|
10
10
|
|
|
11
11
|
var V={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"},xe=["++","--"],Ge=["-","+","!","~"],Je=["=","/=","*=","%=","+=","-="],Qe=["||","&&"],Lt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var U=[[],[],[]];xe.forEach(e=>U[e.length-1]?.push(e));Ge.forEach(e=>U[e.length-1]?.push(e));Qe.forEach(e=>U[e.length-1]?.push(e));Je.forEach(e=>U[e.length-1]?.push(e));Lt.forEach(e=>U[e.length-1]?.push(e));var lt=Object.values(f),pt=Object.values(V);pt.map(e=>({label:e,kind:sqlExprDefaults.main.exports.CompletionItemKind.Constant}));lt.map(e=>({label:e,kind:sqlExprDefaults.main.exports.CompletionItemKind.Keyword}));
|
|
12
12
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const index = require('./index-
|
|
11
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
12
|
-
const useT9n = require('./useT9n-
|
|
13
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
10
|
+
const index = require('./index-5068811b.js');
|
|
11
|
+
const sqlExprDefaults = require('./sql-expr-defaults-2a5b8cde.js');
|
|
12
|
+
const useT9n = require('./useT9n-98f6e34e.js');
|
|
13
|
+
const arcadeDefaults = require('./arcade-defaults-500a58bc.js');
|
|
14
14
|
|
|
15
15
|
const DevelopersWebSitePath = "https://developers.arcgis.com/arcade/";
|
|
16
16
|
const MaxArrayItems = 100;
|
|
@@ -307,7 +307,7 @@ async function getArcadeDiagnosticService() {
|
|
|
307
307
|
* @returns arcade mode module
|
|
308
308
|
*/
|
|
309
309
|
async function getMode$1() {
|
|
310
|
-
return await Promise.resolve().then(function () { return require('./arcade-mode-
|
|
310
|
+
return await Promise.resolve().then(function () { return require('./arcade-mode-b1772e70.js'); });
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
const arcadeEditorCss = "arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%}arcgis-arcade-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-arcade-editor .flex-panel{flex:1 0 auto}arcgis-arcade-editor .position-relative{position:relative}arcgis-arcade-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-arcade-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-arcade-editor .border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-arcade-editor .border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-arcade-editor .sticky{position:sticky;top:0px;z-index:10}arcgis-arcade-editor .notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}arcgis-arcade-editor .side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}arcgis-arcade-editor .side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}arcgis-arcade-editor .side-panel calcite-flow{height:100%}arcgis-arcade-editor .main-action-bar{border-bottom:var(--arcgis-coding-components-border);flex:0 0 auto}arcgis-arcade-editor .main-action-bar calcite-action-group{padding-inline-end:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group:last-child{border-inline-end-width:0px}arcgis-arcade-editor .main-action-bar calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}arcgis-arcade-editor arcgis-arcade-results{border-top:var(--arcgis-coding-components-border);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}arcgis-arcade-editor calcite-flow [slot=footer]{word-break:break-word}";
|
|
@@ -3957,7 +3957,7 @@ sqlExprDefaults.languages.onLanguage(arcadeDefaults.arcadeDefaults.languageId, (
|
|
|
3957
3957
|
* @returns sql-expression mode module
|
|
3958
3958
|
*/
|
|
3959
3959
|
async function getMode() {
|
|
3960
|
-
return await Promise.resolve().then(function () { return require('./sql-expr-mode-
|
|
3960
|
+
return await Promise.resolve().then(function () { return require('./sql-expr-mode-39d6b488.js'); });
|
|
3961
3961
|
}
|
|
3962
3962
|
|
|
3963
3963
|
// Register the language in Monaco
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const index = require('./index-
|
|
11
|
-
const appGlobals = require('./app-globals-
|
|
10
|
+
const index = require('./index-5068811b.js');
|
|
11
|
+
const appGlobals = require('./app-globals-48b73099.js');
|
|
12
12
|
|
|
13
13
|
/*
|
|
14
14
|
Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const index = require('./index-
|
|
11
|
-
const useT9n = require('./useT9n-
|
|
12
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
10
|
+
const index = require('./index-5068811b.js');
|
|
11
|
+
const useT9n = require('./useT9n-98f6e34e.js');
|
|
12
|
+
const sqlExprDefaults = require('./sql-expr-defaults-2a5b8cde.js');
|
|
13
13
|
|
|
14
14
|
const sqlExpressionEditorCss = "arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%}arcgis-sql-expression-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-sql-expression-editor .flex-panel{flex:1 0 auto}arcgis-sql-expression-editor .position-relative{position:relative}arcgis-sql-expression-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-sql-expression-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-sql-expression-editor .border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-sql-expression-editor .border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-sql-expression-editor .side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}arcgis-sql-expression-editor .side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}arcgis-sql-expression-editor .side-panel calcite-flow{height:100%}";
|
|
15
15
|
const ArcgisSqlExpressionEditorStyle0 = sqlExpressionEditorCss;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const index = require('./index-
|
|
11
|
-
const useT9n = require('./useT9n-
|
|
12
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
10
|
+
const index = require('./index-5068811b.js');
|
|
11
|
+
const useT9n = require('./useT9n-98f6e34e.js');
|
|
12
|
+
const sqlExprDefaults = require('./sql-expr-defaults-2a5b8cde.js');
|
|
13
13
|
|
|
14
14
|
const sqlExpressionFieldsCss = ":host calcite-flow{height:100%}:host calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}";
|
|
15
15
|
const ArcgisSqlExpressionFieldsStyle0 = sqlExpressionFieldsCss;
|
|
@@ -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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const sqlExprDefaults = require('./sql-expr-defaults-2a5b8cde.js');
|
|
9
|
+
require('./index-5068811b.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.
|
|
4
|
+
* v4.31.4
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const sqlExprDefaults = require('./sql-expr-defaults-2a5b8cde.js');
|
|
9
|
+
require('./index-5068811b.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|