@luzmo/embed 6.1.1 → 6.1.2-beta.1
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/CHANGELOG.md +6 -0
- package/index.cjs +262 -30
- package/index.d.ts +2 -0
- package/index.js +243 -15
- package/lib/ai-component/luzmo-ai-answer.d.ts +23 -0
- package/lib/ai-component/luzmo-ai-chat.d.ts +24 -0
- package/libs/dashboard-contents-types/src/index.d.ts +1 -0
- package/libs/dashboard-contents-types/src/lib/area-chart/area-chart-options.d.ts +1 -1
- package/libs/dashboard-contents-types/src/lib/bar-chart/bar-chart-options.d.ts +1 -1
- package/libs/dashboard-contents-types/src/lib/box-plot/box-plot-options.d.ts +1 -1
- package/libs/dashboard-contents-types/src/lib/bubble-chart/bubble-chart-options.d.ts +1 -1
- package/libs/dashboard-contents-types/src/lib/bullet-chart/bullet-chart-options.d.ts +1 -1
- package/libs/dashboard-contents-types/src/lib/column-chart/column-chart-options.d.ts +1 -1
- package/libs/dashboard-contents-types/src/lib/combination-chart/combination-chart-options.d.ts +1 -1
- package/libs/dashboard-contents-types/src/lib/conditional-number/conditional-number-options.d.ts +1 -1
- package/libs/dashboard-contents-types/src/lib/donut-chart/donut-chart-options.d.ts +1 -1
- package/libs/dashboard-contents-types/src/lib/evolution-number/evolution-number-options.d.ts +1 -1
- package/libs/dashboard-contents-types/src/lib/funnel-chart/funnel-chart-options.d.ts +1 -1
- package/libs/dashboard-contents-types/src/lib/line-chart/line-chart-options.d.ts +1 -1
- package/libs/dashboard-contents-types/src/lib/scatter-plot/scatter-plot-options.d.ts +1 -1
- package/libs/dashboard-contents-types/src/lib/search-filter/index.d.ts +3 -0
- package/libs/dashboard-contents-types/src/lib/search-filter/search-filter-options.d.ts +56 -0
- package/libs/dashboard-contents-types/src/lib/search-filter/search-filter-slots.d.ts +17 -0
- package/libs/dashboard-contents-types/src/lib/search-filter/search-filter.d.ts +23 -0
- package/libs/dashboard-contents-types/src/lib/shared/common.d.ts +1 -1
- package/libs/embed-libs/embed/src/index.d.ts +2 -0
- package/libs/embed-libs/embed/src/lib/ai-component/luzmo-ai-answer.d.ts +23 -0
- package/libs/embed-libs/embed/src/lib/ai-component/luzmo-ai-chat.d.ts +24 -0
- package/libs/embed-libs/shared-embed/src/index.common.d.ts +1 -0
- package/libs/embed-libs/shared-embed/src/lib/helpers/remote-federation.d.ts +1 -1
- package/libs/embed-libs/shared-embed/src/lib/models/ai-components.model.d.ts +129 -0
- package/luzmo-embed.min.js +649 -417
- package/package.json +2 -2
- package/src/index.d.ts +7 -0
- package/src/lib/ai-component/luzmo-ai-answer.d.ts +23 -0
- package/src/lib/ai-component/luzmo-ai-chat.d.ts +24 -0
- package/src/lib/dashboard-component/dashboard-base.d.ts +98 -0
- package/src/lib/dashboard-component/dashboard-component.d.ts +8 -0
- package/src/lib/dashboard-component/dashboard-styles.d.ts +1 -0
- package/src/lib/helper/event-bus-handler.d.ts +1 -0
- package/src/lib/luzmo-service.d.ts +6 -0
- package/src/lib/viz-item/viz-item-component.d.ts +4 -0
- package/src/lib/viz-item/viz-item.base.d.ts +73 -0
package/luzmo-embed.min.js
CHANGED
|
@@ -1561,7 +1561,7 @@ var require_dataType = __commonJS({
|
|
|
1561
1561
|
exports.coerceAndCheckDataType = coerceAndCheckDataType;
|
|
1562
1562
|
var COERCIBLE = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
|
|
1563
1563
|
function coerceToTypes(types, coerceTypes) {
|
|
1564
|
-
return coerceTypes ? types.filter((
|
|
1564
|
+
return coerceTypes ? types.filter((t3) => COERCIBLE.has(t3) || coerceTypes === "array" && t3 === "array") : [];
|
|
1565
1565
|
}
|
|
1566
1566
|
function coerceData(it, types, coerceTo) {
|
|
1567
1567
|
const { gen, data, opts } = it;
|
|
@@ -1571,9 +1571,9 @@ var require_dataType = __commonJS({
|
|
|
1571
1571
|
gen.if((0, codegen_1._)`${dataType} == 'object' && Array.isArray(${data}) && ${data}.length == 1`, () => gen.assign(data, (0, codegen_1._)`${data}[0]`).assign(dataType, (0, codegen_1._)`typeof ${data}`).if(checkDataTypes(types, data, opts.strictNumbers), () => gen.assign(coerced, data)));
|
|
1572
1572
|
}
|
|
1573
1573
|
gen.if((0, codegen_1._)`${coerced} !== undefined`);
|
|
1574
|
-
for (const
|
|
1575
|
-
if (COERCIBLE.has(
|
|
1576
|
-
coerceSpecificType(
|
|
1574
|
+
for (const t3 of coerceTo) {
|
|
1575
|
+
if (COERCIBLE.has(t3) || t3 === "array" && opts.coerceTypes === "array") {
|
|
1576
|
+
coerceSpecificType(t3);
|
|
1577
1577
|
}
|
|
1578
1578
|
}
|
|
1579
1579
|
gen.else();
|
|
@@ -1583,8 +1583,8 @@ var require_dataType = __commonJS({
|
|
|
1583
1583
|
gen.assign(data, coerced);
|
|
1584
1584
|
assignParentData(it, coerced);
|
|
1585
1585
|
});
|
|
1586
|
-
function coerceSpecificType(
|
|
1587
|
-
switch (
|
|
1586
|
+
function coerceSpecificType(t3) {
|
|
1587
|
+
switch (t3) {
|
|
1588
1588
|
case "string":
|
|
1589
1589
|
gen.elseIf((0, codegen_1._)`${dataType} == "number" || ${dataType} == "boolean"`).assign(coerced, (0, codegen_1._)`"" + ${data}`).elseIf((0, codegen_1._)`${data} === null`).assign(coerced, (0, codegen_1._)`""`);
|
|
1590
1590
|
return;
|
|
@@ -1656,8 +1656,8 @@ var require_dataType = __commonJS({
|
|
|
1656
1656
|
}
|
|
1657
1657
|
if (types.number)
|
|
1658
1658
|
delete types.integer;
|
|
1659
|
-
for (const
|
|
1660
|
-
cond = (0, codegen_1.and)(cond, checkDataType(
|
|
1659
|
+
for (const t3 in types)
|
|
1660
|
+
cond = (0, codegen_1.and)(cond, checkDataType(t3, data, strictNums, correct));
|
|
1661
1661
|
return cond;
|
|
1662
1662
|
}
|
|
1663
1663
|
exports.checkDataTypes = checkDataTypes;
|
|
@@ -2582,9 +2582,9 @@ var require_validate = __commonJS({
|
|
|
2582
2582
|
it.dataTypes = types;
|
|
2583
2583
|
return;
|
|
2584
2584
|
}
|
|
2585
|
-
types.forEach((
|
|
2586
|
-
if (!includesType(it.dataTypes,
|
|
2587
|
-
strictTypesError(it, `type "${
|
|
2585
|
+
types.forEach((t3) => {
|
|
2586
|
+
if (!includesType(it.dataTypes, t3)) {
|
|
2587
|
+
strictTypesError(it, `type "${t3}" not allowed by context "${it.dataTypes.join(",")}"`);
|
|
2588
2588
|
}
|
|
2589
2589
|
});
|
|
2590
2590
|
narrowSchemaTypes(it, types);
|
|
@@ -2600,7 +2600,7 @@ var require_validate = __commonJS({
|
|
|
2600
2600
|
const rule = rules[keyword];
|
|
2601
2601
|
if (typeof rule == "object" && (0, applicability_1.shouldUseRule)(it.schema, rule)) {
|
|
2602
2602
|
const { type } = rule.definition;
|
|
2603
|
-
if (type.length && !type.some((
|
|
2603
|
+
if (type.length && !type.some((t3) => hasApplicableType(ts, t3))) {
|
|
2604
2604
|
strictTypesError(it, `missing type "${type.join(",")}" for keyword "${keyword}"`);
|
|
2605
2605
|
}
|
|
2606
2606
|
}
|
|
@@ -2609,15 +2609,15 @@ var require_validate = __commonJS({
|
|
|
2609
2609
|
function hasApplicableType(schTs, kwdT) {
|
|
2610
2610
|
return schTs.includes(kwdT) || kwdT === "number" && schTs.includes("integer");
|
|
2611
2611
|
}
|
|
2612
|
-
function includesType(ts,
|
|
2613
|
-
return ts.includes(
|
|
2612
|
+
function includesType(ts, t3) {
|
|
2613
|
+
return ts.includes(t3) || t3 === "integer" && ts.includes("number");
|
|
2614
2614
|
}
|
|
2615
2615
|
function narrowSchemaTypes(it, withTypes) {
|
|
2616
2616
|
const ts = [];
|
|
2617
|
-
for (const
|
|
2618
|
-
if (includesType(withTypes,
|
|
2619
|
-
ts.push(
|
|
2620
|
-
else if (withTypes.includes("integer") &&
|
|
2617
|
+
for (const t3 of it.dataTypes) {
|
|
2618
|
+
if (includesType(withTypes, t3))
|
|
2619
|
+
ts.push(t3);
|
|
2620
|
+
else if (withTypes.includes("integer") && t3 === "number")
|
|
2621
2621
|
ts.push("integer");
|
|
2622
2622
|
}
|
|
2623
2623
|
it.dataTypes = ts;
|
|
@@ -4186,7 +4186,7 @@ var require_core = __commonJS({
|
|
|
4186
4186
|
type: (0, dataType_1.getJSONTypes)(def.type),
|
|
4187
4187
|
schemaType: (0, dataType_1.getJSONTypes)(def.schemaType)
|
|
4188
4188
|
};
|
|
4189
|
-
(0, util_1.eachItem)(keyword, definition.type.length === 0 ? (k2) => addRule.call(this, k2, definition) : (k2) => definition.type.forEach((
|
|
4189
|
+
(0, util_1.eachItem)(keyword, definition.type.length === 0 ? (k2) => addRule.call(this, k2, definition) : (k2) => definition.type.forEach((t3) => addRule.call(this, k2, definition, t3)));
|
|
4190
4190
|
return this;
|
|
4191
4191
|
}
|
|
4192
4192
|
getKeyword(keyword) {
|
|
@@ -4385,7 +4385,7 @@ var require_core = __commonJS({
|
|
|
4385
4385
|
if (dataType && post)
|
|
4386
4386
|
throw new Error('keyword with "post" flag cannot have "type"');
|
|
4387
4387
|
const { RULES } = this;
|
|
4388
|
-
let ruleGroup = post ? RULES.post : RULES.rules.find(({ type:
|
|
4388
|
+
let ruleGroup = post ? RULES.post : RULES.rules.find(({ type: t3 }) => t3 === dataType);
|
|
4389
4389
|
if (!ruleGroup) {
|
|
4390
4390
|
ruleGroup = { type: dataType, rules: [] };
|
|
4391
4391
|
RULES.rules.push(ruleGroup);
|
|
@@ -4924,7 +4924,7 @@ var require_uniqueItems = __commonJS({
|
|
|
4924
4924
|
gen.if((0, codegen_1._)`${i4} > 1`, () => (canOptimize() ? loopN : loopN2)(i4, j2));
|
|
4925
4925
|
}
|
|
4926
4926
|
function canOptimize() {
|
|
4927
|
-
return itemTypes.length > 0 && !itemTypes.some((
|
|
4927
|
+
return itemTypes.length > 0 && !itemTypes.some((t3) => t3 === "object" || t3 === "array");
|
|
4928
4928
|
}
|
|
4929
4929
|
function loopN(i4, j2) {
|
|
4930
4930
|
const item = gen.name("item");
|
|
@@ -6785,6 +6785,8 @@ var src_exports2 = {};
|
|
|
6785
6785
|
__export(src_exports2, {
|
|
6786
6786
|
ColumnChartModes: () => ColumnChartModes,
|
|
6787
6787
|
JSON_SCHEMAS: () => json_schemas_default,
|
|
6788
|
+
LuzmoAIAnswerComponent: () => LuzmoAIAnswerComponent,
|
|
6789
|
+
LuzmoEmbedAIChatComponent: () => LuzmoEmbedAIChatComponent,
|
|
6788
6790
|
LuzmoEmbedDashboard: () => LuzmoEmbedDashboard,
|
|
6789
6791
|
LuzmoEmbedVizItem: () => LuzmoEmbedVizItem,
|
|
6790
6792
|
RegularTableSortingMode: () => RegularTableSortingMode,
|
|
@@ -61006,7 +61008,7 @@ var formatDashboardList = (dashboards, integrationId, user, dashboardComponent)
|
|
|
61006
61008
|
modifiedAt: dashboard.modified_at,
|
|
61007
61009
|
name: localize(dashboard.name, dashboardComponent.language),
|
|
61008
61010
|
slug: null,
|
|
61009
|
-
tags: dashboard.tags.map((
|
|
61011
|
+
tags: dashboard.tags.map((t3) => t3.tag).sort((t1, t22) => t1.localeCompare(t22))
|
|
61010
61012
|
};
|
|
61011
61013
|
const currentIntegration = dashboard.integrations.find(
|
|
61012
61014
|
(i4) => i4.id === integrationId
|
|
@@ -62049,78 +62051,80 @@ async function __federationMethodGetRemote(remoteName, componentName) {
|
|
|
62049
62051
|
return __federationMethodEnsure(remoteName).then((remote) => remote.get(componentName).then((factory) => factory()));
|
|
62050
62052
|
}
|
|
62051
62053
|
async function loadLibrary(appServer, componentName = "DashboardApp") {
|
|
62052
|
-
|
|
62053
|
-
|
|
62054
|
+
const remotesMapIndex = appServer + componentName;
|
|
62055
|
+
if (remotesMap[remotesMapIndex]) {
|
|
62056
|
+
return remotesMap[remotesMapIndex].module;
|
|
62054
62057
|
}
|
|
62055
|
-
|
|
62056
|
-
|
|
62058
|
+
let url = `${removeTrailingSlash(appServer)}/remoteEntry.mjs`;
|
|
62059
|
+
if (!appServer.startsWith("http://localhost")) {
|
|
62060
|
+
if (componentName === "DashboardApp") {
|
|
62061
|
+
url = `${removeTrailingSlash(appServer)}/dashboard-app/remoteEntry.mjs`;
|
|
62062
|
+
} else if (componentName === "Component") {
|
|
62063
|
+
url = `${removeTrailingSlash(appServer)}/ai-chart-components/remoteEntry.mjs`;
|
|
62064
|
+
}
|
|
62065
|
+
}
|
|
62066
|
+
remotesMap[remotesMapIndex] = {
|
|
62067
|
+
url,
|
|
62057
62068
|
format: "esm",
|
|
62058
62069
|
from: "vite",
|
|
62059
62070
|
module: void 0
|
|
62060
62071
|
};
|
|
62061
|
-
const module2 = await __federationMethodGetRemote(
|
|
62072
|
+
const module2 = await __federationMethodGetRemote(remotesMapIndex, `./${componentName}`);
|
|
62062
62073
|
const wrappedModule = __federationMethodWrapDefault(module2, true);
|
|
62063
|
-
remotesMap[
|
|
62074
|
+
remotesMap[remotesMapIndex].module = wrappedModule;
|
|
62064
62075
|
return wrappedModule;
|
|
62065
62076
|
}
|
|
62066
62077
|
|
|
62067
|
-
// node_modules/@lit/reactive-element/decorators/custom-element.js
|
|
62068
|
-
var t = (t4) => (e6, o4) => {
|
|
62069
|
-
void 0 !== o4 ? o4.addInitializer(() => {
|
|
62070
|
-
customElements.define(t4, e6);
|
|
62071
|
-
}) : customElements.define(t4, e6);
|
|
62072
|
-
};
|
|
62073
|
-
|
|
62074
62078
|
// node_modules/@lit/reactive-element/css-tag.js
|
|
62075
|
-
var
|
|
62076
|
-
var e =
|
|
62079
|
+
var t = globalThis;
|
|
62080
|
+
var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
|
|
62077
62081
|
var s = Symbol();
|
|
62078
62082
|
var o = /* @__PURE__ */ new WeakMap();
|
|
62079
62083
|
var n = class {
|
|
62080
|
-
constructor(
|
|
62084
|
+
constructor(t3, e6, o4) {
|
|
62081
62085
|
if (this._$cssResult$ = true, o4 !== s)
|
|
62082
62086
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
62083
|
-
this.cssText =
|
|
62087
|
+
this.cssText = t3, this.t = e6;
|
|
62084
62088
|
}
|
|
62085
62089
|
get styleSheet() {
|
|
62086
|
-
let
|
|
62090
|
+
let t3 = this.o;
|
|
62087
62091
|
const s2 = this.t;
|
|
62088
|
-
if (e && void 0 ===
|
|
62092
|
+
if (e && void 0 === t3) {
|
|
62089
62093
|
const e6 = void 0 !== s2 && 1 === s2.length;
|
|
62090
|
-
e6 && (
|
|
62094
|
+
e6 && (t3 = o.get(s2)), void 0 === t3 && ((this.o = t3 = new CSSStyleSheet()).replaceSync(this.cssText), e6 && o.set(s2, t3));
|
|
62091
62095
|
}
|
|
62092
|
-
return
|
|
62096
|
+
return t3;
|
|
62093
62097
|
}
|
|
62094
62098
|
toString() {
|
|
62095
62099
|
return this.cssText;
|
|
62096
62100
|
}
|
|
62097
62101
|
};
|
|
62098
|
-
var r = (
|
|
62099
|
-
var i = (
|
|
62100
|
-
const o4 = 1 ===
|
|
62101
|
-
if (true ===
|
|
62102
|
-
return
|
|
62103
|
-
if ("number" == typeof
|
|
62104
|
-
return
|
|
62105
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " +
|
|
62106
|
-
})(s2) +
|
|
62107
|
-
return new n(o4,
|
|
62102
|
+
var r = (t3) => new n("string" == typeof t3 ? t3 : t3 + "", void 0, s);
|
|
62103
|
+
var i = (t3, ...e6) => {
|
|
62104
|
+
const o4 = 1 === t3.length ? t3[0] : e6.reduce((e7, s2, o5) => e7 + ((t4) => {
|
|
62105
|
+
if (true === t4._$cssResult$)
|
|
62106
|
+
return t4.cssText;
|
|
62107
|
+
if ("number" == typeof t4)
|
|
62108
|
+
return t4;
|
|
62109
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + t4 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
62110
|
+
})(s2) + t3[o5 + 1], t3[0]);
|
|
62111
|
+
return new n(o4, t3, s);
|
|
62108
62112
|
};
|
|
62109
62113
|
var S = (s2, o4) => {
|
|
62110
62114
|
if (e)
|
|
62111
|
-
s2.adoptedStyleSheets = o4.map((
|
|
62115
|
+
s2.adoptedStyleSheets = o4.map((t3) => t3 instanceof CSSStyleSheet ? t3 : t3.styleSheet);
|
|
62112
62116
|
else
|
|
62113
62117
|
for (const e6 of o4) {
|
|
62114
|
-
const o5 = document.createElement("style"), n5 =
|
|
62118
|
+
const o5 = document.createElement("style"), n5 = t.litNonce;
|
|
62115
62119
|
void 0 !== n5 && o5.setAttribute("nonce", n5), o5.textContent = e6.cssText, s2.appendChild(o5);
|
|
62116
62120
|
}
|
|
62117
62121
|
};
|
|
62118
|
-
var c = e ? (
|
|
62122
|
+
var c = e ? (t3) => t3 : (t3) => t3 instanceof CSSStyleSheet ? ((t4) => {
|
|
62119
62123
|
let e6 = "";
|
|
62120
|
-
for (const s2 of
|
|
62124
|
+
for (const s2 of t4.cssRules)
|
|
62121
62125
|
e6 += s2.cssText;
|
|
62122
62126
|
return r(e6);
|
|
62123
|
-
})(
|
|
62127
|
+
})(t3) : t3;
|
|
62124
62128
|
|
|
62125
62129
|
// node_modules/@lit/reactive-element/reactive-element.js
|
|
62126
62130
|
var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: r2, getOwnPropertyNames: h, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object;
|
|
@@ -62128,93 +62132,93 @@ var a = globalThis;
|
|
|
62128
62132
|
var c2 = a.trustedTypes;
|
|
62129
62133
|
var l = c2 ? c2.emptyScript : "";
|
|
62130
62134
|
var p = a.reactiveElementPolyfillSupport;
|
|
62131
|
-
var d = (
|
|
62132
|
-
var u = { toAttribute(
|
|
62135
|
+
var d = (t3, s2) => t3;
|
|
62136
|
+
var u = { toAttribute(t3, s2) {
|
|
62133
62137
|
switch (s2) {
|
|
62134
62138
|
case Boolean:
|
|
62135
|
-
|
|
62139
|
+
t3 = t3 ? l : null;
|
|
62136
62140
|
break;
|
|
62137
62141
|
case Object:
|
|
62138
62142
|
case Array:
|
|
62139
|
-
|
|
62143
|
+
t3 = null == t3 ? t3 : JSON.stringify(t3);
|
|
62140
62144
|
}
|
|
62141
|
-
return
|
|
62142
|
-
}, fromAttribute(
|
|
62143
|
-
let i4 =
|
|
62145
|
+
return t3;
|
|
62146
|
+
}, fromAttribute(t3, s2) {
|
|
62147
|
+
let i4 = t3;
|
|
62144
62148
|
switch (s2) {
|
|
62145
62149
|
case Boolean:
|
|
62146
|
-
i4 = null !==
|
|
62150
|
+
i4 = null !== t3;
|
|
62147
62151
|
break;
|
|
62148
62152
|
case Number:
|
|
62149
|
-
i4 = null ===
|
|
62153
|
+
i4 = null === t3 ? null : Number(t3);
|
|
62150
62154
|
break;
|
|
62151
62155
|
case Object:
|
|
62152
62156
|
case Array:
|
|
62153
62157
|
try {
|
|
62154
|
-
i4 = JSON.parse(
|
|
62155
|
-
} catch (
|
|
62158
|
+
i4 = JSON.parse(t3);
|
|
62159
|
+
} catch (t4) {
|
|
62156
62160
|
i4 = null;
|
|
62157
62161
|
}
|
|
62158
62162
|
}
|
|
62159
62163
|
return i4;
|
|
62160
62164
|
} };
|
|
62161
|
-
var f = (
|
|
62165
|
+
var f = (t3, s2) => !i2(t3, s2);
|
|
62162
62166
|
var y = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
|
|
62163
62167
|
Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
62164
62168
|
var b = class extends HTMLElement {
|
|
62165
|
-
static addInitializer(
|
|
62166
|
-
this._$Ei(), (this.l ??= []).push(
|
|
62169
|
+
static addInitializer(t3) {
|
|
62170
|
+
this._$Ei(), (this.l ??= []).push(t3);
|
|
62167
62171
|
}
|
|
62168
62172
|
static get observedAttributes() {
|
|
62169
62173
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
62170
62174
|
}
|
|
62171
|
-
static createProperty(
|
|
62172
|
-
if (s2.state && (s2.attribute = false), this._$Ei(), this.elementProperties.set(
|
|
62173
|
-
const i4 = Symbol(), r5 = this.getPropertyDescriptor(
|
|
62174
|
-
void 0 !== r5 && e2(this.prototype,
|
|
62175
|
+
static createProperty(t3, s2 = y) {
|
|
62176
|
+
if (s2.state && (s2.attribute = false), this._$Ei(), this.elementProperties.set(t3, s2), !s2.noAccessor) {
|
|
62177
|
+
const i4 = Symbol(), r5 = this.getPropertyDescriptor(t3, i4, s2);
|
|
62178
|
+
void 0 !== r5 && e2(this.prototype, t3, r5);
|
|
62175
62179
|
}
|
|
62176
62180
|
}
|
|
62177
|
-
static getPropertyDescriptor(
|
|
62178
|
-
const { get: e6, set: h4 } = r2(this.prototype,
|
|
62181
|
+
static getPropertyDescriptor(t3, s2, i4) {
|
|
62182
|
+
const { get: e6, set: h4 } = r2(this.prototype, t3) ?? { get() {
|
|
62179
62183
|
return this[s2];
|
|
62180
|
-
}, set(
|
|
62181
|
-
this[s2] =
|
|
62184
|
+
}, set(t4) {
|
|
62185
|
+
this[s2] = t4;
|
|
62182
62186
|
} };
|
|
62183
62187
|
return { get() {
|
|
62184
62188
|
return e6?.call(this);
|
|
62185
62189
|
}, set(s3) {
|
|
62186
62190
|
const r5 = e6?.call(this);
|
|
62187
|
-
h4.call(this, s3), this.requestUpdate(
|
|
62191
|
+
h4.call(this, s3), this.requestUpdate(t3, r5, i4);
|
|
62188
62192
|
}, configurable: true, enumerable: true };
|
|
62189
62193
|
}
|
|
62190
|
-
static getPropertyOptions(
|
|
62191
|
-
return this.elementProperties.get(
|
|
62194
|
+
static getPropertyOptions(t3) {
|
|
62195
|
+
return this.elementProperties.get(t3) ?? y;
|
|
62192
62196
|
}
|
|
62193
62197
|
static _$Ei() {
|
|
62194
62198
|
if (this.hasOwnProperty(d("elementProperties")))
|
|
62195
62199
|
return;
|
|
62196
|
-
const
|
|
62197
|
-
|
|
62200
|
+
const t3 = n2(this);
|
|
62201
|
+
t3.finalize(), void 0 !== t3.l && (this.l = [...t3.l]), this.elementProperties = new Map(t3.elementProperties);
|
|
62198
62202
|
}
|
|
62199
62203
|
static finalize() {
|
|
62200
62204
|
if (this.hasOwnProperty(d("finalized")))
|
|
62201
62205
|
return;
|
|
62202
62206
|
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
|
|
62203
|
-
const
|
|
62207
|
+
const t4 = this.properties, s2 = [...h(t4), ...o2(t4)];
|
|
62204
62208
|
for (const i4 of s2)
|
|
62205
|
-
this.createProperty(i4,
|
|
62209
|
+
this.createProperty(i4, t4[i4]);
|
|
62206
62210
|
}
|
|
62207
|
-
const
|
|
62208
|
-
if (null !==
|
|
62209
|
-
const s2 = litPropertyMetadata.get(
|
|
62211
|
+
const t3 = this[Symbol.metadata];
|
|
62212
|
+
if (null !== t3) {
|
|
62213
|
+
const s2 = litPropertyMetadata.get(t3);
|
|
62210
62214
|
if (void 0 !== s2)
|
|
62211
|
-
for (const [
|
|
62212
|
-
this.elementProperties.set(
|
|
62215
|
+
for (const [t4, i4] of s2)
|
|
62216
|
+
this.elementProperties.set(t4, i4);
|
|
62213
62217
|
}
|
|
62214
62218
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
62215
|
-
for (const [
|
|
62216
|
-
const i4 = this._$Eu(
|
|
62217
|
-
void 0 !== i4 && this._$Eh.set(i4,
|
|
62219
|
+
for (const [t4, s2] of this.elementProperties) {
|
|
62220
|
+
const i4 = this._$Eu(t4, s2);
|
|
62221
|
+
void 0 !== i4 && this._$Eh.set(i4, t4);
|
|
62218
62222
|
}
|
|
62219
62223
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
62220
62224
|
}
|
|
@@ -62228,77 +62232,77 @@ var b = class extends HTMLElement {
|
|
|
62228
62232
|
void 0 !== s2 && i4.push(c(s2));
|
|
62229
62233
|
return i4;
|
|
62230
62234
|
}
|
|
62231
|
-
static _$Eu(
|
|
62235
|
+
static _$Eu(t3, s2) {
|
|
62232
62236
|
const i4 = s2.attribute;
|
|
62233
|
-
return false === i4 ? void 0 : "string" == typeof i4 ? i4 : "string" == typeof
|
|
62237
|
+
return false === i4 ? void 0 : "string" == typeof i4 ? i4 : "string" == typeof t3 ? t3.toLowerCase() : void 0;
|
|
62234
62238
|
}
|
|
62235
62239
|
constructor() {
|
|
62236
62240
|
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
62237
62241
|
}
|
|
62238
62242
|
_$Ev() {
|
|
62239
|
-
this._$ES = new Promise((
|
|
62243
|
+
this._$ES = new Promise((t3) => this.enableUpdating = t3), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t3) => t3(this));
|
|
62240
62244
|
}
|
|
62241
|
-
addController(
|
|
62242
|
-
(this._$EO ??= /* @__PURE__ */ new Set()).add(
|
|
62245
|
+
addController(t3) {
|
|
62246
|
+
(this._$EO ??= /* @__PURE__ */ new Set()).add(t3), void 0 !== this.renderRoot && this.isConnected && t3.hostConnected?.();
|
|
62243
62247
|
}
|
|
62244
|
-
removeController(
|
|
62245
|
-
this._$EO?.delete(
|
|
62248
|
+
removeController(t3) {
|
|
62249
|
+
this._$EO?.delete(t3);
|
|
62246
62250
|
}
|
|
62247
62251
|
_$E_() {
|
|
62248
|
-
const
|
|
62252
|
+
const t3 = /* @__PURE__ */ new Map(), s2 = this.constructor.elementProperties;
|
|
62249
62253
|
for (const i4 of s2.keys())
|
|
62250
|
-
this.hasOwnProperty(i4) && (
|
|
62251
|
-
|
|
62254
|
+
this.hasOwnProperty(i4) && (t3.set(i4, this[i4]), delete this[i4]);
|
|
62255
|
+
t3.size > 0 && (this._$Ep = t3);
|
|
62252
62256
|
}
|
|
62253
62257
|
createRenderRoot() {
|
|
62254
|
-
const
|
|
62255
|
-
return S(
|
|
62258
|
+
const t3 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
62259
|
+
return S(t3, this.constructor.elementStyles), t3;
|
|
62256
62260
|
}
|
|
62257
62261
|
connectedCallback() {
|
|
62258
|
-
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((
|
|
62262
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t3) => t3.hostConnected?.());
|
|
62259
62263
|
}
|
|
62260
|
-
enableUpdating(
|
|
62264
|
+
enableUpdating(t3) {
|
|
62261
62265
|
}
|
|
62262
62266
|
disconnectedCallback() {
|
|
62263
|
-
this._$EO?.forEach((
|
|
62267
|
+
this._$EO?.forEach((t3) => t3.hostDisconnected?.());
|
|
62264
62268
|
}
|
|
62265
|
-
attributeChangedCallback(
|
|
62266
|
-
this._$AK(
|
|
62269
|
+
attributeChangedCallback(t3, s2, i4) {
|
|
62270
|
+
this._$AK(t3, i4);
|
|
62267
62271
|
}
|
|
62268
|
-
_$EC(
|
|
62269
|
-
const i4 = this.constructor.elementProperties.get(
|
|
62272
|
+
_$EC(t3, s2) {
|
|
62273
|
+
const i4 = this.constructor.elementProperties.get(t3), e6 = this.constructor._$Eu(t3, i4);
|
|
62270
62274
|
if (void 0 !== e6 && true === i4.reflect) {
|
|
62271
62275
|
const r5 = (void 0 !== i4.converter?.toAttribute ? i4.converter : u).toAttribute(s2, i4.type);
|
|
62272
|
-
this._$Em =
|
|
62276
|
+
this._$Em = t3, null == r5 ? this.removeAttribute(e6) : this.setAttribute(e6, r5), this._$Em = null;
|
|
62273
62277
|
}
|
|
62274
62278
|
}
|
|
62275
|
-
_$AK(
|
|
62276
|
-
const i4 = this.constructor, e6 = i4._$Eh.get(
|
|
62279
|
+
_$AK(t3, s2) {
|
|
62280
|
+
const i4 = this.constructor, e6 = i4._$Eh.get(t3);
|
|
62277
62281
|
if (void 0 !== e6 && this._$Em !== e6) {
|
|
62278
|
-
const
|
|
62279
|
-
this._$Em = e6, this[e6] = r5.fromAttribute(s2,
|
|
62282
|
+
const t4 = i4.getPropertyOptions(e6), r5 = "function" == typeof t4.converter ? { fromAttribute: t4.converter } : void 0 !== t4.converter?.fromAttribute ? t4.converter : u;
|
|
62283
|
+
this._$Em = e6, this[e6] = r5.fromAttribute(s2, t4.type), this._$Em = null;
|
|
62280
62284
|
}
|
|
62281
62285
|
}
|
|
62282
|
-
requestUpdate(
|
|
62283
|
-
if (void 0 !==
|
|
62284
|
-
if (i4 ??= this.constructor.getPropertyOptions(
|
|
62286
|
+
requestUpdate(t3, s2, i4) {
|
|
62287
|
+
if (void 0 !== t3) {
|
|
62288
|
+
if (i4 ??= this.constructor.getPropertyOptions(t3), !(i4.hasChanged ?? f)(this[t3], s2))
|
|
62285
62289
|
return;
|
|
62286
|
-
this.P(
|
|
62290
|
+
this.P(t3, s2, i4);
|
|
62287
62291
|
}
|
|
62288
62292
|
false === this.isUpdatePending && (this._$ES = this._$ET());
|
|
62289
62293
|
}
|
|
62290
|
-
P(
|
|
62291
|
-
this._$AL.has(
|
|
62294
|
+
P(t3, s2, i4) {
|
|
62295
|
+
this._$AL.has(t3) || this._$AL.set(t3, s2), true === i4.reflect && this._$Em !== t3 && (this._$Ej ??= /* @__PURE__ */ new Set()).add(t3);
|
|
62292
62296
|
}
|
|
62293
62297
|
async _$ET() {
|
|
62294
62298
|
this.isUpdatePending = true;
|
|
62295
62299
|
try {
|
|
62296
62300
|
await this._$ES;
|
|
62297
|
-
} catch (
|
|
62298
|
-
Promise.reject(
|
|
62301
|
+
} catch (t4) {
|
|
62302
|
+
Promise.reject(t4);
|
|
62299
62303
|
}
|
|
62300
|
-
const
|
|
62301
|
-
return null !=
|
|
62304
|
+
const t3 = this.scheduleUpdate();
|
|
62305
|
+
return null != t3 && await t3, !this.isUpdatePending;
|
|
62302
62306
|
}
|
|
62303
62307
|
scheduleUpdate() {
|
|
62304
62308
|
return this.performUpdate();
|
|
@@ -62308,28 +62312,28 @@ var b = class extends HTMLElement {
|
|
|
62308
62312
|
return;
|
|
62309
62313
|
if (!this.hasUpdated) {
|
|
62310
62314
|
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
62311
|
-
for (const [
|
|
62312
|
-
this[
|
|
62315
|
+
for (const [t5, s3] of this._$Ep)
|
|
62316
|
+
this[t5] = s3;
|
|
62313
62317
|
this._$Ep = void 0;
|
|
62314
62318
|
}
|
|
62315
|
-
const
|
|
62316
|
-
if (
|
|
62317
|
-
for (const [s3, i4] of
|
|
62319
|
+
const t4 = this.constructor.elementProperties;
|
|
62320
|
+
if (t4.size > 0)
|
|
62321
|
+
for (const [s3, i4] of t4)
|
|
62318
62322
|
true !== i4.wrapped || this._$AL.has(s3) || void 0 === this[s3] || this.P(s3, this[s3], i4);
|
|
62319
62323
|
}
|
|
62320
|
-
let
|
|
62324
|
+
let t3 = false;
|
|
62321
62325
|
const s2 = this._$AL;
|
|
62322
62326
|
try {
|
|
62323
|
-
|
|
62327
|
+
t3 = this.shouldUpdate(s2), t3 ? (this.willUpdate(s2), this._$EO?.forEach((t4) => t4.hostUpdate?.()), this.update(s2)) : this._$EU();
|
|
62324
62328
|
} catch (s3) {
|
|
62325
|
-
throw
|
|
62329
|
+
throw t3 = false, this._$EU(), s3;
|
|
62326
62330
|
}
|
|
62327
|
-
|
|
62331
|
+
t3 && this._$AE(s2);
|
|
62328
62332
|
}
|
|
62329
|
-
willUpdate(
|
|
62333
|
+
willUpdate(t3) {
|
|
62330
62334
|
}
|
|
62331
|
-
_$AE(
|
|
62332
|
-
this._$EO?.forEach((
|
|
62335
|
+
_$AE(t3) {
|
|
62336
|
+
this._$EO?.forEach((t4) => t4.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t3)), this.updated(t3);
|
|
62333
62337
|
}
|
|
62334
62338
|
_$EU() {
|
|
62335
62339
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
@@ -62340,94 +62344,32 @@ var b = class extends HTMLElement {
|
|
|
62340
62344
|
getUpdateComplete() {
|
|
62341
62345
|
return this._$ES;
|
|
62342
62346
|
}
|
|
62343
|
-
shouldUpdate(
|
|
62347
|
+
shouldUpdate(t3) {
|
|
62344
62348
|
return true;
|
|
62345
62349
|
}
|
|
62346
|
-
update(
|
|
62347
|
-
this._$Ej &&= this._$Ej.forEach((
|
|
62350
|
+
update(t3) {
|
|
62351
|
+
this._$Ej &&= this._$Ej.forEach((t4) => this._$EC(t4, this[t4])), this._$EU();
|
|
62348
62352
|
}
|
|
62349
|
-
updated(
|
|
62353
|
+
updated(t3) {
|
|
62350
62354
|
}
|
|
62351
|
-
firstUpdated(
|
|
62355
|
+
firstUpdated(t3) {
|
|
62352
62356
|
}
|
|
62353
62357
|
};
|
|
62354
62358
|
b.elementStyles = [], b.shadowRootOptions = { mode: "open" }, b[d("elementProperties")] = /* @__PURE__ */ new Map(), b[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: b }), (a.reactiveElementVersions ??= []).push("2.0.4");
|
|
62355
62359
|
|
|
62356
|
-
// node_modules/@lit/reactive-element/decorators/property.js
|
|
62357
|
-
var o3 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
|
|
62358
|
-
var r3 = (t4 = o3, e6, r5) => {
|
|
62359
|
-
const { kind: n5, metadata: i4 } = r5;
|
|
62360
|
-
let s2 = globalThis.litPropertyMetadata.get(i4);
|
|
62361
|
-
if (void 0 === s2 && globalThis.litPropertyMetadata.set(i4, s2 = /* @__PURE__ */ new Map()), s2.set(r5.name, t4), "accessor" === n5) {
|
|
62362
|
-
const { name: o4 } = r5;
|
|
62363
|
-
return { set(r6) {
|
|
62364
|
-
const n6 = e6.get.call(this);
|
|
62365
|
-
e6.set.call(this, r6), this.requestUpdate(o4, n6, t4);
|
|
62366
|
-
}, init(e7) {
|
|
62367
|
-
return void 0 !== e7 && this.P(o4, void 0, t4), e7;
|
|
62368
|
-
} };
|
|
62369
|
-
}
|
|
62370
|
-
if ("setter" === n5) {
|
|
62371
|
-
const { name: o4 } = r5;
|
|
62372
|
-
return function(r6) {
|
|
62373
|
-
const n6 = this[o4];
|
|
62374
|
-
e6.call(this, r6), this.requestUpdate(o4, n6, t4);
|
|
62375
|
-
};
|
|
62376
|
-
}
|
|
62377
|
-
throw Error("Unsupported decorator location: " + n5);
|
|
62378
|
-
};
|
|
62379
|
-
function n3(t4) {
|
|
62380
|
-
return (e6, o4) => "object" == typeof o4 ? r3(t4, e6, o4) : ((t5, e7, o5) => {
|
|
62381
|
-
const r5 = e7.hasOwnProperty(o5);
|
|
62382
|
-
return e7.constructor.createProperty(o5, r5 ? { ...t5, wrapped: true } : t5), r5 ? Object.getOwnPropertyDescriptor(e7, o5) : void 0;
|
|
62383
|
-
})(t4, e6, o4);
|
|
62384
|
-
}
|
|
62385
|
-
|
|
62386
|
-
// node_modules/@lit/reactive-element/decorators/state.js
|
|
62387
|
-
function r4(r5) {
|
|
62388
|
-
return n3({ ...r5, state: true, attribute: false });
|
|
62389
|
-
}
|
|
62390
|
-
|
|
62391
|
-
// node_modules/@lit/reactive-element/decorators/base.js
|
|
62392
|
-
var e3 = (e6, t4, c4) => (c4.configurable = true, c4.enumerable = true, Reflect.decorate && "object" != typeof t4 && Object.defineProperty(e6, t4, c4), c4);
|
|
62393
|
-
|
|
62394
|
-
// node_modules/@lit/reactive-element/decorators/query.js
|
|
62395
|
-
function e4(e6, r5) {
|
|
62396
|
-
return (n5, s2, i4) => {
|
|
62397
|
-
const o4 = (t4) => t4.renderRoot?.querySelector(e6) ?? null;
|
|
62398
|
-
if (r5) {
|
|
62399
|
-
const { get: e7, set: r6 } = "object" == typeof s2 ? n5 : i4 ?? (() => {
|
|
62400
|
-
const t4 = Symbol();
|
|
62401
|
-
return { get() {
|
|
62402
|
-
return this[t4];
|
|
62403
|
-
}, set(e8) {
|
|
62404
|
-
this[t4] = e8;
|
|
62405
|
-
} };
|
|
62406
|
-
})();
|
|
62407
|
-
return e3(n5, s2, { get() {
|
|
62408
|
-
let t4 = e7.call(this);
|
|
62409
|
-
return void 0 === t4 && (t4 = o4(this), (null !== t4 || this.hasUpdated) && r6.call(this, t4)), t4;
|
|
62410
|
-
} });
|
|
62411
|
-
}
|
|
62412
|
-
return e3(n5, s2, { get() {
|
|
62413
|
-
return o4(this);
|
|
62414
|
-
} });
|
|
62415
|
-
};
|
|
62416
|
-
}
|
|
62417
|
-
|
|
62418
62360
|
// node_modules/lit-html/lit-html.js
|
|
62419
|
-
var
|
|
62420
|
-
var c3 =
|
|
62421
|
-
var h2 = c3 ? c3.createPolicy("lit-html", { createHTML: (
|
|
62361
|
+
var n3 = globalThis;
|
|
62362
|
+
var c3 = n3.trustedTypes;
|
|
62363
|
+
var h2 = c3 ? c3.createPolicy("lit-html", { createHTML: (t3) => t3 }) : void 0;
|
|
62422
62364
|
var f2 = "$lit$";
|
|
62423
62365
|
var v = `lit$${Math.random().toFixed(9).slice(2)}$`;
|
|
62424
62366
|
var m = "?" + v;
|
|
62425
62367
|
var _ = `<${m}>`;
|
|
62426
62368
|
var w = document;
|
|
62427
62369
|
var lt = () => w.createComment("");
|
|
62428
|
-
var st = (
|
|
62370
|
+
var st = (t3) => null === t3 || "object" != typeof t3 && "function" != typeof t3;
|
|
62429
62371
|
var g = Array.isArray;
|
|
62430
|
-
var $ = (
|
|
62372
|
+
var $ = (t3) => g(t3) || "function" == typeof t3?.[Symbol.iterator];
|
|
62431
62373
|
var x = "[ \n\f\r]";
|
|
62432
62374
|
var T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
|
|
62433
62375
|
var E = /-->/g;
|
|
@@ -62437,7 +62379,7 @@ var O = RegExp(`>|${x}(?:([^\\s"'>=/]+)(${x}*=${x}*(?:[^
|
|
|
62437
62379
|
var S2 = /'/g;
|
|
62438
62380
|
var j = /"/g;
|
|
62439
62381
|
var M = /^(?:script|style|textarea|title)$/i;
|
|
62440
|
-
var P = (
|
|
62382
|
+
var P = (t3) => (i4, ...s2) => ({ _$litType$: t3, strings: i4, values: s2 });
|
|
62441
62383
|
var ke = P(1);
|
|
62442
62384
|
var Oe = P(2);
|
|
62443
62385
|
var Se = P(3);
|
|
@@ -62445,78 +62387,78 @@ var R = Symbol.for("lit-noChange");
|
|
|
62445
62387
|
var D = Symbol.for("lit-nothing");
|
|
62446
62388
|
var V = /* @__PURE__ */ new WeakMap();
|
|
62447
62389
|
var I = w.createTreeWalker(w, 129);
|
|
62448
|
-
function N(
|
|
62449
|
-
if (!g(
|
|
62390
|
+
function N(t3, i4) {
|
|
62391
|
+
if (!g(t3) || !t3.hasOwnProperty("raw"))
|
|
62450
62392
|
throw Error("invalid template strings array");
|
|
62451
62393
|
return void 0 !== h2 ? h2.createHTML(i4) : i4;
|
|
62452
62394
|
}
|
|
62453
|
-
var U = (
|
|
62454
|
-
const s2 =
|
|
62395
|
+
var U = (t3, i4) => {
|
|
62396
|
+
const s2 = t3.length - 1, e6 = [];
|
|
62455
62397
|
let h4, o4 = 2 === i4 ? "<svg>" : 3 === i4 ? "<math>" : "", n5 = T;
|
|
62456
62398
|
for (let i5 = 0; i5 < s2; i5++) {
|
|
62457
|
-
const s3 =
|
|
62399
|
+
const s3 = t3[i5];
|
|
62458
62400
|
let r5, l2, c4 = -1, a2 = 0;
|
|
62459
62401
|
for (; a2 < s3.length && (n5.lastIndex = a2, l2 = n5.exec(s3), null !== l2); )
|
|
62460
62402
|
a2 = n5.lastIndex, n5 === T ? "!--" === l2[1] ? n5 = E : void 0 !== l2[1] ? n5 = k : void 0 !== l2[2] ? (M.test(l2[2]) && (h4 = RegExp("</" + l2[2], "g")), n5 = O) : void 0 !== l2[3] && (n5 = O) : n5 === O ? ">" === l2[0] ? (n5 = h4 ?? T, c4 = -1) : void 0 === l2[1] ? c4 = -2 : (c4 = n5.lastIndex - l2[2].length, r5 = l2[1], n5 = void 0 === l2[3] ? O : '"' === l2[3] ? j : S2) : n5 === j || n5 === S2 ? n5 = O : n5 === E || n5 === k ? n5 = T : (n5 = O, h4 = void 0);
|
|
62461
|
-
const u2 = n5 === O &&
|
|
62403
|
+
const u2 = n5 === O && t3[i5 + 1].startsWith("/>") ? " " : "";
|
|
62462
62404
|
o4 += n5 === T ? s3 + _ : c4 >= 0 ? (e6.push(r5), s3.slice(0, c4) + f2 + s3.slice(c4) + v + u2) : s3 + v + (-2 === c4 ? i5 : u2);
|
|
62463
62405
|
}
|
|
62464
|
-
return [N(
|
|
62406
|
+
return [N(t3, o4 + (t3[s2] || "<?>") + (2 === i4 ? "</svg>" : 3 === i4 ? "</math>" : "")), e6];
|
|
62465
62407
|
};
|
|
62466
62408
|
var B = class _B {
|
|
62467
|
-
constructor({ strings:
|
|
62409
|
+
constructor({ strings: t3, _$litType$: i4 }, s2) {
|
|
62468
62410
|
let e6;
|
|
62469
62411
|
this.parts = [];
|
|
62470
62412
|
let h4 = 0, o4 = 0;
|
|
62471
|
-
const n5 =
|
|
62413
|
+
const n5 = t3.length - 1, r5 = this.parts, [l2, a2] = U(t3, i4);
|
|
62472
62414
|
if (this.el = _B.createElement(l2, s2), I.currentNode = this.el.content, 2 === i4 || 3 === i4) {
|
|
62473
|
-
const
|
|
62474
|
-
|
|
62415
|
+
const t4 = this.el.content.firstChild;
|
|
62416
|
+
t4.replaceWith(...t4.childNodes);
|
|
62475
62417
|
}
|
|
62476
62418
|
for (; null !== (e6 = I.nextNode()) && r5.length < n5; ) {
|
|
62477
62419
|
if (1 === e6.nodeType) {
|
|
62478
62420
|
if (e6.hasAttributes())
|
|
62479
|
-
for (const
|
|
62480
|
-
if (
|
|
62481
|
-
const i5 = a2[o4++], s3 = e6.getAttribute(
|
|
62482
|
-
r5.push({ type: 1, index: h4, name: n6[2], strings: s3, ctor: "." === n6[1] ? Y : "?" === n6[1] ? Z : "@" === n6[1] ? q : G }), e6.removeAttribute(
|
|
62421
|
+
for (const t4 of e6.getAttributeNames())
|
|
62422
|
+
if (t4.endsWith(f2)) {
|
|
62423
|
+
const i5 = a2[o4++], s3 = e6.getAttribute(t4).split(v), n6 = /([.?@])?(.*)/.exec(i5);
|
|
62424
|
+
r5.push({ type: 1, index: h4, name: n6[2], strings: s3, ctor: "." === n6[1] ? Y : "?" === n6[1] ? Z : "@" === n6[1] ? q : G }), e6.removeAttribute(t4);
|
|
62483
62425
|
} else
|
|
62484
|
-
|
|
62426
|
+
t4.startsWith(v) && (r5.push({ type: 6, index: h4 }), e6.removeAttribute(t4));
|
|
62485
62427
|
if (M.test(e6.tagName)) {
|
|
62486
|
-
const
|
|
62428
|
+
const t4 = e6.textContent.split(v), i5 = t4.length - 1;
|
|
62487
62429
|
if (i5 > 0) {
|
|
62488
62430
|
e6.textContent = c3 ? c3.emptyScript : "";
|
|
62489
62431
|
for (let s3 = 0; s3 < i5; s3++)
|
|
62490
|
-
e6.append(
|
|
62491
|
-
e6.append(
|
|
62432
|
+
e6.append(t4[s3], lt()), I.nextNode(), r5.push({ type: 2, index: ++h4 });
|
|
62433
|
+
e6.append(t4[i5], lt());
|
|
62492
62434
|
}
|
|
62493
62435
|
}
|
|
62494
62436
|
} else if (8 === e6.nodeType)
|
|
62495
62437
|
if (e6.data === m)
|
|
62496
62438
|
r5.push({ type: 2, index: h4 });
|
|
62497
62439
|
else {
|
|
62498
|
-
let
|
|
62499
|
-
for (; -1 !== (
|
|
62500
|
-
r5.push({ type: 7, index: h4 }),
|
|
62440
|
+
let t4 = -1;
|
|
62441
|
+
for (; -1 !== (t4 = e6.data.indexOf(v, t4 + 1)); )
|
|
62442
|
+
r5.push({ type: 7, index: h4 }), t4 += v.length - 1;
|
|
62501
62443
|
}
|
|
62502
62444
|
h4++;
|
|
62503
62445
|
}
|
|
62504
62446
|
}
|
|
62505
|
-
static createElement(
|
|
62447
|
+
static createElement(t3, i4) {
|
|
62506
62448
|
const s2 = w.createElement("template");
|
|
62507
|
-
return s2.innerHTML =
|
|
62449
|
+
return s2.innerHTML = t3, s2;
|
|
62508
62450
|
}
|
|
62509
62451
|
};
|
|
62510
|
-
function z(
|
|
62452
|
+
function z(t3, i4, s2 = t3, e6) {
|
|
62511
62453
|
if (i4 === R)
|
|
62512
62454
|
return i4;
|
|
62513
62455
|
let h4 = void 0 !== e6 ? s2.o?.[e6] : s2.l;
|
|
62514
62456
|
const o4 = st(i4) ? void 0 : i4._$litDirective$;
|
|
62515
|
-
return h4?.constructor !== o4 && (h4?._$AO?.(false), void 0 === o4 ? h4 = void 0 : (h4 = new o4(
|
|
62457
|
+
return h4?.constructor !== o4 && (h4?._$AO?.(false), void 0 === o4 ? h4 = void 0 : (h4 = new o4(t3), h4._$AT(t3, s2, e6)), void 0 !== e6 ? (s2.o ??= [])[e6] = h4 : s2.l = h4), void 0 !== h4 && (i4 = z(t3, h4._$AS(t3, i4.values), h4, e6)), i4;
|
|
62516
62458
|
}
|
|
62517
62459
|
var F = class {
|
|
62518
|
-
constructor(
|
|
62519
|
-
this._$AV = [], this._$AN = void 0, this._$AD =
|
|
62460
|
+
constructor(t3, i4) {
|
|
62461
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t3, this._$AM = i4;
|
|
62520
62462
|
}
|
|
62521
62463
|
get parentNode() {
|
|
62522
62464
|
return this._$AM.parentNode;
|
|
@@ -62524,36 +62466,36 @@ var F = class {
|
|
|
62524
62466
|
get _$AU() {
|
|
62525
62467
|
return this._$AM._$AU;
|
|
62526
62468
|
}
|
|
62527
|
-
u(
|
|
62528
|
-
const { el: { content: i4 }, parts: s2 } = this._$AD, e6 = (
|
|
62469
|
+
u(t3) {
|
|
62470
|
+
const { el: { content: i4 }, parts: s2 } = this._$AD, e6 = (t3?.creationScope ?? w).importNode(i4, true);
|
|
62529
62471
|
I.currentNode = e6;
|
|
62530
62472
|
let h4 = I.nextNode(), o4 = 0, n5 = 0, r5 = s2[0];
|
|
62531
62473
|
for (; void 0 !== r5; ) {
|
|
62532
62474
|
if (o4 === r5.index) {
|
|
62533
62475
|
let i5;
|
|
62534
|
-
2 === r5.type ? i5 = new et(h4, h4.nextSibling, this,
|
|
62476
|
+
2 === r5.type ? i5 = new et(h4, h4.nextSibling, this, t3) : 1 === r5.type ? i5 = new r5.ctor(h4, r5.name, r5.strings, this, t3) : 6 === r5.type && (i5 = new K(h4, this, t3)), this._$AV.push(i5), r5 = s2[++n5];
|
|
62535
62477
|
}
|
|
62536
62478
|
o4 !== r5?.index && (h4 = I.nextNode(), o4++);
|
|
62537
62479
|
}
|
|
62538
62480
|
return I.currentNode = w, e6;
|
|
62539
62481
|
}
|
|
62540
|
-
p(
|
|
62482
|
+
p(t3) {
|
|
62541
62483
|
let i4 = 0;
|
|
62542
62484
|
for (const s2 of this._$AV)
|
|
62543
|
-
void 0 !== s2 && (void 0 !== s2.strings ? (s2._$AI(
|
|
62485
|
+
void 0 !== s2 && (void 0 !== s2.strings ? (s2._$AI(t3, s2, i4), i4 += s2.strings.length - 2) : s2._$AI(t3[i4])), i4++;
|
|
62544
62486
|
}
|
|
62545
62487
|
};
|
|
62546
62488
|
var et = class _et {
|
|
62547
62489
|
get _$AU() {
|
|
62548
62490
|
return this._$AM?._$AU ?? this.v;
|
|
62549
62491
|
}
|
|
62550
|
-
constructor(
|
|
62551
|
-
this.type = 2, this._$AH = D, this._$AN = void 0, this._$AA =
|
|
62492
|
+
constructor(t3, i4, s2, e6) {
|
|
62493
|
+
this.type = 2, this._$AH = D, this._$AN = void 0, this._$AA = t3, this._$AB = i4, this._$AM = s2, this.options = e6, this.v = e6?.isConnected ?? true;
|
|
62552
62494
|
}
|
|
62553
62495
|
get parentNode() {
|
|
62554
|
-
let
|
|
62496
|
+
let t3 = this._$AA.parentNode;
|
|
62555
62497
|
const i4 = this._$AM;
|
|
62556
|
-
return void 0 !== i4 && 11 ===
|
|
62498
|
+
return void 0 !== i4 && 11 === t3?.nodeType && (t3 = i4.parentNode), t3;
|
|
62557
62499
|
}
|
|
62558
62500
|
get startNode() {
|
|
62559
62501
|
return this._$AA;
|
|
@@ -62561,47 +62503,47 @@ var et = class _et {
|
|
|
62561
62503
|
get endNode() {
|
|
62562
62504
|
return this._$AB;
|
|
62563
62505
|
}
|
|
62564
|
-
_$AI(
|
|
62565
|
-
|
|
62506
|
+
_$AI(t3, i4 = this) {
|
|
62507
|
+
t3 = z(this, t3, i4), st(t3) ? t3 === D || null == t3 || "" === t3 ? (this._$AH !== D && this._$AR(), this._$AH = D) : t3 !== this._$AH && t3 !== R && this._(t3) : void 0 !== t3._$litType$ ? this.$(t3) : void 0 !== t3.nodeType ? this.T(t3) : $(t3) ? this.k(t3) : this._(t3);
|
|
62566
62508
|
}
|
|
62567
|
-
O(
|
|
62568
|
-
return this._$AA.parentNode.insertBefore(
|
|
62509
|
+
O(t3) {
|
|
62510
|
+
return this._$AA.parentNode.insertBefore(t3, this._$AB);
|
|
62569
62511
|
}
|
|
62570
|
-
T(
|
|
62571
|
-
this._$AH !==
|
|
62512
|
+
T(t3) {
|
|
62513
|
+
this._$AH !== t3 && (this._$AR(), this._$AH = this.O(t3));
|
|
62572
62514
|
}
|
|
62573
|
-
_(
|
|
62574
|
-
this._$AH !== D && st(this._$AH) ? this._$AA.nextSibling.data =
|
|
62515
|
+
_(t3) {
|
|
62516
|
+
this._$AH !== D && st(this._$AH) ? this._$AA.nextSibling.data = t3 : this.T(w.createTextNode(t3)), this._$AH = t3;
|
|
62575
62517
|
}
|
|
62576
|
-
$(
|
|
62577
|
-
const { values: i4, _$litType$: s2 } =
|
|
62518
|
+
$(t3) {
|
|
62519
|
+
const { values: i4, _$litType$: s2 } = t3, e6 = "number" == typeof s2 ? this._$AC(t3) : (void 0 === s2.el && (s2.el = B.createElement(N(s2.h, s2.h[0]), this.options)), s2);
|
|
62578
62520
|
if (this._$AH?._$AD === e6)
|
|
62579
62521
|
this._$AH.p(i4);
|
|
62580
62522
|
else {
|
|
62581
|
-
const
|
|
62582
|
-
|
|
62523
|
+
const t4 = new F(e6, this), s3 = t4.u(this.options);
|
|
62524
|
+
t4.p(i4), this.T(s3), this._$AH = t4;
|
|
62583
62525
|
}
|
|
62584
62526
|
}
|
|
62585
|
-
_$AC(
|
|
62586
|
-
let i4 = V.get(
|
|
62587
|
-
return void 0 === i4 && V.set(
|
|
62527
|
+
_$AC(t3) {
|
|
62528
|
+
let i4 = V.get(t3.strings);
|
|
62529
|
+
return void 0 === i4 && V.set(t3.strings, i4 = new B(t3)), i4;
|
|
62588
62530
|
}
|
|
62589
|
-
k(
|
|
62531
|
+
k(t3) {
|
|
62590
62532
|
g(this._$AH) || (this._$AH = [], this._$AR());
|
|
62591
62533
|
const i4 = this._$AH;
|
|
62592
62534
|
let s2, e6 = 0;
|
|
62593
|
-
for (const h4 of
|
|
62535
|
+
for (const h4 of t3)
|
|
62594
62536
|
e6 === i4.length ? i4.push(s2 = new _et(this.O(lt()), this.O(lt()), this, this.options)) : s2 = i4[e6], s2._$AI(h4), e6++;
|
|
62595
62537
|
e6 < i4.length && (this._$AR(s2 && s2._$AB.nextSibling, e6), i4.length = e6);
|
|
62596
62538
|
}
|
|
62597
|
-
_$AR(
|
|
62598
|
-
for (this._$AP?.(false, true, i4);
|
|
62599
|
-
const i5 =
|
|
62600
|
-
|
|
62539
|
+
_$AR(t3 = this._$AA.nextSibling, i4) {
|
|
62540
|
+
for (this._$AP?.(false, true, i4); t3 && t3 !== this._$AB; ) {
|
|
62541
|
+
const i5 = t3.nextSibling;
|
|
62542
|
+
t3.remove(), t3 = i5;
|
|
62601
62543
|
}
|
|
62602
62544
|
}
|
|
62603
|
-
setConnected(
|
|
62604
|
-
void 0 === this._$AM && (this.v =
|
|
62545
|
+
setConnected(t3) {
|
|
62546
|
+
void 0 === this._$AM && (this.v = t3, this._$AP?.(t3));
|
|
62605
62547
|
}
|
|
62606
62548
|
};
|
|
62607
62549
|
var G = class {
|
|
@@ -62611,77 +62553,77 @@ var G = class {
|
|
|
62611
62553
|
get _$AU() {
|
|
62612
62554
|
return this._$AM._$AU;
|
|
62613
62555
|
}
|
|
62614
|
-
constructor(
|
|
62615
|
-
this.type = 1, this._$AH = D, this._$AN = void 0, this.element =
|
|
62556
|
+
constructor(t3, i4, s2, e6, h4) {
|
|
62557
|
+
this.type = 1, this._$AH = D, this._$AN = void 0, this.element = t3, this.name = i4, this._$AM = e6, this.options = h4, s2.length > 2 || "" !== s2[0] || "" !== s2[1] ? (this._$AH = Array(s2.length - 1).fill(new String()), this.strings = s2) : this._$AH = D;
|
|
62616
62558
|
}
|
|
62617
|
-
_$AI(
|
|
62559
|
+
_$AI(t3, i4 = this, s2, e6) {
|
|
62618
62560
|
const h4 = this.strings;
|
|
62619
62561
|
let o4 = false;
|
|
62620
62562
|
if (void 0 === h4)
|
|
62621
|
-
|
|
62563
|
+
t3 = z(this, t3, i4, 0), o4 = !st(t3) || t3 !== this._$AH && t3 !== R, o4 && (this._$AH = t3);
|
|
62622
62564
|
else {
|
|
62623
|
-
const e7 =
|
|
62565
|
+
const e7 = t3;
|
|
62624
62566
|
let n5, r5;
|
|
62625
|
-
for (
|
|
62626
|
-
r5 = z(this, e7[s2 + n5], i4, n5), r5 === R && (r5 = this._$AH[n5]), o4 ||= !st(r5) || r5 !== this._$AH[n5], r5 === D ?
|
|
62567
|
+
for (t3 = h4[0], n5 = 0; n5 < h4.length - 1; n5++)
|
|
62568
|
+
r5 = z(this, e7[s2 + n5], i4, n5), r5 === R && (r5 = this._$AH[n5]), o4 ||= !st(r5) || r5 !== this._$AH[n5], r5 === D ? t3 = D : t3 !== D && (t3 += (r5 ?? "") + h4[n5 + 1]), this._$AH[n5] = r5;
|
|
62627
62569
|
}
|
|
62628
|
-
o4 && !e6 && this.j(
|
|
62570
|
+
o4 && !e6 && this.j(t3);
|
|
62629
62571
|
}
|
|
62630
|
-
j(
|
|
62631
|
-
|
|
62572
|
+
j(t3) {
|
|
62573
|
+
t3 === D ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t3 ?? "");
|
|
62632
62574
|
}
|
|
62633
62575
|
};
|
|
62634
62576
|
var Y = class extends G {
|
|
62635
62577
|
constructor() {
|
|
62636
62578
|
super(...arguments), this.type = 3;
|
|
62637
62579
|
}
|
|
62638
|
-
j(
|
|
62639
|
-
this.element[this.name] =
|
|
62580
|
+
j(t3) {
|
|
62581
|
+
this.element[this.name] = t3 === D ? void 0 : t3;
|
|
62640
62582
|
}
|
|
62641
62583
|
};
|
|
62642
62584
|
var Z = class extends G {
|
|
62643
62585
|
constructor() {
|
|
62644
62586
|
super(...arguments), this.type = 4;
|
|
62645
62587
|
}
|
|
62646
|
-
j(
|
|
62647
|
-
this.element.toggleAttribute(this.name, !!
|
|
62588
|
+
j(t3) {
|
|
62589
|
+
this.element.toggleAttribute(this.name, !!t3 && t3 !== D);
|
|
62648
62590
|
}
|
|
62649
62591
|
};
|
|
62650
62592
|
var q = class extends G {
|
|
62651
|
-
constructor(
|
|
62652
|
-
super(
|
|
62593
|
+
constructor(t3, i4, s2, e6, h4) {
|
|
62594
|
+
super(t3, i4, s2, e6, h4), this.type = 5;
|
|
62653
62595
|
}
|
|
62654
|
-
_$AI(
|
|
62655
|
-
if ((
|
|
62596
|
+
_$AI(t3, i4 = this) {
|
|
62597
|
+
if ((t3 = z(this, t3, i4, 0) ?? D) === R)
|
|
62656
62598
|
return;
|
|
62657
|
-
const s2 = this._$AH, e6 =
|
|
62658
|
-
e6 && this.element.removeEventListener(this.name, this, s2), h4 && this.element.addEventListener(this.name, this,
|
|
62599
|
+
const s2 = this._$AH, e6 = t3 === D && s2 !== D || t3.capture !== s2.capture || t3.once !== s2.once || t3.passive !== s2.passive, h4 = t3 !== D && (s2 === D || e6);
|
|
62600
|
+
e6 && this.element.removeEventListener(this.name, this, s2), h4 && this.element.addEventListener(this.name, this, t3), this._$AH = t3;
|
|
62659
62601
|
}
|
|
62660
|
-
handleEvent(
|
|
62661
|
-
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element,
|
|
62602
|
+
handleEvent(t3) {
|
|
62603
|
+
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t3) : this._$AH.handleEvent(t3);
|
|
62662
62604
|
}
|
|
62663
62605
|
};
|
|
62664
62606
|
var K = class {
|
|
62665
|
-
constructor(
|
|
62666
|
-
this.element =
|
|
62607
|
+
constructor(t3, i4, s2) {
|
|
62608
|
+
this.element = t3, this.type = 6, this._$AN = void 0, this._$AM = i4, this.options = s2;
|
|
62667
62609
|
}
|
|
62668
62610
|
get _$AU() {
|
|
62669
62611
|
return this._$AM._$AU;
|
|
62670
62612
|
}
|
|
62671
|
-
_$AI(
|
|
62672
|
-
z(this,
|
|
62613
|
+
_$AI(t3) {
|
|
62614
|
+
z(this, t3);
|
|
62673
62615
|
}
|
|
62674
62616
|
};
|
|
62675
|
-
var Re =
|
|
62676
|
-
Re?.(B, et), (
|
|
62677
|
-
var Q = (
|
|
62617
|
+
var Re = n3.litHtmlPolyfillSupport;
|
|
62618
|
+
Re?.(B, et), (n3.litHtmlVersions ??= []).push("3.2.0");
|
|
62619
|
+
var Q = (t3, i4, s2) => {
|
|
62678
62620
|
const e6 = s2?.renderBefore ?? i4;
|
|
62679
62621
|
let h4 = e6._$litPart$;
|
|
62680
62622
|
if (void 0 === h4) {
|
|
62681
|
-
const
|
|
62682
|
-
e6._$litPart$ = h4 = new et(i4.insertBefore(lt(),
|
|
62623
|
+
const t4 = s2?.renderBefore ?? null;
|
|
62624
|
+
e6._$litPart$ = h4 = new et(i4.insertBefore(lt(), t4), t4, void 0, s2 ?? {});
|
|
62683
62625
|
}
|
|
62684
|
-
return h4._$AI(
|
|
62626
|
+
return h4._$AI(t3), h4;
|
|
62685
62627
|
};
|
|
62686
62628
|
|
|
62687
62629
|
// node_modules/lit-element/lit-element.js
|
|
@@ -62690,12 +62632,12 @@ var h3 = class extends b {
|
|
|
62690
62632
|
super(...arguments), this.renderOptions = { host: this }, this.o = void 0;
|
|
62691
62633
|
}
|
|
62692
62634
|
createRenderRoot() {
|
|
62693
|
-
const
|
|
62694
|
-
return this.renderOptions.renderBefore ??=
|
|
62635
|
+
const t3 = super.createRenderRoot();
|
|
62636
|
+
return this.renderOptions.renderBefore ??= t3.firstChild, t3;
|
|
62695
62637
|
}
|
|
62696
|
-
update(
|
|
62638
|
+
update(t3) {
|
|
62697
62639
|
const e6 = this.render();
|
|
62698
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(
|
|
62640
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t3), this.o = Q(e6, this.renderRoot, this.renderOptions);
|
|
62699
62641
|
}
|
|
62700
62642
|
connectedCallback() {
|
|
62701
62643
|
super.connectedCallback(), this.o?.setConnected(true);
|
|
@@ -62712,22 +62654,84 @@ var f3 = globalThis.litElementPolyfillSupport;
|
|
|
62712
62654
|
f3?.({ LitElement: h3 });
|
|
62713
62655
|
(globalThis.litElementVersions ??= []).push("4.1.0");
|
|
62714
62656
|
|
|
62657
|
+
// node_modules/@lit/reactive-element/decorators/property.js
|
|
62658
|
+
var o3 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
|
|
62659
|
+
var r3 = (t3 = o3, e6, r5) => {
|
|
62660
|
+
const { kind: n5, metadata: i4 } = r5;
|
|
62661
|
+
let s2 = globalThis.litPropertyMetadata.get(i4);
|
|
62662
|
+
if (void 0 === s2 && globalThis.litPropertyMetadata.set(i4, s2 = /* @__PURE__ */ new Map()), s2.set(r5.name, t3), "accessor" === n5) {
|
|
62663
|
+
const { name: o4 } = r5;
|
|
62664
|
+
return { set(r6) {
|
|
62665
|
+
const n6 = e6.get.call(this);
|
|
62666
|
+
e6.set.call(this, r6), this.requestUpdate(o4, n6, t3);
|
|
62667
|
+
}, init(e7) {
|
|
62668
|
+
return void 0 !== e7 && this.P(o4, void 0, t3), e7;
|
|
62669
|
+
} };
|
|
62670
|
+
}
|
|
62671
|
+
if ("setter" === n5) {
|
|
62672
|
+
const { name: o4 } = r5;
|
|
62673
|
+
return function(r6) {
|
|
62674
|
+
const n6 = this[o4];
|
|
62675
|
+
e6.call(this, r6), this.requestUpdate(o4, n6, t3);
|
|
62676
|
+
};
|
|
62677
|
+
}
|
|
62678
|
+
throw Error("Unsupported decorator location: " + n5);
|
|
62679
|
+
};
|
|
62680
|
+
function n4(t3) {
|
|
62681
|
+
return (e6, o4) => "object" == typeof o4 ? r3(t3, e6, o4) : ((t4, e7, o5) => {
|
|
62682
|
+
const r5 = e7.hasOwnProperty(o5);
|
|
62683
|
+
return e7.constructor.createProperty(o5, r5 ? { ...t4, wrapped: true } : t4), r5 ? Object.getOwnPropertyDescriptor(e7, o5) : void 0;
|
|
62684
|
+
})(t3, e6, o4);
|
|
62685
|
+
}
|
|
62686
|
+
|
|
62687
|
+
// node_modules/@lit/reactive-element/decorators/state.js
|
|
62688
|
+
function r4(r5) {
|
|
62689
|
+
return n4({ ...r5, state: true, attribute: false });
|
|
62690
|
+
}
|
|
62691
|
+
|
|
62692
|
+
// node_modules/@lit/reactive-element/decorators/base.js
|
|
62693
|
+
var e3 = (e6, t3, c4) => (c4.configurable = true, c4.enumerable = true, Reflect.decorate && "object" != typeof t3 && Object.defineProperty(e6, t3, c4), c4);
|
|
62694
|
+
|
|
62695
|
+
// node_modules/@lit/reactive-element/decorators/query.js
|
|
62696
|
+
function e4(e6, r5) {
|
|
62697
|
+
return (n5, s2, i4) => {
|
|
62698
|
+
const o4 = (t3) => t3.renderRoot?.querySelector(e6) ?? null;
|
|
62699
|
+
if (r5) {
|
|
62700
|
+
const { get: e7, set: r6 } = "object" == typeof s2 ? n5 : i4 ?? (() => {
|
|
62701
|
+
const t3 = Symbol();
|
|
62702
|
+
return { get() {
|
|
62703
|
+
return this[t3];
|
|
62704
|
+
}, set(e8) {
|
|
62705
|
+
this[t3] = e8;
|
|
62706
|
+
} };
|
|
62707
|
+
})();
|
|
62708
|
+
return e3(n5, s2, { get() {
|
|
62709
|
+
let t3 = e7.call(this);
|
|
62710
|
+
return void 0 === t3 && (t3 = o4(this), (null !== t3 || this.hasUpdated) && r6.call(this, t3)), t3;
|
|
62711
|
+
} });
|
|
62712
|
+
}
|
|
62713
|
+
return e3(n5, s2, { get() {
|
|
62714
|
+
return o4(this);
|
|
62715
|
+
} });
|
|
62716
|
+
};
|
|
62717
|
+
}
|
|
62718
|
+
|
|
62715
62719
|
// node_modules/lit-html/directive.js
|
|
62716
|
-
var
|
|
62717
|
-
var e5 = (
|
|
62720
|
+
var t2 = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 };
|
|
62721
|
+
var e5 = (t3) => (...e6) => ({ _$litDirective$: t3, values: e6 });
|
|
62718
62722
|
var i3 = class {
|
|
62719
|
-
constructor(
|
|
62723
|
+
constructor(t3) {
|
|
62720
62724
|
}
|
|
62721
62725
|
get _$AU() {
|
|
62722
62726
|
return this._$AM._$AU;
|
|
62723
62727
|
}
|
|
62724
|
-
_$AT(
|
|
62725
|
-
this.t =
|
|
62728
|
+
_$AT(t3, e6, i4) {
|
|
62729
|
+
this.t = t3, this._$AM = e6, this.i = i4;
|
|
62726
62730
|
}
|
|
62727
|
-
_$AS(
|
|
62728
|
-
return this.update(
|
|
62731
|
+
_$AS(t3, e6) {
|
|
62732
|
+
return this.update(t3, e6);
|
|
62729
62733
|
}
|
|
62730
|
-
update(
|
|
62734
|
+
update(t3, e6) {
|
|
62731
62735
|
return this.render(...e6);
|
|
62732
62736
|
}
|
|
62733
62737
|
};
|
|
@@ -62737,27 +62741,27 @@ var ee = "important";
|
|
|
62737
62741
|
var ie = " !" + ee;
|
|
62738
62742
|
var se = e5(class extends i3 {
|
|
62739
62743
|
constructor(e6) {
|
|
62740
|
-
if (super(e6), e6.type !==
|
|
62744
|
+
if (super(e6), e6.type !== t2.ATTRIBUTE || "style" !== e6.name || e6.strings?.length > 2)
|
|
62741
62745
|
throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
62742
62746
|
}
|
|
62743
|
-
render(
|
|
62744
|
-
return Object.keys(
|
|
62745
|
-
const s2 =
|
|
62747
|
+
render(t3) {
|
|
62748
|
+
return Object.keys(t3).reduce((e6, r5) => {
|
|
62749
|
+
const s2 = t3[r5];
|
|
62746
62750
|
return null == s2 ? e6 : e6 + `${r5 = r5.includes("-") ? r5 : r5.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s2};`;
|
|
62747
62751
|
}, "");
|
|
62748
62752
|
}
|
|
62749
|
-
update(
|
|
62750
|
-
const { style: r5 } =
|
|
62753
|
+
update(t3, [e6]) {
|
|
62754
|
+
const { style: r5 } = t3.element;
|
|
62751
62755
|
if (void 0 === this.ft)
|
|
62752
62756
|
return this.ft = new Set(Object.keys(e6)), this.render(e6);
|
|
62753
|
-
for (const
|
|
62754
|
-
null == e6[
|
|
62755
|
-
for (const
|
|
62756
|
-
const s2 = e6[
|
|
62757
|
+
for (const t4 of this.ft)
|
|
62758
|
+
null == e6[t4] && (this.ft.delete(t4), t4.includes("-") ? r5.removeProperty(t4) : r5[t4] = null);
|
|
62759
|
+
for (const t4 in e6) {
|
|
62760
|
+
const s2 = e6[t4];
|
|
62757
62761
|
if (null != s2) {
|
|
62758
|
-
this.ft.add(
|
|
62762
|
+
this.ft.add(t4);
|
|
62759
62763
|
const e7 = "string" == typeof s2 && s2.endsWith(ie);
|
|
62760
|
-
|
|
62764
|
+
t4.includes("-") || e7 ? r5.setProperty(t4, e7 ? s2.slice(0, -11) : s2, e7 ? ee : "") : r5[t4] = s2;
|
|
62761
62765
|
}
|
|
62762
62766
|
}
|
|
62763
62767
|
return R;
|
|
@@ -62765,7 +62769,7 @@ var se = e5(class extends i3 {
|
|
|
62765
62769
|
});
|
|
62766
62770
|
|
|
62767
62771
|
// libs/embed-libs/embed/package.json
|
|
62768
|
-
var version = "6.1.1";
|
|
62772
|
+
var version = "6.1.2-beta.1";
|
|
62769
62773
|
|
|
62770
62774
|
// libs/embed-libs/embed/src/lib/luzmo-service.ts
|
|
62771
62775
|
var LuzmoService = class {
|
|
@@ -63606,25 +63610,25 @@ __decorateClass([
|
|
|
63606
63610
|
e4("iframe")
|
|
63607
63611
|
], LuzmoDashboard.prototype, "iframe", 2);
|
|
63608
63612
|
__decorateClass([
|
|
63609
|
-
|
|
63613
|
+
n4()
|
|
63610
63614
|
], LuzmoDashboard.prototype, "dashboardId", 2);
|
|
63611
63615
|
__decorateClass([
|
|
63612
|
-
|
|
63616
|
+
n4()
|
|
63613
63617
|
], LuzmoDashboard.prototype, "dashboardSlug", 2);
|
|
63614
63618
|
__decorateClass([
|
|
63615
|
-
|
|
63619
|
+
n4()
|
|
63616
63620
|
], LuzmoDashboard.prototype, "itemId", 2);
|
|
63617
63621
|
__decorateClass([
|
|
63618
|
-
|
|
63622
|
+
n4()
|
|
63619
63623
|
], LuzmoDashboard.prototype, "language", 2);
|
|
63620
63624
|
__decorateClass([
|
|
63621
|
-
|
|
63625
|
+
n4()
|
|
63622
63626
|
], LuzmoDashboard.prototype, "qeVersion", 2);
|
|
63623
63627
|
__decorateClass([
|
|
63624
|
-
|
|
63628
|
+
n4()
|
|
63625
63629
|
], LuzmoDashboard.prototype, "screenMode", 2);
|
|
63626
63630
|
__decorateClass([
|
|
63627
|
-
|
|
63631
|
+
n4({
|
|
63628
63632
|
converter: {
|
|
63629
63633
|
fromAttribute: (value) => value === "true",
|
|
63630
63634
|
toAttribute: String
|
|
@@ -63632,46 +63636,46 @@ __decorateClass([
|
|
|
63632
63636
|
})
|
|
63633
63637
|
], LuzmoDashboard.prototype, "switchScreenModeOnResize", 2);
|
|
63634
63638
|
__decorateClass([
|
|
63635
|
-
|
|
63639
|
+
n4()
|
|
63636
63640
|
], LuzmoDashboard.prototype, "editMode", 2);
|
|
63637
63641
|
__decorateClass([
|
|
63638
|
-
|
|
63642
|
+
n4()
|
|
63639
63643
|
], LuzmoDashboard.prototype, "mainColor", 2);
|
|
63640
63644
|
__decorateClass([
|
|
63641
|
-
|
|
63645
|
+
n4()
|
|
63642
63646
|
], LuzmoDashboard.prototype, "accentColor", 2);
|
|
63643
63647
|
__decorateClass([
|
|
63644
|
-
|
|
63648
|
+
n4()
|
|
63645
63649
|
], LuzmoDashboard.prototype, "authToken", 2);
|
|
63646
63650
|
__decorateClass([
|
|
63647
|
-
|
|
63651
|
+
n4()
|
|
63648
63652
|
], LuzmoDashboard.prototype, "authKey", 2);
|
|
63649
63653
|
__decorateClass([
|
|
63650
|
-
|
|
63654
|
+
n4()
|
|
63651
63655
|
], LuzmoDashboard.prototype, "loaderBackground", 2);
|
|
63652
63656
|
__decorateClass([
|
|
63653
|
-
|
|
63657
|
+
n4()
|
|
63654
63658
|
], LuzmoDashboard.prototype, "loaderFontColor", 2);
|
|
63655
63659
|
__decorateClass([
|
|
63656
|
-
|
|
63660
|
+
n4()
|
|
63657
63661
|
], LuzmoDashboard.prototype, "loaderSpinnerColor", 2);
|
|
63658
63662
|
__decorateClass([
|
|
63659
|
-
|
|
63663
|
+
n4()
|
|
63660
63664
|
], LuzmoDashboard.prototype, "loaderSpinnerBackground", 2);
|
|
63661
63665
|
__decorateClass([
|
|
63662
|
-
|
|
63666
|
+
n4()
|
|
63663
63667
|
], LuzmoDashboard.prototype, "appServer", 2);
|
|
63664
63668
|
__decorateClass([
|
|
63665
|
-
|
|
63669
|
+
n4()
|
|
63666
63670
|
], LuzmoDashboard.prototype, "timezoneId", 2);
|
|
63667
63671
|
__decorateClass([
|
|
63668
|
-
|
|
63672
|
+
n4()
|
|
63669
63673
|
], LuzmoDashboard.prototype, "apiHost", 2);
|
|
63670
63674
|
__decorateClass([
|
|
63671
|
-
|
|
63675
|
+
n4({ type: Object })
|
|
63672
63676
|
], LuzmoDashboard.prototype, "itemDimensions", 2);
|
|
63673
63677
|
__decorateClass([
|
|
63674
|
-
|
|
63678
|
+
n4({
|
|
63675
63679
|
converter: {
|
|
63676
63680
|
fromAttribute: (value) => value === "true",
|
|
63677
63681
|
toAttribute: String
|
|
@@ -63679,70 +63683,70 @@ __decorateClass([
|
|
|
63679
63683
|
})
|
|
63680
63684
|
], LuzmoDashboard.prototype, "experimental", 2);
|
|
63681
63685
|
__decorateClass([
|
|
63682
|
-
|
|
63686
|
+
n4({ attribute: false })
|
|
63683
63687
|
], LuzmoDashboard.prototype, "_containerId", 2);
|
|
63684
63688
|
__decorateClass([
|
|
63685
|
-
|
|
63689
|
+
n4({ attribute: false })
|
|
63686
63690
|
], LuzmoDashboard.prototype, "_iframeId", 2);
|
|
63687
63691
|
__decorateClass([
|
|
63688
|
-
|
|
63692
|
+
n4({ attribute: false })
|
|
63689
63693
|
], LuzmoDashboard.prototype, "params", 2);
|
|
63690
63694
|
__decorateClass([
|
|
63691
|
-
|
|
63695
|
+
n4({ attribute: false })
|
|
63692
63696
|
], LuzmoDashboard.prototype, "_iframeUrl", 2);
|
|
63693
63697
|
__decorateClass([
|
|
63694
|
-
|
|
63698
|
+
n4({ attribute: false })
|
|
63695
63699
|
], LuzmoDashboard.prototype, "iframeLoaded", 2);
|
|
63696
63700
|
__decorateClass([
|
|
63697
|
-
|
|
63701
|
+
n4({ attribute: false })
|
|
63698
63702
|
], LuzmoDashboard.prototype, "promises", 2);
|
|
63699
63703
|
__decorateClass([
|
|
63700
|
-
|
|
63704
|
+
n4({ attribute: false })
|
|
63701
63705
|
], LuzmoDashboard.prototype, "iframeStyle", 2);
|
|
63702
63706
|
__decorateClass([
|
|
63703
|
-
|
|
63707
|
+
n4({ attribute: false })
|
|
63704
63708
|
], LuzmoDashboard.prototype, "_containerStyle", 2);
|
|
63705
63709
|
__decorateClass([
|
|
63706
|
-
|
|
63710
|
+
n4({ attribute: false })
|
|
63707
63711
|
], LuzmoDashboard.prototype, "_loaderStyle", 2);
|
|
63708
63712
|
__decorateClass([
|
|
63709
|
-
|
|
63713
|
+
n4({ attribute: false })
|
|
63710
63714
|
], LuzmoDashboard.prototype, "_lcStyle", 2);
|
|
63711
63715
|
__decorateClass([
|
|
63712
|
-
|
|
63716
|
+
n4({ attribute: false })
|
|
63713
63717
|
], LuzmoDashboard.prototype, "_loadingCircleStyle", 2);
|
|
63714
63718
|
__decorateClass([
|
|
63715
|
-
|
|
63719
|
+
n4({ attribute: false })
|
|
63716
63720
|
], LuzmoDashboard.prototype, "_containerLoaderStyle", 2);
|
|
63717
63721
|
__decorateClass([
|
|
63718
|
-
|
|
63722
|
+
n4({ attribute: false })
|
|
63719
63723
|
], LuzmoDashboard.prototype, "_loaderMsg", 2);
|
|
63720
63724
|
__decorateClass([
|
|
63721
|
-
|
|
63725
|
+
n4({ attribute: false })
|
|
63722
63726
|
], LuzmoDashboard.prototype, "containerWidth", 2);
|
|
63723
63727
|
__decorateClass([
|
|
63724
|
-
|
|
63728
|
+
n4({ attribute: false })
|
|
63725
63729
|
], LuzmoDashboard.prototype, "dimensions", 2);
|
|
63726
63730
|
__decorateClass([
|
|
63727
|
-
|
|
63731
|
+
n4({ attribute: false })
|
|
63728
63732
|
], LuzmoDashboard.prototype, "currentScreenMode", 2);
|
|
63729
63733
|
__decorateClass([
|
|
63730
|
-
|
|
63734
|
+
n4({ attribute: false })
|
|
63731
63735
|
], LuzmoDashboard.prototype, "_itemEmbedding", 2);
|
|
63732
63736
|
__decorateClass([
|
|
63733
|
-
|
|
63737
|
+
n4({ attribute: false })
|
|
63734
63738
|
], LuzmoDashboard.prototype, "browserError", 2);
|
|
63735
63739
|
__decorateClass([
|
|
63736
|
-
|
|
63740
|
+
n4({ attribute: false })
|
|
63737
63741
|
], LuzmoDashboard.prototype, "browserErrorMsg", 2);
|
|
63738
63742
|
__decorateClass([
|
|
63739
|
-
|
|
63743
|
+
n4({ attribute: false })
|
|
63740
63744
|
], LuzmoDashboard.prototype, "dashboardError", 2);
|
|
63741
63745
|
__decorateClass([
|
|
63742
|
-
|
|
63746
|
+
n4({ attribute: false })
|
|
63743
63747
|
], LuzmoDashboard.prototype, "browserNotSupported", 2);
|
|
63744
63748
|
__decorateClass([
|
|
63745
|
-
|
|
63749
|
+
n4()
|
|
63746
63750
|
], LuzmoDashboard.prototype, "libVersion", 2);
|
|
63747
63751
|
__decorateClass([
|
|
63748
63752
|
r4()
|
|
@@ -63763,9 +63767,9 @@ __decorateClass([
|
|
|
63763
63767
|
// libs/embed-libs/embed/src/lib/dashboard-component/dashboard-component.ts
|
|
63764
63768
|
var LuzmoEmbedDashboard = class extends LuzmoDashboard {
|
|
63765
63769
|
};
|
|
63766
|
-
|
|
63767
|
-
|
|
63768
|
-
|
|
63770
|
+
if (!customElements.get("luzmo-embed-dashboard")) {
|
|
63771
|
+
customElements.define("luzmo-embed-dashboard", LuzmoEmbedDashboard);
|
|
63772
|
+
}
|
|
63769
63773
|
|
|
63770
63774
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item.base.ts
|
|
63771
63775
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
@@ -63938,34 +63942,34 @@ var LuzmoBaseVizItem = class extends h3 {
|
|
|
63938
63942
|
}
|
|
63939
63943
|
};
|
|
63940
63944
|
__decorateClass([
|
|
63941
|
-
|
|
63945
|
+
n4()
|
|
63942
63946
|
], LuzmoBaseVizItem.prototype, "appServer", 2);
|
|
63943
63947
|
__decorateClass([
|
|
63944
|
-
|
|
63948
|
+
n4()
|
|
63945
63949
|
], LuzmoBaseVizItem.prototype, "apiHost", 2);
|
|
63946
63950
|
__decorateClass([
|
|
63947
|
-
|
|
63951
|
+
n4({ type: Array })
|
|
63948
63952
|
], LuzmoBaseVizItem.prototype, "slots", 2);
|
|
63949
63953
|
__decorateClass([
|
|
63950
|
-
|
|
63954
|
+
n4({ type: Object })
|
|
63951
63955
|
], LuzmoBaseVizItem.prototype, "options", 2);
|
|
63952
63956
|
__decorateClass([
|
|
63953
|
-
|
|
63957
|
+
n4()
|
|
63954
63958
|
], LuzmoBaseVizItem.prototype, "type", 2);
|
|
63955
63959
|
__decorateClass([
|
|
63956
|
-
|
|
63960
|
+
n4()
|
|
63957
63961
|
], LuzmoBaseVizItem.prototype, "authKey", 2);
|
|
63958
63962
|
__decorateClass([
|
|
63959
|
-
|
|
63963
|
+
n4()
|
|
63960
63964
|
], LuzmoBaseVizItem.prototype, "authToken", 2);
|
|
63961
63965
|
__decorateClass([
|
|
63962
|
-
|
|
63966
|
+
n4()
|
|
63963
63967
|
], LuzmoBaseVizItem.prototype, "version", 2);
|
|
63964
63968
|
__decorateClass([
|
|
63965
|
-
|
|
63969
|
+
n4()
|
|
63966
63970
|
], LuzmoBaseVizItem.prototype, "contextId", 2);
|
|
63967
63971
|
__decorateClass([
|
|
63968
|
-
|
|
63972
|
+
n4({
|
|
63969
63973
|
converter: (value) => {
|
|
63970
63974
|
try {
|
|
63971
63975
|
return JSON.parse(value);
|
|
@@ -63976,134 +63980,362 @@ __decorateClass([
|
|
|
63976
63980
|
})
|
|
63977
63981
|
], LuzmoBaseVizItem.prototype, "canFilter", 2);
|
|
63978
63982
|
__decorateClass([
|
|
63979
|
-
|
|
63983
|
+
n4({ type: Array })
|
|
63980
63984
|
], LuzmoBaseVizItem.prototype, "filters", 2);
|
|
63981
63985
|
__decorateClass([
|
|
63982
|
-
|
|
63986
|
+
n4()
|
|
63983
63987
|
], LuzmoBaseVizItem.prototype, "dashboardId", 2);
|
|
63984
63988
|
__decorateClass([
|
|
63985
|
-
|
|
63989
|
+
n4()
|
|
63986
63990
|
], LuzmoBaseVizItem.prototype, "itemId", 2);
|
|
63987
63991
|
__decorateClass([
|
|
63988
|
-
|
|
63992
|
+
n4({ type: Object })
|
|
63989
63993
|
], LuzmoBaseVizItem.prototype, "selectedData", 2);
|
|
63990
63994
|
__decorateClass([
|
|
63991
|
-
|
|
63995
|
+
n4()
|
|
63992
63996
|
], LuzmoBaseVizItem.prototype, "dashboardContentsVersion", 2);
|
|
63993
63997
|
__decorateClass([
|
|
63994
|
-
|
|
63998
|
+
n4()
|
|
63995
63999
|
], LuzmoBaseVizItem.prototype, "libVersion", 2);
|
|
63996
64000
|
|
|
63997
64001
|
// libs/embed-libs/embed/src/lib/viz-item/viz-item-component.ts
|
|
63998
64002
|
var LuzmoEmbedVizItem = class extends LuzmoBaseVizItem {
|
|
63999
64003
|
};
|
|
64000
|
-
|
|
64001
|
-
|
|
64002
|
-
|
|
64004
|
+
if (!customElements.get("luzmo-embed-viz-item")) {
|
|
64005
|
+
customElements.define("luzmo-embed-viz-item", LuzmoEmbedVizItem);
|
|
64006
|
+
}
|
|
64007
|
+
|
|
64008
|
+
// libs/embed-libs/embed/src/lib/ai-component/luzmo-ai-chat.ts
|
|
64009
|
+
var inputMap = {
|
|
64010
|
+
"aiEndpoint": "ai-endpoint",
|
|
64011
|
+
appServer: "app-server",
|
|
64012
|
+
apiHost: "api-host",
|
|
64013
|
+
options: "options",
|
|
64014
|
+
datasets: "datasets",
|
|
64015
|
+
authKey: "auth-key",
|
|
64016
|
+
authToken: "auth-token",
|
|
64017
|
+
version: "version",
|
|
64018
|
+
libVersion: "lib-version",
|
|
64019
|
+
aydHost: "ayd-host"
|
|
64020
|
+
};
|
|
64021
|
+
var LuzmoEmbedAIChatComponent = class extends h3 {
|
|
64022
|
+
constructor() {
|
|
64023
|
+
super();
|
|
64024
|
+
this.appServer = "https://app.luzmo.com";
|
|
64025
|
+
this.apiHost = "https://api.luzmo.com";
|
|
64026
|
+
this.version = version + "-wc-luzmo";
|
|
64027
|
+
this.libVersion = version + "-wc-luzmo";
|
|
64028
|
+
this.remoteEntryServer = "http://localhost:4202/";
|
|
64029
|
+
this.aydHost = "https://ayd.luzmo.com/";
|
|
64030
|
+
}
|
|
64031
|
+
static {
|
|
64032
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
64033
|
+
this.styles = i`
|
|
64034
|
+
:host {
|
|
64035
|
+
display: block;
|
|
64036
|
+
width: 100%;
|
|
64037
|
+
height: 100%;
|
|
64038
|
+
}
|
|
64039
|
+
`;
|
|
64040
|
+
}
|
|
64041
|
+
createRenderRoot() {
|
|
64042
|
+
return this;
|
|
64043
|
+
}
|
|
64044
|
+
async firstUpdated(_changedProperties) {
|
|
64045
|
+
super.firstUpdated(_changedProperties);
|
|
64046
|
+
await loadLibrary(this.appServer.startsWith("http://localhost") ? this.remoteEntryServer : this.appServer, "Component");
|
|
64047
|
+
this.createAndAppendElement();
|
|
64048
|
+
}
|
|
64049
|
+
createAndAppendElement() {
|
|
64050
|
+
if (!this.chartElement) {
|
|
64051
|
+
this.chartElement = document.createElement("luzmo-ai-chart-generator-component");
|
|
64052
|
+
this.chartElement.addEventListener("load", (payload) => this.dispatchEvent(new CustomEvent("load", payload)));
|
|
64053
|
+
this.updateVizItemProperties();
|
|
64054
|
+
this.renderRoot.append(this.chartElement);
|
|
64055
|
+
}
|
|
64056
|
+
}
|
|
64057
|
+
updateVizItemProperties() {
|
|
64058
|
+
if (this.chartElement) {
|
|
64059
|
+
for (const key in inputMap) {
|
|
64060
|
+
const value = this[key];
|
|
64061
|
+
if (value) {
|
|
64062
|
+
const attributeValue = ["appServer", "apiHost", "aydHost"].includes(key) ? removeTrailingSlash(value) : value;
|
|
64063
|
+
this.chartElement.setAttribute(
|
|
64064
|
+
inputMap[key],
|
|
64065
|
+
typeof attributeValue === "object" ? JSON.stringify(attributeValue) : attributeValue
|
|
64066
|
+
);
|
|
64067
|
+
}
|
|
64068
|
+
}
|
|
64069
|
+
}
|
|
64070
|
+
}
|
|
64071
|
+
async updated(changedProperties) {
|
|
64072
|
+
if (this.chartElement) {
|
|
64073
|
+
for (const [propertyName] of changedProperties.entries()) {
|
|
64074
|
+
const mappedAttributeName = inputMap[propertyName] ?? propertyName;
|
|
64075
|
+
const attributeValue = typeof this[propertyName] === "object" ? JSON.stringify(this[propertyName]) : this[propertyName]?.toString() ?? this[propertyName];
|
|
64076
|
+
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
64077
|
+
}
|
|
64078
|
+
} else {
|
|
64079
|
+
await loadLibrary(this.appServer.startsWith("http://localhost") ? this.remoteEntryServer : this.appServer, "Component");
|
|
64080
|
+
this.createAndAppendElement();
|
|
64081
|
+
}
|
|
64082
|
+
}
|
|
64083
|
+
render() {
|
|
64084
|
+
return ke` `;
|
|
64085
|
+
}
|
|
64086
|
+
};
|
|
64087
|
+
__decorateClass([
|
|
64088
|
+
n4()
|
|
64089
|
+
], LuzmoEmbedAIChatComponent.prototype, "appServer", 2);
|
|
64090
|
+
__decorateClass([
|
|
64091
|
+
n4()
|
|
64092
|
+
], LuzmoEmbedAIChatComponent.prototype, "apiHost", 2);
|
|
64093
|
+
__decorateClass([
|
|
64094
|
+
n4({ type: Object })
|
|
64095
|
+
], LuzmoEmbedAIChatComponent.prototype, "options", 2);
|
|
64096
|
+
__decorateClass([
|
|
64097
|
+
n4({ type: Array })
|
|
64098
|
+
], LuzmoEmbedAIChatComponent.prototype, "datasets", 2);
|
|
64099
|
+
__decorateClass([
|
|
64100
|
+
n4()
|
|
64101
|
+
], LuzmoEmbedAIChatComponent.prototype, "aiEndpoint", 2);
|
|
64102
|
+
__decorateClass([
|
|
64103
|
+
n4()
|
|
64104
|
+
], LuzmoEmbedAIChatComponent.prototype, "authKey", 2);
|
|
64105
|
+
__decorateClass([
|
|
64106
|
+
n4()
|
|
64107
|
+
], LuzmoEmbedAIChatComponent.prototype, "authToken", 2);
|
|
64108
|
+
__decorateClass([
|
|
64109
|
+
n4()
|
|
64110
|
+
], LuzmoEmbedAIChatComponent.prototype, "version", 2);
|
|
64111
|
+
__decorateClass([
|
|
64112
|
+
n4()
|
|
64113
|
+
], LuzmoEmbedAIChatComponent.prototype, "libVersion", 2);
|
|
64114
|
+
__decorateClass([
|
|
64115
|
+
n4()
|
|
64116
|
+
], LuzmoEmbedAIChatComponent.prototype, "remoteEntryServer", 2);
|
|
64117
|
+
__decorateClass([
|
|
64118
|
+
n4()
|
|
64119
|
+
], LuzmoEmbedAIChatComponent.prototype, "aydHost", 2);
|
|
64120
|
+
if (!customElements.get("luzmo-embed-ai-chat")) {
|
|
64121
|
+
customElements.define("luzmo-embed-ai-chat", LuzmoEmbedAIChatComponent);
|
|
64122
|
+
}
|
|
64123
|
+
|
|
64124
|
+
// libs/embed-libs/embed/src/lib/ai-component/luzmo-ai-answer.ts
|
|
64125
|
+
var inputMap2 = {
|
|
64126
|
+
"aiEndPoint": "ai-end-point",
|
|
64127
|
+
appServer: "app-server",
|
|
64128
|
+
apiHost: "api-host",
|
|
64129
|
+
options: "options",
|
|
64130
|
+
authKey: "auth-key",
|
|
64131
|
+
authToken: "auth-token",
|
|
64132
|
+
version: "version",
|
|
64133
|
+
libVersion: "lib-version",
|
|
64134
|
+
messages: "messages"
|
|
64135
|
+
};
|
|
64136
|
+
var LuzmoAIAnswerComponent = class extends h3 {
|
|
64137
|
+
constructor() {
|
|
64138
|
+
super();
|
|
64139
|
+
this.appServer = "https://app.luzmo.com";
|
|
64140
|
+
this.apiHost = "https://api.luzmo.com";
|
|
64141
|
+
this.version = version + "-wc-luzmo";
|
|
64142
|
+
this.libVersion = version + "-wc-luzmo";
|
|
64143
|
+
this.remoteEntryServer = "http://localhost:4202";
|
|
64144
|
+
}
|
|
64145
|
+
static {
|
|
64146
|
+
// Static styles to set host display to block, else it is not shown at all for some reason.
|
|
64147
|
+
this.styles = i`
|
|
64148
|
+
:host {
|
|
64149
|
+
display: block;
|
|
64150
|
+
width: 100%;
|
|
64151
|
+
height: 100%;
|
|
64152
|
+
}
|
|
64153
|
+
`;
|
|
64154
|
+
}
|
|
64155
|
+
createRenderRoot() {
|
|
64156
|
+
return this;
|
|
64157
|
+
}
|
|
64158
|
+
async firstUpdated(_changedProperties) {
|
|
64159
|
+
super.firstUpdated(_changedProperties);
|
|
64160
|
+
await loadLibrary(this.appServer.startsWith("http://localhost") ? this.remoteEntryServer : this.appServer, "Component");
|
|
64161
|
+
this.createAndAppendElement();
|
|
64162
|
+
}
|
|
64163
|
+
createAndAppendElement() {
|
|
64164
|
+
if (!this.chartElement) {
|
|
64165
|
+
this.chartElement = document.createElement("luzmo-ai-answer-component");
|
|
64166
|
+
this.chartElement.addEventListener("addQuestion", (payload) => this.dispatchEvent(new CustomEvent("addQuestion", payload)));
|
|
64167
|
+
this.chartElement.addEventListener("addAnswer", (payload) => this.dispatchEvent(new CustomEvent("addAnswer", payload)));
|
|
64168
|
+
this.updateVizItemProperties();
|
|
64169
|
+
this.renderRoot.append(this.chartElement);
|
|
64170
|
+
}
|
|
64171
|
+
}
|
|
64172
|
+
updateVizItemProperties() {
|
|
64173
|
+
if (this.chartElement) {
|
|
64174
|
+
for (const key in inputMap2) {
|
|
64175
|
+
const value = this[key];
|
|
64176
|
+
if (value) {
|
|
64177
|
+
const attributeValue = ["appServer", "apiHost"].includes(key) ? removeTrailingSlash(value) : value;
|
|
64178
|
+
this.chartElement.setAttribute(
|
|
64179
|
+
inputMap2[key],
|
|
64180
|
+
typeof attributeValue === "object" ? JSON.stringify(attributeValue) : attributeValue
|
|
64181
|
+
);
|
|
64182
|
+
}
|
|
64183
|
+
}
|
|
64184
|
+
}
|
|
64185
|
+
}
|
|
64186
|
+
async updated(changedProperties) {
|
|
64187
|
+
if (this.chartElement) {
|
|
64188
|
+
for (const [propertyName] of changedProperties.entries()) {
|
|
64189
|
+
const mappedAttributeName = inputMap2[propertyName] ?? propertyName;
|
|
64190
|
+
const attributeValue = typeof this[propertyName] === "object" ? JSON.stringify(this[propertyName]) : this[propertyName]?.toString() ?? this[propertyName];
|
|
64191
|
+
this.chartElement.setAttribute(mappedAttributeName, attributeValue);
|
|
64192
|
+
}
|
|
64193
|
+
} else {
|
|
64194
|
+
await loadLibrary(this.appServer.startsWith("http://localhost") ? this.remoteEntryServer : this.appServer, "Component");
|
|
64195
|
+
this.createAndAppendElement();
|
|
64196
|
+
}
|
|
64197
|
+
}
|
|
64198
|
+
render() {
|
|
64199
|
+
return ke` `;
|
|
64200
|
+
}
|
|
64201
|
+
};
|
|
64202
|
+
__decorateClass([
|
|
64203
|
+
n4()
|
|
64204
|
+
], LuzmoAIAnswerComponent.prototype, "appServer", 2);
|
|
64205
|
+
__decorateClass([
|
|
64206
|
+
n4()
|
|
64207
|
+
], LuzmoAIAnswerComponent.prototype, "apiHost", 2);
|
|
64208
|
+
__decorateClass([
|
|
64209
|
+
n4({ type: Object })
|
|
64210
|
+
], LuzmoAIAnswerComponent.prototype, "options", 2);
|
|
64211
|
+
__decorateClass([
|
|
64212
|
+
n4()
|
|
64213
|
+
], LuzmoAIAnswerComponent.prototype, "aiEndPoint", 2);
|
|
64214
|
+
__decorateClass([
|
|
64215
|
+
n4()
|
|
64216
|
+
], LuzmoAIAnswerComponent.prototype, "authKey", 2);
|
|
64217
|
+
__decorateClass([
|
|
64218
|
+
n4()
|
|
64219
|
+
], LuzmoAIAnswerComponent.prototype, "authToken", 2);
|
|
64220
|
+
__decorateClass([
|
|
64221
|
+
n4()
|
|
64222
|
+
], LuzmoAIAnswerComponent.prototype, "messages", 2);
|
|
64223
|
+
__decorateClass([
|
|
64224
|
+
n4()
|
|
64225
|
+
], LuzmoAIAnswerComponent.prototype, "version", 2);
|
|
64226
|
+
__decorateClass([
|
|
64227
|
+
n4()
|
|
64228
|
+
], LuzmoAIAnswerComponent.prototype, "libVersion", 2);
|
|
64229
|
+
__decorateClass([
|
|
64230
|
+
n4()
|
|
64231
|
+
], LuzmoAIAnswerComponent.prototype, "remoteEntryServer", 2);
|
|
64232
|
+
if (!customElements.get("luzmo-embed-ai-answer")) {
|
|
64233
|
+
customElements.define("luzmo-embed-ai-answer", LuzmoAIAnswerComponent);
|
|
64234
|
+
}
|
|
64003
64235
|
/*! Bundled license information:
|
|
64004
64236
|
|
|
64005
|
-
@lit/reactive-element/
|
|
64237
|
+
@lit/reactive-element/css-tag.js:
|
|
64006
64238
|
(**
|
|
64007
64239
|
* @license
|
|
64008
|
-
* Copyright
|
|
64240
|
+
* Copyright 2019 Google LLC
|
|
64009
64241
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64010
64242
|
*)
|
|
64011
64243
|
|
|
64012
|
-
@lit/reactive-element/
|
|
64244
|
+
@lit/reactive-element/reactive-element.js:
|
|
64013
64245
|
(**
|
|
64014
64246
|
* @license
|
|
64015
|
-
* Copyright
|
|
64247
|
+
* Copyright 2017 Google LLC
|
|
64016
64248
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64017
64249
|
*)
|
|
64018
64250
|
|
|
64019
|
-
|
|
64251
|
+
lit-html/lit-html.js:
|
|
64020
64252
|
(**
|
|
64021
64253
|
* @license
|
|
64022
64254
|
* Copyright 2017 Google LLC
|
|
64023
64255
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64024
64256
|
*)
|
|
64025
64257
|
|
|
64026
|
-
|
|
64258
|
+
lit-element/lit-element.js:
|
|
64027
64259
|
(**
|
|
64028
64260
|
* @license
|
|
64029
64261
|
* Copyright 2017 Google LLC
|
|
64030
64262
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64031
64263
|
*)
|
|
64032
64264
|
|
|
64033
|
-
|
|
64265
|
+
lit-html/is-server.js:
|
|
64034
64266
|
(**
|
|
64035
64267
|
* @license
|
|
64036
|
-
* Copyright
|
|
64268
|
+
* Copyright 2022 Google LLC
|
|
64037
64269
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64038
64270
|
*)
|
|
64039
64271
|
|
|
64040
|
-
@lit/reactive-element/decorators/
|
|
64272
|
+
@lit/reactive-element/decorators/custom-element.js:
|
|
64041
64273
|
(**
|
|
64042
64274
|
* @license
|
|
64043
64275
|
* Copyright 2017 Google LLC
|
|
64044
64276
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64045
64277
|
*)
|
|
64046
64278
|
|
|
64047
|
-
@lit/reactive-element/decorators/
|
|
64279
|
+
@lit/reactive-element/decorators/property.js:
|
|
64048
64280
|
(**
|
|
64049
64281
|
* @license
|
|
64050
64282
|
* Copyright 2017 Google LLC
|
|
64051
64283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64052
64284
|
*)
|
|
64053
64285
|
|
|
64054
|
-
@lit/reactive-element/decorators/
|
|
64286
|
+
@lit/reactive-element/decorators/state.js:
|
|
64055
64287
|
(**
|
|
64056
64288
|
* @license
|
|
64057
64289
|
* Copyright 2017 Google LLC
|
|
64058
64290
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64059
64291
|
*)
|
|
64060
64292
|
|
|
64061
|
-
@lit/reactive-element/decorators/
|
|
64293
|
+
@lit/reactive-element/decorators/event-options.js:
|
|
64062
64294
|
(**
|
|
64063
64295
|
* @license
|
|
64064
64296
|
* Copyright 2017 Google LLC
|
|
64065
64297
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64066
64298
|
*)
|
|
64067
64299
|
|
|
64068
|
-
@lit/reactive-element/decorators/
|
|
64300
|
+
@lit/reactive-element/decorators/base.js:
|
|
64069
64301
|
(**
|
|
64070
64302
|
* @license
|
|
64071
64303
|
* Copyright 2017 Google LLC
|
|
64072
64304
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64073
64305
|
*)
|
|
64074
64306
|
|
|
64075
|
-
@lit/reactive-element/decorators/query
|
|
64307
|
+
@lit/reactive-element/decorators/query.js:
|
|
64076
64308
|
(**
|
|
64077
64309
|
* @license
|
|
64078
|
-
* Copyright
|
|
64310
|
+
* Copyright 2017 Google LLC
|
|
64079
64311
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64080
64312
|
*)
|
|
64081
64313
|
|
|
64082
|
-
@lit/reactive-element/decorators/query-
|
|
64314
|
+
@lit/reactive-element/decorators/query-all.js:
|
|
64083
64315
|
(**
|
|
64084
64316
|
* @license
|
|
64085
64317
|
* Copyright 2017 Google LLC
|
|
64086
64318
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64087
64319
|
*)
|
|
64088
64320
|
|
|
64089
|
-
lit-
|
|
64321
|
+
@lit/reactive-element/decorators/query-async.js:
|
|
64090
64322
|
(**
|
|
64091
64323
|
* @license
|
|
64092
64324
|
* Copyright 2017 Google LLC
|
|
64093
64325
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64094
64326
|
*)
|
|
64095
64327
|
|
|
64096
|
-
lit-element/
|
|
64328
|
+
@lit/reactive-element/decorators/query-assigned-elements.js:
|
|
64097
64329
|
(**
|
|
64098
64330
|
* @license
|
|
64099
|
-
* Copyright
|
|
64331
|
+
* Copyright 2021 Google LLC
|
|
64100
64332
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64101
64333
|
*)
|
|
64102
64334
|
|
|
64103
|
-
lit-
|
|
64335
|
+
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
64104
64336
|
(**
|
|
64105
64337
|
* @license
|
|
64106
|
-
* Copyright
|
|
64338
|
+
* Copyright 2017 Google LLC
|
|
64107
64339
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64108
64340
|
*)
|
|
64109
64341
|
|