@arcgis/coding-components 4.33.0-next.8 → 4.33.0-next.9
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/{MWJ5CHEJ.js → 27XZTUCS.js} +2 -2
- package/dist/arcgis-coding-components/{ID2AC3RT.js → 2SPL6IJU.js} +1 -1
- package/dist/arcgis-coding-components/{OSTXXNJK.js → 3WYOZF2B.js} +2 -2
- package/dist/arcgis-coding-components/{DIGVFH5W.js → 3YBHPEVW.js} +2 -2
- package/dist/arcgis-coding-components/{37UZ3GPF.js → 4S4IT6SJ.js} +2 -2
- package/dist/arcgis-coding-components/{Z2A4NB53.js → 5ILAKWC4.js} +2 -2
- package/dist/arcgis-coding-components/{I2DIH3OY.js → 5YFELFRQ.js} +2 -2
- package/dist/arcgis-coding-components/{NAEWM634.js → 7OUR75ZF.js} +1 -1
- package/dist/arcgis-coding-components/{GXAPKM44.js → AXPJ2Y25.js} +2 -2
- package/dist/arcgis-coding-components/{DULV53ND.js → AZEVMKOL.js} +2 -2
- package/dist/arcgis-coding-components/{OYXSSBH7.js → B3OUJHOS.js} +2 -2
- package/dist/arcgis-coding-components/{TTQQ5JKL.js → BGR5GZWV.js} +2 -2
- package/dist/arcgis-coding-components/BIHPEQV3.js +4 -0
- package/dist/arcgis-coding-components/{OOHVU5A3.js → BTKF4DO3.js} +2 -2
- package/dist/arcgis-coding-components/{LTVFAP4L.js → DKJJH2YO.js} +3 -3
- package/dist/arcgis-coding-components/{G32BEN4J.js → EB3SL4FA.js} +2 -2
- package/dist/arcgis-coding-components/EOJQ5KTM.js +4 -0
- package/dist/arcgis-coding-components/{PQ56B36C.js → HLAH3PPK.js} +3 -3
- package/dist/arcgis-coding-components/{S3JZLZHZ.js → HNTEZ745.js} +2 -2
- package/dist/arcgis-coding-components/HTWIPGSL.js +6 -0
- package/dist/arcgis-coding-components/{JI7AOVM7.js → KNKNPQAL.js} +1 -1
- package/dist/arcgis-coding-components/{DXXRGVQQ.js → KPLD4IBE.js} +2 -2
- package/dist/arcgis-coding-components/{373O7VHT.js → LOXD2TQY.js} +2 -2
- package/dist/arcgis-coding-components/{CVFDVJN3.js → MKIBJBLW.js} +2 -2
- package/dist/arcgis-coding-components/{WYQEDB7U.js → MRTAPSL6.js} +2 -2
- package/dist/arcgis-coding-components/{35G7PGED.js → QF3BCOZ6.js} +2 -2
- package/dist/arcgis-coding-components/{5WT7SM2S.js → QNHVIC5P.js} +2 -2
- package/dist/arcgis-coding-components/{PWQ52GAZ.js → QQBCWS6N.js} +2 -2
- package/dist/arcgis-coding-components/{N3RKXOXA.js → SHGANYQ4.js} +2 -2
- package/dist/arcgis-coding-components/{JZ6NJCGR.js → UPNODJS2.js} +1 -1
- package/dist/arcgis-coding-components/{NB67VF2E.js → VP2EHHNC.js} +2 -2
- package/dist/arcgis-coding-components/{3GLUU65C.js → WESBCVZE.js} +2 -2
- package/dist/arcgis-coding-components/{CZWNFT76.js → XALSNLFJ.js} +2 -2
- package/dist/arcgis-coding-components/{GYZBYWEL.js → ZSRDAFXU.js} +2 -2
- package/dist/arcgis-coding-components/{XL37MC4N.js → ZUT526VD.js} +1 -1
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +289 -289
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +1 -1
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +2 -2
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +3 -3
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.js +6 -6
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +7 -7
- package/dist/arcgis-coding-components/7IPDDE2I.js +0 -4
- package/dist/arcgis-coding-components/CIW3WAH7.js +0 -4
- package/dist/arcgis-coding-components/ER6MIADV.js +0 -6
|
@@ -7,7 +7,7 @@ import { u as f } from "../../chunks/useT9n.js";
|
|
|
7
7
|
import { css as m } from "@lit/reactive-element/css-tag.js";
|
|
8
8
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
10
|
-
v4.33.0-next.
|
|
10
|
+
v4.33.0-next.9 */
|
|
11
11
|
const u = m`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
|
|
12
12
|
function g(l) {
|
|
13
13
|
l.key === "Enter" && l.stopPropagation();
|
|
@@ -9,7 +9,7 @@ import { u as _ } from "../../chunks/useT9n.js";
|
|
|
9
9
|
import { css as b } from "@lit/reactive-element/css-tag.js";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
12
|
-
v4.33.0-next.
|
|
12
|
+
v4.33.0-next.9 */
|
|
13
13
|
const v = b`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-block{p:first-of-type{margin-top:0}code{font-family:var(--calcite-code-family)}pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm);code{font-size:var(--calcite-font-size--2)}}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
|
|
14
14
|
class y extends u {
|
|
15
15
|
constructor() {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { c as o } from "../../chunks/runtime.js";
|
|
2
2
|
import { html as i } from "lit";
|
|
3
3
|
import { LitElement as s, createEvent as r, noShadowRoot as n } from "@arcgis/lumina";
|
|
4
|
-
import { generateGuid as
|
|
4
|
+
import { generateGuid as l } from "@arcgis/components-utils";
|
|
5
5
|
import { a } from "../../chunks/sql-expr-defaults.js";
|
|
6
|
-
import { u as
|
|
7
|
-
import { createRef as
|
|
6
|
+
import { u as c } from "../../chunks/useT9n.js";
|
|
7
|
+
import { createRef as d, ref as p } from "lit-html/directives/ref.js";
|
|
8
8
|
import { css as h } from "@lit/reactive-element/css-tag.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
11
|
-
v4.33.0-next.
|
|
12
|
-
const g = h
|
|
11
|
+
v4.33.0-next.9 */
|
|
12
|
+
const g = h`@layer{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%;.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);calcite-flow{height:100%}}}}`;
|
|
13
13
|
class f extends s {
|
|
14
14
|
constructor() {
|
|
15
|
-
super(...arguments), this._codeEditorElt =
|
|
15
|
+
super(...arguments), this._codeEditorElt = d(), this.messages = c(), this._modelId = l(), this._preparing = !1, this.sideActionBarExpanded = !1, this.script = "", this.hideSideBar = !1, this.arcgisScriptChange = r({ bubbles: !1 });
|
|
16
16
|
}
|
|
17
17
|
static {
|
|
18
18
|
this.properties = { _activeAction: 16, _apiLibrary: 16, _editorProfile: 16, _preparing: 16, sideActionBarExpanded: 16, profile: 0, script: 1, hideSideBar: 5 };
|
|
@@ -7,7 +7,7 @@ import { u as m } from "../../chunks/useT9n.js";
|
|
|
7
7
|
import { css as d } from "@lit/reactive-element/css-tag.js";
|
|
8
8
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
10
|
-
v4.33.0-next.
|
|
10
|
+
v4.33.0-next.9 */
|
|
11
11
|
const h = d`:host{calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
|
|
12
12
|
class f extends r {
|
|
13
13
|
constructor() {
|
package/dist/docs/api.json
CHANGED
package/dist/docs/docs.json
CHANGED
package/dist/docs/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@arcgis/coding-components",
|
|
4
|
-
"version": "4.33.0-next.
|
|
4
|
+
"version": "4.33.0-next.9",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { a as c } from "./chunks/arcade-defaults.js";
|
|
|
3
3
|
import { s as p } from "./chunks/sql-expr-defaults.js";
|
|
4
4
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
5
5
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
6
|
-
v4.33.0-next.
|
|
6
|
+
v4.33.0-next.9 */
|
|
7
7
|
const a = s, r = t;
|
|
8
8
|
export {
|
|
9
9
|
c as arcade,
|
package/dist/loader.js
CHANGED
|
@@ -2,7 +2,7 @@ import { r as e } from "./chunks/runtime.js";
|
|
|
2
2
|
import { makeDefineCustomElements as i } from "@arcgis/lumina";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
5
|
-
v4.33.0-next.
|
|
5
|
+
v4.33.0-next.9 */
|
|
6
6
|
const o = i(e, {
|
|
7
7
|
"arcgis-arcade-editor": [() => import("./components/arcgis-arcade-editor/customElement.js"), "customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],
|
|
8
8
|
"arcgis-arcade-results": [() => import("./components/arcgis-arcade-results/customElement.js"), "consoleLogs:,loading,openedResultPanel,result:"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/coding-components",
|
|
3
|
-
"version": "4.33.0-next.
|
|
3
|
+
"version": "4.33.0-next.9",
|
|
4
4
|
"description": "Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ArcGIS",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
],
|
|
38
38
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@arcgis/arcade-languageservice": "4.33.0-next.
|
|
41
|
-
"@arcgis/components-controllers": "4.33.0-next.
|
|
42
|
-
"@arcgis/components-utils": "4.33.0-next.
|
|
43
|
-
"@arcgis/core-adapter": "4.33.0-next.
|
|
44
|
-
"@arcgis/languages-api-utils": "4.33.0-next.
|
|
45
|
-
"@arcgis/lumina": "4.33.0-next.
|
|
40
|
+
"@arcgis/arcade-languageservice": "4.33.0-next.9",
|
|
41
|
+
"@arcgis/components-controllers": "4.33.0-next.9",
|
|
42
|
+
"@arcgis/components-utils": "4.33.0-next.9",
|
|
43
|
+
"@arcgis/core-adapter": "4.33.0-next.9",
|
|
44
|
+
"@arcgis/languages-api-utils": "4.33.0-next.9",
|
|
45
|
+
"@arcgis/lumina": "4.33.0-next.9",
|
|
46
46
|
"monaco-editor": "^0.52.0",
|
|
47
47
|
"tslib": "^2.7.0",
|
|
48
48
|
"vscode-languageserver-types": "^3.17.5"
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
3
|
-
v4.33.0-next.8 */
|
|
4
|
-
import{a as b,h as c}from"./ID2AC3RT.js";import{a as E,b as S}from"./DIGVFH5W.js";import{a as w}from"./S3JZLZHZ.js";import{a as v,b as P,d as s}from"./OOHVU5A3.js";import"./373O7VHT.js";import"./JI7AOVM7.js";import"./NAEWM634.js";import"./PQ56B36C.js";import"./OYXSSBH7.js";import{b as g,e as u,f as t,h as n,r,s as _,w as m,x}from"./ER6MIADV.js";import{a as h,h as p}from"./JZ6NJCGR.js";import{Hl as f,kk as D}from"./G32BEN4J.js";import"./XL37MC4N.js";D();var C=d=>{if(!d.toString().includes("calcite-flow-item"))throw new Error("Renderer must return a JSX node that starts with <calcite-flow-item>");return!0},R=u`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%;.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}.sticky{position:sticky;top:0;z-index:10}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);calcite-flow{height:100%}}.main-action-bar{border-bottom:var(--arcgis-coding-components-border);flex:0 0 auto;calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}arcgis-arcade-results{border-top:var(--arcgis-coding-components-border);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}calcite-flow{[slot=footer]{word-break:break-word}}}`,l=class extends _{constructor(){super(...arguments),this._codeEditorElt=E(),this._componentReadyDefer=new h,this._disposables=[],this._editorProfilePromise=Promise.resolve(void 0),this.messages=w(),this._modelId=p(),this._openArcadeHelp=()=>void window.open(b,"Arcade Help"),this._toggleSidePanel=e=>{if(!e.target)return;let i=e.target?.dataset.panelName??"none";this.openedSidePanel=i===this.openedSidePanel?"none":i,this.openedSidePanel==="none"&&this._codeEditorElt.value?.setFocus().catch(console.error)},this._consoleLogs=[],this._executingScript=!1,this._preparingArcade=!1,this._resultPanel="output",this._showExecutionPanel=!1,this.hideDocumentationActions=!1,this.hideSideBar=!1,this.openedSidePanel="none",this.script="",this.sideActionBarExpanded=!1,this.arcgisDiagnosticsChange=r({bubbles:!1}),this.arcgisScriptChange=r({bubbles:!1})}static{this.properties={_apiLibrary:16,_consoleLogs:16,_editorProfile:16,_executingScript:16,_executionResult:16,_preparingArcade:16,_resultPanel:16,_showExecutionPanel:16,editorInstance:32,editorOptions:0,hideDocumentationActions:5,hideSideBar:5,openedSidePanel:2,profile:0,script:1,sideActionBarExpanded:7,snippets:0,suggestions:0,testData:0,customPanels:0}}static{this.shadowRootOptions=g}static{this.styles=R}get editorInstance(){return this._codeEditorElt.value?.editorInstance}async getEditorInstance(){return await this._componentReadyDefer.promise,this._codeEditorElt.value?.editorInstance}async getScript(){return await this._componentReadyDefer.promise,this._codeEditorElt.value?.value}async getTestResult(){if(!this.testData)return{type:"error",value:"Missing test data",error:null};let e=await this._editorProfilePromise;if(!e)return{type:"error",value:"Missing editor profile",error:null};await this._componentReadyDefer.promise;let i=this._codeEditorElt.value?.value;return await c(e.definition,i,this.testData)}async setFocus(){await this._componentReadyDefer.promise,await this._codeEditorElt.value?.setFocus()}async load(){let e=x("./assets");v(e),await this._updateEditorProfile()}willUpdate(e){(e.has("messages")||e.has("profile"))&&this._updateDataModelDeps(),e.has("testData")&&this._testDataChanged(),e.has("snippets")&&s.updateApiContextForModel(this._modelId,{snippets:this.snippets})}async loaded(){this._componentReadyDefer.resolve(),await this._updateApiLibrary();let e=await P();this._disposables.push(e.onDiagnosticsChange(i=>!this._preparingArcade&&this.arcgisDiagnosticsChange.emit(i.diagnostics))),this.testData&&this._addExecuteScriptAction(),await this._codeEditorElt.value?.setFocus()}disconnectedCallback(){for(super.disconnectedCallback();this._disposables.length;)this._disposables.pop()?.dispose()}async _updateDataModelDeps(){await this._updateEditorProfile(),await this._updateApiLibrary()}_testDataChanged(){!this.testData&&this._executeScriptAction&&(this._disposeSafely(this._executeScriptAction),this._executeScriptAction=void 0),this.testData&&!this._executeScriptAction&&this._addExecuteScriptAction(),this._showExecutionPanel&&this._executeScript().catch(console.error)}async _updateEditorProfile(){this._preparingArcade=!0;try{await s.setProfileForModel(this._modelId,this.profile,{locale:this.messages._t9nLocale,snippets:this.snippets}),this._editorProfile=s.getEditorProfileForModel(this._modelId)}catch{this._editorProfile=void 0}finally{this._editorProfilePromise=Promise.resolve(this._editorProfile),this._preparingArcade=!1}}async _updateApiLibrary(){this._apiLibrary=await s.getApiLibraryForModel(this._modelId)}async _executeScript(){let e=this.testData;if(!this._codeEditorElt.value||!e)return;let i=await this._editorProfilePromise;if(!i){this._executionResult={type:"error",value:"Missing editor profile",error:null};return}this._showExecutionPanel=!0,this._executingScript=!0,this._consoleLogs=[],setTimeout(()=>void(async()=>{let a=this._codeEditorElt.value?.value;this._executionResult=await c(i.definition,a,e,o=>setTimeout(()=>this._consoleLogs=[...this._consoleLogs,o],0)),this._executingScript=!1})(),0)}_toggleShowExecutionPanel(){this._showExecutionPanel=!this._showExecutionPanel}_toggleSideActionBarExpanded(){this.sideActionBarExpanded=!this.sideActionBarExpanded}_onCodeEditorValueChange(e){e.stopPropagation(),this.script=e.detail,this.arcgisScriptChange.emit(e.detail)}_insertAsSnippet(e){this._codeEditorElt.value?.insertSnippet(e.detail).catch(console.error)}_insertAsText(e){this._insertText(e.detail)}_insertText(e){this._codeEditorElt.value?.insertText(e).catch(console.error)}_onResultPanelChange(e){this._resultPanel=e.detail}_onExecutionPanelClose(){this._showExecutionPanel=!1}_addExecuteScriptAction(){let e=this.editorInstance?.addAction({id:"run-script",label:"Run Arcade Expression",keybindings:[f.F5],contextMenuGroupId:"code",contextMenuOrder:1,run:()=>{this.testData&&this._executeScript().catch(console.error)}});e&&(this._executeScriptAction=e,this._disposables.push(e))}_disposeSafely(e){let i=this._disposables.indexOf(e);i!==-1&&this._disposables.splice(i,1),e.dispose()}renderMainActionBar(){return this.testData?t`<calcite-action-bar class="main-action-bar" layout=horizontal scale=s expanded expand-disabled><calcite-action-group scale=s><calcite-action .text=${this.messages.run??""} text-enabled icon=play scale=s .loading=${this._preparingArcade} @click=${()=>void this._executeScript().catch(console.error)}></calcite-action>${this._executionResult?t`<calcite-action .text=${this.messages.lastresults??""} .active=${this._showExecutionPanel} text-enabled icon=access-string-results icon-flip-rtl scale=s @click=${this._toggleShowExecutionPanel}></calcite-action>`:null}</calcite-action-group></calcite-action-bar>`:null}renderMainPanel(){return t`<arcgis-code-editor class="flex-adjustable" .editorOptions=${this.editorOptions} .language=${s.languageId} .value=${this.script??""} .modelId=${this._modelId} @arcgisValueChange=${this._onCodeEditorValueChange} ${S(this._codeEditorElt)}></arcgis-code-editor>`}renderAction({id:e,label:i,icon:a,active:o,panelName:$,iconFlipRtl:A=!1,onClick:y=this._toggleSidePanel}){return t`<calcite-action id=${e??n} .text=${i} .icon=${a} .active=${o} @click=${y} data-panel-name=${$??n} .iconFlipRtl=${A}></calcite-action>${!this.sideActionBarExpanded&&t`<calcite-tooltip .referenceElement=${e}><span>${i}</span></calcite-tooltip>`||""}`}renderSideActionBar(){return this.hideSideBar?null:t`<calcite-action-bar class="side-action-bar border-inline-start" .expanded=${!!this.sideActionBarExpanded} position=end @calciteActionBarToggle=${this._toggleSideActionBarExpanded}><calcite-action-group>${this.renderAction({id:"profile-variables-action",label:this.messages.profilevariables??"",icon:"profile-variables",active:this.openedSidePanel==="variables",panelName:"variables"})}${this.renderAction({id:"function-action",label:this.messages.constantsandfunctions??"",icon:"function",active:this.openedSidePanel==="api",panelName:"api"})}${this.suggestions?.length?this.renderAction({id:"suggestions-action",label:this.messages.suggestions??"",icon:"lightbulb",active:this.openedSidePanel==="suggestions",panelName:"suggestions"}):null}${this.customPanels?.map(e=>this.renderAction({id:e.id,label:e.name,icon:e.icon,active:this.openedSidePanel===e.id,panelName:e.id}))}${this.hideDocumentationActions?null:this.renderAction({id:"developer-website-action",label:this.messages.help??"",icon:"question",active:!1,panelName:"none",iconFlipRtl:this.messages._lang==="ar",onClick:this._openArcadeHelp})}</calcite-action-group></calcite-action-bar>`}renderSidePanel(){if(this.hideSideBar)return null;switch(this.openedSidePanel){case"api":return t`<arcgis-language-api-panel class="side-panel flex-panel border-inline-start" .loading=${this._preparingArcade} .apiLibrary=${this._apiLibrary} .hideDocumentationActions=${this.hideDocumentationActions} @arcgisItemSelected=${this._insertAsSnippet} @arcgisClose=${this._toggleSidePanel} data-panel-name=none></arcgis-language-api-panel>`;case"variables":return t`<arcgis-editor-variables class="side-panel flex-panel border-inline-start" .loading=${this._preparingArcade} .modelId=${this._modelId} @arcgisItemSelected=${this._insertAsText} @arcgisClose=${this._toggleSidePanel} data-panel-name=none .variable=${this._editorProfile}></arcgis-editor-variables>`;case"suggestions":return t`<arcgis-arcade-suggestions class="side-panel flex-panel border-inline-start" .suggestions=${this.suggestions} @arcgisItemSelected=${this._insertAsText} @arcgisClose=${this._toggleSidePanel} data-panel-name=none></arcgis-arcade-suggestions>`;case"none":return null}let e=this.customPanels?.find(i=>i.id===this.openedSidePanel);if(e){let i=!!e?.useFlows;return t`<calcite-flow class="side-panel flex-panel border-inline-start">${i&&C(e.renderer)?e.renderer({closePanel:this._toggleSidePanel,insertText:this._insertText.bind(this)}):t`<calcite-flow-item .heading=${e.name} closable @calciteFlowItemClose=${this._toggleSidePanel} .description=${e.description}>${e.renderer({closePanel:this._toggleSidePanel,insertText:this._insertText.bind(this)})}</calcite-flow-item>`}</calcite-flow>`}return null}renderResultsPanel(){return this._showExecutionPanel?t`<arcgis-arcade-results class="flex-adjustable" .openedResultPanel=${this._resultPanel} .loading=${this._executingScript} .result=${this._executionResult} .consoleLogs=${this._consoleLogs} @arcgisOpenedResultPanelChange=${this._onResultPanelChange} @arcgisClose=${this._onExecutionPanelClose}></arcgis-arcade-results>`:null}render(){return t`${this.renderMainActionBar()}<div class="flex-row flex-adjustable"><div class="flex-column flex-adjustable">${this.renderMainPanel()}${this.renderResultsPanel()}</div>${this.renderSidePanel()}${this.renderSideActionBar()}</div>`}};m("arcgis-arcade-editor",l);export{l as ArcgisArcadeEditor};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
3
|
-
v4.33.0-next.8 */
|
|
4
|
-
import{a as h,b as g}from"./DIGVFH5W.js";import{a as p}from"./S3JZLZHZ.js";import{a}from"./TTQQ5JKL.js";import"./373O7VHT.js";import"./JI7AOVM7.js";import"./NAEWM634.js";import"./PQ56B36C.js";import"./OYXSSBH7.js";import{b as r,e as n,f as e,r as c,s as d,w as l}from"./ER6MIADV.js";import{h as s}from"./JZ6NJCGR.js";import"./G32BEN4J.js";import"./XL37MC4N.js";var f=n`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%;.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);calcite-flow{height:100%}}}`,o=class extends d{constructor(){super(...arguments),this._codeEditorElt=h(),this.messages=p(),this._modelId=s(),this._preparing=!1,this.sideActionBarExpanded=!1,this.script="",this.hideSideBar=!1,this.arcgisScriptChange=c({bubbles:!1})}static{this.properties={_activeAction:16,_apiLibrary:16,_editorProfile:16,_preparing:16,sideActionBarExpanded:16,profile:0,script:1,hideSideBar:5}}static{this.shadowRootOptions=r}static{this.styles=f}async load(){await this._updateEditorProfile().catch(console.error)}willUpdate(i){(i.has("messages")||i.has("profile"))&&this._updateDataModelDeps()}async _updateDataModelDeps(){await this._updateEditorProfile(),await this._updateApiLibrary()}async _updateEditorProfile(){this._preparing=!0;try{await a.setProfileForModel(this._modelId,this.profile,{locale:this.messages._t9nLocale}),this._editorProfile=a.getEditorProfileForModel(this._modelId)}catch{this._editorProfile=void 0}finally{this._preparing=!1}}_setActiveAction(i){if(this._activeAction===i){this._activeAction=void 0;return}this._activeAction=i}_handleActionClick(i){let t=i.target;this._setActiveAction(t.dataset.panelName)}_insertAsSnippet(i){this._codeEditorElt.value?.insertSnippet(i.detail).catch(console.error)}_insertAsText(i){this._codeEditorElt.value?.insertText(i.detail.replaceAll('"',"'")).catch(console.error)}async _updateApiLibrary(){this._apiLibrary=await a.getApiLibraryForModel(this._modelId)}_onCodeEditorValueChange(i){i.stopPropagation(),this.script=i.detail,this.arcgisScriptChange.emit(i.detail)}_getFeatureSetVariable(){let i,t=a.getEditorProfileForModel(this._modelId);return t?.variables?.length&&t?.variables?.[0]?.type!=="featureSet"?console.error("encountered unexpected editor profile"):i=t?.variables?.[0],i}_toggleSideActionBarExpanded(){this.sideActionBarExpanded=!this.sideActionBarExpanded}render(){let i=this._getFeatureSetVariable();return e`<div class="flex-row flex-adjustable"><div class="flex-column flex-adjustable"><arcgis-code-editor language=arcgis-sql-expression .modelId=${this._modelId} .value=${this.script??""} @arcgisValueChange=${this._onCodeEditorValueChange} ${g(this._codeEditorElt)}></arcgis-code-editor></div>${this._activeAction==="fields"&&!this.hideSideBar&&e`<arcgis-editor-variables .variable=${i} class="side-panel flex-panel border-inline-start" .loading=${this._preparing} .modelId=${this._modelId} @arcgisItemSelected=${this._insertAsText} @arcgisClose=${()=>this._setActiveAction(void 0)} data-panel-name=none></arcgis-editor-variables>`||""}${this._activeAction==="functions"&&!this.hideSideBar&&e`<arcgis-language-api-panel class="side-panel flex-panel border-inline-start" @arcgisItemSelected=${this._insertAsSnippet} @arcgisClose=${()=>this._setActiveAction(void 0)} .loading=${this._preparing} .apiLibrary=${this._apiLibrary} data-panel-name=none hide-documentation-actions></arcgis-language-api-panel>`||""}${!this.hideSideBar&&e`<calcite-action-bar class="side-action-bar border-inline-start" .expanded=${this.sideActionBarExpanded} position=end @calciteActionBarToggle=${this._toggleSideActionBarExpanded}><calcite-action id=fields-action .text=${this.messages.fields??"Fields"} icon=profile-variables .active=${this._activeAction==="fields"} data-panel-name=fields @click=${this._handleActionClick}></calcite-action>${!this.sideActionBarExpanded&&e`<calcite-tooltip reference-element=fields-action><span>${this.messages.fields??"Fields"}</span></calcite-tooltip>`||""}<calcite-action id=functions-action .text=${this.messages.functions??"Functions"} icon=function .active=${this._activeAction==="functions"} data-panel-name=functions @click=${this._handleActionClick}></calcite-action>${!this.sideActionBarExpanded&&e`<calcite-tooltip reference-element=functions-action><span>${this.messages.functions??"Functions"}</span></calcite-tooltip>`||""}</calcite-action-bar>`||""}</div>`}};l("arcgis-sql-expression-editor",o);export{o as ArcgisSqlExpressionEditor};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
3
|
-
v4.33.0-next.8 */
|
|
4
|
-
import{a as b,f as p,g as W,k as It,m as Mt,r as X,s as jt,u as Vt}from"./JZ6NJCGR.js";var Ht=";",tt=",",Wt=":";function vt(e){let t=e;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let o=t;return o.manager?.loadedCalled||o._offspring.push(e),o._postLoad.promise}return!1}var De=(e,t)=>function(s,n){if(!globalThis.customElements)return;let i=(n??s??{}).resourcesUrl;i&&e.setAssetPath(i),Object.entries(t).forEach(Ne)};function Ne([e,[t,o=""]]){if(customElements.get(e))return;let[s,n,r]=o.split(Ht),i=s?s?.split(tt).map(zt):void 0,c=i?.map(([l])=>l),a=class extends Ue{static{this.observedAttributes=i?.map(([,l])=>l).filter(l=>l!=="")}static{this._properties=c}static{this._asyncMethods=n?n?.split(tt):void 0}static{this._syncMethods=r?.split(tt)}static{this._name=e}constructor(){!a._loadPromise&&(a._loadPromise=t(),a._initializePrototype()),super()}};customElements.define(e,a)}var et=Object.defineProperty;function zt(e){let t=e.split(Wt);return t.length===1?[t[0],X(t[0])]:t}var Re=globalThis.HTMLElement??zt,Ue=class extends Re{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new b,this._postLoaded=new b,this._offspring=[],this._saveInstanceProperties();let e=this.constructor;e._LitConstructor?this._initializeComponent({a:e._LitConstructor}):e._loadPromise.then(this._initializeComponent.bind(this)).catch(t=>{this._postLoaded.reject(t),setTimeout(()=>{throw t})})}static{this.lumina=!0}static _initializePrototype(){this._properties?.forEach(this._bindProp,this),this._asyncMethods?.forEach(this._bindAsync,this),this._syncMethods?.forEach(this._bindSync,this)}static _bindProp(e){et(this.prototype,e,{configurable:!0,enumerable:!0,get(){return this._store[e]},set(t){this._store[e]=t}})}static _bindAsync(e){et(this.prototype,e,{async value(...t){return this._litElement||await this._postLoaded.promise,await this._litElement[e](...t)},configurable:!0})}static _bindSync(e){et(this.prototype,e,{value(...t){return this._litElement[e](...t)},configurable:!0})}get manager(){return this._litElement?.manager}_saveInstanceProperties(){let e=this.constructor,t=this;e._properties?.forEach(o=>{Object.hasOwn(this,o)&&(this._store[o]=t[o],delete t[o])})}attributeChangedCallback(e,t,o){this._litElement?.attributeChangedCallback(e,t,o),this._litElement||this._pendingAttributes.push(e)}connectedCallback(){this._litElement?this._litElement.connectedCallback?.():queueMicrotask(()=>{this._ancestorLoad=vt(this)})}disconnectedCallback(){this._litElement?.disconnectedCallback?.()}async componentOnReady(){return await this._postLoaded.promise,this}_initializeComponent(e){let t=this.constructor,o=t._name,s=this._store,n=Object.values(e).find(m=>m.tagName===o),r=`${o}--lazy`,i=n;for(;i&&!Object.hasOwn(i,"lumina");)i=Object.getPrototypeOf(i);let c=i.prototype,a=Element.prototype;Object.hasOwn(c,"isConnected")||(c.setAttribute=function(m,g){a.setAttribute.call(this.el,m,g)},c.removeAttribute=function(m){a.removeAttribute.call(this.el,m)},et(c,"isConnected",{get(){return Reflect.get(a,"isConnected",this.el)}})),!t._LitConstructor&&(t._LitConstructor=n,customElements.define(r,n)),n.lazy=this;let h=document.createElement(r);n.lazy=void 0,this._litElement=h,this._store=h,this._pendingAttributes.forEach(m=>{let g=this.getAttribute(m);h.attributeChangedCallback(m,null,g)}),Object.entries(s).forEach(Ie,h);let f=this.isConnected;(f||this._ancestorLoad)&&(h.connectedCallback?.(),f||h.disconnectedCallback())}addController(){}requestUpdate(){this._litElement?.requestUpdate()}};function Ie([e,t]){this[e]=t}var gt={};function qt(e,t){if(t){let o=e.constructor.elementProperties;e.manager.internals.members=Object.fromEntries(Array.from(o,([s,n])=>n.noAccessor?void 0:[s,[(n.readOnly?2048:0)|(n.state?32:16)]]).filter(Vt))}else{let o=e.constructor,s=o.__registerControllers?.(e)??void 0;if(o.__registerControllers=void 0,typeof s!="object")throw new Error("Failed to retrieve component meta");e.manager.internals.members=Object.fromEntries(Object.entries(s).filter(([n,[r]])=>(r&63)!==0))}}function Bt(e,t=8){return e==null||typeof e=="object"||typeof e=="function"?e:t&4?e==="false"?!1:e===""||!!e:t&2?Number.parseFloat(e):t&1?String(e):e}var Gt=(e,t)=>e.manager.internals.members?.[t]?.[0];var st=Symbol.for("controller");var Jt=e=>typeof e=="object"&&e!==null&&(st in e||"hostConnected"in e||"hostDisconnected"in e||"hostUpdate"in e||"hostUpdated"in e);var z;function T(e){z!==e&&(z=e,queueMicrotask(()=>{z===e&&(z=void 0)}))}function k(e){return z}var P=[];function _t(e){if(e===void 0){P=[];return}let t=P.indexOf(e);P=t===-1?[...P,e]:P.slice(0,t+1),queueMicrotask(()=>{P=[]})}function Ct(){return P}var j;function Me(e){j!==e&&(j=e,queueMicrotask(()=>{j===e&&(j=void 0)}))}function je(){let e=j;return j=void 0,e}var Ve=async(e,t)=>{let o=wt(e);if(o===void 0)return e;if(await o.ready,typeof t=="function"){let s=o.watchExports(n=>t(n,s))}return o.exports},He=async e=>{let t=wt(e);return await t.ready,t},wt=e=>{let o=k().manager.internals.resolveExports(e);if(o!==void 0)return o;if(Jt(e))return e;let s=je();if(s!==void 0)return s},q={setter:!1,getter:!1,readOnly:!1},B=new WeakMap,Yt;Yt=st;var $t=class{constructor(e){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new b,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[Yt]=!0,this.ready=this._ready.promise,this._exports=Kt(this),this._exportWatchers=new Set;let t=e??k(new.target.name);this.component=t,this.component.addController(this),this.component.manager===void 0||(_t(this),queueMicrotask(()=>this.catchUpLifecycle()))}catchUpLifecycle(){let{manager:e}=this.component;e.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),e._loadCalled&&this.triggerLoad().then(()=>{e.loadedCalled&&this.triggerLoaded()}).catch(console.error)}get exports(){return this._exports}set exports(e){let t=this._exports;t!==e&&(this._exports=e,this._exportWatchers.forEach(p),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,t)),this._ready.resolve(e)}setProvisionalExports(e,t=!0){this._exports=t?Kt(e):e,this._exportWatchers.forEach(p)}watchExports(e){let t=()=>e(this._exports);return this._exportWatchers.add(t),()=>void this._exportWatchers.delete(t)}get use(){return T(this.component),Ve}get useRef(){return T(this.component),He}get useRefSync(){return T(this.component),wt}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(e){this._callbacks.hostConnected.push(e)}onDisconnected(e){this._callbacks.hostDisconnected.push(e)}onLoad(e){this._callbacks.hostLoad.push(e)}onLoaded(e){this._callbacks.hostLoaded.push(e)}onUpdate(e){this._callbacks.hostUpdate.push(e)}onUpdated(e){this._callbacks.hostUpdated.push(e)}onDestroy(e){this._callbacks.hostDestroy.push(e)}onLifecycle(e){this._callbacks.hostLifecycle.push(e),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(e)}triggerConnected(){let e=this;e.hostConnected&&p(e.hostConnected,e),this._callbacks.hostConnected.forEach(p),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let e=this;e.hostDisconnected&&p(e.hostDisconnected,e),this._callbacks.hostDisconnected.forEach(p),this._lifecycleCleanups.forEach(p),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let e=this;e.hostLoad&&await W(e.hostLoad,e),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(W)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let e=this;e.hostLoaded&&p(e.hostLoaded,e),this._callbacks.hostLoaded.forEach(p),this.loadedCalled=!0}triggerUpdate(e){let t=this;t.hostUpdate&&p(t.hostUpdate,t,e),this._callbacks.hostUpdate.forEach(Ft,e)}triggerUpdated(e){let t=this;t.hostUpdated&&p(t.hostUpdated,t,e),this._callbacks.hostUpdated.forEach(Ft,e)}triggerDestroy(){let e=this;e.hostDestroy&&p(e.hostDestroy,e),this._callbacks.hostDestroy.forEach(p)}triggerLifecycle(){let e=this;e.hostLifecycle&&this._callLifecycle(()=>e.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(e){T(this.component);let t=p(e);(Array.isArray(t)?t:[t]).forEach(s=>{typeof s=="function"?this._lifecycleCleanups.push(s):typeof s=="object"&&typeof s.remove=="function"&&this._lifecycleCleanups.push(s.remove)})}};function Ft(e){p(e,void 0,this)}var Qt=$t;function Kt(e){if(typeof e!="object"&&typeof e!="function"||e===null)return e;let t=new Proxy(e,{get(o,s,n){if(!(We.has(s)&&s in o&&o[s]===t)&&(s in o||s in Promise.prototype||typeof s=="symbol"))return typeof o=="function"?o[s]:Reflect.get(o,s,n)},set:(o,s,n,r)=>Reflect.set(o,s,n,r)});return t}var We=new Set(["exports","_exports"]);function Zt(e,t,o){let s=Object.keys(e),n=s.length;S===void 0&&queueMicrotask(G),S??(S=new Map);let r=S.get(e);return r===void 0&&(r={callbacks:[],keyCount:n},S.set(e,r)),r.keyCount!==n&&(r.callbacks.forEach(i=>i(s)),r.callbacks=[],r.keyCount=n),r.callbacks.push(i=>{let c=l=>p(t,null,l),a=i[n];a===void 0?c(void 0):e[a]===o?c(a):c(void 0)}),o}var S=void 0;function G(){Array.from(S?.entries()??[]).forEach(([e,{callbacks:t}])=>{let o=Object.keys(e);t.forEach(s=>s(o))}),S=void 0}function nt(e,t,o){var s;let n=t,r=e.manager.internals;(s=r.allWatchers)[n]??(s[n]=[]);let i=r.allWatchers[n],c=o,a=(l,d,h)=>p(c,null,l,d,h);return i.push(a),()=>{let l=i.indexOf(a);l!==-1&&i.splice(l,1)}}var Xt=class{constructor(e){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;let t=this.component.manager.internals;Object.entries(t.members).forEach(([o,[s]])=>{var n;s&2048&&((n=t.setters)[o]??(n[o]=[]),t.setters[o].push(t.readonlySetter))})},this.trackedValue=bt,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this._exports=new WeakMap,this.readonlySetter=(t,o,s)=>{if(q.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=e}firePropTrackers(e,t){let o=this.keyTrackers;this.trackedValue=bt,this.keyTrackers=[],o.forEach(s=>s(e,t))}getSetProxy(e){let t=this.component,o=t.constructor.prototype;if(this._getSetProxy(o,e,"class"),t.manager.isLit)return;let s=t.el.constructor.prototype;o!==s&&this._getSetProxy(s,e,"html")}_getSetProxy(e,t,o){let s=this.component,n=Gt(s,t),r;do r=Object.getOwnPropertyDescriptor(e,t);while(!r&&(e=Object.getPrototypeOf(e)));if(!r)return;let i=r.get,c=r.set,a=ot in i,l=ot in c;if(a&&l)return;let d=!a,h=!l,f=d?function(){let E=i.call(this),C=B.get(this);if(q.getter||C===void 0)return E;let O=C.manager.internals;E=O.accessorGetter[t](E,t);let v=O.getters[t]??Et;for(let w=0;w<v.length;w++)E=v[w](E,t);return E}:i,m=h?function(E){let C=i.call(this),O=B.get(this);if(O===void 0){c.call(this,E);return}let v=O.manager.isLit?E??void 0:Bt(E,n),w=O.manager.internals;if(v===C)c.call(this,v);else{let Ut=q.setter?Et:w.setters[t]??Et;for(let H=0;H<Ut.length&&(v=Ut[H](v,C,t),v!==C);H++);v=w.accessorSetter[t](v,C,t),c.call(this,v),v!==C&&w.enabledWatchers[t]?.forEach(H=>H(v,C,t))}w.keyTrackers.length>0&&w?.firePropTrackers(t,E)}:c;d&&(f[ot]=!0),h&&(m[ot]=!0),Object.defineProperty(e,t,{...r,get:f,set:m})}markExports(e,t){(typeof t=="object"&&t!==null||typeof t=="function")&&this._exports.set(t,e)}resolveExports(e){if(typeof e=="object"&&e!==null||typeof e=="function")return this._exports.get(e)}},Et=[],ot=Symbol(),bt=Symbol();function te(e,t,o){let s=e.manager.internals;return s.trackedValue!==bt&&s.trackedValue!==o&&s.firePropTrackers(void 0,void 0),s.keyTrackers.length===0&&queueMicrotask(()=>s.firePropTrackers(void 0,void 0)),s.trackedValue=o,s.keyTrackers.push((n,r)=>p(t,void 0,o===r?n:void 0)),o}function rt(e=[k(),...Ct()],t,o){let s=Array.isArray(e)?e:[e],n=s.length+1,r=c=>{n-=1,c!==void 0&&(n=Math.min(n,0)),n===0&&t(c)};s.forEach(c=>Zt(c,a=>r(a===void 0?void 0:{key:a,host:c,isReactive:!1}),o));let i=s.find(c=>"manager"in c&&typeof c.manager=="object"&&c.manager.component===c);return i&&te(i,c=>r(c===void 0?void 0:{key:c,host:i,isReactive:!0}),o),o}function ee(e){q.readOnly=!0;try{return e()}finally{q.readOnly=!1}}var oe=e=>(...t)=>{let o=Ct(),s=new e(...t),n=s.exports;_t(o.at(-1));let r=s.component.manager.internals;r.markExports(s,n),s.watchExports(c=>r.markExports(s,c)),Me(s);let i=[s.component,...o].reverse();return rt(i,c=>c===void 0?void 0:ze(s,c,n),n)};function ze(e,{host:t,key:o,isReactive:s},n){let r=t,i=r[o]!==e.exports,c=r[o]!==n,a=n!==e.exports;if(i&&!c&&a&&(r[o]=e.exports),t===e.component){if(s){let d=e.component.manager.internals;c&&d.markExports(e,r[o]),nt(e.component,o,h=>{h!==e.exports&&d.markExports(e,h)})}e.assignedProperty=s?void 0:o}e.watchExports(()=>{if(r[o]===e.exports)return;let d=e.component.manager;d.internals.setters[o]?.includes(d.internals.readonlySetter)?ee(()=>{r[o]=e.exports}):r[o]=e.exports})}var ne=(e,t)=>new qe(e,t),qe=class extends Qt{constructor(e,t){let o="addController"in e,s=new Set;function n(a){s.add(a),!(st in a)&&e.renderRoot&&e.el.isConnected&&a.hostConnected?.()}function r(a){s.delete(a),a.controllerRemoved?.()}let i=e;if(i.addController=n,i.removeController=r,!o){let a=t??e.constructor.__forceUpdate;i.requestUpdate=()=>a(e)}super(e),this.internals=new Xt(this.component),this.destroyed=!1,this._updatePromise=new b,this._originalLifecycles={},this.isLit=o,this.component.manager=this,qt(e,o),this._controllers=s,this.exports=void 0,this.hasDestroy=xt in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let c=this.internals;Object.keys(c.members).forEach(a=>{c.accessorGetter[a]=se,c.accessorSetter[a]=se,c.getSetProxy(a)}),o?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(e,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),T(e),B.set(e.el,e),B.set(e,e)}_bindLifecycleMethods(){let e=this.component,t=this.isLit,o=e.el===e;this._originalLifecycles={_connectedCallback:t||o?void 0:e.connectedCallback,_disconnectedCallback:t||o?void 0:e.disconnectedCallback,_load:t?e.load:e.componentWillLoad,_loaded:t?e.loaded:e.componentDidLoad,_willUpdate:t?void 0:e.componentWillUpdate,_updated:t?void 0:e.componentDidUpdate,_destroy:e.destroy};let s=this._connectedCallback.bind(this),n=this._disconnectedCallback.bind(this),r=this._update.bind(this),i=this._updated.bind(this);t?e.constructor.prototype.addController.call(e,{hostConnected:s,hostDisconnected:n,hostUpdate:r,hostUpdated:i}):(e.connectedCallback=s,e.disconnectedCallback=n,e.componentWillLoad=this._load.bind(this),e.componentDidLoad=this._loaded.bind(this),e.componentWillUpdate=r,e.componentDidUpdate=i),this.hasDestroy&&(e.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){let 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 ${xt} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let e=this.internals;e.enabledWatchers=e.allWatchers,G(),e.enableReadonly?.(),this._controllers.forEach(Ge),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(Fe),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){await Promise.allSettled(Array.from(this._controllers,Ke)),await this._originalLifecycles._load?.call(this.component),this.hasDestroy&&nt(this.component,xt,()=>this._setAutoDestroyTimeout())}_loaded(){this._controllers.forEach(Je),this._originalLifecycles._loaded?.call(this.component)}_update(){let e=this.component;return this._controllers.forEach(Ye,e.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){let e=this.component;if(this._controllers.forEach(Qe,e.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)e.$changes=new Map;else{let t=this._updatePromise;this._updatePromise=new b,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(Ze),this._controllers.clear(),await this._originalLifecycles._destroy?.call(this.component)}}_setAutoDestroyTimeout(){if(this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout),!this.component.el.isConnected&&!this.component.autoDestroyDisabled){let e=()=>void this.destroy().catch(console.error);this._autoDestroyTimeout=jt(e,Be)}}},xt="autoDestroyDisabled",Be=1e3;var se=e=>e;function Ge(e){"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)}function Fe(e){"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e)}async function Ke(e){"triggerLoad"in e?await e.triggerLoad():await W(e.hostLoad,e)}function Je(e){"triggerLoaded"in e?e.triggerLoaded():p(e.hostLoaded,e)}function Ye(e){"triggerUpdate"in e?e.triggerUpdate(this):p(e.hostUpdate,e,this)}function Qe(e){"triggerUpdated"in e?e.triggerUpdated(this):p(e.hostUpdated,e,this)}function Ze(e){"triggerDestroy"in e?e.triggerDestroy():p(e.hostDestroy,e)}var re=e=>to(void 0,e);var Xe=class extends $t{constructor(e,t){super(e);let o=this.exports;try{T(this.component);let s=t(this.component,this),n=this.exports!==o;if(s instanceof Promise){n||this.setProvisionalExports(s);let r=s.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this._ready.reject(i),console.error(i)});this.onLoad(async()=>await r)}else(!n||s!==void 0)&&(this.exports=s),queueMicrotask(()=>super.catchUpLifecycle())}catch(s){this._ready.reject(s),console.error(s)}}catchUpLifecycle(){}},to=oe(Xe);var es=re;var ss=e=>(t={})=>re((o,s)=>{let n=It(o.el),r={_lang:n.lang,_t9nLocale:n.t9nLocale,_loading:!0},i=o;s.onLifecycle(()=>Mt(o.el,()=>e("./assets"),({t9nLocale:a,t9nStrings:l,lang:d})=>{let h={...l,_lang:d,_t9nLocale:a,_loading:!1};s.exports=h;let f=l.componentLabel;typeof f=="string"&&"label"in o&&o.label==null&&(o.label??(o.label=f)),c(i.messageOverrides)},t.name));function c(a){let l=s.exports,d=l._original??l,h=ie(d,a);a&&(h._original=d),s.exports=h}return"messageOverrides"in i&&s.onLifecycle(()=>nt(i,"messageOverrides",c)),t.blocking?(s.setProvisionalExports(r,!1),s.ready):r});function ie(e,t){if(!t)return e;let o={...e};return Object.entries(t).forEach(([s,n])=>{typeof n=="object"?o[s]=ie(e[s],n):o[s]=n??e[s]}),o}var it=globalThis,at=it.ShadowRoot&&(it.ShadyCSS===void 0||it.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,At=Symbol(),ae=new WeakMap,F=class{constructor(t,o,s){if(this._$cssResult$=!0,s!==At)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o,o=this.t;if(at&&t===void 0){let s=o!==void 0&&o.length===1;s&&(t=ae.get(o)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&ae.set(o,t))}return t}toString(){return this.cssText}},ce=e=>new F(typeof e=="string"?e:e+"",void 0,At),eo=(e,...t)=>{let o=e.length===1?e[0]:t.reduce((s,n,r)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[r+1],e[0]);return new F(o,e,At)},Ot=(e,t)=>{if(at)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let s=document.createElement("style"),n=it.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=o.cssText,e.appendChild(s)}},ct=at?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let o="";for(let s of t.cssRules)o+=s.cssText;return ce(o)})(e):e;var Pt=globalThis,lt=Pt.trustedTypes,le=lt?lt.createPolicy("lit-html",{createHTML:e=>e}):void 0,St="$lit$",$=`lit$${Math.random().toFixed(9).slice(2)}$`,Tt="?"+$,oo=`<${Tt}>`,R=document,J=()=>R.createComment(""),Y=e=>e===null||typeof e!="object"&&typeof e!="function",kt=Array.isArray,fe=e=>kt(e)||typeof e?.[Symbol.iterator]=="function",Lt=`[
|
|
5
|
-
\f\r]`,K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,he=/-->/g,de=/>/g,D=RegExp(`>|${Lt}(?:([^\\s"'>=/]+)(${Lt}*=${Lt}*(?:[^
|
|
6
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),pe=/'/g,ue=/"/g,ye=/^(?:script|style|textarea|title)$/i,Dt=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),cs=Dt(1),ls=Dt(2),hs=Dt(3),y=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),me=new WeakMap,N=R.createTreeWalker(R,129);function ve(e,t){if(!kt(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return le!==void 0?le.createHTML(t):t}var ge=(e,t)=>{let o=e.length-1,s=[],n,r=t===2?"<svg>":t===3?"<math>":"",i=K;for(let c=0;c<o;c++){let a=e[c],l,d,h=-1,f=0;for(;f<a.length&&(i.lastIndex=f,d=i.exec(a),d!==null);)f=i.lastIndex,i===K?d[1]==="!--"?i=he:d[1]!==void 0?i=de:d[2]!==void 0?(ye.test(d[2])&&(n=RegExp("</"+d[2],"g")),i=D):d[3]!==void 0&&(i=D):i===D?d[0]===">"?(i=n??K,h=-1):d[1]===void 0?h=-2:(h=i.lastIndex-d[2].length,l=d[1],i=d[3]===void 0?D:d[3]==='"'?ue:pe):i===ue||i===pe?i=D:i===he||i===de?i=K:(i=D,n=void 0);let m=i===D&&e[c+1].startsWith("/>")?" ":"";r+=i===K?a+oo:h>=0?(s.push(l),a.slice(0,h)+St+a.slice(h)+$+m):a+$+(h===-2?c:m)}return[ve(e,r+(e[o]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},Q=class e{constructor({strings:t,_$litType$:o},s){let n;this.parts=[];let r=0,i=0,c=t.length-1,a=this.parts,[l,d]=ge(t,o);if(this.el=e.createElement(l,s),N.currentNode=this.el.content,o===2||o===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=N.nextNode())!==null&&a.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(St)){let f=d[i++],m=n.getAttribute(h).split($),g=/([.?@])?(.*)/.exec(f);a.push({type:1,index:r,name:g[2],strings:m,ctor:g[1]==="."?dt:g[1]==="?"?pt:g[1]==="@"?ut:I}),n.removeAttribute(h)}else h.startsWith($)&&(a.push({type:6,index:r}),n.removeAttribute(h));if(ye.test(n.tagName)){let h=n.textContent.split($),f=h.length-1;if(f>0){n.textContent=lt?lt.emptyScript:"";for(let m=0;m<f;m++)n.append(h[m],J()),N.nextNode(),a.push({type:2,index:++r});n.append(h[f],J())}}}else if(n.nodeType===8)if(n.data===Tt)a.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf($,h+1))!==-1;)a.push({type:7,index:r}),h+=$.length-1}r++}}static createElement(t,o){let s=R.createElement("template");return s.innerHTML=t,s}};function U(e,t,o=e,s){if(t===y)return t;let n=s!==void 0?o.o?.[s]:o.l,r=Y(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),r===void 0?n=void 0:(n=new r(e),n._$AT(e,o,s)),s!==void 0?(o.o??=[])[s]=n:o.l=n),n!==void 0&&(t=U(e,n._$AS(e,t.values),n,s)),t}var ht=class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:o},parts:s}=this._$AD,n=(t?.creationScope??R).importNode(o,!0);N.currentNode=n;let r=N.nextNode(),i=0,c=0,a=s[0];for(;a!==void 0;){if(i===a.index){let l;a.type===2?l=new V(r,r.nextSibling,this,t):a.type===1?l=new a.ctor(r,a.name,a.strings,this,t):a.type===6&&(l=new mt(r,this,t)),this._$AV.push(l),a=s[++c]}i!==a?.index&&(r=N.nextNode(),i++)}return N.currentNode=R,n}p(t){let o=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,o),o+=s.strings.length-2):s._$AI(t[o])),o++}},V=class e{get _$AU(){return this._$AM?._$AU??this.v}constructor(t,o,s,n){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=s,this.options=n,this.v=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,o=this._$AM;return o!==void 0&&t?.nodeType===11&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=U(this,t,o),Y(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==y&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):fe(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==u&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.T(R.createTextNode(t)),this._$AH=t}$(t){let{values:o,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Q.createElement(ve(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===n)this._$AH.p(o);else{let r=new ht(n,this),i=r.u(this.options);r.p(o),this.T(i),this._$AH=r}}_$AC(t){let o=me.get(t.strings);return o===void 0&&me.set(t.strings,o=new Q(t)),o}k(t){kt(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,s,n=0;for(let r of t)n===o.length?o.push(s=new e(this.O(J()),this.O(J()),this,this.options)):s=o[n],s._$AI(r),n++;n<o.length&&(this._$AR(s&&s._$AB.nextSibling,n),o.length=n)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this.v=t,this._$AP?.(t))}},I=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,s,n,r){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=o,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=u}_$AI(t,o=this,s,n){let r=this.strings,i=!1;if(r===void 0)t=U(this,t,o,0),i=!Y(t)||t!==this._$AH&&t!==y,i&&(this._$AH=t);else{let c=t,a,l;for(t=r[0],a=0;a<r.length-1;a++)l=U(this,c[s+a],o,a),l===y&&(l=this._$AH[a]),i||=!Y(l)||l!==this._$AH[a],l===u?t=u:t!==u&&(t+=(l??"")+r[a+1]),this._$AH[a]=l}i&&!n&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},dt=class extends I{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}},pt=class extends I{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}},ut=class extends I{constructor(t,o,s,n,r){super(t,o,s,n,r),this.type=5}_$AI(t,o=this){if((t=U(this,t,o,0)??u)===y)return;let s=this._$AH,n=t===u&&s!==u||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==u&&(s===u||n);n&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},mt=class{constructor(t,o,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}},Ee={M:St,P:$,A:Tt,C:1,L:ge,R:ht,D:fe,V:U,I:V,H:I,N:pt,U:ut,B:dt,F:mt},so=Pt.litHtmlPolyfillSupport;so?.(Q,V),(Pt.litHtmlVersions??=[]).push("3.2.0");var be=(e,t,o)=>{let s=o?.renderBefore??t,n=s._$litPart$;if(n===void 0){let r=o?.renderBefore??null;s._$litPart$=n=new V(t.insertBefore(J(),r),r,void 0,o??{})}return n._$AI(e),n};var{is:no,defineProperty:ro,getOwnPropertyDescriptor:io,getOwnPropertyNames:ao,getOwnPropertySymbols:co,getPrototypeOf:lo}=Object,yt=globalThis,_e=yt.trustedTypes,ho=_e?_e.emptyScript:"",po=yt.reactiveElementPolyfillSupport,Z=(e,t)=>e,ft={toAttribute(e,t){switch(t){case Boolean:e=e?ho:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let o=e;switch(t){case Boolean:o=e!==null;break;case Number:o=e===null?null:Number(e);break;case Object:case Array:try{o=JSON.parse(e)}catch{o=null}}return o}},Nt=(e,t)=>!no(e,t),Ce={attribute:!0,type:String,converter:ft,reflect:!1,hasChanged:Nt};Symbol.metadata??=Symbol("metadata"),yt.litPropertyMetadata??=new WeakMap;var x=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=Ce){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(t,s,o);n!==void 0&&ro(this.prototype,t,n)}}static getPropertyDescriptor(t,o,s){let{get:n,set:r}=io(this.prototype,t)??{get(){return this[o]},set(i){this[o]=i}};return{get(){return n?.call(this)},set(i){let c=n?.call(this);r.call(this,i),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ce}static _$Ei(){if(this.hasOwnProperty(Z("elementProperties")))return;let t=lo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Z("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Z("properties"))){let o=this.properties,s=[...ao(o),...co(o)];for(let n of s)this.createProperty(n,o[n])}let t=this[Symbol.metadata];if(t!==null){let o=litPropertyMetadata.get(t);if(o!==void 0)for(let[s,n]of o)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[o,s]of this.elementProperties){let n=this._$Eu(o,s);n!==void 0&&this._$Eh.set(n,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let o=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let n of s)o.unshift(ct(n))}else t!==void 0&&o.push(ct(t));return o}static _$Eu(t,o){let s=o.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,o=this.constructor.elementProperties;for(let s of o.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ot(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,o,s){this._$AK(t,s)}_$EC(t,o){let s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){let r=(s.converter?.toAttribute!==void 0?s.converter:ft).toAttribute(o,s.type);this._$Em=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(t,o){let s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let r=s.getPropertyOptions(n),i=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:ft;this._$Em=n,this[n]=i.fromAttribute(o,r.type),this._$Em=null}}requestUpdate(t,o,s){if(t!==void 0){if(s??=this.constructor.getPropertyOptions(t),!(s.hasChanged??Nt)(this[t],o))return;this.P(t,o,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,o,s){this._$AL.has(t)||this._$AL.set(t,o),s.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,r]of this._$Ep)this[n]=r;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,r]of s)r.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],r)}let t=!1,o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(o)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$EO?.forEach(o=>o.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(o=>this._$EC(o,this[o])),this._$EU()}updated(t){}firstUpdated(t){}};x.elementStyles=[],x.shadowRootOptions={mode:"open"},x[Z("elementProperties")]=new Map,x[Z("finalized")]=new Map,po?.({ReactiveElement:x}),(yt.reactiveElementVersions??=[]).push("2.0.4");var A=class extends x{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=be(o,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return y}};A._$litElement$=!0,A.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:A});var uo=globalThis.litElementPolyfillSupport;uo?.({LitElement:A});(globalThis.litElementVersions??=[]).push("4.1.0");var _={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},M=e=>(...t)=>({_$litDirective$:e,values:t}),L=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,s){this.t=t,this._$AM=o,this.i=s}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};var xe=M(class extends L{constructor(e){if(super(e),e.type!==_.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let o=e.element.classList;for(let s of this.st)s in t||(o.remove(s),this.st.delete(s));for(let s in t){let n=!!t[s];n===this.st.has(s)||this.nt?.has(s)||(n?(o.add(s),this.st.add(s)):(o.remove(s),this.st.delete(s)))}return y}});var Ae="important",fo=" !"+Ae,yo=M(class extends L{constructor(e){if(super(e),e.type!==_.ATTRIBUTE||e.name!=="style"||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,o)=>{let s=e[o];return s==null?t:t+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(e,[t]){let{style:o}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?o.removeProperty(s):o[s]=null);for(let s in t){let n=t[s];if(n!=null){this.ft.add(s);let r=typeof n=="string"&&n.endsWith(fo);s.includes("-")||r?o.setProperty(s,r?n.slice(0,-11):n,r?Ae:""):o[s]=n}}return y}});var{I:vo}=Ee;var Le=e=>e.strings===void 0,Oe=()=>document.createComment(""),yn=(e,t,o)=>{let s=e._$AA.parentNode,n=t===void 0?e._$AB:t._$AA;if(o===void 0){let r=s.insertBefore(Oe(),n),i=s.insertBefore(Oe(),n);o=new vo(r,i,e,e.options)}else{let r=o._$AB.nextSibling,i=o._$AM,c=i!==e;if(c){let a;o._$AQ?.(e),o._$AM=e,o._$AP!==void 0&&(a=e._$AU)!==i._$AU&&o._$AP(a)}if(r!==n||c){let a=o._$AA;for(;a!==r;){let l=a.nextSibling;s.insertBefore(a,n),a=l}}}return o},vn=(e,t,o=e)=>(e._$AI(t,o),e),go={},Pe=(e,t=go)=>e._$AH=t,gn=e=>e._$AH,En=e=>{e._$AP?.(!1,!0);let t=e._$AA,o=e._$AB.nextSibling;for(;t!==o;){let s=t.nextSibling;t.remove(),t=s}};var Eo=M(class extends L{constructor(e){if(super(e),e.type!==_.PROPERTY&&e.type!==_.ATTRIBUTE&&e.type!==_.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Le(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===y||t===u)return t;let o=e.element,s=e.name;if(e.type===_.PROPERTY){if(t===o[s])return y}else if(e.type===_.BOOLEAN_ATTRIBUTE){if(!!t===o.hasAttribute(s))return y}else if(e.type===_.ATTRIBUTE&&o.getAttribute(s)===t+"")return y;return Pe(e),t}});var Se=(e="",t={},o=k())=>{let s={emit:n=>{e===""&&G();let r=new CustomEvent(e,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...t});return o.el.dispatchEvent(r),r}};return e===""&&rt(void 0,n=>{e=n.key},s),s},kn=Se.bind(null,"");var _o=()=>{},Co=class Te extends A{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=ne(this),this._postLoad=this.constructor.lazy?._postLoad??new b,this._offspring=this.constructor.lazy?._offspring??[],this._postLoaded=this.constructor.lazy?._postLoaded??new b,this._enableUpdating=this.enableUpdating,this.enableUpdating=_o;let t=Te.prototype.shouldUpdate;this.shouldUpdate!==t&&(this._originalShouldUpdate=this.shouldUpdate,this.shouldUpdate=t),!1}static finalizeStyles(t){let o=super.finalizeStyles(t),s=this.shadowRootOptions===gt;return this.runtime?.commonStyles===void 0||s?o:[this.runtime.commonStyles,...o]}static createProperty(t,o){let s=typeof o=="number"?o:Array.isArray(o)?o[0]:0,n=Array.isArray(o)?o[1]:void 0;super.createProperty(t,{attribute:s&1&&typeof t=="string"?X(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),...n})}static{this.lumina=!0}connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=!this.manager.connectedCalled;super.connectedCallback(),t&&queueMicrotask(()=>this._load().catch(o=>{this._postLoaded.reject(o),setTimeout(()=>{throw o})}))}createRenderRoot(){let t=this.el.shadowRoot,o=this.constructor,s=o.shadowRootOptions,r=t??(s===gt?this.el:this.el.attachShadow(s));if(Object.defineProperty(this,"shadowRoot",{value:r}),t)return A.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=r.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...o.elementStyles.map(c=>"styleSheet"in c?c.styleSheet:c)]}return r}async _load(){let t=this.el._ancestorLoad??vt(this.el);t&&await t,await this.manager._load(),this._enableUpdating(!0),this.performUpdate(),this._postLoad.resolve(),await Promise.resolve();let o=this._offspring.filter(s=>!s.manager?.loadedCalled);o.length&&await Promise.allSettled(o.map(async s=>await s.componentOnReady())),this._offspring.length=0,this.el.setAttribute(this.constructor.runtime.hydratedAttribute,""),this.manager._loaded(),this._postLoaded.resolve()}shouldUpdate(t){return this.$changes=t,this._originalShouldUpdate?.(t)??!0}listen(t,o,s){let n=o?.bind(this)??o;this.manager.onLifecycle(()=>(this.el.addEventListener(t,n,s),()=>this.el.removeEventListener(t,n,s)))}listenOn(t,o,s,n){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(o,r,n),()=>t.removeEventListener(o,r,n)))}async componentOnReady(){return await this._postLoaded.promise,this}};Co.$createEvent=Se;function ke(e){let t,o=n=>{t=new URL(n,globalThis.location?.href||void 0).href},s={...e,getAssetPath(n){let r=new URL(n,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:o,customElement(n,r){r.runtime=s,r.tagName=n,customElements.get(n)||customElements.define(n,r)}};return o(e.defaultAssetPath),s}var zn=e=>typeof e=="object"&&e!=null?xe(e):e;var Bn=u;var wo=ke({defaultAssetPath:"https://jsdev.arcgis.com/coding-components/next/",hydratedAttribute:"hydrated"}),{customElement:Kn,getAssetPath:Jn,setAssetPath:Yn}=wo;export{De as a,gt as b,es as c,ss as d,eo as e,cs as f,y as g,u as h,_ as i,M as j,L as k,Le as l,yn as m,vn as n,Pe as o,gn as p,En as q,kn as r,Co as s,zn as t,Bn as u,wo as v,Kn as w,Jn as x};
|