@orangelogic/design-system 2.60.0 → 2.61.0
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/library/apps/cortex/src/types.d.ts +2 -0
- package/library/chunks/_baseRest.ClTMQtN1.js +67 -0
- package/library/chunks/{_baseUniq.BUihBa8c.js → _baseUniq.Df-fLIBx.js} +53 -56
- package/library/chunks/{amazon_s3.DeaMdPPn.js → amazon_s3.BEMtqafk.js} +1 -1
- package/library/chunks/animate.El-MpOws.js +37 -0
- package/library/chunks/animation-registry.HmpwNuGH.js +34 -0
- package/library/chunks/{animation.B7d72NVK.js → animation.DfUHRQry.js} +10 -8
- package/library/chunks/array.DCtvHiLS.js +81 -0
- package/library/chunks/asset.CG_yXtWK.js +288 -0
- package/library/chunks/{browser.Va59Ix3P.js → browser.BHOCIF_A.js} +18 -16
- package/library/chunks/{button.CtCSNRB3.js → button.P71VJ5xh.js} +75 -74
- package/library/chunks/{button.styles.C8AIO8fd.js → button.styles.Dl5IQLHU.js} +1 -1
- package/library/chunks/{capitalize.CNStXZBq.js → capitalize.WSkCXkNE.js} +1 -1
- package/library/chunks/{chatbot.sm4Rph1v.js → chatbot.BmpIu59L.js} +2 -2
- package/library/chunks/{class-map.CoZTSvbM.js → class-map.BiVq-cVR.js} +1 -1
- package/library/chunks/{color-swatch-group.qJevXs50.js → color-swatch-group.DlLmydlB.js} +116 -127
- package/library/chunks/color-swatch.Bpb_hW2H.js +407 -0
- package/library/chunks/color.vLD2sNTs.js +164 -0
- package/library/chunks/{component.styles.CI-v8BZa.js → component.styles.DMSLciL5.js} +1 -1
- package/library/chunks/{confirm-popover.D2TF1x6K.js → confirm-popover.C1uA36JR.js} +15 -13
- package/library/chunks/{content-builder.WranV3P4.js → content-builder.Bf7kqzDI.js} +1 -1
- package/library/chunks/converters.DkDtLstb.js +11 -0
- package/library/chunks/{cropper.aA0v16xS.js → cropper.BraEEykE.js} +5004 -5024
- package/library/chunks/custom-element.L4WJXn1j.js +14 -0
- package/library/chunks/debounce.DaHuiSGU.js +15 -0
- package/library/chunks/{default-value.CIKAvD5l.js → default-value.COZopaet.js} +1 -1
- package/library/chunks/{dialog.B1TORO6S.js → dialog.C_75RVVz.js} +52 -49
- package/library/chunks/{directive-helpers.DBHob-_L.js → directive-helpers.Dm4rc594.js} +1 -1
- package/library/chunks/dom.CZrJ64Dm.js +92 -0
- package/library/chunks/{dot-pagination.8f2oX_ge.js → dot-pagination.CoCIJsHC.js} +24 -22
- package/library/chunks/{endpoints.BgyupJys.js → endpoints.B7lcoc1N.js} +1 -3
- package/library/chunks/{file-on-demand.Cwgabdyw.js → file-on-demand.B2jNilAj.js} +1829 -1544
- package/library/chunks/{folder-select.DiWCwR-T.js → folder-select.CSEQxIXF.js} +380 -255
- package/library/chunks/{form-control.styles.NE2Q-quE.js → form-control.styles.CUGhvlfT.js} +1 -1
- package/library/chunks/{form.B8u0ywni.js → form.CO12-VK0.js} +1 -1
- package/library/chunks/{guard.BDP4A85K.js → guard.D4axKaMo.js} +1 -1
- package/library/chunks/{header.B_FD8uLt.js → header.Bd3G0-oA.js} +11 -9
- package/library/chunks/{hub-connection.CxfaT11o.js → hub-connection.BxT2b7Nq.js} +4 -3
- package/library/chunks/{i18n.BP2FRO1v.js → i18n.DrzK7TPf.js} +54 -7
- package/library/chunks/identity.ByMq8VxU.js +6 -0
- package/library/chunks/{if-defined.MfEgpxEN.js → if-defined.BRoBj_Rp.js} +1 -1
- package/library/chunks/{iframe.DZm7FiCl.js → iframe.UCj6Ze2A.js} +18 -16
- package/library/chunks/{image.Ycf8RudS.js → image.DZCRhE3G.js} +82 -79
- package/library/chunks/image.mbpyiQpQ.js +82 -0
- package/library/chunks/index.S0wy3rzm.js +373 -0
- package/library/chunks/isObjectLike.D3cpZO39.js +81 -0
- package/library/chunks/{isSymbol.L0C2ND_U.js → isSymbol.huJ_Cvxt.js} +1 -1
- package/library/chunks/lib-cortex-element.CVMmyPMC.js +146 -0
- package/library/chunks/{list-editor.COkw5JKG.js → list-editor.CrLntuM7.js} +75 -79
- package/library/chunks/{custom-element.vnXBMQxc.js → lit-element.jLBm65_O.js} +123 -277
- package/library/chunks/{live.LdB9xEhp.js → live.SCz6M8Gs.js} +2 -2
- package/library/chunks/{mailchimp.BjbPJfd-.js → mailchimp.Bs6uJVsf.js} +1 -1
- package/library/chunks/{modal.BqNLxgs1.js → modal.U1QltQKe.js} +25 -19
- package/library/chunks/{option.D9KJhzHs.js → option.D1u5-cTt.js} +21 -19
- package/library/chunks/{orangelogic.BgbQXkBv.js → orangelogic.TdFfoPUN.js} +1 -1
- package/library/chunks/{overlayscrollbars.aFuRG5Rs.js → overlayscrollbars.XhGWx9Zk.js} +1 -1
- package/library/chunks/{pagination.C2FN4fmO.js → pagination.BI3LONVU.js} +17 -15
- package/library/chunks/{ref.BaCjlzLO.js → ref.bzeTdX0K.js} +2 -2
- package/library/chunks/{repeat.CauKaXyy.js → repeat.DbF2p5ae.js} +2 -2
- package/library/chunks/responsive.CA6dcNiM.js +17 -0
- package/library/chunks/{scroll.DwPiX2Ox.js → scroll.xtO5yojm.js} +3 -2
- package/library/chunks/{slot.DJLm4Dig.js → slot.j5oheLJC.js} +12 -4
- package/library/chunks/{state.Cw55xXlb.js → state.CSDxrqLd.js} +1 -1
- package/library/chunks/{static.BjNkqt7_.js → static.UA3G1Deq.js} +1 -1
- package/library/chunks/string.Cp_XNbnV.js +160 -0
- package/library/chunks/{style-map.CZovMmo_.js → style-map.llVFPd__.js} +1 -1
- package/library/chunks/{tab-group.5fLnWflv.js → tab-group.DxSlcWK0.js} +20 -18
- package/library/chunks/{table.BAr8KKc6.js → table.CY-iMTWV.js} +457 -505
- package/library/chunks/template.CsJd8Pb_.js +20 -0
- package/library/chunks/time.D_uFZqqe.js +118 -0
- package/library/chunks/{toString.CL_lYXbK.js → toString.CRT5zqEU.js} +3 -3
- package/library/chunks/toast.BXNbwZV8.js +25 -0
- package/library/chunks/{tree.CUfvIDyA.js → tree.CNbrP8cY.js} +33 -36
- package/library/chunks/{typography.BFpl0WMA.js → typography.oDzoLbZS.js} +16 -14
- package/library/chunks/{unsafe-html.DyO9_Rsq.js → unsafe-html.Dff7-rCx.js} +1 -1
- package/library/chunks/url.LjsR2sB5.js +15 -0
- package/library/chunks/user-agent.D9aPuOyL.js +4 -0
- package/library/chunks/watch.q1sEjPWL.js +501 -0
- package/library/components/alert.js +38 -35
- package/library/components/animated-image.js +25 -23
- package/library/components/animation.js +7 -5
- package/library/components/array-line-clamp.d.ts +3 -0
- package/library/components/array-line-clamp.js +195 -0
- package/library/components/asset-link-format.js +223 -212
- package/library/components/atoms.js +164 -162
- package/library/components/avatar.js +28 -26
- package/library/components/badge.js +10 -8
- package/library/components/bicolor-picker.js +21 -19
- package/library/components/border-input-group.js +11 -9
- package/library/components/breadcrumb-item.js +14 -12
- package/library/components/breadcrumb.js +24 -22
- package/library/components/button-group.js +26 -24
- package/library/components/button.js +14 -13
- package/library/components/card.js +28 -19
- package/library/components/checkbox.js +29 -23
- package/library/components/color-picker.js +19 -17
- package/library/components/color-swatch-group.js +20 -17
- package/library/components/color-swatch.js +16 -13
- package/library/components/confirm-popover.js +11 -9
- package/library/components/copy-button.js +15 -13
- package/library/components/corner-position-input-group.js +13 -11
- package/library/components/cortex-element.d.ts +3 -0
- package/library/components/cortex-element.js +5 -0
- package/library/components/cropper.js +7 -5
- package/library/components/details.js +23 -20
- package/library/components/dialog.js +19 -16
- package/library/components/divider.js +13 -11
- package/library/components/dot-pagination.js +11 -9
- package/library/components/dot-status.js +10 -8
- package/library/components/drawer.js +63 -51
- package/library/components/dropdown.js +29 -26
- package/library/components/dynamic-select.js +12 -10
- package/library/components/element-clamp.js +28 -25
- package/library/components/file-on-demand.js +21 -20
- package/library/components/folder-select.js +12 -10
- package/library/components/format-bytes.js +11 -10
- package/library/components/format-date.js +11 -9
- package/library/components/format-number.js +16 -15
- package/library/components/format-time.js +118 -9
- package/library/components/grid-item.js +48 -46
- package/library/components/grid.js +31 -29
- package/library/components/header.js +10 -9
- package/library/components/hub-connection.js +6 -5
- package/library/components/icon-button.js +20 -18
- package/library/components/icon.js +17 -15
- package/library/components/iframe.js +10 -8
- package/library/components/image-comparer.js +27 -25
- package/library/components/image.js +14 -11
- package/library/components/include.js +26 -24
- package/library/components/input-group.js +15 -13
- package/library/components/input.js +23 -21
- package/library/components/line-clamp.js +12 -10
- package/library/components/list-editor.js +17 -15
- package/library/components/markdown.js +80 -78
- package/library/components/masonry.js +46 -44
- package/library/components/menu-item.js +151 -136
- package/library/components/menu-label.js +15 -13
- package/library/components/menu-section.js +18 -16
- package/library/components/menu.js +10 -8
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +12 -10
- package/library/components/option.js +10 -8
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +30 -28
- package/library/components/pagination.js +14 -12
- package/library/components/popup.js +3296 -9
- package/library/components/position-picker.js +12 -10
- package/library/components/progress-bar.js +13 -11
- package/library/components/progress-ring.js +15 -13
- package/library/components/qr-code.js +54 -52
- package/library/components/radio-button.js +19 -17
- package/library/components/radio-card.js +14 -12
- package/library/components/radio-group.js +20 -18
- package/library/components/radio.js +15 -13
- package/library/components/range.js +25 -23
- package/library/components/rating.js +17 -15
- package/library/components/relative-time.js +16 -14
- package/library/components/resize-observer.js +21 -19
- package/library/components/select.js +1442 -25
- package/library/components/shadow-input-group.js +19 -17
- package/library/components/share-option-list.js +20 -18
- package/library/components/sidebar.js +14 -12
- package/library/components/size-input-group.js +35 -33
- package/library/components/skeleton.js +12 -10
- package/library/components/space.js +12 -10
- package/library/components/spinner.js +17 -15
- package/library/components/split-panel.js +15 -13
- package/library/components/step.js +18 -16
- package/library/components/stepper-wizard.js +11 -9
- package/library/components/stepper.js +13 -11
- package/library/components/switch.js +21 -19
- package/library/components/tab-group.js +15 -13
- package/library/components/tab-panel.js +20 -18
- package/library/components/tab.js +18 -16
- package/library/components/table.js +69 -67
- package/library/components/tag.js +11 -9
- package/library/components/textarea.js +20 -18
- package/library/components/timecode.js +98 -8
- package/library/components/tooltip.js +24 -21
- package/library/components/tree-item.js +14 -11
- package/library/components/tree.js +12 -10
- package/library/components/typeface.js +13 -11
- package/library/components/types.js +15487 -15444
- package/library/components/typography.js +6 -4
- package/library/components/video.js +13 -11
- package/library/components/visually-hidden.js +15 -13
- package/library/events.d.ts +1 -0
- package/library/events.js +1 -0
- package/library/package.json +11 -2
- package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.d.ts +45 -0
- package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +2 -0
- package/library/packages/atoms/src/components/drawer/drawer.d.ts +7 -1
- package/library/packages/atoms/src/components/include/include.d.ts +1 -0
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
- package/library/packages/atoms/src/components/tree/tree.d.ts +0 -4
- package/library/packages/atoms/src/index.d.ts +1 -0
- package/library/packages/events/src/cx-file-on-demand-load-more.d.ts +8 -0
- package/library/packages/events/src/cx-file-on-demand-pin.d.ts +8 -0
- package/library/packages/events/src/cx-file-on-demand-unpin.d.ts +8 -0
- package/library/packages/events/src/cx-folder-select-search-term-change.d.ts +8 -0
- package/library/packages/events/src/cx-share-option-list-item-selected.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +6 -2
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
- package/library/packages/molecules/src/cropper/cropper.d.ts +1 -0
- package/library/packages/molecules/src/cropper/react/Cropper.d.ts +1 -0
- package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +1 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +8 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +1 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +6 -1
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +3 -7
- package/library/packages/organisms/src/content-builder/styleController.d.ts +8 -8
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.d.ts +80 -0
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.styles.d.ts +2 -0
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-pinned-status.ts/file-on-demand-pinned-status.d.ts +44 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.constants.d.ts +1 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.d.ts +11 -18
- package/library/packages/organisms/src/file-on-demand/file-on-demand.utils.d.ts +6 -0
- package/library/packages/services/src/api/folder/folder.d.ts +4 -8
- package/library/packages/services/src/api/folder/folder.types.d.ts +2 -1
- package/library/packages/types/src/file-on-demand.d.ts +4 -0
- package/library/packages/types/src/folder-select.d.ts +9 -2
- package/library/packages/utils/src/custom-element/i18n.d.ts +40 -2
- package/library/packages/utils/src/drag-scroll/drag-scroll.d.ts +22 -0
- package/library/packages/utils/src/drag-scroll/index.d.ts +1 -0
- package/library/packages/utils/src/font/font.d.ts +26 -0
- package/library/packages/utils/src/font/index.d.ts +1 -0
- package/library/packages/utils/src/history-manager/history-manager.d.ts +13 -0
- package/library/packages/utils/src/history-manager/index.d.ts +1 -0
- package/library/packages/utils/src/index.d.ts +45 -0
- package/library/packages/utils/src/template/index.d.ts +1 -0
- package/library/packages/utils/src/template/template.d.ts +3 -0
- package/library/react-web-component.d.ts +418 -360
- package/library/utils.d.ts +1 -0
- package/library/utils.js +180 -0
- package/package.json +11 -2
- package/library/chunks/animation-registry.DavRkTTr.js +0 -69
- package/library/chunks/asset.Ba-CxnNM.js +0 -309
- package/library/chunks/color-swatch.DUe3iLLo.js +0 -558
- package/library/chunks/dom.C0OFx7ND.js +0 -78
- package/library/chunks/format-time.BW6-ZWCX.js +0 -226
- package/library/chunks/isObjectLike.z36Fu426.js +0 -34
- package/library/chunks/popup._w5T7x8f.js +0 -3307
- package/library/chunks/select.DfO4de04.js +0 -1441
- package/library/chunks/string.BCk3SmdZ.js +0 -144
- package/library/chunks/timecode.D7XTiQ_3.js +0 -105
- package/library/chunks/watch.BCJD77bD.js +0 -547
- package/library/packages/events/src/cx-load-more.d.ts +0 -8
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
7
|
-
let
|
|
6
|
+
const U = globalThis, k = U.ShadowRoot && (U.ShadyCSS === void 0 || U.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, D = Symbol(), I = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let Q = class {
|
|
8
8
|
constructor(t, e, s) {
|
|
9
|
-
if (this._$cssResult$ = !0, s !==
|
|
9
|
+
if (this._$cssResult$ = !0, s !== D) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = t, this.t = e;
|
|
11
11
|
}
|
|
12
12
|
get styleSheet() {
|
|
13
13
|
let t = this.o;
|
|
14
14
|
const e = this.t;
|
|
15
|
-
if (
|
|
15
|
+
if (k && t === void 0) {
|
|
16
16
|
const s = e !== void 0 && e.length === 1;
|
|
17
|
-
s && (t =
|
|
17
|
+
s && (t = I.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && I.set(e, t));
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -22,33 +22,33 @@ let it = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const
|
|
25
|
+
const rt = (r) => new Q(typeof r == "string" ? r : r + "", void 0, D), Ct = (r, ...t) => {
|
|
26
26
|
const e = r.length === 1 ? r[0] : t.reduce((s, i, n) => s + ((o) => {
|
|
27
27
|
if (o._$cssResult$ === !0) return o.cssText;
|
|
28
28
|
if (typeof o == "number") return o;
|
|
29
29
|
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.");
|
|
30
30
|
})(i) + r[n + 1], r[0]);
|
|
31
|
-
return new
|
|
32
|
-
},
|
|
33
|
-
if (
|
|
31
|
+
return new Q(e, r, D);
|
|
32
|
+
}, nt = (r, t) => {
|
|
33
|
+
if (k) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
34
34
|
else for (const e of t) {
|
|
35
|
-
const s = document.createElement("style"), i =
|
|
35
|
+
const s = document.createElement("style"), i = U.litNonce;
|
|
36
36
|
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, B = k ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
|
39
39
|
let e = "";
|
|
40
40
|
for (const s of t.cssRules) e += s.cssText;
|
|
41
|
-
return
|
|
41
|
+
return rt(e);
|
|
42
42
|
})(r) : r;
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is:
|
|
48
|
+
const { is: ot, defineProperty: ht, getOwnPropertyDescriptor: at, getOwnPropertyNames: lt, getOwnPropertySymbols: ct, getPrototypeOf: dt } = Object, M = globalThis, V = M.trustedTypes, pt = V ? V.emptyScript : "", ut = M.reactiveElementPolyfillSupport, b = (r, t) => r, R = { toAttribute(r, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
r = r ?
|
|
51
|
+
r = r ? pt : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
@@ -73,44 +73,44 @@ const { is: dt, defineProperty: pt, getOwnPropertyDescriptor: ut, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
|
-
} },
|
|
77
|
-
Symbol.metadata ??= Symbol("metadata"),
|
|
78
|
-
let
|
|
76
|
+
} }, X = (r, t) => !ot(r, t), W = { attribute: !0, type: String, converter: R, reflect: !1, useDefault: !1, hasChanged: X };
|
|
77
|
+
Symbol.metadata ??= Symbol("metadata"), M.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
78
|
+
let y = class extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
80
80
|
this._$Ei(), (this.l ??= []).push(t);
|
|
81
81
|
}
|
|
82
82
|
static get observedAttributes() {
|
|
83
83
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
84
84
|
}
|
|
85
|
-
static createProperty(t, e =
|
|
85
|
+
static createProperty(t, e = W) {
|
|
86
86
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
87
87
|
const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
|
|
88
|
-
i !== void 0 &&
|
|
88
|
+
i !== void 0 && ht(this.prototype, t, i);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
static getPropertyDescriptor(t, e, s) {
|
|
92
|
-
const { get: i, set: n } =
|
|
92
|
+
const { get: i, set: n } = at(this.prototype, t) ?? { get() {
|
|
93
93
|
return this[e];
|
|
94
94
|
}, set(o) {
|
|
95
95
|
this[e] = o;
|
|
96
96
|
} };
|
|
97
97
|
return { get: i, set(o) {
|
|
98
|
-
const
|
|
99
|
-
n?.call(this, o), this.requestUpdate(t,
|
|
98
|
+
const l = i?.call(this);
|
|
99
|
+
n?.call(this, o), this.requestUpdate(t, l, s);
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(t) {
|
|
103
|
-
return this.elementProperties.get(t) ??
|
|
103
|
+
return this.elementProperties.get(t) ?? W;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
|
-
if (this.hasOwnProperty(
|
|
107
|
-
const t =
|
|
106
|
+
if (this.hasOwnProperty(b("elementProperties"))) return;
|
|
107
|
+
const t = dt(this);
|
|
108
108
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
111
|
-
if (this.hasOwnProperty(
|
|
112
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
113
|
-
const e = this.properties, s = [
|
|
111
|
+
if (this.hasOwnProperty(b("finalized"))) return;
|
|
112
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(b("properties"))) {
|
|
113
|
+
const e = this.properties, s = [...lt(e), ...ct(e)];
|
|
114
114
|
for (const i of s) this.createProperty(i, e[i]);
|
|
115
115
|
}
|
|
116
116
|
const t = this[Symbol.metadata];
|
|
@@ -129,8 +129,8 @@ let A = class extends HTMLElement {
|
|
|
129
129
|
const e = [];
|
|
130
130
|
if (Array.isArray(t)) {
|
|
131
131
|
const s = new Set(t.flat(1 / 0).reverse());
|
|
132
|
-
for (const i of s) e.unshift(
|
|
133
|
-
} else t !== void 0 && e.push(
|
|
132
|
+
for (const i of s) e.unshift(B(i));
|
|
133
|
+
} else t !== void 0 && e.push(B(t));
|
|
134
134
|
return e;
|
|
135
135
|
}
|
|
136
136
|
static _$Eu(t, e) {
|
|
@@ -156,7 +156,7 @@ let A = class extends HTMLElement {
|
|
|
156
156
|
}
|
|
157
157
|
createRenderRoot() {
|
|
158
158
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
159
|
-
return
|
|
159
|
+
return nt(t, this.constructor.elementStyles), t;
|
|
160
160
|
}
|
|
161
161
|
connectedCallback() {
|
|
162
162
|
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((t) => t.hostConnected?.());
|
|
@@ -172,23 +172,23 @@ let A = class extends HTMLElement {
|
|
|
172
172
|
_$ET(t, e) {
|
|
173
173
|
const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
|
|
174
174
|
if (i !== void 0 && s.reflect === !0) {
|
|
175
|
-
const n = (s.converter?.toAttribute !== void 0 ? s.converter :
|
|
175
|
+
const n = (s.converter?.toAttribute !== void 0 ? s.converter : R).toAttribute(e, s.type);
|
|
176
176
|
this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
_$AK(t, e) {
|
|
180
180
|
const s = this.constructor, i = s._$Eh.get(t);
|
|
181
181
|
if (i !== void 0 && this._$Em !== i) {
|
|
182
|
-
const n = s.getPropertyOptions(i), o = typeof n.converter == "function" ? { fromAttribute: n.converter } : n.converter?.fromAttribute !== void 0 ? n.converter :
|
|
182
|
+
const n = s.getPropertyOptions(i), o = typeof n.converter == "function" ? { fromAttribute: n.converter } : n.converter?.fromAttribute !== void 0 ? n.converter : R;
|
|
183
183
|
this._$Em = i;
|
|
184
|
-
const
|
|
185
|
-
this[i] =
|
|
184
|
+
const l = o.fromAttribute(e, n.type);
|
|
185
|
+
this[i] = l ?? this._$Ej?.get(i) ?? l, this._$Em = null;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
requestUpdate(t, e, s) {
|
|
189
189
|
if (t !== void 0) {
|
|
190
190
|
const i = this.constructor, n = this[t];
|
|
191
|
-
if (s ??= i.getPropertyOptions(t), !((s.hasChanged ??
|
|
191
|
+
if (s ??= i.getPropertyOptions(t), !((s.hasChanged ?? X)(n, e) || s.useDefault && s.reflect && n === this._$Ej?.get(t) && !this.hasAttribute(i._$Eu(t, s)))) return;
|
|
192
192
|
this.C(t, e, s);
|
|
193
193
|
}
|
|
194
194
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -218,8 +218,8 @@ let A = class extends HTMLElement {
|
|
|
218
218
|
}
|
|
219
219
|
const s = this.constructor.elementProperties;
|
|
220
220
|
if (s.size > 0) for (const [i, n] of s) {
|
|
221
|
-
const { wrapped: o } = n,
|
|
222
|
-
o !== !0 || this._$AL.has(i) ||
|
|
221
|
+
const { wrapped: o } = n, l = this[i];
|
|
222
|
+
o !== !0 || this._$AL.has(i) || l === void 0 || this.C(i, void 0, n, l);
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
let t = !1;
|
|
@@ -256,75 +256,75 @@ let A = class extends HTMLElement {
|
|
|
256
256
|
firstUpdated(t) {
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
|
-
|
|
259
|
+
y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[b("elementProperties")] = /* @__PURE__ */ new Map(), y[b("finalized")] = /* @__PURE__ */ new Map(), ut?.({ ReactiveElement: y }), (M.reactiveElementVersions ??= []).push("2.1.1");
|
|
260
260
|
/**
|
|
261
261
|
* @license
|
|
262
262
|
* Copyright 2017 Google LLC
|
|
263
263
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
264
264
|
*/
|
|
265
|
-
const
|
|
266
|
-
\f\r]`, S = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
267
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
268
|
-
function
|
|
269
|
-
if (!
|
|
270
|
-
return
|
|
265
|
+
const L = globalThis, H = L.trustedTypes, q = H ? H.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Y = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, tt = "?" + _, $t = `<${tt}>`, m = document, w = () => m.createComment(""), C = (r) => r === null || typeof r != "object" && typeof r != "function", j = Array.isArray, _t = (r) => j(r) || typeof r?.[Symbol.iterator] == "function", N = `[
|
|
266
|
+
\f\r]`, S = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Z = /-->/g, J = />/g, f = RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^
|
|
267
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), K = /'/g, F = /"/g, et = /^(?:script|style|textarea|title)$/i, st = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), xt = st(1), Ut = st(2), g = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), G = /* @__PURE__ */ new WeakMap(), A = m.createTreeWalker(m, 129);
|
|
268
|
+
function it(r, t) {
|
|
269
|
+
if (!j(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
270
|
+
return q !== void 0 ? q.createHTML(t) : t;
|
|
271
271
|
}
|
|
272
|
-
const
|
|
272
|
+
const ft = (r, t) => {
|
|
273
273
|
const e = r.length - 1, s = [];
|
|
274
274
|
let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = S;
|
|
275
|
-
for (let
|
|
276
|
-
const h = r[
|
|
277
|
-
let c, p,
|
|
278
|
-
for (; u < h.length && (o.lastIndex = u, p = o.exec(h), p !== null); ) u = o.lastIndex, o === S ? p[1] === "!--" ? o =
|
|
279
|
-
const $ = o ===
|
|
280
|
-
n += o === S ? h +
|
|
281
|
-
}
|
|
282
|
-
return [
|
|
275
|
+
for (let l = 0; l < e; l++) {
|
|
276
|
+
const h = r[l];
|
|
277
|
+
let c, p, a = -1, u = 0;
|
|
278
|
+
for (; u < h.length && (o.lastIndex = u, p = o.exec(h), p !== null); ) u = o.lastIndex, o === S ? p[1] === "!--" ? o = Z : p[1] !== void 0 ? o = J : p[2] !== void 0 ? (et.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = f) : p[3] !== void 0 && (o = f) : o === f ? p[0] === ">" ? (o = i ?? S, a = -1) : p[1] === void 0 ? a = -2 : (a = o.lastIndex - p[2].length, c = p[1], o = p[3] === void 0 ? f : p[3] === '"' ? F : K) : o === F || o === K ? o = f : o === Z || o === J ? o = S : (o = f, i = void 0);
|
|
279
|
+
const $ = o === f && r[l + 1].startsWith("/>") ? " " : "";
|
|
280
|
+
n += o === S ? h + $t : a >= 0 ? (s.push(c), h.slice(0, a) + Y + h.slice(a) + _ + $) : h + _ + (a === -2 ? l : $);
|
|
281
|
+
}
|
|
282
|
+
return [it(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
283
283
|
};
|
|
284
|
-
class
|
|
284
|
+
class P {
|
|
285
285
|
constructor({ strings: t, _$litType$: e }, s) {
|
|
286
286
|
let i;
|
|
287
287
|
this.parts = [];
|
|
288
288
|
let n = 0, o = 0;
|
|
289
|
-
const
|
|
290
|
-
if (this.el =
|
|
291
|
-
const
|
|
292
|
-
|
|
289
|
+
const l = t.length - 1, h = this.parts, [c, p] = ft(t, e);
|
|
290
|
+
if (this.el = P.createElement(c, s), A.currentNode = this.el.content, e === 2 || e === 3) {
|
|
291
|
+
const a = this.el.content.firstChild;
|
|
292
|
+
a.replaceWith(...a.childNodes);
|
|
293
293
|
}
|
|
294
|
-
for (; (i =
|
|
294
|
+
for (; (i = A.nextNode()) !== null && h.length < l; ) {
|
|
295
295
|
if (i.nodeType === 1) {
|
|
296
|
-
if (i.hasAttributes()) for (const
|
|
297
|
-
const u = p[o++], $ = i.getAttribute(
|
|
298
|
-
h.push({ type: 1, index: n, name:
|
|
299
|
-
} else
|
|
300
|
-
if (
|
|
301
|
-
const
|
|
296
|
+
if (i.hasAttributes()) for (const a of i.getAttributeNames()) if (a.endsWith(Y)) {
|
|
297
|
+
const u = p[o++], $ = i.getAttribute(a).split(_), x = /([.?@])?(.*)/.exec(u);
|
|
298
|
+
h.push({ type: 1, index: n, name: x[2], strings: $, ctor: x[1] === "." ? mt : x[1] === "?" ? yt : x[1] === "@" ? gt : T }), i.removeAttribute(a);
|
|
299
|
+
} else a.startsWith(_) && (h.push({ type: 6, index: n }), i.removeAttribute(a));
|
|
300
|
+
if (et.test(i.tagName)) {
|
|
301
|
+
const a = i.textContent.split(_), u = a.length - 1;
|
|
302
302
|
if (u > 0) {
|
|
303
303
|
i.textContent = H ? H.emptyScript : "";
|
|
304
|
-
for (let $ = 0; $ < u; $++) i.append(
|
|
305
|
-
i.append(
|
|
304
|
+
for (let $ = 0; $ < u; $++) i.append(a[$], w()), A.nextNode(), h.push({ type: 2, index: ++n });
|
|
305
|
+
i.append(a[u], w());
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
|
-
} else if (i.nodeType === 8) if (i.data ===
|
|
308
|
+
} else if (i.nodeType === 8) if (i.data === tt) h.push({ type: 2, index: n });
|
|
309
309
|
else {
|
|
310
|
-
let
|
|
311
|
-
for (; (
|
|
310
|
+
let a = -1;
|
|
311
|
+
for (; (a = i.data.indexOf(_, a + 1)) !== -1; ) h.push({ type: 7, index: n }), a += _.length - 1;
|
|
312
312
|
}
|
|
313
313
|
n++;
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
static createElement(t, e) {
|
|
317
|
-
const s =
|
|
317
|
+
const s = m.createElement("template");
|
|
318
318
|
return s.innerHTML = t, s;
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
|
-
function
|
|
322
|
-
if (t ===
|
|
321
|
+
function v(r, t, e = r, s) {
|
|
322
|
+
if (t === g) return t;
|
|
323
323
|
let i = s !== void 0 ? e._$Co?.[s] : e._$Cl;
|
|
324
|
-
const n =
|
|
325
|
-
return i?.constructor !== n && (i?._$AO?.(!1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ??= [])[s] = i : e._$Cl = i), i !== void 0 && (t =
|
|
324
|
+
const n = C(t) ? void 0 : t._$litDirective$;
|
|
325
|
+
return i?.constructor !== n && (i?._$AO?.(!1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ??= [])[s] = i : e._$Cl = i), i !== void 0 && (t = v(r, i._$AS(r, t.values), i, s)), t;
|
|
326
326
|
}
|
|
327
|
-
class
|
|
327
|
+
class At {
|
|
328
328
|
constructor(t, e) {
|
|
329
329
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
330
330
|
}
|
|
@@ -335,17 +335,17 @@ class bt {
|
|
|
335
335
|
return this._$AM._$AU;
|
|
336
336
|
}
|
|
337
337
|
u(t) {
|
|
338
|
-
const { el: { content: e }, parts: s } = this._$AD, i = (t?.creationScope ??
|
|
339
|
-
|
|
340
|
-
let n =
|
|
338
|
+
const { el: { content: e }, parts: s } = this._$AD, i = (t?.creationScope ?? m).importNode(e, !0);
|
|
339
|
+
A.currentNode = i;
|
|
340
|
+
let n = A.nextNode(), o = 0, l = 0, h = s[0];
|
|
341
341
|
for (; h !== void 0; ) {
|
|
342
342
|
if (o === h.index) {
|
|
343
343
|
let c;
|
|
344
|
-
h.type === 2 ? c = new E(n, n.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(n, h.name, h.strings, this, t) : h.type === 6 && (c = new
|
|
344
|
+
h.type === 2 ? c = new E(n, n.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(n, h.name, h.strings, this, t) : h.type === 6 && (c = new vt(n, this, t)), this._$AV.push(c), h = s[++l];
|
|
345
345
|
}
|
|
346
|
-
o !== h?.index && (n =
|
|
346
|
+
o !== h?.index && (n = A.nextNode(), o++);
|
|
347
347
|
}
|
|
348
|
-
return
|
|
348
|
+
return A.currentNode = m, i;
|
|
349
349
|
}
|
|
350
350
|
p(t) {
|
|
351
351
|
let e = 0;
|
|
@@ -371,7 +371,7 @@ class E {
|
|
|
371
371
|
return this._$AB;
|
|
372
372
|
}
|
|
373
373
|
_$AI(t, e = this) {
|
|
374
|
-
t =
|
|
374
|
+
t = v(this, t, e), C(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== g && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : _t(t) ? this.k(t) : this._(t);
|
|
375
375
|
}
|
|
376
376
|
O(t) {
|
|
377
377
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -380,25 +380,25 @@ class E {
|
|
|
380
380
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
381
381
|
}
|
|
382
382
|
_(t) {
|
|
383
|
-
this._$AH !== d &&
|
|
383
|
+
this._$AH !== d && C(this._$AH) ? this._$AA.nextSibling.data = t : this.T(m.createTextNode(t)), this._$AH = t;
|
|
384
384
|
}
|
|
385
385
|
$(t) {
|
|
386
|
-
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el =
|
|
386
|
+
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = P.createElement(it(s.h, s.h[0]), this.options)), s);
|
|
387
387
|
if (this._$AH?._$AD === i) this._$AH.p(e);
|
|
388
388
|
else {
|
|
389
|
-
const n = new
|
|
389
|
+
const n = new At(i, this), o = n.u(this.options);
|
|
390
390
|
n.p(e), this.T(o), this._$AH = n;
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
_$AC(t) {
|
|
394
|
-
let e =
|
|
395
|
-
return e === void 0 &&
|
|
394
|
+
let e = G.get(t.strings);
|
|
395
|
+
return e === void 0 && G.set(t.strings, e = new P(t)), e;
|
|
396
396
|
}
|
|
397
397
|
k(t) {
|
|
398
|
-
|
|
398
|
+
j(this._$AH) || (this._$AH = [], this._$AR());
|
|
399
399
|
const e = this._$AH;
|
|
400
400
|
let s, i = 0;
|
|
401
|
-
for (const n of t) i === e.length ? e.push(s = new E(this.O(
|
|
401
|
+
for (const n of t) i === e.length ? e.push(s = new E(this.O(w()), this.O(w()), this, this.options)) : s = e[i], s._$AI(n), i++;
|
|
402
402
|
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
|
403
403
|
}
|
|
404
404
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -411,7 +411,7 @@ class E {
|
|
|
411
411
|
this._$AM === void 0 && (this._$Cv = t, this._$AP?.(t));
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
class
|
|
414
|
+
class T {
|
|
415
415
|
get tagName() {
|
|
416
416
|
return this.element.tagName;
|
|
417
417
|
}
|
|
@@ -424,11 +424,11 @@ class N {
|
|
|
424
424
|
_$AI(t, e = this, s, i) {
|
|
425
425
|
const n = this.strings;
|
|
426
426
|
let o = !1;
|
|
427
|
-
if (n === void 0) t =
|
|
427
|
+
if (n === void 0) t = v(this, t, e, 0), o = !C(t) || t !== this._$AH && t !== g, o && (this._$AH = t);
|
|
428
428
|
else {
|
|
429
|
-
const
|
|
429
|
+
const l = t;
|
|
430
430
|
let h, c;
|
|
431
|
-
for (t = n[0], h = 0; h < n.length - 1; h++) c =
|
|
431
|
+
for (t = n[0], h = 0; h < n.length - 1; h++) c = v(this, l[s + h], e, h), c === g && (c = this._$AH[h]), o ||= !C(c) || c !== this._$AH[h], c === d ? t = d : t !== d && (t += (c ?? "") + n[h + 1]), this._$AH[h] = c;
|
|
432
432
|
}
|
|
433
433
|
o && !i && this.j(t);
|
|
434
434
|
}
|
|
@@ -436,7 +436,7 @@ class N {
|
|
|
436
436
|
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
class
|
|
439
|
+
class mt extends T {
|
|
440
440
|
constructor() {
|
|
441
441
|
super(...arguments), this.type = 3;
|
|
442
442
|
}
|
|
@@ -444,7 +444,7 @@ class Et extends N {
|
|
|
444
444
|
this.element[this.name] = t === d ? void 0 : t;
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
class
|
|
447
|
+
class yt extends T {
|
|
448
448
|
constructor() {
|
|
449
449
|
super(...arguments), this.type = 4;
|
|
450
450
|
}
|
|
@@ -452,12 +452,12 @@ class St extends N {
|
|
|
452
452
|
this.element.toggleAttribute(this.name, !!t && t !== d);
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
class
|
|
455
|
+
class gt extends T {
|
|
456
456
|
constructor(t, e, s, i, n) {
|
|
457
457
|
super(t, e, s, i, n), this.type = 5;
|
|
458
458
|
}
|
|
459
459
|
_$AI(t, e = this) {
|
|
460
|
-
if ((t =
|
|
460
|
+
if ((t = v(this, t, e, 0) ?? d) === g) return;
|
|
461
461
|
const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== d && (s === d || i);
|
|
462
462
|
i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
463
463
|
}
|
|
@@ -465,7 +465,7 @@ class wt extends N {
|
|
|
465
465
|
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
class
|
|
468
|
+
class vt {
|
|
469
469
|
constructor(t, e, s) {
|
|
470
470
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
471
471
|
}
|
|
@@ -473,17 +473,17 @@ class Ct {
|
|
|
473
473
|
return this._$AM._$AU;
|
|
474
474
|
}
|
|
475
475
|
_$AI(t) {
|
|
476
|
-
|
|
476
|
+
v(this, t);
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
const
|
|
480
|
-
|
|
481
|
-
const
|
|
479
|
+
const Ot = { I: E }, Et = L.litHtmlPolyfillSupport;
|
|
480
|
+
Et?.(P, E), (L.litHtmlVersions ??= []).push("3.3.1");
|
|
481
|
+
const St = (r, t, e) => {
|
|
482
482
|
const s = e?.renderBefore ?? t;
|
|
483
483
|
let i = s._$litPart$;
|
|
484
484
|
if (i === void 0) {
|
|
485
485
|
const n = e?.renderBefore ?? null;
|
|
486
|
-
s._$litPart$ = i = new E(t.insertBefore(
|
|
486
|
+
s._$litPart$ = i = new E(t.insertBefore(w(), n), n, void 0, e ?? {});
|
|
487
487
|
}
|
|
488
488
|
return i._$AI(r), i;
|
|
489
489
|
};
|
|
@@ -492,8 +492,8 @@ const Ut = (r, t, e) => {
|
|
|
492
492
|
* Copyright 2017 Google LLC
|
|
493
493
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
494
494
|
*/
|
|
495
|
-
const
|
|
496
|
-
class
|
|
495
|
+
const z = globalThis;
|
|
496
|
+
class O extends y {
|
|
497
497
|
constructor() {
|
|
498
498
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
499
499
|
}
|
|
@@ -503,7 +503,7 @@ class C extends A {
|
|
|
503
503
|
}
|
|
504
504
|
update(t) {
|
|
505
505
|
const e = this.render();
|
|
506
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
506
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = St(e, this.renderRoot, this.renderOptions);
|
|
507
507
|
}
|
|
508
508
|
connectedCallback() {
|
|
509
509
|
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
@@ -512,177 +512,23 @@ class C extends A {
|
|
|
512
512
|
super.disconnectedCallback(), this._$Do?.setConnected(!1);
|
|
513
513
|
}
|
|
514
514
|
render() {
|
|
515
|
-
return
|
|
515
|
+
return g;
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
|
|
519
|
-
const
|
|
520
|
-
|
|
521
|
-
(
|
|
522
|
-
/**
|
|
523
|
-
* @license
|
|
524
|
-
* Copyright 2017 Google LLC
|
|
525
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
526
|
-
*/
|
|
527
|
-
const Tt = { attribute: !0, type: String, converter: M, reflect: !1, hasChanged: z }, xt = (r = Tt, t, e) => {
|
|
528
|
-
const { kind: s, metadata: i } = e;
|
|
529
|
-
let n = globalThis.litPropertyMetadata.get(i);
|
|
530
|
-
if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), s === "setter" && ((r = Object.create(r)).wrapped = !0), n.set(e.name, r), s === "accessor") {
|
|
531
|
-
const { name: o } = e;
|
|
532
|
-
return { set(a) {
|
|
533
|
-
const h = t.get.call(this);
|
|
534
|
-
t.set.call(this, a), this.requestUpdate(o, h, r);
|
|
535
|
-
}, init(a) {
|
|
536
|
-
return a !== void 0 && this.C(o, void 0, r, a), a;
|
|
537
|
-
} };
|
|
538
|
-
}
|
|
539
|
-
if (s === "setter") {
|
|
540
|
-
const { name: o } = e;
|
|
541
|
-
return function(a) {
|
|
542
|
-
const h = this[o];
|
|
543
|
-
t.call(this, a), this.requestUpdate(o, h, r);
|
|
544
|
-
};
|
|
545
|
-
}
|
|
546
|
-
throw Error("Unsupported decorator location: " + s);
|
|
547
|
-
};
|
|
548
|
-
function j(r) {
|
|
549
|
-
return (t, e) => typeof e == "object" ? xt(r, t, e) : ((s, i, n) => {
|
|
550
|
-
const o = i.hasOwnProperty(n);
|
|
551
|
-
return i.constructor.createProperty(n, s), o ? Object.getOwnPropertyDescriptor(i, n) : void 0;
|
|
552
|
-
})(r, t, e);
|
|
553
|
-
}
|
|
554
|
-
var Mt = Object.defineProperty, L = (r, t, e, s) => {
|
|
555
|
-
for (var i = void 0, n = r.length - 1, o; n >= 0; n--)
|
|
556
|
-
(o = r[n]) && (i = o(t, e, i) || i);
|
|
557
|
-
return i && Mt(t, e, i), i;
|
|
558
|
-
};
|
|
559
|
-
const R = class R extends C {
|
|
560
|
-
constructor() {
|
|
561
|
-
super(), this.theme = "light", this.preRender = !1, Object.entries(
|
|
562
|
-
this.constructor.dependencies
|
|
563
|
-
).forEach(([t, e]) => {
|
|
564
|
-
this.constructor.define(t, e);
|
|
565
|
-
}), this.handleThemeChange = this.handleThemeChange.bind(this);
|
|
566
|
-
}
|
|
567
|
-
emit(t, e) {
|
|
568
|
-
const s = new CustomEvent(t, {
|
|
569
|
-
bubbles: !0,
|
|
570
|
-
cancelable: !1,
|
|
571
|
-
composed: !0,
|
|
572
|
-
detail: {},
|
|
573
|
-
...e
|
|
574
|
-
});
|
|
575
|
-
return this.dispatchEvent(s), s;
|
|
576
|
-
}
|
|
577
|
-
static define(t, e = this, s = {}) {
|
|
578
|
-
const i = customElements.get(t);
|
|
579
|
-
if (!i) {
|
|
580
|
-
try {
|
|
581
|
-
customElements.define(t, e, s);
|
|
582
|
-
} catch {
|
|
583
|
-
customElements.define(
|
|
584
|
-
t,
|
|
585
|
-
class extends e {
|
|
586
|
-
},
|
|
587
|
-
s
|
|
588
|
-
);
|
|
589
|
-
}
|
|
590
|
-
return;
|
|
591
|
-
}
|
|
592
|
-
let n = " (unknown version)", o = n;
|
|
593
|
-
"version" in e && e.version && (n = " v" + e.version), "version" in i && i.version && (o = " v" + i.version), !(n && o && n === o) && console.warn(
|
|
594
|
-
`Attempted to register <${t}>${n}, but <${t}>${o} has already been registered.`
|
|
595
|
-
);
|
|
596
|
-
}
|
|
597
|
-
static createProperty(t, e) {
|
|
598
|
-
super.createProperty(t, e), e?.attribute && typeof e.attribute == "string" && !Object.prototype.hasOwnProperty.call(
|
|
599
|
-
this.prototype,
|
|
600
|
-
e.attribute
|
|
601
|
-
) && Object.prototype.hasOwnProperty.call(this.prototype, t) && Object.defineProperty(this.prototype, e.attribute, {
|
|
602
|
-
get() {
|
|
603
|
-
return this[t];
|
|
604
|
-
},
|
|
605
|
-
set(s) {
|
|
606
|
-
this[t] = s;
|
|
607
|
-
}
|
|
608
|
-
});
|
|
609
|
-
}
|
|
610
|
-
firstUpdated(t) {
|
|
611
|
-
super.firstUpdated(t), !this.preRender && this.runFirstUpdated(t);
|
|
612
|
-
}
|
|
613
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
614
|
-
runFirstUpdated(t) {
|
|
615
|
-
}
|
|
616
|
-
connectedUpdatedCallback() {
|
|
617
|
-
}
|
|
618
|
-
runConnectedCallback() {
|
|
619
|
-
}
|
|
620
|
-
adoptedCallback() {
|
|
621
|
-
st(this);
|
|
622
|
-
}
|
|
623
|
-
connectedCallback() {
|
|
624
|
-
super.connectedCallback(), "addEventListener" in globalThis && globalThis.addEventListener("cx-theme-change", this.handleThemeChange), !this.preRender && (this.runConnectedCallback(), this.updateComplete.then(() => {
|
|
625
|
-
this.connectedUpdatedCallback();
|
|
626
|
-
}));
|
|
627
|
-
}
|
|
628
|
-
disconnectedCallback() {
|
|
629
|
-
super.disconnectedCallback(), "removeEventListener" in globalThis && globalThis.removeEventListener("cx-theme-change", this.handleThemeChange), st(this);
|
|
630
|
-
}
|
|
631
|
-
handleThemeChange(t) {
|
|
632
|
-
this.theme = t.detail.theme;
|
|
633
|
-
}
|
|
634
|
-
getTheme() {
|
|
635
|
-
return "getComputedStyle" in globalThis && getComputedStyle(
|
|
636
|
-
globalThis.document.documentElement
|
|
637
|
-
)?.colorScheme === "dark" ? "dark" : "light";
|
|
638
|
-
}
|
|
639
|
-
getState(t) {
|
|
640
|
-
return this[t];
|
|
641
|
-
}
|
|
642
|
-
};
|
|
643
|
-
R.version = "1", R.dependencies = {};
|
|
644
|
-
let y = R;
|
|
645
|
-
L([
|
|
646
|
-
j()
|
|
647
|
-
], y.prototype, "dir");
|
|
648
|
-
L([
|
|
649
|
-
j()
|
|
650
|
-
], y.prototype, "lang");
|
|
651
|
-
L([
|
|
652
|
-
j()
|
|
653
|
-
], y.prototype, "theme");
|
|
654
|
-
L([
|
|
655
|
-
j({ attribute: "pre-render", type: Boolean })
|
|
656
|
-
], y.prototype, "preRender");
|
|
657
|
-
function st(r) {
|
|
658
|
-
if (r instanceof y)
|
|
659
|
-
return;
|
|
660
|
-
const t = r.localName || r.tagName, e = customElements.get(t.toLowerCase());
|
|
661
|
-
e && Object.setPrototypeOf(r, e.prototype);
|
|
662
|
-
}
|
|
663
|
-
const Ht = (r, t) => (window.customElements.get(r) || window.customElements.define(r, t), t), Rt = (r, t) => {
|
|
664
|
-
const { elements: e, kind: s } = t;
|
|
665
|
-
return {
|
|
666
|
-
elements: e,
|
|
667
|
-
// This callback is called once the class is otherwise fully defined
|
|
668
|
-
finisher(i) {
|
|
669
|
-
window.customElements.get(r) || window.customElements.define(r, i);
|
|
670
|
-
},
|
|
671
|
-
kind: s
|
|
672
|
-
};
|
|
673
|
-
}, It = (r) => (t) => typeof t == "function" ? Ht(r, t) : Rt(r, t);
|
|
518
|
+
O._$litElement$ = !0, O.finalized = !0, z.litElementHydrateSupport?.({ LitElement: O });
|
|
519
|
+
const bt = z.litElementPolyfillSupport;
|
|
520
|
+
bt?.({ LitElement: O });
|
|
521
|
+
(z.litElementVersions ??= []).push("4.2.1");
|
|
674
522
|
export {
|
|
675
|
-
|
|
676
|
-
y as C,
|
|
523
|
+
St as B,
|
|
677
524
|
d as E,
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
Lt as x
|
|
525
|
+
g as T,
|
|
526
|
+
Ot as Z,
|
|
527
|
+
O as a,
|
|
528
|
+
Ut as b,
|
|
529
|
+
X as f,
|
|
530
|
+
Ct as i,
|
|
531
|
+
rt as r,
|
|
532
|
+
R as u,
|
|
533
|
+
xt as x
|
|
688
534
|
};
|