@arcgis/coding-components 4.34.0-next.39 → 4.34.0-next.40
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/addons.js +1 -1
- package/dist/cdn/{35AGUSDW.js → 35VL6JHO.js} +2 -2
- package/dist/cdn/{GV2TBQA4.js → 37WGUXIJ.js} +2 -2
- package/dist/cdn/{G65QULRY.js → 3CB4AXMH.js} +2 -2
- package/dist/cdn/{UFWH2NGZ.js → 3XWDVN7S.js} +2 -2
- package/dist/cdn/{GWTEPVG7.js → 4EM75NIW.js} +2 -2
- package/dist/cdn/{OXGBCCUZ.js → 56A25WKU.js} +2 -2
- package/dist/cdn/{X7WBR27D.js → 5R5YNSVU.js} +2 -2
- package/dist/cdn/5TOT2CUM.js +4 -0
- package/dist/cdn/{AZ7INFOZ.js → 7CB3ELKA.js} +2 -2
- package/dist/cdn/{XN434FOV.js → A7CMURLH.js} +1 -1
- package/dist/cdn/{LFU4I4YS.js → ADX2LSXK.js} +2 -2
- package/dist/cdn/{R43XMPEB.js → B4N7AOOM.js} +2 -2
- package/dist/cdn/{WSJYTOUN.js → B6PBEMB2.js} +1 -1
- package/dist/cdn/{SMKN2GX2.js → CZ64U4HL.js} +2 -2
- package/dist/cdn/{7FJGESMZ.js → DGIGRR2J.js} +1 -1
- package/dist/cdn/{33UPGP5E.js → DPKBBA5M.js} +2 -2
- package/dist/cdn/{Y2VLMEJA.js → DQBERPGX.js} +2 -2
- package/dist/cdn/{BDN6VITG.js → DVBQ5XDG.js} +2 -2
- package/dist/cdn/{7AOGXUD3.js → EE6IFZHG.js} +2 -2
- package/dist/cdn/{P6ALUJCD.js → HOXZBOJT.js} +2 -2
- package/dist/cdn/{PVLXQB62.js → JHEIUS2R.js} +2 -2
- package/dist/cdn/{LSIINQ7L.js → K2RENJHM.js} +1 -1
- package/dist/cdn/{PM3CMODC.js → KHBDFCKE.js} +2 -2
- package/dist/cdn/{KR54FILN.js → KSFS7NGU.js} +2 -2
- package/dist/cdn/{7WRXWVBM.js → KTPQXQ3H.js} +2 -2
- package/dist/cdn/{RD4LJECN.js → LJBDOY2S.js} +2 -2
- package/dist/cdn/{JAJEOPWN.js → MAJJV7L6.js} +2 -2
- package/dist/cdn/{SFDTCIQS.js → MIREDDOB.js} +2 -2
- package/dist/cdn/NF6LGSQK.js +6 -0
- package/dist/cdn/{MIKP5GJP.js → NST2ZEQ6.js} +2 -2
- package/dist/cdn/{O3CF5TOF.js → ORI672E3.js} +1 -1
- package/dist/cdn/{P7DIVPHN.js → P5YDDLPN.js} +4 -4
- package/dist/cdn/{CEGKJ5QQ.js → PPT6NBSA.js} +2 -2
- package/dist/cdn/{P2DIOFOR.js → QNUM5B25.js} +2 -2
- package/dist/cdn/{U2HIMPNQ.js → STWXYKOS.js} +2 -2
- package/dist/cdn/{XIT4L4TZ.js → T62QFBIK.js} +2 -2
- package/dist/cdn/{PDVOP3A4.js → TUEIJKE5.js} +2 -2
- package/dist/cdn/{G6XQB4FW.js → WKMLNQRO.js} +2 -2
- package/dist/cdn/{XE2XBZXE.js → XDHDBHUG.js} +2 -2
- package/dist/cdn/YFGBS3KA.js +4 -0
- package/dist/cdn/{MXKG5OWN.js → ZZZOZ7VX.js} +2 -2
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +167 -168
- package/dist/cdn/index.js +2 -2
- 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/editor.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/setup-monaco.js +1 -1
- package/dist/chunks/sql-expr-contribution.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-coding-assistant/customElement.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.d.ts +2 -2
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.d.ts +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.d.ts +2 -2
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.d.ts +2 -2
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.d.ts +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.d.ts +1 -1
- 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 +5 -5
- package/dist/cdn/343A4RUF.js +0 -4
- package/dist/cdn/BNMU5ZQD.js +0 -6
- package/dist/cdn/BOMJPVAQ.js +0 -4
|
@@ -40378,7 +40378,6 @@ class W1r {
|
|
|
40378
40378
|
* Validates a nodes syntax and types
|
|
40379
40379
|
* @param node The node to validate
|
|
40380
40380
|
*/
|
|
40381
|
-
// eslint-disable-next-line complexity
|
|
40382
40381
|
_validateNode(e) {
|
|
40383
40382
|
if (e)
|
|
40384
40383
|
switch (e.type) {
|
|
@@ -54436,22 +54435,109 @@ const mTr = { handleInterceptedEvent: (r, e, t, i) => (r.scheduleRender(), e.pro
|
|
|
54436
54435
|
for (let f = 0; f < u.length; f++) if (u[f] === d) return u.splice(f, 1), l.splice(f, 1)[0];
|
|
54437
54436
|
throw new Error("renderFunction was not found");
|
|
54438
54437
|
} }, e;
|
|
54438
|
+
}, l9e = Symbol.for("controller"), wTr = (r) => typeof r == "object" && r !== null && (l9e in r || "hostConnected" in r || "hostDisconnected" in r || "hostUpdate" in r || "hostUpdated" in r), xTr = (r) => typeof r?.then == "function";
|
|
54439
|
+
let j7;
|
|
54440
|
+
const B7 = (r) => {
|
|
54441
|
+
j7 !== r && (j7 = r, queueMicrotask(() => j7 === r ? j7 = void 0 : 0));
|
|
54442
|
+
}, oye = (r) => {
|
|
54443
|
+
if (process.env.NODE_ENV !== "production" && j7 === void 0)
|
|
54444
|
+
throw new Error(
|
|
54445
|
+
[
|
|
54446
|
+
`Unable to find out which component ${r || "this"} controller `,
|
|
54447
|
+
`belongs to. Possible causes:
|
|
54448
|
+
`,
|
|
54449
|
+
"- You might have multiple versions of ",
|
|
54450
|
+
`@arcgis/lumina package installed
|
|
54451
|
+
`,
|
|
54452
|
+
...lh() ? [
|
|
54453
|
+
"- You tried to create controller outside the component. If so, ",
|
|
54454
|
+
"please wrap your controller definition in an arrow function (like",
|
|
54455
|
+
"`const myController = ()=>makeController(...);`) and call that",
|
|
54456
|
+
"function inside the component (`my = myController();`), or ",
|
|
54457
|
+
"define your controller using makeGenericController/GenericController ",
|
|
54458
|
+
`instead.
|
|
54459
|
+
`,
|
|
54460
|
+
"- You tried to create a controller inside an async function. ",
|
|
54461
|
+
"This is allowed without calling controller.use(). Make sure you ",
|
|
54462
|
+
"use it like `await controller.use(useController())`."
|
|
54463
|
+
] : []
|
|
54464
|
+
].join("")
|
|
54465
|
+
);
|
|
54466
|
+
return j7;
|
|
54467
|
+
};
|
|
54468
|
+
let xR = [];
|
|
54469
|
+
const PEt = (r) => {
|
|
54470
|
+
if (r === void 0) {
|
|
54471
|
+
xR = [];
|
|
54472
|
+
return;
|
|
54473
|
+
}
|
|
54474
|
+
const e = xR.indexOf(r);
|
|
54475
|
+
xR = e === -1 ? [...xR, r] : xR.slice(0, e + 1), queueMicrotask(() => xR = []);
|
|
54476
|
+
}, AEt = () => xR;
|
|
54477
|
+
let U7;
|
|
54478
|
+
const STr = (r) => {
|
|
54479
|
+
U7 !== r && (U7 = r, queueMicrotask(() => U7 === r ? U7 = void 0 : 0));
|
|
54480
|
+
}, TTr = () => {
|
|
54481
|
+
const r = U7;
|
|
54482
|
+
return U7 = void 0, r;
|
|
54483
|
+
}, ITr = async (r, e) => {
|
|
54484
|
+
const t = u9e(r);
|
|
54485
|
+
if (t === void 0) {
|
|
54486
|
+
if (process.env.NODE_ENV !== "production" && lh() && typeof e == "function")
|
|
54487
|
+
throw new Error(
|
|
54488
|
+
"Unable to resolve a controller from the provided value, so can't watch it's exports. The value you passed is not a controller and not a controller exports. If your controller exports a literal value, try making your controller export an object instead"
|
|
54489
|
+
);
|
|
54490
|
+
return r;
|
|
54491
|
+
}
|
|
54492
|
+
if (await t.ready, typeof e == "function") {
|
|
54493
|
+
if (process.env.NODE_ENV !== "production" && lh() && t.watchExports === void 0)
|
|
54494
|
+
throw new Error("The controller must implement watchExports method to support watching exports");
|
|
54495
|
+
const i = t.watchExports(
|
|
54496
|
+
(n) => e(n, i)
|
|
54497
|
+
);
|
|
54498
|
+
}
|
|
54499
|
+
return t.exports;
|
|
54500
|
+
}, ETr = async (r) => {
|
|
54501
|
+
const e = u9e(r);
|
|
54502
|
+
if (process.env.NODE_ENV !== "production" && lh() && e === void 0)
|
|
54503
|
+
throw new Error(
|
|
54504
|
+
"Unable to resolve a controller from the provided value. The value you passed is not a controller and not a controller exports. If your controller exports a literal value, try making your controller export an object instead"
|
|
54505
|
+
);
|
|
54506
|
+
return await e.ready, e;
|
|
54507
|
+
}, u9e = (r) => {
|
|
54508
|
+
const t = oye().manager.X(r);
|
|
54509
|
+
if (t !== void 0)
|
|
54510
|
+
return t;
|
|
54511
|
+
if (wTr(r))
|
|
54512
|
+
return r;
|
|
54513
|
+
const i = TTr();
|
|
54514
|
+
if (i !== void 0)
|
|
54515
|
+
return i;
|
|
54516
|
+
};
|
|
54517
|
+
let bAe = !1;
|
|
54518
|
+
const CTr = (r) => {
|
|
54519
|
+
bAe = !0;
|
|
54520
|
+
try {
|
|
54521
|
+
return r();
|
|
54522
|
+
} finally {
|
|
54523
|
+
bAe = !1;
|
|
54524
|
+
}
|
|
54439
54525
|
};
|
|
54440
54526
|
/**
|
|
54441
54527
|
* @license
|
|
54442
54528
|
* Copyright 2019 Google LLC
|
|
54443
54529
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54444
54530
|
*/
|
|
54445
|
-
const $ae = globalThis,
|
|
54446
|
-
let
|
|
54531
|
+
const $ae = globalThis, c9e = $ae.ShadowRoot && ($ae.ShadyCSS === void 0 || $ae.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, h9e = Symbol(), OKe = /* @__PURE__ */ new WeakMap();
|
|
54532
|
+
let NEt = class {
|
|
54447
54533
|
constructor(e, t, i) {
|
|
54448
|
-
if (this._$cssResult$ = !0, i !==
|
|
54534
|
+
if (this._$cssResult$ = !0, i !== h9e) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
54449
54535
|
this.cssText = e, this.t = t;
|
|
54450
54536
|
}
|
|
54451
54537
|
get styleSheet() {
|
|
54452
54538
|
let e = this.o;
|
|
54453
54539
|
const t = this.t;
|
|
54454
|
-
if (
|
|
54540
|
+
if (c9e && e === void 0) {
|
|
54455
54541
|
const i = t !== void 0 && t.length === 1;
|
|
54456
54542
|
i && (e = OKe.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), i && OKe.set(t, e));
|
|
54457
54543
|
}
|
|
@@ -54461,33 +54547,33 @@ let PEt = class {
|
|
|
54461
54547
|
return this.cssText;
|
|
54462
54548
|
}
|
|
54463
54549
|
};
|
|
54464
|
-
const
|
|
54550
|
+
const PTr = (r) => new NEt(typeof r == "string" ? r : r + "", void 0, h9e), yv = (r, ...e) => {
|
|
54465
54551
|
const t = r.length === 1 ? r[0] : e.reduce((i, n, s) => i + ((o) => {
|
|
54466
54552
|
if (o._$cssResult$ === !0) return o.cssText;
|
|
54467
54553
|
if (typeof o == "number") return o;
|
|
54468
54554
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
54469
54555
|
})(n) + r[s + 1], r[0]);
|
|
54470
|
-
return new
|
|
54471
|
-
},
|
|
54472
|
-
if (
|
|
54556
|
+
return new NEt(t, r, h9e);
|
|
54557
|
+
}, ATr = (r, e) => {
|
|
54558
|
+
if (c9e) r.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
|
54473
54559
|
else for (const t of e) {
|
|
54474
54560
|
const i = document.createElement("style"), n = $ae.litNonce;
|
|
54475
54561
|
n !== void 0 && i.setAttribute("nonce", n), i.textContent = t.cssText, r.appendChild(i);
|
|
54476
54562
|
}
|
|
54477
|
-
}, LKe =
|
|
54563
|
+
}, LKe = c9e ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((e) => {
|
|
54478
54564
|
let t = "";
|
|
54479
54565
|
for (const i of e.cssRules) t += i.cssText;
|
|
54480
|
-
return
|
|
54566
|
+
return PTr(t);
|
|
54481
54567
|
})(r) : r;
|
|
54482
54568
|
/**
|
|
54483
54569
|
* @license
|
|
54484
54570
|
* Copyright 2017 Google LLC
|
|
54485
54571
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54486
54572
|
*/
|
|
54487
|
-
const { is:
|
|
54573
|
+
const { is: NTr, defineProperty: MTr, getOwnPropertyDescriptor: DTr, getOwnPropertyNames: kTr, getOwnPropertySymbols: RTr, getPrototypeOf: $Tr } = Object, aye = globalThis, jKe = aye.trustedTypes, FTr = jKe ? jKe.emptyScript : "", OTr = aye.reactiveElementPolyfillSupport, bX = (r, e) => r, wAe = { toAttribute(r, e) {
|
|
54488
54574
|
switch (e) {
|
|
54489
54575
|
case Boolean:
|
|
54490
|
-
r = r ?
|
|
54576
|
+
r = r ? FTr : null;
|
|
54491
54577
|
break;
|
|
54492
54578
|
case Object:
|
|
54493
54579
|
case Array:
|
|
@@ -54512,8 +54598,8 @@ const { is: STr, defineProperty: TTr, getOwnPropertyDescriptor: ITr, getOwnPrope
|
|
|
54512
54598
|
}
|
|
54513
54599
|
}
|
|
54514
54600
|
return t;
|
|
54515
|
-
} },
|
|
54516
|
-
Symbol.metadata ??= Symbol("metadata"),
|
|
54601
|
+
} }, d9e = (r, e) => !NTr(r, e), BKe = { attribute: !0, type: String, converter: wAe, reflect: !1, useDefault: !1, hasChanged: d9e };
|
|
54602
|
+
Symbol.metadata ??= Symbol("metadata"), aye.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
54517
54603
|
let wL = class extends HTMLElement {
|
|
54518
54604
|
static addInitializer(e) {
|
|
54519
54605
|
this._$Ei(), (this.l ??= []).push(e);
|
|
@@ -54524,11 +54610,11 @@ let wL = class extends HTMLElement {
|
|
|
54524
54610
|
static createProperty(e, t = BKe) {
|
|
54525
54611
|
if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
|
|
54526
54612
|
const i = Symbol(), n = this.getPropertyDescriptor(e, i, t);
|
|
54527
|
-
n !== void 0 &&
|
|
54613
|
+
n !== void 0 && MTr(this.prototype, e, n);
|
|
54528
54614
|
}
|
|
54529
54615
|
}
|
|
54530
54616
|
static getPropertyDescriptor(e, t, i) {
|
|
54531
|
-
const { get: n, set: s } =
|
|
54617
|
+
const { get: n, set: s } = DTr(this.prototype, e) ?? { get() {
|
|
54532
54618
|
return this[t];
|
|
54533
54619
|
}, set(o) {
|
|
54534
54620
|
this[t] = o;
|
|
@@ -54543,13 +54629,13 @@ let wL = class extends HTMLElement {
|
|
|
54543
54629
|
}
|
|
54544
54630
|
static _$Ei() {
|
|
54545
54631
|
if (this.hasOwnProperty(bX("elementProperties"))) return;
|
|
54546
|
-
const e =
|
|
54632
|
+
const e = $Tr(this);
|
|
54547
54633
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
54548
54634
|
}
|
|
54549
54635
|
static finalize() {
|
|
54550
54636
|
if (this.hasOwnProperty(bX("finalized"))) return;
|
|
54551
54637
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(bX("properties"))) {
|
|
54552
|
-
const t = this.properties, i = [...
|
|
54638
|
+
const t = this.properties, i = [...kTr(t), ...RTr(t)];
|
|
54553
54639
|
for (const n of i) this.createProperty(n, t[n]);
|
|
54554
54640
|
}
|
|
54555
54641
|
const e = this[Symbol.metadata];
|
|
@@ -54595,7 +54681,7 @@ let wL = class extends HTMLElement {
|
|
|
54595
54681
|
}
|
|
54596
54682
|
createRenderRoot() {
|
|
54597
54683
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
54598
|
-
return
|
|
54684
|
+
return ATr(e, this.constructor.elementStyles), e;
|
|
54599
54685
|
}
|
|
54600
54686
|
connectedCallback() {
|
|
54601
54687
|
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((e) => e.hostConnected?.());
|
|
@@ -54611,21 +54697,21 @@ let wL = class extends HTMLElement {
|
|
|
54611
54697
|
_$ET(e, t) {
|
|
54612
54698
|
const i = this.constructor.elementProperties.get(e), n = this.constructor._$Eu(e, i);
|
|
54613
54699
|
if (n !== void 0 && i.reflect === !0) {
|
|
54614
|
-
const s = (i.converter?.toAttribute !== void 0 ? i.converter :
|
|
54700
|
+
const s = (i.converter?.toAttribute !== void 0 ? i.converter : wAe).toAttribute(t, i.type);
|
|
54615
54701
|
this._$Em = e, s == null ? this.removeAttribute(n) : this.setAttribute(n, s), this._$Em = null;
|
|
54616
54702
|
}
|
|
54617
54703
|
}
|
|
54618
54704
|
_$AK(e, t) {
|
|
54619
54705
|
const i = this.constructor, n = i._$Eh.get(e);
|
|
54620
54706
|
if (n !== void 0 && this._$Em !== n) {
|
|
54621
|
-
const s = i.getPropertyOptions(n), o = typeof s.converter == "function" ? { fromAttribute: s.converter } : s.converter?.fromAttribute !== void 0 ? s.converter :
|
|
54707
|
+
const s = i.getPropertyOptions(n), o = typeof s.converter == "function" ? { fromAttribute: s.converter } : s.converter?.fromAttribute !== void 0 ? s.converter : wAe;
|
|
54622
54708
|
this._$Em = n, this[n] = o.fromAttribute(t, s.type) ?? this._$Ej?.get(n) ?? null, this._$Em = null;
|
|
54623
54709
|
}
|
|
54624
54710
|
}
|
|
54625
54711
|
requestUpdate(e, t, i) {
|
|
54626
54712
|
if (e !== void 0) {
|
|
54627
54713
|
const n = this.constructor, s = this[e];
|
|
54628
|
-
if (i ??= n.getPropertyOptions(e), !((i.hasChanged ??
|
|
54714
|
+
if (i ??= n.getPropertyOptions(e), !((i.hasChanged ?? d9e)(s, t) || i.useDefault && i.reflect && s === this._$Ej?.get(e) && !this.hasAttribute(n._$Eu(e, i)))) return;
|
|
54629
54715
|
this.C(e, t, i);
|
|
54630
54716
|
}
|
|
54631
54717
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -54693,48 +54779,48 @@ let wL = class extends HTMLElement {
|
|
|
54693
54779
|
firstUpdated(e) {
|
|
54694
54780
|
}
|
|
54695
54781
|
};
|
|
54696
|
-
wL.elementStyles = [], wL.shadowRootOptions = { mode: "open" }, wL[bX("elementProperties")] = /* @__PURE__ */ new Map(), wL[bX("finalized")] = /* @__PURE__ */ new Map(),
|
|
54782
|
+
wL.elementStyles = [], wL.shadowRootOptions = { mode: "open" }, wL[bX("elementProperties")] = /* @__PURE__ */ new Map(), wL[bX("finalized")] = /* @__PURE__ */ new Map(), OTr?.({ ReactiveElement: wL }), (aye.reactiveElementVersions ??= []).push("2.1.0");
|
|
54697
54783
|
/**
|
|
54698
54784
|
* @license
|
|
54699
54785
|
* Copyright 2017 Google LLC
|
|
54700
54786
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54701
54787
|
*/
|
|
54702
|
-
const
|
|
54788
|
+
const p9e = globalThis, Yhe = p9e.trustedTypes, UKe = Yhe ? Yhe.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, MEt = "$lit$", FN = `lit$${Math.random().toFixed(9).slice(2)}$`, DEt = "?" + FN, LTr = `<${DEt}>`, KF = document, yZ = () => KF.createComment(""), _Z = (r) => r === null || typeof r != "object" && typeof r != "function", f9e = Array.isArray, jTr = (r) => f9e(r) || typeof r?.[Symbol.iterator] == "function", mbe = `[
|
|
54703
54789
|
\f\r]`, lV = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, zKe = /-->/g, GKe = />/g, wk = RegExp(`>|${mbe}(?:([^\\s"'>=/]+)(${mbe}*=${mbe}*(?:[^
|
|
54704
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), VKe = /'/g, qKe = /"/g,
|
|
54705
|
-
function
|
|
54706
|
-
if (!
|
|
54790
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), VKe = /'/g, qKe = /"/g, kEt = /^(?:script|style|textarea|title)$/i, REt = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), us = REt(1), vZ = REt(2), j2 = Symbol.for("lit-noChange"), Is = Symbol.for("lit-nothing"), HKe = /* @__PURE__ */ new WeakMap(), I6 = KF.createTreeWalker(KF, 129);
|
|
54791
|
+
function $Et(r, e) {
|
|
54792
|
+
if (!f9e(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
54707
54793
|
return UKe !== void 0 ? UKe.createHTML(e) : e;
|
|
54708
54794
|
}
|
|
54709
|
-
const
|
|
54795
|
+
const BTr = (r, e) => {
|
|
54710
54796
|
const t = r.length - 1, i = [];
|
|
54711
54797
|
let n, s = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", o = lV;
|
|
54712
54798
|
for (let a = 0; a < t; a++) {
|
|
54713
54799
|
const l = r[a];
|
|
54714
54800
|
let u, c, h = -1, d = 0;
|
|
54715
|
-
for (; d < l.length && (o.lastIndex = d, c = o.exec(l), c !== null); ) d = o.lastIndex, o === lV ? c[1] === "!--" ? o = zKe : c[1] !== void 0 ? o = GKe : c[2] !== void 0 ? (
|
|
54801
|
+
for (; d < l.length && (o.lastIndex = d, c = o.exec(l), c !== null); ) d = o.lastIndex, o === lV ? c[1] === "!--" ? o = zKe : c[1] !== void 0 ? o = GKe : c[2] !== void 0 ? (kEt.test(c[2]) && (n = RegExp("</" + c[2], "g")), o = wk) : c[3] !== void 0 && (o = wk) : o === wk ? c[0] === ">" ? (o = n ?? lV, h = -1) : c[1] === void 0 ? h = -2 : (h = o.lastIndex - c[2].length, u = c[1], o = c[3] === void 0 ? wk : c[3] === '"' ? qKe : VKe) : o === qKe || o === VKe ? o = wk : o === zKe || o === GKe ? o = lV : (o = wk, n = void 0);
|
|
54716
54802
|
const f = o === wk && r[a + 1].startsWith("/>") ? " " : "";
|
|
54717
|
-
s += o === lV ? l +
|
|
54803
|
+
s += o === lV ? l + LTr : h >= 0 ? (i.push(u), l.slice(0, h) + MEt + l.slice(h) + FN + f) : l + FN + (h === -2 ? a : f);
|
|
54718
54804
|
}
|
|
54719
|
-
return [
|
|
54805
|
+
return [$Et(r, s + (r[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
|
|
54720
54806
|
};
|
|
54721
|
-
let
|
|
54807
|
+
let xAe = class FEt {
|
|
54722
54808
|
constructor({ strings: e, _$litType$: t }, i) {
|
|
54723
54809
|
let n;
|
|
54724
54810
|
this.parts = [];
|
|
54725
54811
|
let s = 0, o = 0;
|
|
54726
|
-
const a = e.length - 1, l = this.parts, [u, c] =
|
|
54727
|
-
if (this.el =
|
|
54812
|
+
const a = e.length - 1, l = this.parts, [u, c] = BTr(e, t);
|
|
54813
|
+
if (this.el = FEt.createElement(u, i), I6.currentNode = this.el.content, t === 2 || t === 3) {
|
|
54728
54814
|
const h = this.el.content.firstChild;
|
|
54729
54815
|
h.replaceWith(...h.childNodes);
|
|
54730
54816
|
}
|
|
54731
54817
|
for (; (n = I6.nextNode()) !== null && l.length < a; ) {
|
|
54732
54818
|
if (n.nodeType === 1) {
|
|
54733
|
-
if (n.hasAttributes()) for (const h of n.getAttributeNames()) if (h.endsWith(
|
|
54819
|
+
if (n.hasAttributes()) for (const h of n.getAttributeNames()) if (h.endsWith(MEt)) {
|
|
54734
54820
|
const d = c[o++], f = n.getAttribute(h).split(FN), _ = /([.?@])?(.*)/.exec(d);
|
|
54735
|
-
l.push({ type: 1, index: s, name: _[2], strings: f, ctor: _[1] === "." ?
|
|
54821
|
+
l.push({ type: 1, index: s, name: _[2], strings: f, ctor: _[1] === "." ? zTr : _[1] === "?" ? GTr : _[1] === "@" ? VTr : lye }), n.removeAttribute(h);
|
|
54736
54822
|
} else h.startsWith(FN) && (l.push({ type: 6, index: s }), n.removeAttribute(h));
|
|
54737
|
-
if (
|
|
54823
|
+
if (kEt.test(n.tagName)) {
|
|
54738
54824
|
const h = n.textContent.split(FN), d = h.length - 1;
|
|
54739
54825
|
if (d > 0) {
|
|
54740
54826
|
n.textContent = Yhe ? Yhe.emptyScript : "";
|
|
@@ -54742,7 +54828,7 @@ let wAe = class REt {
|
|
|
54742
54828
|
n.append(h[d], yZ());
|
|
54743
54829
|
}
|
|
54744
54830
|
}
|
|
54745
|
-
} else if (n.nodeType === 8) if (n.data ===
|
|
54831
|
+
} else if (n.nodeType === 8) if (n.data === DEt) l.push({ type: 2, index: s });
|
|
54746
54832
|
else {
|
|
54747
54833
|
let h = -1;
|
|
54748
54834
|
for (; (h = n.data.indexOf(FN, h + 1)) !== -1; ) l.push({ type: 7, index: s }), h += FN.length - 1;
|
|
@@ -54761,7 +54847,7 @@ function FU(r, e, t = r, i) {
|
|
|
54761
54847
|
const s = _Z(e) ? void 0 : e._$litDirective$;
|
|
54762
54848
|
return n?.constructor !== s && (n?._$AO?.(!1), s === void 0 ? n = void 0 : (n = new s(r), n._$AT(r, t, i)), i !== void 0 ? (t._$Co ??= [])[i] = n : t._$Cl = n), n !== void 0 && (e = FU(r, n._$AS(r, e.values), n, i)), e;
|
|
54763
54849
|
}
|
|
54764
|
-
let
|
|
54850
|
+
let UTr = class {
|
|
54765
54851
|
constructor(e, t) {
|
|
54766
54852
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
54767
54853
|
}
|
|
@@ -54778,7 +54864,7 @@ let RTr = class {
|
|
|
54778
54864
|
for (; l !== void 0; ) {
|
|
54779
54865
|
if (o === l.index) {
|
|
54780
54866
|
let u;
|
|
54781
|
-
l.type === 2 ? u = new
|
|
54867
|
+
l.type === 2 ? u = new m9e(s, s.nextSibling, this, e) : l.type === 1 ? u = new l.ctor(s, l.name, l.strings, this, e) : l.type === 6 && (u = new qTr(s, this, e)), this._$AV.push(u), l = i[++a];
|
|
54782
54868
|
}
|
|
54783
54869
|
o !== l?.index && (s = I6.nextNode(), o++);
|
|
54784
54870
|
}
|
|
@@ -54788,7 +54874,7 @@ let RTr = class {
|
|
|
54788
54874
|
let t = 0;
|
|
54789
54875
|
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(e, i, t), t += i.strings.length - 2) : i._$AI(e[t])), t++;
|
|
54790
54876
|
}
|
|
54791
|
-
},
|
|
54877
|
+
}, m9e = class OEt {
|
|
54792
54878
|
get _$AU() {
|
|
54793
54879
|
return this._$AM?._$AU ?? this._$Cv;
|
|
54794
54880
|
}
|
|
@@ -54807,7 +54893,7 @@ let RTr = class {
|
|
|
54807
54893
|
return this._$AB;
|
|
54808
54894
|
}
|
|
54809
54895
|
_$AI(e, t = this) {
|
|
54810
|
-
e = FU(this, e, t), _Z(e) ? e === Is || e == null || e === "" ? (this._$AH !== Is && this._$AR(), this._$AH = Is) : e !== this._$AH && e !== j2 && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) :
|
|
54896
|
+
e = FU(this, e, t), _Z(e) ? e === Is || e == null || e === "" ? (this._$AH !== Is && this._$AR(), this._$AH = Is) : e !== this._$AH && e !== j2 && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : jTr(e) ? this.k(e) : this._(e);
|
|
54811
54897
|
}
|
|
54812
54898
|
O(e) {
|
|
54813
54899
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -54819,22 +54905,22 @@ let RTr = class {
|
|
|
54819
54905
|
this._$AH !== Is && _Z(this._$AH) ? this._$AA.nextSibling.data = e : this.T(KF.createTextNode(e)), this._$AH = e;
|
|
54820
54906
|
}
|
|
54821
54907
|
$(e) {
|
|
54822
|
-
const { values: t, _$litType$: i } = e, n = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el =
|
|
54908
|
+
const { values: t, _$litType$: i } = e, n = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = xAe.createElement($Et(i.h, i.h[0]), this.options)), i);
|
|
54823
54909
|
if (this._$AH?._$AD === n) this._$AH.p(t);
|
|
54824
54910
|
else {
|
|
54825
|
-
const s = new
|
|
54911
|
+
const s = new UTr(n, this), o = s.u(this.options);
|
|
54826
54912
|
s.p(t), this.T(o), this._$AH = s;
|
|
54827
54913
|
}
|
|
54828
54914
|
}
|
|
54829
54915
|
_$AC(e) {
|
|
54830
54916
|
let t = HKe.get(e.strings);
|
|
54831
|
-
return t === void 0 && HKe.set(e.strings, t = new
|
|
54917
|
+
return t === void 0 && HKe.set(e.strings, t = new xAe(e)), t;
|
|
54832
54918
|
}
|
|
54833
54919
|
k(e) {
|
|
54834
|
-
|
|
54920
|
+
f9e(this._$AH) || (this._$AH = [], this._$AR());
|
|
54835
54921
|
const t = this._$AH;
|
|
54836
54922
|
let i, n = 0;
|
|
54837
|
-
for (const s of e) n === t.length ? t.push(i = new
|
|
54923
|
+
for (const s of e) n === t.length ? t.push(i = new OEt(this.O(yZ()), this.O(yZ()), this, this.options)) : i = t[n], i._$AI(s), n++;
|
|
54838
54924
|
n < t.length && (this._$AR(i && i._$AB.nextSibling, n), t.length = n);
|
|
54839
54925
|
}
|
|
54840
54926
|
_$AR(e = this._$AA.nextSibling, t) {
|
|
@@ -54846,7 +54932,7 @@ let RTr = class {
|
|
|
54846
54932
|
setConnected(e) {
|
|
54847
54933
|
this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
|
|
54848
54934
|
}
|
|
54849
|
-
},
|
|
54935
|
+
}, lye = class {
|
|
54850
54936
|
get tagName() {
|
|
54851
54937
|
return this.element.tagName;
|
|
54852
54938
|
}
|
|
@@ -54870,21 +54956,21 @@ let RTr = class {
|
|
|
54870
54956
|
j(e) {
|
|
54871
54957
|
e === Is ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
54872
54958
|
}
|
|
54873
|
-
},
|
|
54959
|
+
}, zTr = class extends lye {
|
|
54874
54960
|
constructor() {
|
|
54875
54961
|
super(...arguments), this.type = 3;
|
|
54876
54962
|
}
|
|
54877
54963
|
j(e) {
|
|
54878
54964
|
this.element[this.name] = e === Is ? void 0 : e;
|
|
54879
54965
|
}
|
|
54880
|
-
},
|
|
54966
|
+
}, GTr = class extends lye {
|
|
54881
54967
|
constructor() {
|
|
54882
54968
|
super(...arguments), this.type = 4;
|
|
54883
54969
|
}
|
|
54884
54970
|
j(e) {
|
|
54885
54971
|
this.element.toggleAttribute(this.name, !!e && e !== Is);
|
|
54886
54972
|
}
|
|
54887
|
-
},
|
|
54973
|
+
}, VTr = class extends lye {
|
|
54888
54974
|
constructor(e, t, i, n, s) {
|
|
54889
54975
|
super(e, t, i, n, s), this.type = 5;
|
|
54890
54976
|
}
|
|
@@ -54896,7 +54982,7 @@ let RTr = class {
|
|
|
54896
54982
|
handleEvent(e) {
|
|
54897
54983
|
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
|
|
54898
54984
|
}
|
|
54899
|
-
},
|
|
54985
|
+
}, qTr = class {
|
|
54900
54986
|
constructor(e, t, i) {
|
|
54901
54987
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = i;
|
|
54902
54988
|
}
|
|
@@ -54907,14 +54993,14 @@ let RTr = class {
|
|
|
54907
54993
|
FU(this, e);
|
|
54908
54994
|
}
|
|
54909
54995
|
};
|
|
54910
|
-
const
|
|
54911
|
-
|
|
54912
|
-
const
|
|
54996
|
+
const HTr = p9e.litHtmlPolyfillSupport;
|
|
54997
|
+
HTr?.(xAe, m9e), (p9e.litHtmlVersions ??= []).push("3.3.0");
|
|
54998
|
+
const WTr = (r, e, t) => {
|
|
54913
54999
|
const i = t?.renderBefore ?? e;
|
|
54914
55000
|
let n = i._$litPart$;
|
|
54915
55001
|
if (n === void 0) {
|
|
54916
55002
|
const s = t?.renderBefore ?? null;
|
|
54917
|
-
i._$litPart$ = n = new
|
|
55003
|
+
i._$litPart$ = n = new m9e(e.insertBefore(yZ(), s), s, void 0, t ?? {});
|
|
54918
55004
|
}
|
|
54919
55005
|
return n._$AI(r), n;
|
|
54920
55006
|
};
|
|
@@ -54923,7 +55009,7 @@ const BTr = (r, e, t) => {
|
|
|
54923
55009
|
* Copyright 2017 Google LLC
|
|
54924
55010
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54925
55011
|
*/
|
|
54926
|
-
const
|
|
55012
|
+
const g9e = globalThis;
|
|
54927
55013
|
let CM = class extends wL {
|
|
54928
55014
|
constructor() {
|
|
54929
55015
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
@@ -54934,7 +55020,7 @@ let CM = class extends wL {
|
|
|
54934
55020
|
}
|
|
54935
55021
|
update(e) {
|
|
54936
55022
|
const t = this.render();
|
|
54937
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
55023
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = WTr(t, this.renderRoot, this.renderOptions);
|
|
54938
55024
|
}
|
|
54939
55025
|
connectedCallback() {
|
|
54940
55026
|
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
@@ -54946,98 +55032,11 @@ let CM = class extends wL {
|
|
|
54946
55032
|
return j2;
|
|
54947
55033
|
}
|
|
54948
55034
|
};
|
|
54949
|
-
CM._$litElement$ = !0, CM.finalized = !0,
|
|
54950
|
-
const
|
|
54951
|
-
|
|
54952
|
-
(
|
|
54953
|
-
const
|
|
54954
|
-
let j7;
|
|
54955
|
-
const B7 = (r) => {
|
|
54956
|
-
j7 !== r && (j7 = r, queueMicrotask(() => j7 === r ? j7 = void 0 : 0));
|
|
54957
|
-
}, lye = (r) => {
|
|
54958
|
-
if (process.env.NODE_ENV !== "production" && j7 === void 0)
|
|
54959
|
-
throw new Error(
|
|
54960
|
-
[
|
|
54961
|
-
`Unable to find out which component ${r || "this"} controller `,
|
|
54962
|
-
`belongs to. Possible causes:
|
|
54963
|
-
`,
|
|
54964
|
-
"- You might have multiple versions of ",
|
|
54965
|
-
`@arcgis/lumina package installed
|
|
54966
|
-
`,
|
|
54967
|
-
...lh() ? [
|
|
54968
|
-
"- You tried to create controller outside the component. If so, ",
|
|
54969
|
-
"please wrap your controller definition in an arrow function (like",
|
|
54970
|
-
"`const myController = ()=>makeController(...);`) and call that",
|
|
54971
|
-
"function inside the component (`my = myController();`), or ",
|
|
54972
|
-
"define your controller using makeGenericController/GenericController ",
|
|
54973
|
-
`instead.
|
|
54974
|
-
`,
|
|
54975
|
-
"- You tried to create a controller inside an async function. ",
|
|
54976
|
-
"This is allowed without calling controller.use(). Make sure you ",
|
|
54977
|
-
"use it like `await controller.use(useController())`."
|
|
54978
|
-
] : []
|
|
54979
|
-
].join("")
|
|
54980
|
-
);
|
|
54981
|
-
return j7;
|
|
54982
|
-
};
|
|
54983
|
-
let xR = [];
|
|
54984
|
-
const FEt = (r) => {
|
|
54985
|
-
if (r === void 0) {
|
|
54986
|
-
xR = [];
|
|
54987
|
-
return;
|
|
54988
|
-
}
|
|
54989
|
-
const e = xR.indexOf(r);
|
|
54990
|
-
xR = e === -1 ? [...xR, r] : xR.slice(0, e + 1), queueMicrotask(() => xR = []);
|
|
54991
|
-
}, OEt = () => xR;
|
|
54992
|
-
let U7;
|
|
54993
|
-
const VTr = (r) => {
|
|
54994
|
-
U7 !== r && (U7 = r, queueMicrotask(() => U7 === r ? U7 = void 0 : 0));
|
|
54995
|
-
}, qTr = () => {
|
|
54996
|
-
const r = U7;
|
|
54997
|
-
return U7 = void 0, r;
|
|
54998
|
-
}, HTr = async (r, e) => {
|
|
54999
|
-
const t = g9e(r);
|
|
55000
|
-
if (t === void 0) {
|
|
55001
|
-
if (process.env.NODE_ENV !== "production" && lh() && typeof e == "function")
|
|
55002
|
-
throw new Error(
|
|
55003
|
-
"Unable to resolve a controller from the provided value, so can't watch it's exports. The value you passed is not a controller and not a controller exports. If your controller exports a literal value, try making your controller export an object instead"
|
|
55004
|
-
);
|
|
55005
|
-
return r;
|
|
55006
|
-
}
|
|
55007
|
-
if (await t.ready, typeof e == "function") {
|
|
55008
|
-
if (process.env.NODE_ENV !== "production" && lh() && t.watchExports === void 0)
|
|
55009
|
-
throw new Error("The controller must implement watchExports method to support watching exports");
|
|
55010
|
-
const i = t.watchExports(
|
|
55011
|
-
(n) => e(n, i)
|
|
55012
|
-
);
|
|
55013
|
-
}
|
|
55014
|
-
return t.exports;
|
|
55015
|
-
}, WTr = async (r) => {
|
|
55016
|
-
const e = g9e(r);
|
|
55017
|
-
if (process.env.NODE_ENV !== "production" && lh() && e === void 0)
|
|
55018
|
-
throw new Error(
|
|
55019
|
-
"Unable to resolve a controller from the provided value. The value you passed is not a controller and not a controller exports. If your controller exports a literal value, try making your controller export an object instead"
|
|
55020
|
-
);
|
|
55021
|
-
return await e.ready, e;
|
|
55022
|
-
}, g9e = (r) => {
|
|
55023
|
-
const t = lye().manager.X(r);
|
|
55024
|
-
if (t !== void 0)
|
|
55025
|
-
return t;
|
|
55026
|
-
if (zTr(r))
|
|
55027
|
-
return r;
|
|
55028
|
-
const i = qTr();
|
|
55029
|
-
if (i !== void 0)
|
|
55030
|
-
return i;
|
|
55031
|
-
};
|
|
55032
|
-
let xAe = !1;
|
|
55033
|
-
const YTr = (r) => {
|
|
55034
|
-
xAe = !0;
|
|
55035
|
-
try {
|
|
55036
|
-
return r();
|
|
55037
|
-
} finally {
|
|
55038
|
-
xAe = !1;
|
|
55039
|
-
}
|
|
55040
|
-
}, XTr = (r, e, t) => {
|
|
55035
|
+
CM._$litElement$ = !0, CM.finalized = !0, g9e.litElementHydrateSupport?.({ LitElement: CM });
|
|
55036
|
+
const YTr = g9e.litElementPolyfillSupport;
|
|
55037
|
+
YTr?.({ LitElement: CM });
|
|
55038
|
+
(g9e.litElementVersions ??= []).push("4.2.0");
|
|
55039
|
+
const XTr = (r, e, t) => {
|
|
55041
55040
|
const i = Object.keys(r), n = i.length;
|
|
55042
55041
|
z7 === void 0 && queueMicrotask(y9e), z7 ??= /* @__PURE__ */ new Map();
|
|
55043
55042
|
let s = z7.get(r);
|
|
@@ -55056,8 +55055,8 @@ const y9e = () => {
|
|
|
55056
55055
|
const i = r.manager;
|
|
55057
55056
|
return i.V !== Is && i.V !== t && i.S(void 0, void 0), i.T.length === 0 && queueMicrotask(() => i.S(void 0, void 0)), i.V = t, i.T.push((n, s) => rp(e, void 0, t === s ? n : void 0)), t;
|
|
55058
55057
|
}, LEt = (r = [
|
|
55059
|
-
|
|
55060
|
-
...
|
|
55058
|
+
oye(),
|
|
55059
|
+
...AEt()
|
|
55061
55060
|
], e, t) => {
|
|
55062
55061
|
const i = Array.isArray(r) ? r : [r];
|
|
55063
55062
|
let n = i.length + 1;
|
|
@@ -55081,7 +55080,7 @@ const y9e = () => {
|
|
|
55081
55080
|
break;
|
|
55082
55081
|
}
|
|
55083
55082
|
return t;
|
|
55084
|
-
}, ZTr = (r = "", e = {}, t =
|
|
55083
|
+
}, ZTr = (r = "", e = {}, t = oye()) => {
|
|
55085
55084
|
const i = {
|
|
55086
55085
|
emit: (n) => {
|
|
55087
55086
|
if (process.env.NODE_ENV !== "production" && lh() && !t.el.isConnected && console.warn(`Trying to emit an ${r} event on a disconnected element ${t.el.localName}`), r === "" && (y9e(), process.env.NODE_ENV !== "production" && lh() && r === ""))
|
|
@@ -55107,17 +55106,17 @@ const y9e = () => {
|
|
|
55107
55106
|
), i;
|
|
55108
55107
|
}, Vp = ZTr.bind(null, "");
|
|
55109
55108
|
var jEt;
|
|
55110
|
-
jEt =
|
|
55109
|
+
jEt = l9e;
|
|
55111
55110
|
class _9e {
|
|
55112
55111
|
constructor(e) {
|
|
55113
55112
|
this.#e = [], this.#t = [], this.#r = [], this.#n = [], this.#s = [], this.#l = [], this.#u = [], this.#d = [], this.#c = [], this.#h = !1, this.P = new ZJ(), this.connectedCalled = !1, this.loadedCalled = !1, this[jEt] = !0, this.#a = [];
|
|
55114
|
-
const t = this, i = e ??
|
|
55113
|
+
const t = this, i = e ?? oye(new.target.name);
|
|
55115
55114
|
t.#i = i, t.ready = t.P.promise, t.#o = YKe(t), process.env.NODE_ENV !== "production" ? (Object.defineProperty(this, "component", {
|
|
55116
55115
|
writable: !1,
|
|
55117
55116
|
enumerable: !1,
|
|
55118
55117
|
configurable: !0,
|
|
55119
55118
|
value: i
|
|
55120
|
-
}), "hostDestroy" in this && t.#i.manager.devOnly$ensureHasDestroy?.()) : t.component = i, t.#i.addController(t), t.#i.manager === void 0 || (
|
|
55119
|
+
}), "hostDestroy" in this && t.#i.manager.devOnly$ensureHasDestroy?.()) : t.component = i, t.#i.addController(t), t.#i.manager === void 0 || (PEt(t), queueMicrotask(() => t.catchUpLifecycle()));
|
|
55121
55120
|
}
|
|
55122
55121
|
#e;
|
|
55123
55122
|
#t;
|
|
@@ -55185,7 +55184,7 @@ class _9e {
|
|
|
55185
55184
|
* require awaiting them as they are guaranteed to be loaded by then.
|
|
55186
55185
|
*/
|
|
55187
55186
|
get use() {
|
|
55188
|
-
return B7(this.#i),
|
|
55187
|
+
return B7(this.#i), ITr;
|
|
55189
55188
|
}
|
|
55190
55189
|
/**
|
|
55191
55190
|
* Just like controller.use, but returns the controller itself, rather than it's
|
|
@@ -55201,7 +55200,7 @@ class _9e {
|
|
|
55201
55200
|
* some other method on the controller
|
|
55202
55201
|
*/
|
|
55203
55202
|
get useRef() {
|
|
55204
|
-
return B7(this.#i),
|
|
55203
|
+
return B7(this.#i), ETr;
|
|
55205
55204
|
}
|
|
55206
55205
|
/**
|
|
55207
55206
|
* Like useRef, but doesn't wait for the controller to get ready
|
|
@@ -55209,7 +55208,7 @@ class _9e {
|
|
|
55209
55208
|
* @private
|
|
55210
55209
|
*/
|
|
55211
55210
|
get useRefSync() {
|
|
55212
|
-
return B7(this.#i),
|
|
55211
|
+
return B7(this.#i), u9e;
|
|
55213
55212
|
}
|
|
55214
55213
|
controllerRemoved() {
|
|
55215
55214
|
this.#i.el.isConnected && this.triggerDisconnected(), this.triggerDestroy();
|
|
@@ -55791,7 +55790,7 @@ class R0 extends CM {
|
|
|
55791
55790
|
return this.K?.commonStyles === void 0 || i ? t : [this.K.commonStyles, ...t];
|
|
55792
55791
|
}
|
|
55793
55792
|
static createProperty(e, t) {
|
|
55794
|
-
const i = typeof t == "number" ? t : Array.isArray(t) ? t[0] : 0, n = Array.isArray(t) ? t[1] : void 0, s = n?.hasChanged ??
|
|
55793
|
+
const i = typeof t == "number" ? t : Array.isArray(t) ? t[0] : 0, n = Array.isArray(t) ? t[1] : void 0, s = n?.hasChanged ?? d9e, o = {
|
|
55795
55794
|
/**
|
|
55796
55795
|
* By default to infer attribute name from property name, Lit just
|
|
55797
55796
|
* converts property name to lowercase. That is consistent with
|
|
@@ -55838,7 +55837,7 @@ class R0 extends CM {
|
|
|
55838
55837
|
},
|
|
55839
55838
|
set(o) {
|
|
55840
55839
|
const a = this.manager;
|
|
55841
|
-
if (i.readOnly && !
|
|
55840
|
+
if (i.readOnly && !bAe && (a.R || a.connectedCalled))
|
|
55842
55841
|
throw Error(
|
|
55843
55842
|
`Cannot assign to read-only property "${e}" of ${this.el.localName}. Trying to assign "${o}"`
|
|
55844
55843
|
);
|
|
@@ -55964,7 +55963,7 @@ class R0 extends CM {
|
|
|
55964
55963
|
* timing, and to add support for load/loaded lifecycle hooks.
|
|
55965
55964
|
*/
|
|
55966
55965
|
addController(e) {
|
|
55967
|
-
this.M.push(e), !(
|
|
55966
|
+
this.M.push(e), !(l9e in e) && this.renderRoot && this.el.isConnected && e.hostConnected?.();
|
|
55968
55967
|
}
|
|
55969
55968
|
/**
|
|
55970
55969
|
* Removes a controller from the host.
|
|
@@ -172142,10 +172141,10 @@ function f_i(r) {
|
|
|
172142
172141
|
}).join("-");
|
|
172143
172142
|
}
|
|
172144
172143
|
const T1e = () => f_i([2, 1, 1, 1, 3]), m_i = (r) => (...e) => {
|
|
172145
|
-
const t =
|
|
172146
|
-
|
|
172144
|
+
const t = AEt(), i = new r(...e), n = i.exports;
|
|
172145
|
+
PEt(t.at(-1));
|
|
172147
172146
|
const s = i.component.manager;
|
|
172148
|
-
s.W(i, n), i.watchExports(s.W.bind(s, i)),
|
|
172147
|
+
s.W(i, n), i.watchExports(s.W.bind(s, i)), STr(i);
|
|
172149
172148
|
const o = [i.component, ...t].reverse();
|
|
172150
172149
|
return LEt(
|
|
172151
172150
|
o,
|
|
@@ -172168,7 +172167,7 @@ const T1e = () => f_i([2, 1, 1, 1, 3]), m_i = (r) => (...e) => {
|
|
|
172168
172167
|
}
|
|
172169
172168
|
const c = r.component.constructor.elementProperties.get(t)?.readOnly;
|
|
172170
172169
|
r.watchExports(() => {
|
|
172171
|
-
s[t] !== r.exports && (c ?
|
|
172170
|
+
s[t] !== r.exports && (c ? CTr(() => {
|
|
172172
172171
|
s[t] = r.exports;
|
|
172173
172172
|
}) : s[t] = r.exports);
|
|
172174
172173
|
});
|
|
@@ -172188,7 +172187,7 @@ class __i extends _9e {
|
|
|
172188
172187
|
try {
|
|
172189
172188
|
B7(this.component);
|
|
172190
172189
|
const n = t(this.component, this), s = this.exports !== i;
|
|
172191
|
-
if (
|
|
172190
|
+
if (xTr(n)) {
|
|
172192
172191
|
s || this.setProvisionalExports(n);
|
|
172193
172192
|
const o = n.then((a) => {
|
|
172194
172193
|
this.exports = a, super.catchUpLifecycle();
|